From 7aec71c411373f8b28a8ba1443f2631ad08d4a1b Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 6 Dec 2012 19:29:38 +0100 Subject: 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. --- include/sys/time.h | 1 + src/stat/futimesat.c | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 src/stat/futimesat.c diff --git a/include/sys/time.h b/include/sys/time.h index a0ed8e0f..559e817e 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -31,6 +31,7 @@ int utimes (const char *, const struct timeval [2]); #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) int futimes(int, const struct timeval [2]); +int futimesat(int, const char *, const struct timeval [2]); int lutimes(const char *, const struct timeval [2]); int settimeofday (const struct timeval *, void *); int adjtime (const struct timeval *, struct timeval *); 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 +#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 -- cgit v1.2.1