|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/root/usr/lib/bcc/include/bsd/ |
Upload File : |
/* bsd.h - simplify porting BSD programs to Linux - rick sladkey */ /* make sure BSD features are enabled, i.e. __USE_BSD and _FAVOR_BSD */ /* cpp in gcc 2.3.3 is broken. #ifndef _BSD_BSD_H #define _BSD_BSD_H */ #define _BSD_SOURCE 1 #include <features.h> #include <endian.h> /* some BSD progs expect MIN and MAX to be defined */ #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) /* make sure we get L_SET and L_INCR, which is in a different place */ #include <sys/file.h> /* BSD has slight non-POSIX names (and meanings :-) for some things */ #define FAPPEND O_APPEND #include <limits.h> /* (absolute) max # characters in exec arglist */ #define NCARGS ARG_MAX /* ftpd uses this as bits per byte, I don't know why it's called NBBY */ #define NBBY CHAR_BIT /* gloss over slight differences between BSD direct and POSIX dirent */ #define d_namlen d_reclen #if 0 /* See <bsd/signal.h> */ typedef void sig_t; #endif /* #endif _BSD_BSD_H */