projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix undefined behavior from signed overflow in strstr and memmem
[musl]
/
compat
/
time32
/
settimeofday_time32.c
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
}