source: trunk/libs/newlib/src/libgloss/riscv/sys_gettimeofday.c @ 444

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

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

File size: 252 bytes
Line 
1#include <machine/syscall.h>
2#include <sys/time.h>
3#include "internal_syscall.h"
4
5/* Get the current time.  Only relatively correct.  */
6int
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.