]> git.ipfire.org Git - thirdparty/systemd.git/commit
dirent-util: introduce simple wrapper of posix_getdents() 36565/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Mar 2025 18:11:58 +0000 (03:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Mar 2025 19:23:57 +0000 (04:23 +0900)
commite86a492ff08526e5adf85fa881c76f80adc3c84a
tree2f1621a5dba3b09e43b7e227d70d8811c165754d
parentec32732043550ec311dfb0e7be4e7f114366dd24
dirent-util: introduce simple wrapper of posix_getdents()

glibc exports getdents64 syscall as is, but musl exports it as
posix_getdents(). Let's introduce a simple wrapper of posix_getdents().

Note, our baseline for glibc is 2.31. Hence, we can assume getdents64()
always defined when building with glibc.
meson.build
src/basic/dirent-util.h
src/basic/missing_syscall.h
src/basic/recurse-dir.c
src/basic/stat-util.c