[libc-commits] [libc] [libc] init uefi os target (PR #120687)

Tristan Ross via libc-commits libc-commits at lists.llvm.org
Sat Feb 8 07:47:47 PST 2025


================
@@ -0,0 +1,24 @@
+//===-- Implementation of puts for baremetal-------------------------------===//
+//
+// 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/puts.h"
+#include "src/__support/UEFI/file.h"
+#include "src/__support/macros/config.h"
+#include "src/string/strlen.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+LLVM_LIBC_FUNCTION(int, puts, (const char *__restrict str)) {
+  int rc = (int)stdout.write(reinterpret_cast<const void *>(str), strlen(str));
----------------
RossComputerGuy wrote:

This is done

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


More information about the libc-commits mailing list