Skip to content

Commit 959b909

Browse files
committed
mention mkstemp
1 parent 23ab69f commit 959b909

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

file-api.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@
299299
\item If a process needs a temporary file, it can create it, \texttt{unlink}
300300
(see page \pageref{UNLINK}) it right away, and work with it using the existing
301301
file descriptor. When the file descriptor is closed (and all of its possible
302-
duplicates), the file data is released.
302+
duplicates), the file data is released. For persistent and visible temporary
303+
files, \texttt{mkstemp} is used.
303304
\item Even \texttt{close} may fail. For example, some filesystems may write the
304305
data on file closure (NFS), and if that write fails, \texttt{close} fails.
305306
In such case the error code should be used only for diagnostics. There is no

0 commit comments

Comments
 (0)