---
name: "PR_SET_FPEMU"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/PR_SET_FPEMU"
---

# PR\_SET\_FPEMU(2const)

set floating-point emulation control bits

## NAME

PR\_SET\_FPEMU - set floating-point emulation control bits

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>
```

**int prctl(PR\_SET\_FPEMU, long** *fpemu***);**

## DESCRIPTION

Set floating-point emulation control bits to *fpemu*. Pass **PR\_FPEMU\_NOPRINT** to silently emulate floating-point operation accesses, or **PR\_FPEMU\_SIGFPE** to not emulate floating-point operations and send **SIGFPE** instead.

## RETURN VALUE

On success, 0 is returned. On error, -1 is returned, and *errno* is set to indicate the error.

## ERRORS

- **EINVAL**

  *fpemu* is not a valid value.

## STANDARDS

Linux. ia64 only.

## HISTORY

Linux 2.4.18, 2.5.9. (ia64)

## SEE ALSO

[**prctl**(2)](/prctl/2.md), [**PR\_GET\_FPEMU**(2const)](/PR_GET_FPEMU/2const.md)
