From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/MAN/tmpfile.htm | 100 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 reference/C/MAN/tmpfile.htm (limited to 'reference/C/MAN/tmpfile.htm') diff --git a/reference/C/MAN/tmpfile.htm b/reference/C/MAN/tmpfile.htm new file mode 100644 index 0000000..b87aeae --- /dev/null +++ b/reference/C/MAN/tmpfile.htm @@ -0,0 +1,100 @@ +tmpfile + +
+
+
+
+
+

TMPFILE(3) Linux Programmer's Manual TMPFILE(3) +

+ +

NAME +

tmpfile - create a temporary file + +

SYNOPSIS +

#include <stdio.h> + + FILE *tmpfile (void); + +

DESCRIPTION +

The tmpfile() function generates a unique temporary file- + name using the path prefix P_tmpdir defined in <stdio.h>. + The temporary file is then opened in binary read/write + (w+b) mode. The file will be automatically deleted when + it is closed or the program terminates. + +

RETURN VALUE +

The tmpfile() function returns a stream descriptor, or + NULL if a unique filename cannot be generated or the + unique file cannot be opened. + +

ERRORS +

EACCES Search permission denied for directory in file's + path prefix. + + EEXIST Unable to generate a unique filename. + + EMFILE Too many file descriptors in use by process. + + ENFILE Too many files open in system. + + EROFS Read-only filesystem. + +

CONFORMING TO +

SVID 3, POSIX, BSD 4.3, ISO 9899 + +
+
+

SEE ALSO +

+mktemp, +mkstemp, +tmpnam, +tempnam, +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

GNU April 3, 1993 1 +

+ +
+

+


+

+

+ + + + +
+Top + +Master Index + +Keywords + +Functions +
+
+

+


+ +This manual page was brought to you by mjl_man V-2.0 -- cgit v1.2.3-54-g00ecf