diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-05-26 18:12:13 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-05-30 15:31:15 +0200 |
| commit | 43480e06fcdaa89b2e67eb262fc776133960249d (patch) | |
| tree | 3093281b4e8f676ea0fcc036e0d589ed58944d3b | |
| parent | 48de2e61fbddc4f48aa84014189a4f373ee70538 (diff) | |
| download | man-pages-43480e06fcdaa89b2e67eb262fc776133960249d.tar.gz | |
prctl.2, PR_GET_CHILD_SUBREAPER.2const: Split PR_GET_CHILD_SUBREAPER from prctl(2)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man2/prctl.2 | 10 | ||||
| -rw-r--r-- | man/man2const/PR_GET_CHILD_SUBREAPER.2const | 44 |
2 files changed, 47 insertions, 7 deletions
diff --git a/man/man2/prctl.2 b/man/man2/prctl.2 index 2a6a43dad6..2e6d9f4022 100644 --- a/man/man2/prctl.2 +++ b/man/man2/prctl.2 @@ -31,7 +31,6 @@ .\" 2012-10-25 Michael Kerrisk, Document PR_SET_TIMERSLACK and .\" PR_GET_TIMERSLACK .\" 2013-01-10 Kees Cook, document PR_SET_PTRACER -.\" 2012-02-04 Michael Kerrisk, document PR_GET_CHILD_SUBREAPER .\" 2014-11-10 Dave Hansen, document PR_MPX_{EN,DIS}ABLE_MANAGEMENT .\" .\" @@ -71,12 +70,8 @@ The first argument can be: .B PR_CAPBSET_DROP .TQ .B PR_SET_CHILD_SUBREAPER -.\" prctl PR_GET_CHILD_SUBREAPER -.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" . +.TQ +.B PR_GET_CHILD_SUBREAPER .\" prctl PR_SET_DUMPABLE .TP .BR PR_SET_DUMPABLE " (since Linux 2.3.20)" @@ -2312,4 +2307,5 @@ glibc 2.0.6 .BR PR_CAPBSET_READ (2const), .BR PR_CAPBSET_DROP (2const), .BR PR_SET_CHILD_SUBREAPER (2const), +.BR PR_GET_CHILD_SUBREAPER (2const), .BR core (5) diff --git a/man/man2const/PR_GET_CHILD_SUBREAPER.2const b/man/man2const/PR_GET_CHILD_SUBREAPER.2const new file mode 100644 index 0000000000..32052b86e8 --- /dev/null +++ b/man/man2const/PR_GET_CHILD_SUBREAPER.2const @@ -0,0 +1,44 @@ +.\" Copyright 2012, 2013, 2015 Michael Kerrisk <mtk.manpages@gmail.com> +.\" +.\" 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 +\- +get the "child subreaper" 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_CHILD_SUBREAPER " (since Linux 3.4)" +Return the "child subreaper" setting of the caller, +in the location pointed to by +.IR "(int\~*) arg2" . +.SH RETURN VALUE +On success, +0 is returned. +On error, \-1 is returned, and +.I errno +is set to indicate the error. +.SH ERRORS +.TP +.B EFAULT +.I arg2 +is an invalid address. +.SH STANDARDS +Linux. +.SH HISTORY +.SH SEE ALSO +.BR prctl (2) |
