[libc-commits] [libc] [libc] Keep a stream buffered when setvbuf is passed no buffer (PR #236517)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Thu Nov 5 14:05:15 PST 2026
https://github.com/michaelrj-google requested changes to this pull request.
There's definitely a real issue here, but I don't think that this is the ideal solution. Based on your description it sounds like the issue was that the `FILE` ended up in a state where its mode was line buffered but the buffer was of size 0. It might make more sense to, if the user requests a size of 0, set the mode to unbuffered even if the user requested line buffered.
https://github.com/llvm/llvm-project/pull/236517
More information about the libc-commits
mailing list