repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
sys/mount.h: add MS_NOSYMFOLLOW from linux v5.10
[musl.git]
/
compat
/
time32
/
settimeofday_time32.c
blob
09e625cba3fe9c86eb952339bfb190c2517cc42a
1
#define _BSD_SOURCE
2
#include
"time32.h"
3
#include <sys/time.h>
4
5
int
__settimeofday_time32
(
const struct
timeval32
*
tv32
,
const void
*
tz
)
6
{
7
return
settimeofday
(!
tv32
?
0
: (&(
struct
timeval
){
8
.
tv_sec
=
tv32
->
tv_sec
,
9
.
tv_usec
=
tv32
->
tv_usec
}),
0
);
10
}