File: cfree.3

package info (click to toggle)
manpages-ja 0.5.0.0.20050315-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,620 kB
  • ctags: 4
  • sloc: sh: 12,675; perl: 157; makefile: 106
file content (116 lines) | stat: -rw-r--r-- 3,150 bytes parent folder | download
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
.\" 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 2003-11-18  "" "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
.SH 
δؿϷ褷ƻѤ٤ǤϤʤ

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

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

.I <stdlib.h>
¸ߤ⤢뤷
.I <malloc.h>
¸ߤ⤢롣
.LP
.SS " 3 Ĥ cfree"
SCO  Solaris ΤĤΥСǤϡ
 3 Ĥ
.B cfree()
ޤޤ malloc 饤֥꤬롣
.BR calloc (3)
Ƥ롣
.LP
ܿˤδؿɬפʾ硢
.sp
.in +5
#define cfree(p, n, s) free((p))
.in
.sp
եɲä뤳ȡ
.LP
褯Ҥͤ
.RB  calloc()
dzƤ줿Τ
.B free()
ȤȤǤ뤫
Ȥ
.B cfree()
Ȥɬפ뤫פȤΤǤ롣
: 
.B free()
Ȥȡ
.LP
SCO Υޥ˥奢ˤϰʲΤ褦˵ҤƤ:
cfree 롼 iBCSe2 ʤ˽󶡤Ƥꡢ
ñ free ƤǤǤ롣
cfree  num  size ϻѤʤ
.SH ֤
SunOS Ǥ
.B cfree()
.RB ( free()
̾) ϡ 1 ֤Ԥ 0 ֤
顼ξ硢
.I errno
 EINVAL ꤵ: 
.I ptr
ͤ malloc() ϤΥ롼 1 Ĥǰ˳Ƥ줿
֥åؤΥݥ󥿤Ǥʤ
.SH 
SCO ѤƤ 3 Ĥ
.B cfree()
ϡiBCSe2 :
Intel386 Binary Compatibility Specification, Edition 2
(Intel386 Хʥߴ͡ 2 ) ˽򤹤롣