Mercurial > hg > nginx
comparison auto/unix @ 358:0a03c921c81d
nginx-0.0.7-2004-06-17-21:18:53 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 17 Jun 2004 17:18:53 +0000 |
parents | 0fb6c53fb135 |
children | 446782c909b3 |
comparison
equal
deleted
inserted
replaced
357:e260514b9ad4 | 358:0a03c921c81d |
---|---|
38 ngx_types="int"; . auto/types/typedef | 38 ngx_types="int"; . auto/types/typedef |
39 | 39 |
40 . auto/types/uintptr_t | 40 . auto/types/uintptr_t |
41 | 41 |
42 | 42 |
43 ngx_func="sin_len" | |
44 ngx_func_inc="#include <sys/socket.h> | |
45 #include <netinet/in.h>" | |
46 | |
47 ngx_func_test="struct sockaddr_in sa; sa.sin_len = 5" | |
48 . auto/func | |
49 | |
50 | |
51 # printf() formats | 43 # printf() formats |
52 | 44 |
53 CC_WARN=$CC_STRONG | 45 CC_WARN=$CC_STRONG |
54 ngx_fmt_collect=no | 46 ngx_fmt_collect=no |
55 | 47 |
69 | 61 |
70 ngx_fmt_name=RLIM_T_FMT; ngx_type="rlim_t"; . auto/types/sizeof | 62 ngx_fmt_name=RLIM_T_FMT; ngx_type="rlim_t"; . auto/types/sizeof |
71 eval ngx_formats=\${ngx_${ngx_bytes}_fmt}; . auto/fmt/fmt | 63 eval ngx_formats=\${ngx_${ngx_bytes}_fmt}; . auto/fmt/fmt |
72 | 64 |
73 | 65 |
74 # syscalls and libc calls | 66 # syscalls, libc calls and some features |
67 | |
68 ngx_feature_libs= | |
69 ngx_func_libs= | |
70 | |
75 | 71 |
76 ngx_func="pread()" | 72 ngx_func="pread()" |
77 ngx_func_inc= | 73 ngx_func_inc= |
78 ngx_func_test="char buf[1]; ssize_t n; | 74 ngx_func_test="char buf[1]; ssize_t n; n = pread(0, buf, 1, 0)" |
79 n = pread(0, buf, 1, 0)" | |
80 . auto/func | 75 . auto/func |
81 | 76 |
82 | 77 |
83 ngx_func="pwrite()" | 78 ngx_func="pwrite()" |
84 ngx_func_inc= | 79 ngx_func_inc= |
85 ngx_func_test="char buf[1]; ssize_t n; | 80 ngx_func_test="char buf[1]; ssize_t n; n = pwrite(1, buf, 1, 0)" |
86 n = pwrite(1, buf, 1, 0)" | |
87 . auto/func | 81 . auto/func |
88 | 82 |
89 | 83 |
90 #ngx_func="strsignal()" | 84 #ngx_func="strsignal()" |
91 #ngx_func_inc="#include <string.h>" | 85 #ngx_func_inc="#include <string.h>" |
111 . auto/func | 105 . auto/func |
112 | 106 |
113 | 107 |
114 ngx_func="posix_memalign()" | 108 ngx_func="posix_memalign()" |
115 ngx_func_inc="#include <stdlib.h>" | 109 ngx_func_inc="#include <stdlib.h>" |
116 ngx_func_test="void *p, int n; n = posix_memalign(&p, 4096, 4096)" | 110 ngx_func_test="void *p; int n; n = posix_memalign(&p, 4096, 4096)" |
117 . auto/func | 111 . auto/func |
118 | 112 |
119 | 113 |
120 ngx_func="memalign()" | 114 ngx_func="memalign()" |
121 ngx_func_inc="#include <stdlib.h>" | 115 ngx_func_inc="#include <stdlib.h>" |
122 ngx_func_test="void *p; p = memalign(4096, 4096)" | 116 ngx_func_test="void *p; p = memalign(4096, 4096)" |
123 . auto/func | 117 . auto/func |
124 | 118 |
125 | 119 |
126 ngx_func="msghdr.msg_control" | 120 |
127 ngx_func_inc="#include <sys/socket.h>" | 121 ngx_feature="mmap(MAP_ANON|MAP_SHARED)" |
128 ngx_func_test="struct msghdr msg; msg.msg_control = NULL" | 122 ngx_feature_name="MAP_ANON" |
129 . auto/func | 123 ngx_feature_inc="#include <sys/mman.h>" |
124 ngx_feature_test="void *p; | |
125 p = mmap(NULL, 4096, PROT_READ|PROT_WRITE, | |
126 MAP_ANON|MAP_SHARED, -1, 0); | |
127 if (p == MAP_FAILED) return 1;" | |
128 ngx_feature_run=yes | |
129 . auto/feature | |
130 | 130 |
131 | 131 |
132 ngx_func="FIONBIO" | 132 ngx_feature='mmap("/dev/zero", MAP_SHARED)' |
133 ngx_func_inc="#include <sys/filio.h>" | 133 ngx_feature_name="MAP_DEVZERO" |
134 ngx_func_test="int i; i = FIONBIO" | 134 ngx_feature_inc="#include <sys/mman.h> |
135 . auto/func | 135 #include <sys/stat.h> |
136 #include <fcntl.h>" | |
137 ngx_feature_test='void *p; int fd; | |
138 fd = open("/dev/zero", O_RDWR); | |
139 p = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); | |
140 if (p == MAP_FAILED) return 1;' | |
141 . auto/feature | |
142 | |
143 | |
144 ngx_feature="System V shared memory" | |
145 ngx_feature_name="SYSVSHM" | |
146 ngx_feature_inc="#include <sys/ipc.h> | |
147 #include <sys/shm.h>" | |
148 ngx_feature_test="int id; | |
149 id = shmget(IPC_PRIVATE, 4096, (SHM_R|SHM_W|IPC_CREAT)); | |
150 if (id == -1) return 1; | |
151 shmctl(id, IPC_RMID, NULL);" | |
152 . auto/feature | |
153 | |
154 | |
155 | |
156 ngx_feature="struct sockaddr_in.sin_len" | |
157 ngx_feature_name="sin_len" | |
158 ngx_feature_inc="#include <sys/socket.h> | |
159 #include <netinet/in.h>" | |
160 ngx_feature_test="struct sockaddr_in sa; sa.sin_len = 5" | |
161 ngx_feature_run=no | |
162 . auto/feature | |
163 | |
164 | |
165 ngx_feature="struct msghdr.msg_control" | |
166 ngx_feature_name="msghdr_msg_control" | |
167 ngx_feature_inc="#include <sys/socket.h>" | |
168 ngx_feature_test="struct msghdr msg; msg.msg_control = NULL" | |
169 . auto/feature | |
170 | |
171 | |
172 case $PLATFORM in | |
173 Linux:*) | |
174 ngx_feature_inc="#include <sys/ioctl.h>" | |
175 ;; | |
176 | |
177 *) | |
178 ngx_feature_inc="#include <sys/filio.h>" | |
179 ;; | |
180 esac | |
181 | |
182 ngx_feature="ioctl(FIONBIO)" | |
183 ngx_feature_name="FIONBIO" | |
184 ngx_feature_test="int i; i = FIONBIO" | |
185 . auto/feature | |
186 | |
187 | |
188 ngx_feature="struct tm.tm_gmtoff" | |
189 ngx_feature_name="gmtoff" | |
190 ngx_feature_inc="#include <time.h>" | |
191 ngx_feature_test="struct tm tm; tm.tm_gmtoff = 0" | |
192 . auto/feature |