[PATCH v5 3/5] libc: Added the prototype for sem_clockwait()

Mazen Adel Elmessady mez3n1151@gmail.com
Mon Jun 23 15:24:02 GMT 2025


Added the prototype for sem_clockwait() to
newlib/libc/sys/rtems/include/semaphore.h
---
 newlib/libc/sys/rtems/include/semaphore.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/newlib/libc/sys/rtems/include/semaphore.h b/newlib/libc/sys/rtems/include/semaphore.h
index 939135fb3..6d756d522 100644
--- a/newlib/libc/sys/rtems/include/semaphore.h
+++ b/newlib/libc/sys/rtems/include/semaphore.h
@@ -55,6 +55,12 @@ int	 sem_timedwait(sem_t * __restrict, const struct timespec * __restrict);
 int	 sem_trywait(sem_t *);
 int	 sem_unlink(const char *);
 int	 sem_wait(sem_t *);
+
+#if (__GNU_VISIBLE || __POSIX_VISIBLE >= 202405)
+int sem_clockwait(sem_t * __restrict, __clockid_t,
+       const struct timespec * __restrict);
+#endif /* __GNU_VISIBLE || __POSIX_VISIBLE >= 202405 */
+
 __END_DECLS
 
 #endif /* !_SEMAPHORE_H_ */
-- 
2.48.1



More information about the Newlib mailing list