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 Alan Carvalho de Assis
parent 25b7bdf943
commit df0e2a65b2
1 changed files with 3 additions and 0 deletions

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;