[libc-commits] [libc] [libc] Implement fdopendir (PR #206590)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Jun 30 10:56:57 PDT 2026


================
@@ -48,3 +48,18 @@ add_entrypoint_object(
     libc.src.__support.File.platform_dir
     libc.src.errno.errno
 )
+
+add_entrypoint_object(
+  fdopendir
+  SRCS
+    fdopendir.cpp
+  HDRS
+    fdopendir.h
+  DEPENDS
+    libc.include.dirent
+    libc.hdr.types.DIR
+    libc.src.__support.File.dir
+    libc.src.__support.File.platform_dir
+    libc.src.errno.errno
----------------
michaelrj-google wrote:

there needs to be something that depends on `libc.include.dirent` else the header might not get built. That said it doesn't need to be here so I've removed it.

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


More information about the libc-commits mailing list