| 1 |
.\" Copyright 2016, Eugene Syromyatnikov <[email protected]> |
| 2 |
.\" Copyright, the authors of the Linux man-pages project |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 5 |
.\" |
| 6 |
.TH PR_GET_FP_MODE 2const 2026-02-08 "Linux man-pages 6.18" |
| 7 |
.SH NAME |
| 8 |
PR_GET_FP_MODE |
| 9 |
\- |
| 10 |
get the floating point mode of the calling process |
| 11 |
.SH LIBRARY |
| 12 |
Standard C library |
| 13 |
.RI ( libc ,\~ \-lc ) |
| 14 |
.SH SYNOPSIS |
| 15 |
.nf |
| 16 |
.BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */" |
| 17 |
.B #include <sys/prctl.h> |
| 18 |
.P |
| 19 |
.B int prctl(PR_GET_FP_MODE); |
| 20 |
.fi |
| 21 |
.SH DESCRIPTION |
| 22 |
Return a bit mask which represents |
| 23 |
the current floating-point mode |
| 24 |
(see |
| 25 |
.BR PR_SET_FP_MODE (2const) |
| 26 |
for details). |
| 27 |
.SH RETURN VALUE |
| 28 |
On success, |
| 29 |
this call returns the nonnegative value described above. |
| 30 |
On error, \-1 is returned, and |
| 31 |
.I errno |
| 32 |
is set to indicate the error. |
| 33 |
.SH STANDARDS |
| 34 |
Linux. |
| 35 |
MIPS only. |
| 36 |
.SH HISTORY |
| 37 |
Linux 4.0 (MIPS). |
| 38 |
.SH SEE ALSO |
| 39 |
.BR prctl (2), |
| 40 |
.BR PR_GET_FP_MODE (2const) |