[libc-commits] [libc] [llvm] [libc] Files now flush on exit (PR #230215)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Fri Oct 9 02:30:28 PDT 2026


================
@@ -27,4 +36,9 @@ LLVM_LIBC_FUNCTION(int, fflush, (::FILE * stream)) {
   return ret;
 }
 
+ErrorOr<int> flush_stream(::FILE *stream) { return flush_on_host(stream); }
----------------
labath wrote:

If the only successful return value is zero, we could also consider changing the signature to return ErrorOr<void>. (This is something I've been considering for a while, but this is the first place I've seen where that would make a difference.)

https://github.com/llvm/llvm-project/pull/230215


More information about the libc-commits mailing list