#include <process.h>
#include <stdio.h>
#include <algorithm>
+#include <io.h>
+#include <psapi.h>
#ifdef ENABLE_CRASHDUMPS
#include <DbgHelp.h>
CoreExport dirent * readdir(DIR * handle);
CoreExport void closedir(DIR * handle);
-CoreExport int gettimeofday(struct timeval * tv, void * tz);
+const int CLOCK_REALTIME = 0;
+CoreExport int clock_gettime(int clock, struct timespec * tv);
/* Disable these stupid warnings.. */
#pragma warning(disable:4800)
typedef signed char int8_t;
typedef signed long int32_t;
typedef signed long long int64_t;
+typedef signed long ssize_t;
/* Shared memory allocation functions */
void * ::operator new(size_t iSize);
/* Look up the nameserver in use from the registry on windows */
CoreExport std::string FindNameServerWin();
+#define DISABLE_WRITEV
+
/* Clear a windows console */
CoreExport void ClearConsole();
CoreExport void ChangeWindowsSpecificPointers();
-CoreExport bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* value, ValueItem &data);
+CoreExport void FindDNS(std::string& server);
CoreExport bool initwmi();
CoreExport void donewmi();