2026-04-01 18:51:13 +01:00
|
|
|
#include "file.h"
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
static struct __opaque_file __stderr = {
|
|
|
|
|
.f_fd = 2,
|
|
|
|
|
.f_flags = FILE_STATIC,
|
2026-05-31 17:21:15 +01:00
|
|
|
/* TODO change this back to _IONBF once we're no longer using kern_log()
|
|
|
|
|
* in bootstrap */
|
|
|
|
|
.f_buffer_mode = _IOLBF,
|
2026-04-01 18:51:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern struct __opaque_file *__libc_file_stderr(void)
|
|
|
|
|
{
|
|
|
|
|
return &__stderr;
|
|
|
|
|
}
|