diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-03-03 12:12:11 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-03-03 12:12:11 +0100 |
commit | 7255ccbec997312033c9fe48e0971a2e7cb19fbf (patch) | |
tree | 9da3029e1572b9850bc5a3f988e435e0441b35f0 /sysdeps | |
parent | 276e6080c8646c7f8a9139da8028f25c80d8bdca (diff) | |
download | glibc-7255ccbec997312033c9fe48e0971a2e7cb19fbf.tar glibc-7255ccbec997312033c9fe48e0971a2e7cb19fbf.tar.gz glibc-7255ccbec997312033c9fe48e0971a2e7cb19fbf.tar.bz2 glibc-7255ccbec997312033c9fe48e0971a2e7cb19fbf.zip |
Linux: statx syscall number is always available
Due to the built-in tables, __NR_statx is always defined.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/statx.c | 11 |
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 } |