Changeset 3115355 in mainline for uspace/lib/libc/generic/ipc.c
- Timestamp:
- 2007-12-31T10:14:38Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 27d293a
- Parents:
- badbd888
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/ipc.c
rbadbd888 r3115355 736 736 int ipc_data_write_send(int phoneid, void *src, size_t size) 737 737 { 738 return ipc_call_sync_ 3_0(phoneid, IPC_M_DATA_WRITE, 0, (ipcarg_t) src,738 return ipc_call_sync_2_0(phoneid, IPC_M_DATA_WRITE, (ipcarg_t) src, 739 739 (ipcarg_t) size); 740 740 } … … 749 749 * @param callid Storage where the hash of the IPC_M_DATA_WRITE call will 750 750 * be stored. 751 * @param dst Storage where the suggested destination address will752 * be stored. May be NULL.753 751 * @param size Storage where the suggested size will be stored. May be 754 752 * NULL … … 756 754 * @return Non-zero on success, zero on failure. 757 755 */ 758 int ipc_data_write_receive(ipc_callid_t *callid, void **dst,size_t *size)756 int ipc_data_write_receive(ipc_callid_t *callid, size_t *size) 759 757 { 760 758 ipc_call_t data; … … 765 763 if (IPC_GET_METHOD(data) != IPC_M_DATA_WRITE) 766 764 return 0; 767 if (dst)768 *dst = (void *) IPC_GET_ARG1(data);769 765 if (size) 770 *size = (size_t) IPC_GET_ARG 3(data);766 *size = (size_t) IPC_GET_ARG2(data); 771 767 return 1; 772 768 } … … 785 781 int ipc_data_write_deliver(ipc_callid_t callid, void *dst, size_t size) 786 782 { 787 return ipc_answer_ 3(callid, EOK, (ipcarg_t) dst, 0, (ipcarg_t) size);783 return ipc_answer_2(callid, EOK, (ipcarg_t) dst, (ipcarg_t) size); 788 784 } 789 785
Note:
See TracChangeset
for help on using the changeset viewer.