[libc-commits] [libc] [libc][sched] Implement proxy headers for `cpu_set_t`, `struct sched_param` and `sched_macros`. (PR #126303)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Feb 13 13:24:42 PST 2025


================
@@ -12,7 +12,7 @@
 typedef struct {
   // If a processor with more than 1024 CPUs is to be supported in future,
   // we need to adjust the size of this array.
-  unsigned long __mask[128 / sizeof(unsigned long)];
+  unsigned long __bits[128 / sizeof(unsigned long)];
----------------
nickdesaulniers wrote:

> when we're in overlay mode, this would include sched.h from the system's libc

Right, and libc/include/llvm-libc-types/cpu_set_t.h should only be included in fullbuild mode, not overlay mode.

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


More information about the libc-commits mailing list