mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 01:38:56 +00:00
LibC: Add POSIX timer constants
This commit is contained in:
parent
99a79a364a
commit
496988de47
Notes:
sideshowbarker
2024-07-18 16:55:25 +09:00
Author: https://github.com/gmta
Commit: 496988de47
Pull-request: https://github.com/SerenityOS/serenity/pull/7757
3 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue