~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Nginx/os/unix/ngx_linux_config.h

Version: ~ [ nginx-0.8.20 ] ~ [ nginx-0.7.62 ] ~ [ nginx-0.6.39 ] ~

  1 
  2 /*
  3  * Copyright (C) Igor Sysoev
  4  */
  5 
  6 
  7 #ifndef _NGX_LINUX_CONFIG_H_INCLUDED_
  8 #define _NGX_LINUX_CONFIG_H_INCLUDED_
  9 
 10 
 11 #ifndef _GNU_SOURCE
 12 #define _GNU_SOURCE             /* pread(), pwrite(), gethostname() */
 13 #endif
 14 
 15 #define _FILE_OFFSET_BITS  64
 16 
 17 #include <sys/types.h>
 18 #include <sys/time.h>
 19 #include <unistd.h>
 20 #include <stdarg.h>
 21 #include <stddef.h>             /* offsetof() */
 22 #include <stdio.h>
 23 #include <stdlib.h>
 24 #include <errno.h>
 25 #include <string.h>
 26 #include <signal.h>
 27 #include <pwd.h>
 28 #include <grp.h>
 29 #include <dirent.h>
 30 #include <glob.h>
 31 #include <sys/vfs.h>            /* statfs() */
 32 
 33 #include <sys/uio.h>
 34 #include <sys/stat.h>
 35 #include <fcntl.h>
 36 
 37 #include <sys/wait.h>
 38 #include <sys/mman.h>
 39 #include <sys/resource.h>
 40 #include <sched.h>
 41 
 42 #include <sys/socket.h>
 43 #include <netinet/in.h>
 44 #include <netinet/tcp.h>        /* TCP_NODELAY, TCP_CORK */
 45 #include <arpa/inet.h>
 46 #include <netdb.h>
 47 #include <sys/un.h>
 48 
 49 #include <time.h>               /* tzset() */
 50 #include <malloc.h>             /* memalign() */
 51 #include <limits.h>             /* IOV_MAX */
 52 #include <sys/ioctl.h>
 53 #include <sys/sysctl.h>
 54 #include <crypt.h>
 55 #include <sys/utsname.h>        /* uname() */
 56 
 57 
 58 #include <ngx_auto_config.h>
 59 
 60 
 61 #if (NGX_HAVE_SYS_PRCTL_H)
 62 #include <sys/prctl.h>
 63 #endif
 64 
 65 
 66 #if (NGX_HAVE_SENDFILE64)
 67 #include <sys/sendfile.h>
 68 #else
 69 extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size);
 70 #define NGX_SENDFILE_LIMIT  0x80000000
 71 #endif
 72 
 73 
 74 #if (NGX_HAVE_POLL || NGX_HAVE_RTSIG)
 75 #include <poll.h>
 76 #endif
 77 
 78 
 79 #if (NGX_HAVE_EPOLL)
 80 #include <sys/epoll.h>
 81 #endif
 82 
 83 
 84 #if (NGX_HAVE_FILE_AIO)
 85 #include <sys/syscall.h>
 86 #include <linux/aio_abi.h>
 87 typedef struct iocb  ngx_aiocb_t;
 88 #endif
 89 
 90 
 91 #define NGX_LISTEN_BACKLOG        511
 92 
 93 
 94 #if defined TCP_DEFER_ACCEPT && !defined NGX_HAVE_DEFERRED_ACCEPT
 95 #define NGX_HAVE_DEFERRED_ACCEPT  1
 96 #endif
 97 
 98 
 99 #ifndef NGX_HAVE_SO_SNDLOWAT
100 /* setsockopt(SO_SNDLOWAT) returns ENOPROTOOPT */
101 #define NGX_HAVE_SO_SNDLOWAT         0
102 #endif
103 
104 
105 #ifndef NGX_HAVE_INHERITED_NONBLOCK
106 #define NGX_HAVE_INHERITED_NONBLOCK  0
107 #endif
108 
109 
110 #define NGX_HAVE_OS_SPECIFIC_INIT    1
111 
112 
113 extern char **environ;
114 
115 
116 #endif /* _NGX_LINUX_CONFIG_H_INCLUDED_ */
117 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.