Changeset d5c1051 in mainline for uspace/lib/c/include
- Timestamp:
- 2017-12-20T22:25:34Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39b54fe
- Parents:
- 8610c2c
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:22:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:25:34)
- Location:
- uspace/lib/c/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/async.h
r8610c2c rd5c1051 170 170 extern int async_irq_subscribe(int, async_notification_handler_t, void *, 171 171 const irq_code_t *, cap_handle_t *); 172 extern int async_irq_unsubscribe( int);172 extern int async_irq_unsubscribe(cap_handle_t); 173 173 174 174 extern int async_event_subscribe(event_type_t, async_notification_handler_t, -
uspace/lib/c/include/futex.h
r8610c2c rd5c1051 108 108 * @param futex Futex. 109 109 * 110 * @return Non-zeroif the futex was acquired.111 * @return Zeroif the futex was not acquired.110 * @return true if the futex was acquired. 111 * @return false if the futex was not acquired. 112 112 * 113 113 */ 114 static inline intfutex_trydown(futex_t *futex)114 static inline bool futex_trydown(futex_t *futex) 115 115 { 116 116 return cas(&futex->val, 1, 0); … … 129 129 { 130 130 if ((atomic_signed_t) atomic_predec(&futex->val) < 0) 131 return __SYSCALL1(SYS_FUTEX_SLEEP, (sysarg_t) &futex->val.count);131 return (int) __SYSCALL1(SYS_FUTEX_SLEEP, (sysarg_t) &futex->val.count); 132 132 133 133 return EOK; … … 146 146 { 147 147 if ((atomic_signed_t) atomic_postinc(&futex->val) < 0) 148 return __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->val.count);148 return (int) __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->val.count); 149 149 150 150 return EOK; -
uspace/lib/c/include/io/table.h
r8610c2c rd5c1051 40 40 #include <stddef.h> 41 41 #include <stdio.h> 42 #include <errno.h> 42 43 43 44 /** Table metrics */
Note:
See TracChangeset
for help on using the changeset viewer.
