Cygwin: fhandler_virtual: move fileid to path_conv member
[newlib-cygwin.git] / libgloss / sparc / sysc-701.c
blob191a08a09ad422c292099ec8255c3b31a2b9189d
1 /* more sparclet syscall support (the rest is in crt0-701.S). */
3 #include <sys/types.h>
4 #include <sys/stat.h>
5 #include <errno.h>
7 int
8 fstat(int _fd, struct stat* _sbuf)
10 errno = ENOSYS;
11 return -1;
14 int
15 isatty(int fd)
17 if (fd < 0)
19 errno = EBADF;
20 return -1;
22 return fd <= 2;
25 int
26 getpid()
28 return 1;
31 int
32 kill(int pid)
34 /* if we knew how to nuke the board, we would... */
35 return 0;
38 int
39 lseek(int _fd, off_t offset, int whence)
41 errno = ENOSYS;
42 return -1;
45 extern char end;
46 char*
47 sbrk (int incr)
49 static char* base;
50 char *b;
51 if(!base) base = &end;
52 b = base;
53 base += incr;
54 return b;