[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:27 PDT 2026


================
@@ -165,6 +165,12 @@
       "doc": "Configures sorting algorithm for qsort and qsort_r. Values accepted are LIBC_QSORT_QUICK_SORT, LIBC_QSORT_HEAP_SORT."
     }
   },
+  "stdlib": {
+    "LIBC_CONF_EXIT_FLUSH_STREAMS": {
+      "value": true,
+      "doc": "Flush all open stdio streams when exit is called, as required by the C standard. Can be disabled in configurations without stdio streams (e.g. baremetal without files) so that exit does not depend on stdio."
----------------
labath wrote:

Technically it *can* be disabled anywhere (I don't know why you would though), but it *must* be disabled on bare metal targets that don't have stdio. Is that right?

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


More information about the libc-commits mailing list