projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
math.h: make __FLOAT_BITS and __DOUBLE_BITS C89
[musl]
/
src
/
time
/
utime.c
1
#include <utime.h>
2
#include <sys/time.h>
3
#include "syscall.h"
4
5
int utime(const char *path, const struct utimbuf *times)
6
{
7
if (times) {
8
struct timeval tv[2] = {
9
{ .tv_sec = times->actime },
10
{ .tv_sec = times->modtime } };
11
return syscall(SYS_utimes, path, tv);
12
}
13
return syscall(SYS_utimes, path, 0);
14
}