[libc-commits] [libc] [libc] Implement perror (PR #143624)
via libc-commits
libc-commits at lists.llvm.org
Tue Jun 10 21:08:38 PDT 2025
================
@@ -0,0 +1,80 @@
+//===-- Implementation of perror ------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/stdio/perror.h"
+#include "src/__support/CPP/string_view.h"
+#include "src/__support/File/file.h"
+#include "src/__support/StringUtil/error_to_string.h"
+#include "src/__support/macros/config.h"
+#include "src/errno/libc_errno.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+int write_out(cpp::string_view str_view, File *f) {
----------------
lntue wrote:
mark `write_out` and `write_sequence` as `static` to prevent their symbols exported?
https://github.com/llvm/llvm-project/pull/143624
More information about the libc-commits
mailing list