1*4deb52dcSmaja /* $OpenBSD: os-linux2.h,v 1.2 2003/06/02 21:38:40 maja Exp $ */ 2772b9441Smaja 3772b9441Smaja /* 4772b9441Smaja * Copyright (c) 1993-95 Mats O Jansson. All rights reserved. 5772b9441Smaja * 6772b9441Smaja * Redistribution and use in source and binary forms, with or without 7772b9441Smaja * modification, are permitted provided that the following conditions 8772b9441Smaja * are met: 9772b9441Smaja * 1. Redistributions of source code must retain the above copyright 10772b9441Smaja * notice, this list of conditions and the following disclaimer. 11772b9441Smaja * 2. Redistributions in binary form must reproduce the above copyright 12772b9441Smaja * notice, this list of conditions and the following disclaimer in the 13772b9441Smaja * documentation and/or other materials provided with the distribution. 14772b9441Smaja * 15772b9441Smaja * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16772b9441Smaja * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17772b9441Smaja * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18772b9441Smaja * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19772b9441Smaja * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20772b9441Smaja * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21772b9441Smaja * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22772b9441Smaja * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23772b9441Smaja * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24772b9441Smaja * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25772b9441Smaja * 26*4deb52dcSmaja * @(#) $OpenBSD: os-linux2.h,v 1.2 2003/06/02 21:38:40 maja Exp $ 27772b9441Smaja */ 28772b9441Smaja 29772b9441Smaja #include <stdio.h> 30772b9441Smaja 31772b9441Smaja #include <syslog.h> 32772b9441Smaja #include <signal.h> 33772b9441Smaja #include <sys/types.h> 34772b9441Smaja #include <sys/stat.h> 35772b9441Smaja #include <errno.h> 36772b9441Smaja #include <sys/socket.h> 37772b9441Smaja #include <net/if.h> 38772b9441Smaja #include <sys/ioctl.h> 39772b9441Smaja #include <stdlib.h> 40772b9441Smaja #include <sys/time.h> 41772b9441Smaja #include <time.h> 42772b9441Smaja #include <fcntl.h> 43772b9441Smaja #include <unistd.h> 44772b9441Smaja #include <string.h> 45772b9441Smaja 46772b9441Smaja #define LINUX2_PF 47772b9441Smaja #define SETPGRP_NOPARAM 48772b9441Smaja 49