diff --git a/include/sys/time.h b/include/sys/time.h index a0ed8e0fc183314aa68c5a78a164fc5204c99141..559e817eb6d1fe4e90fca49bd03f9ce642023353 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 0000000000000000000000000000000000000000..0cc185454db095f18cbff97aa37e4a4f6ae9bfb0 --- /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