summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man3/sched_getcpu.3
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
commit932e4432596447eb9331cc2a2bb74a26a35b4efc (patch)
tree95161711ea07fd64f0c82d6e7943024c033dd5a8 /upstream/opensuse-tumbleweed/man3/sched_getcpu.3
parentAdding debian version 4.22.0-1. (diff)
downloadmanpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.tar.xz
manpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.zip
Merging upstream version 4.23.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/opensuse-tumbleweed/man3/sched_getcpu.3')
-rw-r--r--upstream/opensuse-tumbleweed/man3/sched_getcpu.317
1 files changed, 8 insertions, 9 deletions
diff --git a/upstream/opensuse-tumbleweed/man3/sched_getcpu.3 b/upstream/opensuse-tumbleweed/man3/sched_getcpu.3
index eb34a115..a1c6c67b 100644
--- a/upstream/opensuse-tumbleweed/man3/sched_getcpu.3
+++ b/upstream/opensuse-tumbleweed/man3/sched_getcpu.3
@@ -4,7 +4,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH sched_getcpu 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH sched_getcpu 3 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
sched_getcpu \- determine CPU on which the calling thread is running
.SH LIBRARY
@@ -13,15 +13,15 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <sched.h>
-.PP
+.P
.B int sched_getcpu(void);
.fi
-.PP
+.P
.RS -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.RE
-.PP
+.P
.BR sched_getcpu ():
.nf
Since glibc 2.14:
@@ -60,28 +60,27 @@ T{
.BR sched_getcpu ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH STANDARDS
GNU.
.SH HISTORY
glibc 2.6.
.SH NOTES
The call
-.PP
+.P
.in +4n
.EX
cpu = sched_getcpu();
.EE
.in
-.PP
+.P
is equivalent to the following
.BR getcpu (2)
call:
-.PP
+.P
.in +4n
.EX
int c, s;
-s = getcpu(&c, NULL, NULL);
+s = getcpu(&c, NULL);
cpu = (s == \-1) ? s : c;
.EE
.in