delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/06/13/15:54:52

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: Wed, 13 Jun 2001 20:34:14 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: fileutils-4.0-3
Message-ID: <20010613203414.P1144@cygbert.vinschen.de>
Reply-To: cygdev <cygwin-developers AT cygwin DOT com>
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <Pine DOT GSO DOT 4 DOT 21 DOT 0106122003330 DOT 3791-100000 AT devmail DOT dev DOT tivoli DOT com> <20010613105845 DOT D1144 AT cygbert DOT vinschen DOT de> <12812308989 DOT 20010613152159 AT logos-m DOT ru> <20010613153123 DOT K1144 AT cygbert DOT vinschen DOT de> <20010613112516 DOT D7001 AT redhat DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010613112516.D7001@redhat.com>; from cgf@redhat.com on Wed, Jun 13, 2001 at 11:25:16AM -0400

On Wed, Jun 13, 2001 at 11:25:16AM -0400, Christopher Faylor wrote:
> On Wed, Jun 13, 2001 at 03:31:23PM +0200, Corinna Vinschen wrote:
> >On Wed, Jun 13, 2001 at 03:21:59PM +0400, egor duda wrote:
> >> Hi!
> >> 
> >> Wednesday, 13 June, 2001 Corinna Vinschen cygwin AT cygwin DOT com wrote:
> >> 
> >> CV> Typically it's the other way around. If a Win32 application opens
> >> CV> a file using the `CreateFile' call, it has exclusive access to the
> >> CV> file while it's opened. If the application want's to share the
> >> CV> file with other apps, it can do that by giving additional flags
> >> CV> to `CreateFile' (FILE_SHARE_READ, FILE_SHARE_WRITE). Cygwin's
> >> CV> open(2) call uses these flags by default.
> >> 
> >> well, CreateFile() accepts 0 as second argument, which is what we
> >> need-- just query information no matter if anyone opened file in
> >> DENYALL mode. i've just tested it on nt4.0 -- it works fine.
> >> 
> >> the only question is whether we should add new parameter to
> >> fhandler::open(), say 'int cygwin_flags', or define new flag in
> >> fcntl.h? for me, the first one looks preferable.
> >
> >Wow. I just read the MSDN entry of CreateFile and I must admit
> >that I always slipped over that sentence without reading it.
> >It seems obvious now. If that really works (as you state),
> >it would be the ultimate solution for `fstat'.
> >
> >I think you're right using some internal flag. It's not needed
> >to create a new fcntl flag.
> 
> I don't see how fstat can do this, though.  Do you mean stat?

Uhm, yes, I meant the stat_worker(), actually.

Corinna

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

- Raw text -


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