mirror of
https://github.com/fluencelabs/musl
synced 2025-06-29 06:32:16 +00:00
initial check-in, version 0.5.0
This commit is contained in:
9
src/time/gettimeofday.c
Normal file
9
src/time/gettimeofday.c
Normal file
@ -0,0 +1,9 @@
|
||||
#define SYSCALL_RETURN_ERRNO
|
||||
#include <sys/time.h>
|
||||
#include "syscall.h"
|
||||
|
||||
int gettimeofday(struct timeval *tv, void *tz)
|
||||
{
|
||||
syscall2(__NR_gettimeofday, (long)tv, 0);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user