Mercurial > hg > nginx-vendor-0-7
annotate auto/types/sizeof @ 22:8b6db3bda591 NGINX_0_1_11
nginx 0.1.11
*) Feature: the worker_priority directive.
*) Change: both tcp_nopush and tcp_nodelay directives affect the
transferred response.
*) Bugfix: nginx did not call initgroups().
Thanks to Andrew Sitnikov and Andrei Nigmatulin.
*) Change: now the ngx_http_autoindex_module shows the file size in the
bytes.
*) Bugfix: the ngx_http_autoindex_module returned the 500 error if the
broken symlink was in a directory.
*) Bugfix: the files bigger than 4G could not be transferred using
sendfile.
*) Bugfix: if the backend was resolved to several backends and there
was an error while the response waiting then process may got caught
in an endless loop.
*) Bugfix: the worker process may exit with the "unknown cycle" message
when the /dev/poll method was used.
*) Bugfix: "close() channel failed" errors.
*) Bugfix: the autodetection of the "nobody" and "nogroup" groups.
*) Bugfix: the send_lowat directive did not work on Linux.
*) Bugfix: the segmentation fault occurred if there was no events
section in configuration.
*) Bugfix: nginx could not be built on OpenBSD.
*) Bugfix: the double slashes in "://" in the URI were converted to
":/".
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 02 Dec 2004 00:00:00 +0300 |
parents | 4b2dafa26fe2 |
children | df17fbafec8f |
rev | line source |
---|---|
0 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
4 | 5 echo $ngx_n "checking for $ngx_type size ...$ngx_c" |
6 | |
7 cat << END >> $NGX_AUTOCONF_ERR | |
8 | |
9 ---------------------------------------- | |
10 checking for $ngx_type size | |
11 | |
12 END | |
0 | 13 |
14 ngx_size= | |
15 | |
16 cat << END > $NGX_AUTOTEST.c | |
17 | |
18 #include <sys/types.h> | |
19 #include <sys/time.h> | |
4 | 20 $NGX_INCLUDE_UNISTD_H |
0 | 21 #include <signal.h> |
22 #include <sys/resource.h> | |
4 | 23 $NGX_INCLUDE_INTTYPES_H |
24 $NGX_INCLUDE_AUTO_CONFIG_H | |
0 | 25 |
26 int main() { | |
27 printf("%d", sizeof($ngx_type)); | |
28 return 0; | |
29 } | |
30 | |
31 END | |
32 | |
4 | 33 |
34 ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c" | |
35 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1" | |
36 | |
0 | 37 |
38 if [ -x $NGX_AUTOTEST ]; then | |
39 ngx_size=`$NGX_AUTOTEST` | |
40 echo " $ngx_size bytes" | |
41 fi | |
42 | |
4 | 43 |
44 rm -f $NGX_AUTOTEST | |
45 | |
0 | 46 |
47 case $ngx_size in | |
48 4) | |
49 if [ "$ngx_type"="long" ]; then | |
50 ngx_max_value=2147483647L | |
51 else | |
52 ngx_max_value=2147483647 | |
53 fi | |
54 | |
55 ngx_max_len='sizeof("-2147483648") - 1' | |
56 ;; | |
57 | |
58 8) | |
59 if [ "$ngx_type"="long long" ]; then | |
60 ngx_max_value=9223372036854775807LL | |
61 else | |
62 ngx_max_value=9223372036854775807L | |
63 fi | |
64 | |
65 ngx_max_len='sizeof("-9223372036854775808") - 1' | |
66 ;; | |
67 | |
68 *) | |
69 echo | |
70 echo "$0: error: can not detect $ngx_type size" | |
4 | 71 |
72 echo "----------" >> $NGX_AUTOCONF_ERR | |
73 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR | |
74 echo "----------" >> $NGX_AUTOCONF_ERR | |
75 echo $ngx_test >> $NGX_AUTOCONF_ERR | |
76 echo "----------" >> $NGX_AUTOCONF_ERR | |
77 | |
0 | 78 exit 1 |
79 esac | |
4 | 80 |