libc: io: implement file io buffering and internal locking for concurrency
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include "file.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
static struct __opaque_file __stderr = {
|
||||
.f_fd = 2,
|
||||
.f_flags = FILE_STATIC,
|
||||
.f_buffer_mode = _IONBF,
|
||||
};
|
||||
|
||||
extern struct __opaque_file *__libc_file_stderr(void)
|
||||
{
|
||||
return &__stderr;
|
||||
}
|
||||
Reference in New Issue
Block a user