diff options
author | trhodes <trhodes@FreeBSD.org> | 2002-12-23 19:25:03 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2002-12-23 19:25:03 +0000 |
commit | fccac156927434c5a1874f5b3dad773e7b73a744 (patch) | |
tree | 5e8936b12317c778c55f018918cd7de0e1499734 /lib | |
parent | 9feb883334b77bed8649d44afd739922245ee5ba (diff) | |
download | FreeBSD-src-fccac156927434c5a1874f5b3dad773e7b73a744.zip FreeBSD-src-fccac156927434c5a1874f5b3dad773e7b73a744.tar.gz |
Document protection bits.
PR: 46252
Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
Diffstat (limited to 'lib')
-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 6dd28da..312950f 100644 --- a/lib/libc/sys/mprotect.2 +++ b/lib/libc/sys/mprotect.2 @@ -52,6 +52,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 |