source:
trunk/libs/newlib/src/libgloss/riscv/sys_sysconf.c
@
479
Last change on this file since 479 was 444, checked in by , 7 years ago | |
---|---|
File size: 232 bytes |
Line | |
---|---|
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.