1 #ifndef _AIO_H
2 #define _AIO_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <features.h>
9 #include <signal.h>
10 #include <time.h>
11 
12 #define __NEED_ssize_t
13 #define __NEED_off_t
14 
15 #include <bits/alltypes.h>
16 
17 struct aiocb {
18 	int aio_fildes, aio_lio_opcode, aio_reqprio;
19 	volatile void *aio_buf;
20 	size_t aio_nbytes;
21 	struct sigevent aio_sigevent;
22 	void *__td;
23 	int __lock[2];
24 	volatile int __err;
25 	ssize_t __ret;
26 	off_t aio_offset;
27 	void *__next, *__prev;
28 	char __dummy4[32-2*sizeof(void *)];
29 };
30 
31 #define AIO_CANCELED 0
32 #define AIO_NOTCANCELED 1
33 #define AIO_ALLDONE 2
34 
35 #define LIO_READ 0
36 #define LIO_WRITE 1
37 #define LIO_NOP 2
38 
39 #define LIO_WAIT 0
40 #define LIO_NOWAIT 1
41 
42 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
43 #define aiocb64 aiocb
44 #define off64_t off_t
45 #endif
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif
52