summaryrefslogtreecommitdiff
path: root/lib/libc/sys/mincore.2
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1995-02-27 12:31:34 +0000
committercgd <cgd@NetBSD.org>1995-02-27 12:31:34 +0000
commit4eab61bd40c07b2fc612ad50cface2b77fc110d0 (patch)
tree7118747f1d9919499fdea5d7c6908c5cfe04e5a8 /lib/libc/sys/mincore.2
parentc67e54a2e2b9f3d455a30d68ea4e09e56d7b9136 (diff)
merge with lite, keeping most local changes. clean up Ids
Diffstat (limited to 'lib/libc/sys/mincore.2')
-rw-r--r--lib/libc/sys/mincore.224
1 files changed, 15 insertions, 9 deletions
diff --git a/lib/libc/sys/mincore.2 b/lib/libc/sys/mincore.2
index 46df9bdabc8..378cdf67278 100644
--- a/lib/libc/sys/mincore.2
+++ b/lib/libc/sys/mincore.2
@@ -1,5 +1,7 @@
-.\" Copyright (c) 1991 Regents of the University of California.
-.\" All rights reserved.
+.\" $NetBSD: mincore.2,v 1.5 1995/02/27 12:34:16 cgd Exp $
+.\"
+.\" Copyright (c) 1991, 1993
+.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
@@ -29,14 +31,13 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)mincore.2 6.1 (Berkeley) 5/27/91
-.\" $Id: mincore.2,v 1.4 1993/12/15 18:08:14 jtc Exp $
+.\" @(#)mincore.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd May 27, 1991
+.Dd June 9, 1993
.Dt MINCORE 2
.Os
.Sh NAME
-.Nm mincore
+.Nm mincore
.Nd determine residency of memory pages
.Sh SYNOPSIS
.Fd #include <sys/types.h>
@@ -44,10 +45,11 @@
.Ft int
.Fn mincore "caddr_t addr" "int len" "char *vec"
.Sh DESCRIPTION
-The
+The
.Fn mincore
-system call allows a process to obtain information about whether pages
-are core resident.
+system call
+allows a process to obtain information about whether pages are
+core resident.
Here the current core residency of the pages is returned
in the character array
.Fa vec ,
@@ -57,3 +59,7 @@ with a value of 1 meaning that the page is in-core.
.Xr mprotect 2 ,
.Xr msync 2 ,
.Xr munmap 2
+.Sh HISTORY
+The
+.Fn mincore
+function first appeared in 4.4BSD.