nginx-quic/auto/unix

136 lines
2.9 KiB
Plaintext
Raw Normal View History

2003-11-25 17:44:56 -03:00
CC_WARN=$CC
2003-12-14 17:10:27 -03:00
ngx_fmt_collect=yes
2003-11-25 17:44:56 -03:00
2003-11-26 12:42:18 -03:00
# C types
2004-02-24 14:31:46 -03:00
ngx_type="int"; . auto/types/sizeof
2003-12-14 17:10:27 -03:00
ngx_formats="%d"; . auto/fmt/fmt
2003-11-25 17:44:56 -03:00
2004-02-24 14:31:46 -03:00
ngx_type="long"; . auto/types/sizeof
2003-12-14 17:10:27 -03:00
ngx_formats="%ld"; . auto/fmt/fmt
2003-11-25 17:44:56 -03:00
2004-02-24 14:31:46 -03:00
ngx_type="long long"; . auto/types/sizeof
2003-12-14 17:10:27 -03:00
ngx_formats="%lld %qd"; . auto/fmt/fmt
2003-11-25 17:44:56 -03:00
2003-12-14 17:10:27 -03:00
ngx_type="void *"; . auto/types/sizeof; ngx_ptr_bytes=$ngx_bytes
2004-02-24 14:31:46 -03:00
ngx_fmt_name=PTR_FMT;
eval ngx_formats=\${ngx_${ngx_bytes}_fmt}; . auto/fmt/ptrfmt
2003-11-25 17:44:56 -03:00
2004-02-09 04:46:43 -03:00
# POSIX types
2003-11-26 12:42:18 -03:00
2003-12-14 17:10:27 -03:00
NGX_AUTO_CONFIG="#include \"../$NGX_AUTO_CONFIG_H\""
2003-11-26 12:42:18 -03:00
2003-12-14 17:10:27 -03:00
ngx_type="uint64_t"
ngx_types="u_int64_t"; . auto/types/typedef
2003-11-26 12:42:18 -03:00
2004-03-04 13:34:23 -03:00
ngx_type="sig_atomic_t"
ngx_types="int"; . auto/types/typedef
2004-02-05 13:58:36 -03:00
2003-12-14 17:10:27 -03:00
ngx_type="socklen_t"
ngx_types="uint32_t"; . auto/types/typedef
2003-11-26 12:42:18 -03:00
2003-12-14 17:10:27 -03:00
ngx_type="in_addr_t"
ngx_types="uint32_t"; . auto/types/typedef
2003-11-26 12:42:18 -03:00
2003-12-14 17:10:27 -03:00
ngx_type="rlim_t"
ngx_types="int"; . auto/types/typedef
2003-11-26 12:42:18 -03:00
. auto/types/uintptr_t
2004-02-09 04:46:43 -03:00
ngx_func="sin_len"
2004-06-15 13:47:16 -04:00
ngx_func_inc="#include <sys/socket.h>
2004-02-09 04:46:43 -03:00
#include <netinet/in.h>"
ngx_func_test="struct sockaddr_in sa; sa.sin_len = 5"
. auto/func
2003-11-26 12:42:18 -03:00
# printf() formats
2003-11-25 17:44:56 -03:00
CC_WARN=$CC_STRONG
2003-12-14 17:10:27 -03:00
ngx_fmt_collect=no
2003-11-25 17:44:56 -03:00
2003-12-14 17:10:27 -03:00
ngx_fmt_name=OFF_T_FMT; ngx_type="off_t"; . auto/types/sizeof
eval ngx_formats=\${ngx_${ngx_bytes}_fmt}; . auto/fmt/fmt
2003-11-25 17:44:56 -03:00
2003-12-14 17:10:27 -03:00
ngx_fmt_name=TIME_T_FMT; ngx_type="time_t"; . auto/types/sizeof
eval ngx_formats=\${ngx_${ngx_bytes}_fmt}; . auto/fmt/fmt
2003-11-25 17:44:56 -03:00
2003-12-14 17:10:27 -03:00
ngx_fmt_name=SIZE_T_FMT; ngx_type="size_t"; . auto/types/sizeof
eval ngx_formats=\${ngx_${ngx_bytes}_fmt}; . auto/fmt/fmt
2003-11-25 17:44:56 -03:00
2003-12-14 17:10:27 -03:00
ngx_fmt_name=SIZE_T_X_FMT; . auto/fmt/xfmt
2003-11-25 17:44:56 -03:00
2003-12-14 17:10:27 -03:00
ngx_fmt_name=PID_T_FMT; ngx_type="pid_t"; . auto/types/sizeof
eval ngx_formats=\${ngx_${ngx_bytes}_fmt}; . auto/fmt/fmt
2003-11-25 17:44:56 -03:00
2003-12-14 17:10:27 -03:00
ngx_fmt_name=RLIM_T_FMT; ngx_type="rlim_t"; . auto/types/sizeof
eval ngx_formats=\${ngx_${ngx_bytes}_fmt}; . auto/fmt/fmt
2003-11-25 17:44:56 -03:00
2003-11-26 12:42:18 -03:00
# syscalls and libc calls
2003-11-25 17:44:56 -03:00
2003-12-14 17:10:27 -03:00
ngx_func="pread()"
ngx_func_inc=
2004-02-09 04:46:43 -03:00
ngx_func_test="char buf[1]; ssize_t n;
n = pread(0, buf, 1, 0)"
2003-12-14 17:10:27 -03:00
. auto/func
2003-11-25 17:44:56 -03:00
2003-12-14 17:10:27 -03:00
ngx_func="pwrite()"
ngx_func_inc=
2004-02-09 04:46:43 -03:00
ngx_func_test="char buf[1]; ssize_t n;
n = pwrite(1, buf, 1, 0)"
2003-12-14 17:10:27 -03:00
. auto/func
2003-11-25 17:44:56 -03:00
2004-01-05 17:55:48 -03:00
#ngx_func="strsignal()"
#ngx_func_inc="#include <string.h>"
#ngx_func_test="char *s = strsignal(1)"
#. auto/func
2003-12-19 05:15:11 -03:00
2003-12-14 17:10:27 -03:00
ngx_func="strerror_r()"
ngx_func_inc="#include <string.h>"
2004-02-09 04:46:43 -03:00
ngx_func_test="char buf[20]; int n; n = strerror_r(1, buf, 20)"
2003-12-14 17:10:27 -03:00
. auto/func
2004-02-10 13:23:38 -03:00
ngx_func="gnu_strerror_r()"
ngx_func_inc="#include <string.h>"
ngx_func_test="char buf[20], *str; str = strerror_r(1, buf, 20)"
. auto/func
2003-12-14 17:10:27 -03:00
ngx_func="localtime_r()"
ngx_func_inc="#include <time.h>"
ngx_func_test="struct tm t; time_t c=0; localtime_r(&c, &t)"
. auto/func
2004-06-06 15:49:18 -04:00
ngx_func="posix_memalign()"
ngx_func_inc="#include <stdlib.h>"
ngx_func_test="void *p, int n; n = posix_memalign(&p, 4096, 4096)"
. auto/func
ngx_func="memalign()"
ngx_func_inc="#include <stdlib.h>"
ngx_func_test="void *p; p = memalign(4096, 4096)"
. auto/func
2004-06-15 13:47:16 -04:00
ngx_func="msghdr.msg_control"
ngx_func_inc="#include <sys/socket.h>"
ngx_func_test="struct msghdr msg; msg.msg_control = NULL"
. auto/func
ngx_func="FIONBIO"
ngx_func_inc="#include <sys/filio.h>"
ngx_func_test="int i; i = FIONBIO"
. auto/func