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: "G.B." Newsgroups: comp.lang.ada Subject: Re: Exclusive file access Date: Tue, 1 Sep 2015 18:05:53 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 1 Sep 2015 16:04:05 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="30301"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19aH6ZkCHDt4KHN1wTZvg4wqvJRUMkKiMI=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: Cancel-Lock: sha1:wohIeH3oC1Jt7/Do4jVrUApwUPg= Xref: news.eternal-september.org comp.lang.ada:27678 Date: 2015-09-01T18:05:53+02:00 List-Id: On 01.09.15 16:05, ahlan@marriott.org wrote: > So far the only solution I can see is for me to write my own filing system, one that has the ability to open the file for exclusive file access. However I cannot believe that this is what people really do. If you mean system wide exclusive access to operating system resources like files needing operating system calls, or else system defaults, everybody does it that way all the time, I think. Similarly, access control (users, groups, roles) isn't portable either, so just calling some ISO language's "file open" with a Form parameter might or might not be sufficient. If some tentative call, were it to ever be successful, has Name => "//Devices/IO/Network/Card/0", Form => "Exclusive" the effects you mentioned WRT failure, or even just on timeouts, might be more striking ...