Skip to content

Commit 0861dea

Browse files
author
zfavourite99
committed
create the project
create the project
1 parent 8af84e2 commit 0861dea

File tree

373 files changed

+170407
-1
lines changed

Some content is hidden

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

373 files changed

+170407
-1
lines changed

CHANGES

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

CHANGES.ru

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

Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
default: build
3+
4+
clean:
5+
rm -rf Makefile objs
6+
7+
build:
8+
$(MAKE) -f objs/Makefile
9+
$(MAKE) -f objs/Makefile manpage
10+
11+
install:
12+
$(MAKE) -f objs/Makefile install
13+
14+
upgrade:
15+
/mnt/share/nginx-1.5.9/sbin/nginx -t
16+
17+
kill -USR2 `cat /mnt/share/nginx-1.5.9/logs/nginx.pid`
18+
sleep 1
19+
test -f /mnt/share/nginx-1.5.9/logs/nginx.pid.oldbin
20+
21+
kill -QUIT `cat /mnt/share/nginx-1.5.9/logs/nginx.pid.oldbin`

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+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# nginx-with-log-split
2-
nginx with log split.
2+
Nginx with log split. Based on nginx 1.5.9. Has changed the source code.

auto/cc/acc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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"
15+
MD5_OPT="$MD5_OPT -Ae"

auto/cc/bcc

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
ngx_binext=".exe"
66+
67+
ngx_long_start='@&&|
68+
'
69+
ngx_long_end='|'
70+
71+
ngx_regex_dirsep='\\'
72+
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 '\(clang\|LLVM\) version' 2>&1 \
9+
| sed -e 's/^.* version \(.*\)/\1/'`
10+
11+
echo " + clang version: $NGX_CLANG_VER"
12+
13+
have=NGX_COMPILER value="\"clang $NGX_CLANG_VER\"" . auto/define
14+
15+
16+
CC_TEST_FLAGS="-pipe"
17+
18+
19+
# optimizations
20+
21+
#NGX_CLANG_OPT="-O2"
22+
#NGX_CLANG_OPT="-Oz"
23+
NGX_CLANG_OPT="-O"
24+
25+
case $CPU in
26+
pentium)
27+
# optimize for Pentium
28+
CPU_OPT="-march=pentium"
29+
NGX_CPU_CACHE_LINE=32
30+
;;
31+
32+
pentiumpro | pentium3)
33+
# optimize for Pentium Pro, Pentium II and Pentium III
34+
CPU_OPT="-march=pentiumpro"
35+
NGX_CPU_CACHE_LINE=32
36+
;;
37+
38+
pentium4)
39+
# optimize for Pentium 4
40+
CPU_OPT="-march=pentium4"
41+
NGX_CPU_CACHE_LINE=128
42+
;;
43+
44+
athlon)
45+
# optimize for Athlon
46+
CPU_OPT="-march=athlon"
47+
NGX_CPU_CACHE_LINE=64
48+
;;
49+
50+
opteron)
51+
# optimize for Opteron
52+
CPU_OPT="-march=opteron"
53+
NGX_CPU_CACHE_LINE=64
54+
;;
55+
56+
esac
57+
58+
CC_AUX_FLAGS="$CC_AUX_FLAGS $CPU_OPT"
59+
60+
61+
CFLAGS="$CFLAGS -pipe $CPU_OPT"
62+
63+
if [ ".$PCRE_OPT" = "." ]; then
64+
PCRE_OPT="-O2 -pipe $CPU_OPT"
65+
else
66+
PCRE_OPT="$PCRE_OPT -pipe"
67+
fi
68+
69+
if [ ".$MD5_OPT" = "." ]; then
70+
MD5_OPT="-O2 -pipe $CPU_OPT"
71+
else
72+
MD5_OPT="$MD5_OPT -pipe"
73+
fi
74+
75+
if [ ".$ZLIB_OPT" = "." ]; then
76+
ZLIB_OPT="-O2 -pipe $CPU_OPT"
77+
else
78+
ZLIB_OPT="$ZLIB_OPT -pipe"
79+
fi
80+
81+
82+
# warnings
83+
84+
CFLAGS="$CFLAGS $NGX_CLANG_OPT -Wall -Wextra -Wpointer-arith"
85+
CFLAGS="$CFLAGS -Wconditional-uninitialized"
86+
#CFLAGS="$CFLAGS -Wmissing-prototypes"
87+
88+
# we have a lot of unused function arguments
89+
CFLAGS="$CFLAGS -Wno-unused-parameter"
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)