changeset 58:6b13b1cadabe

nginx-0.0.1-2003-01-30-21:21:39 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 30 Jan 2003 18:21:39 +0000
parents a499e0d1f16e
children e8cdc2989cee
files src/core/nginx.c src/http/ngx_http.h src/http/ngx_http_core_module.h src/os/unix/ngx_socket.h
diffstat 4 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -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);
--- a/src/http/ngx_http.h
+++ b/src/http/ngx_http.h
@@ -245,6 +245,9 @@ int ngx_http_init_connection(ngx_connect
 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;
 
--- a/src/http/ngx_http_core_module.h
+++ b/src/http/ngx_http_core_module.h
@@ -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_ */
--- a/src/os/unix/ngx_socket.h
+++ b/src/os/unix/ngx_socket.h
@@ -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()"