Rev 1329 | Rev 1386 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1329 | Rev 1362 | ||
|---|---|---|---|
| Line 47... | Line 47... | ||
| 47 | #include <syscall/copy.h> |
47 | #include <syscall/copy.h> |
| 48 | #include <sysinfo/sysinfo.h> |
48 | #include <sysinfo/sysinfo.h> |
| 49 | 49 | ||
| 50 | static __native sys_io(int fd, const void * buf, size_t count) { |
50 | static __native sys_io(int fd, const void * buf, size_t count) { |
| 51 | 51 | ||
| - | 52 | return count; /*Syscall deprecated*/ |
|
| 52 | // TODO: buf sanity checks and a lot of other stuff ... |
53 | // TODO: buf sanity checks and a lot of other stuff ... |
| 53 | 54 | /* |
|
| 54 | size_t i; |
55 | size_t i; |
| 55 | 56 | |
|
| 56 | for (i = 0; i < count; i++) |
57 | for (i = 0; i < count; i++) |
| 57 | putchar(((char *) buf)[i]); |
58 | putchar(((char *) buf)[i]); |
| 58 | 59 | |
|
| 59 | return count; |
60 | return count;*/ |
| 60 | } |
61 | } |
| 61 | 62 | ||
| 62 | /** Dispatch system call */ |
63 | /** Dispatch system call */ |
| 63 | __native syscall_handler(__native a1, __native a2, __native a3, |
64 | __native syscall_handler(__native a1, __native a2, __native a3, |
| 64 | __native a4, __native id) |
65 | __native a4, __native id) |