]> git.ipfire.org Git - thirdparty/systemd.git/commit
dirent-util: use getdents64() as is
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Jun 2025 15:17:36 +0000 (00:17 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Jun 2025 08:45:49 +0000 (10:45 +0200)
commit43aacae83aa513666ae71f1682cb8d9477172583
tree9d291937b8b6fa5d55c70c1668d6f4dc23f05eee
parentabb99d3168259136187f81e0f701cda712ffd78d
dirent-util: use getdents64() as is

This partially reverts e86a492ff08526e5adf85fa881c76f80adc3c84a.

The function getdents64() was introduced in glibc-2.30, and our baseline
on glibc is 2.31. Hence, we can assume the function always exists.
The posix_getdents() wrapper was introduced for compatibility with musl.
However, even the latest release of musl does not provide posix_getdents()
yet. Also, even with musl, by defining _LARGEFILE64_SOURCE, we can get
getdents64() and struct dirent64. Hence, the wrapper is anyway not
necessary.
meson.build
src/basic/dirent-util.h
src/basic/recurse-dir.c
src/basic/stat-util.c