Commit e370f9f5 authored by Nils Goroll's avatar Nils Goroll

add faccessat() and access()

parent 03a5d439
......@@ -11,6 +11,9 @@ FUNCTION(int, rename, const char *, const char *)
FUNCTION(int, utimes, const char *, const struct timeval *)
FUNCTION(int, utime, const char *, const struct utimbuf *)
FUNCTION(int, access, const char *, int)
FUNCTION(int, faccessat, int, const char *, int, int)
#if defined(HAVE_LUTIMES)
FUNCTION(int, lutimes, const char *, const struct timeval *)
#endif
......
......@@ -943,6 +943,17 @@ our64(lstat)(const char *name, struct stat64 *sb) {
}
#endif
/* ACCESS */
int
our(faccessat)(int fd, const char *name, int amode, int flag) {
Xatl(real(faccessat), fd, name, amode, flag);
}
int
our(access)(const char *name, int amode) {
return our(faccessat)(AT_FDCWD, name, amode, 0);
}
/* RMDIR */
int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment