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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dc393c3a10696107 X-Google-Attributes: gid103376,public From: randhol@pvv.org (Preben Randhol) Subject: Re: Create-Delete tmp Files Date: 2000/03/20 Message-ID: #1/1 X-Deja-AN: 599992222 References: <8at7g0$bhc$1@nnrp1.deja.com> <38D27008.4055C0AB@res.raytheon.com> <8b0pla$aub$1@nnrp1.deja.com> <8b4n77$u4a$1@nnrp1.deja.com> <38D60390.B6155BA6@maths.unine.ch> <38D63810.6E679322@maths.unine.ch> X-Complaints-To: usenet@itea.ntnu.no X-Trace: kopp.stud.ntnu.no 953570466 2534 129.241.83.82 (20 Mar 2000 16:41:06 GMT) Organization: Norwegian university of science and technology User-Agent: slrn/0.9.6.2 (Linux) NNTP-Posting-Date: 20 Mar 2000 16:41:06 GMT Newsgroups: comp.lang.ada Date: 2000-03-20T16:41:06+00:00 List-Id: On Mon, 20 Mar 2000 14:39:12 +0000, Gautier wrote: [...] >decide it is the good one: you return the name. Of course one has >to be careful if there are parallel tasks doing the same, to lock >the free name as soon as possible maybe by creating an bogus file with >that name or a more solid method with an array of boolean of the range >(say Name_locked:= (others=> false)). Given you are not on a unix OS I guess. >If the loop exists normally, you raise an exception such as >no_name_available_for_temp_file... I was thinking about what can one use to check if a file exists? It looks like AD.ADB uses Exist, but which package provides this? -- Preben Randhol -- [randhol@pvv.org] -- "Det eneste trygge stedet i verden er inne i en fortelling." -- Athol Fugard