]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Assume __NR_openat is always defined
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 23 Mar 2016 22:35:08 +0000 (23:35 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 23 Mar 2016 22:35:08 +0000 (23:35 +0100)
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.

.gitattributes
ChangeLog
sysdeps/unix/sysv/linux/dl-openat64.c

index 8947e726a2149e5a26ef39fdd662a27e8f25a685..06b553db8093147545a556628bebf9b500752af0 100644 (file)
@@ -1 +1,2 @@
+ChangeLog    merge=merge-changelog
 timezone/* -whitespace
index b7574b06ea67fe79bf7f218d8751662c2d2916a9..ce633e7649a6d436c802c8e31cfb6c3313656d3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
+
+       * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
+       Make code unconditional.
+
 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
 
        * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
index 1138779174845060b82d308ee1662652fe257cb4..75c2439a3dee94c72bfbdd1e7f021ae6d453061e 100644 (file)
@@ -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
 }