17 lines
313 B
C
17 lines
313 B
C
|
|
#include "__fio.h"
|
||
|
|
|
||
|
|
struct __io_file __stdin = {};
|
||
|
|
struct __io_file __stdout = {};
|
||
|
|
struct __io_file __stderr = {};
|
||
|
|
|
||
|
|
struct __io_file *stdin = &__stdin;
|
||
|
|
struct __io_file *stdout = &__stdout;
|
||
|
|
struct __io_file *stderr = &__stderr;
|
||
|
|
|
||
|
|
void __fio_init()
|
||
|
|
{
|
||
|
|
__stdin.fd = 0;
|
||
|
|
__stdout.fd = 1;
|
||
|
|
__stderr.fd = 2;
|
||
|
|
}
|