[libc-commits] [libc] [libc] Add tmpnam implementation (PR #204901)
Shubh Pachchigar via libc-commits
libc-commits at lists.llvm.org
Sat Jun 20 12:28:38 PDT 2026
================
@@ -0,0 +1,89 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+/// valid pathname that does not name an existing file. The function is
+/// potentially capable of generating {TMP_MAX} different strings, but any or
+/// all of them may already be in use by existing files and thus not be suitable
+/// return values.
+///
+/// The tmpnam() function generates a different string each time it is called
----------------
shubhe25p wrote:
Okay sure I can remove it.
https://github.com/llvm/llvm-project/pull/204901
More information about the libc-commits
mailing list