comparison src/os/unix/ngx_linux_config.h @ 195:8dee38ea9117

nginx-0.0.1-2003-11-25-23:44:56 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 25 Nov 2003 20:44:56 +0000
parents c966c09be66b
children 11fbd0fc041d
comparison
equal deleted inserted replaced
194:2357fa41738a 195:8dee38ea9117
1 #ifndef _NGX_LINUX_CONFIG_H_INCLUDED_ 1 #ifndef _NGX_LINUX_CONFIG_H_INCLUDED_
2 #define _NGX_LINUX_CONFIG_H_INCLUDED_ 2 #define _NGX_LINUX_CONFIG_H_INCLUDED_
3 3
4 4
5 #define _GNU_SOURCE /* pread, pwrite, gethostname, bzero */ 5 #define _GNU_SOURCE /* pread(), pwrite(), gethostname() */
6 6
7 #define _FILE_OFFSET_BITS 64 7 #define _FILE_OFFSET_BITS 64
8 #define _LARGEFILE_SOURCE 8 #define _LARGEFILE_SOURCE
9 9
10 10
11 #include <unistd.h> 11 #include <unistd.h>
12 #include <stddef.h> /* offsetof */ 12 #include <stddef.h> /* offsetof() */
13 #include <stdlib.h> 13 #include <stdlib.h>
14 #include <stdarg.h> 14 #include <stdarg.h>
15 #include <stdio.h> 15 #include <stdio.h>
16 #include <fcntl.h> 16 #include <fcntl.h>
17 #include <signal.h> 17 #include <signal.h>
25 #include <sys/resource.h> 25 #include <sys/resource.h>
26 #include <sys/sysctl.h> 26 #include <sys/sysctl.h>
27 #include <sys/socket.h> 27 #include <sys/socket.h>
28 #include <netinet/in.h> 28 #include <netinet/in.h>
29 #include <arpa/inet.h> 29 #include <arpa/inet.h>
30 #include <dirent.h>
30 #include <netdb.h> 31 #include <netdb.h>
31 32
32 33
33 34
34 #define OFF_FMT "%lld" 35 #if 0
35 #define SIZE_FMT "%d" 36 #define SIZE_FMT "%d"
36 #define SIZEX_FMT "%x" 37 #define SIZEX_FMT "%x"
37 #define TIME_FMT "%ld"
38 #define PID_FMT "%d" 38 #define PID_FMT "%d"
39 #define RLIM_FMT "%lu" 39 #define RLIM_FMT "%lu"
40 #endif
40 41
41 42
42 43
43 #ifndef HAVE_SELECT 44 #ifndef HAVE_SELECT
44 #define HAVE_SELECT 1 45 #define HAVE_SELECT 1