Changes in uspace/lib/c/generic/io/console.c [b7fd2a0:38d150e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/console.c
rb7fd2a0 r38d150e 90 90 } 91 91 92 errno_t console_get_size(console_ctrl_t *ctrl, sysarg_t *cols, sysarg_t *rows)93 { 94 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 95 errno_t rc = async_req_0_2(exch, CONSOLE_GET_SIZE, cols, rows);92 int console_get_size(console_ctrl_t *ctrl, sysarg_t *cols, sysarg_t *rows) 93 { 94 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 95 int rc = async_req_0_2(exch, CONSOLE_GET_SIZE, cols, rows); 96 96 async_exchange_end(exch); 97 97 … … 129 129 } 130 130 131 errno_t console_get_color_cap(console_ctrl_t *ctrl, sysarg_t *ccap)132 { 133 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 134 errno_t rc = async_req_0_1(exch, CONSOLE_GET_COLOR_CAP, ccap);131 int console_get_color_cap(console_ctrl_t *ctrl, sysarg_t *ccap) 132 { 133 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 134 int rc = async_req_0_1(exch, CONSOLE_GET_COLOR_CAP, ccap); 135 135 async_exchange_end(exch); 136 136 … … 138 138 } 139 139 140 errno_t console_get_pos(console_ctrl_t *ctrl, sysarg_t *col, sysarg_t *row)141 { 142 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 143 errno_t rc = async_req_0_2(exch, CONSOLE_GET_POS, col, row);140 int console_get_pos(console_ctrl_t *ctrl, sysarg_t *col, sysarg_t *row) 141 { 142 async_exch_t *exch = async_exchange_begin(ctrl->output_sess); 143 int rc = async_req_0_2(exch, CONSOLE_GET_POS, col, row); 144 144 async_exchange_end(exch); 145 145 … … 154 154 } 155 155 156 static errno_t console_ev_decode(ipc_call_t *call, cons_event_t *event)156 static int console_ev_decode(ipc_call_t *call, cons_event_t *event) 157 157 { 158 158 event->type = IPC_GET_ARG1(*call); … … 188 188 async_exchange_end(exch); 189 189 190 errno_t rc;190 sysarg_t rc; 191 191 async_wait_for(aid, &rc); 192 192 … … 202 202 } 203 203 } else { 204 errno_t retval;204 sysarg_t retval; 205 205 async_wait_for(ctrl->input_aid, &retval); 206 206 … … 208 208 209 209 if (retval != EOK) { 210 errno = retval;211 return false; 212 } 213 214 errno_t rc = console_ev_decode(&ctrl->input_call, event);210 errno = (int) retval; 211 return false; 212 } 213 214 int rc = console_ev_decode(&ctrl->input_call, event); 215 215 if (rc != EOK) { 216 216 errno = rc; … … 235 235 } 236 236 237 errno_t retval;238 errno_t rc = async_wait_timeout(ctrl->input_aid, &retval, *timeout);237 sysarg_t retval; 238 int rc = async_wait_timeout(ctrl->input_aid, &retval, *timeout); 239 239 if (rc != EOK) { 240 240 *timeout = 0; … … 246 246 247 247 if (retval != EOK) { 248 errno = retval;248 errno = (int) retval; 249 249 return false; 250 250 }
Note:
See TracChangeset
for help on using the changeset viewer.