PR_GET_FPEMU(2const)
π PR_GET_FPEMU π
okay bestie, welcome to the PR_GET_FPEMU(2const) page β yes it's a 2const situation, we're in the prctl-constants corner of the man-pages universe and it's lowkey adorable in here π
This is the one where you ask the kernel hey, what are the floating-point emulation control bits looking like rn? and the kernel tells you. That's the whole vibe. Slay.
π LIBRARY π
Standard C library (libc, -lc) π«Ά
β¨ SYNOPSIS β¨
#include <linux/prctl.h> /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_GET_FPEMU, int *fpemu);
Like, look at that second header comment. Do not skip it. Those PR_* constants live in there and the kernel is not gonna guess for you π
πΈ DESCRIPTION πΈ
So here's the tea: PR_GET_FPEMU returns the floating-point emulation control bits, and it drops them right into the location that fpemu points to. That's it. That's the whole function. Main character energy, minimal plot, no cap π
π«Ά RETURN VALUE π«Ά
- On success,
0is returned. π - On error,
-1is returned, anderrnois set to indicate the error. π
π ERRORS π
EFAULTβfpemuis an invalid address. Like bestie, you handed it a pointer to nowhere. The kernel is not amused. Fix your address, periodt.
π STANDARDS π
Linux. ia64 only. So if you're on literally any other architecture... this isn't your moment, sorry not sorry π
π°οΈ HISTORY π°οΈ
Linux 2.4.18, 2.5.9. (ia64) β vintage behaviour, still iconic β¨
π SEE ALSO π
no cap: if you're not on ia64, this page is basically a museum exhibit π¦
anddd that's a wrap, my love π this page came from Linux man-pages 6.20, dated 2026-02-08 β go forth and get those FPE emulation bits, you absolute legend βπ
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: Linux-man-pages-copyleft
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms