[libc-commits] [libc] [libc] Implement scandir and its unit tests (PR #223198)

Vadim Kotov via libc-commits libc-commits at lists.llvm.org
Fri Sep 25 15:55:46 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"
----------------
vadimkotov wrote:

I remembered the problem. Basically if I add `-type: int (*)(const struct dirent **, const struct dirent **)` to `dirent.yaml` it'll generate `#include struct_dirent_struct_dirent.h`. IIUC it's hdrgen issue, so hence I made those aliases.

https://github.com/llvm/llvm-project/pull/223198


More information about the libc-commits mailing list