mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:27:36 +00: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;
|
return TTY_NAME_MAX;
|
||||||
case _SC_GETPW_R_SIZE_MAX:
|
case _SC_GETPW_R_SIZE_MAX:
|
||||||
return 4096; // idk
|
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:
|
default:
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,6 +63,7 @@ enum {
|
||||||
_SC_TTY_NAME_MAX,
|
_SC_TTY_NAME_MAX,
|
||||||
_SC_PAGESIZE,
|
_SC_PAGESIZE,
|
||||||
_SC_GETPW_R_SIZE_MAX,
|
_SC_GETPW_R_SIZE_MAX,
|
||||||
|
_SC_CLK_TCK,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define PERF_EVENT_SAMPLE 0
|
#define PERF_EVENT_SAMPLE 0
|
||||||
|
|
|
@ -177,6 +177,7 @@ enum {
|
||||||
_SC_TTY_NAME_MAX,
|
_SC_TTY_NAME_MAX,
|
||||||
_SC_PAGESIZE,
|
_SC_PAGESIZE,
|
||||||
_SC_GETPW_R_SIZE_MAX,
|
_SC_GETPW_R_SIZE_MAX,
|
||||||
|
_SC_CLK_TCK,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF
|
#define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue