Home
last modified time | relevance | path

Searched refs:aiocb (Results 1 – 25 of 78) sorted by relevance

1234

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/
D3-1.c45 struct aiocb aiocb; in main() local
64 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
65 aiocb.aio_fildes = fd; in main()
66 aiocb.aio_buf = buf; in main()
67 aiocb.aio_nbytes = BUF_SIZE; in main()
69 if (aio_write(&aiocb) == -1) { in main()
72 strerror(aio_error(&aiocb))); in main()
78 retval = aio_error(&aiocb); in main()
81 retval = aio_return(&aiocb); in main()
86 strerror(aio_error(&aiocb))); in main()
[all …]
D3-2.c43 struct aiocb aiocb; in main() local
62 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
63 aiocb.aio_fildes = fd; in main()
64 aiocb.aio_buf = buf; in main()
65 aiocb.aio_nbytes = BUF_SIZE; in main()
67 if (aio_write(&aiocb) == -1) { in main()
70 strerror(aio_error(&aiocb))); in main()
76 retval = aio_error(&aiocb); in main()
79 retval = aio_return(&aiocb); in main()
83 strerror(aio_error(&aiocb))); in main()
[all …]
D4-1.c42 struct aiocb aiocb; in main() local
43 struct aiocb aiocb2; in main()
62 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
63 aiocb.aio_fildes = fd; in main()
64 aiocb.aio_buf = buf; in main()
65 aiocb.aio_nbytes = BUF_SIZE; in main()
67 if (aio_write(&aiocb) == -1) { in main()
75 retval = aio_error(&aiocb); in main()
78 retval = aio_error(&aiocb); in main()
82 memset(&aiocb2, 0, sizeof(struct aiocb)); in main()
[all …]
D2-1.c40 struct aiocb aiocb; in main() local
59 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
60 aiocb.aio_fildes = fd; in main()
61 aiocb.aio_buf = buf; in main()
62 aiocb.aio_nbytes = BUF_SIZE; in main()
64 if (aio_write(&aiocb) == -1) { in main()
67 strerror(aio_error(&aiocb))); in main()
73 retval = aio_error(&aiocb); in main()
76 retval = aio_return(&aiocb); in main()
87 retval = aio_return(&aiocb); in main()
[all …]
D1-1.c42 struct aiocb aiocb; in main() local
61 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
62 aiocb.aio_fildes = fd; in main()
63 aiocb.aio_buf = buf; in main()
64 aiocb.aio_nbytes = BUF_SIZE; in main()
66 if (aio_write(&aiocb) == -1) { in main()
74 retval = aio_error(&aiocb); in main()
77 retval = aio_return(&aiocb); in main()
82 strerror(aio_error(&aiocb))); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/
D3-1.c53 struct aiocb *a = info->si_value.sival_ptr; in sig_handler()
67 struct aiocb *aiocb_list[BUF_NB]; in main()
68 struct aiocb *aiocb; in main() local
101 aiocb = malloc(sizeof(struct aiocb)); in main()
102 if (aiocb == NULL) { in main()
108 aiocb->aio_fildes = fd; in main()
109 aiocb->aio_buf = malloc(BUF_SIZE); in main()
110 if (aiocb->aio_buf == NULL) { in main()
116 aiocb->aio_nbytes = BUF_SIZE; in main()
117 aiocb->aio_offset = 0; in main()
[all …]
D5-1.c48 struct aiocb *aiocb[BUF_NB]; in main() local
71 aiocb[i] = calloc(1, sizeof(struct aiocb)); in main()
72 if (aiocb[i] == NULL) { in main()
83 aiocb[i]->aio_fildes = fd; in main()
84 aiocb[i]->aio_buf = buf[i]; in main()
85 aiocb[i]->aio_nbytes = BUF_SIZE; in main()
86 aiocb[i]->aio_offset = 0; in main()
87 aiocb[i]->aio_sigevent.sigev_notify = SIGEV_NONE; in main()
89 if (aio_write(aiocb[i]) == -1) { in main()
113 ret = (aio_error(aiocb[i])); in main()
[all …]
D4-1.c50 struct aiocb *aiocb[BUF_NB]; in main() local
71 aiocb[i] = malloc(sizeof(struct aiocb)); in main()
72 if (aiocb[i] == NULL) { in main()
77 memset(aiocb[i], 0, sizeof(struct aiocb)); in main()
78 aiocb[i]->aio_fildes = fd; in main()
79 aiocb[i]->aio_buf = malloc(BUF_SIZE); in main()
80 if (aiocb[i]->aio_buf == NULL) { in main()
85 aiocb[i]->aio_nbytes = BUF_SIZE; in main()
86 aiocb[i]->aio_offset = 0; in main()
87 aiocb[i]->aio_sigevent.sigev_notify = SIGEV_NONE; in main()
[all …]
D6-1.c51 struct aiocb *aiocb[BUF_NB]; in main() local
73 aiocb[i] = calloc(1, sizeof(struct aiocb)); in main()
74 if (aiocb[i] == NULL) { in main()
79 aiocb[i]->aio_fildes = fd; in main()
80 aiocb[i]->aio_buf = malloc(BUF_SIZE); in main()
81 if (aiocb[i]->aio_buf == NULL) { in main()
86 aiocb[i]->aio_nbytes = BUF_SIZE; in main()
87 aiocb[i]->aio_offset = 0; in main()
88 aiocb[i]->aio_sigevent.sigev_notify = SIGEV_NONE; in main()
90 if (aio_write(aiocb[i]) == -1) { in main()
[all …]
D7-1.c49 struct aiocb *aiocb[BUF_NB]; in main() local
70 aiocb[i] = calloc(1, sizeof(struct aiocb)); in main()
72 if (aiocb[i] == NULL) { in main()
79 aiocb[i]->aio_fildes = fd; in main()
80 aiocb[i]->aio_buf = malloc(BUF_SIZE); in main()
82 if (aiocb[i]->aio_buf == NULL) { in main()
89 aiocb[i]->aio_nbytes = BUF_SIZE; in main()
90 aiocb[i]->aio_offset = 0; in main()
91 aiocb[i]->aio_sigevent.sigev_notify = SIGEV_NONE; in main()
93 if (aio_write(aiocb[i]) == -1) { in main()
[all …]
D1-1.c42 struct aiocb aiocb; in main() local
59 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
60 aiocb.aio_fildes = fd; in main()
61 aiocb.aio_buf = buf; in main()
62 aiocb.aio_nbytes = BUF_SIZE; in main()
64 if (aio_write(&aiocb) == -1) { in main()
69 switch (aio_cancel(fd, &aiocb)) { in main()
76 err = aio_error(&aiocb); in main()
D8-1.c45 struct aiocb aiocb; in main() local
62 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
63 aiocb.aio_fildes = fd; in main()
64 aiocb.aio_buf = buf; in main()
65 aiocb.aio_nbytes = BUF_SIZE; in main()
67 if (aio_write(&aiocb) == -1) { in main()
74 ret = aio_error(&aiocb); in main()
81 if (aio_cancel(fd, &aiocb) != AIO_ALLDONE) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/
D3-1.c45 struct aiocb aiocb[NAIOCB]; in main() local
46 const struct aiocb *list[NENT]; in main()
65 memset(&aiocb[i], 0, sizeof(struct aiocb)); in main()
66 aiocb[i].aio_fildes = fd; in main()
67 aiocb[i].aio_buf = buf; in main()
68 aiocb[i].aio_offset = i * BUF_SIZE; in main()
69 aiocb[i].aio_nbytes = BUF_SIZE; in main()
71 if (aio_write(&aiocb[i]) == -1) { in main()
79 list[2] = &aiocb[0]; in main()
80 list[5] = &aiocb[1]; in main()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_error/
D2-1.c44 struct aiocb *aiocb[BUF_NB]; in main() local
65 aiocb[i] = calloc(1, sizeof(struct aiocb)); in main()
66 if (aiocb[i] == NULL) { in main()
71 aiocb[i]->aio_fildes = fd; in main()
72 aiocb[i]->aio_buf = malloc(BUF_SIZE); in main()
73 if (aiocb[i]->aio_buf == NULL) { in main()
78 aiocb[i]->aio_nbytes = BUF_SIZE; in main()
79 aiocb[i]->aio_offset = 0; in main()
80 aiocb[i]->aio_sigevent.sigev_notify = SIGEV_NONE; in main()
82 if (aio_write(aiocb[i]) == -1) { in main()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/
D9-1.c46 struct aiocb aiocb; in main() local
62 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
63 aiocb.aio_fildes = fd; in main()
64 aiocb.aio_buf = buf; in main()
65 aiocb.aio_offset = -1; in main()
66 aiocb.aio_nbytes = BUF_SIZE; in main()
68 if (aio_write(&aiocb) != -1) { in main()
72 err = aio_error(&aiocb); in main()
75 int ret = aio_return(&aiocb); in main()
D9-2.c46 struct aiocb aiocb; in main() local
62 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
63 aiocb.aio_fildes = fd; in main()
64 aiocb.aio_buf = buf; in main()
65 aiocb.aio_reqprio = -1; in main()
66 aiocb.aio_nbytes = BUF_SIZE; in main()
68 if (aio_write(&aiocb) != -1) { in main()
72 err = aio_error(&aiocb); in main()
75 int ret = aio_return(&aiocb); in main()
D8-1.c41 struct aiocb aiocb; in main() local
48 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
49 aiocb.aio_fildes = -1; in main()
50 aiocb.aio_buf = buf; in main()
51 aiocb.aio_nbytes = BUF_SIZE; in main()
58 if (aio_write(&aiocb) != 0) { in main()
65 ret = aio_error(&aiocb); in main()
D3-1.c45 struct aiocb aiocb; in main() local
64 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
65 aiocb.aio_fildes = fd; in main()
66 aiocb.aio_buf = buf; in main()
67 aiocb.aio_nbytes = BUF_SIZE; in main()
68 aiocb.aio_lio_opcode = LIO_READ; in main()
70 if (aio_write(&aiocb) == -1) { in main()
78 err = aio_error(&aiocb); in main()
81 ret = aio_return(&aiocb); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/
D8-1.c44 struct aiocb aiocb; in main() local
45 struct aiocb *list[1]; in main()
73 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
74 aiocb.aio_fildes = fd; in main()
75 aiocb.aio_buf = check; in main()
76 aiocb.aio_nbytes = BUF_SIZE; in main()
77 aiocb.aio_lio_opcode = LIO_READ; in main()
79 list[0] = &aiocb; in main()
89 err = aio_error(&aiocb); in main()
90 ret = aio_return(&aiocb); in main()
D9-1.c44 struct aiocb aiocb; in main() local
45 struct aiocb *list[1]; in main()
67 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
68 aiocb.aio_fildes = fd; in main()
69 aiocb.aio_buf = buf; in main()
70 aiocb.aio_nbytes = BUF_SIZE; in main()
71 aiocb.aio_lio_opcode = LIO_WRITE; in main()
73 list[0] = &aiocb; in main()
81 err = aio_error(&aiocb); in main()
82 ret = aio_return(&aiocb); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/
D11-1.c44 struct aiocb aiocb; in main() local
65 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
66 aiocb.aio_fildes = fd; in main()
67 aiocb.aio_buf = buf; in main()
68 aiocb.aio_offset = -1; in main()
69 aiocb.aio_nbytes = BUF_SIZE; in main()
71 if (aio_read(&aiocb) != -1) { in main()
75 err = aio_error(&aiocb); in main()
78 int ret = aio_return(&aiocb); in main()
D10-1.c41 struct aiocb aiocb; in main() local
48 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
49 aiocb.aio_fildes = -1; in main()
50 aiocb.aio_buf = buf; in main()
51 aiocb.aio_nbytes = BUF_SIZE; in main()
58 if (aio_read(&aiocb) != 0) { in main()
65 ret = aio_error(&aiocb); in main()
D5-1.c43 struct aiocb aiocb; in main() local
69 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
70 aiocb.aio_fildes = fd; in main()
71 aiocb.aio_buf = check; in main()
72 aiocb.aio_nbytes = BUF_SIZE; in main()
73 aiocb.aio_lio_opcode = LIO_WRITE; in main()
75 if (aio_read(&aiocb) == -1) { in main()
86 err = aio_error(&aiocb); in main()
89 ret = aio_return(&aiocb); in main()
D1-1.c46 struct aiocb aiocb; in main() local
71 memset(&aiocb, 0, sizeof(struct aiocb)); in main()
72 aiocb.aio_fildes = fd; in main()
73 aiocb.aio_buf = check; in main()
74 aiocb.aio_nbytes = RBUF_SIZE; in main()
75 aiocb.aio_offset = 512; in main()
77 if (aio_read(&aiocb) == -1) { in main()
85 err = aio_error(&aiocb); in main()
88 ret = aio_return(&aiocb); in main()
/external/ltp/android/include/
Daio.h11 struct aiocb { struct
38 int aio_read(struct aiocb *); argument
39 int aio_write(struct aiocb *);
40 int aio_fsync(int, struct aiocb *);
41 int aio_error(const struct aiocb *);
42 ssize_t aio_return(struct aiocb *);
43 int aio_suspend(const struct aiocb * const[], int, const struct timespec *);
44 int aio_cancel(int, struct aiocb *);
45 int lio_listio(int, struct aiocb *restrict const[restrict], int,

1234