basic: add new recurse_dir() tool as replacement for nftw()

libc nftw() shows its age a bit, let's replace it with a more moden
infra that is built around openat(), O_PATH, statx(). This makes the
interface less prone to races and cleans up the API a bit adding
substantially more functionality.
This commit is contained in:
Lennart Poettering
2021-10-07 11:58:26 +02:00
parent edcd27dcaf
commit b5a07e524e
3 changed files with 493 additions and 0 deletions
+2
View File
@@ -192,6 +192,8 @@ basic_sources = files('''
raw-reboot.h
recovery-key.c
recovery-key.h
recurse-dir.c
recurse-dir.h
replace-var.c
replace-var.h
rlimit-util.c