Rev 1362 | Rev 1448 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1362 | Rev 1386 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | #include <ddi/ddi.h> |
45 | #include <ddi/ddi.h> |
46 | #include <security/cap.h> |
46 | #include <security/cap.h> |
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 | // return count; /*Syscall deprecated*/ |
53 | // TODO: buf sanity checks and a lot of other stuff ... |
53 | // TODO: buf sanity checks and a lot of other stuff ... |
54 | /* |
54 | |
55 | size_t i; |
55 | size_t i; |
56 | |
56 | |
57 | for (i = 0; i < count; i++) |
57 | for (i = 0; i < count; i++) |
58 | putchar(((char *) buf)[i]); |
58 | putchar(((char *) buf)[i]); |
59 | |
59 | |
60 | return count;*/ |
60 | return count; |
61 | } |
61 | } |
62 | 62 | ||
63 | /** Dispatch system call */ |
63 | /** Dispatch system call */ |
64 | __native syscall_handler(__native a1, __native a2, __native a3, |
64 | __native syscall_handler(__native a1, __native a2, __native a3, |
65 | __native a4, __native id) |
65 | __native a4, __native id) |