Changeset d7e245a in mainline
- Timestamp:
- 2017-11-26T20:13:07Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7b8f933
- Parents:
- 474c68b
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/ipc/ipc.h
r474c68b rd7e245a 80 80 #define IPC_CALLID_NOTIFICATION 2 81 81 82 /* Return values from sys_ipc_call_async(). */83 #define IPC_CALLRET_FATAL -184 85 82 /* Macros for manipulating calling data */ 86 83 #define IPC_SET_RETVAL(data, retval) ((data).args[0] = (retval)) -
kernel/generic/src/ipc/sysipc.c
r474c68b rd7e245a 358 358 * @param label User-defined label. 359 359 * 360 * @return Call hashon success.361 * @return IPC_CALLRET_FATAL in case of a fatalerror.360 * @return EOK on success. 361 * @return Negative error code on error. 362 362 * 363 363 */ … … 367 367 kobject_t *kobj = kobject_get(TASK, handle, KOBJECT_TYPE_PHONE); 368 368 if (!kobj) 369 return IPC_CALLRET_FATAL;369 return ENOENT; 370 370 371 371 if (check_call_limit(kobj->phone)) { 372 372 kobject_put(kobj); 373 return IPC_CALLRET_FATAL;373 return ELIMIT; 374 374 } 375 375 … … 414 414 kobject_t *kobj = kobject_get(TASK, handle, KOBJECT_TYPE_PHONE); 415 415 if (!kobj) 416 return IPC_CALLRET_FATAL;416 return ENOENT; 417 417 418 418 if (check_call_limit(kobj->phone)) { 419 419 kobject_put(kobj); 420 return IPC_CALLRET_FATAL;420 return ELIMIT; 421 421 } 422 422 -
uspace/app/trace/trace.c
r474c68b rd7e245a 284 284 sysarg_t phoneid; 285 285 286 if (sc_rc == (sysarg_t) IPC_CALLRET_FATAL)286 if (sc_rc == (sysarg_t) EOK) 287 287 return; 288 288 … … 304 304 int rc; 305 305 306 if (sc_rc == (sysarg_t) IPC_CALLRET_FATAL)306 if (sc_rc == (sysarg_t) EOK) 307 307 return; 308 308 -
uspace/lib/c/generic/ipc.c
r474c68b rd7e245a 100 100 } 101 101 102 if (rc == IPC_CALLRET_FATAL) {102 if (rc != EOK) { 103 103 /* Call asynchronous handler with error code */ 104 104 if (call->callback)
Note:
See TracChangeset
for help on using the changeset viewer.