[libc-commits] [libc] [libc] Add implementation of getcpu syscall wrapper (PR #150871)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Mon Jul 28 13:50:18 PDT 2025
================
@@ -0,0 +1,21 @@
+//===-- Implementation header for getcpu ------------------------*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_SCHED_GETCPU_H
+#define LLVM_LIBC_SRC_SCHED_GETCPU_H
+
+#include "src/__support/macros/config.h"
+#include <sched.h>
----------------
michaelrj-google wrote:
this include is unnecessary
https://github.com/llvm/llvm-project/pull/150871
More information about the libc-commits
mailing list