Lines Matching refs:cbp
102 do_wait (struct aiocb64 **cbp, size_t nent, int allowed_err) in do_wait() argument
110 aio_suspend64 ((const struct aiocb64 *const *) cbp, nent, NULL); in do_wait()
113 if (cbp[cnt] != NULL) in do_wait()
115 if (aio_error64 (cbp[cnt]) == EINPROGRESS) in do_wait()
119 if (aio_return64 (cbp[cnt]) == -1 in do_wait()
121 || aio_error64 (cbp[cnt]) != allowed_err)) in do_wait()
123 error (0, aio_error64 (cbp[cnt]), "Operation failed\n"); in do_wait()
126 cbp[cnt] = NULL; in do_wait()
141 struct aiocb64 *cbp[10]; in do_test() local
157 cbp[cnt] = &cbs[cnt]; in do_test()
162 if (aio_write64 (cbp[--cnt]) < 0 && errno == ENOSYS) in do_test()
168 result |= do_wait (cbp, 10, 0); in do_test()
178 cbp[cnt] = &cbs[cnt]; in do_test()
179 aio_read64 (cbp[cnt]); in do_test()
182 result |= do_wait (cbp, 10, 0); in do_test()
206 cbp[cnt] = &cbs[cnt]; in do_test()
209 lio_listio64 (LIO_WAIT, cbp, 10, NULL); in do_test()
227 aio_write64 (cbp[--cnt]); in do_test()
249 aio_write64 (cbp[--cnt]); in do_test()
255 result |= do_wait (cbp, 10, ECANCELED); in do_test()
269 cbp[cnt] = &cbs[cnt]; in do_test()
270 aio_write64 (cbp[cnt]); in do_test()
276 if (aio_cancel64 (fd, cbp[--cnt]) == -1) in do_test()
281 result |= do_wait (cbp, 10, ECANCELED); in do_test()