mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-31 22:50:54 +00:00
libc: implement _SC_CLK_TCK
Return the same value that is used in FreeBSD. Issue #5507.
This commit is contained in:
parent
e5cbf602e0
commit
b4e6b96a19
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
using namespace Libc;
|
using namespace Libc;
|
||||||
|
|
||||||
enum { PAGESIZE = 4096 };
|
enum { PAGESIZE = 4096, STATHZ = 128, };
|
||||||
|
|
||||||
|
|
||||||
static Genode::Env *_global_env;
|
static Genode::Env *_global_env;
|
||||||
@ -49,6 +49,7 @@ extern "C" long sysconf(int name)
|
|||||||
{
|
{
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case _SC_CHILD_MAX: return CHILD_MAX;
|
case _SC_CHILD_MAX: return CHILD_MAX;
|
||||||
|
case _SC_CLK_TCK: return STATHZ;
|
||||||
case _SC_OPEN_MAX: return getdtablesize();
|
case _SC_OPEN_MAX: return getdtablesize();
|
||||||
case _SC_PAGESIZE: return PAGESIZE;
|
case _SC_PAGESIZE: return PAGESIZE;
|
||||||
case _SC_PHYS_PAGES:
|
case _SC_PHYS_PAGES:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user