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();
39 static char *getHostName();
43 static bool setHostName(
const char *hostname);
47 static bool setHostName(
const char *hostname,
48 uint64_t hostnamelen);
53 static bool getLoadAverages(
double *oneminuteaverage,
54 double *fiveminuteaverage,
55 double *fifteenminuteaverage);
71 static bool shutDown();
81 static int64_t getMaxCommandLineArgumentLength();
86 static int64_t getMaxProcessesPerUser();
91 static int64_t getMaxHostNameLength();
96 static int64_t getMaxLoginNameLength();
106 static int64_t getClockTicksPerSecond();
111 static int64_t getMaxOpenFilesPerProcess();
120 static int32_t getPageSize();
128 static int32_t getAllocationGranularity();
133 static int64_t getMaxOpenStreamsPerProcess();
148 static int64_t getMaxSymlinkLoops();
153 static int64_t getMaxTerminalDeviceNameLength();
157 static int64_t getMaxTimezoneNameLength();
163 static int64_t getMaxLineLength();
168 static int64_t getPhysicalPageCount();
173 static int64_t getAvailablePhysicalPageCount();
178 static int64_t getProcessorCount();
183 static int64_t getMaxProcessorCount();
187 static int64_t getProcessorsOnline();
192 static int64_t getMaxSupplementalGroupsPerUser();
197 static int64_t getMaxDelayTimerExpirations();
202 static int64_t getMaxRealtimeSignals();
207 static int64_t getMaxSemaphoresPerProcess();
211 static int64_t getMaxSemaphoreValue();
216 static int64_t getMaxSignalQueueLength();
221 static int64_t getMaxTimersPerProcess();
228 static int64_t getSuggestedGroupEntryBufferSize();
235 static int64_t getSuggestedPasswordEntryBufferSize();
239 static int64_t getMinThreadStackSize();
244 static int64_t getMaxThreadsPerProcess();
249 static int64_t getThreadDestructorIterations();
253 static int64_t getMaxThreadKeys();
258 static int64_t getMaxAtExitFunctions();
263 static int64_t getCpuSetSize();
267 static int64_t getMaxPasswordLength();
271 static int64_t getMaxLogNameLength();
275 static int64_t getMaxProcessId();
279 static int64_t sysConf(int32_t name);
284 static bool signalsInterruptSystemCalls();
288 static char getDirectorySeparator();