Lines Matching defs:error

228 	int	error;
233 error = arw((int)a0, (int)a1, (char *)a2, (int)a3,
237 error = arw((int)a0, (int)a1, (char *)a2, (int)a3,
241 error = aiowait((struct timeval *)a1, (int)a2, &rval);
244 error = aiowaitn((void *)a1, (uint_t)a2, (uint_t *)a3,
248 error = aionotify();
251 error = aioinit();
254 error = aiostart();
257 error = alio((int)a1, (aiocb_t **)a2, (int)a3,
261 error = aliowait((int)a1, (void *)a2, (int)a3,
265 error = aiosuspend((void *)a1, (int)a2, (timespec_t *)a3,
269 error = aioerror((void *)a1, AIO_64);
272 error = aiorw((int)a0, (void *)a1, FREAD, AIO_64);
275 error = aiorw((int)a0, (void *)a1, FWRITE, AIO_64);
278 error = aio_cancel((int)a1, (void *)a2, &rval, AIO_64);
289 error = EINVAL;
291 if (error)
292 return ((int64_t)set_errno(error));
303 int error = 0;
325 error = aiowait((struct timeval *)uap[1], (int)uap[2],
329 error = aiowaitn((void *)uap[1], (uint_t)uap[2],
345 error = aiosuspend((void *)uap[1], (int)uap[2],
358 error = (aio_cancel((int)uap[1], (void *)uap[2], &rval,
368 error = aiosuspend((void *)uap[1], (int)uap[2],
381 error = (aio_cancel((int)uap[1], (void *)uap[2],
389 return (error);
525 int error;
541 error = timeval2reltime(timout, &rqtime, &rqtp, &blocking);
542 if (error)
543 return (error);
571 error = EINVAL;
581 error = EINTR;
584 error = ETIME;
597 return (error);
610 int error = 0;
643 error = timespec2reltime(timout, &rqtime, &rqtp, &blocking);
644 if (error)
645 return (error);
664 * immediately with the error code : EAGAIN.
733 error = 0;
739 * expiration, we reset error if there are enough
747 error = 0;
757 error = ETIME;
761 error = EINTR;
782 error = EFAULT;
794 return (error);
901 int error;
927 error = timespec2reltime(timout, &rqtime, &rqtp, &blocking);
928 if (error)
929 return (error);
958 error = EFAULT;
1037 error = 0;
1042 error = EAGAIN;
1063 error = EINTR;
1065 error = ETIME;
1067 error = EAGAIN;
1083 return (error);
1115 * this function will return an error if the process has only
1124 int first, error = 0;
1130 error = EINVAL;
1137 if (error == 0 && first == 0) {
1141 return (error);
1159 int error;
1161 error = port_alloc_event(pntfy->portnfy_port, PORT_ALLOC_DEFAULT,
1163 if (error) {
1164 if ((error == ENOMEM) || (error == EAGAIN))
1165 error = EAGAIN;
1167 error = EINVAL;
1175 return (error);
1216 int error = 0;
1256 error = port_alloc_event(pnotify.portnfy_port,
1258 if (error) {
1259 if (error == ENOMEM || error == EAGAIN)
1260 error = EAGAIN;
1262 error = EINVAL;
1264 return (error);
1278 error = aio_lio_alloc(&head);
1280 if (error)
1291 error = EAGAIN;
1403 error = aio_req_setup(&reqp, aiop, aiocb,
1405 if (error) {
1407 lio_set_uerror(&cbp->aio_resultp, error);
1442 error = EFAULT;
1449 if (error)
1453 error = port_dup_event(pkevtp, &lpkevp,
1456 error = port_alloc_event(pnotify.portnfy_port,
1459 if (error == 0) {
1472 if (error == 0) {
1478 error = (*aio_func)(vp, (aio_req_t *)&reqp->aio_req,
1484 * completed unless there was an error.
1486 if (error) {
1488 lio_set_uerror(&cbp->aio_resultp, error);
1495 if (error == ENOTSUP)
1506 error = ENOTSUP;
1511 error = EIO;
1519 error = EINTR;
1536 return (error);
1567 int error = 0;
1596 error = EFAULT;
1654 error = EINVAL;
1662 error = EINTR;
1670 return (error);
1702 lio_set_uerror(void *resultp, int error)
1706 * error should be written out to the user's
1713 (void) suword32(&((aio_result_t *)resultp)->aio_errno, error);
1719 (void) suword32(&((aio_result32_t *)resultp)->aio_errno, error);
1946 int error;
1985 error = aio_req_setup(&reqp, aiop, &aiocb, resultp, vp, 1);
1992 error = aio_req_setupLF(&reqp, aiop, &aiocb64, resultp, vp, 1);
1994 if (error) {
1996 return (error);
2014 error = (*aio_func)(vp, (aio_req_t *)&reqp->aio_req, CRED());
2020 if (error) {
2028 return (error);
2052 int error, fd;
2175 error = aio_req_setupLF(&reqp, aiop, &aiocb64, resultp, vp, 0);
2177 error = aio_req_setup(&reqp, aiop, &aiocb, resultp, vp, 0);
2179 if (error) {
2181 return (error);
2201 error = aio_req_assoc_port_rw(&pntfy, aiocb_arg, reqp, event);
2207 if (error == 0) {
2213 error = (*aio_func)(vp, (aio_req_t *)&reqp->aio_req, CRED());
2221 if (error) {
2231 return (error);
2239 * set error for a list IO entry that failed.
2403 int error;
2434 if (error = aio_req_alloc(&reqp, resultp)) {
2438 return (error);
2921 int error = 0;
2964 error = port_alloc_event(pnotify.portnfy_port,
2966 if (error) {
2967 if (error == ENOMEM || error == EAGAIN)
2968 error = EAGAIN;
2970 error = EINVAL;
2972 return (error);
2986 error = aio_lio_alloc(&head);
2988 if (error)
2999 error = EAGAIN;
3114 error = aio_req_setup(&reqp, aiop, &aiocb_n,
3117 error = aio_req_setupLF(&reqp, aiop, aiocb,
3120 if (error) {
3122 lio_set_uerror(&cbp->aio_resultp, error);
3157 error = EFAULT;
3164 if (error)
3168 error = port_dup_event(pkevtp, &lpkevp,
3171 error = port_alloc_event(pnotify.portnfy_port,
3174 if (error == 0) {
3187 if (error == 0) {
3193 error = (*aio_func)(vp, (aio_req_t *)&reqp->aio_req,
3199 * completed unless there was an error.
3201 if (error) {
3203 lio_set_uerror(&cbp->aio_resultp, error);
3210 if (error == ENOTSUP)
3221 error = ENOTSUP;
3226 error = EIO;
3234 error = EINTR;
3251 return (error);
3300 int error;
3331 if (error = aio_req_alloc(&reqp, resultp)) {
3335 return (error);
3400 int error = 0;
3449 error = port_alloc_event(pnotify.portnfy_port,
3451 if (error) {
3452 if (error == ENOMEM || error == EAGAIN)
3453 error = EAGAIN;
3455 error = EINVAL;
3457 return (error);
3471 error = aio_lio_alloc(&head);
3473 if (error)
3484 error = EAGAIN;
3609 error = aio_req_setup(&reqp, aiop, aiocb,
3611 if (error) {
3613 lio_set_uerror(&cbp->aio_resultp, error);
3649 error = EFAULT;
3661 error = EFAULT;
3669 if (error)
3673 error = port_dup_event(pkevtp, &lpkevp,
3676 error = port_alloc_event(pnotify.portnfy_port,
3679 if (error == 0) {
3692 if (error == 0) {
3698 error = (*aio_func)(vp, (aio_req_t *)&reqp->aio_req,
3704 * completed unless there was an error.
3706 if (error) {
3708 lio_set_uerror(&cbp->aio_resultp, error);
3715 if (error == ENOTSUP)
3726 error = ENOTSUP;
3731 error = EIO;
3739 error = EINTR;
3756 return (error);