Changeset 36d852c in mainline for uspace/lib/libc/generic/ipc.c
- Timestamp:
- 2007-12-23T19:45:30Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 654b7db
- Parents:
- 5c786d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/ipc.c
r5c786d1 r36d852c 667 667 } 668 668 669 /** Wrapper for making IPC_M_DATA_ SENDcalls.669 /** Wrapper for making IPC_M_DATA_WRITE calls. 670 670 * 671 671 * @param phoneid Phone that will be used to contact the receiving side. … … 675 675 * @return Zero on success or a negative error code from errno.h. 676 676 */ 677 int ipc_data_ send(int phoneid, void *src, size_t size)678 { 679 return ipc_call_sync_3_0(phoneid, IPC_M_DATA_ SEND, 0, (ipcarg_t) src,677 int ipc_data_write_send(int phoneid, void *src, size_t size) 678 { 679 return ipc_call_sync_3_0(phoneid, IPC_M_DATA_WRITE, 0, (ipcarg_t) src, 680 680 (ipcarg_t) size); 681 681 } 682 682 683 /** Wrapper for receiving the IPC_M_DATA_ SENDcalls.684 * 685 * This wrapper only makes it more comfortable to receive IPC_M_DATA_ SENDcalls683 /** Wrapper for receiving the IPC_M_DATA_WRITE calls. 684 * 685 * This wrapper only makes it more comfortable to receive IPC_M_DATA_WRITE calls 686 686 * so that the user doesn't have to remember the meaning of each IPC argument. 687 687 * 688 688 * So far, this wrapper is to be used from within a connection fibril. 689 689 * 690 * @param callid Storage where the hash of the IPC_M_DATA_ SENDcall will690 * @param callid Storage where the hash of the IPC_M_DATA_WRITE call will 691 691 * be stored. 692 692 * @param dst Storage where the suggested destination address will … … 697 697 * @return Non-zero on success, zero on failure. 698 698 */ 699 int ipc_data_ receive(ipc_callid_t *callid, void **dst, size_t *size)699 int ipc_data_write_receive(ipc_callid_t *callid, void **dst, size_t *size) 700 700 { 701 701 ipc_call_t data; … … 704 704 705 705 *callid = async_get_call(&data); 706 if (IPC_GET_METHOD(data) != IPC_M_DATA_ SEND)706 if (IPC_GET_METHOD(data) != IPC_M_DATA_WRITE) 707 707 return 0; 708 708 if (dst) … … 713 713 } 714 714 715 /** Wrapper for answering the IPC_M_DATA_ SENDcalls.716 * 717 * This wrapper only makes it more comfortable to answer IPC_M_DATA_ SENDcalls715 /** Wrapper for answering the IPC_M_DATA_WRITE calls. 716 * 717 * This wrapper only makes it more comfortable to answer IPC_M_DATA_WRITE calls 718 718 * so that the user doesn't have to remember the meaning of each IPC argument. 719 719 * 720 * @param callid Hash of the IPC_M_DATA_ SENDcall to answer.721 * @param dst Final destination address for the IPC_M_DATA_ SENDcall.722 * @param size Final size for the IPC_M_DATA_ SENDcall.720 * @param callid Hash of the IPC_M_DATA_WRITE call to answer. 721 * @param dst Final destination address for the IPC_M_DATA_WRITE call. 722 * @param size Final size for the IPC_M_DATA_WRITE call. 723 723 * 724 724 * @return Zero on success or a value from @ref errno.h on failure. 725 725 */ 726 ipcarg_t ipc_data_ deliver(ipc_callid_t callid, void *dst, size_t size)726 ipcarg_t ipc_data_write_deliver(ipc_callid_t callid, void *dst, size_t size) 727 727 { 728 728 return ipc_answer_3(callid, EOK, (ipcarg_t) dst, 0, (ipcarg_t) size);
Note:
See TracChangeset
for help on using the changeset viewer.