Rev 1278 | Rev 1294 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1278 | Rev 1293 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | #include <arch.h> |
41 | #include <arch.h> |
42 | #include <debug.h> |
42 | #include <debug.h> |
43 | #include <ipc/sysipc.h> |
43 | #include <ipc/sysipc.h> |
44 | #include <synch/futex.h> |
44 | #include <synch/futex.h> |
45 | #include <ddi/ddi.h> |
45 | #include <ddi/ddi.h> |
- | 46 | #include <syscall/copy.h> |
|
46 | 47 | ||
47 | static __native sys_io(int fd, const void * buf, size_t count) { |
48 | static __native sys_io(int fd, const void * buf, size_t count) { |
48 | 49 | ||
49 | // TODO: buf sanity checks and a lot of other stuff ... |
50 | // TODO: buf sanity checks and a lot of other stuff ... |
50 | 51 | ||
51 | size_t i; |
52 | size_t i; |
- | 53 | char str[10]; |
|
52 | 54 | ||
53 | for (i = 0; i < count; i++) |
55 | for (i = 0; i < count; i++) |
54 | putchar(((char *) buf)[i]); |
56 | putchar(((char *) buf)[i]); |
55 | 57 | ||
56 | return count; |
58 | return count; |