[libc-commits] [libc] [libc] Add tmpnam implementation (PR #204901)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Sat Jun 20 03:33:22 PDT 2026


================
@@ -55,4 +55,16 @@ extern FILE *stderr;
 #define SEEK_END 2
 #endif
 
+#ifndef L_tmpnam
+#define L_tmpnam 20
----------------
kaladron wrote:

Magic constants need explanations as to how / why you chose them.  You mentioned in the PR description that they came from glibc - but we need to not just copy them.  They should have a reason for why they are this that we independently believe (and then explain or derive them here)

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


More information about the libc-commits mailing list