Anonymous user
Secure temporary file: Difference between revisions
→{{header|UNIX Shell}}: added zkl
m (added whitespace before the TOC, added other whitespace in the task's preamble.) |
(→{{header|UNIX Shell}}: added zkl) |
||
Line 534:
This code will loop, picking new names and resetting the ''trap'' (clean-up command) until it succeeds in making
a directory. (Simple changes to the code could limit the number of attempts or implement a timeout).
=={{header|zkl}}==
zkl uses the underlying OS to create these files, mkstemp (POSIX), _mktemp_s (Windows). Not at all sure Windows is race free however.
{{out}}
<pre>
zkl: File.mktmp()
File(zklTmpFile082p1V)
</pre>
{{omit from|HTML}}
|