Mercurial > hg > nginx-vendor-current
annotate auto/types/sizeof @ 644:6f21ae02fb01 NGINX_1_1_6
nginx 1.1.6
*) Change in internal API: now module context data are cleared while
internal redirect to named location.
Requested by Yichun Zhang.
*) Change: if a server in an upstream failed, only one request will be
sent to it after fail_timeout; the server will be considered alive if
it will successfully respond to the request.
*) Change: now the 0x7F-0x1F characters are escaped as \xXX in an
access_log.
*) Feature: "proxy/fastcgi/scgi/uwsgi_ignore_headers" directives support
the following additional values: X-Accel-Limit-Rate,
X-Accel-Buffering, X-Accel-Charset.
*) Feature: decrease of memory consumption if SSL is used.
*) Bugfix: some UTF-8 characters were processed incorrectly.
Thanks to Alexey Kuts.
*) Bugfix: the ngx_http_rewrite_module directives specified at "server"
level were executed twice if no matching locations were defined.
*) Bugfix: a socket leak might occurred if "aio sendfile" was used.
*) Bugfix: connections with fast clients might be closed after
send_timeout if file AIO was used.
*) Bugfix: in the ngx_http_autoindex_module.
*) Bugfix: the module ngx_http_mp4_module did not support seeking on
32-bit platforms.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 17 Oct 2011 00:00:00 +0400 |
parents | 3866d57d9cfd |
children | d0f7a625f27c |
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 |
132 | 34 ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \ |
126 | 35 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs" |
36 | |
4 | 37 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1" |
38 | |
0 | 39 |
40 if [ -x $NGX_AUTOTEST ]; then | |
41 ngx_size=`$NGX_AUTOTEST` | |
42 echo " $ngx_size bytes" | |
43 fi | |
44 | |
4 | 45 |
46 rm -f $NGX_AUTOTEST | |
47 | |
0 | 48 |
49 case $ngx_size in | |
50 4) | |
51 if [ "$ngx_type"="long" ]; then | |
52 ngx_max_value=2147483647L | |
53 else | |
54 ngx_max_value=2147483647 | |
55 fi | |
56 | |
206 | 57 ngx_max_len='(sizeof("-2147483648") - 1)' |
0 | 58 ;; |
59 | |
60 8) | |
61 if [ "$ngx_type"="long long" ]; then | |
62 ngx_max_value=9223372036854775807LL | |
63 else | |
64 ngx_max_value=9223372036854775807L | |
65 fi | |
66 | |
206 | 67 ngx_max_len='(sizeof("-9223372036854775808") - 1)' |
0 | 68 ;; |
69 | |
70 *) | |
71 echo | |
72 echo "$0: error: can not detect $ngx_type size" | |
4 | 73 |
74 echo "----------" >> $NGX_AUTOCONF_ERR | |
75 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR | |
76 echo "----------" >> $NGX_AUTOCONF_ERR | |
77 echo $ngx_test >> $NGX_AUTOCONF_ERR | |
78 echo "----------" >> $NGX_AUTOCONF_ERR | |
79 | |
0 | 80 exit 1 |
81 esac | |
4 | 82 |