mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Kernel: Add _SC_CLK_TCK to sysconf.
Unbreaks the hatari port.
This commit is contained in:
parent
fa6bce5087
commit
10e3e8f6d4
3 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,9 @@ KResultOr<long> 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;
|
||||
}
|
||||
|
|
|
@ -63,6 +63,7 @@ enum {
|
|||
_SC_TTY_NAME_MAX,
|
||||
_SC_PAGESIZE,
|
||||
_SC_GETPW_R_SIZE_MAX,
|
||||
_SC_CLK_TCK,
|
||||
};
|
||||
|
||||
#define PERF_EVENT_SAMPLE 0
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue