Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/riscv/sys_gettimeofday.c

11 lines
255 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
#include <machine/syscall.h>
#include <sys/time.h>
#include "internal_syscall.h"
/* Get the current time. Only relatively correct. */
int
_gettimeofday(struct timeval *tp, void *tzp)
{
return syscall_errno (SYS_gettimeofday, 1, tp, 0, 0, 0, 0, 0);
}