/* On SVR4, this #define is necessary to make define many of the ioctls. */ #define BSD_COMP #include #include /* On SunOS 4.1, and define some symbols with different values, but defines some ioctl symbols not in , so we need it. Our should define them with the values from Sun's , not . So we include and let redefine things. This produces some spurious warnings. */ #ifdef HAVE_sys_termios_h #include #endif /* This causes to define some necessary data structure. */ #ifdef sony_news #define KANJI #endif #include #ifdef SIOCGIFCONF #include #include #include #include #if defined(SIOCGARP) && !defined(ARPOP_REQUEST) #include #endif #ifdef SIOCGNIT #ifdef HAVE_net_nit_h #include #else /* No net/nit.h. */ #undef SIOCGNIT #undef SIOCSNIT #endif /* net/nit.h. */ #endif /* SIOCGNIT. */ #endif /* SIOCGIFCONF. */ /* These exist on Sequents. */ #ifdef SMIOSTATS #include #include #endif #ifdef SMIOGETREBOOT0 #include #endif #ifdef ZIOCBCMD #include #endif /* These exist under Ultrix, but I figured there may be others. */ #ifdef DIOCGETPT #include /* for DIOC* */ #endif #ifdef DEVGETGEOM #include #endif #ifdef ultrix /* Ultrix has a conditional include that brings these in; we have to force their inclusion when we actually compile them. */ #undef TCGETA #undef TCSETA #undef TCSETAW #undef TCSETAF #undef TCGETP #undef TCSANOW #undef TCSADRAIN #undef TCSAFLUSH #ifdef ELSETPID #include /* get sockaddr_un for elcsd.h */ #include #endif #ifdef DKIOCDOP #include #endif /* Couldn't find the header where the structures used by these are defined; it looks like an unbundled LAT package or something. */ #undef LIOCSOL #undef LIOCRES #undef LIOCCMD #undef LIOCINI #undef LIOCTTYI #undef LIOCCONN /* struct mtop hasn't been in sys/mtio.h since 4.1 */ #undef MTIOCTOP #undef MTIOCGET #endif #if defined(__osf__) && defined(__alpha__) #include /* To get TIOCGETP, etc. */ #include /* for DIOC* */ #include /* for MTIOC* */ /* The binlog_getstatus structure doesn't seem to be defined. */ #undef BINLOG_GETSTATUS /* Can't find `struct ifdata' anywhere. */ #undef SIOCMANREQ #undef SIOCGETEVENTS /* OSF/1 smells an awful lot like Ultrix. */ #undef TCGETA #undef TCSETA #undef TCSETAF #undef TCSETAW /* This macro looks screwed in sys/devio.h. */ #undef DEV_DISKPART /* This is in sys/dkio.h, but we don't need it. */ #undef DKIOCACC #undef DKIOCDOP #undef DKIOCEXCL #undef DKIOCGET #undef DKIOCHDR /* Introduced by OSF/1 2.0. */ #undef FIOPIPESTAT #undef SIOCSRREQR #undef SIOCSRREQW #undef SRVC_REQUEST #endif #define DEFINE(name, value) \ printf("#define %s 0x%.8x\n", (name), (value)) int main() { REQUESTS exit(0); return 0; }