Changes in kernel/generic/src/synch/futex.c [b7fd2a0:897fd8f1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/futex.c
rb7fd2a0 r897fd8f1 398 398 * waitq_sleep_timeout(). 399 399 */ 400 sys _errno_t sys_futex_sleep(uintptr_t uaddr)400 sysarg_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 _errno_t) ENOENT;405 return (sysarg_t) ENOENT; 406 406 407 407 #ifdef CONFIG_UDEBUG … … 409 409 #endif 410 410 411 errno_t rc = waitq_sleep_timeout(411 int rc = waitq_sleep_timeout( 412 412 &futex->wq, 0, SYNCH_FLAGS_INTERRUPTIBLE, NULL); 413 413 … … 416 416 #endif 417 417 418 return (sys _errno_t) rc;418 return (sysarg_t) rc; 419 419 } 420 420 … … 425 425 * @return ENOENT if there is no physical mapping for uaddr. 426 426 */ 427 sys _errno_t sys_futex_wakeup(uintptr_t uaddr)427 sysarg_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 _errno_t) ENOENT;435 return (sysarg_t) ENOENT; 436 436 } 437 437 }
Note:
See TracChangeset
for help on using the changeset viewer.