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: 103376,c72c8726f7de6c9b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: File manipulations in Ada.Text_IO References: <1122919474.611248.151950@z14g2000cwz.googlegroups.com> <42ee677a$0$11756$9b4e6d93@newsread4.arcor-online.net> <67kFmodka+Zb@eisner.encompasserve.org> In-Reply-To: <67kFmodka+Zb@eisner.encompasserve.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 02 Aug 2005 02:34:03 GMT NNTP-Posting-Host: 209.86.20.12 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1122950043 209.86.20.12 (Mon, 01 Aug 2005 19:34:03 PDT) NNTP-Posting-Date: Mon, 01 Aug 2005 19:34:03 PDT Xref: g2news1.google.com comp.lang.ada:3884 Date: 2005-08-02T02:34:03+00:00 List-Id: Larry Kilgallen wrote: > > But such a function for a non-wildcarded filename is always going > to be susceptible to a race condition if the next step would be > to open the file. The file might be deleted or created between > the test and using the information gained from the test. That's true in the general case, and something I've never encountered in 30 years of actual SW development, including software that was intended to manipulate the same file from different applications running at the same time. -- Jeff Carter "C's solution to this [variable-sized arrays] has real problems, and people who are complaining about safety definitely have a point." Dennis Ritchie 25