Asterisk - The Open Source Telephony Project  18.5.0
include/solaris-compat/compat.h
Go to the documentation of this file.
1 #ifndef _SOLARIS_COMPAT_H
2 #define _SOLARIS_COMPAT_H
3 
4 #define __BEGIN_DECLS
5 #define __END_DECLS
6 
7 #ifndef __P
8 #define __P(p) p
9 #endif
10 
11 #include <alloca.h>
12 #include <strings.h>
13 #include <string.h>
14 #include <pthread.h>
15 #include <sys/stat.h>
16 #include <signal.h>
17 #include <netinet/in.h>
18 
19 #ifndef BYTE_ORDER
20 #define LITTLE_ENDIAN 1234
21 #define BIG_ENDIAN 4321
22 
23 #ifdef __sparc__
24 #define BYTE_ORDER BIG_ENDIAN
25 #else
26 #define BYTE_ORDER LITTLE_ENDIAN
27 #endif
28 #endif
29 
30 #ifndef __BYTE_ORDER
31 #define __LITTLE_ENDIAN LITTLE_ENDIAN
32 #define __BIG_ENDIAN BIG_ENDIAN
33 #define __BYTE_ORDER BYTE_ORDER
34 #endif
35 
36 #ifndef __BIT_TYPES_DEFINED__
37 #define __BIT_TYPES_DEFINED__
38 typedef unsigned char u_int8_t;
39 typedef unsigned short u_int16_t;
40 typedef unsigned int u_int32_t;
41 #endif
42 
43 char* strsep(char** str, const char* delims);
44 int setenv(const char *name, const char *value, int overwrite);
45 int unsetenv(const char *name);
46 #endif
int setenv(const char *name, const char *value, int overwrite)
String manipulation functions.
const char * str
Definition: app_jack.c:147
int value
Definition: syslog.c:37
int unsetenv(const char *name)
char * strsep(char **str, const char *delims)
unsigned short u_int16_t
static const char name[]
Definition: cdr_mysql.c:74
unsigned int u_int32_t
unsigned char u_int8_t