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 😭 β€” -1 comes back, and errno gets 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms