github.com/afumu/libc@v0.0.6/musl/compat/time32/sem_timedwait_time32.c (about)

     1  #include "time32.h"
     2  #include <time.h>
     3  #include <semaphore.h>
     4  
     5  int __sem_timedwait_time32(sem_t *sem, const struct timespec32 *restrict ts32)
     6  {
     7  	return sem_timedwait(sem, !ts32 ? 0 : (&(struct timespec){
     8  		.tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}));
     9  }