Debian Codegraph @

upstream/debian-trixie/man2/PR_GET_MDWE.2const

raw
1 .\" Copyright 2023, Florent Revest <[email protected]>
2 .\" Copyright 2024, Alejandro Colomar <[email protected]>
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH PR_GET_MDWE 2const 2024-06-01 "Linux man-pages 6.9.1"
7 .SH NAME
8 PR_GET_MDWE
9 \-
10 get the Memory-Deny-Write-Execute protection mask for 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_MDWE, 0L, 0L, 0L, 0L);
20 .fi
21 .SH DESCRIPTION
22 Return the Memory-Deny-Write-Execute protection mask
23 of the calling process.
24 See
25 .BR PR_SET_MDWE (2const)
26 for information on the protection mask bits.
27 .SH RETURN VALUE
28 On success,
29 a nonnegative value is returned.
30 On error, \-1 is returned, and
31 .I errno
32 is set to indicate the error.
33 .SH STANDARDS
34 Linux.
35 .SH HISTORY
36 Linux 6.3.
37 .\" commit b507808ebce23561d4ff8c2aa1fb949fe402bc61
38 .SH SEE ALSO
39 .BR prctl (2),
40 .BR PR_SET_MDWE (2const)