mirror of https://github.com/mkerrisk/man-pages
mprotect.2: srcfix: rewrap source lines
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a9799e8a86
commit
be232513a2
|
@ -71,7 +71,8 @@ The memory can be modified.
|
||||||
The memory can be executed.
|
The memory can be executed.
|
||||||
.TP
|
.TP
|
||||||
.BR PROT_SEM " (since Linux 2.5.7)"
|
.BR PROT_SEM " (since Linux 2.5.7)"
|
||||||
The memory can be used for atomic operations. It was introduced as part of
|
The memory can be used for atomic operations.
|
||||||
|
It was introduced as part of
|
||||||
.BR futex (2)
|
.BR futex (2)
|
||||||
implementation (in order to guarantee ability to perform atomic
|
implementation (in order to guarantee ability to perform atomic
|
||||||
operations required by its commands such as
|
operations required by its commands such as
|
||||||
|
@ -80,9 +81,11 @@ but not actually used in any currently supported architecture so far.
|
||||||
.\" aba46c5027cb59d98052231b36efcbbde9c77a1d ef3d3246a0d06be622867d21af25f997aeeb105f
|
.\" aba46c5027cb59d98052231b36efcbbde9c77a1d ef3d3246a0d06be622867d21af25f997aeeb105f
|
||||||
.TP
|
.TP
|
||||||
.BR PROT_SAO " (since Linux 2.6.26)"
|
.BR PROT_SAO " (since Linux 2.6.26)"
|
||||||
The memory should have strong access ordering. This feature is specific to
|
The memory should have strong access ordering.
|
||||||
PowerPC architecture (version 2.06 of architecture specification adds SAO CPU
|
This feature is specific to
|
||||||
feature, and it is available on POWER 7 or PowerPC A2, for example).
|
PowerPC architecture
|
||||||
|
(version 2.06 of architecture specification adds SAO CPU feature,
|
||||||
|
and it is available on POWER 7 or PowerPC A2, for example).
|
||||||
.PP
|
.PP
|
||||||
Additionally (since Linux 2.6.0),
|
Additionally (since Linux 2.6.0),
|
||||||
.I prot
|
.I prot
|
||||||
|
@ -93,14 +96,15 @@ can have one of the following flags set:
|
||||||
.\" mm->def_flags | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
|
.\" mm->def_flags | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
|
||||||
.\" And calc_vm_flag_bits converts only GROWSDOWN/DENYWRITE/LOCKED.
|
.\" And calc_vm_flag_bits converts only GROWSDOWN/DENYWRITE/LOCKED.
|
||||||
.B PROT_GROWSUP
|
.B PROT_GROWSUP
|
||||||
Apply protection mode up to the end of the mapping which grows up (it should be a
|
Apply protection mode up to the end of the mapping which grows up
|
||||||
stack segment on HP PA-RISC, since there are no other ways to map a segment with
|
(it should be a stack segment on HP PA-RISC,
|
||||||
|
since there are no other ways to map a segment with
|
||||||
.B VM_GROWSUP
|
.B VM_GROWSUP
|
||||||
even if architecture has support for it.)
|
even if architecture has support for it.)
|
||||||
.TP
|
.TP
|
||||||
.B PROT_GROWSDOWN
|
.B PROT_GROWSDOWN
|
||||||
Apply protection mode down to the beginning of the mapping which grows down (it
|
Apply protection mode down to the beginning of the mapping which grows down
|
||||||
should be stack segment or mapped with
|
(it should be stack segment or mapped with
|
||||||
.B MAP_GROWSDOWN
|
.B MAP_GROWSDOWN
|
||||||
flag set.)
|
flag set.)
|
||||||
.PP
|
.PP
|
||||||
|
@ -153,14 +157,22 @@ or not a multiple of the system page size.
|
||||||
.TP
|
.TP
|
||||||
.BR EINVAL
|
.BR EINVAL
|
||||||
Both
|
Both
|
||||||
.BR PROT_GROWSUP " and " PROT_GROWSDOWN
|
.BR PROT_GROWSUP
|
||||||
|
and
|
||||||
|
.BR PROT_GROWSDOWN
|
||||||
were specified in
|
were specified in
|
||||||
.IR prot .
|
.IR prot .
|
||||||
.TP
|
.TP
|
||||||
.BR EINVAL
|
.BR EINVAL
|
||||||
Invalid (other than
|
Invalid (other than
|
||||||
.BR PROT_READ ", " PROT_WRITE ", " PROT_EXEC ", " PROT_SEM ", "
|
.BR PROT_READ ,
|
||||||
.BR PROT_SAO " (on PowerPC only), " PROT_GROWSUP ", " PROT_GROWSDOWN )
|
.BR PROT_WRITE ,
|
||||||
|
.BR PROT_EXEC ,
|
||||||
|
.BR PROT_SEM ,
|
||||||
|
.BR PROT_SAO
|
||||||
|
(on PowerPC only),
|
||||||
|
.BR PROT_GROWSUP ,
|
||||||
|
.BR PROT_GROWSDOWN )
|
||||||
flags specified in
|
flags specified in
|
||||||
.IR prot .
|
.IR prot .
|
||||||
.TP
|
.TP
|
||||||
|
|
Loading…
Reference in New Issue