libc: io: temporarily switch stderr to line-buffered mode

no-buffering isn't compatible with kern_log (used by bootstrap), as it
automatically appends a newline to every string written. this will
be switched back once kern_log isn't being used anymore.
This commit is contained in:
2026-05-31 17:21:15 +01:00
parent d47260dd13
commit b773439aa1
+3 -1
View File
@@ -5,7 +5,9 @@
static struct __opaque_file __stderr = { static struct __opaque_file __stderr = {
.f_fd = 2, .f_fd = 2,
.f_flags = FILE_STATIC, .f_flags = FILE_STATIC,
.f_buffer_mode = _IONBF, /* TODO change this back to _IONBF once we're no longer using kern_log()
* in bootstrap */
.f_buffer_mode = _IOLBF,
}; };
extern struct __opaque_file *__libc_file_stderr(void) extern struct __opaque_file *__libc_file_stderr(void)