musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/linux/utimes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/utimes.c')
-rw-r--r--src/linux/utimes.c 5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/linux/utimes.c b/src/linux/utimes.c
index 70c0695f..b814c88b 100644
--- a/src/linux/utimes.c
+++ b/src/linux/utimes.c
@@ -1,7 +1,10 @@
#include <sys/time.h>
+#include "fcntl.h"
#include "syscall.h"
+int __futimesat(int, const char *, const struct timeval [2]);
+
int utimes(const char *path, const struct timeval times[2])
{
- return syscall(SYS_utimes, path, times);
+ return __futimesat(AT_FDCWD, path, times);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月18日 00:44:11 +0000

AltStyle によって変換されたページ (->オリジナル) /