diff options
| author | Tom Rhodes <trhodes@FreeBSD.org> | 2002-12-23 20:47:17 +0000 |
|---|---|---|
| committer | Tom Rhodes <trhodes@FreeBSD.org> | 2002-12-23 20:47:17 +0000 |
| commit | 39f4580d474c14b6993184fc58fadd99da3bca57 (patch) | |
| tree | ebe1dcf1e0e797fc6ccfafea2f0e35a1a239c5ec /lib/libc/sys | |
| parent | 89955d9b123ad1a1a38487712051e917730b2e9f (diff) | |
Notes
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/mprotect.2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/libc/sys/mprotect.2 b/lib/libc/sys/mprotect.2 index 369dd595ceff..6ae40549e59a 100644 --- a/lib/libc/sys/mprotect.2 +++ b/lib/libc/sys/mprotect.2 @@ -53,6 +53,22 @@ changes the specified pages to have protection .Fa prot . Not all implementations will guarantee protection on a page basis; the granularity of protection changes may be as large as an entire region. +A region is the virtual address space defined by the start +and end addresses of a +.Vt "struct vm_map_entry" . +.Pp +Currently these protection bits are known, +which can be combined, OR'd together: +.Bl -tag width "PROT_WRITE" +.It PROT_NONE +No permissions at all. +.It PROT_READ +The pages can be read. +.It PROT_WRITE +The pages can be written. +.It PROT_EXEC +The pages can be executed. +.El .Sh RETURN VALUES .Rv -std mprotect .Sh ERRORS |
