Changeset b61d47d in mainline for uspace/lib/libc
- Timestamp:
- 2007-12-02T20:00:14Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 90c35436
- Parents:
- 8df2eab
- Location:
- uspace/lib/libc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/async.c
r8df2eab rb61d47d 539 539 case IPC_M_CONNECT_ME_TO: 540 540 /* Open new connection with fibril etc. */ 541 async_new_connection(IPC_GET_ARG 3(*call), callid, call,541 async_new_connection(IPC_GET_ARG5(*call), callid, call, 542 542 client_connection); 543 543 return; -
uspace/lib/libc/generic/io/stream.c
r8df2eab rb61d47d 97 97 if (console_phone < 0) { 98 98 while ((console_phone = ipc_connect_me_to(PHONE_NS, 99 SERVICE_CONSOLE, 0 )) < 0) {99 SERVICE_CONSOLE, 0, 0)) < 0) { 100 100 usleep(10000); 101 101 } … … 116 116 if (console_phone < 0) { 117 117 while ((console_phone = ipc_connect_me_to(PHONE_NS, 118 SERVICE_CONSOLE, 0 )) < 0) {118 SERVICE_CONSOLE, 0, 0)) < 0) { 119 119 usleep(10000); 120 120 } -
uspace/lib/libc/generic/ipc.c
r8df2eab rb61d47d 588 588 * @param arg1 User defined argument. 589 589 * @param arg2 User defined argument. 590 * @param arg3 User defined argument. 590 591 * 591 592 * @return New phone handle on success or a negative error code. 592 593 */ 593 int ipc_connect_me_to(int phoneid, int arg1, int arg2 )594 int ipc_connect_me_to(int phoneid, int arg1, int arg2, int arg3) 594 595 { 595 596 ipcarg_t newphid; 596 597 int res; 597 598 598 res = ipc_call_sync_ 2_3(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, NULL,599 599 res = ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, arg3, 600 NULL, NULL, NULL, NULL, &newphid); 600 601 if (res) 601 602 return res; … … 647 648 * @param method New method for the forwarded call. 648 649 * @param arg1 New value of the first argument for the forwarded call. 650 * @param arg2 New value of the second argument for the forwarded call. 649 651 * @param mode Flags specifying mode of the forward operation. 650 652 * … … 652 654 * 653 655 * For non-system methods, the old method and arg1 are rewritten by the new 654 * values. For system methods, the new method and arg1 are written to the old655 * arg1 and arg2, respectivelly. Calls with immutable methods are forwarded656 * verbatim.656 * values. For system methods, the new method, arg1 and arg2 are written 657 * to the old arg1, arg2 and arg3, respectivelly. Calls with immutable 658 * methods are forwarded verbatim. 657 659 */ 658 660 int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, 659 ipcarg_t arg1, i nt mode)660 { 661 return __SYSCALL 5(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1,662 661 ipcarg_t arg1, ipcarg_t arg2, int mode) 662 { 663 return __SYSCALL6(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1, 664 arg2, mode); 663 665 } 664 666 -
uspace/lib/libc/include/ipc/ipc.h
r8df2eab rb61d47d 254 254 255 255 extern int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phone); 256 extern int ipc_connect_me_to(int phoneid, int arg1, int arg2 );256 extern int ipc_connect_me_to(int phoneid, int arg1, int arg2, int arg3); 257 257 extern int ipc_hangup(int phoneid); 258 258 extern int ipc_register_irq(int inr, int devno, int method, irq_code_t *code); 259 259 extern int ipc_unregister_irq(int inr, int devno); 260 260 extern int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, 261 ipcarg_t arg1, i nt mode);261 ipcarg_t arg1, ipcarg_t arg2, int mode); 262 262 extern int ipc_data_send(int phoneid, void *src, size_t size); 263 263 extern int ipc_data_receive(ipc_callid_t *callid, void **dst, size_t *size);
Note:
See TracChangeset
for help on using the changeset viewer.