delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/04/05/12:24:43

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: <10204051719.AA13284@clio.rice.edu>
Subject: Re: PATCH: fcntl and F_GETFL, mark 2
To: djgpp-workers AT delorie DOT com
Date: Fri, 5 Apr 2002 11:19:44 -0600 (CST)
In-Reply-To: <E16tT5c-0000m9-00@phekda.freeserve.co.uk> from "Richard Dawe" at Apr 05, 2002 01:49:14 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
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

> +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.

(I've been very busy the last few weeks, so have been lucky to even
read email, much less act on it)

> +The @code{F_GETFL} function now computes the open and status flags.
> +However, the open flags are only computed correctly on DOS -
> +@code{O_RDWR} is always returned on Windows NT/2000/XP.

Here also...

- Raw text -


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