projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b2b5741b32099a63b2b02ecb275377b6f9e32f23
[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
}