aboutsummaryrefslogtreecommitdiffstats
path: root/android/include/aio.h
blob: 02da639e108de092c17bdd5581f5f233faa1d75d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef _AIO_H
#define _AIO_H

#include <time.h>
#include <signal.h>
#include <sys/cdefs.h>
#include <sys/types.h>

__BEGIN_DECLS

struct aiocb {
	int aio_fildes;
	off_t aio_offset;
	volatile void *aio_buf;
	size_t aio_nbytes;
	int aio_reqprio;
	struct sigevent aio_sigevent;
	int aio_lio_opcode;
};

enum {
    AIO_ALLDONE,
    AIO_CANCELED,
    AIO_NOTCANCELED,
};

enum {
    LIO_WAIT,
    LIO_NOWAIT,
};

enum {
    LIO_NOP,
    LIO_READ,
    LIO_WRITE,
};

int aio_read(struct aiocb *);
int aio_write(struct aiocb *);
int aio_fsync(int, struct aiocb *);
int aio_error(const struct aiocb *);
ssize_t aio_return(struct aiocb *);
int aio_suspend(const struct aiocb * const[], int, const struct timespec *);
int aio_cancel(int, struct aiocb *);
int lio_listio(int, struct aiocb *restrict const[restrict], int,
        struct sigevent *restrict);

__END_DECLS

#endif