This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: stderr vs. STDERR_FILENO
kaih@khms.westfalen.de (Kai Henningsen) writes:
> schwab@suse.de (Andreas Schwab) wrote on 25.02.04 in <jellmsf27b.fsf@sykes.suse.de>:
>
>> Mark Mitchell <mark@codesourcery.com> writes:
>>
>> > (2) stderr freopen'd (and not attached to fd 2)
>>
>> stderr freopen'd means it is still attached to fd 2.
>
> I seriously doubt that.
>
> If I caught the library doing that, I'd consider it a serious bug.
>
> Fdreopen should use exactly the fd it is given, not create another. The
fdrepopen does not exist. I think you are mistaken it for fdopen.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."