A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025926.html below:

[Python-Dev] Improved tmpfile module

[Python-Dev] Improved tmpfile module [Python-Dev] Improved tmpfile moduleFredrik Lundh fredrik@pythonware.com
Tue, 25 Jun 2002 17:26:57 +0200
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>





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4