delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/06/13/08:05:06

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 15:21:59 +0400
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.53 RC/4)
Reply-To: egor duda <cygwin-developers AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <12812308989.20010613152159@logos-m.ru>
To: cygwin-developers AT cygwin DOT com
Subject: Re: fileutils-4.0-3
In-Reply-To: <20010613105845.D1144@cygbert.vinschen.de>
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>
MIME-Version: 1.0

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.

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19

- Raw text -


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