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" Sender: halo1 AT zahav DOT net DOT il To: Richard Dawe 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: <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 Precedence: bulk > Date: Fri, 05 Apr 2002 10:35:35 +0100 > From: Richard Dawe > > 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?