Changes in uspace/lib/c/generic/ipc.c [cde999a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ipc.c
rcde999a rb7fd2a0 93 93 * @param call Structure returned by ipc_prepare_async(). 94 94 */ 95 static inline void ipc_finish_async( int rc, async_call_t *call)95 static inline void ipc_finish_async(errno_t rc, async_call_t *call) 96 96 { 97 97 if (!call) { … … 136 136 return; 137 137 138 int rc = (int) __SYSCALL6(SYS_IPC_CALL_ASYNC_FAST, phandle, imethod, arg1,138 errno_t rc = (errno_t) __SYSCALL6(SYS_IPC_CALL_ASYNC_FAST, phandle, imethod, arg1, 139 139 arg2, arg3, (sysarg_t) call); 140 140 … … 175 175 IPC_SET_ARG5(call->msg.data, arg5); 176 176 177 int rc = (int) __SYSCALL3(SYS_IPC_CALL_ASYNC_SLOW, phandle,177 errno_t rc = (errno_t) __SYSCALL3(SYS_IPC_CALL_ASYNC_SLOW, phandle, 178 178 (sysarg_t) &call->msg.data, (sysarg_t) call); 179 179 … … 197 197 * 198 198 */ 199 int ipc_answer_fast(cap_handle_t chandle, int retval, sysarg_t arg1,199 errno_t ipc_answer_fast(cap_handle_t chandle, errno_t retval, sysarg_t arg1, 200 200 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4) 201 201 { 202 return ( int) __SYSCALL6(SYS_IPC_ANSWER_FAST, chandle, (sysarg_t) retval, arg1, arg2,202 return (errno_t) __SYSCALL6(SYS_IPC_ANSWER_FAST, chandle, (sysarg_t) retval, arg1, arg2, 203 203 arg3, arg4); 204 204 } … … 218 218 * 219 219 */ 220 int ipc_answer_slow(cap_handle_t chandle, int retval, sysarg_t arg1,220 errno_t ipc_answer_slow(cap_handle_t chandle, errno_t retval, sysarg_t arg1, 221 221 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5) 222 222 { … … 230 230 IPC_SET_ARG5(data, arg5); 231 231 232 return ( int) __SYSCALL2(SYS_IPC_ANSWER_SLOW, chandle, (sysarg_t) &data);232 return (errno_t) __SYSCALL2(SYS_IPC_ANSWER_SLOW, chandle, (sysarg_t) &data); 233 233 } 234 234 … … 258 258 * @return Error code. 259 259 */ 260 int ipc_wait_cycle(ipc_call_t *call, sysarg_t usec, unsigned int flags)261 { 262 int rc = (int) __SYSCALL3(SYS_IPC_WAIT, (sysarg_t) call, usec, flags);260 errno_t ipc_wait_cycle(ipc_call_t *call, sysarg_t usec, unsigned int flags) 261 { 262 errno_t rc = (errno_t) __SYSCALL3(SYS_IPC_WAIT, (sysarg_t) call, usec, flags); 263 263 264 264 /* Handle received answers */ … … 289 289 * 290 290 */ 291 int ipc_wait_for_call_timeout(ipc_call_t *call, sysarg_t usec)292 { 293 int rc;291 errno_t ipc_wait_for_call_timeout(ipc_call_t *call, sysarg_t usec) 292 { 293 errno_t rc; 294 294 295 295 do { … … 309 309 * 310 310 */ 311 int ipc_trywait_for_call(ipc_call_t *call)312 { 313 int rc;311 errno_t ipc_trywait_for_call(ipc_call_t *call) 312 { 313 errno_t rc; 314 314 315 315 do { … … 328 328 * 329 329 */ 330 int ipc_hangup(cap_handle_t phandle)331 { 332 return ( int) __SYSCALL1(SYS_IPC_HANGUP, phandle);330 errno_t ipc_hangup(cap_handle_t phandle) 331 { 332 return (errno_t) __SYSCALL1(SYS_IPC_HANGUP, phandle); 333 333 } 334 334 … … 350 350 * 351 351 */ 352 int ipc_forward_fast(cap_handle_t chandle, cap_handle_t phandle,352 errno_t ipc_forward_fast(cap_handle_t chandle, cap_handle_t phandle, 353 353 sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, unsigned int mode) 354 354 { 355 return ( int) __SYSCALL6(SYS_IPC_FORWARD_FAST, chandle, phandle, imethod, arg1,355 return (errno_t) __SYSCALL6(SYS_IPC_FORWARD_FAST, chandle, phandle, imethod, arg1, 356 356 arg2, mode); 357 357 } 358 358 359 int ipc_forward_slow(cap_handle_t chandle, cap_handle_t phandle,359 errno_t ipc_forward_slow(cap_handle_t chandle, cap_handle_t phandle, 360 360 sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, 361 361 sysarg_t arg4, sysarg_t arg5, unsigned int mode) … … 370 370 IPC_SET_ARG5(data, arg5); 371 371 372 return ( int) __SYSCALL4(SYS_IPC_FORWARD_SLOW, chandle, phandle,372 return (errno_t) __SYSCALL4(SYS_IPC_FORWARD_SLOW, chandle, phandle, 373 373 (sysarg_t) &data, mode); 374 374 } … … 377 377 * 378 378 */ 379 int ipc_connect_kbox(task_id_t id, cap_handle_t *phone)380 { 381 return ( int) __SYSCALL2(SYS_IPC_CONNECT_KBOX, (sysarg_t) &id, (sysarg_t) phone);379 errno_t ipc_connect_kbox(task_id_t id, cap_handle_t *phone) 380 { 381 return (errno_t) __SYSCALL2(SYS_IPC_CONNECT_KBOX, (sysarg_t) &id, (sysarg_t) phone); 382 382 } 383 383
Note:
See TracChangeset
for help on using the changeset viewer.