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=unavailable 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!feeder.eternal-september.org!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Exclusive file access Date: Tue, 1 Sep 2015 15:31:31 -0500 Organization: JSA Research & Innovation Message-ID: References: NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1441139492 18847 24.196.82.226 (1 Sep 2015 20:31:32 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 1 Sep 2015 20:31:32 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:27681 Date: 2015-09-01T15:31:31-05:00 List-Id: wrote in message news:ed3129f2-7c95-4ad9-ba0a-a8c7e4bfe6ae@googlegroups.com... On Thursday, August 27, 2015 at 3:52:36 PM UTC+2, ah...@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. Well, obviously one could use a different compiler, since it appears that most Windows compilers do this right (we know for a fact that ObjectAda and Janus/Ada do so). Probably this is a side-effect of mapping a Unx-derived compiler onto Windows. >Is there really no way for an Gnat Ada program to open a file for exclusive >access against other processes without resorting to the program writing >his/her >own filing system? (Open/Read/Write/Close that call directly the OS API) Dunno. In any case, this is implementation-specific stuff (usually involving a Form parameter), so there is not going to be a portable solution. So you have to contact your vendor for help. Of course, if you don't have support you'll be SOL, but you get want you pay for. ;-) Randy.