summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/madvise.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/madvise.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/madvise.2')
-rw-r--r--lib/libc/sys/madvise.24
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/madvise.2 b/lib/libc/sys/madvise.2
index 25068b4..75c23dc 100644
--- a/lib/libc/sys/madvise.2
+++ b/lib/libc/sys/madvise.2
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)madvise.2 8.1 (Berkeley) 6/9/93
-.\" $Id: madvise.2,v 1.10 1997/02/22 15:04:03 peter Exp $
+.\" $Id: madvise.2,v 1.11 1997/12/30 05:17:33 alex Exp $
.\"
.Dd Jul 19, 1996
.Dt MADVISE 2
@@ -42,7 +42,7 @@
.Fd #include <sys/types.h>
.Fd #include <sys/mman.h>
.Ft int
-.Fn madvise "caddr_t addr" "size_t len" "int behav"
+.Fn madvise "void *addr" "size_t len" "int behav"
.Sh DESCRIPTION
The
.Fn madvise
OpenPOWER on IntegriCloud