43 #if defined(OS_SOLARIS) 49 # define _POSIX_SOURCE 52 #ifndef _POSIX_C_SOURCE 53 # define _POSIX_C_SOURCE 199506L 56 #ifndef _POSIX_PTHREAD_SEMANTICS 57 # define _POSIX_PTHREAD_SEMANTICS 60 #define __EXTENSIONS__ 77 #define _POSIX_C_SOURCE 199506L 80 #define _POSIX_PTHREAD_SEMANTICS 83 #define _XOPEN_SOURCE 600 84 #define _XOPEN_SOURCE_EXTENDED 1 88 #define __EXTENSIONS__ 98 #if defined(OS_FREEBSD) 106 #define __BSD_VISIBLE 1 115 #if defined(OS_TRU64) 119 #define _XOPEN_SOURCE 600 120 #define _XOPEN_SOURCE_EXTENDED 1 122 #ifndef _POSIX_SOURCE 123 # define _POSIX_SOURCE 126 #ifndef _POSIX_C_SOURCE 127 # define _POSIX_C_SOURCE 199506L 130 #ifndef _POSIX_PTHREAD_SEMANTICS 131 # define _POSIX_PTHREAD_SEMANTICS 134 #ifndef _POSIX_SHARED_MEMORY_OBJECTS 135 # define _POSIX_SHARED_MEMORY_OBJECTS 148 #undef HAVE_GETIPNODEBYADDR 149 #undef HAVE_GETIPNODEBYNAME 165 #define __BSD_VISIBLE 1 174 #if defined(OS_NETBSD) 178 #ifndef _POSIX_SOURCE 179 # define _POSIX_SOURCE 182 #ifndef _POSIX_C_SOURCE 183 # define _POSIX_C_SOURCE 199506L 186 #ifndef _POSIX_PTHREAD_SEMANTICS 187 # define _POSIX_PTHREAD_SEMANTICS 190 #ifndef _POSIX_SHARED_MEMORY_OBJECTS 191 # define _POSIX_SHARED_MEMORY_OBJECTS 218 # define strchr index 219 # define strrchr rindex 224 # define memcpy(d, s, n) bcopy ((s), (d), (n)) 225 # define memmove(d, s, n) bcopy ((s), (d), (n)) 238 #include <sysexits.h> 241 #ifdef HAVE_SYS_TYPES_H 242 #include <sys/types.h> 251 Error - dont have limits.h nor values.h
259 #ifndef __bool_true_false_are_defined 260 # if !defined (HAVE_BOOL) 263 # define __bool_true_false_are_defined 1 282 #if TIME_WITH_SYS_TIME 284 # include <sys/time.h> 287 # include <sys/time.h> 293 #if HAVE_SYS_RESOURCE_H 294 #include <sys/resource.h> 302 # include <sys/wait.h> 305 # define WEXITSTATUS(stat_val) ((unsigned int)(stat_val) >> 8) 308 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 316 #include <sys/stat.h> 324 # if !defined(HAVE_PCRE_H) || !defined(HAVE_LIBPCRE) 330 # if HAVE_PCRE_H && HAVE_LIBPCRE 345 #if HAVE_SYS_SOCKET_H 346 #include <sys/socket.h> 358 #include <sys/poll.h> 361 #if HAVE_SYS_SELECT_H 362 #include <sys/select.h> 365 #if HAVE_NETINET_IN_H 366 #include <netinet/in.h> 370 #include <arpa/inet.h> 373 #if HAVE_ARPA_NAMESER_H 374 #include <arpa/nameser.h> 396 #if HAVE_SYS_PTHREAD_H 397 #include <sys/pthread.h> 421 #ifdef HAVE_SYS_DKSTAT_H 422 #include <sys/dkstat.h> 425 #ifdef HAVE_SYS_LOADAVG_H 426 #include <sys/loadavg.h> 429 #ifdef HAVE_SYS_SYSTEMINFO_H 430 #include <sys/systeminfo.h> 433 #ifdef HAVE_SYS_SYSINFO_H 434 #include <sys/sysinfo.h> 437 #ifdef HAVE_SYS_UTSNAME_H 438 #include <sys/utsname.h> 441 #ifdef HAVE_SYS_MMAN_H 442 #include <sys/mman.h> 454 # define isblank(c) ((c) == ' ' || (c) == '\t') 463 #if defined(HAVE_DECL___FUNC__) && (HAVE_DECL___FUNC__ == 1) 464 # define ZE_FUNCTION __func__ 465 # define ZE_PRETTY_FUNCTION __func__ 467 # if defined(HAVE_DECL___FUNCTION__) && (HAVE_DECL___FUNCTION__ == 1) 468 # define ZE_FUNCTION __FUNCTION__ 469 # define ZE_PRETTY_FUNCTION __PRETTY_FUNCTION__ 471 # define ZE_FUNCTION __FILE__ 472 # define ZE_PRETTY_FUNCTION __FILE__ 476 #if !defined(HAVE_UCHAR) 480 #if !defined(HAVE_INT16_T) 484 #if !defined(HAVE_UINT16_T) 496 #if !defined(HAVE_INT64_T) 498 # if SIZEOF_LONG_LONG == 8 499 typedef long long int64_t;
500 # define HAVE_INT64_T 1 505 #if !defined(HAVE_UINT64_T) 506 # if HAVE_UNSIGNED_LONG_LONG 507 # if SIZEOF_UNSIGNED_LONG_LONG == 8 508 typedef unsigned long long uint64_t;
509 # define HAVE_UINT64_T 1 514 #if !defined(HAVE_OFF_T) 518 #if !defined(HAVE_MODE_T) 522 #if !defined(HAVE_SSIZE_T) 526 #if !defined(HAVE_SOCKET_T) 530 #ifndef HAVE_SOCKLEN_T 540 #if !defined(HAVE_IN_ADDR_T) 547 #if HAVE_STRUCT_SOCKADDR_IN 548 struct sockaddr_in sin;
551 # if HAVE_STRUCT_SOCKADDR_IN6 552 struct sockaddr_in6 sin6;
555 #if HAVE_STRUCT_SOCKADDR_UN && 0 556 struct sockaddr_un sun;
560 #if !HAVE_FLOCK_T && HAVE_STRUCT_FLOCK 561 typedef struct flock flock_t;
565 #if !HAVE_DECL_STRLCPY 566 size_t strlcpy(
char *,
const char *,
size_t);
569 #if !HAVE_DECL_STRLCAT 570 size_t strlcat(
char *,
const char *,
size_t);
573 #if HAVE_FCHMOD && (HAVE_DECL_FCHMOD == 0) 577 #if HAVE_PREAD && (HAVE_DECL_PREAD == 0) 581 #if HAVE_PWRITE && (HAVE_DECL_PWRITE == 0) 585 #ifndef _POSIX2_LINE_MAX 586 #define _POSIX2_LINE_MAX 2048 594 #ifdef _POSIX_PTHREAD_SEMANTICS 595 # define CTIME_R(t,s) ctime_r(t,s) 597 # define CTIME_R(t,s) ctime_r(t,s,sizeof(s)) 602 # define strtoull strtoll 604 # define strtoull strtoul
size_t strlcat(char *, const char *, size_t)
Error dont have limits h nor values h typedef int bool
size_t strlcpy(char *, const char *, size_t)