diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-05-26 19:31:18 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-05-31 01:37:47 +0200 |
| commit | 662affecb1005e7bfc512fb8b7e51069ff8bd9b2 (patch) | |
| tree | 1abadf81cc69d373c17f7c3a510b1bf733dcedb6 | |
| parent | d801abf0a795c6644d2d2f531c2cce7c704163ae (diff) | |
| download | man-pages-662affecb1005e7bfc512fb8b7e51069ff8bd9b2.tar.gz | |
prctl.2, PR_SET_ENDIAN.2const: Split PR_SET_ENDIAN from prctl(2)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man2/prctl.2 | 14 | ||||
| -rw-r--r-- | man/man2const/PR_SET_ENDIAN.2const | 49 |
2 files changed, 52 insertions, 11 deletions
diff --git a/man/man2/prctl.2 b/man/man2/prctl.2 index 272ebe7305..ddeb3af5d8 100644 --- a/man/man2/prctl.2 +++ b/man/man2/prctl.2 @@ -76,17 +76,8 @@ The first argument can be: .B PR_SET_DUMPABLE .TQ .B PR_GET_DUMPABLE -.\" prctl PR_SET_ENDIAN -.TP -.BR PR_SET_ENDIAN " (since Linux 2.6.18, PowerPC only)" -Set the endian-ness of the calling process to the value given -in \fIarg2\fP, which should be one of the following: -.\" Respectively 0, 1, 2 -.BR PR_ENDIAN_BIG , -.BR PR_ENDIAN_LITTLE , -or -.B PR_ENDIAN_PPC_LITTLE -(PowerPC pseudo little endian). +.TQ +.B PR_SET_ENDIAN .\" prctl PR_GET_ENDIAN .TP .BR PR_GET_ENDIAN " (since Linux 2.6.18, PowerPC only)" @@ -2225,4 +2216,5 @@ glibc 2.0.6 .BR PR_GET_CHILD_SUBREAPER (2const), .BR PR_SET_DUMPABLE (2const), .BR PR_GET_DUMPABLE (2const), +.BR PR_SET_ENDIAN (2const), .BR core (5) diff --git a/man/man2const/PR_SET_ENDIAN.2const b/man/man2const/PR_SET_ENDIAN.2const new file mode 100644 index 0000000000..209748b662 --- /dev/null +++ b/man/man2const/PR_SET_ENDIAN.2const @@ -0,0 +1,49 @@ +.\" Copyright 2006, 2008, 2012, 2013, 2015, Michael Kerrisk <mtk.manpages@gmail.com> +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH PR_SET_ENDIAN 2const (date) "Linux man-pages (unreleased)" +.SH NAME +PR_SET_ENDIAN +\- +set endianness 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_SET_ENDIAN " (since Linux 2.6.18, PowerPC only)" +Set the endian-ness of the calling process to the value given +in \fIarg2\fP, which should be one of the following: +.\" Respectively 0, 1, 2 +.BR PR_ENDIAN_BIG , +.BR PR_ENDIAN_LITTLE , +or +.B PR_ENDIAN_PPC_LITTLE +(PowerPC pseudo little endian). +.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 EINVAL +.I arg2 +is not a valid value for this +.IR op . +.SH STANDARDS +Linux. +.SH HISTORY +.SH SEE ALSO +.BR prctl (2), +.BR PR_GET_ENDIAN (2const) |
