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.
This commit is contained in:
parent
a631c5df53
commit
7aec71c411
2 changed files with 10 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ int utimes (const char *, const struct timeval [2]);
|
||||||
|
|
||||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
int futimes(int, const struct timeval [2]);
|
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 lutimes(const char *, const struct timeval [2]);
|
||||||
int settimeofday (const struct timeval *, void *);
|
int settimeofday (const struct timeval *, void *);
|
||||||
int adjtime (const struct timeval *, struct timeval *);
|
int adjtime (const struct timeval *, struct timeval *);
|
||||||
|
|
|
||||||
9
src/stat/futimesat.c
Normal file
9
src/stat/futimesat.c
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue