summaryrefslogtreecommitdiff
path: root/sysdeps/nacl/access.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/nacl/access.c')
-rw-r--r--sysdeps/nacl/access.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/nacl/access.c b/sysdeps/nacl/access.c
index 95a0fb726b..e07d5582d6 100644
--- a/sysdeps/nacl/access.c
+++ b/sysdeps/nacl/access.c
@@ -19,6 +19,13 @@
#include <unistd.h>
#include <nacl-interfaces.h>
+/* Test for access to FILE without setting errno. */
+int
+__access_noerrno (const char *file, int type)
+{
+ return NACL_CALL_NOERRNO (__nacl_irt_dev_filename.access (file, type), 0);
+}
+
/* Test for access to FILE. */
int
__access (const char *file, int type)