From f95a4a932476be2ba99e2fd081e8d2bc6ea12813 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Fri, 15 Dec 2017 09:38:53 -0500 Subject: Import newlib and create makefile --- newlib/libc/sys/sysnec810/misc.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 newlib/libc/sys/sysnec810/misc.c (limited to 'newlib/libc/sys/sysnec810/misc.c') diff --git a/newlib/libc/sys/sysnec810/misc.c b/newlib/libc/sys/sysnec810/misc.c new file mode 100644 index 0000000..f44c03d --- /dev/null +++ b/newlib/libc/sys/sysnec810/misc.c @@ -0,0 +1,40 @@ +#include <_ansi.h> +#include +#include + +extern int _write (int, void*, unsigned int); + +int +_open() { + return -1; +} + +int +_close() { + return -1; +} + +int +_lseek() { + return 0; +} + +int +_read() { + return 0; +} + +int +isatty() { + return 1; +} + +int +_DEFUN(_fstat,(file, st), + int file _AND + struct stat *st) +{ + st->st_mode = S_IFCHR; + return 0; +} + -- cgit v1.2.3