about summary refs log tree commit diff
path: root/compat/time32/ppoll_time32.c
blob: 43b4b0df6f8e99cf3301e229aa65777878056055 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "time32.h"
#define _GNU_SOURCE
#include <time.h>
#include <poll.h>

int __ppoll_time32(struct pollfd *fds, nfds_t n, const struct timespec32 *ts32, const sigset_t *mask)
{
	return ppoll(fds, n, !ts32 ? 0 : (&(struct timespec){
		.tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}), mask);
}