cvs commit: src/lib/libc/stdio wsetup.c
David Schultz
das at FreeBSD.org
Tue Jun 8 05:44:53 GMT 2004
das 2004-06-08 05:44:52 UTC
FreeBSD src repository
Modified files:
lib/libc/stdio wsetup.c
Log:
Set errno to EBADF on attempts to write to a stream that is not
writable. Affected callers include fwrite(), put?(), and *printf().
The issue of whether this is the right errno for funopened streams is
unresolved, but that's an obscure case, and some errno is better than
no errno.
Discussed with: bde, jkh
Revision Changes Path
1.9 +5 -2 src/lib/libc/stdio/wsetup.c
More information about the cvs-src
mailing list