[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]implementing System.IO.FileStream.Lock/Unlock
From: |
Rhys Weatherley |
Subject: |
Re: [DotGNU]implementing System.IO.FileStream.Lock/Unlock |
Date: |
Thu, 30 Oct 2003 06:53:43 +1000 |
User-agent: |
KMail/1.4.3 |
On Thursday 30 October 2003 06:18 am, Stephen Compall wrote:
> Does the lock at least have the strength of exclusive locks in GNU?
> ha'comment need that strength or greater.
I think it is exclusive, using the normal locking primitives under Win32. The
"lockf" function is the one that you are after, falling back to "flock" if
that isn't present. Read the man pages for "lockf", "flock", and "fcntl"
carefully first.
Cheers,
Rhys.