]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: statx syscall number is always available
authorFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:12:11 +0000 (12:12 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:12:11 +0000 (12:12 +0100)
Due to the built-in tables, __NR_statx is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/statx.c

index a119b7a29e977f073af72c697a6e6eb79291cfbf..9721fc12a5592c3dcda6de8a693c03f68742e122 100644 (file)
@@ -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
 }