C99 freopen
Andreas Schwab
schwab@suse.de
Mon Apr 9 06:36:00 GMT 2001
freopen(NULL, ...) has a defined meaning in C99:
[#3] If filename is a null pointer, the freopen function
attempts to change the mode of the stream to that specified
by mode, as if the name of the file currently associated
with the stream had been used. It is implementation-defined
which changes of mode are permitted (if any), and under what
circumstances.
Anyone who wants to implement this? Currently we always return NULL with
errno == EFAULT.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
More information about the Libc-hacker
mailing list