2 * system.c: System information
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
16 #include "mono/io-layer/wapi.h"
18 void GetSystemInfo(WapiSystemInfo *info)
20 info->dwPageSize=getpagesize();
22 /* Fill in the rest of this junk. Maybe with libgtop */
23 #ifdef _SC_NPROCESSORS_ONLN
24 info->dwNumberOfProcessors = sysconf (_SC_NPROCESSORS_ONLN);
25 if (info->dwNumberOfProcessors <= 0)
26 info->dwNumberOfProcessors = 1;
28 info->dwNumberOfProcessors = 1;