delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/16/05:01:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 16 Jul 2001 11:00:39 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: Re: file locking (F_GETLK) porting workaround anyone???
Message-ID: <20010716110039.Q25442@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <3B4961EE AT epostleser DOT online DOT no> <3B4961EE AT epostleser DOT online DOT no> <20010709102828 DOT H8578 AT cygbert DOT vinschen DOT de> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20010716010021 DOT 00b66740 AT mail DOT online DOT no>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <5.1.0.14.2.20010716010021.00b66740@mail.online.no>; from hardon@online.no on Mon, Jul 16, 2001 at 01:10:59AM +0200

On Mon, Jul 16, 2001 at 01:10:59AM +0200, Gunnar Andre Dalsnes wrote:
> At 09.07.01 10:28, you wrote:
> >On Mon, Jul 09, 2001 at 09:56:20AM +0200, hardon wrote:
> >> Any known workaround for the unimplemented F_GETLK, file locking func???
> >> Whats the big deal with this thing anyway??
> >> If we don't need the lockers pid, just try std. lock and check for errors, 
> >> right??
> >
> >You're welcome to contribute F_GETLK and F_SETLK(W) in Cygwin if you've
> >found a way to implement them correctly.
> 
> What's wrong with F_SETLK(W)? Missing signal interrupt support? 
> If so, could consistent asynchronous file IO (on NT) fix this?
> LockFileEx do support asynchronous IO.

At least three problems here:

- LockFileEx() is not implemented on 9x/ME.
- Lock requests given to LockFileEx() may not overlap existing locked
  regions of the file.
- There's not nearly a functionality similar to F_GETLK in the Win32 API.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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