reference/filesystem/functions/ftruncate.xml
0c9c2dd669fe9395eaa73d487fbd160f9057429a
...
...
@@ -1,7 +1,7 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.14 -->
4
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ftruncate">
4
+
<refentry xml:id="function.ftruncate" xmlns="http://docbook.org/ns/docbook">
5
5
<refnamediv>
6
6
<refname>ftruncate</refname>
7
7
<refpurpose>Truncates a file to a given length</refpurpose>
...
...
@@ -11,11 +11,11 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>bool</type><methodname>ftruncate</methodname>
14
-
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
14
+
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
15
15
<methodparam><type>int</type><parameter>size</parameter></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
-
Takes the filepointer, <parameter>handle</parameter>, and truncates the file to
18
+
Takes the filepointer, <parameter>stream</parameter>, and truncates the file to
19
19
length, <parameter>size</parameter>.
20
20
</para>
21
21
</refsect1>
...
...
@@ -25,14 +25,14 @@
25
25
<para>
26
26
<variablelist>
27
27
<varlistentry>
28
-
<term><parameter>handle</parameter></term>
28
+
<term><parameter>stream</parameter></term>
29
29
<listitem>
30
30
<para>
31
31
The file pointer.
32
32
</para>
33
33
<note>
34
34
<para>
35
-
The <parameter>handle</parameter> must be open for writing.
35
+
The <parameter>stream</parameter> must be open for writing.
36
36
</para>
37
37
</note>
38
38
</listitem>
...
...
@@ -66,32 +66,6 @@
66
66
</para>
67
67
</refsect1>
68
68

69
-
<refsect1 role="changelog">
70
-
&reftitle.changelog;
71
-
<para>
72
-
<informaltable>
73
-
<tgroup cols="2">
74
-
<thead>
75
-
<row>
76
-
<entry>&Version;</entry>
77
-
<entry>&Description;</entry>
78
-
</row>
79
-
</thead>
80
-
<tbody>
81
-
<row>
82
-
<entry>4.3.3</entry>
83
-
<entry>
84
-
Prior to this release <function>ftruncate</function> returned an
85
-
<type>integer</type> value of 1 on success, instead of
86
-
<type>boolean</type> &true;.
87
-
</entry>
88
-
</row>
89
-
</tbody>
90
-
</tgroup>
91
-
</informaltable>
92
-
</para>
93
-
</refsect1>
94
-

95
69
<refsect1 role="examples">
96
70
&reftitle.examples;
97
71
<para>
...
...
@@ -133,7 +107,6 @@ fclose($handle);
133
107
</para>
134
108
</refsect1>
135
109
</refentry>
136
-

137
110
<!-- Keep this comment at the end of the file
138
111
Local variables:
139
112
mode: sgml
140
113