summaryrefslogtreecommitdiff
path: root/src/stat
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2012-12-06 19:29:38 +0100
committerrofl0r <retnyg@gmx.net>2012-12-06 20:27:54 +0100
commit7aec71c411373f8b28a8ba1443f2631ad08d4a1b (patch)
tree695e17d0e57a2273926da808cf865b2ecaf76542 /src/stat
parenta631c5df53c22146389228f228506936e258379b (diff)
downloadmusl-7aec71c411373f8b28a8ba1443f2631ad08d4a1b.tar.gz
musl-7aec71c411373f8b28a8ba1443f2631ad08d4a1b.tar.bz2
musl-7aec71c411373f8b28a8ba1443f2631ad08d4a1b.tar.xz
musl-7aec71c411373f8b28a8ba1443f2631ad08d4a1b.zip
add obsolete futimesat()
this function is obsolete, however it's available as a syscall and as such qemu userspace emulation tries to forward it to the host kernel.
Diffstat (limited to 'src/stat')
-rw-r--r--src/stat/futimesat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/stat/futimesat.c b/src/stat/futimesat.c
new file mode 100644
index 00000000..0cc18545
--- /dev/null
+++ b/src/stat/futimesat.c
@@ -0,0 +1,9 @@
+#include <sys/time.h>
+#include "syscall.h"
+
+#ifdef SYS_futimesat
+int futimesat(int dirfd, const char *pathname, const struct timeval times[2])
+{
+ return syscall(SYS_futimesat, dirfd, pathname, times);
+}
+#endif