source:
trunk/libs/newlib/src/libgloss/riscv/sys_gettimeofday.c
Last change on this file was 444, checked in by , 6 years ago | |
---|---|
File size: 252 bytes |
Rev | Line | |
---|---|---|
[444] | 1 | #include <machine/syscall.h> |
2 | #include <sys/time.h> | |
3 | #include "internal_syscall.h" | |
4 | ||
5 | /* Get the current time. Only relatively correct. */ | |
6 | int | |
7 | _gettimeofday(struct timeval *tp, void *tzp) | |
8 | { | |
9 | return syscall_errno (SYS_gettimeofday, tp, 0, 0, 0, 0, 0); | |
10 | } |
Note: See TracBrowser
for help on using the repository browser.