summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/compat/time32/aio_suspend_time32.c
blob: ed5119bd7df791da94e6230395cfd459ce4a5eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#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);
}

weak_alias(aio_suspend, aio_suspend64);