aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/not-errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/not-errno.h')
-rw-r--r--sysdeps/unix/sysv/linux/not-errno.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/sysdeps/unix/sysv/linux/not-errno.h b/sysdeps/unix/sysv/linux/not-errno.h
index 9100bde..e55a7c4 100644
--- a/sysdeps/unix/sysv/linux/not-errno.h
+++ b/sysdeps/unix/sysv/linux/not-errno.h
@@ -19,23 +19,6 @@
#include <sysdep.h>
#include <fcntl.h>
-/* This function is used on maybe_enable_malloc_check (elf/dl-tunables.c)
- and to avoid having to build/use multiple versions if stack protection
- in enabled it is defined as inline. */
-static inline int
-__access_noerrno (const char *pathname, int mode)
-{
- int res;
-#ifdef __NR_access
- res = INTERNAL_SYSCALL_CALL (access, pathname, mode);
-#else
- res = INTERNAL_SYSCALL_CALL (faccessat, AT_FDCWD, pathname, mode);
-#endif
- if (INTERNAL_SYSCALL_ERROR_P (res))
- return INTERNAL_SYSCALL_ERRNO (res);
- return 0;
-}
-
static inline int
__kill_noerrno (pid_t pid, int sig)
{