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:
-1is returned, anderrnois 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
- Copyright 2016, Eugene Syromyatnikov <evgsyr@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms