Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cab94a1 commit 4b9ed2fCopy full SHA for 4b9ed2f
1 file changed
Doc/lib/libos.tex
@@ -972,6 +972,10 @@ \subsection{Files and Directories \label{os-file-dir}}
972
filename. Applications are responsible for properly creating and
973
managing files created using paths returned by \function{tempnam()};
974
no automatic cleanup is provided.
975
+On \UNIX, the environment variable \envvar{TMPDIR} overrides
976
+\var{dir}, while on Windows the \envvar{TMP} is used. The specific
977
+behavior of this function depends on the C library implementation;
978
+some aspects are underspecified in system documentation.
979
\warning{Use of \function{tempnam()} is vulnerable to symlink attacks;
980
consider using \function{tmpfile()} instead.}
981
Availability: \UNIX, Windows.
0 commit comments