#include <unistd.h>#include <features.h>#include <sys/types.h>#include <sys/time.h>#include <poll.h>#include <sys/socket.h>#include <sys/select.h>#include <netinet/in.h>#include <arpa/inet.h>#include <netdb.h>#include <netinet/in_systm.h>#include <netinet/ip.h>#include <sys/un.h>#include <fcntl.h>#include <sys/fcntl.h>#include <endian.h>#include <signal.h>#include <cstring>#include <strings.h>#include <alloca.h>#include <pthread.h>#include <semaphore.h>Go to the source code of this file.
| #define __BIG_ENDIAN 4321 |
| #define __BYTE_ALIGNMENT 1 |
| #define __BYTE_ORDER 1234 |
| #define __DLL |
| #define __DLLRTL |
| #define __EXPORT |
| #define __EXPORT_TEMPLATE | ( | x | ) |
| #define __LITTLE_ENDIAN 1234 |
| #define __LOCAL |
| #define __PTHREAD_H__ |
| #define _GNU_SOURCE 1 |
| #define _REENTRANT 1 |
| #define _THREAD_SAFE 1 |
| #define _XOPEN_SOURCE 600 |
| #define CCXX_EMPTY |
| #define CCXX_EXCEPTIONS 1 |
| #define CCXX_HAVE_NEW_INIT 1 |
| #define CCXX_MULTIFAMILY_IP |
| #define CCXX_NAMESPACES 1 |
| #define CCXX_NAT 1 |
| #define CCXX_PACKAGE "commoncpp2" |
| #define CCXX_PACKAGE_BUGREPORT "" |
| #define CCXX_PACKAGE_CCXX_VERSION "" |
| #define CCXX_PACKAGE_NAME "" |
| #define CCXX_PACKAGE_STRING "" |
| #define CCXX_PACKAGE_TARNAME "" |
| #define CCXX_PACKED |
| #define CCXX_PACKING |
| #define CCXX_VERSION "1.6.1" |
| #define COMMON_64_CLEAN |
| #define COMMON_ASYNC_OVERRIDE |
| #define COMMON_DEADLOCK_DEBUG |
| #define COMMON_NAMED_MUTEX |
| #define COMMON_NAMESPACE ost |
| #define COMMON_NET_DEVICES |
| #define COMMON_OST_NAMESPACE |
| #define COMMON_PROCESS_ATTACH |
| #define COMMON_THREAD_DEBUG |
| #define COMMON_THREAD_SLEEP |
| #define COMMON_TIMER_SLEEP |
| #define COMMON_XML_PARSING |
| #define END_NAMESPACE } |
| #define ETC_PREFIX "/etc/" |
| #define HAVE_64_BITS |
| #define HAVE_ALLOCA_H 1 |
| #define HAVE_ARPA_INET_H 1 |
| #define HAVE_BITS_WORDSIZE_H 1 |
| #define HAVE_BOOL_TYPE 1 |
| #define HAVE_DLFCN_H 1 |
| #define HAVE_ENDIAN_H 1 |
| #define HAVE_ERRNO_H 1 |
| #define HAVE_EXCEPTION 1 |
| #define HAVE_EXTRAS 1 |
| #define HAVE_FCNTL_H 1 |
| #define HAVE_FEATURES_H 1 |
| #define HAVE_FEATURES_H 1 |
| #define HAVE_GETADDRINFO 1 |
| #define HAVE_GETGRNAM_R 1 |
| #define HAVE_GETHOSTBYNAME2 1 |
| #define HAVE_GETOPT 1 |
| #define HAVE_GETOPT_H 1 |
| #define HAVE_GETOPT_LONG 1 |
| #define HAVE_GETPAGESIZE 1 |
| #define HAVE_GETPWNAM_R 1 |
| #define HAVE_GETPWUID_R 1 |
| #define HAVE_GETTIMEOFDAY 1 |
| #define HAVE_HIRES_TIMER 1 |
| #define HAVE_INET_ATON 1 |
| #define HAVE_INET_PTON 1 |
| #define HAVE_INET_SOCKETS 1 |
| #define HAVE_INTTYPES_H 1 |
| #define HAVE_LIMITS_H 1 |
| #define HAVE_LINUX_IN6_H 1 |
| #define HAVE_LINUX_NETFILTER_IPV4_H 1 |
| #define HAVE_LINUX_NETFILTER_IPV6_H 1 |
| #define HAVE_LOCALTIME_R 1 |
| #define HAVE_LOCKF 1 |
| #define HAVE_LONG_LONG 1 |
| #define HAVE_LONG_LONG 1 |
| #define HAVE_LSTAT 1 |
| #define HAVE_MEMMOVE 1 |
| #define HAVE_MEMORY_H 1 |
| #define HAVE_MLOCK 1 |
| #define HAVE_MLOCKALL 1 |
| #define HAVE_MODULES 1 |
| #define HAVE_NAT_NETFILTER 1 |
| #define HAVE_NET_IF_H 1 |
| #define HAVE_NETINET_IN_H 1 |
| #define HAVE_NETINET_IN_SYSTM_H 1 |
| #define HAVE_NETINET_IP_H 1 |
| #define HAVE_POLL 1 |
| #define HAVE_POLL_H 1 |
| #define HAVE_POSIX_MEMALIGN 1 |
| #define HAVE_PREAD_PWRITE 1 |
| #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 |
| #define HAVE_PTHREAD_CANCEL 1 |
| #define HAVE_PTHREAD_H 1 |
| #define HAVE_PTHREAD_MUTEXATTR_SETTYPE 1 |
| #define HAVE_PTHREAD_NANOSLEEP 1 |
| #define HAVE_PTHREAD_RWLOCK 1 |
| #define HAVE_PTHREAD_SETCANCELTYPE 1 |
| #define HAVE_PTHREAD_YIELD 1 |
| #define HAVE_READDIR_R 1 |
| #define HAVE_REALPATH 1 |
| #define HAVE_SCHED_GETSCHEDULER 1 |
| #define HAVE_SCHED_H 1 |
| #define HAVE_SEMAPHORE_H 1 |
| #define HAVE_SETEGID 1 |
| #define HAVE_SETENV 1 |
| #define HAVE_SETITIMER 1 |
| #define HAVE_SETPGRP 1 |
| #define HAVE_SIGACTION 1 |
| #define HAVE_SIGWAIT 1 |
| #define HAVE_SIGWAIT2 1 |
| #define HAVE_SNPRINTF 1 |
| #define HAVE_SOCKLEN_T 1 |
| #define HAVE_SSTREAM 1 |
| #define HAVE_STDINT_H 1 |
| #define HAVE_STDLIB_H 1 |
| #define HAVE_STRCASECMP 1 |
| #define HAVE_STRDUP 1 |
| #define HAVE_STRERROR_R 1 |
| #define HAVE_STRING_H 1 |
| #define HAVE_STRINGS_H 1 |
| #define HAVE_STRTOK_R 1 |
| #define HAVE_SYS_FCNTL_H 1 |
| #define HAVE_SYS_FILE_H 1 |
| #define HAVE_SYS_IOCTL_H 1 |
| #define HAVE_SYS_PARAM_H 1 |
| #define HAVE_SYS_POLL_H 1 |
| #define HAVE_SYS_SELECT_H 1 |
| #define HAVE_SYS_SOCKET_H 1 |
| #define HAVE_SYS_STAT_H 1 |
| #define HAVE_SYS_TIME_H 1 |
| #define HAVE_SYS_TIME_H 1 |
| #define HAVE_SYS_TYPES_64 1 |
| #define HAVE_SYS_TYPES_64 1 |
| #define HAVE_SYS_TYPES_H 1 |
| #define HAVE_SYS_TYPES_H 1 |
| #define HAVE_SYS_TYPES_STD 1 |
| #define HAVE_SYS_TYPES_STD 1 |
| #define HAVE_SYS_UN_H 1 |
| #define HAVE_SYS_WAIT_H 1 |
| #define HAVE_SYSLOG_H 1 |
| #define HAVE_UNISTD_H 1 |
| #define HAVE_UNISTD_H 1 |
| #define HAVE_UNIX_SOCKETS 1 |
| #define HAVE_WAIT4 1 |
| #define HAVE_WAITPID 1 |
| #define HAVE_ZLIB_H 1 |
| #define NAMESPACE_COMMON namespace ost { |
| #define NEW_THROWS throw() |
| #define pthread_delay | ( | x | ) | nanosleep(x, NULL) |
| #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP |
| #define RETSIGTYPE void |
| #define SA_ONESHOT SA_RESETHAND |
| #define STDC_HEADERS 1 |
| #define stricmp | ( | x, | |||
| y | ) | strcasecmp(x,y) |
| #define stristr | ( | x, | |||
| y | ) | strcasestr(x,y) |
| #define strnicmp | ( | x, | |||
| y, | |||||
| n | ) | strncasecmp(x,y,n) |
| #define SUN_LEN | ( | ptr | ) | ((size_t)((struct sockaddr_un *)0)->sun_path) + strlen((ptr)->sun_path)) |
| #define THROW | ( | x | ) | throw x |
| #define THROWS | ( | x | ) | throw(x) |
| #define THROWS_EMPTY throw() |
| #define TIME_WITH_SYS_TIME 1 |
| #define TIME_WITH_SYS_TIME 1 |
| #define USE_MONOTONIC_TIMER 1 |
| #define USING | ( | x | ) | using namespace x; |
| typedef int16_t int16 |
| typedef int32_t int32 |
| typedef int64_t int64 |
| typedef int8_t int8 |
| typedef u_int16_t uint16 |
| typedef u_int32_t uint32 |
| typedef u_int64_t uint64 |
| typedef u_int8_t uint8 |
1.5.4