nginx-0.0.1-2003-01-30-21:21:39 import

This commit is contained in:
Igor Sysoev 2003-01-30 18:21:39 +00:00
parent 86de4cbef5
commit 2a2d2b5094
4 changed files with 8 additions and 4 deletions

View File

@ -52,11 +52,12 @@ int main(int argc, char *const *argv)
ngx_pool = ngx_create_pool(16 * 1024, &ngx_log); ngx_pool = ngx_create_pool(16 * 1024, &ngx_log);
/* */ /* */
#if !(WIN32) #if (WIN32)
ngx_init_sockets(&ngx_log);
#else
ngx_set_signals(&ngx_log); ngx_set_signals(&ngx_log);
#endif #endif
ngx_init_sockets(&ngx_log);
ngx_init_array(ngx_listening_sockets, ngx_pool, 10, sizeof(ngx_listen_t), ngx_init_array(ngx_listening_sockets, ngx_pool, 10, sizeof(ngx_listen_t),
1); 1);

View File

@ -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_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 int ngx_max_module;
extern ngx_array_t ngx_http_servers; extern ngx_array_t ngx_http_servers;

View File

@ -85,6 +85,8 @@ extern int ngx_http_max_module;
int ngx_http_core_translate_handler(ngx_http_request_t *r); 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_ */ #endif /* _NGX_HTTP_CORE_H_INCLUDED_ */

View File

@ -8,8 +8,6 @@
typedef int ngx_socket_t; typedef int ngx_socket_t;
#define ngx_init_sockets
#define ngx_socket(af, type, proto, flags) socket(af, type, proto) #define ngx_socket(af, type, proto, flags) socket(af, type, proto)
#define ngx_socket_n "socket()" #define ngx_socket_n "socket()"