PR_GET_FPEXC(2const)

πŸ’– PR_GET_FPEXC πŸ’–

okay bestie, so this is PR_GET_FPEXC, and it lives in section 2const of the manual β€” like, it's one of the prctl(2) crew, you know the vibe. And yes, it is exactly as niche as it sounds, but it's also kind of iconic, so let's go. 🫢


✨ NAME ✨

PR_GET_FPEXC β€” get the floating-point exception mode

πŸ“š LIBRARY πŸ“š

Standard C library (libc, -lc) β€” the classic, no cap.

πŸŽ€ SYNOPSIS πŸŽ€

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

int prctl(PR_GET_FPEXC, unsigned int *mode);

🌸 DESCRIPTION 🌸

So what does it actually do? It returns the floating-point exception mode, and it drops that value into the location pointed to by mode. That's it. That's the whole thing. Lowkey elegant honestly. ✨

πŸ”₯ RETURN VALUE πŸ”₯

  • On success, 0 is returned. slay. πŸ’…
  • On error, -1 is returned, and errno is set to indicate the error. not slay. 😭

πŸ’€ ERRORS πŸ’€

  • EFAULT β€” mode is an invalid address. like girl, that pointer is not pointing anywhere real. πŸ™ˆ

πŸ‘‘ STANDARDS πŸ‘‘

Linux. PowerPC only. so if you're on x86 this is giving "not for you" energy, sorry bestie. 🌈

πŸ¦‹ HISTORY πŸ¦‹

Linux 2.4.21, 2.5.32. (PowerPC) β€” yeah, it's been around a minute. vintage. πŸŽ€

⭐ SEE ALSO ⭐


and that's the whole page, bestie!! go forth and get your floating-point exception mode πŸ’–βœ¨

this little cutie came to you from Linux man-pages 6.20, dated 2026-02-08, and it's filed under PR_GET_FPEXC(2const) β€” periodt. πŸŽ€πŸ¦‹

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