summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man3/get_nprocs.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/get_nprocs.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/get_nprocs.3')
-rw-r--r--upstream/opensuse-tumbleweed/man3/get_nprocs.313
1 files changed, 6 insertions, 7 deletions
diff --git a/upstream/opensuse-tumbleweed/man3/get_nprocs.3 b/upstream/opensuse-tumbleweed/man3/get_nprocs.3
index 583054d1..96446a5f 100644
--- a/upstream/opensuse-tumbleweed/man3/get_nprocs.3
+++ b/upstream/opensuse-tumbleweed/man3/get_nprocs.3
@@ -4,7 +4,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH get_nprocs 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH get_nprocs 3 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
get_nprocs, get_nprocs_conf \- get number of processors
.SH LIBRARY
@@ -13,7 +13,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <sys/sysinfo.h>
-.PP
+.P
.B int get_nprocs(void);
.B int get_nprocs_conf(void);
.fi
@@ -21,7 +21,7 @@ Standard C library
The function
.BR get_nprocs_conf ()
returns the number of processors configured by the operating system.
-.PP
+.P
The function
.BR get_nprocs ()
returns the number of processors currently available in the system.
@@ -45,7 +45,6 @@ T{
.BR get_nprocs_conf ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH STANDARDS
GNU.
.SH NOTES
@@ -55,12 +54,12 @@ implementation of these functions is rather expensive,
since they open and parse files in the
.I /sys
filesystem each time they are called.
-.PP
+.P
The following
.BR sysconf (3)
calls make use of the functions documented on this page
to return the same information.
-.PP
+.P
.in +4n
.EX
np = sysconf(_SC_NPROCESSORS_CONF); /* processors configured */
@@ -73,7 +72,7 @@ The following example shows how
and
.BR get_nprocs_conf ()
can be used.
-.PP
+.P
.\" SRC BEGIN (get_nprocs_conf.c)
.EX
#include <stdio.h>