summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/mlock.2
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1997-12-31 01:22:01 +0000
committeralex <alex@FreeBSD.org>1997-12-31 01:22:01 +0000
commitfb5c76c1763ca3b81193a25fc072df49e47829f3 (patch)
treef6b982eacadb4b17b938c279c441d37f460d52a5 /lib/libc/sys/mlock.2
parent43004709f3b48766d3fb67bb59836a5b7af63623 (diff)
downloadFreeBSD-src-fb5c76c1763ca3b81193a25fc072df49e47829f3.zip
FreeBSD-src-fb5c76c1763ca3b81193a25fc072df49e47829f3.tar.gz
Convert caddr_t --> void * for sys/mman.h functions.
mlock, mmap, mprotect, msync, munlock, and munmap are defined by POSIX as taking void *. The const modifier has been added to mlock, munlock, and mprotect as the standard dictates. minherit comes from OpenBSD and has been updated to conform with their recent change to void *. madvise and mincore are not defined by POSIX, but their arguments have been modified to be consistent with the POSIX-defined functions. mincore takes a const pointer, but madvise does not due to the MADV_FREE case. Discussed with: bde
Diffstat (limited to 'lib/libc/sys/mlock.2')
-rw-r--r--lib/libc/sys/mlock.24
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/mlock.2 b/lib/libc/sys/mlock.2
index 15ce741..6770173 100644
--- a/lib/libc/sys/mlock.2
+++ b/lib/libc/sys/mlock.2
@@ -42,9 +42,9 @@
.Fd #include <sys/types.h>
.Fd #include <sys/mman.h>
.Ft int
-.Fn mlock "caddr_t addr" "size_t len"
+.Fn mlock "const void *addr" "size_t len"
.Ft int
-.Fn munlock "caddr_t addr" "size_t len"
+.Fn munlock "const void *addr" "size_t len"
.Sh DESCRIPTION
The
.Fn mlock
OpenPOWER on IntegriCloud