0
|
1
|
|
2 /*
|
|
3 * Copyright (C) Igor Sysoev
|
644
|
4 * Copyright (C) Nginx, Inc.
|
0
|
5 */
|
|
6
|
|
7
|
|
8 #ifndef _NGX_SOLARIS_CONFIG_H_INCLUDED_
|
|
9 #define _NGX_SOLARIS_CONFIG_H_INCLUDED_
|
|
10
|
|
11
|
284
|
12 #ifndef _REENTRANT
|
0
|
13 #define _REENTRANT
|
284
|
14 #endif
|
0
|
15
|
|
16 #define _FILE_OFFSET_BITS 64 /* must be before <sys/types.h> */
|
|
17
|
|
18 #include <sys/types.h>
|
|
19 #include <sys/time.h>
|
|
20 #include <unistd.h>
|
|
21 #include <stdarg.h>
|
|
22 #include <stddef.h> /* offsetof() */
|
|
23 #include <stdio.h>
|
|
24 #include <stdlib.h>
|
|
25 #include <errno.h>
|
|
26 #include <string.h>
|
|
27 #include <signal.h>
|
|
28 #include <pwd.h>
|
|
29 #include <grp.h>
|
|
30 #include <dirent.h>
|
238
|
31 #include <glob.h>
|
468
|
32 #include <sys/statvfs.h> /* statvfs() */
|
0
|
33
|
4
|
34 #include <sys/filio.h> /* FIONBIO */
|
0
|
35 #include <sys/uio.h>
|
|
36 #include <sys/stat.h>
|
|
37 #include <fcntl.h>
|
|
38
|
|
39 #include <sys/wait.h>
|
|
40 #include <sys/mman.h>
|
|
41 #include <sys/resource.h>
|
|
42 #include <sched.h>
|
|
43
|
|
44 #include <sys/socket.h>
|
|
45 #include <netinet/in.h>
|
2
|
46 #include <netinet/tcp.h> /* TCP_NODELAY */
|
0
|
47 #include <arpa/inet.h>
|
|
48 #include <netdb.h>
|
28
|
49 #include <sys/un.h>
|
0
|
50
|
|
51 #include <sys/systeminfo.h>
|
|
52 #include <limits.h> /* IOV_MAX */
|
|
53 #include <inttypes.h>
|
52
|
54 #include <crypt.h>
|
0
|
55
|
130
|
56 #define NGX_ALIGNMENT _MAX_ALIGNMENT
|
|
57
|
0
|
58 #include <ngx_auto_config.h>
|
|
59
|
|
60
|
624
|
61 #if (NGX_HAVE_POSIX_SEM)
|
|
62 #include <semaphore.h>
|
|
63 #endif
|
|
64
|
|
65
|
18
|
66 #if (NGX_HAVE_POLL)
|
0
|
67 #include <poll.h>
|
|
68 #endif
|
|
69
|
|
70
|
18
|
71 #if (NGX_HAVE_DEVPOLL)
|
0
|
72 #include <sys/ioctl.h>
|
|
73 #include <sys/devpoll.h>
|
|
74 #endif
|
|
75
|
|
76
|
236
|
77 #if (NGX_HAVE_EVENTPORT)
|
|
78 #include <port.h>
|
|
79 #endif
|
|
80
|
|
81
|
518
|
82 #if (NGX_HAVE_SENDFILE)
|
|
83 #include <sys/sendfile.h>
|
|
84 #endif
|
|
85
|
|
86
|
326
|
87 #define NGX_LISTEN_BACKLOG 511
|
|
88
|
|
89
|
18
|
90 #ifndef NGX_HAVE_INHERITED_NONBLOCK
|
|
91 #define NGX_HAVE_INHERITED_NONBLOCK 1
|
0
|
92 #endif
|
|
93
|
|
94
|
18
|
95 #ifndef NGX_HAVE_SO_SNDLOWAT
|
24
|
96 /* setsockopt(SO_SNDLOWAT) returns ENOPROTOOPT */
|
18
|
97 #define NGX_HAVE_SO_SNDLOWAT 0
|
2
|
98 #endif
|
|
99
|
|
100
|
88
|
101 #define NGX_HAVE_OS_SPECIFIC_INIT 1
|
|
102
|
|
103
|
150
|
104 extern char **environ;
|
|
105
|
|
106
|
0
|
107 #endif /* _NGX_SOLARIS_CONFIG_H_INCLUDED_ */
|