6a00dc5ed2
Submitted by: Yuko Sasaki <yuko@veltec.co.jp>
76 lines
2.7 KiB
Groff
76 lines
2.7 KiB
Groff
.\" Copyright (c) 1980, 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.
|
|
.\"
|
|
.\" @(#)valloc.3 8.1 (Berkeley) 6/4/93
|
|
.\" %FreeBSD: src/lib/libc/gen/valloc.3,v 1.4.2.4 2001/12/14 18:33:51 ru Exp %
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd June 4, 1993
|
|
.Dt VALLOC 3
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm valloc
|
|
.Nd À°Îó¥á¥â¥ê³ä¤ê¿¶¤ê´Ø¿ô
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In unistd.h
|
|
.Ft void *
|
|
.Fn valloc "size_t size"
|
|
.Sh ²òÀâ
|
|
.Bf -symbolic
|
|
.Fn valloc
|
|
¤Ï¡¢¥Ú¡¼¥¸¥µ¥¤¥º¤Î¤è¤êÂ礤ʳä¤ê¿¶¤ê¤òÀ°Î󤹤븽ºß¥Ð¡¼¥¸¥ç¥ó¤Î
|
|
.Xr malloc 3
|
|
´Ø¿ô¤Ë¤è¤Ã¤ÆÃÖ¤´¹¤¨¤é¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.Ef
|
|
.Pp
|
|
.Fn valloc
|
|
´Ø¿ô¤Ï¡¢¥Ú¡¼¥¸¶³¦¤ËÀ°Î󤵤줿
|
|
.Fa size
|
|
¥Ð¥¤¥È¤ò³ä¤ê¿¶¤ê¤Þ¤¹¡£
|
|
¤³¤Î´Ø¿ô¤Ï¡¢¤ä¤äÂ礤ÊÍ×µá»ö¹à¤È¤È¤â¤Ë
|
|
.Xr malloc 3
|
|
´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¡¢³ä¤ê¿¶¤é¤ì¤¿¥Ö¥í¥Ã¥¯¤Î¿¿¤Î»Ï¤Þ¤ê¤òÊݸ¤·¡¢
|
|
ŬÀÚ¤ËÀ°Î󤵤줿¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¤³¤È¤Ë¤è¤Ã¤Æ¹Ô¤ï¤ì¤Þ¤¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Fn valloc
|
|
´Ø¿ô¤Ï¡¢À®¸ù¤·¤¿¾ì¹ç¤Ï³ä¤ê¿¶¤é¤ì¤¿¶õ´Ö¤Ø¤Î¥Ý¥¤¥ó¥¿¤ò
|
|
ÊÖ¤·¤Þ¤¹¡£¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï¡¢null ¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£
|
|
.Sh Îò»Ë
|
|
.Fn valloc
|
|
´Ø¿ô¤Ï¡¢
|
|
.Bx 3.0
|
|
¤ÇÅо줷¤Þ¤·¤¿¡£
|
|
.Pp
|
|
.Sh ¥Ð¥°
|
|
.Em vfree
|
|
´Ø¿ô¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
|