|
Lines 52-57
Link Here
|
| 52 |
.Fa prot . |
52 |
.Fa prot . |
| 53 |
Not all implementations will guarantee protection on a page basis; |
53 |
Not all implementations will guarantee protection on a page basis; |
| 54 |
the granularity of protection changes may be as large as an entire region. |
54 |
the granularity of protection changes may be as large as an entire region. |
|
|
55 |
A region is the virtual address space defined by the start |
| 56 |
and end addresses of a |
| 57 |
.Vt "struct vm_map_entry" . |
| 58 |
.Pp |
| 59 |
Currently these protection bits are known, |
| 60 |
which can be combined, OR'd together: |
| 61 |
.Bl -tag width "PROT_WRITE" |
| 62 |
.It PROT_NONE |
| 63 |
No permissions at all. |
| 64 |
.It PROT_READ |
| 65 |
The pages can be read. |
| 66 |
.It PROT_WRITE |
| 67 |
The pages can be written. |
| 68 |
.It PROT_EXEC |
| 69 |
The pages can be executed. |
| 70 |
.El |
| 55 |
.Sh RETURN VALUES |
71 |
.Sh RETURN VALUES |
| 56 |
.Rv -std mprotect |
72 |
.Rv -std mprotect |
| 57 |
.Sh ERRORS |
73 |
.Sh ERRORS |