summaryrefslogtreecommitdiff
path: root/compat/time32/aio_suspend_time32.c
blob: d99cb651d8e95e1c87c8ba53e57c4017b01c6008 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "time32.h"
#include <time.h>
#include <aio.h>

int __aio_suspend_time32(const struct aiocb *const cbs[], int cnt, const struct timespec32 *ts32)
{
	return aio_suspend(cbs, cnt, ts32 ? (&(struct timespec){
		.tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}) : 0);
}