| Index: fusl/src/time/utime.c
|
| diff --git a/fusl/src/time/utime.c b/fusl/src/time/utime.c
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e7592b297809c817a2ec9ca4368be1f37147920b
|
| --- /dev/null
|
| +++ b/fusl/src/time/utime.c
|
| @@ -0,0 +1,11 @@
|
| +#include <utime.h>
|
| +#include <sys/stat.h>
|
| +#include <time.h>
|
| +#include <fcntl.h>
|
| +
|
| +int utime(const char *path, const struct utimbuf *times)
|
| +{
|
| + return utimensat(AT_FDCWD, path, times ? ((struct timespec [2]){
|
| + { .tv_sec = times->actime }, { .tv_sec = times->modtime }})
|
| + : 0, 0);
|
| +}
|
|
|