From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: Atomic file creation
Date: Tue, 05 Jan 2010 10:15:49 +0100
Date: 2010-01-05T10:15:49+01:00 [thread overview]
Message-ID: <87fx6khpyy.fsf@hugsarin.sparre-andersen.dk> (raw)
In-Reply-To: 0s2thh.3cd.ln@hunter.axlog.fr
Jean-Pierre Rosen wrote:
> Maybe because temporary files have no names ;-)
Exactly.
On POSIX systems it seems like they have to have a name. At least at
the time when you create them.
It would be so easy to let POSIX.IO.Open_Or_Create create an unnamed
inode, when a program passes an empty string as a path name. As it is
now, you have to remember to call POSIX.Files.Unlink just after[1]
POSIX.IO.Open_Or_Create, when you want a temporary file.
Greetings,
Jacob
[1] No need to wait until you are finished using the file.
--
"... while the C compiler will happily generate code for
almost anything produced by leaning on the keyboard."
next prev parent reply other threads:[~2010-01-05 9:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-04 13:40 Atomic file creation vlc
2010-01-04 14:24 ` vlc
2010-01-04 15:52 ` Jean-Pierre Rosen
2010-01-04 16:45 ` vlc
2010-01-04 17:12 ` Jean-Pierre Rosen
2010-01-04 22:38 ` Ludovic Brenta
2010-01-04 23:00 ` Dmitry A. Kazakov
2010-01-05 9:15 ` Jacob Sparre Andersen [this message]
2010-01-05 4:16 ` Stephen Leake
2010-01-05 14:48 ` vlc
2010-01-09 15:23 ` Stephen Leake
2010-01-04 14:25 ` Georg Bauhaus
2010-01-04 14:45 ` vlc
2010-01-04 14:49 ` Jacob Sparre Andersen
2010-01-04 15:07 ` vlc
2010-01-04 17:14 ` Jacob Sparre Andersen
2010-01-05 14:43 ` vlc
2010-01-06 2:28 ` Brad Moore
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox