Lines Matching defs:error
45 * else a positive error code.
76 int error;
92 error = 0;
104 if ((error = falloc(NULL, flags, &fp, NULL)) != 0) {
105 KTLILOG(1, "t_kopen: falloc: %d\n", error);
106 return (error);
120 * Want to retry if error is EAGAIN, the streams open routine
124 if ((error = VOP_OPEN(&vp, flags, cr, NULL))
128 } while (error == EAGAIN && ++rtries < 5);
130 if (error) {
131 KTLILOG(1, "t_kopen: VOP_OPEN: %d\n", error);
134 return (error);
140 * call closef if there is an error and closef requires
172 error = strioctl(vp, I_FIND, (intptr_t)"timod", 0, K_TO_K, cr, &retval);
173 if (error) {
177 KTLILOG(1, "t_kopen: strioctl(I_FIND, timod): %d\n", error);
178 return (error);
183 error = strioctl(vp, I_PUSH, (intptr_t)"timod", 0, K_TO_K, cr,
185 if (error) {
186 switch (error) {
195 "t_kopen: I_PUSH of timod failed, error %d\n",
196 error);
198 error = 0;
206 error);
207 return (error);
218 error = strdoioctl(vp->v_stream, &strioc, FNATIVE, K_TO_K, cr, &retval);
219 if (error) {
223 KTLILOG(1, "t_kopen: strdoioctl(T_INFO_REQ): %d\n", error);
224 return (error);
229 error = (retval >> 8) & 0xff;
231 error = t_tlitosyserr(retval & 0xff);
237 return (error);