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:
parent
25b7bdf943
commit
df0e2a65b2
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue