Mercurial > hg > nginx-vendor-current
annotate auto/types/sizeof @ 326:9fc4ab6673f9 NGINX_0_6_7
nginx 0.6.7
*) Change: now the paths specified in the "include",
"auth_basic_user_file", "perl_modules", "ssl_certificate",
"ssl_certificate_key", and "ssl_client_certificate" directives are
relative to directory of nginx configuration file nginx.conf, but
not to nginx prefix directory.
*) Change: the --sysconfdir=PATH option in configure was canceled.
*) Change: the special make target "upgrade1" was defined for online
upgrade of 0.1.x versions.
*) Feature: the "server_name" and "valid_referers" directives support
regular expressions.
*) Feature: the "server" directive in the "upstream" context supports
the "backup" parameter.
*) Feature: the ngx_http_perl_module supports the
$r->discard_request_body.
*) Feature: the "add_header Last-Modified ..." directive changes the
"Last-Modified" response header line.
*) Bugfix: if an response different than 200 was returned to an request
with body and connection went to the keep-alive state after the
request, then nginx returned 400 for the next request.
*) Bugfix: a segmentation fault occurred in worker process if invalid
address was set in the "auth_http" directive.
*) Bugfix: now nginx uses default listen backlog value 511 on all
platforms except FreeBSD.
Thanks to Jiang Hong.
*) Bugfix: a worker process may got caught in an endless loop, if an
"server" inside "upstream" block was marked as "down"; bug appeared
in 0.6.6.
*) Bugfix: now Solaris sendfilev() is not used to transfer the client
request body to FastCGI-server via the unix domain socket.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 15 Aug 2007 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 |