92 lines
		
	
	
	
		
			3 KiB
		
	
	
	
		
			Groff
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
	
		
			3 KiB
		
	
	
	
		
			Groff
		
	
	
	
	
	
| .\" %FreeBSD: src/lib/libc/sys/minherit.2,v 1.5.2.1 1999/08/29 14:49:12 peter 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
 | |
| .\" 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.
 | |
| .\"
 | |
| .\"	@(#)minherit.2	8.1 (Berkeley) 6/9/93
 | |
| .\"
 | |
| .Dd Feb 17, 1996
 | |
| .Dt MINHERIT 2
 | |
| .Os
 | |
| .Sh ̾¾Î
 | |
| .Nm minherit
 | |
| .Nd ¥Ú¡¼¥¸¤Î·Ñ¾µ¤òÀ©¸æ¤¹¤ë
 | |
| .Sh ½ñ¼°
 | |
| .Fd #include <sys/types.h>
 | |
| .Fd #include <sys/mman.h>
 | |
| .Ft int
 | |
| .Fn minherit "void *addr" "size_t len" "int inherit"
 | |
| .Sh ²òÀâ
 | |
| .Fn minherit
 | |
| ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢»ØÄê¤Î¥Ú¡¼¥¸¤¬·Ñ¾µ¤ÎºÝ¤ÎÆÃÀ¤È¤·¤Æ
 | |
| .Fa inherit
 | |
| ¤ò»ý¤Ä¤è¤¦¤ËÊѹ¹¤·¤Þ¤¹¡£
 | |
| ¤¹¤Ù¤Æ¤Î¾ì¹ç¤Ë¤ª¤¤¤Æ¡¢·Ñ¾µ¤ÎºÝ¤ÎÆÃÀ¤¬¥Ú¡¼¥¸Ã±°Ì¤ÇÀßÄê¤Ç¤¤ë¤³¤È¤¬
 | |
| Êݾڤµ¤ì¤ë¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
 | |
| Êѹ¹¤Îñ°Ì¤Ï¥ê¡¼¥¸¥ç¥óÁ´ÂΤ«¤â¤·¤ì¤Þ¤»¤ó¡£
 | |
| .Sh Ìá¤êÃÍ
 | |
| Àµ¾ï¤Ë´°Î»¤¹¤ë¤È
 | |
| .Fn minherit
 | |
| ¤Ï 0 ¤òÊÖ¤·¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ï ÃÍ -1 ¤¬ÊÖ¤µ¤ì¡¢
 | |
| ¥¨¥é¡¼¤ò¼¨¤¹¤è¤¦¤Ë
 | |
| .Va errno
 | |
| ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
 | |
| .Sh ¥¨¥é¡¼
 | |
| .Fn minherit
 | |
| ´Ø¿ô¤Ï¼¡¤Î¾ì¹ç¤Ë½èÍý¤ò¼ºÇÔ¤·¤Þ¤¹¡£
 | |
| .Bl -tag -width Er
 | |
| .It Bq Er EINVAL
 | |
| .Fa addr
 | |
| °ú¿ô¤È
 | |
| .Fa len
 | |
| °ú¿ô¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤ë²¾ÁÛ¥¢¥É¥ì¥¹ÈϰϤ¬Í¸ú¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
 | |
| .It Bq Er EACESS
 | |
| .Fa inherit
 | |
| °ú¿ô¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤ë¥Õ¥é¥°¤¬¡¢
 | |
| .Fa addr
 | |
| °ú¿ô¤È
 | |
| .Fa len
 | |
| °ú¿ô¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿
 | |
| ¥Ú¡¼¥¸¤ËÂФ·¤ÆÅ¬ÀڤǤϤ¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£
 | |
| .El
 | |
| .Sh ´ØÏ¢¹àÌÜ
 | |
| .Xr fork 2 ,
 | |
| .Xr madvise 2 , 
 | |
| .Xr mincore 2 , 
 | |
| .Xr mprotect 2 , 
 | |
| .Xr msync 2 ,
 | |
| .Xr munmap 2 ,
 | |
| .Xr rfork 2
 | |
| .Sh Îò»Ë
 | |
| .Fn minherit
 | |
| ´Ø¿ô¤Ï
 | |
| OpenBSD
 | |
| ¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£
 |