initial check-in, version 0.5.0
[musl] / src / time / gettimeofday.c
1 #define SYSCALL_RETURN_ERRNO
2 #include <sys/time.h>
3 #include "syscall.h"
4
5 int gettimeofday(struct timeval *tv, void *tz)
6 {
7         syscall2(__NR_gettimeofday, (long)tv, 0);
8         return 0;
9 }