8 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
9 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
14 #define __NEED_ssize_t
17 #include <bits/alltypes.h>
20 int aio_fildes, aio_lio_opcode, aio_reqprio;
21 volatile void *aio_buf;
23 struct sigevent aio_sigevent;
29 void *__next, *__prev;
30 char __dummy4[32-2*sizeof(void *)];
33 #define AIO_CANCELED 0
34 #define AIO_NOTCANCELED 1
44 int aio_read(struct aiocb *);
45 int aio_write(struct aiocb *);
46 int aio_error(const struct aiocb *);
47 ssize_t aio_return(struct aiocb *);
48 int aio_cancel(int, struct aiocb *);
49 int aio_suspend(const struct aiocb *const [], int, const struct timespec *);
50 int aio_fsync(int, struct aiocb *);
52 int lio_listio(int, struct aiocb *const [], int, struct sigevent *);