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

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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
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.