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