Changeset 5a6cc679 in mainline for uspace/lib/c/include/futex.h


Ignore:
Timestamp:
2018-01-31T02:21:24Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/futex.h

    r132ab5d1 r5a6cc679  
    126126 *
    127127 */
    128 static inline int futex_down(futex_t *futex)
     128static inline errno_t futex_down(futex_t *futex)
    129129{
    130130        if ((atomic_signed_t) atomic_predec(&futex->val) < 0)
    131                 return (int) __SYSCALL1(SYS_FUTEX_SLEEP, (sysarg_t) &futex->val.count);
     131                return (errno_t) __SYSCALL1(SYS_FUTEX_SLEEP, (sysarg_t) &futex->val.count);
    132132       
    133133        return EOK;
     
    143143 *
    144144 */
    145 static inline int futex_up(futex_t *futex)
     145static inline errno_t futex_up(futex_t *futex)
    146146{
    147147        if ((atomic_signed_t) atomic_postinc(&futex->val) < 0)
    148                 return (int) __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->val.count);
     148                return (errno_t) __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->val.count);
    149149       
    150150        return EOK;
Note: See TracChangeset for help on using the changeset viewer.