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, 0 is returned. πŸŽ‰
  • On error, -1 is returned, and errno is set to indicate the error. 😭

πŸ’€ ERRORS πŸ’€

  • EFAULT β€” fpemu is 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