Groonga 3.0.9 Source Code Document
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ngx_linux_config.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) Nginx, Inc.
5  */
6 
7 
8 #ifndef _NGX_LINUX_CONFIG_H_INCLUDED_
9 #define _NGX_LINUX_CONFIG_H_INCLUDED_
10 
11 
12 #ifndef _GNU_SOURCE
13 #define _GNU_SOURCE /* pread(), pwrite(), gethostname() */
14 #endif
15 
16 #define _FILE_OFFSET_BITS 64
17 
18 #include <sys/types.h>
19 #include <sys/time.h>
20 #include <unistd.h>
21 #include <stdarg.h>
22 #include <stddef.h> /* offsetof() */
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <errno.h>
26 #include <string.h>
27 #include <signal.h>
28 #include <pwd.h>
29 #include <grp.h>
30 #include <dirent.h>
31 #include <glob.h>
32 #include <sys/vfs.h> /* statfs() */
33 
34 #include <sys/uio.h>
35 #include <sys/stat.h>
36 #include <fcntl.h>
37 
38 #include <sys/wait.h>
39 #include <sys/mman.h>
40 #include <sys/resource.h>
41 #include <sched.h>
42 
43 #include <sys/socket.h>
44 #include <netinet/in.h>
45 #include <netinet/tcp.h> /* TCP_NODELAY, TCP_CORK */
46 #include <arpa/inet.h>
47 #include <netdb.h>
48 #include <sys/un.h>
49 
50 #include <time.h> /* tzset() */
51 #include <malloc.h> /* memalign() */
52 #include <limits.h> /* IOV_MAX */
53 #include <sys/ioctl.h>
54 #include <sys/sysctl.h>
55 #include <crypt.h>
56 #include <sys/utsname.h> /* uname() */
57 
58 
59 #include <ngx_auto_config.h>
60 
61 
62 #if (NGX_HAVE_POSIX_SEM)
63 #include <semaphore.h>
64 #endif
65 
66 
67 #if (NGX_HAVE_SYS_PRCTL_H)
68 #include <sys/prctl.h>
69 #endif
70 
71 
72 #if (NGX_HAVE_SENDFILE64)
73 #include <sys/sendfile.h>
74 #else
75 extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size);
76 #define NGX_SENDFILE_LIMIT 0x80000000
77 #endif
78 
79 
80 #if (NGX_HAVE_POLL || NGX_HAVE_RTSIG)
81 #include <poll.h>
82 #endif
83 
84 
85 #if (NGX_HAVE_EPOLL)
86 #include <sys/epoll.h>
87 #endif
88 
89 
90 #if (NGX_HAVE_FILE_AIO)
91 #include <sys/syscall.h>
92 #include <linux/aio_abi.h>
93 typedef struct iocb ngx_aiocb_t;
94 #endif
95 
96 
97 #define NGX_LISTEN_BACKLOG 511
98 
99 
100 #ifndef NGX_HAVE_SO_SNDLOWAT
101 /* setsockopt(SO_SNDLOWAT) returns ENOPROTOOPT */
102 #define NGX_HAVE_SO_SNDLOWAT 0
103 #endif
104 
105 
106 #ifndef NGX_HAVE_INHERITED_NONBLOCK
107 #define NGX_HAVE_INHERITED_NONBLOCK 0
108 #endif
109 
110 
111 #define NGX_HAVE_OS_SPECIFIC_INIT 1
112 #define ngx_debug_init()
113 
114 
115 extern char **environ;
116 
117 
118 #endif /* _NGX_LINUX_CONFIG_H_INCLUDED_ */