[libc-commits] [libc] [libc] Implement scandir and its unit tests (PR #223198)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Thu Sep 24 22:27:50 PDT 2026
================
@@ -14,8 +14,11 @@
#include "src/__support/File/dir.h"
#include "hdr/errno_macros.h"
+#include "include/llvm-libc-types/__scandir_compare_t.h"
----------------
vonosmas wrote:
We should use proxy headers (redirecting headers in hdr/) in `src/` directory. But... given that these types are non-standard I wonder if you need these headers at all (given that there's no alternative for `__scandir_compare_t` in system libc in overlay mode.
E.g. maybe you'll need to resort to just using `int (*filter)(const struct dirent *)` here. Is there a strong reason to export `__scandir_filter_t` from generated header as a type?
https://github.com/llvm/llvm-project/pull/223198
More information about the libc-commits
mailing list