[libc-commits] [libc] [libc] Implement mkostemp (PR #224112)

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Wed Sep 16 13:50:21 PDT 2026


================
@@ -153,6 +153,23 @@ add_entrypoint_object(
     libc.src.__support.macros.null_check
 )
 
+add_entrypoint_object(
+  mkostemp
+  SRCS
+    mkostemp.cpp
+  HDRS
+    ../mkostemp.h
+  DEPENDS
+    .mktemp_util
+    libc.hdr.errno_macros
+    libc.hdr.fcntl_macros
+    libc.src.__support.OSUtil.linux.syscall_wrappers.open
+    libc.src.__support.common
+    libc.src.__support.libc_errno
----------------
vonosmas wrote:

You need to depend on libc.src.errno.errno to ensure you have access to the global

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


More information about the libc-commits mailing list