fcntl(f, F_SETLK, &fl) problem on Cygwin 1.1.8(0.34/3/2)

Earnie Boyd earnie_boyd@yahoo.com
Sun Mar 4 04:14:00 GMT 2001


This list is to be used among the developers of the Cygwin1.dll API. 
Move your question to a more appropriate list.

Earnie.

Joerg Schilling wrote:
> 
> >From: Christopher Faylor <cgf@redhat.com>
> 
> >On Wed, Feb 28, 2001 at 01:42:05PM +0100, schilling@fokus.gmd.de wrote:
> >>It seems that a write lock on a file hold by a process
> >>inhibits read access from the same process:
> 
> >And, your proposed fix is...?
> 
> >This is cygwin-developers, right?  We do cygwin development here.
> 
> OK, so let me ask a bit more precise:
> 
> VED (and similar nvi) does record locking of edited files by first
> opening the file with O_RDWR and applying a record lock. Then it opens
> the the file for reading and reads the file into the buffer.
> 
> This definitely does not work with Cygwin on Win ME.
> 
> -       Will this work on Win NT ?
> 
> If not, I could try to re-use the file descriptor from the record
> locking call for reading in the file and later for writing it out.
> But then there should definitely a fix in cygwin or a hint in the FAQ.
> 
> Jörg
> 
>  EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
>        js@cs.tu-berlin.de               (uni)  If you don't have iso-8859-1
>        schilling@fokus.gmd.de           (work) chars I am J"org Schilling
>  URL:  http://www.fokus.gmd.de/usr/schilling   ftp://ftp.fokus.gmd.de/pub/unix

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




More information about the Cygwin-developers mailing list