Mercurial > hg > nginx-vendor-0-7
comparison src/os/unix/ngx_linux_config.h @ 0:f0b350454894 NGINX_0_1_0
nginx 0.1.0
*) The first public version.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 04 Oct 2004 00:00:00 +0400 |
parents | |
children | cc9f381affaa |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0b350454894 |
---|---|
1 | |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_LINUX_CONFIG_H_INCLUDED_ | |
8 #define _NGX_LINUX_CONFIG_H_INCLUDED_ | |
9 | |
10 | |
11 #define _GNU_SOURCE /* pread(), pwrite(), gethostname() */ | |
12 | |
13 #define _FILE_OFFSET_BITS 64 | |
14 #define _LARGEFILE_SOURCE | |
15 | |
16 | |
17 #include <sys/types.h> | |
18 #include <sys/time.h> | |
19 #include <unistd.h> | |
20 #include <stdarg.h> | |
21 #include <stddef.h> /* offsetof() */ | |
22 #include <stdio.h> | |
23 #include <stdlib.h> | |
24 #include <errno.h> | |
25 #include <string.h> | |
26 #include <signal.h> | |
27 #include <pwd.h> | |
28 #include <grp.h> | |
29 #include <dirent.h> | |
30 | |
31 #include <sys/uio.h> | |
32 #include <sys/stat.h> | |
33 #include <fcntl.h> | |
34 | |
35 #include <sys/wait.h> | |
36 #include <sys/mman.h> | |
37 #include <sys/resource.h> | |
38 #include <sched.h> | |
39 | |
40 #include <sys/socket.h> | |
41 #include <netinet/in.h> | |
42 #include <arpa/inet.h> | |
43 #include <netdb.h> | |
44 | |
45 #include <time.h> /* tzset() */ | |
46 #include <sys/ioctl.h> | |
47 #include <sys/sysctl.h> | |
48 #include <netinet/tcp.h> /* TCP_CORK */ | |
49 | |
50 | |
51 #include <ngx_auto_config.h> | |
52 | |
53 | |
54 #if (HAVE_PRCTL) | |
55 #include <sys/prctl.h> | |
56 #endif | |
57 | |
58 #if (HAVE_SENDFILE64) | |
59 #include <sys/sendfile.h> | |
60 #else | |
61 extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size); | |
62 #endif | |
63 | |
64 | |
65 | |
66 #ifndef HAVE_SELECT | |
67 #define HAVE_SELECT 1 | |
68 #endif | |
69 | |
70 | |
71 #ifndef HAVE_POLL | |
72 #define HAVE_POLL 1 | |
73 #endif | |
74 #if (HAVE_POLL) | |
75 #include <poll.h> | |
76 #endif | |
77 | |
78 #if (HAVE_EPOLL) | |
79 #include <sys/epoll.h> | |
80 #endif /* HAVE_EPOLL */ | |
81 | |
82 | |
83 #if defined TCP_DEFER_ACCEPT && !defined HAVE_DEFERRED_ACCEPT | |
84 #define HAVE_DEFERRED_ACCEPT 1 | |
85 #endif | |
86 | |
87 | |
88 #ifndef HAVE_INHERITED_NONBLOCK | |
89 #define HAVE_INHERITED_NONBLOCK 0 | |
90 #endif | |
91 | |
92 | |
93 #ifndef HAVE_SELECT_CHANGE_TIMEOUT | |
94 #define HAVE_SELECT_CHANGE_TIMEOUT 1 | |
95 #endif | |
96 | |
97 | |
98 #define ngx_setproctitle(title) | |
99 | |
100 | |
101 #endif /* _NGX_LINUX_CONFIG_H_INCLUDED_ */ |