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
move msghdr and cmsghdr out of bits/socket.h
[musl.git]
/
src
/
time
/
utime.c
blob
e7592b297809c817a2ec9ca4368be1f37147920b
1
#include <utime.h>
2
#include <sys/stat.h>
3
#include <time.h>
4
#include <fcntl.h>
5
6
int
utime
(
const char
*
path
,
const struct
utimbuf
*
times
)
7
{
8
return
utimensat
(
AT_FDCWD
,
path
,
times
? ((
struct
timespec
[
2
]){
9
{ .
tv_sec
=
times
->
actime
}, { .
tv_sec
=
times
->
modtime
}})
10
:
0
,
0
);
11
}