PR_SET_FPEMU(2const)

πŸ’… PR_SET_FPEMU πŸ’…

okay bestie so real talk β€” this is a page from the 2const girlies, which is just the manual's way of saying "this isn't its own syscall, it's one of those special constants you hand to prctl(2)." And literally, the whole vibe here is: set floating-point emulation control bits. That's it. That's the name. PR_SET_FPEMU πŸ’–


πŸ“š LIBRARY πŸ“š

Standard C library (libc, -lc). Yep, she's a libc girlie. πŸŽ€


✨ SYNOPSIS ✨

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

int prctl(PR_SET_FPEMU, long fpemu);

so you're calling prctl(2) like always, and the first arg is literally the constant PR_SET_FPEMU, and the second one is your long fpemu. That's the whole thing. Slay. πŸ¦‹


🌸 DESCRIPTION 🌸

You're setting the floating-point emulation control bits to whatever fpemu says they should be. Iconic behavior honestly.

And then you pick your flavor of fpemu:

  • PR_FPEMU_NOPRINT β€” this one says: silently emulate floating-point operation accesses. No drama, no noise, just vibes. 🀫
  • PR_FPEMU_SIGFPE β€” this one is the opposite energy: do not emulate floating-point operations, and send SIGFPE instead. She's loud. She's telling you something's wrong. πŸ’€

πŸ‘‘ RETURN VALUE πŸ‘‘

  • On success? You get 0. Periodt. ✨
  • On error? You get -1, and errno gets set to tell you what went down. 😭

πŸ™ˆ ERRORS πŸ™ˆ

  • EINVAL β€” fpemu is not a valid value. ma'am. that is not a real option. 🫢

🌈 STANDARDS 🌈

Linux. ia64 only, bestie β€” don't go trying this on your x86 laptop and then act surprised. iykyk. πŸ’œ


πŸ•°οΈ HISTORY πŸ•°οΈ

Linux 2.4.18 and 2.5.9. And yes, it's (ia64). She's been around a minute. πŸŽ€


πŸ”₯ SEE ALSO πŸ”₯

(that second one is the getter β€” the one who tells you what the bits currently are, if you were wondering πŸ’…)


mwah πŸ’‹ that's the whole page. thanks for reading, bestie β€” go set some floating-point emulation bits responsibly.

this little love letter came to you from Linux man-pages 6.20, dated 2026-02-08. she's a PR_SET_FPEMU(2const) girl through and through. πŸ¦‹βœ¨

πŸ“¦ 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