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

Mazen Adel Elmessady <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.