From 61ba39a23786a7ae9694705af1d146c00a319144 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sat, 5 Feb 2011 04:35:27 +0100 Subject: Getting rid of newlib, starting to implement a libc. Highly experimental, highly untested. --- libc/src/stdio.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libc/src/stdio.c (limited to 'libc/src/stdio.c') diff --git a/libc/src/stdio.c b/libc/src/stdio.c new file mode 100644 index 0000000..eab9c7e --- /dev/null +++ b/libc/src/stdio.c @@ -0,0 +1,9 @@ +#include + +FILE * stdin, * stdout, * stderr; + +void __sinit(struct _reent * reent) { + stdin->fd = 0; + stdout->fd = 1; + stderr->fd = 2; +} -- cgit v1.2.3