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

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-05-10 19:39:02 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-05-10 19:39:02 +0400
commitc29e693388663aaa42f041965258fa6b6bafc938 (patch)
treeab06a3773afd17d0f5c68cfa860817406fa5b670 /winsup/cygwin/globals.cc
parent6cfbf1a573bb6fe2d0d986eeaaa0992bd9e0c176 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/globals.cc')
-rw-r--r--winsup/cygwin/globals.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/winsup/cygwin/globals.cc b/winsup/cygwin/globals.cc
index 94823d7cf..f27429c6b 100644
--- a/winsup/cygwin/globals.cc
+++ b/winsup/cygwin/globals.cc
@@ -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;