Changeset b7fd2a0 in mainline for kernel/generic/src/synch/futex.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/futex.c
r36f0738 rb7fd2a0 398 398 * waitq_sleep_timeout(). 399 399 */ 400 sys arg_t sys_futex_sleep(uintptr_t uaddr)400 sys_errno_t sys_futex_sleep(uintptr_t uaddr) 401 401 { 402 402 futex_t *futex = get_futex(uaddr); 403 403 404 404 if (!futex) 405 return (sys arg_t) ENOENT;405 return (sys_errno_t) ENOENT; 406 406 407 407 #ifdef CONFIG_UDEBUG … … 409 409 #endif 410 410 411 int rc = waitq_sleep_timeout(411 errno_t rc = waitq_sleep_timeout( 412 412 &futex->wq, 0, SYNCH_FLAGS_INTERRUPTIBLE, NULL); 413 413 … … 416 416 #endif 417 417 418 return (sys arg_t) rc;418 return (sys_errno_t) rc; 419 419 } 420 420 … … 425 425 * @return ENOENT if there is no physical mapping for uaddr. 426 426 */ 427 sys arg_t sys_futex_wakeup(uintptr_t uaddr)427 sys_errno_t sys_futex_wakeup(uintptr_t uaddr) 428 428 { 429 429 futex_t *futex = get_futex(uaddr); … … 433 433 return EOK; 434 434 } else { 435 return (sys arg_t) ENOENT;435 return (sys_errno_t) ENOENT; 436 436 } 437 437 }
Note:
See TracChangeset
for help on using the changeset viewer.