[libc-commits] [libc] [libc] Add CPU_CLR(_S) macros (PR #204590)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Thu Jun 18 09:20:55 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 {
----------------
labath wrote:

No, the *declaration* of the function will be generated from the yaml description. And the definition comes from the LLVM_LIBC_FUNCTION macro (by making the C symbol an alias of the c++ function).

In this sense this function is the same as all our entry points -- the only difference is that we don't expect users to call it directly.

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


More information about the libc-commits mailing list