diff options
Diffstat (limited to 'lib/libc/sys/munmap.2')
-rw-r--r-- | lib/libc/sys/munmap.2 | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2 index 97692af..ffa2371 100644 --- a/lib/libc/sys/munmap.2 +++ b/lib/libc/sys/munmap.2 @@ -38,6 +38,9 @@ .Nm munmap .Nd remove a mapping .Sh SYNOPSIS +.Fd #include <sys/types.h> +.Fd #include <sys/mman.h> +.Ft int .Fn munmap "caddr_t addr" "size_t len" .Sh DESCRIPTION The @@ -48,7 +51,7 @@ and causes further references to addresses within the range to generate invalid memory references. .Sh RETURN VALUES Upon successful completion, -.Nm munmap +.Fn munmap returns zero. Otherwise, a value of -1 is returned and .Va errno @@ -66,13 +69,14 @@ parameter was negative, or some part of the region being unmapped is outside the valid address range for a process. .Sh "SEE ALSO" -.Xr getpagesize 2 , +.Xr madvise 2 , +.Xr mincore 2 , +.Xr mprotect 2 , .Xr msync 2 , .Xr munmap 2 , -.Xr mprotect 2 , -.Xr madvise 2 , -.Xr mincore 2 +.Xr getpagesize 3 .Sh HISTORY The .Fn munmap -function first appeared in 4.4BSD. +function first appeared in +.Bx 4.4 . |