Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/ipc.c

    r6aae539d rab34cc9  
    4848#include <fibril.h>
    4949#include <macros.h>
    50 #include "private/libc.h"
    5150
    5251/**
     
    647646 *
    648647 */
    649 int ipc_clone_establish(int phoneid)
     648int ipc_connect_me(int phoneid)
    650649{
    651650        sysarg_t newphid;
    652         int res = ipc_call_sync_0_5(phoneid, IPC_M_CLONE_ESTABLISH, NULL,
    653             NULL, NULL, NULL, &newphid);
     651        int res = ipc_call_sync_0_5(phoneid, IPC_M_CONNECT_ME, NULL, NULL,
     652            NULL, NULL, &newphid);
    654653        if (res)
    655654                return res;
     
    761760 *
    762761 * @param phoneid Phone that will be used to contact the receiving side.
     762 * @param dst     Destination address space area base.
    763763 * @param size    Size of the destination address space area.
    764764 * @param arg     User defined argument.
    765765 * @param flags   Storage for received flags. Can be NULL.
    766  * @param dst     Destination address space area base. Cannot be NULL.
    767766 *
    768767 * @return Zero on success or a negative error code from errno.h.
    769768 *
    770769 */
    771 int ipc_share_in_start(int phoneid, size_t size, sysarg_t arg,
    772     unsigned int *flags, void **dst)
    773 {
    774         sysarg_t _flags = 0;
    775         sysarg_t _dst = (sysarg_t) -1;
    776         int res = ipc_call_sync_2_4(phoneid, IPC_M_SHARE_IN, (sysarg_t) size,
    777             arg, NULL, &_flags, NULL, &_dst);
     770int ipc_share_in_start(int phoneid, void *dst, size_t size, sysarg_t arg,
     771    unsigned int *flags)
     772{
     773        sysarg_t tmp_flags = 0;
     774        int res = ipc_call_sync_3_2(phoneid, IPC_M_SHARE_IN, (sysarg_t) dst,
     775            (sysarg_t) size, arg, NULL, &tmp_flags);
    778776       
    779777        if (flags)
    780                 *flags = (unsigned int) _flags;
    781        
    782         *dst = (void *) _dst;
     778                *flags = (unsigned int) tmp_flags;
     779       
    783780        return res;
    784781}
     
    786783/** Wrapper for answering the IPC_M_SHARE_IN calls.
    787784 *
    788  * This wrapper only makes it more comfortable to answer IPC_M_SHARE_IN
     785 * This wrapper only makes it more comfortable to answer IPC_M_DATA_READ
    789786 * calls so that the user doesn't have to remember the meaning of each
    790787 * IPC argument.
     
    799796int ipc_share_in_finalize(ipc_callid_t callid, void *src, unsigned int flags)
    800797{
    801         return ipc_answer_3(callid, EOK, (sysarg_t) src, (sysarg_t) flags,
    802             (sysarg_t) __entry);
     798        return ipc_answer_2(callid, EOK, (sysarg_t) src, (sysarg_t) flags);
    803799}
    804800
     
    830826 *
    831827 */
    832 int ipc_share_out_finalize(ipc_callid_t callid, void **dst)
    833 {
    834         return ipc_answer_2(callid, EOK, (sysarg_t) __entry, (sysarg_t) dst);
     828int ipc_share_out_finalize(ipc_callid_t callid, void *dst)
     829{
     830        return ipc_answer_1(callid, EOK, (sysarg_t) dst);
    835831}
    836832
Note: See TracChangeset for help on using the changeset viewer.