[libc-commits] [libc] [libc] Keep a stream buffered when setvbuf is passed no buffer (PR #236517)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Thu Oct 29 02:52:36 PDT 2026
labath wrote:
This is interesting. AFAICT that setlinebuf equivalence comes from the glibc manpage, which we don't really have to follow (we could e.g. have it pass a different buffer size instead), but it does give a bit of a clue about what behavior would people expect of setvbuf. I'm not very familiar with this part of the code, so I don't want to give an authoritative answer here. I suggest you wait until Michael or someone else can weigh in.
In the mean time, if you'd like, you can spin up a separate PR for the delete[] fix, and I'd be happy to approve that.
https://github.com/llvm/llvm-project/pull/236517
More information about the libc-commits
mailing list