4 #ifndef RUDIMENTS_SYS_H
5 #define RUDIMENTS_SYS_H
7 #include <rudiments/private/sysincludes.h>
12 class RUDIMENTS_DLLSPEC
sys {
49 uint64_t hostnamelen);
55 double *fiveminuteaverage,
56 double *fifteenminuteaverage);
343 static bool willNeed(
unsigned char *ptr,
size_t size);
354 static bool wontNeed(
unsigned char *ptr,
size_t size);
374 static bool lock(
unsigned char *ptr,
size_t size);
383 static bool unlock(
unsigned char *ptr,
size_t size);
433 #include <rudiments/private/sys.h>
static bool wontNeed(unsigned char *ptr, size_t size)
static int64_t getMaxSemaphoreValue()
static int64_t getAvailablePhysicalPageCount()
static char * getHostName()
static int32_t getPageSize()
static int64_t getMaxProcessesPerUser()
static int64_t getCpuSetSize()
static int64_t getMaxSymlinkLoops()
static bool notPagedOut(unsigned char *ptr, size_t size)
static bool sequentialAccess(unsigned char *ptr, size_t size)
static bool normalAccess(unsigned char *ptr, size_t size)
static char getDirectorySeparator()
static bool willNeed(unsigned char *ptr, size_t size)
static bool enablePaging()
static int64_t getProcessorCount()
static int64_t sysConf(int32_t name)
static char * getOperatingSystemArchitecture()
static char * getOperatingSystemVersion()
static int64_t getSuggestedGroupEntryBufferSize()
static int64_t getThreadDestructorIterations()
static bool unlock(unsigned char *ptr, size_t size)
static int64_t getSuggestedPasswordEntryBufferSize()
static int64_t getMaxThreadKeys()
static int64_t getMinThreadStackSize()
static int64_t getProcessorsOnline()
static bool lock(unsigned char *ptr, size_t size)
static int64_t getMaxOpenStreamsPerProcess()
static bool getLoadAverages(double *oneminuteaverage, double *fiveminuteaverage, double *fifteenminuteaverage)
static char * getOperatingSystemName()
static const char * getRudimentsVersion()
static bool setHostName(const char *hostname, uint64_t hostnamelen)
static int64_t getMaxCommandLineArgumentLength()
static int64_t getMaxLogNameLength()
static bool randomAccess(unsigned char *ptr, size_t size)
static int64_t getMaxRealtimeSignals()
static int64_t getMaxProcessId()
static int64_t getMaxTimersPerProcess()
static int64_t getMaxThreadsPerProcess()
static int64_t getMaxSupplementalGroupsPerUser()
static int64_t getMaxPasswordLength()
static int64_t getPhysicalPageCount()
static int64_t getMaxSignalQueueLength()
static int64_t getMaxProcessorCount()
static int64_t getMaxLineLength()
static bool setHostName(const char *hostname)
static int64_t getMaxOpenFilesPerProcess()
static bool disablePagingOfNew()
static bool disablePaging()
static int64_t getMaxLoginNameLength()
static bool signalsInterruptSystemCalls()
static int32_t getAllocationGranularity()
static int64_t getMaxSemaphoresPerProcess()
static int64_t getMaxDelayTimerExpirations()
static char * getOperatingSystemRelease()
static bool disablePagingOfCurrent()
static int64_t getMaxAtExitFunctions()
static int64_t getMaxTimezoneNameLength()
static int64_t getClockTicksPerSecond()
static int64_t getMaxTerminalDeviceNameLength()
static int64_t getMaxHostNameLength()
static bool setProtection(unsigned char *ptr, size_t size, int32_t protection)