Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/async.h

    rd5c1051 rb7fd2a0  
    146146    sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);
    147147
    148 extern void async_wait_for(aid_t, int *);
    149 extern int async_wait_timeout(aid_t, int *, suseconds_t);
     148extern void async_wait_for(aid_t, errno_t *);
     149extern errno_t async_wait_timeout(aid_t, errno_t *, suseconds_t);
    150150extern void async_forget(aid_t);
    151151
     
    162162extern void async_put_client_data_by_id(task_id_t);
    163163
    164 extern int async_create_port(iface_t, async_port_handler_t, void *,
     164extern errno_t async_create_port(iface_t, async_port_handler_t, void *,
    165165    port_id_t *);
    166166extern void async_set_fallback_port_handler(async_port_handler_t, void *);
    167 extern int async_create_callback_port(async_exch_t *, iface_t, sysarg_t,
     167extern errno_t async_create_callback_port(async_exch_t *, iface_t, sysarg_t,
    168168    sysarg_t, async_port_handler_t, void *, port_id_t *);
    169169
    170 extern int async_irq_subscribe(int, async_notification_handler_t, void *,
     170extern errno_t async_irq_subscribe(int, async_notification_handler_t, void *,
    171171    const irq_code_t *, cap_handle_t *);
    172 extern int async_irq_unsubscribe(cap_handle_t);
    173 
    174 extern int async_event_subscribe(event_type_t, async_notification_handler_t,
     172extern errno_t async_irq_unsubscribe(cap_handle_t);
     173
     174extern errno_t async_event_subscribe(event_type_t, async_notification_handler_t,
    175175    void *);
    176 extern int async_event_task_subscribe(event_task_type_t,
     176extern errno_t async_event_task_subscribe(event_task_type_t,
    177177    async_notification_handler_t, void *);
    178 extern int async_event_unsubscribe(event_type_t);
    179 extern int async_event_task_unsubscribe(event_task_type_t);
    180 extern int async_event_unmask(event_type_t);
    181 extern int async_event_task_unmask(event_task_type_t);
     178extern errno_t async_event_unsubscribe(event_type_t);
     179extern errno_t async_event_task_unsubscribe(event_task_type_t);
     180extern errno_t async_event_unmask(event_type_t);
     181extern errno_t async_event_task_unmask(event_task_type_t);
    182182
    183183/*
     
    198198 */
    199199
    200 extern int async_answer_0(cap_handle_t, int);
    201 extern int async_answer_1(cap_handle_t, int, sysarg_t);
    202 extern int async_answer_2(cap_handle_t, int, sysarg_t, sysarg_t);
    203 extern int async_answer_3(cap_handle_t, int, sysarg_t, sysarg_t,
     200extern errno_t async_answer_0(cap_handle_t, errno_t);
     201extern errno_t async_answer_1(cap_handle_t, errno_t, sysarg_t);
     202extern errno_t async_answer_2(cap_handle_t, errno_t, sysarg_t, sysarg_t);
     203extern errno_t async_answer_3(cap_handle_t, errno_t, sysarg_t, sysarg_t,
    204204    sysarg_t);
    205 extern int async_answer_4(cap_handle_t, int, sysarg_t, sysarg_t,
     205extern errno_t async_answer_4(cap_handle_t, errno_t, sysarg_t, sysarg_t,
    206206    sysarg_t, sysarg_t);
    207 extern int async_answer_5(cap_handle_t, int, sysarg_t, sysarg_t,
     207extern errno_t async_answer_5(cap_handle_t, errno_t, sysarg_t, sysarg_t,
    208208    sysarg_t, sysarg_t, sysarg_t);
    209209
     
    212212 */
    213213
    214 extern int async_forward_fast(cap_handle_t, async_exch_t *, sysarg_t, sysarg_t,
     214extern errno_t async_forward_fast(cap_handle_t, async_exch_t *, sysarg_t, sysarg_t,
    215215    sysarg_t, unsigned int);
    216 extern int async_forward_slow(cap_handle_t, async_exch_t *, sysarg_t, sysarg_t,
     216extern errno_t async_forward_slow(cap_handle_t, async_exch_t *, sysarg_t, sysarg_t,
    217217    sysarg_t, sysarg_t, sysarg_t, sysarg_t, unsigned int);
    218218
     
    338338            rc3, rc4, rc5)
    339339
    340 extern int async_req_fast(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     340extern errno_t async_req_fast(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    341341    sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *,
    342342    sysarg_t *);
    343 extern int async_req_slow(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     343extern errno_t async_req_slow(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    344344    sysarg_t, sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *,
    345345    sysarg_t *, sysarg_t *);
     
    355355extern async_sess_t *async_connect_kbox(task_id_t);
    356356
    357 extern int async_connect_to_me(async_exch_t *, sysarg_t, sysarg_t, sysarg_t);
    358 
    359 extern int async_hangup(async_sess_t *);
     357extern errno_t async_connect_to_me(async_exch_t *, sysarg_t, sysarg_t, sysarg_t);
     358
     359extern errno_t async_hangup(async_sess_t *);
    360360extern void async_poke(void);
    361361
     
    382382        async_share_in_start(exch, size, arg, flags, dst)
    383383
    384 extern int async_share_in_start(async_exch_t *, size_t, sysarg_t,
     384extern errno_t async_share_in_start(async_exch_t *, size_t, sysarg_t,
    385385    unsigned int *, void **);
    386386extern bool async_share_in_receive(cap_handle_t *, size_t *);
    387 extern int async_share_in_finalize(cap_handle_t, void *, unsigned int);
    388 
    389 extern int async_share_out_start(async_exch_t *, void *, unsigned int);
     387extern errno_t async_share_in_finalize(cap_handle_t, void *, unsigned int);
     388
     389extern errno_t async_share_out_start(async_exch_t *, void *, unsigned int);
    390390extern bool async_share_out_receive(cap_handle_t *, size_t *, unsigned int *);
    391 extern int async_share_out_finalize(cap_handle_t, void **);
     391extern errno_t async_share_out_finalize(cap_handle_t, void **);
    392392
    393393/*
     
    422422
    423423extern aid_t async_data_read(async_exch_t *, void *, size_t, ipc_call_t *);
    424 extern int async_data_read_start(async_exch_t *, void *, size_t);
     424extern errno_t async_data_read_start(async_exch_t *, void *, size_t);
    425425extern bool async_data_read_receive(cap_handle_t *, size_t *);
    426426extern bool async_data_read_receive_call(cap_handle_t *, ipc_call_t *, size_t *);
    427 extern int async_data_read_finalize(cap_handle_t, const void *, size_t);
    428 
    429 extern int async_data_read_forward_fast(async_exch_t *, sysarg_t, sysarg_t,
     427extern errno_t async_data_read_finalize(cap_handle_t, const void *, size_t);
     428
     429extern errno_t async_data_read_forward_fast(async_exch_t *, sysarg_t, sysarg_t,
    430430    sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);
    431431
     
    461461            answer)
    462462
    463 extern int async_data_write_start(async_exch_t *, const void *, size_t);
     463extern errno_t async_data_write_start(async_exch_t *, const void *, size_t);
    464464extern bool async_data_write_receive(cap_handle_t *, size_t *);
    465465extern bool async_data_write_receive_call(cap_handle_t *, ipc_call_t *, size_t *);
    466 extern int async_data_write_finalize(cap_handle_t, void *, size_t);
    467 
    468 extern int async_data_write_accept(void **, const bool, const size_t,
     466extern errno_t async_data_write_finalize(cap_handle_t, void *, size_t);
     467
     468extern errno_t async_data_write_accept(void **, const bool, const size_t,
    469469    const size_t, const size_t, size_t *);
    470 extern void async_data_write_void(int);
    471 
    472 extern int async_data_write_forward_fast(async_exch_t *, sysarg_t, sysarg_t,
     470extern void async_data_write_void(errno_t);
     471
     472extern errno_t async_data_write_forward_fast(async_exch_t *, sysarg_t, sysarg_t,
    473473    sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);
    474474
     
    476476extern async_sess_t *async_callback_receive_start(exch_mgmt_t, ipc_call_t *);
    477477
    478 extern int async_state_change_start(async_exch_t *, sysarg_t, sysarg_t,
     478extern errno_t async_state_change_start(async_exch_t *, sysarg_t, sysarg_t,
    479479    sysarg_t, async_exch_t *);
    480480extern bool async_state_change_receive(cap_handle_t *, sysarg_t *, sysarg_t *,
    481481    sysarg_t *);
    482 extern int async_state_change_finalize(cap_handle_t, async_exch_t *);
     482extern errno_t async_state_change_finalize(cap_handle_t, async_exch_t *);
    483483
    484484extern void *async_remote_state_acquire(async_sess_t *);
Note: See TracChangeset for help on using the changeset viewer.