Mercurial > hg > nginx-quic
comparison src/os/win32/ngx_win32_init.c @ 373:018569a8f09c
nginx-0.0.7-2004-06-30-19:30:41 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 30 Jun 2004 15:30:41 +0000 |
parents | 55e496a8ece3 |
children | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
372:c9fdfccebc49 | 373:018569a8f09c |
---|---|
2 #include <ngx_config.h> | 2 #include <ngx_config.h> |
3 #include <ngx_core.h> | 3 #include <ngx_core.h> |
4 | 4 |
5 | 5 |
6 int ngx_win32_version; | 6 int ngx_win32_version; |
7 int ngx_ncpu; | |
7 int ngx_max_sockets; | 8 int ngx_max_sockets; |
8 int ngx_inherited_nonblocking = 1; | 9 int ngx_inherited_nonblocking = 1; |
9 | 10 |
10 | 11 |
11 ngx_os_io_t ngx_os_io = { | 12 ngx_os_io_t ngx_os_io = { |
122 } | 123 } |
123 } | 124 } |
124 | 125 |
125 GetSystemInfo(&si); | 126 GetSystemInfo(&si); |
126 ngx_pagesize = si.dwPageSize; | 127 ngx_pagesize = si.dwPageSize; |
128 ngx_ncpu = si.dwNumberOfProcessors; | |
127 | 129 |
128 | 130 |
129 /* init Winsock */ | 131 /* init Winsock */ |
130 | 132 |
131 if (WSAStartup(MAKEWORD(2,2), &wsd) != 0) { | 133 if (WSAStartup(MAKEWORD(2,2), &wsd) != 0) { |