Home GnuPG
Diffusion GPGME 00daac15530e

core: use getdents64 syscall on linux instead of getdents.

Description

core: use getdents64 syscall on linux instead of getdents.

* src/posix-io.c (get_max_fds): use getdents64 instead of getdents.

getdents64 was introduced in linux 2.4, so it should be widely
available. some Linux architectures which post-date 2.4 (e.g. arm64)
appear to not have getdents at all, so it's probably better to use the
more modern interface.

  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Provenance
dkgAuthored on Oct 11 2017, 5:38 PM
wernerCommitted on Oct 12 2017, 9:00 AM
Parents
rM4632adf40361: core: Allow disabling the use of SYS_getdents for Linux.
Branches
Unknown
Tags
Unknown