/external/ltp/testcases/open_posix_testsuite/conformance/definitions/aio_h/ |
2-1.c | 16 struct aiocb aiocb; local 19 aiocb.aio_fildes = -1; 20 aiocb.aio_offset = -1; 21 aiocb.aio_buf = NULL; 22 aiocb.aio_nbytes = 0; 23 aiocb.aio_sigevent = sigevent; 24 aiocb.aio_reqprio = -1;
|
4-1.c | 11 int (*dummy0) (int, struct aiocb *) = aio_cancel; 12 int (*dummy1) (const struct aiocb *) = aio_error; 13 int (*dummy2) (int, struct aiocb *) = aio_fsync; 14 int (*dummy3) (struct aiocb *) = aio_read; 15 ssize_t(*dummy4) (struct aiocb *) = aio_return; 16 int (*dummy5) (const struct aiocb * const[], int, 18 int (*dummy6) (struct aiocb *) = aio_write; 19 int (*dummy7) (int, struct aiocb * const[],
|
1-2-buildonly.c | 9 /* test if struct aiocb is defined in <aio.h> */ 13 struct aiocb dummy;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/ |
3-1.c | 18 * - fill in an aiocb for writing 19 * - call aio_write using this aiocb 20 * - call aio_return to get the aiocb status (number of bytes written) 21 * - reuse the aiocb for writing 22 * - call aio_write using this aiocb 23 * - call aio_return to get the aiocb status (number of bytes written) 46 struct aiocb aiocb; local 65 memset(&aiocb, 0, sizeof(struct aiocb)); [all...] |
2-1.c | 17 * - fill in an aiocb for writing 18 * - call aio_write using this aiocb 19 * - call aio_return to get the aiocb status (number of bytes written) 41 struct aiocb aiocb; local 60 memset(&aiocb, 0, sizeof(struct aiocb)); 61 aiocb.aio_fildes = fd; 62 aiocb.aio_buf = buf; 63 aiocb.aio_nbytes = BUF_SIZE [all...] |
3-2.c | 18 * - fill in an aiocb for writing 19 * - call aio_write using this aiocb 20 * - call aio_return to get the aiocb status (number of bytes written) 44 struct aiocb aiocb; local 63 memset(&aiocb, 0, sizeof(struct aiocb)); 64 aiocb.aio_fildes = fd; 65 aiocb.aio_buf = buf; 66 aiocb.aio_nbytes = BUF_SIZE [all...] |
4-1.c | 19 * - fill in an aiocb for writing 20 * - call aio_write usign this aiocb 21 * - fill in a new aiocb 22 * - call aio_return with this last aiocb 43 struct aiocb aiocb; local 44 struct aiocb aiocb2; 63 memset(&aiocb, 0, sizeof(struct aiocb)); 64 aiocb.aio_fildes = fd [all...] |
1-1.c | 17 * - fill in an aiocb for writing 18 * - call aio_write using this aiocb 19 * - call aio_return to get the aiocb status (number of bytes written) 43 struct aiocb aiocb; local 62 memset(&aiocb, 0, sizeof(struct aiocb)); 63 aiocb.aio_fildes = fd; 64 aiocb.aio_buf = buf; 65 aiocb.aio_nbytes = BUF_SIZE [all...] |
/frameworks/av/media/mtp/ |
AsyncIO.h | 35 struct aiocb { struct 52 ~aiocb(); 56 int aio_read(struct aiocb *); 57 int aio_write(struct aiocb *); 58 int aio_splice_read(struct aiocb *); 59 int aio_splice_write(struct aiocb *); 64 // aiocb->aio_buf must refer to valid memory until after the suspend call 65 int aio_suspend(struct aiocb *[], int, const struct timespec *); 66 int aio_error(const struct aiocb *); 67 ssize_t aio_return(struct aiocb *); [all...] |
/external/ltp/android/include/ |
aio.h | 12 struct aiocb { struct 39 int aio_read(struct aiocb *); 40 int aio_write(struct aiocb *); 41 int aio_fsync(int, struct aiocb *); 42 int aio_error(const struct aiocb *); 43 ssize_t aio_return(struct aiocb *); 44 int aio_suspend(const struct aiocb * const[], int, const struct timespec *); 45 int aio_cancel(int, struct aiocb *); 46 int lio_listio(int, struct aiocb *restrict const[restrict], int,
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/ |
10-1.c | 18 * - Create an aiocb with an invalid aio_filedes 19 * - call aio_read with this aiocb 42 struct aiocb aiocb; local 49 memset(&aiocb, 0, sizeof(struct aiocb)); 50 aiocb.aio_fildes = -1; 51 aiocb.aio_buf = buf; 52 aiocb.aio_nbytes = BUF_SIZE; 59 if (aio_read(&aiocb) != 0) [all...] |
8-1.c | 18 * aiocb with invalid aio_reqprio. 40 struct aiocb aiocb; local 48 memset(&aiocb, 0, sizeof(struct aiocb)); 49 aiocb.aio_reqprio = -1; 51 if (aio_read(&aiocb) != -1) {
|
11-1.c | 20 * - Create an aiocb with an invalid aio_offset 21 * - call aio_read with this aiocb 45 struct aiocb aiocb; local 66 memset(&aiocb, 0, sizeof(struct aiocb)); 67 aiocb.aio_fildes = fd; 68 aiocb.aio_buf = buf; 69 aiocb.aio_offset = -1; 70 aiocb.aio_nbytes = BUF_SIZE [all...] |
3-1.c | 18 * - check error and return codes using previous aiocb 43 struct aiocb aiocb; local 64 memset(&aiocb, 0, sizeof(struct aiocb)); 65 aiocb.aio_fildes = fd; 66 aiocb.aio_buf = buf; 67 aiocb.aio_nbytes = BUF_SIZE; 69 if (aio_read(&aiocb) == -1) { 77 ret = aio_error(&aiocb); [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/ |
8-1.c | 17 * - setup an aiocb with an invalid aio_fildes 18 * - call aio_write with this aiocb 42 struct aiocb aiocb; local 49 memset(&aiocb, 0, sizeof(struct aiocb)); 50 aiocb.aio_fildes = -1; 51 aiocb.aio_buf = buf; 52 aiocb.aio_nbytes = BUF_SIZE; 59 if (aio_write(&aiocb) != 0) [all...] |
6-1.c | 18 * aiocb with invalid aio_reqprio 41 struct aiocb aiocb; local 49 memset(&aiocb, 0, sizeof(struct aiocb)); 50 aiocb.aio_reqprio = -1; 52 if (aio_write(&aiocb) != -1) {
|
9-1.c | 20 * - setup an aiocb with an invalid aio_offset 21 * - call aio_write with this aiocb 47 struct aiocb aiocb; local 63 memset(&aiocb, 0, sizeof(struct aiocb)); 64 aiocb.aio_fildes = fd; 65 aiocb.aio_buf = buf; 66 aiocb.aio_offset = -1; 67 aiocb.aio_nbytes = BUF_SIZE [all...] |
9-2.c | 20 * - setup an aiocb with an invalid aio_reqprio 21 * - call aio_write with this aiocb 47 struct aiocb aiocb; local 63 memset(&aiocb, 0, sizeof(struct aiocb)); 64 aiocb.aio_fildes = fd; 65 aiocb.aio_buf = buf; 66 aiocb.aio_reqprio = -1; 67 aiocb.aio_nbytes = BUF_SIZE [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/ |
12-1.c | 26 struct aiocb aiocb; local 31 memset(&aiocb, 0, sizeof(struct aiocb)); 32 aiocb.aio_fildes = -1; 34 if (aio_fsync(O_SYNC, &aiocb) != -1) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_error/ |
2-1.c | 45 struct aiocb *aiocb[BUF_NB]; local 66 aiocb[i] = malloc(sizeof(struct aiocb)); 67 if (aiocb[i] == NULL) { 72 aiocb[i]->aio_fildes = fd; 73 aiocb[i]->aio_buf = malloc(BUF_SIZE); 74 if (aiocb[i]->aio_buf == NULL) { 79 aiocb[i]->aio_nbytes = BUF_SIZE; 80 aiocb[i]->aio_offset = 0 [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/ |
4-1.c | 51 struct aiocb *aiocb[BUF_NB]; local 72 aiocb[i] = malloc(sizeof(struct aiocb)); 73 if (aiocb[i] == NULL) { 78 memset(aiocb[i], 0, sizeof(struct aiocb)); 79 aiocb[i]->aio_fildes = fd; 80 aiocb[i]->aio_buf = malloc(BUF_SIZE); 81 if (aiocb[i]->aio_buf == NULL) [all...] |
6-1.c | 52 struct aiocb *aiocb[BUF_NB]; local 74 aiocb[i] = malloc(sizeof(struct aiocb)); 75 if (aiocb[i] == NULL) { 80 aiocb[i]->aio_fildes = fd; 81 aiocb[i]->aio_buf = malloc(BUF_SIZE); 82 if (aiocb[i]->aio_buf == NULL) { 87 aiocb[i]->aio_nbytes = BUF_SIZE; 88 aiocb[i]->aio_offset = 0 [all...] |
1-1.c | 16 * - create a valid aiocb with a call to aio_write() 17 * - call aio_cancel() with this aiocb and check return value is not -1 18 * -> aio_cancel() works with a valid (finished or not) aiocb 43 struct aiocb aiocb; local 60 memset(&aiocb, 0, sizeof(struct aiocb)); 61 aiocb.aio_fildes = fd; 62 aiocb.aio_buf = buf; 63 aiocb.aio_nbytes = BUF_SIZE [all...] |
8-1.c | 46 struct aiocb aiocb; local 63 memset(&aiocb, 0, sizeof(struct aiocb)); 64 aiocb.aio_fildes = fd; 65 aiocb.aio_buf = buf; 66 aiocb.aio_nbytes = BUF_SIZE; 68 if (aio_write(&aiocb) == -1) { 75 ret = aio_error(&aiocb); 82 if (aio_cancel(fd, &aiocb) != AIO_ALLDONE) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/ |
3-1.c | 46 struct aiocb aiocb[NAIOCB]; local 47 const struct aiocb *list[NENT]; 66 memset(&aiocb[i], 0, sizeof(struct aiocb)); 67 aiocb[i].aio_fildes = fd; 68 aiocb[i].aio_buf = buf; 69 aiocb[i].aio_offset = i * BUF_SIZE; 70 aiocb[i].aio_nbytes = BUF_SIZE; 72 if (aio_write(&aiocb[i]) == -1) [all...] |