about summary refs log tree commit diff
path: root/src/stat/utimensat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat/utimensat.c')
-rw-r--r--src/stat/utimensat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stat/utimensat.c b/src/stat/utimensat.c
new file mode 100644
index 00000000..b9b02adf
--- /dev/null
+++ b/src/stat/utimensat.c
@@ -0,0 +1,7 @@
+#include <sys/stat.h>
+#include "syscall.h"
+
+int utimensat(int fd, const char *path, const struct timespec times[2], int flags)
+{
+	return syscall4(__NR_utimensat, fd, (long)path, (long)times, flags);
+}