aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man/man2/prctl.223
-rw-r--r--man/man2const/PR_GET_FP_MODE.2const52
2 files changed, 55 insertions, 20 deletions
diff --git a/man/man2/prctl.2 b/man/man2/prctl.2
index 0d635d77d9..6397ca2385 100644
--- a/man/man2/prctl.2
+++ b/man/man2/prctl.2
@@ -82,25 +82,8 @@ The first argument can be:
.B PR_GET_ENDIAN
.TQ
.B PR_SET_FP_MODE
-.\" prctl PR_GET_FP_MODE
-.TP
-.BR PR_GET_FP_MODE " (since Linux 4.0, only on MIPS)"
-Return (as the function result)
-the current floating-point mode
-(see
-.BR PR_SET_FP_MODE (2const)
-for details).
-.IP
-On success,
-the call returns a bit mask which represents the current floating-point mode.
-.IP
-The arguments
-.IR arg2 ,
-.IR arg3 ,
-.IR arg4 ,
-and
-.I arg5
-are ignored.
+.TQ
+.B PR_GET_FP_MODE
.\" prctl PR_SET_FPEMU
.TP
.BR PR_SET_FPEMU " (since Linux 2.4.18, 2.5.9, only on ia64)"
@@ -1735,7 +1718,6 @@ of the calling process.
for information on the protection mask bits.)
.SH RETURN VALUE
On success,
-.BR PR_GET_FP_MODE ,
.BR PR_GET_IO_FLUSHER ,
.BR PR_GET_KEEPCAPS ,
.BR PR_MCE_KILL_GET ,
@@ -2104,4 +2086,5 @@ glibc 2.0.6
.BR PR_SET_ENDIAN (2const),
.BR PR_GET_ENDIAN (2const),
.BR PR_SET_FP_MODE (2const),
+.BR PR_GET_FP_MODE (2const),
.BR core (5)
diff --git a/man/man2const/PR_GET_FP_MODE.2const b/man/man2const/PR_GET_FP_MODE.2const
new file mode 100644
index 0000000000..2dda449d40
--- /dev/null
+++ b/man/man2const/PR_GET_FP_MODE.2const
@@ -0,0 +1,52 @@
+.\" Copyright 2016, Eugene Syromyatnikov <evgsyr@gmail.com>
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.TH PR_GET_FP_MODE 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+PR_GET_FP_MODE
+\-
+get the floating point mode 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_FP_MODE " (since Linux 4.0, only on MIPS)"
+Return (as the function result)
+the current floating-point mode
+(see
+.BR PR_SET_FP_MODE (2const)
+for details).
+.IP
+On success,
+the call returns a bit mask which represents the current floating-point mode.
+.IP
+The arguments
+.IR arg2 ,
+.IR arg3 ,
+.IR arg4 ,
+and
+.I arg5
+are ignored.
+.SH RETURN VALUE
+On success,
+.BR PR_GET_FP_MODE ,
+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_GET_FP_MODE (2const)