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

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Jan 6 12:00:45 PST 2025


================
@@ -0,0 +1,41 @@
+//===---------- UEFI implementation of IO utils ------------*- C++ -*-===//
+//
+// 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 "io.h"
+
+#include "src/__support/CPP/string_view.h"
+#include "src/__support/macros/config.h"
+#include <Uefi.h>
+
+namespace LIBC_NAMESPACE_DECL {
+
+ssize_t read_from_stdin(char *buf, size_t size) {
+  (void)buf;
+  (void)size;
----------------
nickdesaulniers wrote:

IIRC, I think you can either put unused attributes on the parameters, or leave them unnamed. https://godbolt.org/z/54db75bx6

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


More information about the libc-commits mailing list