X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3CAEB677.DB08EBCB@phekda.freeserve.co.uk> Date: Sat, 06 Apr 2002 09:48:55 +0100 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: PATCH: fcntl and F_GETFL, mark 2 References: <10204051719 DOT AA13284 AT clio DOT rice DOT edu> <5567-Sat06Apr2002101520+0300-eliz AT is DOT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Eli Zaretskii wrote: > > > From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) > > Date: Fri, 5 Apr 2002 11:19:44 -0600 (CST) > > > > > +On Windows NT/2000/XP this cannot report the open mode correctly - > > > +@code{O_RDWR} is always returned. > > > > I'm not sure on this. I didn't have time to patch/build everything, > > but I extracted the code which did modes and printed them to the > > screen, and it gave 2 for handles 0..3 and 1 for handle 4 (it didn't > > fail getting sft). The difference in value may indicate it actually > > works on Win2K. > > So perhaps we should change the docs wording to say that it _might_ > be unable to report the open mode correctly (the code already does > TRT, I believe). If anyone can confirm that we can get the SFT on NT/2k/XP for the standard handles and some files we've opened (maybe debugging the test program and library compiled with debug), then that would be great and I'll update the docs. If not, I'll change the wording as Eli suggests, before I commit the patch next weekend. Thanks, bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]