[PATCH v2 3/5] libc: Added the prototype for sem_clockwait()
Corinna Vinschen
vinschen@redhat.com
Mon Jun 23 14:03:16 GMT 2025
On Jun 23 16:40, Mazen Adel Elmessady wrote:
> 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..7b43de845 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 __POSIX_VISIBLE >= 202405
This one should also check for __GNU_VISIBLE, as well as the following
patch in terms of ppoll.
Thanks,
Corinna
> +int sem_clockwait(sem_t * __restrict, __clockid_t,
> + const struct timespec * __restrict);
> +#endif /* __POSIX_VISIBLE >= 202405 */
> +
> __END_DECLS
>
> #endif /* !_SEMAPHORE_H_ */
> --
> 2.48.1
More information about the Newlib
mailing list