diff options
author | das <das@FreeBSD.org> | 2004-06-08 05:44:52 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2004-06-08 05:44:52 +0000 |
commit | 55edbf12e79020526adb2c4cd6d16638c3f7f15a (patch) | |
tree | 8d3a5c2c76db0241072041d4410c25b0d164ca4d /lib/libc/stdio/wbuf.c | |
parent | f9a170c34a9a0d3656dea30832512c8f16ec97c8 (diff) | |
download | FreeBSD-src-55edbf12e79020526adb2c4cd6d16638c3f7f15a.zip FreeBSD-src-55edbf12e79020526adb2c4cd6d16638c3f7f15a.tar.gz |
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
Diffstat (limited to 'lib/libc/stdio/wbuf.c')
0 files changed, 0 insertions, 0 deletions