comparison auto/unix @ 196:11fbd0fc041d

nginx-0.0.1-2003-11-26-18:42:18 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 26 Nov 2003 15:42:18 +0000
parents 8dee38ea9117
children 00cafae0bdf1
comparison
equal deleted inserted replaced
195:8dee38ea9117 196:11fbd0fc041d
1 1
2 CC_WARN=$CC 2 CC_WARN=$CC
3 NGX_FMT_COLLECT=YES 3 NGX_FMT_COLLECT=YES
4
5 # C types
4 6
5 NGX_TYPE="int"; . auto/types/sizeof; 7 NGX_TYPE="int"; . auto/types/sizeof;
6 NGX_FORMATS="%d"; . auto/fmt/fmt 8 NGX_FORMATS="%d"; . auto/fmt/fmt
7 9
8 NGX_TYPE="long"; . auto/types/sizeof; 10 NGX_TYPE="long"; . auto/types/sizeof;
11 NGX_TYPE="long long"; . auto/types/sizeof; 13 NGX_TYPE="long long"; . auto/types/sizeof;
12 NGX_FORMATS="%lld %qd"; . auto/fmt/fmt 14 NGX_FORMATS="%lld %qd"; . auto/fmt/fmt
13 15
14 NGX_TYPE="void *"; . auto/types/sizeof; NGX_PTR_BYTES=$NGX_BYTES 16 NGX_TYPE="void *"; . auto/types/sizeof; NGX_PTR_BYTES=$NGX_BYTES
15 17
18
19 # headers
20
21 NGX_INC="unistd.h"; . auto/inc
22 NGX_INC="inttypes.h"; . auto/inc
23
24 #POSIX types
25
26 NGX_AUTO_CONFIG="#include \"$NGX_AUTO_CONFIG_H\""
27
28 NGX_TYPE="uint64_t"
29 NGX_TYPES="u_int64_t"; . auto/types/typedef
30
31 NGX_TYPE="socklen_t"
32 NGX_TYPES="uint32_t"; . auto/types/typedef
33
34 NGX_TYPE="in_addr_t"
35 NGX_TYPES="uint32_t"; . auto/types/typedef
36
37 NGX_TYPE="rlim_t"
38 NGX_TYPES="int"; . auto/types/typedef
39
40 . auto/types/uintptr_t
41
42
43 # printf() formats
16 44
17 CC_WARN=$CC_STRONG 45 CC_WARN=$CC_STRONG
18 NGX_FMT_COLLECT=NO 46 NGX_FMT_COLLECT=NO
19 47
20 NGX_FMT_NAME=OFF_T_FMT 48 NGX_FMT_NAME=OFF_T_FMT
38 NGX_FMT_NAME=RLIM_T_FMT 66 NGX_FMT_NAME=RLIM_T_FMT
39 NGX_TYPE="rlim_t"; . auto/types/sizeof 67 NGX_TYPE="rlim_t"; . auto/types/sizeof
40 eval NGX_FORMATS=\${NGX_${NGX_BYTES}_FMT}; . auto/fmt/fmt 68 eval NGX_FORMATS=\${NGX_${NGX_BYTES}_FMT}; . auto/fmt/fmt
41 69
42 70
43 CC_WARN=$CC 71 # syscalls and libc calls
44
45 NGX_TYPE="uint64_t"
46 NGX_TYPES="u_int64_t"; . auto/types/typedef
47
48 NGX_TYPE="socklen_t"
49 NGX_TYPES="u_int32_t"; . auto/types/typedef
50
51 . auto/types/uintptr_t
52
53 72
54 NGX_FUNC_INC= 73 NGX_FUNC_INC=
55 NGX_FUNC_TEST="int fd = 0; char buf[1]; size_t size = 1; 74 NGX_FUNC_TEST="int fd = 0; char buf[1]; size_t size = 1;
56 ssize_t n; off_t offset = 0; 75 ssize_t n; off_t offset = 0;
57 n = pread(fd, buf, size, offset)" 76 n = pread(fd, buf, size, offset)"
58 NGX_HAVE=HAVE_PREAD; NGX_FUNC="pread()"; . auto/func 77 NGX_FUNC="pread()"; . auto/func
59 78
60 79
61 NGX_FUNC_INC= 80 NGX_FUNC_INC=
62 NGX_FUNC_TEST="int fd = 1; char buf[1]; size_t size = 1; 81 NGX_FUNC_TEST="int fd = 1; char buf[1]; size_t size = 1;
63 ssize_t n; off_t offset = 0; 82 ssize_t n; off_t offset = 0;
64 n = pwrite(fd, buf, size, offset)" 83 n = pwrite(fd, buf, size, offset)"
65 NGX_HAVE=HAVE_PWRITE; NGX_FUNC="pwrite()"; . auto/func 84 NGX_FUNC="pwrite()"; . auto/func
66 85
67 86
68 NGX_FUNC_INC="#include <time.h>" 87 NGX_FUNC_INC="#include <time.h>"
69 NGX_FUNC_TEST="struct tm t; time_t c=0; localtime_r(&c, &t)" 88 NGX_FUNC_TEST="struct tm t; time_t c=0; localtime_r(&c, &t)"
70 NGX_HAVE=HAVE_LOCALTIME_R; NGX_FUNC="localtime_r()"; . auto/func 89 NGX_FUNC="localtime_r()"; . auto/func