diff --git a/Kernel/Syscalls/sysconf.cpp b/Kernel/Syscalls/sysconf.cpp index 4a3b13b7a5b..c6ae2831902 100644 --- a/Kernel/Syscalls/sysconf.cpp +++ b/Kernel/Syscalls/sysconf.cpp @@ -44,6 +44,9 @@ KResultOr Process::sys$sysconf(int name) return TTY_NAME_MAX; case _SC_GETPW_R_SIZE_MAX: return 4096; // idk + case _SC_CLK_TCK: + // FIXME: should return Number of clock intervals per second for times() + return 100; // seems to be 100 on x86_64 default: return EINVAL; } diff --git a/Kernel/UnixTypes.h b/Kernel/UnixTypes.h index e200775dbac..6932baae62e 100644 --- a/Kernel/UnixTypes.h +++ b/Kernel/UnixTypes.h @@ -63,6 +63,7 @@ enum { _SC_TTY_NAME_MAX, _SC_PAGESIZE, _SC_GETPW_R_SIZE_MAX, + _SC_CLK_TCK, }; #define PERF_EVENT_SAMPLE 0 diff --git a/Userland/Libraries/LibC/unistd.h b/Userland/Libraries/LibC/unistd.h index 6c978e2dc11..a4ead750352 100644 --- a/Userland/Libraries/LibC/unistd.h +++ b/Userland/Libraries/LibC/unistd.h @@ -177,6 +177,7 @@ enum { _SC_TTY_NAME_MAX, _SC_PAGESIZE, _SC_GETPW_R_SIZE_MAX, + _SC_CLK_TCK, }; #define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF