Mercurial > hg > nginx-vendor-0-8
comparison src/os/unix/ngx_posix_config.h @ 4:4b2dafa26fe2 NGINX_0_1_2
nginx 0.1.2
*) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS
options in configure.
*) Feature: the server_name directive supports *.domain.tld.
*) Bugfix: the portability improvements.
*) Bugfix: if configuration file was set in command line, the
reconfiguration was impossible; bug appeared in 0.1.1.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
*) Bugfix: with sendfile the response was not recoded according to the
charset module directives; bug appeared in 0.1.1.
*) Bugfix: very seldom bug in the kqueue processing.
*) Bugfix: the gzip module compressed the proxied responses that was
already compressed.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 21 Oct 2004 00:00:00 +0400 |
parents | f0b350454894 |
children | 74b1868dd3cd |
comparison
equal
deleted
inserted
replaced
3:8beaf7b3241f | 4:4b2dafa26fe2 |
---|---|
6 | 6 |
7 #ifndef _NGX_POSIX_CONFIG_H_INCLUDED_ | 7 #ifndef _NGX_POSIX_CONFIG_H_INCLUDED_ |
8 #define _NGX_POSIX_CONFIG_H_INCLUDED_ | 8 #define _NGX_POSIX_CONFIG_H_INCLUDED_ |
9 | 9 |
10 | 10 |
11 #if 0 | |
12 #define _XOPEN_SOURCE | |
13 #define _XOPEN_SOURCE_EXTENDED 1 | |
14 #endif | |
15 | |
16 | |
11 #include <sys/types.h> | 17 #include <sys/types.h> |
12 #include <sys/time.h> | 18 #include <sys/time.h> |
19 #if (NGX_HAVE_UNISTD_H) | |
13 #include <unistd.h> | 20 #include <unistd.h> |
21 #endif | |
22 #if (NGX_HAVE_INTTYPES_H) | |
23 #include <inttypes.h> | |
24 #endif | |
14 #include <stdarg.h> | 25 #include <stdarg.h> |
15 #include <stddef.h> /* offsetof() */ | 26 #include <stddef.h> /* offsetof() */ |
16 #include <stdio.h> | 27 #include <stdio.h> |
17 #include <stdlib.h> | 28 #include <stdlib.h> |
18 #include <errno.h> | 29 #include <errno.h> |
20 #include <signal.h> | 31 #include <signal.h> |
21 #include <pwd.h> | 32 #include <pwd.h> |
22 #include <grp.h> | 33 #include <grp.h> |
23 #include <dirent.h> | 34 #include <dirent.h> |
24 | 35 |
36 #if (NGX_HAVE_SYS_FILIO_H) | |
37 #include <sys/filio.h> /* FIONBIO */ | |
38 #endif | |
39 #include <sys/ioctl.h> /* FIONBIO */ | |
40 | |
25 #include <sys/uio.h> | 41 #include <sys/uio.h> |
26 #include <sys/filio.h> /* FIONBIO */ | |
27 #include <sys/stat.h> | 42 #include <sys/stat.h> |
28 #include <fcntl.h> | 43 #include <fcntl.h> |
29 | 44 |
30 #include <sys/wait.h> | 45 #include <sys/wait.h> |
31 #include <sys/mman.h> | 46 #include <sys/mman.h> |
32 #include <sys/resource.h> | 47 #include <sys/resource.h> |
33 #include <sched.h> | 48 #include <sched.h> |
34 | 49 |
35 #include <sys/socket.h> | 50 #include <sys/socket.h> |
36 #include <netinet/in.h> | 51 #include <netinet/in.h> |
52 #include <netinet/tcp.h> /* TCP_NODELAY */ | |
37 #include <arpa/inet.h> | 53 #include <arpa/inet.h> |
38 #include <netdb.h> | 54 #include <netdb.h> |
55 | |
56 #if (NGX_HAVE_LIMITS_H) | |
57 #include <limits.h> /* IOV_MAX */ | |
58 #endif | |
59 | |
60 #ifndef IOV_MAX | |
61 #define IOV_MAX 16 | |
62 #endif | |
63 | |
39 | 64 |
40 #include <ngx_auto_config.h> | 65 #include <ngx_auto_config.h> |
41 | 66 |
42 | 67 |
43 #ifndef HAVE_SELECT | 68 #ifndef HAVE_SELECT |
51 #if (HAVE_POLL) | 76 #if (HAVE_POLL) |
52 #include <poll.h> | 77 #include <poll.h> |
53 #endif | 78 #endif |
54 | 79 |
55 | 80 |
81 #if (HAVE_KQUEUE) | |
82 #include <sys/event.h> | |
83 #endif | |
84 | |
85 | |
86 #if (HAVE_DEVPOLL) | |
87 #include <sys/ioctl.h> | |
88 #include <sys/devpoll.h> | |
89 #endif | |
90 | |
91 | |
92 #if (__FreeBSD__) && (__FreeBSD_version < 400017) | |
93 | |
94 #include <sys/param.h> /* ALIGN() */ | |
95 | |
96 /* FreeBSD 3.x has no CMSG_SPACE() at all and has the broken CMSG_DATA() */ | |
97 | |
98 #undef CMSG_SPACE | |
99 #define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l)) | |
100 | |
101 #undef CMSG_DATA | |
102 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr))) | |
103 | |
104 #endif | |
105 | |
106 | |
56 #define ngx_setproctitle(title) | 107 #define ngx_setproctitle(title) |
57 | 108 |
58 | 109 |
59 #define NGX_POSIX_IO 1 | 110 #define NGX_POSIX_IO 1 |
60 | 111 |