Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
350 bytes
|
Line | |
---|
1 | #include <_ansi.h> |
---|
2 | #include <sys/types.h> |
---|
3 | #include <sys/stat.h> |
---|
4 | |
---|
5 | extern int _write (int, void*, unsigned int); |
---|
6 | |
---|
7 | int |
---|
8 | _open() { |
---|
9 | return -1; |
---|
10 | } |
---|
11 | |
---|
12 | int |
---|
13 | _close() { |
---|
14 | return -1; |
---|
15 | } |
---|
16 | |
---|
17 | int |
---|
18 | _lseek() { |
---|
19 | return 0; |
---|
20 | } |
---|
21 | |
---|
22 | int |
---|
23 | _read() { |
---|
24 | return 0; |
---|
25 | } |
---|
26 | |
---|
27 | int |
---|
28 | isatty() { |
---|
29 | return 1; |
---|
30 | } |
---|
31 | |
---|
32 | int |
---|
33 | _fstat (int file, |
---|
34 | struct stat *st) |
---|
35 | { |
---|
36 | st->st_mode = S_IFCHR; |
---|
37 | return 0; |
---|
38 | } |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.