openncc frame
includes.h
Go to the documentation of this file.
1 #ifndef INCLUDE_H_
2 #define INCLUDE_H_
3 
4 #include <stdio.h>
5 #include <ctype.h>
6 #include <errno.h>
7 
8 #ifndef _WINDOWS
9 #include <unistd.h>
10 #include <sys/types.h>
11 #include <sys/socket.h>
12 #include <sys/file.h>
13 #include <arpa/inet.h>
14 #include <netdb.h>
15 #include <sys/ioctl.h>
16 #include <sys/time.h>
17 #include <sys/shm.h>
18 #include <sys/mman.h>
19 #include <semaphore.h>
20 #else
21 #include <windows.h>
22 typedef int socklen_t;
23 #endif
24 
25 #include <string.h>
26 #include <pthread.h>
27 
28 #include <sys/types.h>
29 
30 #include <stdlib.h>
31 #include <stdarg.h>
32 #include<sys/stat.h>
33 #include <stdint.h>
34 #include <pthread.h>
35 #include <stddef.h>
36 
37 #define BYTE uint8_t
38 #define INT8U uint8_t
39 #define INT16U uint16_t
40 #define INT16 int16_t
41 #define INT32U uint32_t
42 #define INT32 int32_t
43 #define UINT uint32_t
44 #define BOOL unsigned char
45 
46 
47 #define SUCCESS 0
48 #define FAILED -1
49 #define FALSE 0
50 #define TRUE 1
51 
52 #define _PACKED_ __attribute__((packed))
53 
54 #endif
55