Lines Matching refs:cbp
101 do_wait (struct aiocb **cbp, size_t nent, int allowed_err) in do_wait() argument
109 aio_suspend ((const struct aiocb *const *) cbp, nent, NULL); in do_wait()
112 if (cbp[cnt] != NULL) in do_wait()
114 if (aio_error (cbp[cnt]) == EINPROGRESS) in do_wait()
118 if (aio_return (cbp[cnt]) == -1 in do_wait()
120 || aio_error (cbp[cnt]) != allowed_err)) in do_wait()
122 error (0, aio_error (cbp[cnt]), "Operation failed\n"); in do_wait()
125 cbp[cnt] = NULL; in do_wait()
140 struct aiocb *cbp[10]; in do_test() local
156 cbp[cnt] = &cbs[cnt]; in do_test()
161 if (aio_write (cbp[--cnt]) < 0 && errno == ENOSYS) in do_test()
167 result |= do_wait (cbp, 10, 0); in do_test()
177 cbp[cnt] = &cbs[cnt]; in do_test()
178 aio_read (cbp[cnt]); in do_test()
181 result |= do_wait (cbp, 10, 0); in do_test()
205 cbp[cnt] = &cbs[cnt]; in do_test()
208 lio_listio (LIO_WAIT, cbp, 10, NULL); in do_test()
226 aio_write (cbp[--cnt]); in do_test()
248 aio_write (cbp[--cnt]); in do_test()
254 result |= do_wait (cbp, 10, ECANCELED); in do_test()
268 cbp[cnt] = &cbs[cnt]; in do_test()
269 aio_write (cbp[cnt]); in do_test()
275 if (aio_cancel (fd, cbp[--cnt]) == -1) in do_test()
280 result |= do_wait (cbp, 10, ECANCELED); in do_test()