/third_party/rust/crates/nix/src/sys/ |
D | aio.rs | 95 struct LibcAiocb(libc::aiocb); 109 aiocb: LibcAiocb, field 121 pin_utils::unsafe_unpinned!(aiocb: LibcAiocb); 126 let p: *mut libc::aiocb = &mut self.aiocb.0; in aio_return() 134 libc::aio_cancel(self.aiocb.0.aio_fildes, &mut self.aiocb.0) in cancel() 150 let mut a = unsafe { mem::zeroed::<libc::aiocb>() }; in common_init() 155 aiocb: LibcAiocb(a), in common_init() 161 let r = unsafe { libc::aio_error(&self.aiocb().0) }; in error() 188 self.aiocb.0.aio_sigevent = SigEvent::new(sigev_notify).sigevent(); in set_sigev_notify() 195 .field("aiocb", &self.aiocb.0) in fmt() [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_return/ |
D | 3-1.c | 47 struct aiocb aiocb; in main() local 66 memset(&aiocb, 0, sizeof(struct aiocb)); in main() 67 aiocb.aio_fildes = fd; in main() 68 aiocb.aio_buf = buf; in main() 69 aiocb.aio_nbytes = BUF_SIZE; in main() 71 if (aio_write(&aiocb) == -1) { in main() 74 strerror(aio_error(&aiocb))); in main() 80 retval = aio_error(&aiocb); in main() 83 retval = aio_return(&aiocb); in main() 88 strerror(aio_error(&aiocb))); in main() [all …]
|
D | 3-2.c | 45 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() 85 strerror(aio_error(&aiocb))); in main() [all …]
|
D | 4-1.c | 45 struct aiocb aiocb; in main() local 46 struct aiocb aiocb2; in main() 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_nbytes = BUF_SIZE; in main() 70 if (aio_write(&aiocb) == -1) { in main() 78 retval = aio_error(&aiocb); in main() 81 retval = aio_error(&aiocb); in main() 85 memset(&aiocb2, 0, sizeof(struct aiocb)); in main() [all …]
|
D | 2-1.c | 42 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() 69 strerror(aio_error(&aiocb))); in main() 75 retval = aio_error(&aiocb); in main() 78 retval = aio_return(&aiocb); in main() 89 retval = aio_return(&aiocb); in main() [all …]
|
D | 1-1.c | 44 struct aiocb aiocb; in main() local 63 memset(&aiocb, 0, sizeof(struct aiocb)); in main() 64 aiocb.aio_fildes = fd; in main() 65 aiocb.aio_buf = buf; in main() 66 aiocb.aio_nbytes = BUF_SIZE; in main() 68 if (aio_write(&aiocb) == -1) { in main() 76 retval = aio_error(&aiocb); in main() 79 retval = aio_return(&aiocb); in main() 84 strerror(aio_error(&aiocb))); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/ |
D | 3-1.c | 56 struct aiocb *a = info->si_value.sival_ptr; in sig_handler() 70 struct aiocb *aiocb_list[BUF_NB]; in main() 71 struct aiocb *aiocb; in main() local 104 aiocb = malloc(sizeof(struct aiocb)); in main() 105 if (aiocb == NULL) { in main() 111 aiocb->aio_fildes = fd; in main() 112 aiocb->aio_buf = malloc(BUF_SIZE); in main() 113 if (aiocb->aio_buf == NULL) { in main() 119 aiocb->aio_nbytes = BUF_SIZE; in main() 120 aiocb->aio_offset = 0; in main() [all …]
|
D | 5-1.c | 49 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 …]
|
D | 4-1.c | 51 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 …]
|
D | 6-1.c | 52 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 …]
|
D | 7-1.c | 50 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 …]
|
D | 1-1.c | 45 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() 71 switch (aio_cancel(fd, &aiocb)) { in main() 78 err = aio_error(&aiocb); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/ |
D | 3-1.c | 47 struct aiocb aiocb[NAIOCB]; in main() local 48 const struct aiocb *list[NENT]; in main() 67 memset(&aiocb[i], 0, sizeof(struct aiocb)); in main() 68 aiocb[i].aio_fildes = fd; in main() 69 aiocb[i].aio_buf = buf; in main() 70 aiocb[i].aio_offset = i * BUF_SIZE; in main() 71 aiocb[i].aio_nbytes = BUF_SIZE; in main() 73 if (aio_write(&aiocb[i]) == -1) { in main() 81 list[2] = &aiocb[0]; in main() 82 list[5] = &aiocb[1]; in main() [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_error/ |
D | 2-1.c | 45 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 …]
|
/third_party/rust/crates/nix/test/sys/ |
D | test_aio.rs | 34 ($aiocb: expr) => { 36 let err = $aiocb.as_mut().error(); 50 let aiocb = AioFsync::new( in test_accessors() localVariable 59 assert_eq!(1001, aiocb.fd()); in test_accessors() 60 assert_eq!(AioFsyncMode::O_SYNC, aiocb.mode()); in test_accessors() 61 assert_eq!(42, aiocb.priority()); in test_accessors() 62 let sev = aiocb.sigevent().sigevent(); in test_accessors() 116 let aiocb = AioRead::new( in test_accessors() localVariable 126 assert_eq!(1001, aiocb.fd()); in test_accessors() 127 assert_eq!(4, aiocb.nbytes()); in test_accessors() [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/ |
D | 9-1.c | 48 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_offset = -1; in main() 68 aiocb.aio_nbytes = BUF_SIZE; in main() 70 if (aio_write(&aiocb) != -1) { in main() 74 err = aio_error(&aiocb); in main() 77 int ret = aio_return(&aiocb); in main()
|
D | 9-2.c | 48 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_reqprio = -1; in main() 68 aiocb.aio_nbytes = BUF_SIZE; in main() 70 if (aio_write(&aiocb) != -1) { in main() 74 err = aio_error(&aiocb); in main() 77 int ret = aio_return(&aiocb); in main()
|
D | 3-1.c | 47 struct aiocb aiocb; in main() local 66 memset(&aiocb, 0, sizeof(struct aiocb)); in main() 67 aiocb.aio_fildes = fd; in main() 68 aiocb.aio_buf = buf; in main() 69 aiocb.aio_nbytes = BUF_SIZE; in main() 70 aiocb.aio_lio_opcode = LIO_READ; in main() 72 if (aio_write(&aiocb) == -1) { in main() 80 err = aio_error(&aiocb); in main() 83 ret = aio_return(&aiocb); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/ |
D | 8-1.c | 45 struct aiocb aiocb; in main() local 46 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()
|
D | 9-1.c | 46 struct aiocb aiocb; in main() local 47 struct aiocb *list[1]; in main() 68 memset(&aiocb, 0, sizeof(struct aiocb)); in main() 69 aiocb.aio_fildes = fd; in main() 70 aiocb.aio_buf = buf; in main() 71 aiocb.aio_nbytes = BUF_SIZE; in main() 72 aiocb.aio_lio_opcode = LIO_WRITE; in main() 74 list[0] = &aiocb; in main() 82 err = aio_error(&aiocb); in main() 83 ret = aio_return(&aiocb); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/ |
D | 11-1.c | 46 struct aiocb aiocb; in main() local 66 memset(&aiocb, 0, sizeof(struct aiocb)); in main() 67 aiocb.aio_fildes = fd; in main() 68 aiocb.aio_buf = buf; in main() 69 aiocb.aio_offset = -1; in main() 70 aiocb.aio_nbytes = BUF_SIZE; in main() 72 if (aio_read(&aiocb) != -1) { in main() 77 err = aio_error(&aiocb); in main() 80 int ret = aio_return(&aiocb); in main()
|
D | 1-1.c | 48 struct aiocb aiocb; in main() local 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 = RBUF_SIZE; in main() 77 aiocb.aio_offset = 512; in main() 79 if (aio_read(&aiocb) == -1) { in main() 87 err = aio_error(&aiocb); in main() 90 ret = aio_return(&aiocb); in main()
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
D | aio.h | 17 struct aiocb { struct 42 int aio_read(struct aiocb *); argument 43 int aio_write(struct aiocb *); 44 int aio_error(const struct aiocb *); 45 ssize_t aio_return(struct aiocb *); 46 int aio_cancel(int, struct aiocb *); 47 int aio_suspend(const struct aiocb *const [], int, const struct timespec *); 48 int aio_fsync(int, struct aiocb *); 50 int lio_listio(int, struct aiocb *__restrict const *__restrict, int, struct sigevent *__restrict); 53 #define aiocb64 aiocb
|
/third_party/musl/porting/uniproton/kernel/include/ |
D | aio.h | 17 struct aiocb { struct 42 int aio_read(struct aiocb *); argument 43 int aio_write(struct aiocb *); 44 int aio_error(const struct aiocb *); 45 ssize_t aio_return(struct aiocb *); 46 int aio_cancel(int, struct aiocb *); 47 int aio_suspend(const struct aiocb *const [], int, const struct timespec *); 48 int aio_fsync(int, struct aiocb *); 50 int lio_listio(int, struct aiocb *__restrict const *__restrict, int, struct sigevent *__restrict); 53 #define aiocb64 aiocb
|
/third_party/musl/porting/liteos_m/kernel/include/ |
D | aio.h | 17 struct aiocb { struct 42 int aio_read(struct aiocb *); argument 43 int aio_write(struct aiocb *); 44 int aio_error(const struct aiocb *); 45 ssize_t aio_return(struct aiocb *); 46 int aio_cancel(int, struct aiocb *); 47 int aio_suspend(const struct aiocb *const [], int, const struct timespec *); 48 int aio_fsync(int, struct aiocb *); 50 int lio_listio(int, struct aiocb *__restrict const *__restrict, int, struct sigevent *__restrict); 53 #define aiocb64 aiocb
|