Changeset d7e245a in mainline


Ignore:
Timestamp:
2017-11-26T20:13:07Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7b8f933
Parents:
474c68b
Message:

Use ordinary errors instead of IPC_CALLRET_FATAL

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • abi/include/abi/ipc/ipc.h

    r474c68b rd7e245a  
    8080#define IPC_CALLID_NOTIFICATION  2
    8181
    82 /* Return values from sys_ipc_call_async(). */
    83 #define IPC_CALLRET_FATAL      -1
    84 
    8582/* Macros for manipulating calling data */
    8683#define IPC_SET_RETVAL(data, retval)  ((data).args[0] = (retval))
  • kernel/generic/src/ipc/sysipc.c

    r474c68b rd7e245a  
    358358 * @param label    User-defined label.
    359359 *
    360  * @return Call hash on success.
    361  * @return IPC_CALLRET_FATAL in case of a fatal error.
     360 * @return EOK on success.
     361 * @return Negative error code on error.
    362362 *
    363363 */
     
    367367        kobject_t *kobj = kobject_get(TASK, handle, KOBJECT_TYPE_PHONE);
    368368        if (!kobj)
    369                 return IPC_CALLRET_FATAL;
     369                return ENOENT;
    370370       
    371371        if (check_call_limit(kobj->phone)) {
    372372                kobject_put(kobj);
    373                 return IPC_CALLRET_FATAL;
     373                return ELIMIT;
    374374        }
    375375       
     
    414414        kobject_t *kobj = kobject_get(TASK, handle, KOBJECT_TYPE_PHONE);
    415415        if (!kobj)
    416                 return IPC_CALLRET_FATAL;
     416                return ENOENT;
    417417
    418418        if (check_call_limit(kobj->phone)) {
    419419                kobject_put(kobj);
    420                 return IPC_CALLRET_FATAL;
     420                return ELIMIT;
    421421        }
    422422
  • uspace/app/trace/trace.c

    r474c68b rd7e245a  
    284284        sysarg_t phoneid;
    285285       
    286         if (sc_rc == (sysarg_t) IPC_CALLRET_FATAL)
     286        if (sc_rc == (sysarg_t) EOK)
    287287                return;
    288288
     
    304304        int rc;
    305305
    306         if (sc_rc == (sysarg_t) IPC_CALLRET_FATAL)
     306        if (sc_rc == (sysarg_t) EOK)
    307307                return;
    308308
  • uspace/lib/c/generic/ipc.c

    r474c68b rd7e245a  
    100100        }
    101101       
    102         if (rc == IPC_CALLRET_FATAL) {
     102        if (rc != EOK) {
    103103                /* Call asynchronous handler with error code */
    104104                if (call->callback)
Note: See TracChangeset for help on using the changeset viewer.