source:
trunk/libs/newlib/src/libgloss/riscv/sys_sysconf.c
@
486
Last change on this file since 486 was 444, checked in by , 6 years ago | |
---|---|
File size: 232 bytes |
Rev | Line | |
---|---|---|
[444] | 1 | #include <machine/syscall.h> |
2 | #include <unistd.h> | |
3 | #include <time.h> | |
4 | ||
5 | /* Get configurable system variables. */ | |
6 | ||
7 | long | |
8 | _sysconf(int name) | |
9 | { | |
10 | switch (name) | |
11 | { | |
12 | case _SC_CLK_TCK: | |
13 | return CLOCKS_PER_SEC; | |
14 | } | |
15 | ||
16 | return -1; | |
17 | } |
Note: See TracBrowser
for help on using the repository browser.