Rev 2541 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2541 | Rev 2621 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | { |
68 | { |
69 | ipcarg_t r0, r1; |
69 | ipcarg_t r0, r1; |
70 | size_t i = 0; |
70 | size_t i = 0; |
71 | 71 | ||
72 | while (i < count) { |
72 | while (i < count) { |
73 | if (async_req_2(streams[0].phone, CONSOLE_GETCHAR, 0, 0, &r0, |
73 | if (async_req_0_2(streams[0].phone, CONSOLE_GETCHAR, &r0, |
74 | &r1) < 0) { |
74 | &r1) < 0) { |
75 | return -1; |
75 | return -1; |
76 | } |
76 | } |
77 | ((char *) buf)[i++] = r0; |
77 | ((char *) buf)[i++] = r0; |
78 | } |
78 | } |
Line 82... | Line 82... | ||
82 | static ssize_t write_stdout(void *param, const void *buf, size_t count) |
82 | static ssize_t write_stdout(void *param, const void *buf, size_t count) |
83 | { |
83 | { |
84 | int i; |
84 | int i; |
85 | 85 | ||
86 | for (i = 0; i < count; i++) |
86 | for (i = 0; i < count; i++) |
87 | async_msg(streams[1].phone, CONSOLE_PUTCHAR, |
87 | async_msg_1(streams[1].phone, CONSOLE_PUTCHAR, |
88 | ((const char *) buf)[i]); |
88 | ((const char *) buf)[i]); |
89 | 89 | ||
90 | return count; |
90 | return count; |
91 | } |
91 | } |
92 | 92 |