delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/04/05/06:31:55

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Fri, 05 Apr 2002 14:27:26 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Message-Id: <8582-Fri05Apr2002142726+0300-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <3CAD6FE7.1384C841@phekda.freeserve.co.uk> (message from Richard
Dawe on Fri, 05 Apr 2002 10:35:35 +0100)
Subject: Re: redirection problem with perl
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020128134413 DOT 26430D-100000 AT is> <3CAB1FDB DOT 68F9CF2F AT phekda DOT freeserve DOT co DOT uk> <7704-Fri05Apr2002112312+0300-eliz AT is DOT elta DOT co DOT il> <3CAD6FE7 DOT 1384C841 AT phekda DOT freeserve DOT co DOT uk>
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

> Date: Fri, 05 Apr 2002 10:35:35 +0100
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> 
> src/libc/dos/io/_creat_n.c, lines 31, 32:
> 
> r.x.bx =
>   0x2002 | (flags & 0xfff0);  /* r/w, no Int 24h, use caller-defined flags */
> 
> The bottom four bits specify the open mode. Here we override what the user
> specified with 2, which is read-write.

I guess that's because you can't create a file without asking to
write to it.

Should we reopen it with the correct open mode once it's created?

- Raw text -


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