Skip to content

Commit fe84d28

Browse files
committed
stable-1.26
1 parent ad3ada9 commit fe84d28

File tree

496 files changed

+31000
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

496 files changed

+31000
-0
lines changed

CHANGES

Lines changed: 9166 additions & 0 deletions
Large diffs are not rendered by default.

CHANGES.ru

Lines changed: 9329 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (C) 2002-2021 Igor Sysoev
3+
* Copyright (C) 2011-2024 Nginx, Inc.
4+
* All rights reserved.
5+
*
6+
* Redistribution and use in source and binary forms, with or without
7+
* modification, are permitted provided that the following conditions
8+
* are met:
9+
* 1. Redistributions of source code must retain the above copyright
10+
* notice, this list of conditions and the following disclaimer.
11+
* 2. Redistributions in binary form must reproduce the above copyright
12+
* notice, this list of conditions and the following disclaimer in the
13+
* documentation and/or other materials provided with the distribution.
14+
*
15+
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18+
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25+
* SUCH DAMAGE.
26+
*/

README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
Documentation is available at http://nginx.org
3+

auto/cc/acc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Copyright (C) Igor Sysoev
3+
# Copyright (C) Nginx, Inc.
4+
5+
6+
# aCC: HP ANSI C++ B3910B A.03.55.02
7+
8+
# C89 mode
9+
10+
CFLAGS="$CFLAGS -Ae"
11+
CC_TEST_FLAGS="-Ae"
12+
13+
PCRE_OPT="$PCRE_OPT -Ae"
14+
ZLIB_OPT="$ZLIB_OPT -Ae"

auto/cc/bcc

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
2+
# Copyright (C) Igor Sysoev
3+
# Copyright (C) Nginx, Inc.
4+
5+
6+
# Borland C++ 5.5
7+
8+
# optimizations
9+
10+
# maximize speed
11+
CFLAGS="$CFLAGS -O2"
12+
13+
case $CPU in
14+
pentium)
15+
# optimize for Pentium and Athlon
16+
CPU_OPT="-5"
17+
;;
18+
19+
pentiumpro)
20+
# optimize for Pentium Pro, Pentium II and Pentium III
21+
CPU_OPT="-6"
22+
;;
23+
esac
24+
25+
# __stdcall
26+
#CPU_OPT="$CPU_OPT -ps"
27+
# __fastcall
28+
#CPU_OPT="$CPU_OPT -pr"
29+
30+
CFLAGS="$CFLAGS $CPU_OPT"
31+
32+
# multithreaded
33+
CFLAGS="$CFLAGS -tWM"
34+
35+
# stop on warning
36+
CFLAGS="$CFLAGS -w!"
37+
38+
# disable logo
39+
CFLAGS="$CFLAGS -q"
40+
41+
42+
# precompiled headers
43+
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm"
44+
NGX_PCH="$NGX_OBJS/ngx_config.csm"
45+
NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm"
46+
NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm"
47+
48+
49+
# Win32 GUI mode application
50+
#LINK="\$(CC) -laa"
51+
52+
53+
# the resource file
54+
NGX_RES="$NGX_OBJS/nginx.res"
55+
NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
56+
# the pragma allows to link the resource file using bcc32 and
57+
# to avoid the direct ilink32 calling and the c0w32.obj's WinMain/main problem
58+
NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\""
59+
60+
61+
ngx_include_opt="-I"
62+
ngx_objout="-o"
63+
ngx_binout="-e"
64+
ngx_objext="obj"
65+
66+
ngx_long_start='@&&|
67+
'
68+
ngx_long_end='|'
69+
70+
ngx_regex_dirsep='\\'
71+
ngx_dirsep="\\"

