dcca747249
Submitted by: Akira Ikeuchi <a_ikeuchi@mic.mitsumi.co.jp>
114 lines
3.6 KiB
Groff
114 lines
3.6 KiB
Groff
.\" 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
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)mincore.2 8.1 (Berkeley) 6/9/93
|
|
.\" %FreeBSD: src/lib/libc/sys/mincore.2,v 1.24 2003/09/08 19:57:16 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd January 17, 2003
|
|
.Dt MINCORE 2
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm mincore
|
|
.Nd ¥á¥â¥ê¥Ú¡¼¥¸¤Î¾ïÃó¤Î·èÄê
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In sys/mman.h
|
|
.Ft int
|
|
.Fn mincore "const void *addr" "size_t len" "char *vec"
|
|
.Sh ²òÀâ
|
|
.Fn mincore
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢
|
|
.Fa addr
|
|
¤Ç»Ï¤Þ¤ê
|
|
.Fa len
|
|
¥Ð¥¤¥È³¤¯Îΰè¤ÎÃæ¤Î¸Ä¡¹¤Î¥Ú¡¼¥¸¤¬¾ïÃ󤷤Ƥ¤¤ë¤«¤É¤¦¤«¤ò¡¢·èÄꤷ¤Þ¤¹¡£
|
|
.\"³«»Ï¥¢¥É¥ì¥¹
|
|
.\".Fa addr
|
|
.\"¤Ï¡¢¤Ï¤¸¤á¤ËÊ£¿ô¤Î¥Ú¡¼¥¸¥µ¥¤¥º¤ËÀÚ¤ê¼Î¤Æ¤é¤ì¤Þ¤¹
|
|
.\".Xr ( getpagesize 3
|
|
.\"»²¾È)¡£
|
|
.\"½ªÎ»¥¢¥É¥ì¥¹
|
|
.\".Fa addr No + Fa len
|
|
.\"¤Ï¡¢Ê£¿ô¤Î¥Ú¡¼¥¸¥µ¥¤¥º¤ËÀÚ¤ê¾å¤²¤é¤ì¤Þ¤¹¡£
|
|
¤½¤Î¾õÂ֤ϥڡ¼¥¸¤¢¤¿¤ê 1 ʸ»ú¤Î
|
|
.Fa vec
|
|
ÇÛÎó¤ÎÃæ¤ËÊÖ¤µ¤ì¤Þ¤¹¡£
|
|
¸Ä¡¹¤Îʸ»ú¤Ï¡¢¤½¤Î¥Ú¡¼¥¸¤¬¾ïÃ󤷤Ƥ¤¤Ê¤±¤ì¤Ð 0 ¤Þ¤¿¤Ï¡¢°Ê²¼¤Î
|
|
.In ( sys/mman.h
|
|
¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë) ¥Õ¥é¥°¤ÎÁȤ߹ç¤ï¤»¤Ç¤¹:
|
|
.Bl -tag -width ".Dv MINCORE_REFERENCED_OTHER"
|
|
.It Dv MINCORE_INCORE
|
|
¥Ú¡¼¥¸¤Ï¥³¥¢Æâ¤Ë¤¢¤ê¤Þ¤¹ (¾ïÃó)¡£
|
|
.It Dv MINCORE_REFERENCED
|
|
¥Ú¡¼¥¸¤Ï²æ¡¹¤Ë»²¾È¤µ¤ì¤Þ¤·¤¿¡£
|
|
.It Dv MINCORE_MODIFIED
|
|
¥Ú¡¼¥¸¤Ï²æ¡¹¤ËÊѹ¹¤µ¤ì¤Þ¤·¤¿¡£
|
|
.It Dv MINCORE_REFERENCED_OTHER
|
|
¥Ú¡¼¥¸¤Ï»²¾È¤µ¤ì¤Þ¤·¤¿¡£
|
|
.It Dv MINCORE_MODIFIED_OTHER
|
|
¥Ú¡¼¥¸¤ÏÊѹ¹¤µ¤ì¤Þ¤·¤¿¡£
|
|
.El
|
|
.Pp
|
|
.Fn mincore
|
|
¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤ë¾ðÊó¤Ï¡¢¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬Ìá¤ë»þ´Ö¤Î¤¿¤á¤Ë
|
|
¸Å¤¯¤Ê¤Ã¤Æ¤¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
|
|
¤¢¤ë¥Ú¡¼¥¸¤¬¾ïÃ󤹤뤳¤È¤òÊݾڤ¹¤ëÍ£°ì¤ÎÊýË¡¤Ï¡¢¤½¤Î¥Ú¡¼¥¸¤ò
|
|
.Xr mlock 2
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ç¥á¥â¥ê¤Ë¥í¥Ã¥¯¤¹¤ë¤³¤È¤Ç¤¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Rv -std mincore
|
|
.Sh ¥¨¥é¡¼
|
|
.Fn mincore
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¼¡¤Î¾ì¹ç¤Ë¼ºÇÔ¤·¤Þ¤¹:
|
|
.Bl -tag -width Er
|
|
.It Bq Er EINVAL
|
|
.Fa addr
|
|
°ú¿ô¤È
|
|
.Fa len
|
|
°ú¿ô¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿²¾ÁÛ¥¢¥É¥ì¥¹ÈϰϤ¬Í¸ú¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|
|
.It Bq Er EFAULT
|
|
.Fa vec
|
|
°ú¿ô¤¬Àµ¤·¤¯¤Ê¤¤¥¢¥É¥ì¥¹¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr madvise 2 ,
|
|
.Xr mlock 2 ,
|
|
.Xr mprotect 2 ,
|
|
.Xr msync 2 ,
|
|
.Xr munmap 2 ,
|
|
.Xr getpagesize 3
|
|
.Sh Îò»Ë
|
|
.Fn mincore
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï
|
|
.Bx 4.4
|
|
¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£
|