[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


================
@@ -62,3 +62,19 @@ add_entrypoint_object(
     libc.src.__support.File.dir
     libc.src.errno.errno
 )
+
+add_entrypoint_object(
+	scandir
+	SRCS
+	  scandir.cpp
+	HDRS
+	  scandir.h
+	DEPENDS
+    libc.hdr.types.struct_dirent
+    libc.src.__support.common
+    libc.src.__support.File.dir
+    libc.src.__support.File.platform_dir
+    libc.src.__support.macros.config
+    libc.src.errno.errno
+    libc.include.dirent
----------------
vonosmas wrote:

We shouldn't be including generated headers here.

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


More information about the libc-commits mailing list