This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: fileutils-4.0-3
- To: cygwin-developers at cygwin dot com
- Subject: Re: fileutils-4.0-3
- From: egor duda <deo at logos-m dot ru>
- Date: Wed, 13 Jun 2001 15:21:59 +0400
- Organization: deo
- References: <Pine.GSO.4.21.0106122003330.3791-100000@devmail.dev.tivoli.com><20010613105845.D1144@cygbert.vinschen.de>
- Reply-To: egor duda <cygwin-developers at cygwin dot com>
Hi!
Wednesday, 13 June, 2001 Corinna Vinschen cygwin@cygwin.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@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19