projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
src
/
time
/
utime.c
1
#include <utime.h>
2
#include "syscall.h"
3
4
int utime(const char *path, const struct utimbuf *times)
5
{
6
long ktimes[2];
7
if (times) {
8
ktimes[0] = times->actime;
9
ktimes[1] = times->modtime;
10
}
11
return syscall2(__NR_utime, (long)path, times ? (long)ktimes : 0);
12
}