PR_GET_FP_MODE(2const)

πŸ’– PR_GET_FP_MODE(2const) πŸ’–

okay bestie, gather round, because this one is tiny but it's giving very specific niche energy and I am obsessed πŸŽ€

This is a page from the man-pages fam, and it's all about PR_GET_FP_MODE β€” the lil prctl call that asks the kernel "hey, what's my floating point mode rn?" 🌸


✨ NAME ✨

PR_GET_FP_MODE β€” get the floating point mode of the calling process πŸ¦‹


πŸ“š LIBRARY πŸ“š

Standard C library (libc, -lc) πŸ’…


🌈 SYNOPSIS 🌈

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

int prctl(PR_GET_FP_MODE);

no cap, that's the whole vibe check πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

So basically it returns a bit mask that represents the current floating-point mode. That's it. That's the whole function. Short queen behavior πŸ‘‘

If you wanna know what all those bits mean, go read PR_SET_FP_MODE(2const) β€” that page has the details, this one is just the "hey, what's it set to?" half of the duo 🫢


πŸ”₯ RETURN VALUE πŸ”₯

  • On success: this call returns the nonnegative value described above ⭐
  • On error: -1 is returned, and errno is set to indicate the error πŸ’€

πŸ‘‘ STANDARDS πŸ‘‘

Linux. MIPS only. (yes bestie, only MIPS, that's not a typo, it's giving exclusive πŸ’…)


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

Linux 4.0 (MIPS) ✨


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page, bestie!! 🌈 this slay was brought to you by Linux man-pages 6.20, dated 2026-02-08 β€” thanks for coming to my ted talk, ily, go read prctl(2) next πŸ§šπŸ’–

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