comparison auto/unix @ 253:b6793bc5034b

nginx-0.0.2-2004-02-09-10:46:43 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 09 Feb 2004 07:46:43 +0000
parents 84b1c672ec5a
children 8e39cab6abd5
comparison
equal deleted inserted replaced
252:84b1c672ec5a 253:b6793bc5034b
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 # POSIX types
20
21 ngx_inc="unistd.h"; . auto/inc
22 ngx_inc="inttypes.h"; . auto/inc
23
24 #POSIX types
25 20
26 NGX_AUTO_CONFIG="#include \"../$NGX_AUTO_CONFIG_H\"" 21 NGX_AUTO_CONFIG="#include \"../$NGX_AUTO_CONFIG_H\""
27 22
28 ngx_type="uint64_t" 23 ngx_type="uint64_t"
29 ngx_types="u_int64_t"; . auto/types/typedef 24 ngx_types="u_int64_t"; . auto/types/typedef
39 34
40 ngx_type="rlim_t" 35 ngx_type="rlim_t"
41 ngx_types="int"; . auto/types/typedef 36 ngx_types="int"; . auto/types/typedef
42 37
43 . auto/types/uintptr_t 38 . auto/types/uintptr_t
39
40
41 ngx_func="sin_len"
42 ngx_func_inc="#include <sys/types.h>
43 #include <sys/socket.h>
44 #include <netinet/in.h>"
45
46 ngx_func_test="struct sockaddr_in sa; sa.sin_len = 5"
47 . auto/func
44 48
45 49
46 # printf() formats 50 # printf() formats
47 51
48 CC_WARN=$CC_STRONG 52 CC_WARN=$CC_STRONG
68 72
69 # syscalls and libc calls 73 # syscalls and libc calls
70 74
71 ngx_func="pread()" 75 ngx_func="pread()"
72 ngx_func_inc= 76 ngx_func_inc=
73 ngx_func_test=" 77 ngx_func_test="char buf[1]; ssize_t n;
74 char buf[1]; 78 n = pread(0, buf, 1, 0)"
75 ssize_t n;
76 n = pread(0, buf, 1, 0)"
77 . auto/func 79 . auto/func
78 80
79 81
80 ngx_func="pwrite()" 82 ngx_func="pwrite()"
81 ngx_func_inc= 83 ngx_func_inc=
82 ngx_func_test=" 84 ngx_func_test="char buf[1]; ssize_t n;
83 char buf[1]; 85 n = pwrite(1, buf, 1, 0)"
84 ssize_t n;
85 n = pwrite(1, buf, 1, 0)"
86 . auto/func 86 . auto/func
87 87
88 88
89 #ngx_func="strsignal()" 89 #ngx_func="strsignal()"
90 #ngx_func_inc="#include <string.h>" 90 #ngx_func_inc="#include <string.h>"
92 #. auto/func 92 #. auto/func
93 93
94 94
95 ngx_func="strerror_r()" 95 ngx_func="strerror_r()"
96 ngx_func_inc="#include <string.h>" 96 ngx_func_inc="#include <string.h>"
97 ngx_func_test="char buf[20]; strerror_r(1, buf, 20)" 97 ngx_func_test="char buf[20]; int n; n = strerror_r(1, buf, 20)"
98 . auto/func 98 . auto/func
99 99
100 100
101 ngx_func="localtime_r()" 101 ngx_func="localtime_r()"
102 ngx_func_inc="#include <time.h>" 102 ngx_func_inc="#include <time.h>"