File: cfree.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (130 lines) | stat: -rw-r--r-- 3,333 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
.\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
.\" Japanese Version Copyright (c) 2004 Yuichi SATO
.\"         all rights reserved.
.\" Translated Mon Jul 19 04:38:03 JST 2004
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.TH CFREE 3 2007-07-26  "" "Linux Programmer's Manual"
.SH ̾
cfree \- Ƥ줿
.SH 
.nf
.sp
.B "#include <stdlib.h>"
.sp
/* SunOS 4 Ǥ */
.BI "int cfree(void *" ptr );
.sp
/* glibc  FreeBSD libcompat Ǥ */
.BI "void cfree(void *" ptr );
.sp
/* SCO OpenServer Ǥ */
.BI "void cfree(char *" ptr ", unsigned " num ", unsigned " size );
.sp
/* Solaris watchmalloc.so.1 Ǥ */
.BI "void cfree(void *" ptr ", size_t " nelem ", size_t " elsize );
.fi
.sp
.in -4n
glibc εǽޥ׷
.RB ( feature_test_macros (7)
):
.in
.sp
.BR cfree ():
_BSD_SOURCE || _SVID_SOURCE
.SH 
δؿϷ褷ƻѤ٤ǤϤʤ

.BR free (3)
Ȥȡ
.SS " 1 Ĥ cfree"
glibc Ǥϡؿ
.BR cfree ()

.BR free (3)
̾ǤꡢSunOS ȤθߴΤɲä줿ס
.LP
¾ΥƥǤϡ̤̾δؿ롣

.I <stdlib.h>
¸ߤ⤢뤷
.I <malloc.h>
¸ߤ⤢롣
.SS " 3 Ĥ cfree"
SCO  Solaris ΤĤΥСǤϡ
 3 Ĥ
.BR cfree ()
ޤޤ malloc 饤֥꤬롣
.BR calloc (3)
Ƥ롣
.LP
ܿˤδؿɬפʾ硢
.sp
.in +4n
#define cfree(p, n, s) free((p))
.in
.sp
եɲä뤳ȡ
.LP
褯Ҥͤ
.RB  calloc (3)
dzƤ줿Τ
.BR free (3)
ȤȤǤ뤫
Ȥ
.BR cfree ()
Ȥɬפ뤫פȤΤǤ롣
:
.BR free (3)
Ȥȡ
.LP
SCO Υޥ˥奢ˤϰʲΤ褦˵ҤƤ:
cfree 롼 iBCSe2 ʤ˽󶡤Ƥꡢ
ñ free ƤǤǤ롣
cfree  num  size ϻѤʤ
.SH ֤
SunOS Ǥ
.BR cfree ()
.RB ( free (3)
̾) ϡ 1 ֤Ԥ 0 ֤
顼ξ硢
.I errno

.B EINVAL
ꤵ:
.I ptr
ͤ
.BR malloc ()
ϤΥ롼 1 Ĥǰ˳Ƥ줿
֥åؤΥݥ󥿤Ǥʤ
.SH 
SCO ѤƤ 3 Ĥ
.BR cfree ()
ϡiBCSe2 :
Intel386 Binary Compatibility Specification, Edition 2
(Intel386 Хʥߴ͡ 2 ) ˽򤹤롣
.SH Ϣ
.BR malloc (3)