From 8a0efa53e44919bcf5ccb1d3353618a82afdf8bc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 17 Feb 2000 19:39:52 +0000 Subject: import newlib-2000-02-17 snapshot --- 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 000000000..f44c03d51 --- /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