Date: Sun, 29 Jun 1997 15:52:12 +0300 (IDT) From: Eli Zaretskii To: Pierre Muller cc: djgpp AT delorie DOT com Subject: Re: Where is stderr opened ? In-Reply-To: <5p08m1$ip0@news.u-strasbg.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.