aboutsummaryrefslogtreecommitdiffstats
path: root/man2/mprotect.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/mprotect.2')
-rw-r--r--man2/mprotect.225
1 files changed, 16 insertions, 9 deletions
diff --git a/man2/mprotect.2 b/man2/mprotect.2
index 2bf3098d06..52c14da058 100644
--- a/man2/mprotect.2
+++ b/man2/mprotect.2
@@ -192,12 +192,6 @@ in the middle of a region currently protected as
would result in three mappings:
two read/write mappings at each end and a read-only mapping in the middle.)
.SH VERSIONS
-.BR pkey_mprotect ()
-first appeared in Linux 4.9;
-library support was added in glibc 2.27.
-.SH STANDARDS
-.BR mprotect ():
-POSIX.1-2001, POSIX.1-2008, SVr4.
.\" SVr4 defines an additional error
.\" code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
POSIX says that the behavior of
@@ -206,9 +200,6 @@ is unspecified if it is applied to a region of memory that
was not obtained via
.BR mmap (2).
.PP
-.BR pkey_mprotect ()
-is a nonportable Linux extension.
-.SH NOTES
On Linux, it is always permissible to call
.BR mprotect ()
on any address in a process's address space (except for the
@@ -266,6 +257,22 @@ When called this way, the operation of
.BR pkey_mprotect ()
is equivalent to
.BR mprotect ().
+.SH STANDARDS
+.TP
+.BR mprotect ()
+POSIX.1-2008.
+.TP
+.BR pkey_mprotect ()
+Linux.
+.SH HISTORY
+.TP
+.BR mprotect ()
+POSIX.1-2001, SVr4.
+.TP
+.BR pkey_mprotect ()
+Linux 4.9,
+glibc 2.27.
+.SH NOTES
.SH EXAMPLES
.\" sigaction.2 refers to this example
The program below demonstrates the use of