From 16d94f67e56c8dfd4fcac45ec0380d8b1ba6b2af Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Wed, 23 Mar 2016 23:35:08 +0100 Subject: Assume __NR_openat is always defined With the 2.6.32 minimum kernel on x86 and 3.2 on other architectures, __NR_openat is always defined. Changelog: * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]: Make code unconditional. --- sysdeps/unix/sysv/linux/dl-openat64.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/dl-openat64.c b/sysdeps/unix/sysv/linux/dl-openat64.c index 1138779174..75c2439a3d 100644 --- a/sysdeps/unix/sysv/linux/dl-openat64.c +++ b/sysdeps/unix/sysv/linux/dl-openat64.c @@ -27,9 +27,5 @@ openat64 (int dfd, const char *file, int oflag, ...) { assert (!__OPEN_NEEDS_MODE (oflag)); -#ifdef __NR_openat return INLINE_SYSCALL (openat, 3, dfd, file, oflag | O_LARGEFILE); -#else - return INLINE_SYSCALL_ERROR_RETURN_VALUE (ENOSYS); -#endif } -- cgit v1.2.3-70-g09d2