[v2] Update: _Semaphore_Wait_timed to include clock selection
Commit Message
Updated _Semaphore_Wait_timed (which is currently unused in RTEMS)
to _Semaphore_Wait_timed_clock which
to be used in RTEMS sempahore API.
This will ease the support of the new clock
functions added in Posix Issue 8.
V2: Kept _Semaphore_Wait_timed while adding
_Semaphore_Wait_timed_clock
---
newlib/libc/sys/rtems/include/sys/lock.h | 4 ++++
1 file changed, 4 insertions(+)
@@ -27,6 +27,7 @@
#define _SYS_LOCK_H_
#include <sys/cdefs.h>
+#include <sys/_timespec.h>
#include <stddef.h>
__BEGIN_DECLS
@@ -298,6 +299,9 @@ void _Semaphore_Wait(struct _Semaphore_Control *);
int _Semaphore_Wait_timed(struct _Semaphore_Control *,
const struct timespec *);
+int _Semaphore_Wait_timed_clock(struct _Semaphore_Control *,
+ const struct timespec *, __clockid_t);
+
int _Semaphore_Wait_timed_ticks(struct _Semaphore_Control *, __uint32_t);
int _Semaphore_Try_wait(struct _Semaphore_Control *);