aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-05-30 13:19:27 +0200
committerAlejandro Colomar <alx@kernel.org>2024-05-31 01:54:54 +0200
commit57e92c1de1ccfc8d86aac300c1b049c7dfbad36b (patch)
tree7bc0c1da0e031523c04e17e6da2a7df5e755873e
parent495577cc1e4a1425b4355f5160ec487c70a92b3e (diff)
downloadman-pages-57e92c1de1ccfc8d86aac300c1b049c7dfbad36b.tar.gz
PR_GET_SECUREBITS.2const: Tweak after split
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man2const/PR_GET_SECUREBITS.2const11
1 files changed, 5 insertions, 6 deletions
diff --git a/man/man2const/PR_GET_SECUREBITS.2const b/man/man2const/PR_GET_SECUREBITS.2const
index f73578de9f..0706796d15 100644
--- a/man/man2const/PR_GET_SECUREBITS.2const
+++ b/man/man2const/PR_GET_SECUREBITS.2const
@@ -1,4 +1,5 @@
.\" Copyright 2008, 2012, 2013, 2015, Michael Kerrisk <mtk.manpages@gmail.com>
+.\" Copyright 2024, Alejandro Colomar <alx@kernel.org>
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
@@ -14,25 +15,23 @@ Standard C library
.nf
.B #include <sys/prctl.h>
.P
-.BI "int prctl(int " op ", ...);"
+.B int prctl(PR_GET_SECUREBITS, 0L, 0L, 0L, 0L);
.fi
.SH DESCRIPTION
-.TP
-.BR PR_GET_SECUREBITS " (since Linux 2.6.26)"
-Return (as the function result)
-the "securebits" flags of the calling thread.
+Return the "securebits" flags of the calling thread.
See
.BR capabilities (7).
.SH RETURN VALUE
On success,
.BR PR_GET_SECUREBITS ,
-return the nonnegative values described above.
+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
+Linux 2.6.26.
.SH SEE ALSO
.BR prctl (2),
.BR PR_SET_SECUREBITS (2const),