Lines Matching defs:error

137 	int 		error;
187 error = (int)_kaio(AIOLIO, mode, list, nent, sigevp);
188 if (error == 0)
193 error = -1;
196 if (error == -1 && errno == ENOTSUP) {
197 error = errno = 0;
269 error = _aio_rw(aiocbp, head, &__nextworker_rw, rw,
271 if (error == 0)
276 aiocbp->aio_resultp.aio_errno = error;
321 return (error);
348 int cv_err; /* error code from cond_xxx() */
349 int kerr; /* error code from _kaio(AIOSUSPEND) */
437 * -1: error
438 * 1: no error : _aiodone awaked the _kaio(AIOSUSPEND,,)
465 * Return kernel error code if no other IOs are outstanding.
498 int error;
508 error = aiocbp64->aio_resultp.aio_errno;
514 error = aiocbp->aio_resultp.aio_errno;
516 if (error == EINPROGRESS)
518 else if (error != ECANCELED) {
641 int error;
643 if ((error = resultp->aio_errno) == EINPROGRESS) {
655 error = resultp->aio_errno;
659 if (error == EINPROGRESS)
679 return (error);
687 int error;
696 error = resultp->aio_errno;
700 if (error == EINPROGRESS) {
729 errno = error;
759 int error;
763 error = _aio_rw(aiocbp, head, &next, AIOFSYNC, AIO_NO_KAIO);
764 if (error != 0) {
937 * successful or -1 if an error occurred.
942 int error = 0;
975 error = sig_cond_wait(&_aio_waitn_cv, &__aio_mutex);
977 if (error != 0) {
980 errno = error;
990 error = -1;
1014 error = (int)_kaio(AIOWAITN, &list[dnwait], knentcnt,
1019 if (error == 0) {
1025 error = _aio_get_timedelta(&end, wait);
1026 if (error == -1) {
1036 error = 0;
1043 /* fatal error */
1054 error = -1;
1088 error = (int)_kaio(AIOWAITN, &list[dnwait], knentcnt,
1095 if (error == 0) {
1105 error = 0;
1113 error = 0;
1120 if (error)
1121 break; /* fatal kernel error */
1142 (error = _aio_get_timedelta(&end, wait)) == -1) {
1160 * a timeout error (ETIME).
1194 error = -1;
1196 error = 0;
1203 return (error);
1339 int error;
1389 error = (int)_kaio(AIOLIO64, mode, list, nent, sigevp);
1390 if (error == 0)
1395 error = -1;
1398 if (error == -1 && errno == ENOTSUP) {
1399 error = errno = 0;
1471 error = _aio_rw64(aiocbp, head, &__nextworker_rw, rw,
1473 if (error == 0)
1478 aiocbp->aio_resultp.aio_errno = error;
1523 return (error);
1538 int error;
1540 if ((error = resultp->aio_errno) == EINPROGRESS) {
1552 error = resultp->aio_errno;
1556 if (error == EINPROGRESS)
1576 return (error);
1584 int error;
1593 error = resultp->aio_errno;
1597 if (error == EINPROGRESS) {
1626 errno = error;
1635 int error;
1639 error = _aio_rw64(aiocbp, head, &next, AIOFSYNC, AIO_NO_KAIO);
1640 if (error != 0) {