1570af302Sopenharmony_ci#include <aio.h> 2570af302Sopenharmony_ci#define T(t) (t*)0; 3570af302Sopenharmony_ci#define F(t,n) {t *y = &x.n;} 4570af302Sopenharmony_ci#define C(n) switch(n){case n:;} 5570af302Sopenharmony_cistatic void f() 6570af302Sopenharmony_ci{ 7570af302Sopenharmony_ciT(off_t) 8570af302Sopenharmony_ciT(pthread_attr_t) 9570af302Sopenharmony_ciT(size_t) 10570af302Sopenharmony_ciT(ssize_t) 11570af302Sopenharmony_ciT(struct timespec) 12570af302Sopenharmony_ci 13570af302Sopenharmony_ci{ 14570af302Sopenharmony_cistruct aiocb x; 15570af302Sopenharmony_ciF(int, aio_fildes) 16570af302Sopenharmony_ciF(off_t, aio_offset) 17570af302Sopenharmony_ciF(volatile void *, aio_buf) 18570af302Sopenharmony_ciF(size_t, aio_nbytes) 19570af302Sopenharmony_ciF(int, aio_reqprio) 20570af302Sopenharmony_ciF(struct sigevent, aio_sigevent) 21570af302Sopenharmony_ciF(int, aio_lio_opcode) 22570af302Sopenharmony_ci} 23570af302Sopenharmony_ci 24570af302Sopenharmony_ciC(AIO_ALLDONE) 25570af302Sopenharmony_ciC(AIO_CANCELED) 26570af302Sopenharmony_ciC(AIO_NOTCANCELED) 27570af302Sopenharmony_ciC(LIO_NOP) 28570af302Sopenharmony_ciC(LIO_NOWAIT) 29570af302Sopenharmony_ciC(LIO_READ) 30570af302Sopenharmony_ciC(LIO_WAIT) 31570af302Sopenharmony_ciC(LIO_WRITE) 32570af302Sopenharmony_ci 33570af302Sopenharmony_ci{int(*p)(int,struct aiocb*) = aio_cancel;} 34570af302Sopenharmony_ci{int(*p)(const struct aiocb*) = aio_error;} 35570af302Sopenharmony_ci{int(*p)(int,struct aiocb*) = aio_fsync;} 36570af302Sopenharmony_ci{int(*p)(struct aiocb*) = aio_read;} 37570af302Sopenharmony_ci{ssize_t(*p)(struct aiocb*) = aio_return;} 38570af302Sopenharmony_ci{int(*p)(const struct aiocb*const[],int,const struct timespec*) = aio_suspend;} 39570af302Sopenharmony_ci{int(*p)(struct aiocb*) = aio_write;} 40570af302Sopenharmony_ci{int(*p)(int,struct aiocb*restrict const[restrict],int,struct sigevent*restrict) = lio_listio;} 41570af302Sopenharmony_ci} 42