Debian Codegraph @

upstream/debian-unstable/man2/PR_SET_FPEMU.2const

raw
1 .\" Copyright, Guillem Jover <[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_SET_FPEMU 2const 2026-02-08 "Linux man-pages 6.18"
7 .SH NAME
8 PR_SET_FPEMU
9 \-
10 set floating-point emulation control bits
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 .BI "int prctl(PR_SET_FPEMU, long " fpemu );
20 .fi
21 .SH DESCRIPTION
22 Set floating-point emulation control bits to
23 .IR fpemu .
24 Pass
25 .B PR_FPEMU_NOPRINT
26 to silently emulate floating-point operation accesses, or
27 .B PR_FPEMU_SIGFPE
28 to not emulate floating-point operations and send
29 .B SIGFPE
30 instead.
31 .SH RETURN VALUE
32 On success,
33 0 is returned.
34 On error, \-1 is returned, and
35 .I errno
36 is set to indicate the error.
37 .SH ERRORS
38 .TP
39 .B EINVAL
40 .I fpemu
41 is not a valid value.
42 .SH STANDARDS
43 Linux.
44 ia64 only.
45 .SH HISTORY
46 Linux 2.4.18, 2.5.9.
47 (ia64)
48 .SH SEE ALSO
49 .BR prctl (2),
50 .BR PR_GET_FPEMU (2const)