diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-05-28 01:35:54 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-05-31 01:37:50 +0200 |
| commit | 1a0f71cd428261994c875bf8682db55909714724 (patch) | |
| tree | 612f57046dab6d175e4691a3d9ed017b49b63dbd | |
| parent | 65e409a77a7fe3109226ee6d3968bb4a4d75bc4a (diff) | |
| download | man-pages-1a0f71cd428261994c875bf8682db55909714724.tar.gz | |
prctl.2, PR_GET_FPEXC.2const: Split PR_GET_FPEXC from prctl(2)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man2/prctl.2 | 9 | ||||
| -rw-r--r-- | man/man2const/PR_GET_FPEXC.2const | 47 |
2 files changed, 50 insertions, 6 deletions
diff --git a/man/man2/prctl.2 b/man/man2/prctl.2 index 3ceeef0234..bd6b03aec5 100644 --- a/man/man2/prctl.2 +++ b/man/man2/prctl.2 @@ -18,7 +18,6 @@ .\" Updated Linux versions where the options where introduced. .\" Added PR_SET_TIMING, PR_GET_TIMING, PR_SET_NAME, PR_GET_NAME, .\" PR_SET_UNALIGN, PR_GET_UNALIGN, -.\" PR_GET_FPEXC .\" 2008-06-13 Erik Bosman, <ejbosman@cs.vu.nl> .\" Document PR_GET_TSC and PR_SET_TSC. .\" 2008-06-15 mtk, Document PR_SET_SECCOMP, PR_GET_SECCOMP @@ -90,11 +89,8 @@ The first argument can be: .B PR_GET_FPEMU .TQ .B PR_SET_FPEXC -.TP -.BR PR_GET_FPEXC " (since Linux 2.4.21, 2.5.32, only on PowerPC)" -Return floating-point exception mode, -in the location pointed to by -.IR "(int\~*) arg2" . +.TQ +.B PR_GET_FPEXC .\" prctl PR_SET_IO_FLUSHER .TP .BR PR_SET_IO_FLUSHER " (since Linux 5.6)" @@ -2064,4 +2060,5 @@ glibc 2.0.6 .BR PR_SET_FPEMU (2const), .BR PR_GET_FPEMU (2const), .BR PR_SET_FPEXC (2const), +.BR PR_GET_FPEXC (2const), .BR core (5) diff --git a/man/man2const/PR_GET_FPEXC.2const b/man/man2const/PR_GET_FPEXC.2const new file mode 100644 index 0000000000..7eac3197c9 --- /dev/null +++ b/man/man2const/PR_GET_FPEXC.2const @@ -0,0 +1,47 @@ +.\" Copyright Guillem Jover <guillem@hadrons.org> +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.\" Modified 2006-08-30 Guillem Jover <guillem@hadrons.org> +.\" Added +.\" PR_GET_FPEXC +.\" +.TH PR_GET_FPEXC 2const (date) "Linux man-pages (unreleased)" +.SH NAME +PR_GET_FPEXC +\- +get the floating-point exception mode +.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_FPEXC " (since Linux 2.4.21, 2.5.32, only on PowerPC)" +Return floating-point exception mode, +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), +.BR PR_SET_FPEXC (2const) |
