projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
syscall overhaul part two - unify public and internal syscall interface
[oweals/musl.git]
/
src
/
time
/
time.c
1
#include <time.h>
2
#include <sys/time.h>
3
#include "syscall.h"
4
5
time_t time(time_t *t)
6
{
7
struct timeval tv;
8
__syscall(__NR_gettimeofday, &tv, 0);
9
if (t) *t = tv.tv_sec;
10
return tv.tv_sec;
11
}