Changes in uspace/lib/c/generic/ipc.c [6aae539d:ab34cc9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ipc.c
r6aae539d rab34cc9 48 48 #include <fibril.h> 49 49 #include <macros.h> 50 #include "private/libc.h"51 50 52 51 /** … … 647 646 * 648 647 */ 649 int ipc_c lone_establish(int phoneid)648 int ipc_connect_me(int phoneid) 650 649 { 651 650 sysarg_t newphid; 652 int res = ipc_call_sync_0_5(phoneid, IPC_M_C LONE_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); 654 653 if (res) 655 654 return res; … … 761 760 * 762 761 * @param phoneid Phone that will be used to contact the receiving side. 762 * @param dst Destination address space area base. 763 763 * @param size Size of the destination address space area. 764 764 * @param arg User defined argument. 765 765 * @param flags Storage for received flags. Can be NULL. 766 * @param dst Destination address space area base. Cannot be NULL.767 766 * 768 767 * @return Zero on success or a negative error code from errno.h. 769 768 * 770 769 */ 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); 770 int 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); 778 776 779 777 if (flags) 780 *flags = (unsigned int) _flags; 781 782 *dst = (void *) _dst; 778 *flags = (unsigned int) tmp_flags; 779 783 780 return res; 784 781 } … … 786 783 /** Wrapper for answering the IPC_M_SHARE_IN calls. 787 784 * 788 * This wrapper only makes it more comfortable to answer IPC_M_ SHARE_IN785 * This wrapper only makes it more comfortable to answer IPC_M_DATA_READ 789 786 * calls so that the user doesn't have to remember the meaning of each 790 787 * IPC argument. … … 799 796 int ipc_share_in_finalize(ipc_callid_t callid, void *src, unsigned int flags) 800 797 { 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); 803 799 } 804 800 … … 830 826 * 831 827 */ 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);828 int ipc_share_out_finalize(ipc_callid_t callid, void *dst) 829 { 830 return ipc_answer_1(callid, EOK, (sysarg_t) dst); 835 831 } 836 832
Note:
See TracChangeset
for help on using the changeset viewer.