aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/stdio.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-07-16 15:59:46 +0200
committerAlex Auvolat <alex@adnab.me>2016-07-16 15:59:46 +0200
commit3d6a857b9186ef6304ea6cf04627c2b787169f29 (patch)
tree756179ce1e1838f75c57e3efec2a570d72051594 /src/lib/include/stdio.h
parent59000174aa50ed6b2d24a71576d15e6a53c5be0c (diff)
downloadkogata-3d6a857b9186ef6304ea6cf04627c2b787169f29.tar.gz
kogata-3d6a857b9186ef6304ea6cf04627c2b787169f29.zip
Make way for libc implementation
Diffstat (limited to 'src/lib/include/stdio.h')
-rw-r--r--src/lib/include/stdio.h11
1 files changed, 4 insertions, 7 deletions
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 <stdarg.h>
-#include <kogata/syscall.h>
+#include <kogata/printf.h>
-extern fd_t stdio;
+#include <kogata/syscall.h>
-// 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 :*/