Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!wuarchive!usc!ucsd!pacbell.com!att!att!watmath!watserv1!ria!uwovax!7103_2622 From: 7103_2622@uwovax.uwo.ca (Eric Smith) Newsgroups: comp.sys.atari.st Subject: Re: gcc and MT C-Shell (repost) Message-ID: <7531.2728a749@uwovax.uwo.ca> Date: 27 Oct 90 01:14:48 GMT References: <1990Oct24.164834.21929@doe.utoronto.ca> Lines: 17 In article <1990Oct24.164834.21929@doe.utoronto.ca>, david@doe.utoronto.ca (David Megginson) writes: > > The program runs under TOS and MiNT, but not under RTX (which prints the > error message). The reason is that the Gnu freopen() function in this case > attempts to close the standard handle associated with stdout, which > (correctly) causes an error under RTX, while TOS and MiNT are a little > more lenient. > "Correctly?" I can recall no TOS documents that forbid closing handle 0. Since TOS does permit it, I would conclude that closing stdout should cause no error. Note that Unix works the same way. -- Eric R. Smith email: Dept. of Mathematics ersmith@uwovax.uwo.ca University of Western Ontario ersmith@uwovax.bitnet London, Ont. Canada N6A 5B7 ph: (519) 661-3638