From 3d6a857b9186ef6304ea6cf04627c2b787169f29 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 16 Jul 2016 15:59:46 +0200 Subject: Make way for libc implementation --- src/lib/include/stdio.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/lib/include/stdio.h') diff --git a/src/lib/include/stdio.h b/src/lib/include/stdio.h index 3914a89..c6b636d 100644 --- a/src/lib/include/stdio.h +++ b/src/lib/include/stdio.h @@ -2,17 +2,16 @@ #include -#include +#include -extern fd_t stdio; +#include -// CUSTOM! -void getline(char* buf, size_t l); +void setup_libc_stdio(); //TODO below struct file_t { - fd_t fd; + // TODO }; typedef struct file_t FILE; @@ -78,12 +77,10 @@ int rename(const char *old, const char *new); int remove(const char *pathname); - int printf(const char *format, ...); int fprintf(FILE *stream, const char *format, ...); int dprintf(int fd, const char *format, ...); int sprintf(char *str, const char *format, ...); -int snprintf(char *str, size_t size, const char *format, ...); /* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3