|
nsz |
e19254 |
#include <aio.h>
|
|
nsz |
e19254 |
#define T(t) (t*)0;
|
|
nsz |
e19254 |
#define F(t,n) {t *y = &x.;;}
|
|
nsz |
e19254 |
#define C(n) switch(n){case n:;}
|
|
nsz |
e19254 |
static void f()
|
|
nsz |
e19254 |
{
|
|
nsz |
e19254 |
T(off_t)
|
|
nsz |
e19254 |
T(pthread_attr_t)
|
|
nsz |
e19254 |
T(size_t)
|
|
nsz |
e19254 |
T(ssize_t)
|
|
nsz |
e19254 |
T(struct timespec)
|
|
nsz |
e19254 |
|
|
nsz |
e19254 |
{
|
|
nsz |
e19254 |
struct aiocb x;
|
|
nsz |
e19254 |
F(int, aio_fildes)
|
|
nsz |
e19254 |
F(off_t, aio_offset)
|
|
nsz |
e19254 |
F(volatile void *, aio_buf)
|
|
nsz |
e19254 |
F(size_t, aio_nbytes)
|
|
nsz |
e19254 |
F(int, aio_reqprio)
|
|
nsz |
e19254 |
F(struct sigevent, aio_sigevent)
|
|
nsz |
e19254 |
F(int, aio_lio_opcode)
|
|
nsz |
e19254 |
}
|
|
nsz |
e19254 |
|
|
nsz |
e19254 |
C(AIO_ALLDONE)
|
|
nsz |
e19254 |
C(AIO_CANCELED)
|
|
nsz |
e19254 |
C(AIO_NOTCANCELED)
|
|
nsz |
e19254 |
C(LIO_NOP)
|
|
nsz |
e19254 |
C(LIO_NOWAIT)
|
|
nsz |
e19254 |
C(LIO_READ)
|
|
nsz |
e19254 |
C(LIO_WAIT)
|
|
nsz |
e19254 |
C(LIO_WRITE)
|
|
nsz |
e19254 |
|
|
nsz |
0ef264 |
{int(*p)(int,struct aiocb*) = aio_cancel;}
|
|
nsz |
0ef264 |
{int(*p)(const struct aiocb*) = aio_error;}
|
|
nsz |
0ef264 |
{int(*p)(int,struct aiocb*) = aio_fsync;}
|
|
nsz |
0ef264 |
{int(*p)(struct aiocb*) = aio_read;}
|
|
nsz |
0ef264 |
{ssize_t(*p)(struct aiocb*) = aio_return;}
|
|
nsz |
0ef264 |
{int(*p)(const struct aiocb*const[],int,const struct timespec*) = aio_suspend;}
|
|
nsz |
0ef264 |
{int(*p)(struct aiocb*) = aio_write;}
|
|
nsz |
0ef264 |
{int(*p)(int,struct aiocb*restrict const[restrict],int,struct sigevent*restrict) = lio_listio;}
|
|
nsz |
e19254 |
}
|