
June 25, 2002
3:26 p.m.
Greg wrote:
(fd, name) = mkstemp(suffix="", binary=1): Creates a temporary file, returning both an OS-level file descriptor open on it and its name. This is useful in situations where you need to know the name of the temporary file, but can't risk the race in mktemp.
+1 except for the name. What does the "s" stand for?
"safe"? or at least "safer"? unix systems usually have both "mktemp" and "mkstemp", but I think they're both deprecated under SUSv2 (use "tmpfile" instead). </F>