Changeset 132ab5d1 in mainline for uspace/lib/c/generic/event.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/event.c

    r8bfb163 r132ab5d1  
    4545 * @param imethod Use this interface and method for notifying me.
    4646 *
    47  * @return Value returned by the kernel.
     47 * @return Error code returned by the kernel.
    4848 *
    4949 */
    5050int ipc_event_subscribe(event_type_t evno, sysarg_t imethod)
    5151{
    52         return __SYSCALL2(SYS_IPC_EVENT_SUBSCRIBE, (sysarg_t) evno,
     52        return (int) __SYSCALL2(SYS_IPC_EVENT_SUBSCRIBE, (sysarg_t) evno,
    5353            (sysarg_t) imethod);
    5454}
     
    5959 * @param imethod Use this interface and method for notifying me.
    6060 *
    61  * @return Value returned by the kernel.
     61 * @return Error code returned by the kernel.
    6262 *
    6363 */
    6464int ipc_event_task_subscribe(event_task_type_t evno, sysarg_t imethod)
    6565{
    66         return __SYSCALL2(SYS_IPC_EVENT_SUBSCRIBE, (sysarg_t) evno,
     66        return (int) __SYSCALL2(SYS_IPC_EVENT_SUBSCRIBE, (sysarg_t) evno,
    6767            (sysarg_t) imethod);
    6868}
     
    7272 * @param evno    Event type to unsubscribe.
    7373 *
    74  * @return Value returned by the kernel.
     74 * @return Error code returned by the kernel.
    7575 *
    7676 */
    7777int ipc_event_unsubscribe(event_type_t evno)
    7878{
    79         return __SYSCALL1(SYS_IPC_EVENT_UNSUBSCRIBE, (sysarg_t) evno);
     79        return (int) __SYSCALL1(SYS_IPC_EVENT_UNSUBSCRIBE, (sysarg_t) evno);
    8080}
    8181
     
    8484 * @param evno    Event type to unsubscribe.
    8585 *
    86  * @return Value returned by the kernel.
     86 * @return Error code returned by the kernel.
    8787 *
    8888 */
    8989int ipc_event_task_unsubscribe(event_task_type_t evno)
    9090{
    91         return __SYSCALL1(SYS_IPC_EVENT_UNSUBSCRIBE, (sysarg_t) evno);
     91        return (int) __SYSCALL1(SYS_IPC_EVENT_UNSUBSCRIBE, (sysarg_t) evno);
    9292}
    9393
     
    9696 * @param evno Event type to unmask.
    9797 *
    98  * @return Value returned by the kernel.
     98 * @return Error code returned by the kernel.
    9999 *
    100100 */
    101101int ipc_event_unmask(event_type_t evno)
    102102{
    103         return __SYSCALL1(SYS_IPC_EVENT_UNMASK, (sysarg_t) evno);
     103        return (int) __SYSCALL1(SYS_IPC_EVENT_UNMASK, (sysarg_t) evno);
    104104}
    105105
     
    108108 * @param evno Event type to unmask.
    109109 *
    110  * @return Value returned by the kernel.
     110 * @return Error code returned by the kernel.
    111111 *
    112112 */
    113113int ipc_event_task_unmask(event_task_type_t evno)
    114114{
    115         return __SYSCALL1(SYS_IPC_EVENT_UNMASK, (sysarg_t) evno);
     115        return (int) __SYSCALL1(SYS_IPC_EVENT_UNMASK, (sysarg_t) evno);
    116116}
    117117
Note: See TracChangeset for help on using the changeset viewer.