Mercurial > hg > nginx
comparison src/os/unix/ngx_linux_config.h @ 198:34995c5ec6c4
nginx-0.0.1-2003-11-27-22:01:37 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 27 Nov 2003 19:01:37 +0000 |
parents | 11fbd0fc041d |
children | 5d4f49dc8de5 |
comparison
equal
deleted
inserted
replaced
197:0b81c7a0b133 | 198:34995c5ec6c4 |
---|---|
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() */ | 5 #define _GNU_SOURCE /* pread(), pwrite(), gethostname() */ |
6 | 6 |
7 #if 0 | |
8 #define _FILE_OFFSET_BITS 64 | 7 #define _FILE_OFFSET_BITS 64 |
9 #define _LARGEFILE_SOURCE | 8 #define _LARGEFILE_SOURCE |
10 #endif | |
11 | 9 |
12 | 10 |
13 #include <unistd.h> | 11 #include <unistd.h> |
14 #include <stddef.h> /* offsetof() */ | 12 #include <stddef.h> /* offsetof() */ |
15 #include <stdlib.h> | 13 #include <stdlib.h> |
26 #include <sys/ioctl.h> | 24 #include <sys/ioctl.h> |
27 #include <sys/resource.h> | 25 #include <sys/resource.h> |
28 #include <sys/sysctl.h> | 26 #include <sys/sysctl.h> |
29 #include <sys/wait.h> | 27 #include <sys/wait.h> |
30 #include <sys/socket.h> | 28 #include <sys/socket.h> |
29 | |
30 #if (HAVE_SENDFILE64) | |
31 #include <sys/sendfile.h> | 31 #include <sys/sendfile.h> |
32 #else | |
33 extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size); | |
34 #endif | |
35 | |
32 #include <netinet/in.h> | 36 #include <netinet/in.h> |
33 #include <netinet/tcp.h> /* TCP_CORK */ | 37 #include <netinet/tcp.h> /* TCP_CORK */ |
34 #include <arpa/inet.h> | 38 #include <arpa/inet.h> |
35 #include <dirent.h> | 39 #include <dirent.h> |
36 #include <netdb.h> | 40 #include <netdb.h> |
37 | |
38 | |
39 | |
40 #if 0 | |
41 #define SIZE_FMT "%d" | |
42 #define SIZEX_FMT "%x" | |
43 #define PID_FMT "%d" | |
44 #define RLIM_FMT "%lu" | |
45 #endif | |
46 | 41 |
47 | 42 |
48 | 43 |
49 #ifndef HAVE_SELECT | 44 #ifndef HAVE_SELECT |
50 #define HAVE_SELECT 1 | 45 #define HAVE_SELECT 1 |