[libc-commits] [libc] [libc] Add implementation of getcpu syscall wrapper (PR #150871)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Jul 29 09:41:19 PDT 2025


================
@@ -0,0 +1,30 @@
+//===-- Implementation of getcpu ------------------------------------------===//
+//
+// 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/sched/getcpu.h"
+
+#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
+#include "src/__support/common.h"
+#include "src/__support/libc_errno.h"
+#include "src/__support/macros/config.h"
+
+#include <sched.h>
----------------
michaelrj-google wrote:

yeah, they definitely need some cleanup

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


More information about the libc-commits mailing list