From 497c0bf9c1b54870ef44ff6e07cfdc1af08d0d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 18 Nov 2003 02:39:36 +0000 Subject: [PATCH] Removed unneeded file. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5402 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/stdio/old_stdio.c | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/kernel/libroot/posix/stdio/old_stdio.c diff --git a/src/kernel/libroot/posix/stdio/old_stdio.c b/src/kernel/libroot/posix/stdio/old_stdio.c deleted file mode 100644 index e44bcca867..0000000000 --- a/src/kernel/libroot/posix/stdio/old_stdio.c +++ /dev/null @@ -1,44 +0,0 @@ -/* -** Copyright 2001, Travis Geiselbrecht. All rights reserved. -** Distributed under the terms of the NewOS License. -*/ -#include -#include -#include - -int __stdio_init(void); /* keep the compiler happy, these two are not supposed */ -int __stdio_deinit(void);/* to be called by anyone except crt0, and crt0 will change soon */ - - -int __stdio_init(void) -{ - return 0; -} - -int __stdio_deinit(void) -{ - return 0; -} - -int printf(const char *fmt, ...) -{ - va_list args; - char buf[1024]; - int i; - - va_start(args, fmt); - i = vsprintf(buf, fmt, args); - va_end(args); - - sys_write(1, buf, -1, strlen(buf)); - - return i; -} - -int getchar(void) -{ - char c; - - sys_read(0, &c, 0, 1); - return c; -}