Lines Matching defs:error

84 	int error = 0;
93 error = EBADF;
115 error = nbl_svmand(vp, fp->f_cred, &svmand);
116 if (error != 0)
120 error = EACCES;
142 if ((error = VOP_GETATTR(vp, &va, 0, fp->f_cred, NULL))) {
151 error = EOVERFLOW;
180 error = VOP_READ(vp, &auio, ioflag, fp->f_cred, NULL);
196 if (error == EINTR && cnt != 0)
197 error = 0;
202 if (error)
203 return (set_errno(error));
220 int error = 0;
229 error = EBADF;
251 error = nbl_svmand(vp, fp->f_cred, &svmand);
252 if (error != 0)
256 error = EACCES;
278 error = EFBIG;
288 error = EFBIG;
309 error = VOP_WRITE(vp, &auio, ioflag, fp->f_cred, NULL);
325 if (error == EINTR && cnt != 0)
326 error = 0;
331 if (error)
332 return (set_errno(error));
346 int error = 0;
362 error = EBADF;
376 * Negative offset from user will cause this error.
380 error = EINVAL;
391 error = ESPIPE;
404 error = nbl_svmand(vp, fp->f_cred, &svmand);
405 if (error != 0)
409 error = EACCES;
420 if ((error = VOP_GETATTR(vp, &va, 0, fp->f_cred, NULL))) {
438 error = EOVERFLOW;
455 error = VOP_READ(vp, &auio, ioflag, fp->f_cred, NULL);
465 if (error == EINTR && bcount != 0)
466 error = 0;
471 if (error)
472 return (set_errno(error));
486 int error = 0;
501 error = EBADF;
518 error = EINVAL;
531 error = EFBIG;
539 error = EFBIG;
545 error = ESPIPE;
558 error = nbl_svmand(vp, fp->f_cred, &svmand);
559 if (error != 0)
563 error = EACCES;
589 error = VOP_WRITE(vp, &auio, ioflag, fp->f_cred, NULL);
599 if (error == EINTR && bcount != 0)
600 error = 0;
605 if (error)
606 return (set_errno(error));
628 int error = 0;
674 error = EBADF;
693 error = nbl_svmand(vp, fp->f_cred, &svmand);
694 if (error != 0)
698 error = EACCES;
713 if ((error = VOP_GETATTR(vp, &va, 0, fp->f_cred, NULL))) {
723 error = EOVERFLOW;
748 error = VOP_READ(vp, &auio, ioflag, fp->f_cred, NULL);
765 if (error == EINTR && count != 0)
766 error = 0;
771 if (error)
772 return (set_errno(error));
786 int error = 0;
832 error = EBADF;
851 error = nbl_svmand(vp, fp->f_cred, &svmand);
852 if (error != 0)
856 error = EACCES;
876 error = EFBIG;
881 error = EFBIG;
898 error = VOP_WRITE(vp, &auio, ioflag, fp->f_cred, NULL);
914 if (error == EINTR && count != 0)
915 error = 0;
920 if (error)
921 return (set_errno(error));
936 int error = 0;
999 error = EBADF;
1014 error = EINVAL;
1021 error = ESPIPE;
1033 error = nbl_svmand(vp, fp->f_cred, &svmand);
1034 if (error != 0)
1038 error = EACCES;
1053 if ((error =
1064 error = EOVERFLOW;
1085 error = VOP_READ(vp, &auio, ioflag, fp->f_cred, NULL);
1096 if (error == EINTR && count != 0)
1097 error = 0;
1102 if (error)
1103 return (set_errno(error));
1118 int error = 0;
1181 error = EBADF;
1196 error = EINVAL;
1207 * actions taken, but we are in an error case.
1218 error = EFBIG;
1226 error = EFBIG;
1233 error = ESPIPE;
1245 error = nbl_svmand(vp, fp->f_cred, &svmand);
1246 if (error != 0)
1250 error = EACCES;
1273 error = EFBIG;
1278 error = EFBIG;
1294 error = VOP_WRITE(vp, &auio, ioflag, fp->f_cred, NULL);
1305 if (error == EINTR && count != 0)
1306 error = 0;
1311 if (error)
1312 return (set_errno(error));
1332 int error = 0;
1348 error = EBADF;
1365 error = EINVAL;
1371 error = ESPIPE;
1384 error = nbl_svmand(vp, fp->f_cred, &svmand);
1385 if (error != 0)
1389 error = EACCES;
1420 error = VOP_READ(vp, &auio, ioflag, fp->f_cred, NULL);
1430 if (error == EINTR && bcount != 0)
1431 error = 0;
1436 if (error)
1437 return (set_errno(error));
1455 int error = 0;
1470 error = EBADF;
1486 error = EINVAL;
1494 error = EFBIG;
1498 error = EFBIG;
1504 error = ESPIPE;
1517 error = nbl_svmand(vp, fp->f_cred, &svmand);
1518 if (error != 0)
1522 error = EACCES;
1548 error = VOP_WRITE(vp, &auio, ioflag, fp->f_cred, NULL);
1558 if (error == EINTR && bcount != 0)
1559 error = 0;
1564 if (error)
1565 return (set_errno(error));
1576 * return a number in the range [0,len] or -1 on error.
1584 * down negative input values as such and let the downcall handle error