* fhandler_proc.cc (format_proc_uptime): Don't call GetSystemInfo.
Fetch CPU count from wincap. (format_proc_stat): Ditto. * globals.cc (system_info): Move to wincap. * heap.cc (heap_init): Fetch page size from wincap. * syscalls.cc (getpagesize): Fetch allocation granularity from wincap. (getsystempagesize): Fetch page size from wincap. * wincap.cc (wincap_2003): Default is_server to false. (wincapc::init): Call GetSystemInfo here. Always set is_server value. * wincap.h (class wincapc): Add system_info as private member. (wincapc::cpu_count): New public method. (wincapc::page_size): Ditto. (wincapc::allocation_granularity): Ditto.
This commit is contained in:
@ -48,8 +48,6 @@ enum exit_states
|
||||
|
||||
exit_states NO_COPY exit_state;
|
||||
|
||||
SYSTEM_INFO system_info;
|
||||
|
||||
/* Set in init.cc. Used to check if Cygwin DLL is dynamically loaded. */
|
||||
int NO_COPY dynamically_loaded;
|
||||
|
||||
|
Reference in New Issue
Block a user