diff options
author | 2014-07-02 19:08:40 +0000 | |
---|---|---|
committer | 2014-07-02 19:08:40 +0000 | |
commit | 37987a564b7496d46cc667e9d21782cf34a63b58 (patch) | |
tree | 5ec0f5a1fb187eae51c08866a7bc399e254666bf | |
parent | In fpu_compare(), set the `not equal' bit when the result of the comparison (diff) | |
download | wireguard-openbsd-37987a564b7496d46cc667e9d21782cf34a63b58.tar.xz wireguard-openbsd-37987a564b7496d46cc667e9d21782cf34a63b58.zip |
Sync description of PROT_* flags between mmap.2 and mprotect.2
ok guenther
-rw-r--r-- | lib/libc/sys/mmap.2 | 14 | ||||
-rw-r--r-- | lib/libc/sys/mprotect.2 | 5 |
2 files changed, 11 insertions, 8 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2 index d378dba97fd..667d3e39eb9 100644 --- a/lib/libc/sys/mmap.2 +++ b/lib/libc/sys/mmap.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mmap.2,v 1.48 2014/06/27 22:51:20 jmc Exp $ +.\" $OpenBSD: mmap.2,v 1.49 2014/07/02 19:08:40 matthew Exp $ .\" $NetBSD: mmap.2,v 1.5 1995/06/24 10:48:59 cgd Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mmap.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: June 27 2014 $ +.Dd $Mdocdate: July 2 2014 $ .Dt MMAP 2 .Os .Sh NAME @@ -98,17 +98,19 @@ to the page offset in .Pp The protections (region accessibility) are specified in the .Fa prot -argument by OR'ing the following values: +argument. +It should either be +.Dv PROT_NONE +.Pq no permissions +or the bitwise OR of one or more of the following values: .Pp -.Bl -tag -width "PROT_WRITE " -offset indent -compact +.Bl -tag -width "PROT_WRITEXX" -offset indent -compact .It Dv PROT_EXEC Pages may be executed. .It Dv PROT_READ Pages may be read. .It Dv PROT_WRITE Pages may be written. -.It Dv PROT_NONE -No permissions. .El .Pp The diff --git a/lib/libc/sys/mprotect.2 b/lib/libc/sys/mprotect.2 index 447c29bac1e..a13de4d848d 100644 --- a/lib/libc/sys/mprotect.2 +++ b/lib/libc/sys/mprotect.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mprotect.2,v 1.17 2014/02/13 07:30:39 guenther Exp $ +.\" $OpenBSD: mprotect.2,v 1.18 2014/07/02 19:08:40 matthew Exp $ .\" $NetBSD: mprotect.2,v 1.6 1995/10/12 15:41:08 jtc Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mprotect.2 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: February 13 2014 $ +.Dd $Mdocdate: July 2 2014 $ .Dt MPROTECT 2 .Os .Sh NAME @@ -62,6 +62,7 @@ The protections (region accessibility) are specified in the argument. It should either be .Dv PROT_NONE +.Pq no permissions or the bitwise OR of one or more of the following values: .Pp .Bl -tag -width "PROT_WRITEXX" -offset indent -compact |