summaryrefslogtreecommitdiff
path: root/libc/src/stdio.c
blob: c705946900f67f67513f0c3619f560dcb515cfac (plain)
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>

static FILE _stdin, _stdout, _stderr;
FILE * stdin = &_stdin, * stdout = &_stdout, * stderr = &_stderr;

void __sinit(struct _reent * reent) {
    stdin->fd = 0;
    stdout->fd = 1;
    stderr->fd = 2;
}