[libc-commits] [libc] [libc] Add CPU_CLR(_S) macros (PR #204590)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Thu Jun 18 07:18:36 PDT 2026
================
@@ -0,0 +1,28 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Implementation header for __sched_clrcpuset.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_SCHED_SCHED_CLRCPUSET_H
+#define LLVM_LIBC_SRC_SCHED_SCHED_CLRCPUSET_H
+
+#include "hdr/types/cpu_set_t.h"
+#include "hdr/types/size_t.h"
+#include "src/__support/macros/config.h"
+
+namespace LIBC_NAMESPACE_DECL {
----------------
kaladron wrote:
I think __sched_clrcpuset needs to be extern "C" for linkage, and not wrapped in the namespace for this to work in C and C++, doesn't it?
https://github.com/llvm/llvm-project/pull/204590
More information about the libc-commits
mailing list