[libc-commits] [libc] [libc] Correct standard for getcpu (PR #153982)
Aiden Grossman via libc-commits
libc-commits at lists.llvm.org
Sat Aug 16 15:03:07 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/153982
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.
>From 571f7f10c72fa7cddd7547fb158e6d76e3c1a944 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sat, 16 Aug 2025 22:02:05 +0000
Subject: [PATCH] [libc] Correct standard for getcpu
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.
---
libc/include/sched.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 *
More information about the libc-commits
mailing list