From 04e590e6a54e9ad7aadec96b75da8aae69fdf93a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 6 Feb 2019 09:07:53 +0100 Subject: [PATCH] getcpu.2: getcpu() now has a glibc wrapper; remove mention of syscall(2) The glibc wrapper was added in glibc 2.29, release on 1 Feb 2019. Signed-off-by: Tobias Klauser Signed-off-by: Michael Kerrisk --- man2/getcpu.2 | 9 --------- 1 file changed, 9 deletions(-) diff --git a/man2/getcpu.2 b/man2/getcpu.2 index c66f3d4a1..88f8cdb8e 100644 --- a/man2/getcpu.2 +++ b/man2/getcpu.2 @@ -19,9 +19,6 @@ getcpu \- determine CPU and NUMA node on which the calling thread is running .BI "int getcpu(unsigned *" cpu ", unsigned *" node \ ", struct getcpu_cache *" tcache ); .fi -.PP -.IR Note : -There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION The .BR getcpu () @@ -82,12 +79,6 @@ The intention of is to allow programs to make optimizations with per-CPU data or for NUMA optimization. .PP -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2); -or use -.BR sched_getcpu (3) -instead. -.PP The .I tcache argument is unused since Linux 2.6.24.