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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Exclusive file access Date: Fri, 28 Aug 2015 09:25:05 +0200 Organization: A noiseless patient Spider Message-ID: References: <1440718164.9455.3.camel@obry.net> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 28 Aug 2015 07:23:20 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2af053bcc0bc47aef94cf01cb0c5c3a6"; logging-data="11214"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KiOeGPNmamMjza20tjM9Y7NqrTeUkRko=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <1440718164.9455.3.camel@obry.net> Cancel-Lock: sha1:T5WIuvXrQ2aom6K1lUYYxyHqX/M= Xref: news.eternal-september.org comp.lang.ada:27629 Date: 2015-08-28T09:25:05+02:00 List-Id: On 28.08.15 01:29, Pascal Obry wrote: > Le vendredi 28 août 2015 à 01:16 +0200, Georg Bauhaus a écrit : >> If in Windows a process cannot access a file that is in use, >> I think that an effect of the normal reaction of Windows, isn't it? >> So, a true Ada for Windows compiler might reflect this OS behavior. > > I think even on Windows a file can be opened with concurrent access. Files "can" certainly be opened that way, through OS calls. But the GNAT RM is, I think, just extending the RM's way of talking about internal file objects in Ada programs. Is there a language that handles file locking and is *not* involving external (to the language) services like the OS?