Changeset 897fd8f1 in mainline for uspace/lib/c/include/futex.h
- Timestamp:
- 2017-12-19T18:18:15Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 55b56f4
- Parents:
- 7f11dc6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/futex.h
r7f11dc6 r897fd8f1 37 37 38 38 #include <atomic.h> 39 #include <errno.h> 39 40 #include <libc.h> 40 41 … … 121 122 * 122 123 * @return ENOENT if there is no such virtual address. 123 * @return Zero in the uncontended case.124 * @return Otherwise one of ESYNCH_OK_ATOMIC or ESYNCH_OK_BLOCKED.124 * @return EOK on success. 125 * @return Error code from <errno.h> otherwise. 125 126 * 126 127 */ … … 130 131 return __SYSCALL1(SYS_FUTEX_SLEEP, (sysarg_t) &futex->val.count); 131 132 132 return 0;133 return EOK; 133 134 } 134 135 … … 138 139 * 139 140 * @return ENOENT if there is no such virtual address. 140 * @return Zero in the uncontended case. 141 * @return EOK on success. 142 * @return Error code from <errno.h> otherwise. 141 143 * 142 144 */ … … 146 148 return __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->val.count); 147 149 148 return 0;150 return EOK; 149 151 } 150 152
Note:
See TracChangeset
for help on using the changeset viewer.