OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / cfree.3
1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
12 .\"
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 .\" GNU General Public License for more details.
17 .\"
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
21 .\" USA.
22 .\"
23 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
24 .\"         all rights reserved.
25 .\" Translated Mon Jul 19 04:38:03 JST 2004
26 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
27 .\"
28 .TH CFREE 3 2007-07-26  "" "Linux Programmer's Manual"
29 .SH Ì¾Á°
30 cfree \- ³ä¤êÅö¤Æ¤é¤ì¤¿¥á¥â¥ê¤ò²òÊü¤¹¤ë
31 .SH ½ñ¼°
32 .nf
33 .sp
34 .B "#include <stdlib.h>"
35 .sp
36 /* SunOS 4 ¤Ç¤Ï */
37 .BI "int cfree(void *" ptr );
38 .sp
39 /* glibc ¤È FreeBSD libcompat ¤Ç¤Ï */
40 .BI "void cfree(void *" ptr );
41 .sp
42 /* SCO OpenServer ¤Ç¤Ï */
43 .BI "void cfree(char *" ptr ", unsigned " num ", unsigned " size );
44 .sp
45 /* Solaris watchmalloc.so.1 ¤Ç¤Ï */
46 .BI "void cfree(void *" ptr ", size_t " nelem ", size_t " elsize );
47 .fi
48 .sp
49 .in -4n
50 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
51 .RB ( feature_test_macros (7)
52 »²¾È):
53 .in
54 .sp
55 .BR cfree ():
56 _BSD_SOURCE || _SVID_SOURCE
57 .SH ÀâÌÀ
58 ¤³¤Î´Ø¿ô¤Ï·è¤·¤Æ»ÈÍѤ¹¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£
59 Âå¤ï¤ê¤Ë
60 .BR free (3)
61 ¤ò»È¤¦¤³¤È¡£
62 .SS "°ú¤­¿ô¤¬ 1 ¤Ä¤Î cfree"
63 glibc ¤Ç¤Ï¡¢´Ø¿ô
64 .BR cfree ()
65 ¤Ï
66 .BR free (3)
67 ¤ÎÊÌ̾¤Ç¤¢¤ê¡¢¡ÖSunOS ¤È¤Î¸ß´¹À­¤Î¤¿¤á¤ËÄɲ䵤줿¡×¡£
68 .LP
69 ¾¤Î¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¤³¤Î̾Á°¤ÎÊ̤δؿô¤¬¤¢¤ë¡£
70 ¤³¤ÎÀë¸À¤Ï
71 .I <stdlib.h>
72 ¤Ë¸ºß¤¹¤ë¾ì¹ç¤â¤¢¤ë¤·¡¢
73 .I <malloc.h>
74 ¤Ë¸ºß¤¹¤ë¾ì¹ç¤â¤¢¤ë¡£
75 .SS "°ú¤­¿ô¤¬ 3 ¤Ä¤Î cfree"
76 SCO ¤È Solaris ¤Î¤¤¤¯¤Ä¤«¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢
77 °ú¤­¿ô¤¬ 3 ¤Ä¤Î
78 .BR cfree ()
79 ¤¬´Þ¤Þ¤ì¤ë malloc ¥é¥¤¥Ö¥é¥ê¤¬¤¢¤ë¡£
80 ¤³¤ì¤ÏÌÀ¤é¤«¤Ë
81 .BR calloc (3)
82 ¤ËÎà»÷¤·¤Æ¤¤¤ë¡£
83 .LP
84 ²¿¤«¤ò°Ü¿¢¤¹¤ë»þ¤Ë¤³¤Î´Ø¿ô¤¬É¬Íפʾì¹ç¡¢
85 .sp
86 .in +4n
87 #define cfree(p, n, s) free((p))
88 .in
89 .sp
90 ¤ò¥Õ¥¡¥¤¥ë¤ËÄɲ乤뤳¤È¡£
91 .LP
92 ¤è¤¯¿Ò¤Í¤é¤ì¤ë¼ÁÌä¤Ï
93 .RB ¡Ö calloc (3)
94 ¤Ç³ä¤êÅö¤Æ¤é¤ì¤¿¥á¥â¥ê¤ò²òÊü¤¹¤ë¤Î¤Ë
95 .BR free (3)
96 ¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë¤«¡¢
97 ¤½¤ì¤È¤â
98 .BR cfree ()
99 ¤ò»È¤¦É¬Íפ¬¤¢¤ë¤«¡×¤È¤¤¤¦¤â¤Î¤Ç¤¢¤ë¡£
100 Åú¤¨:
101 .BR free (3)
102 ¤ò»È¤¦¤³¤È¡£
103 .LP
104 SCO ¤Î¥Þ¥Ë¥å¥¢¥ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë:
105 ¡Öcfree ¥ë¡¼¥Á¥ó¤Ï iBCSe2 µ¬³Ê¤Ë½¾¤¦¤¿¤á¤ËÄ󶡤µ¤ì¤Æ¤ª¤ê¡¢
106 ñ¤Ë free ¤ò¸Æ¤ó¤Ç¤¤¤ë¤À¤±¤Ç¤¢¤ë¡£
107 cfree ¤Î num ¤È size °ú¤­¿ô¤Ï»ÈÍѤµ¤ì¤Ê¤¤¡£¡×
108 .SH ÊÖ¤êÃÍ
109 SunOS ÈǤÎ
110 .BR cfree ()
111 .RB ( free (3)
112 ¤ÎÊÌ̾) ¤Ï¡¢À®¸ù¤·¤¿¾ì¹ç¤Ë 1 ¤òÊÖ¤·¡¢¼ºÇÔ¤·¤¿¾ì¹ç¤Ë 0 ¤òÊÖ¤¹¡£
113 ¥¨¥é¡¼¤Î¾ì¹ç¡¢
114 .I errno
115 ¤¬
116 .B EINVAL
117 ¤ËÀßÄꤵ¤ì¤ë:
118 .I ptr
119 ¤ÎÃͤ¬
120 .BR malloc ()
121 ·Ï¤Î¥ë¡¼¥Á¥ó¤Î 1 ¤Ä¤Ç°ÊÁ°¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿
122 ¥Ö¥í¥Ã¥¯¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤Ê¤¤¡£
123 .SH ½àµò
124 SCO ¤ÇÍѤ¤¤é¤ì¤Æ¤¤¤ë°ú¤­¿ô¤¬ 3 ¤Ä¤Î
125 .BR cfree ()
126 ¤Ï¡¢iBCSe2 µ¬³Ê:
127 Intel386 Binary Compatibility Specification, Edition 2
128 (Intel386 ¥Ð¥¤¥Ê¥ê¸ß´¹»ÅÍÍ¡¢Âè 2 ÈÇ) ¤Ë½àµò¤¹¤ë¡£
129 .SH ´ØÏ¢¹àÌÜ
130 .BR malloc (3)