fixed bash/dash/sh issue (Ubuntu)
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / sys / sysnec810 / misc.c
blobf44c03d519e9fb6cf11fe557ff6589e6d6701ab3
1 #include <_ansi.h>
2 #include <sys/types.h>
3 #include <sys/stat.h>
5 extern int _write (int, void*, unsigned int);
7 int
8 _open() {
9 return -1;
12 int
13 _close() {
14 return -1;
17 int
18 _lseek() {
19 return 0;
22 int
23 _read() {
24 return 0;
27 int
28 isatty() {
29 return 1;
32 int
33 _DEFUN(_fstat,(file, st),
34 int file _AND
35 struct stat *st)
37 st->st_mode = S_IFCHR;
38 return 0;