]> git.ipfire.org Git - thirdparty/systemd.git/commit
recuse-dir: rework to use getdents64() instead of readdir() 20965/head
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Oct 2021 08:48:52 +0000 (10:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Oct 2021 12:31:34 +0000 (14:31 +0200)
commit6393b847f459dba14d2b615ee93babb143168b57
treef40afeb23cb5f91a683175366e23363d36f9d45b
parent25d7a71774170fd39cf08abd74a9a5a40b393f2b
recuse-dir: rework to use getdents64() instead of readdir()

Let's use the underlying Linux API directly, instead of
opendir()/readdir(). This makes it possible for us to do a single memory
allocation for all directory entries in common cases, instead of one for
each entry.
src/basic/recurse-dir.c
src/basic/recurse-dir.h