projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mq names without leading / have impl-def behavior; allowing them is easier
[musl]
/
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(SYS_gettimeofday, &tv, 0);
9
if (t) *t = tv.tv_sec;
10
return tv.tv_sec;
11
}