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,4ebc49648f2201b0 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: File/Record locking in Ada Date: 1997/03/03 Message-ID: <1997Mar3.141549.1@eisner>#1/1 X-Deja-AN: 222813654 X-Nntp-Posting-Host: eisner.decus.org References: <3313101D.1BBF@aston.ac.uk> <01bc259a$a035e850$fc00af88@godiva> X-Nntp-Posting-User: KILGALLEN X-Trace: 857416556/10960 Organization: LJK Software Newsgroups: comp.lang.ada Date: 1997-03-03T00:00:00+00:00 List-Id: In article , demer@hc17031.hcsd.ca (David Emery) writes: > Just remember that in POSIX, file locks are advisory. Good point. In fact, any "locking" scheme voluntarily added to an Ada program presumes that all other accessors will play be the same rules. The only way to _guarantee_ that locks are respected is to have a mechanism which is tied into the record access method, which means an end to free-form data access which might be present in an existing Ada program. Only if that record access method can be guaranteed to always be used (such as by interaction with operating system inner modes) is a file or record lock guaranteed. Larry Kilgallen