mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
nginx-0.1.2-RELEASE import
*) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS
options in configure.
*) Feature: the server_name directive supports *.domain.tld.
*) Bugfix: the portability improvements.
*) Bugfix: if configuration file was set in command line, the
reconfiguration was impossible; the bug had appeared in 0.1.1.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
*) Bugfix: with sendfile the response was not recoded according to the
charset module directives; the bug had appeared in 0.1.1.
*) Bugfix: very seldom bug in the kqueue processing.
*) Bugfix: the gzip module compressed the proxied responses that was
already compressed.
This commit is contained in:
139
auto/unix
139
auto/unix
@@ -2,7 +2,7 @@
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CC_WARN=$CC
|
||||
CC_WARN=
|
||||
ngx_fmt_collect=yes
|
||||
|
||||
# C types
|
||||
@@ -23,7 +23,7 @@ eval ngx_formats=\${ngx_${ngx_ptr_size}_fmt}; . auto/fmt/ptrfmt
|
||||
|
||||
# POSIX types
|
||||
|
||||
NGX_AUTO_CONFIG="#include \"../$NGX_AUTO_CONFIG_H\""
|
||||
NGX_INCLUDE_AUTO_CONFIG_H="#include \"../$NGX_AUTO_CONFIG_H\""
|
||||
|
||||
ngx_type="uint64_t"; ngx_types="u_int64_t"; . auto/types/typedef
|
||||
|
||||
@@ -72,75 +72,98 @@ eval ngx_formats=\${ngx_${ngx_size}_fmt}; . auto/fmt/fmt
|
||||
|
||||
# syscalls, libc calls and some features
|
||||
|
||||
|
||||
ngx_feature="pread()"
|
||||
ngx_feature_name="pread"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs=
|
||||
ngx_feature_libs=
|
||||
ngx_func_libs=
|
||||
ngx_feature_test="char buf[1]; ssize_t n; n = pread(0, buf, 1, 0)"
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_func="pread()"
|
||||
ngx_func_inc=
|
||||
ngx_func_test="char buf[1]; ssize_t n; n = pread(0, buf, 1, 0)"
|
||||
. auto/func
|
||||
ngx_feature="pwrite()"
|
||||
ngx_feature_name="pwrite"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs=
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="char buf[1]; ssize_t n; n = pwrite(1, buf, 1, 0)"
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_func="pwrite()"
|
||||
ngx_func_inc=
|
||||
ngx_func_test="char buf[1]; ssize_t n; n = pwrite(1, buf, 1, 0)"
|
||||
. auto/func
|
||||
ngx_feature="strerror_r()"
|
||||
ngx_feature_name="strerror_r"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <string.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="char buf[20]; int n; n = strerror_r(1, buf, 20)"
|
||||
. auto/feature
|
||||
|
||||
|
||||
#ngx_func="strsignal()"
|
||||
#ngx_func_inc="#include <string.h>"
|
||||
#ngx_func_test="char *s = strsignal(1)"
|
||||
#. auto/func
|
||||
ngx_feature="gnu_strerror_r()"
|
||||
ngx_feature_name="gnu_strerror_r"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <string.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="char buf[20], *str; str = strerror_r(1, buf, 20)"
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_func="strerror_r()"
|
||||
ngx_func_inc="#include <string.h>"
|
||||
ngx_func_test="char buf[20]; int n; n = strerror_r(1, buf, 20)"
|
||||
. auto/func
|
||||
ngx_feature="localtime_r()"
|
||||
ngx_feature_name="localtime_r"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <time.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="struct tm t; time_t c=0; localtime_r(&c, &t)"
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_func="gnu_strerror_r()"
|
||||
ngx_func_inc="#include <string.h>"
|
||||
ngx_func_test="char buf[20], *str; str = strerror_r(1, buf, 20)"
|
||||
. auto/func
|
||||
ngx_feature="posix_memalign()"
|
||||
ngx_feature_name="posix_memalign"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <stdlib.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="void *p; int n; n = posix_memalign(&p, 4096, 4096)"
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_func="localtime_r()"
|
||||
ngx_func_inc="#include <time.h>"
|
||||
ngx_func_test="struct tm t; time_t c=0; localtime_r(&c, &t)"
|
||||
. auto/func
|
||||
ngx_feature="memalign()"
|
||||
ngx_feature_name="memalign"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <stdlib.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="void *p; p = memalign(4096, 4096)"
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_func="posix_memalign()"
|
||||
ngx_func_inc="#include <stdlib.h>"
|
||||
ngx_func_test="void *p; int n; n = posix_memalign(&p, 4096, 4096)"
|
||||
. auto/func
|
||||
|
||||
|
||||
ngx_func="memalign()"
|
||||
ngx_func_inc="#include <stdlib.h>"
|
||||
ngx_func_test="void *p; p = memalign(4096, 4096)"
|
||||
. auto/func
|
||||
|
||||
ngx_feature="sched_yield()"
|
||||
ngx_feature_name="HAVE_SCHED_YIELD"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sched.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="sched_yield()"
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
|
||||
ngx_feature_name="MAP_ANON"
|
||||
ngx_feature_inc="#include <sys/mman.h>"
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <sys/mman.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="void *p;
|
||||
p = mmap(NULL, 4096, PROT_READ|PROT_WRITE,
|
||||
MAP_ANON|MAP_SHARED, -1, 0);
|
||||
if (p == MAP_FAILED) return 1;"
|
||||
ngx_feature_run=yes
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_feature='mmap("/dev/zero", MAP_SHARED)'
|
||||
ngx_feature_name="MAP_DEVZERO"
|
||||
ngx_feature_inc="#include <sys/mman.h>
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test='void *p; int fd;
|
||||
fd = open("/dev/zero", O_RDWR);
|
||||
p = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
|
||||
@@ -150,8 +173,10 @@ ngx_feature_test='void *p; int fd;
|
||||
|
||||
ngx_feature="System V shared memory"
|
||||
ngx_feature_name="SYSVSHM"
|
||||
ngx_feature_inc="#include <sys/ipc.h>
|
||||
ngx_feature_run=yes
|
||||
ngx_feature_incs="#include <sys/ipc.h>
|
||||
#include <sys/shm.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="int id;
|
||||
id = shmget(IPC_PRIVATE, 4096, (SHM_R|SHM_W|IPC_CREAT));
|
||||
if (id == -1) return 1;
|
||||
@@ -159,41 +184,39 @@ ngx_feature_test="int id;
|
||||
. auto/feature
|
||||
|
||||
|
||||
|
||||
ngx_feature="struct sockaddr_in.sin_len"
|
||||
ngx_feature_name="sin_len"
|
||||
ngx_feature_inc="#include <sys/socket.h>
|
||||
#include <netinet/in.h>"
|
||||
ngx_feature_test="struct sockaddr_in sa; sa.sin_len = 5"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/socket.h>
|
||||
#include <netinet/in.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="struct sockaddr_in sa; sa.sin_len = 5"
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_feature="struct msghdr.msg_control"
|
||||
ngx_feature_name="msghdr_msg_control"
|
||||
ngx_feature_inc="#include <sys/socket.h>"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/socket.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="struct msghdr msg; msg.msg_control = NULL"
|
||||
. auto/feature
|
||||
|
||||
|
||||
case $PLATFORM in
|
||||
Linux:*)
|
||||
ngx_feature_inc="#include <sys/ioctl.h>"
|
||||
;;
|
||||
|
||||
*)
|
||||
ngx_feature_inc="#include <sys/filio.h>"
|
||||
;;
|
||||
esac
|
||||
|
||||
ngx_feature="ioctl(FIONBIO)"
|
||||
ngx_feature_name="FIONBIO"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <sys/ioctl.h>
|
||||
$NGX_INCLUDE_SYS_FILIO_H"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="int i; i = FIONBIO"
|
||||
. auto/feature
|
||||
|
||||
|
||||
ngx_feature="struct tm.tm_gmtoff"
|
||||
ngx_feature_name="gmtoff"
|
||||
ngx_feature_inc="#include <time.h>"
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <time.h>"
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="struct tm tm; tm.tm_gmtoff = 0"
|
||||
. auto/feature
|
||||
|
||||
Reference in New Issue
Block a user