Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-10-04 00:02:06 +0400
committerIgor Sysoev <igor@sysoev.ru>2004-10-04 00:02:06 +0400
commitaad1b89b68b0651b5729b15203081f6b4620847a (patch)
tree8a5906c3607c082e27d4d8ebc1e9a9e5b42822b5 /src/os/win32
parent8035fd27919d1f598b0d655a3bf30200220462d3 (diff)
nginx-0.1.0-2004-10-04-00:02:06 import
Diffstat (limited to 'src/os/win32')
-rw-r--r--src/os/win32/ngx_os.h12
-rw-r--r--src/os/win32/ngx_win32_init.c16
2 files changed, 18 insertions, 10 deletions
diff --git a/src/os/win32/ngx_os.h b/src/os/win32/ngx_os.h
index 9b856f65a..98c8e15c2 100644
--- a/src/os/win32/ngx_os.h
+++ b/src/os/win32/ngx_os.h
@@ -42,7 +42,8 @@ typedef struct {
} ngx_os_io_t;
-int ngx_os_init(ngx_log_t *log);
+ngx_int_t ngx_os_init(ngx_log_t *log);
+void ngx_os_status(ngx_log_t *log);
ssize_t ngx_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
ssize_t ngx_overlapped_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
@@ -54,10 +55,11 @@ ngx_chain_t *ngx_overlapped_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in,
extern ngx_os_io_t ngx_os_io;
-extern int ngx_ncpu;
-extern int ngx_max_sockets;
-extern int ngx_inherited_nonblocking;
-extern int ngx_win32_version;
+extern ngx_uint_t ngx_ncpu;
+extern ngx_int_t ngx_max_sockets;
+extern ngx_uint_t ngx_inherited_nonblocking;
+extern ngx_uint_t ngx_win32_version;
+extern ngx_fd_t ngx_stderr_fileno;
diff --git a/src/os/win32/ngx_win32_init.c b/src/os/win32/ngx_win32_init.c
index 5ad519819..ea1cfd1b5 100644
--- a/src/os/win32/ngx_win32_init.c
+++ b/src/os/win32/ngx_win32_init.c
@@ -8,10 +8,11 @@
#include <ngx_core.h>
-int ngx_win32_version;
-int ngx_ncpu;
-int ngx_max_sockets;
-int ngx_inherited_nonblocking = 1;
+ngx_uint_t ngx_win32_version;
+ngx_uint_t ngx_ncpu;
+ngx_int_t ngx_max_sockets;
+ngx_uint_t ngx_inherited_nonblocking = 1;
+ngx_fd_t ngx_stderr_fileno;
ngx_os_io_t ngx_os_io = {
@@ -40,7 +41,7 @@ static GUID as_guid = WSAID_GETACCEPTEXSOCKADDRS;
static GUID tf_guid = WSAID_TRANSMITFILE;
-int ngx_os_init(ngx_log_t *log)
+ngx_int_t ngx_os_init(ngx_log_t *log)
{
u_int osviex;
DWORD bytes;
@@ -189,3 +190,8 @@ int ngx_os_init(ngx_log_t *log)
return NGX_OK;
}
+
+
+void ngx_os_status(ngx_log_t *log)
+{
+}