mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 15:39:01 +08:00
nginx-0.0.1-2003-01-30-21:21:39 import
This commit is contained in:
parent
86de4cbef5
commit
2a2d2b5094
@ -52,11 +52,12 @@ int main(int argc, char *const *argv)
|
||||
ngx_pool = ngx_create_pool(16 * 1024, &ngx_log);
|
||||
/* */
|
||||
|
||||
#if !(WIN32)
|
||||
#if (WIN32)
|
||||
ngx_init_sockets(&ngx_log);
|
||||
#else
|
||||
ngx_set_signals(&ngx_log);
|
||||
#endif
|
||||
|
||||
ngx_init_sockets(&ngx_log);
|
||||
|
||||
ngx_init_array(ngx_listening_sockets, ngx_pool, 10, sizeof(ngx_listen_t),
|
||||
1);
|
||||
|
@ -245,6 +245,9 @@ int ngx_http_init_connection(ngx_connection_t *c);
|
||||
int ngx_http_discard_body(ngx_http_request_t *r);
|
||||
|
||||
|
||||
int ngx_http_special_response(ngx_http_request_t *r, int error);
|
||||
|
||||
|
||||
extern int ngx_max_module;
|
||||
extern ngx_array_t ngx_http_servers;
|
||||
|
||||
|
@ -85,6 +85,8 @@ extern int ngx_http_max_module;
|
||||
|
||||
int ngx_http_core_translate_handler(ngx_http_request_t *r);
|
||||
|
||||
int ngx_http_error(ngx_http_request_t *r, int error);
|
||||
int ngx_http_close_request(ngx_http_request_t *r);
|
||||
|
||||
|
||||
#endif /* _NGX_HTTP_CORE_H_INCLUDED_ */
|
||||
|
@ -8,8 +8,6 @@
|
||||
|
||||
typedef int ngx_socket_t;
|
||||
|
||||
#define ngx_init_sockets
|
||||
|
||||
#define ngx_socket(af, type, proto, flags) socket(af, type, proto)
|
||||
#define ngx_socket_n "socket()"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user