comparison auto/os/linux @ 18:6f8b0dc0f8dd NGINX_0_1_9

nginx 0.1.9 *) Bugfix: the proxied request was sent without arguments if the request contains "//", "/./", "/../" or "%XX". *) Bugfix: the large compressed responses may be transferred not completely. *) Bugfix: the files bigger than 2G was not transferred on Linux that does not support sendfile64(). *) Bugfix: while the build configuration on Linux the --with-poll_module parameter was required; bug appeared in 0.1.8.
author Igor Sysoev <http://sysoev.ru>
date Thu, 25 Nov 2004 00:00:00 +0300
parents 74b1868dd3cd
children 8b6db3bda591
comparison
equal deleted inserted replaced
17:9acb68bb0698 18:6f8b0dc0f8dd
35 35
36 # enable the rt signals on Linux 2.2.19 and onward 36 # enable the rt signals on Linux 2.2.19 and onward
37 37
38 if [ $version -ge 131609 -o $EVENT_RTSIG = YES ]; then 38 if [ $version -ge 131609 -o $EVENT_RTSIG = YES ]; then
39 echo " + using rt signals" 39 echo " + using rt signals"
40 have=HAVE_RTSIG . auto/have 40 have=NGX_HAVE_RTSIG . auto/have
41 have=NGX_HAVE_POLL . auto/have
41 EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE" 42 EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
42 CORE_SRCS="$CORE_SRCS $RTSIG_SRCS" 43 CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
43 EVENT_FOUND=YES 44 EVENT_FOUND=YES
44 fi 45 fi
45 46
46 47
47 # epoll, EPOLLET version 48 # epoll, EPOLLET version
48 49
49 ngx_feature="epoll" 50 ngx_feature="epoll"
50 ngx_feature_name="epoll" 51 ngx_feature_name="NGX_HAVE_EPOLL"
51 ngx_feature_run=no 52 ngx_feature_run=no
52 ngx_feature_incs="#include <sys/epoll.h>" 53 ngx_feature_incs="#include <sys/epoll.h>"
53 ngx_feature_libs= 54 ngx_feature_libs=
54 ngx_feature_test="int efd = 0, fd = 1, n; 55 ngx_feature_test="int efd = 0, fd = 1, n;
55 struct epoll_event ee; 56 struct epoll_event ee;
58 efd = epoll_create(100); 59 efd = epoll_create(100);
59 if (efd == -1) return 1;" 60 if (efd == -1) return 1;"
60 . auto/feature 61 . auto/feature
61 62
62 if [ $ngx_found = yes ]; then 63 if [ $ngx_found = yes ]; then
63 have=HAVE_EPOLL . auto/have 64 have=NGX_HAVE_CLEAR_EVENT . auto/have
64 have=HAVE_CLEAR_EVENT . auto/have
65 CORE_SRCS="$CORE_SRCS $EPOLL_SRCS" 65 CORE_SRCS="$CORE_SRCS $EPOLL_SRCS"
66 EVENT_MODULES="$EVENT_MODULES $EPOLL_MODULE" 66 EVENT_MODULES="$EVENT_MODULES $EPOLL_MODULE"
67 EVENT_FOUND=YES 67 EVENT_FOUND=YES
68 fi 68 fi
69 69
70 70
71 # sendfile() 71 # sendfile()
72 72
73 CC_AUX_FLAGS="-D_GNU_SOURCE" 73 CC_AUX_FLAGS="-D_GNU_SOURCE"
74 ngx_feature="sendfile()" 74 ngx_feature="sendfile()"
75 ngx_feature_name="sendfile" 75 ngx_feature_name="NGX_HAVE_SENDFILE"
76 ngx_feature_run=no 76 ngx_feature_run=no
77 ngx_feature_incs="#include <sys/sendfile.h>" 77 ngx_feature_incs="#include <sys/sendfile.h>"
78 ngx_feature_libs= 78 ngx_feature_libs=
79 ngx_feature_test="int s = 0, fd = 1; 79 ngx_feature_test="int s = 0, fd = 1;
80 ssize_t n; off_t off = 0; 80 ssize_t n; off_t off = 0;
88 88
89 # sendfile64() 89 # sendfile64()
90 90
91 CC_AUX_FLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" 91 CC_AUX_FLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
92 ngx_feature="sendfile64()" 92 ngx_feature="sendfile64()"
93 ngx_feature_name="HAVE_SENDFILE64" 93 ngx_feature_name="NGX_HAVE_SENDFILE64"
94 ngx_feature_run=no 94 ngx_feature_run=no
95 ngx_feature_incs="#include <sys/sendfile.h>" 95 ngx_feature_incs="#include <sys/sendfile.h>"
96 ngx_feature_libs= 96 ngx_feature_libs=
97 ngx_feature_test="int s = 0, fd = 1; 97 ngx_feature_test="int s = 0, fd = 1;
98 ssize_t n; off_t off = 0; 98 ssize_t n; off_t off = 0;
103 ngx_include="sys/prctl.h"; . auto/include 103 ngx_include="sys/prctl.h"; . auto/include
104 104
105 # prctl(PR_SET_DUMPABLE) 105 # prctl(PR_SET_DUMPABLE)
106 106
107 ngx_feature="prctl(PR_SET_DUMPABLE)" 107 ngx_feature="prctl(PR_SET_DUMPABLE)"
108 ngx_feature_name="HAVE_PR_SET_DUMPABLE" 108 ngx_feature_name="NGX_HAVE_PR_SET_DUMPABLE"
109 ngx_feature_run=yes 109 ngx_feature_run=yes
110 ngx_feature_incs="#include <sys/prctl.h>" 110 ngx_feature_incs="#include <sys/prctl.h>"
111 ngx_feature_libs= 111 ngx_feature_libs=
112 ngx_feature_test="if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) == -1) return 1" 112 ngx_feature_test="if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) == -1) return 1"
113 . auto/feature 113 . auto/feature