www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/29/08:56:43

Date: Sun, 29 Jun 1997 15:52:12 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Pierre Muller <muller AT janus DOT u-strasbg DOT fr>
cc: djgpp AT delorie DOT com
Subject: Re: Where is stderr opened ?
In-Reply-To: <5p08m1$ip0@news.u-strasbg.fr>
Message-ID: <Pine.SUN.3.91.970629155142.20395J-100000@is>
MIME-Version: 1.0

On 27 Jun 1997, Pierre Muller wrote:

>   I am a poor pascal programmer that
> doesn't know much about C, and I desperately
> looked for the code that opens stderr stdin and sdtout
> in go32v2 exec, and did not find anything !!!

And you won't!  The 3 standard streams (and STDAUX and STDPRN in
addition) are already open when the program starts.  This is a DOS
feature, so the program doesn't have to do anything to get them.  This
works because the shell (COMMAND.COM or any other) lets the program
you invoke inherit these standard streams from its own handle table.

- Raw text -


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