aboutsummaryrefslogtreecommitdiffstats
path: root/guts/access.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/access.c')
-rw-r--r--guts/access.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/guts/access.c b/guts/access.c
deleted file mode 100644
index c250c2e..0000000
--- a/guts/access.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2010 Wind River Systems; see
- * guts/COPYRIGHT for information.
- *
- * static int
- * wrap_access(const char *path, int mode) {
- * int rc = -1;
- */
- struct stat64 buf;
-
- /* note: no attempt to handle the case where user isn't
- * root.
- */
- rc = wrap___fxstatat64(_STAT_VER, AT_FDCWD, path, &buf, 0);
- if (rc == -1)
- return rc;
-
- if (mode & X_OK) {
- if (buf.st_mode & 0111) {
- return 0;
- } else {
- errno = EPERM;
- return -1;
- }
- } else {
- return 0;
- }
-
-/* return rc;
- * }
- */