libc/sysconf: Implement the query of _SC_CLK_TCK

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I36a62d97b14ea06bbc2054ee96fd2319b2f6897c
This commit is contained in:
Xiang Xiao
2021-07-20 12:35:33 +08:00
committed by xiaoxiang
parent 1c3fe27235
commit 84b11713be
+3
View File
@@ -207,6 +207,9 @@ long sysconf(int name)
switch (name)
{
case _SC_CLK_TCK:
return CLOCKS_PER_SEC;
case _SC_OPEN_MAX:
return _POSIX_OPEN_MAX;