[newlib-cygwin/main] libc: Added the prototype for sem_clockwait()
Corinna Vinschen
corinna@sourceware.org
Tue Jun 24 08:20:52 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=5e5a35cdfa2db96cb4a2625afc25a06c69d08e89
commit 5e5a35cdfa2db96cb4a2625afc25a06c69d08e89
Author: Mazen Adel Elmessady <mez3n1151@gmail.com>
AuthorDate: Mon Jun 23 18:24:02 2025 +0300
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Tue Jun 24 10:13:57 2025 +0200
libc: Added the prototype for sem_clockwait()
Added the prototype for sem_clockwait() to
newlib/libc/sys/rtems/include/semaphore.h
Diff:
---
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 939135fb3c16..6d756d522390 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_ */
More information about the Newlib-cvs
mailing list