source: trunk/libs/newlib/src/libgloss/riscv/sys_sysconf.c

Last change on this file was 444, checked in by satin@…, 8 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 232 bytes
RevLine 
[444]1#include <machine/syscall.h>
2#include <unistd.h>
3#include <time.h>
4
5/* Get configurable system variables. */
6
7long
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.