pull faccessat() system call

3-arg faccessat is unfortunately an incomplete implementation.
It does not match user-space needs, for example due to wrong answer
when egid != gid.

dash started to detect klibc faccessat() syscall wrapper.

Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
diff --git a/usr/include/unistd.h b/usr/include/unistd.h
index 547e717..97760d4 100644
--- a/usr/include/unistd.h
+++ b/usr/include/unistd.h
@@ -58,7 +58,6 @@
 #define F_OK	0		/* Existence */
 
 __extern int access(const char *, int);
-__extern int faccessat(int, const char *, int);
 __extern int link(const char *, const char *);
 __extern int linkat(int, const char *, int, const char *);
 __extern int unlink(const char *);
diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
index ae58b9b..f81452c 100644
--- a/usr/klibc/SYSCALLS.def
+++ b/usr/klibc/SYSCALLS.def
@@ -98,7 +98,6 @@
  * Inode-related system calls
  */
 int access(const char *, int);
-<?> int faccessat(int, const char *, int);
 int link(const char *, const char *);
 <?> int linkat(int, const char *, int, const char *);
 int unlink(const char *);