From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,17f674692867d416 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!q4g2000yqm.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Atomic file creation Date: Mon, 4 Jan 2010 14:38:00 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <0s2thh.3cd.ln@hunter.axlog.fr> NNTP-Posting-Host: 94.108.165.166 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1262644680 23459 127.0.0.1 (4 Jan 2010 22:38:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 4 Jan 2010 22:38:00 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q4g2000yqm.googlegroups.com; posting-host=94.108.165.166; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091123 Iceweasel/3.5.6 (like Firefox/3.5.6; Debian-3.5.6-1),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8598 Date: 2010-01-04T14:38:00-08:00 List-Id: Jean-Pierre Rosen wrote: > vlc a =E9crit : > > > On Jan 4, 4:52 pm, Jean-Pierre Rosen wrote: > >> Maybe because temporary files have no names ;-) > > >> Kidding appart, in the old time when people still knew how to write > >> operating systems, the notion of temporary file was supported by the O= S, > >> and those files had really no name (as opposed to a junk name in /var/= tmp). > > > Well, they have names, are stored in in /tmp/ and still exist after > > the call of Ada.Text_IO.Close in line 5. I actually checked this :-) > > I presume you are using some elementary OS like Unix, that fakes > temporary files short of having true ones... But the implementation is > free to behave as if they were true temporary files. This protects your > portability (to VMS for example, sigh of nostalgia...) http://www.circa.ufl.edu/handouts/vms/tempfile.html suggests that (1) not all users of VMS know about nameless temporary files and (2) VMS does allow one to create named temporary files. Also I am wondering how VMS allows programs to communicate by means of nameless temporary files (e.g. program A writes a large amount of data in a new file and tells program B to process it and then delete the file). Are the file names replaced with some kind of handle? PS. VMS may be "non-elementary" but it is proprietary, ergo they have something to hide, ergo I don't want it on *my* computer :) -- Ludovic Brenta.