aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-05-26 18:16:56 +0200
committerAlejandro Colomar <alx@kernel.org>2024-05-30 15:31:15 +0200
commitdf160b610d7eb8c5ca796da8ccdf3fc19d438110 (patch)
tree74cfad19c9859899df610f9767ec6cf34469c828
parent43480e06fcdaa89b2e67eb262fc776133960249d (diff)
downloadman-pages-df160b610d7eb8c5ca796da8ccdf3fc19d438110.tar.gz
PR_GET_CHILD_SUBREAPER.2const: Tweak after split
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man2const/PR_GET_CHILD_SUBREAPER.2const17
1 files changed, 7 insertions, 10 deletions
diff --git a/man/man2const/PR_GET_CHILD_SUBREAPER.2const b/man/man2const/PR_GET_CHILD_SUBREAPER.2const
index 32052b86e8..2472aea160 100644
--- a/man/man2const/PR_GET_CHILD_SUBREAPER.2const
+++ b/man/man2const/PR_GET_CHILD_SUBREAPER.2const
@@ -1,9 +1,8 @@
.\" Copyright 2012, 2013, 2015 Michael Kerrisk <mtk.manpages@gmail.com>
+.\" Copyright 2024, Alejandro Colomar <alx@kernel.org>
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.\" 2012-02-04 Michael Kerrisk, document PR_GET_CHILD_SUBREAPER
-.\"
.TH PR_GET_CHILD_SUBREAPER 2const (date) "Linux man-pages (unreleased)"
.SH NAME
PR_GET_CHILD_SUBREAPER
@@ -16,16 +15,12 @@ Standard C library
.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 );"
+.BI "int prctl(PR_GET_CHILD_SUBREAPER, int *" isset ", 0L, 0L, 0L);"
.fi
.SH DESCRIPTION
-.TP
-.BR PR_GET_CHILD_SUBREAPER " (since Linux 3.4)"
Return the "child subreaper" setting of the caller,
in the location pointed to by
-.IR "(int\~*) arg2" .
+.IR isset .
.SH RETURN VALUE
On success,
0 is returned.
@@ -35,10 +30,12 @@ is set to indicate the error.
.SH ERRORS
.TP
.B EFAULT
-.I arg2
+.I isset
is an invalid address.
.SH STANDARDS
Linux.
.SH HISTORY
+Linux 3.4.
.SH SEE ALSO
-.BR prctl (2)
+.BR prctl (2),
+.BR PR_SET_CHILD_SUBREAPER (2const)