semaphores.h \
sockets.h \
status.h \
- system.h \
threads.h \
timefuncs.h \
types.h \
socket-private.h \
socket-wrappers.h \
status.h \
- system.c \
- system.h \
threads.h \
thread-private.h \
timefuncs.c \
+++ /dev/null
-/*
- * system.c: System information
- *
- * Author:
- * Dick Porter (dick@ximian.com)
- *
- * (C) 2002 Ximian, Inc.
- */
-
-#include <config.h>
-#include <glib.h>
-#include <sys/time.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-#include "mono/io-layer/wapi.h"
-
-void GetSystemInfo(WapiSystemInfo *info)
-{
- info->dwPageSize=getpagesize();
-
- /* Fill in the rest of this junk. Maybe with libgtop */
-#ifdef _SC_NPROCESSORS_ONLN
- info->dwNumberOfProcessors = sysconf (_SC_NPROCESSORS_ONLN);
- if (info->dwNumberOfProcessors <= 0)
- info->dwNumberOfProcessors = 1;
-#else
- info->dwNumberOfProcessors = 1;
-#endif
-}
-
-
+++ /dev/null
-/*
- * system.h: System information
- *
- * Author:
- * Dick Porter (dick@ximian.com)
- *
- * (C) 2002 Ximian, Inc.
- */
-
-#ifndef _WAPI_SYSTEM_H_
-#define _WAPI_SYSTEM_H_
-
-#include <glib.h>
-
-G_BEGIN_DECLS
-
-typedef struct _WapiSystemInfo WapiSystemInfo;
-
-struct _WapiSystemInfo
-{
- union _anon_union
- {
- guint32 dwOemId;
- struct _anon_struct
- {
- guint16 wProcessorArchitecture;
- guint16 wReserved;
- } _anon_struct;
- } _anon_union;
-
- guint32 dwPageSize;
- gpointer lpMinimumApplicationAddress;
- gpointer lpMaximumApplicationAddress;
- guint32 /*_PTR?*/ dwActiveProcessorMask;
- guint32 dwNumberOfProcessors;
- guint32 dwProcessorType;
- guint32 dwAllocationGranularity;
- guint16 wProcessorLevel;
- guint16 wProcessorRevision;
-};
-
-extern void GetSystemInfo(WapiSystemInfo *info);
-
-G_END_DECLS
-#endif /* _WAPI_SYSTEM_H_ */
typedef WapiLargeInteger *PLARGE_INTEGER;
typedef WapiULargeInteger ULARGE_INTEGER;
typedef WapiULargeInteger *PULARGE_INTEGER;
-typedef WapiSystemInfo SYSTEM_INFO;
-typedef WapiSystemInfo *LPSYSTEM_INFO;
typedef WapiFloatingSaveArea FLOATING_SAVE_AREA;
typedef WapiFloatingSaveArea *PFLOATING_SAVE_AREA;
typedef WapiContext CONTEXT;
#include <mono/io-layer/semaphores.h>
#include <mono/io-layer/sockets.h>
#include <mono/io-layer/status.h>
-#include <mono/io-layer/system.h>
#include <mono/io-layer/threads.h>
#include <mono/io-layer/timefuncs.h>
#include <mono/io-layer/versioninfo.h>