---
name: "config.h"
section: "3"
platform: "linux"
package: "libcommoncpp2-doc"
version: "1.8.1-10"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/config.h"
---

# config.h(3)

## NAME

config.h

## SYNOPSIS

`#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>`\

### Macros

\#define **\_\_DLL**\
 \#define **\_\_EXPORT\_TEMPLATE**(x)\
 \#define **CCXX\_EMPTY**\
 \#define **COMMON\_64\_CLEAN**\
 \#define **COMMON\_ASYNC\_OVERRIDE**\
 \#define **COMMON\_OST\_NAMESPACE**\
 \#define **COMMON\_THREAD\_SLEEP**\
 \#define **COMMON\_NET\_DEVICES**\
 \#define **COMMON\_THREAD\_DEBUG**\
 \#define **COMMON\_DEADLOCK\_DEBUG**\
 \#define **COMMON\_NAMED\_MUTEX**\
 \#define **COMMON\_PROCESS\_ATTACH**\
 \#define **COMMON\_XML\_PARSING**\
 \#define **COMMON\_TIMER\_SLEEP**\
 \#define **CCXX\_PACKING**\
 \#define **CCXX\_PACKED**\
 \#define **\_REENTRANT**   1\
 \#define **\_THREAD\_SAFE**   1\
 \#define **\_GNU\_SOURCE**   1\
 \#define **\_XOPEN\_SOURCE**   600\
 \#define **HAVE\_UNISTD\_H**   1\
 \#define **HAVE\_FEATURES\_H**   1\
 \#define **HAVE\_SYS\_TYPES\_H**   1\
 \#define **HAVE\_SYS\_TIME\_H**   1\
 \#define **TIME\_WITH\_SYS\_TIME**   1\
 \#define **HAVE\_SYS\_TYPES\_STD**   1\
 \#define **HAVE\_SYS\_TYPES\_64**   1\
 \#define **HAVE\_LONG\_LONG**   1\
 \#define **HAVE\_64\_BITS**\
 \#define **CCXX\_EXCEPTIONS**   1\
 \#define **CCXX\_HAVE\_NEW\_INIT**   1\
 \#define **CCXX\_NAMESPACES**   1\
 \#define **CCXX\_NAT**   1\
 \#define **ETC\_PREFIX**   '/etc/'\
 \#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\_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\_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\_NETINET\_IN\_H**   1\
 \#define **HAVE\_NETINET\_IN\_SYSTM\_H**   1\
 \#define **HAVE\_NETINET\_IP\_H**   1\
 \#define **HAVE\_NET\_IF\_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\_STRINGS\_H**   1\
 \#define **HAVE\_STRING\_H**   1\
 \#define **HAVE\_STRTOK\_R**   1\
 \#define **HAVE\_SYSLOG\_H**   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\_TYPES\_64**   1\
 \#define **HAVE\_SYS\_TYPES\_H**   1\
 \#define **HAVE\_SYS\_TYPES\_STD**   1\
 \#define **HAVE\_SYS\_UN\_H**   1\
 \#define **HAVE\_SYS\_WAIT\_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 **LT\_OBJDIR**   '.libs/'\
 \#define **CCXX\_PACKAGE**   'commoncpp2'\
 \#define **CCXX\_PACKAGE\_BUGREPORT**   ''\
 \#define **CCXX\_PACKAGE\_NAME**   ''\
 \#define **CCXX\_PACKAGE\_STRING**   ''\
 \#define **CCXX\_PACKAGE\_TARNAME**   ''\
 \#define **CCXX\_PACKAGE\_URL**   ''\
 \#define **CCXX\_PACKAGE\_CCXX\_VERSION**   ''\
 \#define **PTHREAD\_MUTEXTYPE\_RECURSIVE**   PTHREAD\_MUTEX\_RECURSIVE\_NP\
 \#define **RETSIGTYPE**   void\
 \#define **STDC\_HEADERS**   1\
 \#define **TIME\_WITH\_SYS\_TIME**   1\
 \#define **USE\_MONOTONIC\_TIMER**   1\
 \#define **\_ALL\_SOURCE**   1\
 \#define **\_POSIX\_PTHREAD\_SEMANTICS**   1\
 \#define **\_TANDEM\_SOURCE**   1\
 \#define **\_\_EXTENSIONS\_\_**   1\
 \#define **CCXX\_VERSION**   '1.8.1'\
 \#define **restrict**   \_\_restrict\
 \#define **SUN\_LEN**(ptr)   ((size\_t)((struct sockaddr\_un \*)0)-\>sun\_path) + strlen((ptr)-\>sun\_path))\
 \#define **CCXX\_MULTIFAMILY\_IP**\
 \#define **THROW**(x)   throw x\
 \#define **THROWS**(x)   throw(x)\
 \#define **NEW\_THROWS**   throw()\
 \#define **THROWS\_EMPTY**   throw()\
 \#define **USING**(x)   using namespace x;\
 \#define **COMMON\_NAMESPACE**   ost\
 \#define **NAMESPACE\_COMMON**   namespace ost {\
 \#define **END\_NAMESPACE**   }\
 \#define **\_\_EXPORT**\
 \#define **\_\_DLLRTL**\
 \#define **\_\_LOCAL**\
 \#define **\_\_LITTLE\_ENDIAN**   1234\
 \#define **\_\_BIG\_ENDIAN**   4321\
 \#define **\_\_BYTE\_ORDER**   1234\
 \#define **\_\_BYTE\_ALIGNMENT**   1\
 \#define **SA\_ONESHOT**   SA\_RESETHAND\
 \#define **stricmp**(x,  y)   strcasecmp(x,y)\
 \#define **strnicmp**(x,  y,  n)   strncasecmp(x,y,n)\
 \#define **stristr**(x,  y)   strcasestr(x,y)\
 \#define **\_\_PTHREAD\_H\_\_**\
 \#define **HAVE\_PTHREAD\_DELAY**\
 \#define **pthread\_delay**(x)   nanosleep(x, NULL)\

### Typedefs

typedef int8\_t **int8**\
 typedef u\_int8\_t **uint8**\
 typedef int16\_t **int16**\
 typedef u\_int16\_t **uint16**\
 typedef int32\_t **int32**\
 typedef u\_int32\_t **uint32**\
 typedef int64\_t **int64**\
 typedef u\_int64\_t **uint64**\

## Macro Definition Documentation

### #define \_\_BIG\_ENDIAN 4321

### #define \_\_BYTE\_ALIGNMENT 1

### #define \_\_BYTE\_ORDER 1234

### #define \_\_DLL

### #define \_\_DLLRTL

### #define \_\_EXPORT

### #define \_\_EXPORT\_TEMPLATE(x)

### #define \_\_EXTENSIONS\_\_ 1

### #define \_\_LITTLE\_ENDIAN 1234

### #define \_\_LOCAL

### #define \_\_PTHREAD\_H\_\_

### #define \_ALL\_SOURCE 1

### #define \_GNU\_SOURCE 1

### #define \_POSIX\_PTHREAD\_SEMANTICS 1

### #define \_REENTRANT 1

### #define \_TANDEM\_SOURCE 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\_PACKAGE\_URL ''

### #define CCXX\_PACKED

### #define CCXX\_PACKING

### #define CCXX\_VERSION '1.8.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\_DELAY

### #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 LT\_OBJDIR '.libs/'

### #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 restrict \_\_restrict

### #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 Documentation

### 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

## Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.
