|
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 |
e19254 |
int(*p_aio_cancel)(int,struct aiocb*) = aio_cancel;
|
|
nsz |
e19254 |
int(*p_aio_error)(const struct aiocb*) = aio_error;
|
|
nsz |
e19254 |
int(*p_aio_fsync)(int,struct aiocb*) = aio_fsync;
|
|
nsz |
e19254 |
int(*p_aio_read)(struct aiocb*) = aio_read;
|
|
nsz |
e19254 |
ssize_t(*p_aio_return)(struct aiocb*) = aio_return;
|
|
nsz |
e19254 |
int(*p_aio_suspend)(const struct aiocb*const[],int,const struct timespec*) = aio_suspend;
|
|
nsz |
e19254 |
int(*p_aio_write)(struct aiocb*) = aio_write;
|
|
nsz |
e19254 |
int(*p_lio_listio)(int,struct aiocb*restrict const[restrict],int,struct sigevent*restrict) = lio_listio;
|
|
nsz |
e19254 |
}
|