Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.15.12 ]​[ nginx-1.16.0 ]​

0001 
0002 /*
0003  * Copyright (C) Igor Sysoev
0004  * Copyright (C) Nginx, Inc.
0005  */
0006 
0007 
0008 #ifndef _NGX_CORE_H_INCLUDED_
0009 #define _NGX_CORE_H_INCLUDED_
0010 
0011 
0012 #include <ngx_config.h>
0013 
0014 
0015 typedef struct ngx_module_s          ngx_module_t;
0016 typedef struct ngx_conf_s            ngx_conf_t;
0017 typedef struct ngx_cycle_s           ngx_cycle_t;
0018 typedef struct ngx_pool_s            ngx_pool_t;
0019 typedef struct ngx_chain_s           ngx_chain_t;
0020 typedef struct ngx_log_s             ngx_log_t;
0021 typedef struct ngx_open_file_s       ngx_open_file_t;
0022 typedef struct ngx_command_s         ngx_command_t;
0023 typedef struct ngx_file_s            ngx_file_t;
0024 typedef struct ngx_event_s           ngx_event_t;
0025 typedef struct ngx_event_aio_s       ngx_event_aio_t;
0026 typedef struct ngx_connection_s      ngx_connection_t;
0027 typedef struct ngx_thread_task_s     ngx_thread_task_t;
0028 typedef struct ngx_ssl_s             ngx_ssl_t;
0029 typedef struct ngx_ssl_connection_s  ngx_ssl_connection_t;
0030 typedef struct ngx_udp_connection_s  ngx_udp_connection_t;
0031 
0032 typedef void (*ngx_event_handler_pt)(ngx_event_t *ev);
0033 typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c);
0034 
0035 
0036 #define  NGX_OK          0
0037 #define  NGX_ERROR      -1
0038 #define  NGX_AGAIN      -2
0039 #define  NGX_BUSY       -3
0040 #define  NGX_DONE       -4
0041 #define  NGX_DECLINED   -5
0042 #define  NGX_ABORT      -6
0043 
0044 
0045 #include <ngx_errno.h>
0046 #include <ngx_atomic.h>
0047 #include <ngx_thread.h>
0048 #include <ngx_rbtree.h>
0049 #include <ngx_time.h>
0050 #include <ngx_socket.h>
0051 #include <ngx_string.h>
0052 #include <ngx_files.h>
0053 #include <ngx_shmem.h>
0054 #include <ngx_process.h>
0055 #include <ngx_user.h>
0056 #include <ngx_dlopen.h>
0057 #include <ngx_parse.h>
0058 #include <ngx_parse_time.h>
0059 #include <ngx_log.h>
0060 #include <ngx_alloc.h>
0061 #include <ngx_palloc.h>
0062 #include <ngx_buf.h>
0063 #include <ngx_queue.h>
0064 #include <ngx_array.h>
0065 #include <ngx_list.h>
0066 #include <ngx_hash.h>
0067 #include <ngx_file.h>
0068 #include <ngx_crc.h>
0069 #include <ngx_crc32.h>
0070 #include <ngx_murmurhash.h>
0071 #if (NGX_PCRE)
0072 #include <ngx_regex.h>
0073 #endif
0074 #include <ngx_radix_tree.h>
0075 #include <ngx_times.h>
0076 #include <ngx_rwlock.h>
0077 #include <ngx_shmtx.h>
0078 #include <ngx_slab.h>
0079 #include <ngx_inet.h>
0080 #include <ngx_cycle.h>
0081 #include <ngx_resolver.h>
0082 #if (NGX_OPENSSL)
0083 #include <ngx_event_openssl.h>
0084 #endif
0085 #include <ngx_process_cycle.h>
0086 #include <ngx_conf_file.h>
0087 #include <ngx_module.h>
0088 #include <ngx_open_file_cache.h>
0089 #include <ngx_os.h>
0090 #include <ngx_connection.h>
0091 #include <ngx_syslog.h>
0092 #include <ngx_proxy_protocol.h>
0093 
0094 
0095 #define LF     (u_char) '\n'
0096 #define CR     (u_char) '\r'
0097 #define CRLF   "\r\n"
0098 
0099 
0100 #define ngx_abs(value)       (((value) >= 0) ? (value) : - (value))
0101 #define ngx_max(val1, val2)  ((val1 < val2) ? (val2) : (val1))
0102 #define ngx_min(val1, val2)  ((val1 > val2) ? (val2) : (val1))
0103 
0104 void ngx_cpuinfo(void);
0105 
0106 #if (NGX_HAVE_OPENAT)
0107 #define NGX_DISABLE_SYMLINKS_OFF        0
0108 #define NGX_DISABLE_SYMLINKS_ON         1
0109 #define NGX_DISABLE_SYMLINKS_NOTOWNER   2
0110 #endif
0111 
0112 #endif /* _NGX_CORE_H_INCLUDED_ */