aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-05-26 19:14:20 +0200
committerAlejandro Colomar <alx@kernel.org>2024-05-31 01:37:47 +0200
commit8673e585c62867463fc6133e1bdadf1cb299e2ea (patch)
treecc6293fb62ea46dcf6f823bb0ba9c1473816fc4f
parentfd15732c695dd7ef66612ce33c846dfd52ef4e02 (diff)
downloadman-pages-8673e585c62867463fc6133e1bdadf1cb299e2ea.tar.gz
prctl.2, PR_GET_DUMPABLE.2const: Split PR_GET_DUMPABLE from prctl(2)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man2/prctl.214
-rw-r--r--man/man2const/PR_GET_DUMPABLE.2const44
2 files changed, 48 insertions, 10 deletions
diff --git a/man/man2/prctl.2 b/man/man2/prctl.2
index f287fdf0f2..272ebe7305 100644
--- a/man/man2/prctl.2
+++ b/man/man2/prctl.2
@@ -12,7 +12,7 @@
.\"
.\" Modified Thu Nov 11 04:19:42 MET 1999, aeb: added PR_GET_PDEATHSIG
.\" Modified 27 Jun 02, Michael Kerrisk
-.\" Added PR_GET_DUMPABLE,
+.\" Added
.\" PR_SET_KEEPCAPS, PR_GET_KEEPCAPS
.\" Modified 2006-08-30 Guillem Jover <guillem@hadrons.org>
.\" Updated Linux versions where the options where introduced.
@@ -74,14 +74,8 @@ The first argument can be:
.B PR_GET_CHILD_SUBREAPER
.TQ
.B PR_SET_DUMPABLE
-.\" prctl PR_GET_DUMPABLE
-.TP
-.BR PR_GET_DUMPABLE " (since Linux 2.3.20)"
-Return (as the function result) the current state of the calling
-process's dumpable attribute.
-.\" Since Linux 2.6.13, the dumpable flag can have the value 2,
-.\" but in Linux 2.6.13 PR_GET_DUMPABLE simply returns 1 if the dumpable
-.\" flags has a nonzero value. This was fixed in Linux 2.6.14.
+.TQ
+.B PR_GET_DUMPABLE
.\" prctl PR_SET_ENDIAN
.TP
.BR PR_SET_ENDIAN " (since Linux 2.6.18, PowerPC only)"
@@ -1857,7 +1851,6 @@ of the calling process.
for information on the protection mask bits.)
.SH RETURN VALUE
On success,
-.BR PR_GET_DUMPABLE ,
.BR PR_GET_FP_MODE ,
.BR PR_GET_IO_FLUSHER ,
.BR PR_GET_KEEPCAPS ,
@@ -2231,4 +2224,5 @@ glibc 2.0.6
.BR PR_SET_CHILD_SUBREAPER (2const),
.BR PR_GET_CHILD_SUBREAPER (2const),
.BR PR_SET_DUMPABLE (2const),
+.BR PR_GET_DUMPABLE (2const),
.BR core (5)
diff --git a/man/man2const/PR_GET_DUMPABLE.2const b/man/man2const/PR_GET_DUMPABLE.2const
new file mode 100644
index 0000000000..ba50036438
--- /dev/null
+++ b/man/man2const/PR_GET_DUMPABLE.2const
@@ -0,0 +1,44 @@
+.\" Copyright 2002, 2006, 2008, 2012, 2013, 2015, Michael Kerrisk <mtk.manpages@gmail.com>
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.\" Modified 27 Jun 02, Michael Kerrisk
+.\" Added PR_GET_DUMPABLE
+.\"
+.TH PR_GET_DUMPABLE 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+PR_GET_DUMPABLE
+\-
+get the "dumpable" attribute of the calling process
+.SH LIBRARY
+Standard C library
+.RI ( libc ", " \-lc )
+.SH SYNOPSIS
+.nf
+.B #include <sys/prctl.h>
+.P
+.BI "int prctl(int " op ", ..."
+.BI " \fR/*\fP unsigned long " arg2 ", unsigned long " arg3 ,
+.BI " unsigned long " arg4 ", unsigned long " arg5 " \fR*/\fP );"
+.fi
+.SH DESCRIPTION
+.TP
+.BR PR_GET_DUMPABLE " (since Linux 2.3.20)"
+Return (as the function result) the current state of the calling
+process's dumpable attribute.
+.\" Since Linux 2.6.13, the dumpable flag can have the value 2,
+.\" but in Linux 2.6.13 PR_GET_DUMPABLE simply returns 1 if the dumpable
+.\" flags has a nonzero value. This was fixed in Linux 2.6.14.
+.SH RETURN VALUE
+On success,
+.BR PR_GET_DUMPABLE ,
+return the nonnegative values 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_DUMPABLE (2const)