reference/filesystem/functions/tmpfile.xml
65bea242c8fe4217602a9759eb8289ddf0d9e899
...
...
@@ -9,12 +9,12 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>resource</type><methodname>tmpfile</methodname>
12
+
<type class="union"><type>resource</type><type>false</type></type><methodname>tmpfile</methodname>
13
13
<void/>
14
14
</methodsynopsis>
15
15
<para>
16
-
Creates a temporary file with a unique name in read-write (w+) mode and
17
-
returns a file handle .
16
+
Creates a temporary file with a unique name in read-write-binary (w+b) mode and
17
+
returns a file handle.
18
18
</para>
19
19
<para>
20
20
The file is automatically removed when closed (for example, by calling
...
...
@@ -22,11 +22,16 @@
22
22
the file handle returned by <function>tmpfile</function>), or when the
23
23
script ends.
24
24
</para>
25
-
<para>
26
-
For details, consult your system documentation on the
27
-
<literal>tmpfile(3)</literal> function, as well as the
28
-
<filename>stdio.h</filename> header file.
29
-
</para>
25
+
<caution>
26
+
<simpara>
27
+
If the script terminates unexpectedly, the temporary file may not be deleted.
28
+
</simpara>
29
+
</caution>
30
+
</refsect1>
31
+

32
+
<refsect1 role="parameters">
33
+
&reftitle.parameters;
34
+
&no.function.parameters;
30
35
</refsect1>
31
36

32
37
<refsect1 role="returnvalues">
33
38