setvbuf: return failure if mode is invalid
authorA. Wilcox <AWilcox@Wilcox-Tech.com>
Tue, 12 Mar 2019 20:31:22 +0000 (15:31 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 12 Mar 2019 20:44:41 +0000 (16:44 -0400)
commit00d3d577cac8dc05e683b16bfe3dbe4a692cb172
treeb57a62996a5ac8d994f0d04feca2f993c77aa047
parentf368d9fd26ae002fe2fce20add4cb2b806f48972
setvbuf: return failure if mode is invalid

POSIX requires setvbuf to return non-zero if `mode` is not one of _IONBF,
_IOLBF, or _IOFBF.
src/stdio/setvbuf.c