projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
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
}