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