diff options
Diffstat (limited to 'man3/tmpfile.3')
| -rw-r--r-- | man3/tmpfile.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/tmpfile.3 b/man3/tmpfile.3 index 6ea89b7746..7d3fb8d31f 100644 --- a/man3/tmpfile.3 +++ b/man3/tmpfile.3 @@ -36,12 +36,12 @@ tmpfile \- create a temporary file .B FILE *tmpfile (void); .fi .SH DESCRIPTION -The \fBtmpfile()\fP function generates a unique temporary filename. +The \fBtmpfile\fP() function generates a unique temporary filename. 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 normally. .SH "RETURN VALUE" -The \fBtmpfile()\fP function returns a stream descriptor, or NULL if +The \fBtmpfile\fP() function returns a stream descriptor, or NULL if a unique filename cannot be generated or the unique file cannot be opened. In the latter case, \fIerrno\fP is set to indicate the error. .SH ERRORS @@ -72,7 +72,7 @@ SVID 3, POSIX, 4.3BSD, ISO 9899, SUSv2 An error message may be written to \fIstdout\fP if the stream cannot be opened. .LP -The standard does not specify the directory that \fItmpfile()\fP +The standard does not specify the directory that \fItmpfile\fP() will use. Glibc will try the path prefix \fIP_tmpdir\fP defined in \fI<stdio.h>\fP, and if that fails the directory \fI/tmp\fP. .SH "SEE ALSO" |
