mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
263 B
13 lines
263 B
|
15 years ago
|
#include <utime.h>
|
||
|
|
#include "syscall.h"
|
||
|
|
|
||
|
|
int utime(const char *path, const struct utimbuf *times)
|
||
|
|
{
|
||
|
|
long ktimes[2];
|
||
|
|
if (times) {
|
||
|
|
ktimes[0] = times->actime;
|
||
|
|
ktimes[1] = times->modtime;
|
||
|
|
}
|
||
|
|
return syscall2(__NR_utime, (long)path, times ? (long)ktimes : 0);
|
||
|
|
}
|