1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibC: Add POSIX timer constants

This commit is contained in:
Jelle Raaijmakers 2021-06-04 01:45:04 +02:00 committed by Andreas Kling
parent 99a79a364a
commit 496988de47
3 changed files with 7 additions and 0 deletions

View file

@ -14,6 +14,8 @@ namespace Kernel {
KResultOr<long> Process::sys$sysconf(int name)
{
switch (name) {
case _SC_MONOTONIC_CLOCK:
return 1;
case _SC_NPROCESSORS_CONF:
case _SC_NPROCESSORS_ONLN:
return Processor::processor_count();

View file

@ -37,6 +37,7 @@
#define MS_REMOUNT (1 << 5)
enum {
_SC_MONOTONIC_CLOCK,
_SC_NPROCESSORS_CONF,
_SC_NPROCESSORS_ONLN,
_SC_OPEN_MAX,