X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10204251719.AA16400@clio.rice.edu> Subject: Re: PATCH: fcntl and F_GETFL, mark 2 To: djgpp-workers AT delorie DOT com Date: Thu, 25 Apr 2002 12:19:44 -0500 (CDT) Cc: pjfarley AT dorsai DOT org (Peter J. Farley III) In-Reply-To: <3CC72CFD.5391DAFE@phekda.freeserve.co.uk> from "Richard Dawe" at Apr 24, 2002 11:09:01 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > > > > > +On Windows NT/2000/XP this cannot report the open mode correctly - > > > > > +@code{O_RDWR} is always returned. ... > I tried the code on a Win2k box at work and it appears to work. So I guess it > would work on WinXP too. Good W2K. WinXP probably will work. > I've just tested it under WinNT4+SP5 with SFN (no LFN TSR) under VMware 3.1 > and the results are weird. _get_sft_entry_ptr in src/libc/posix/fcntl/fcntl.c > returns some value, but then files are reported as read-only irrespective of > what mode they were opened with. So it looks like the return value from > _get_sft_entry_ptr is bogus. Or maybe the SFT it points to is bogus. Not good. Not surprised. Since SFT is Win structure probably fails under NT even with LFN TSR. Since NT 4 is hard to tell from Win2K, either document that NT 4 returns bad values (ugh) or add code to say if _os_true_version = 0x532 and not lfn then override it (assuming bad value?) if appears readonly? dunno hard call