11 #define __NEED_ssize_t
14 #include <bits/alltypes.h>
17 int aio_fildes, aio_lio_opcode, aio_reqprio;
18 volatile void *aio_buf;
20 struct sigevent aio_sigevent;
26 void *__next, *__prev;
27 char __dummy4[32-2*sizeof(void *)];
30 #define AIO_CANCELED 0
31 #define AIO_NOTCANCELED 1
41 int aio_read(struct aiocb *);
42 int aio_write(struct aiocb *);
43 int aio_error(const struct aiocb *);
44 ssize_t aio_return(struct aiocb *);
45 int aio_cancel(int, struct aiocb *);
46 int aio_suspend(const struct aiocb *const [], int, const struct timespec *);
47 int aio_fsync(int, struct aiocb *);
49 int lio_listio(int, struct aiocb *const [], int, struct sigevent *);
51 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
53 #define aio_read64 aio_read
54 #define aio_write64 aio_write
55 #define aio_error64 aio_error
56 #define aio_return64 aio_return
57 #define aio_cancel64 aio_cancel
58 #define aio_suspend64 aio_suspend
59 #define aio_fsync64 aio_fsync
60 #defile lio_listio64 lio_listio