summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/euidaccess.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/euidaccess.c')
-rw-r--r--libc/sysdeps/linux/common/euidaccess.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/euidaccess.c b/libc/sysdeps/linux/common/euidaccess.c
new file mode 100644
index 000000000..6e1f39855
--- /dev/null
+++ b/libc/sysdeps/linux/common/euidaccess.c
@@ -0,0 +1,10 @@
+#define _GNU_SOURCE
+#include <unistd.h>
+#include <fcntl.h>
+
+int euidaccess(const char *filename, int amode)
+{
+ return faccessat(AT_FDCWD, filename, amode, AT_EACCESS);
+}
+
+weak_alias(euidaccess, eaccess);