summaryrefslogtreecommitdiff
path: root/src/time/gettimeofday.c
blob: 2b8a287d36bd25fe5949ac23a09fbfb8526ec441 (plain)
1
2
3
4
5
6
7
8
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;
}