4 #ifndef RUDIMENTS_SYS_H 5 #define RUDIMENTS_SYS_H 7 #include <rudiments/private/sysincludes.h> 14 class RUDIMENTS_DLLSPEC
sys {
19 static char *getOperatingSystemName();
24 static char *getOperatingSystemRelease();
29 static char *getOperatingSystemVersion();
33 static char *getOperatingSystemArchitecture();
36 static const char *getRudimentsVersion();
42 static char *getHostName();
46 static bool setHostName(
const char *hostname);
50 static bool setHostName(
const char *hostname,
51 uint64_t hostnamelen);
56 static bool getLoadAverages(
double *oneminuteaverage,
57 double *fiveminuteaverage,
58 double *fifteenminuteaverage);
74 static bool shutDown();
84 static int64_t getMaxCommandLineArgumentLength();
89 static int64_t getMaxProcessesPerUser();
94 static int64_t getMaxHostNameLength();
99 static int64_t getMaxLoginNameLength();
109 static int64_t getClockTicksPerSecond();
114 static int64_t getMaxOpenFilesPerProcess();
123 static int32_t getPageSize();
131 static int32_t getAllocationGranularity();
136 static int64_t getMaxOpenStreamsPerProcess();
151 static int64_t getMaxSymlinkLoops();
156 static int64_t getMaxTerminalDeviceNameLength();
160 static int64_t getMaxTimezoneNameLength();
166 static int64_t getMaxLineLength();
171 static int64_t getPhysicalPageCount();
176 static int64_t getAvailablePhysicalPageCount();
181 static int64_t getProcessorCount();
186 static int64_t getMaxProcessorCount();
190 static int64_t getProcessorsOnline();
195 static int64_t getMaxSupplementalGroupsPerUser();
200 static int64_t getMaxDelayTimerExpirations();
205 static int64_t getMaxRealtimeSignals();
210 static int64_t getMaxSemaphoresPerProcess();
214 static int64_t getMaxSemaphoreValue();
219 static int64_t getMaxSignalQueueLength();
224 static int64_t getMaxTimersPerProcess();
231 static int64_t getSuggestedGroupEntryBufferSize();
238 static int64_t getSuggestedPasswordEntryBufferSize();
242 static int64_t getMinThreadStackSize();
247 static int64_t getMaxThreadsPerProcess();
252 static int64_t getThreadDestructorIterations();
256 static int64_t getMaxThreadKeys();
261 static int64_t getMaxAtExitFunctions();
266 static int64_t getCpuSetSize();
270 static int64_t getMaxPasswordLength();
274 static int64_t getMaxLogNameLength();
278 static int64_t getMaxProcessId();
282 static int64_t sysConf(int32_t name);
287 static bool signalsInterruptSystemCalls();
291 static char getDirectorySeparator();