Subject: Re: locking dynamic libraries against writes (was: a.out dynamic
To: NetBSD Toolchain Technical Discussion List <tech-toolchain@NetBSD.ORG>
From: Bert Driehuis <>
List: tech-toolchain
Date: 05/31/1998 01:06:43
>Speaking of mandatory file locking, I'd prefer the style where one sets
>a mode bit on the file in order to make flock()/fcntl() locks into
>mandatory locks.  The only other sane option might be to define an
>entirely new API for mandatory locks (and do it *right* this time!  ;-)

I can sum up my feelings about mandatory file locking in one word: VMS.

Don't go there, or do it right... The DoS protential is so big, that I
can't foresee anyone getting it right. Mandatory file locking results in
root ("SYSTEM" in VMS) getting locked out so often that the cure is worse
than the disease.

My two cents...


					-- Bert

Bert Driehuis                 God, grant me the serenity to accept the things        I can't change, courage to change the things I
                              can, and the wisdom to know the difference.