Changeset 5d4e90f0 in mainline for uspace/lib/libc/include/async.h


Ignore:
Timestamp:
2007-09-27T12:35:36Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bcf23cf
Parents:
8c20b26
Message:

Header cleanup.
Move off_t, size_t and ssize_t into sys/types.h.
Get rid off the non-standard and dummy types.h.

File:
1 edited

Legend:

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

    r8c20b26 r5d4e90f0  
    5656
    5757aid_t async_send_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2,
    58                    ipc_call_t *dataptr);
     58    ipc_call_t *dataptr);
    5959aid_t async_send_3(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2,
    60                    ipcarg_t arg3, ipc_call_t *dataptr);
     60    ipcarg_t arg3, ipc_call_t *dataptr);
    6161void async_wait_for(aid_t amsgid, ipcarg_t *result);
    6262int async_wait_timeout(aid_t amsgid, ipcarg_t *retval, suseconds_t timeout);
     
    6868 * @return Return code of message
    6969 */
    70 static inline ipcarg_t async_req_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t *r1, ipcarg_t *r2)
     70static inline ipcarg_t async_req_2(int phoneid, ipcarg_t method, ipcarg_t arg1,
     71    ipcarg_t arg2, ipcarg_t *r1, ipcarg_t *r2)
    7172{
    7273        ipc_call_t result;
     
    8182        return rc;
    8283}
    83 #define async_req(phoneid, method, arg1, r1) async_req_2(phoneid, method, arg1, 0, r1, 0)
     84#define async_req(phoneid, method, arg1, r1) \
     85    async_req_2(phoneid, method, arg1, 0, r1, 0)
    8486
    8587static inline ipcarg_t async_req_3(int phoneid, ipcarg_t method, ipcarg_t arg1,
    86                                    ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *r1,
    87                                    ipcarg_t *r2, ipcarg_t *r3)
     88    ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *r1, ipcarg_t *r2, ipcarg_t *r3)
    8889{
    8990        ipc_call_t result;
     
    114115/* Primitve functions for IPC communication */
    115116void async_msg_3(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2,
    116                 ipcarg_t arg3);
     117    ipcarg_t arg3);
    117118void async_msg_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2);
    118119#define async_msg(ph, m, a1) async_msg_2(ph, m, a1, 0)
Note: See TracChangeset for help on using the changeset viewer.