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

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Thu Aug 27 22:22:47 PDT 2026


================
@@ -0,0 +1,103 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Declaration of tmpnam, a POSIX function that generate a string that is a
----------------
vonosmas wrote:

Nit - you can shorten this comment to smth. like "Linux implementation of tmpnam." Same for the `.h` file.

First, this is not a declaration (it was likely copy-pasted from header). Second, the link would go stale with the next POSIX release.

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


More information about the libc-commits mailing list