Lines Matching defs:error
55 int _kaio_ok = 0; /* 0 = disabled, 1 = on, -1 = error */
272 int error;
289 error = ENOMEM;
291 error = ENOMEM;
292 else if ((error = (int)_kaio(AIOINIT)) == 0) {
294 error = thr_create(NULL, AIOSTKSIZE, _kaio_cleanup_thread,
298 if (error && _kaiowp != NULL) {
304 if (error)
351 int error = 0;
362 error = -1;
368 error = -1;
374 error = -1;
377 if (error)
378 return (error);
876 int error;
920 error = thr_create(NULL, AIOSTKSIZE, func, aiowp,
923 if (error) {
1029 int error;
1069 error = 0;
1082 error = errno;
1084 error = errno;
1112 error = errno;
1114 error = errno;
1129 error = errno;
1131 error = errno;
1158 error = errno;
1160 error = errno;
1179 error = errno;
1182 error = errno;
1192 _aio_finish_request(aiowp, retval, error);
1203 _aio_finish_request(aio_worker_t *aiowp, ssize_t retval, int error)
1214 error = ECANCELED;
1220 _aio_set_result(reqp, retval, error);
1228 if (error == ECANCELED) {
1250 _aiodone(reqp, retval, error);
1336 _aiodone(aio_req_t *reqp, ssize_t retval, int error)
1403 _aio_set_result(reqp, retval, error);
1555 int error = 0;
1565 error = sig_cond_wait(&aiowp->work_idle_cv,
1569 * by aio_req_add(). On error (EINTR), we clear it ourself.
1571 if (error)
1575 return (error);
1686 _aio_set_result(aio_req_t *reqp, ssize_t retval, int error)
1693 resultp->aio_errno = error;
1695 resultp->aio_errno = error;