aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-03-03 12:20:31 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:20:31 +0100
commit4fe5d3867ae1aa351b8adb76858a9c05819cf3d9 (patch)
tree5ef746e1f148b6e88e590fbb42470ada65f3baeb /sysdeps
parentLinux: Clean up preadv2, pwritev2 system call names (diff)
downloadglibc-4fe5d3867ae1aa351b8adb76858a9c05819cf3d9.tar.gz
glibc-4fe5d3867ae1aa351b8adb76858a9c05819cf3d9.tar.bz2
glibc-4fe5d3867ae1aa351b8adb76858a9c05819cf3d9.zip
Linux: getdents64 syscall number is always available on MIPS
Due to the built-in tables, __NR_getdents64 is always defined, although it may not be supported at run time. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/getdents64.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c b/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c
index 4edf968b09..d18a5297dc 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c
+++ b/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c
@@ -34,7 +34,6 @@ __getdents64 (int fd, void *buf, size_t nbytes)
if (nbytes > INT_MAX)
nbytes = INT_MAX;
-#ifdef __NR_getdents64
static int getdents64_supported = true;
if (atomic_load_relaxed (&getdents64_supported))
{
@@ -44,7 +43,6 @@ __getdents64 (int fd, void *buf, size_t nbytes)
atomic_store_relaxed (&getdents64_supported, false);
}
-#endif
/* Unfortunately getdents64 was only wire-up for MIPS n64 on Linux 3.10.
If the syscall is not available it need to fallback to the non-LFS one.