aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-05-31 15:11:20 +0200
committerAlejandro Colomar <alx@kernel.org>2024-05-31 17:09:35 +0200
commit959d2a63006cd996e44cf15d5e4ae479b77d773f (patch)
tree20137a2ca22b73d4bd04d8d2acaef42f08410173
parent6eb05e73c70c6d3b6d2096a82c68203d06ffede9 (diff)
downloadman-pages-959d2a63006cd996e44cf15d5e4ae479b77d773f.tar.gz
prctl.2, PR_GET_TIMING.2const: Split PR_GET_TIMING from prctl(2)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man2/prctl.216
-rw-r--r--man/man2const/PR_GET_TIMING.2const41
2 files changed, 47 insertions, 10 deletions
diff --git a/man/man2/prctl.2 b/man/man2/prctl.2
index 1d52d94828..a857849067 100644
--- a/man/man2/prctl.2
+++ b/man/man2/prctl.2
@@ -12,7 +12,7 @@
.\"
.\" Modified 2006-08-30 Guillem Jover <guillem@hadrons.org>
.\" Updated Linux versions where the options where introduced.
-.\" Added PR_GET_TIMING
+.\" Added
.\" PR_SET_UNALIGN, PR_GET_UNALIGN,
.\" 2008-06-13 Erik Bosman, <ejbosman@cs.vu.nl>
.\" Document PR_GET_TSC and PR_SET_TSC.
@@ -149,12 +149,8 @@ The first argument can be:
.B PR_GET_TIMERSLACK
.TQ
.B PR_SET_TIMING
-.\" prctl PR_GET_TIMING
-.TP
-.BR PR_GET_TIMING " (since Linux 2.6.0)"
-.\" Precisely: Linux 2.6.0-test4
-Return (as the function result) which process timing method is currently
-in use.
+.TQ
+.B PR_GET_TIMING
.\" prctl PR_SET_TSC
.TP
.BR PR_SET_TSC " (since Linux 2.6.26, x86 only)"
@@ -251,9 +247,8 @@ of the calling process.
for information on the protection mask bits.)
.SH RETURN VALUE
On success,
-.BR PR_GET_TIMING ,
-.BR PR_GET_AUXV ,
-return the nonnegative values described above.
+.B PR_GET_AUXV
+returns the nonnegative value described above.
All other
.I op
values return 0 on success.
@@ -355,4 +350,5 @@ glibc 2.0.6
.BR PR_SET_TIMERSLACK (2const),
.BR PR_GET_TIMERSLACK (2const),
.BR PR_SET_TIMING (2const),
+.BR PR_GET_TIMING (2const),
.BR core (5)
diff --git a/man/man2const/PR_GET_TIMING.2const b/man/man2const/PR_GET_TIMING.2const
new file mode 100644
index 0000000000..88a614831c
--- /dev/null
+++ b/man/man2const/PR_GET_TIMING.2const
@@ -0,0 +1,41 @@
+.\" Copyright, Guillem Jover <guillem@hadrons.org>
+.\" Copyright 2006, 2008, 2012, 2013, 2015, Michael Kerrisk <mtk.manpages@gmail.com>
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.\" Modified 2006-08-30 Guillem Jover <guillem@hadrons.org>
+.\" Added PR_GET_TIMING
+.\"
+.TH PR_GET_TIMING 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+PR_GET_TIMING
+\-
+get the process timing mode
+.SH LIBRARY
+Standard C library
+.RI ( libc ", " \-lc )
+.SH SYNOPSIS
+.nf
+.B #include <sys/prctl.h>
+.P
+.BI "int prctl(int " op ", ...);"
+.fi
+.SH DESCRIPTION
+.TP
+.BR PR_GET_TIMING " (since Linux 2.6.0)"
+.\" Precisely: Linux 2.6.0-test4
+Return (as the function result) which process timing method is currently
+in use.
+.SH RETURN VALUE
+On success,
+.BR PR_GET_TIMING ,
+returns the nonnegative value described above.
+On error, \-1 is returned, and
+.I errno
+is set to indicate the error.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.SH SEE ALSO
+.BR prctl (2),
+.BR PR_SET_TIMING (2const)