Debian Codegraph @

upstream/debian-unstable/man2/PR_GET_DUMPABLE.2const

raw
1 .\" Copyright 2002-2015, Michael Kerrisk <[email protected]>
2 .\" Copyright, the authors of the Linux man-pages project
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH PR_GET_DUMPABLE 2const 2026-02-08 "Linux man-pages 6.18"
7 .SH NAME
8 PR_GET_DUMPABLE
9 \-
10 get the "dumpable" attribute of the calling process
11 .SH LIBRARY
12 Standard C library
13 .RI ( libc ,\~ \-lc )
14 .SH SYNOPSIS
15 .nf
16 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
17 .B #include <sys/prctl.h>
18 .P
19 .B int prctl(PR_GET_DUMPABLE);
20 .fi
21 .SH DESCRIPTION
22 Return the current state of the calling
23 process's "dumpable" attribute.
24 .\" Since Linux 2.6.13, the dumpable flag can have the value 2,
25 .\" but in Linux 2.6.13 PR_GET_DUMPABLE simply returns 1 if the dumpable
26 .\" flags has a nonzero value. This was fixed in Linux 2.6.14.
27 See
28 .BR PR_SET_DUMPABLE (2const).
29 .SH RETURN VALUE
30 On success,
31 return the value described above.
32 On error, \-1 is returned, and
33 .I errno
34 is set to indicate the error.
35 .SH STANDARDS
36 Linux.
37 .SH HISTORY
38 Linux 2.3.20.
39 .SH SEE ALSO
40 .BR prctl (2),
41 .BR PR_SET_DUMPABLE (2const)