Changeset 5a6cc679 in mainline for uspace/lib/c/generic/io/console.c


Ignore:
Timestamp:
2018-01-31T02:21:24Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/console.c

    r132ab5d1 r5a6cc679  
    9090}
    9191
    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);
     92errno_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);
    9696        async_exchange_end(exch);
    9797       
     
    129129}
    130130
    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);
     131errno_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);
    135135        async_exchange_end(exch);
    136136       
     
    138138}
    139139
    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);
     140errno_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);
    144144        async_exchange_end(exch);
    145145       
     
    154154}
    155155
    156 static int console_ev_decode(ipc_call_t *call, cons_event_t *event)
     156static errno_t console_ev_decode(ipc_call_t *call, cons_event_t *event)
    157157{
    158158        event->type = IPC_GET_ARG1(*call);
     
    188188                async_exchange_end(exch);
    189189               
    190                 int rc;
     190                errno_t rc;
    191191                async_wait_for(aid, &rc);
    192192               
     
    202202                }
    203203        } else {
    204                 int retval;
     204                errno_t retval;
    205205                async_wait_for(ctrl->input_aid, &retval);
    206206               
     
    212212                }
    213213               
    214                 int rc = console_ev_decode(&ctrl->input_call, event);
     214                errno_t rc = console_ev_decode(&ctrl->input_call, event);
    215215                if (rc != EOK) {
    216216                        errno = rc;
     
    235235        }
    236236       
    237         int retval;
    238         int rc = async_wait_timeout(ctrl->input_aid, &retval, *timeout);
     237        errno_t retval;
     238        errno_t rc = async_wait_timeout(ctrl->input_aid, &retval, *timeout);
    239239        if (rc != EOK) {
    240240                *timeout = 0;
Note: See TracChangeset for help on using the changeset viewer.