[libc-commits] [libc] [libc] Correct standard for getcpu (PR #153982)
via libc-commits
libc-commits at lists.llvm.org
Sat Aug 16 15:03:44 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
Given this is a syscall wrapper and not in POSIX, this should actually be defined under the Linux standard.
https://man7.org/linux/man-pages/man2/getcpu.2.html confirms.
---
Full diff: https://github.com/llvm/llvm-project/pull/153982.diff
1 Files Affected:
- (modified) libc/include/sched.yaml (+1-1)
``````````diff
diff --git a/libc/include/sched.yaml b/libc/include/sched.yaml
index f14799ddf33fa..8014aa7ed61fc 100644
--- a/libc/include/sched.yaml
+++ b/libc/include/sched.yaml
@@ -20,7 +20,7 @@ functions:
- type: const cpu_set_t *
- name: getcpu
standards:
- - POSIX
+ - Linux
return_type: int
arguments:
- type: unsigned int *
``````````
</details>
https://github.com/llvm/llvm-project/pull/153982
More information about the libc-commits
mailing list