delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/03/02/20:14:40

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Sat, 3 Mar 2001 02:13:42 +0100 (MET)
From: Joerg Schilling <schilling AT fokus DOT gmd DOT de>
Message-Id: <200103030113.CAA24952@fokus.gmd.de>
To: cygwin-developers AT cygwin DOT com
Subject: Re: fcntl(f, F_SETLK, &fl) problem on Cygwin 1.1.8(0.34/3/2)

>From: Christopher Faylor <cgf AT redhat DOT com>

>On Wed, Feb 28, 2001 at 01:42:05PM +0100, schilling AT fokus DOT gmd DOT 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 AT schily DOT isdn DOT cs DOT tu-berlin DOT de (home) Jörg Schilling D-13353 Berlin
       js AT cs DOT tu-berlin DOT de		(uni)  If you don't have iso-8859-1
       schilling AT fokus DOT gmd DOT de		(work) chars I am J"org Schilling
 URL:  http://www.fokus.gmd.de/usr/schilling   ftp://ftp.fokus.gmd.de/pub/unix

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019