aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/mincore.2
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1997-12-31 01:22:01 +0000
committerAlexander Langer <alex@FreeBSD.org>1997-12-31 01:22:01 +0000
commit7167d5b04c9a3866f3326fdb953ee349a70d3aa9 (patch)
treeb17792c0d7ba8fc44ff5dc8651f3502c31d7dd8e /lib/libc/sys/mincore.2
parent00c5ae6b033f75b37aee1ecf273b91713ba20b47 (diff)
downloadsrc-7167d5b04c9a3866f3326fdb953ee349a70d3aa9.tar.gz
src-7167d5b04c9a3866f3326fdb953ee349a70d3aa9.zip
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
Notes
Notes: svn path=/head/; revision=32131
Diffstat (limited to 'lib/libc/sys/mincore.2')
-rw-r--r--lib/libc/sys/mincore.24
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/mincore.2 b/lib/libc/sys/mincore.2
index da7204967385..5c83de24760e 100644
--- a/lib/libc/sys/mincore.2
+++ b/lib/libc/sys/mincore.2
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)mincore.2 8.1 (Berkeley) 6/9/93
-.\" $Id: mincore.2,v 1.8 1997/02/22 15:04:05 peter Exp $
+.\" $Id: mincore.2,v 1.9 1997/12/30 04:05:47 alex Exp $
.\"
.Dd June 9, 1993
.Dt MINCORE 2
@@ -42,7 +42,7 @@
.Fd #include <sys/types.h>
.Fd #include <sys/mman.h>
.Ft int
-.Fn mincore "caddr_t addr" "size_t len" "char *vec"
+.Fn mincore "const void *addr" "size_t len" "char *vec"
.Sh DESCRIPTION
The
.Fn mincore