about summary refs log tree commit diff
path: root/compat/time32/sem_timedwait_time32.c
blob: c3469f9bc3c81328823d745fd59de72ffa79e993 (plain) (blame)
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}));
}