Mercurial > hg > nginx
comparison src/os/win32/ngx_win32_init.c @ 449:3b1e8c9df9ad
nginx-0.1.0-2004-10-04-00:02:06 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 03 Oct 2004 20:02:06 +0000 |
parents | 42d11f017717 |
children | a88a3e4e158f |
comparison
equal
deleted
inserted
replaced
448:241dc8092a33 | 449:3b1e8c9df9ad |
---|---|
6 | 6 |
7 #include <ngx_config.h> | 7 #include <ngx_config.h> |
8 #include <ngx_core.h> | 8 #include <ngx_core.h> |
9 | 9 |
10 | 10 |
11 int ngx_win32_version; | 11 ngx_uint_t ngx_win32_version; |
12 int ngx_ncpu; | 12 ngx_uint_t ngx_ncpu; |
13 int ngx_max_sockets; | 13 ngx_int_t ngx_max_sockets; |
14 int ngx_inherited_nonblocking = 1; | 14 ngx_uint_t ngx_inherited_nonblocking = 1; |
15 ngx_fd_t ngx_stderr_fileno; | |
15 | 16 |
16 | 17 |
17 ngx_os_io_t ngx_os_io = { | 18 ngx_os_io_t ngx_os_io = { |
18 ngx_wsarecv, | 19 ngx_wsarecv, |
19 ngx_wsarecv_chain, | 20 ngx_wsarecv_chain, |
38 static GUID ae_guid = WSAID_ACCEPTEX; | 39 static GUID ae_guid = WSAID_ACCEPTEX; |
39 static GUID as_guid = WSAID_GETACCEPTEXSOCKADDRS; | 40 static GUID as_guid = WSAID_GETACCEPTEXSOCKADDRS; |
40 static GUID tf_guid = WSAID_TRANSMITFILE; | 41 static GUID tf_guid = WSAID_TRANSMITFILE; |
41 | 42 |
42 | 43 |
43 int ngx_os_init(ngx_log_t *log) | 44 ngx_int_t ngx_os_init(ngx_log_t *log) |
44 { | 45 { |
45 u_int osviex; | 46 u_int osviex; |
46 DWORD bytes; | 47 DWORD bytes; |
47 SOCKET s; | 48 SOCKET s; |
48 WSADATA wsd; | 49 WSADATA wsd; |
187 ngx_close_socket_n " failed"); | 188 ngx_close_socket_n " failed"); |
188 } | 189 } |
189 | 190 |
190 return NGX_OK; | 191 return NGX_OK; |
191 } | 192 } |
193 | |
194 | |
195 void ngx_os_status(ngx_log_t *log) | |
196 { | |
197 } |