This is the mail archive of the
mailing list for the GCC project.
Re: stderr vs. STDERR_FILENO
firstname.lastname@example.org (Kai Henningsen) writes:
> email@example.com (Andreas Schwab) wrote on 25.02.04 in <firstname.lastname@example.org>:
>> Mark Mitchell <email@example.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 Schwab, SuSE Labs, firstname.lastname@example.org
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."