summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-04-09 04:04:09 +0000
committerguenther <guenther@openbsd.org>2016-04-09 04:04:09 +0000
commitf650a4ae82ea590e8b27b8d0e1c4f0b757ffe01d (patch)
tree19caddc5b1b2f71ead396d374151f803e985f937 /lib
parentUse _if instead of _ifs as variable name for single interface names. (diff)
downloadwireguard-openbsd-f650a4ae82ea590e8b27b8d0e1c4f0b757ffe01d.tar.xz
wireguard-openbsd-f650a4ae82ea590e8b27b8d0e1c4f0b757ffe01d.zip
Document (near) standards conformance
based on diff by mmcc@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/munmap.225
1 files changed, 21 insertions, 4 deletions
diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2
index 5b947026ce3..a1eac7a1ed4 100644
--- a/lib/libc/sys/munmap.2
+++ b/lib/libc/sys/munmap.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: munmap.2,v 1.16 2014/07/02 22:22:35 matthew Exp $
+.\" $OpenBSD: munmap.2,v 1.17 2016/04/09 04:04:09 guenther Exp $
.\" $NetBSD: munmap.2,v 1.5 1995/02/27 12:35:03 cgd Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)munmap.2 8.2 (Berkeley) 4/15/94
.\"
-.Dd $Mdocdate: July 2 2014 $
+.Dd $Mdocdate: April 9 2016 $
.Dt MUNMAP 2
.Os
.Sh NAME
@@ -56,10 +56,9 @@ will fail if:
.It Bq Er EINVAL
The
.Fa addr
-parameter was not page aligned,
-.Fa addr
and
.Fa len
+parameters
specify a region that would extend beyond the end of the address space,
or some part of the region being unmapped is not part of the currently
valid address space.
@@ -73,8 +72,26 @@ valid address space.
.Xr mprotect 2 ,
.Xr msync 2 ,
.Xr getpagesize 3
+.Sh STANDARDS
+When
+.Fa len
+is non-zero, the
+.Fn munmap
+function conforms to
+.St -p1003.1-2008 .
.Sh HISTORY
The
.Fn munmap
system call first appeared in
.Bx 4.1c .
+.Sh CAVEATS
+.St -p1003.1-2008
+specifies that
+.Fn munmap
+shall fail with
+.Er EINVAL
+if
+.Fa len
+is 0.
+.Ox
+performs no action in this case.