mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
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>
This commit is contained in:
@@ -34,7 +34,6 @@ __getdents64 (int fd, void *buf, size_t nbytes)
|
|||||||
if (nbytes > INT_MAX)
|
if (nbytes > INT_MAX)
|
||||||
nbytes = INT_MAX;
|
nbytes = INT_MAX;
|
||||||
|
|
||||||
#ifdef __NR_getdents64
|
|
||||||
static int getdents64_supported = true;
|
static int getdents64_supported = true;
|
||||||
if (atomic_load_relaxed (&getdents64_supported))
|
if (atomic_load_relaxed (&getdents64_supported))
|
||||||
{
|
{
|
||||||
@@ -44,7 +43,6 @@ __getdents64 (int fd, void *buf, size_t nbytes)
|
|||||||
|
|
||||||
atomic_store_relaxed (&getdents64_supported, false);
|
atomic_store_relaxed (&getdents64_supported, false);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Unfortunately getdents64 was only wire-up for MIPS n64 on Linux 3.10.
|
/* 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.
|
If the syscall is not available it need to fallback to the non-LFS one.
|
||||||
|
Reference in New Issue
Block a user