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
fix return value of gethostnbyname[2]_r on result not found
[musl.git]
/
compat
/
time32
/
utime_time32.c
blob
65f11d463413f78b37b7e0511918ffa9569408cb
1
#include
"time32.h"
2
#include <time.h>
3
#include <utime.h>
4
5
struct
utimbuf32
{
6
time32_t actime
;
7
time32_t modtime
;
8
};
9
10
int
__utime_time32
(
const char
*
path
,
const struct
utimbuf32
*
times32
)
11
{
12
return
utime
(
path
, !
times32
?
0
: (&(
struct
utimbuf
){
13
.
actime
=
times32
->
actime
, .
modtime
=
times32
->
modtime
}));
14
}