auto/cc/ccc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
# Copyright (C) Igor Sysoev
3+
# Copyright (C) Nginx, Inc.
4+
5+
6+
# Compaq C V6.5-207
7+
8+
ngx_include_opt="-I"
9+
10+
# warnings
11+
12+
CFLAGS="$CFLAGS -msg_enable level6 -msg_fatal level6"
13+
14+
CFLAGS="$CFLAGS -msg_disable unknownmacro"
15+
CFLAGS="$CFLAGS -msg_disable unusedincl"
16+
CFLAGS="$CFLAGS -msg_disable unnecincl"
17+
CFLAGS="$CFLAGS -msg_disable nestincl"
18+
CFLAGS="$CFLAGS -msg_disable strctpadding"
19+
CFLAGS="$CFLAGS -msg_disable ansialiascast"
20+
CFLAGS="$CFLAGS -msg_disable inlinestoclsmod"
21+
CFLAGS="$CFLAGS -msg_disable cxxkeyword"
22+
CFLAGS="$CFLAGS -msg_disable longlongsufx"
23+
CFLAGS="$CFLAGS -msg_disable valuepres"
24+
25+
# STUB
26+
CFLAGS="$CFLAGS -msg_disable truncintcast"
27+
CFLAGS="$CFLAGS -msg_disable trunclongcast"
28+
29+
CFLAGS="$CFLAGS -msg_disable truncintasn"
30+
CFLAGS="$CFLAGS -msg_disable trunclongint"
31+
CFLAGS="$CFLAGS -msg_disable intconcastsgn"
32+
CFLAGS="$CFLAGS -msg_disable intconstsign"
33+
CFLAGS="$CFLAGS -msg_disable switchlong"
34+
CFLAGS="$CFLAGS -msg_disable subscrbounds2"
35+
36+
CFLAGS="$CFLAGS -msg_disable hexoctunsign"
37+
38+
CFLAGS="$CFLAGS -msg_disable ignorecallval"
39+
CFLAGS="$CFLAGS -msg_disable nonstandcast"
40+
CFLAGS="$CFLAGS -msg_disable embedcomment"
41+
CFLAGS="$CFLAGS -msg_disable unreachcode"
42+
CFLAGS="$CFLAGS -msg_disable questcompare2"
43+
CFLAGS="$CFLAGS -msg_disable unusedtop"
44+
CFLAGS="$CFLAGS -msg_disable unrefdecl"
45+
46+
CFLAGS="$CFLAGS -msg_disable bitnotint"

auto/cc/clang

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
2+
# Copyright (C) Nginx, Inc.
3+
4+
5+
# clang
6+
7+
8+
NGX_CLANG_VER=`$CC -v 2>&1 | grep 'version' 2>&1 \
9+
| sed -n -e 's/^.*clang version \(.*\)/\1/p' \
10+
-e 's/^.*LLVM version \(.*\)/\1/p'`
11+
12+
echo " + clang version: $NGX_CLANG_VER"
13+
14+
have=NGX_COMPILER value="\"clang $NGX_CLANG_VER\"" . auto/define
15+
16+
17+
CC_TEST_FLAGS="-pipe"
18+
19+
20+
# optimizations
21+
22+
#NGX_CLANG_OPT="-O2"
23+
#NGX_CLANG_OPT="-Oz"
24+
NGX_CLANG_OPT="-O"
25+
26+
case $CPU in
27+
pentium)
28+
# optimize for Pentium
29+
CPU_OPT="-march=pentium"
30+
NGX_CPU_CACHE_LINE=32
31+
;;
32+
33+
pentiumpro | pentium3)
34+
# optimize for Pentium Pro, Pentium II and Pentium III
35+
CPU_OPT="-march=pentiumpro"
36+
NGX_CPU_CACHE_LINE=32
37+
;;
38+
39+
pentium4)
40+
# optimize for Pentium 4
41+
CPU_OPT="-march=pentium4"
42+
NGX_CPU_CACHE_LINE=128
43+
;;
44+
45+
athlon)
46+
# optimize for Athlon
47+
CPU_OPT="-march=athlon"
48+
NGX_CPU_CACHE_LINE=64
49+
;;
50+
51+
opteron)
52+
# optimize for Opteron
53+
CPU_OPT="-march=opteron"
54+
NGX_CPU_CACHE_LINE=64
55+
;;
56+
57+
esac
58+
59+
CC_AUX_FLAGS="$CC_AUX_FLAGS $CPU_OPT"
60+
61+
62+
CFLAGS="$CFLAGS -pipe $CPU_OPT"
63+
64+
if [ ".$PCRE_OPT" = "." ]; then
65+
PCRE_OPT="-O2 -pipe $CPU_OPT"
66+
else
67+
PCRE_OPT="$PCRE_OPT -pipe"
68+
fi
69+
70+
if [ ".$ZLIB_OPT" = "." ]; then
71+
ZLIB_OPT="-O2 -pipe $CPU_OPT"
72+
else
73+
ZLIB_OPT="$ZLIB_OPT -pipe"
74+
fi
75+
76+
77+
# warnings
78+
79+
CFLAGS="$CFLAGS $NGX_CLANG_OPT -Wall -Wextra -Wpointer-arith"
80+
CFLAGS="$CFLAGS -Wconditional-uninitialized"
81+
#CFLAGS="$CFLAGS -Wmissing-prototypes"
82+
83+
# we have a lot of unused function arguments
84+
CFLAGS="$CFLAGS -Wno-unused-parameter"
85+
86+
# deprecated system OpenSSL library on OS X
87+
if [ "$NGX_SYSTEM" = "Darwin" ]; then
88+
CFLAGS="$CFLAGS -Wno-deprecated-declarations"
89+
fi
90+
91+
# stop on warning
92+
CFLAGS="$CFLAGS -Werror"
93+
94+
# debug
95+
CFLAGS="$CFLAGS -g"
96+
97+
if [ ".$CPP" = "." ]; then
98+
CPP="$CC -E"
99+
fi

0 commit comments

Comments
 (0)