Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/riscv/sys_sysconf.c
2023-03-06 14:48:14 +01:00

17 lines
232 B
C

#include <machine/syscall.h>
#include <unistd.h>
#include <time.h>
/* Get configurable system variables. */
long
_sysconf(int name)
{
switch (name)
{
case _SC_CLK_TCK:
return CLOCKS_PER_SEC;
}
return -1;
}