comparison src/os/unix/ngx_linux_config.h @ 102:7e86d028d8f0

nginx-0.0.1-2003-06-06-18:59:20 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 06 Jun 2003 14:59:20 +0000
parents 2e069b6e6920
children 6dfda4cf5200
comparison
equal deleted inserted replaced
101:2e069b6e6920 102:7e86d028d8f0
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
5 #define _GNU_SOURCE /* pread, pwrite, gethostname, bzero */
4 6
5 #define _FILE_OFFSET_BITS 64 7 #define _FILE_OFFSET_BITS 64
6 #define _LARGEFILE_SOURCE 8 #define _LARGEFILE_SOURCE
7 9
8 10
9 #define _XOPEN_SOURCE 500 /* pread, pwrite */
10 #include <unistd.h> 11 #include <unistd.h>
11 #undef _XOPEN_SOURCE 500
12
13 #include <stddef.h> /* offsetof */ 12 #include <stddef.h> /* offsetof */
14 #include <stdlib.h> 13 #include <stdlib.h>
15 #include <stdio.h> 14 #include <stdio.h>
16 #include <fcntl.h> 15 #include <fcntl.h>
17 #include <signal.h> 16 #include <signal.h>
18 #include <time.h> 17 #include <time.h>
19
20 #define __USE_BSD /* bzero */
21 #include <string.h> 18 #include <string.h>
22 #undef __USE_BSD
23
24 #include <sys/types.h> 19 #include <sys/types.h>
25 #include <sys/time.h> 20 #include <sys/time.h>
26 #include <sys/select.h> 21 #include <sys/select.h>
27 #include <sys/uio.h> 22 #include <sys/uio.h>
28 #include <sys/ioctl.h> 23 #include <sys/ioctl.h>
35 30
36 31
37 typedef unsigned int u_int; 32 typedef unsigned int u_int;
38 typedef unsigned short u_short; 33 typedef unsigned short u_short;
39 typedef unsigned char u_char; 34 typedef unsigned char u_char;
35
36
37 #define QD_FMT "%qd"
38 #define QX_FMT "%qx"
39 #define OFF_FMT "%qd"
40 40
41 41
42 #ifndef HAVE_SELECT 42 #ifndef HAVE_SELECT
43 #define HAVE_SELECT 1 43 #define HAVE_SELECT 1
44 #endif 44 #endif