PR_GET_DUMPABLE(2const)
β¨ PR_GET_DUMPABLE β¨ (a 2const moment, bestie)
okay so real talk, this is one of those little pages that rides along with prctl(2) β it's not its own whole syscall, it's a constant you hand to prctl, and honestly? iconic behavior. π
π NAME π
PR_GET_DUMPABLE β goes and fetches the "dumpable" attribute of the calling process. like, it reads the vibe of your own dumpability. no cap.
π LIBRARY π
Standard C library, aka libc, link it with -lc π«Ά
πΈ SYNOPSIS πΈ
#include <linux/prctl.h> /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_GET_DUMPABLE);
that's it. that's the whole call. one argument, zero drama. β¨
π DESCRIPTION π
So PR_GET_DUMPABLE returns the current state of the calling process's "dumpable" attribute. that's the whole job. it just reports back what the attribute is set to right now. π¦
If you wanna know what that attribute means or how to change it, go read PR_SET_DUMPABLE(2const) β that's the sister page and she has the lore. iykyk.
π RETURN VALUE π
- On success π β it returns the value described up there ^^ (the current state of the dumpable attribute).
- On error π β
-1comes back, anderrnogets set to tell you what went wrong.
π STANDARDS π
Linux. that's it, that's the standard. linux girlies only. π
π HISTORY π
Linux 2.3.20 β so yes, this has been serving since the olden days. vintage. main character energy fr fr. β
π₯ SEE ALSO π₯
and that's the page!! this one came from Linux man-pages 6.20, dated 2026-02-08 β shoutout to the version and the date, they ate, no crumbs. πβ¨ bye bestie, go get that dumpable state π«Ά
π¦ 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 2002-2015, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms