about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-09 15:41:36 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-09 16:54:01 +0100
commitacfb96832ad33b9e21e39c9a0e252e279f512dc5 (patch)
tree65914e2230e4eaa1a326b9ef654ffad2d299365d
parent3b395246aa4663de42d69868043bbabdd81e2929 (diff)
downloadglibc-acfb96832ad33b9e21e39c9a0e252e279f512dc5.tar.gz
glibc-acfb96832ad33b9e21e39c9a0e252e279f512dc5.tar.xz
glibc-acfb96832ad33b9e21e39c9a0e252e279f512dc5.zip
Linux: statx syscall number is always available
Due to the built-in tables, __NR_statx is always defined.
-rw-r--r--sysdeps/unix/sysv/linux/statx.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sysdeps/unix/sysv/linux/statx.c b/sysdeps/unix/sysv/linux/statx.c
index a119b7a29e..9721fc12a5 100644
--- a/sysdeps/unix/sysv/linux/statx.c
+++ b/sysdeps/unix/sysv/linux/statx.c
@@ -25,17 +25,14 @@ int
 statx (int fd, const char *path, int flags,
        unsigned int mask, struct statx *buf)
 {
-#ifdef __NR_statx
   int ret = INLINE_SYSCALL_CALL (statx, fd, path, flags, mask, buf);
-# ifdef __ASSUME_STATX
+#ifdef __ASSUME_STATX
   return ret;
-# else
+#else
   if (ret == 0 || errno != ENOSYS)
     /* Preserve non-error/non-ENOSYS return values.  */
     return ret;
-# endif
-#endif
-#ifndef __ASSUME_STATX
-  return statx_generic (fd, path, flags, mask, buf);
+  else
+    return statx_generic (fd, path, flags, mask, buf);
 #endif
 }