Lines Matching refs:error

129 	int error;  in in_sync_sys()  local
139 if ((error = secpolicy_sys_devices(CRED())) != 0) in in_sync_sys()
140 return (set_errno(error)); in in_sync_sys()
156 error = EALREADY; in in_sync_sys()
165 if ((error = vn_open(pathname, UIO_USERSPACE, in in_sync_sys()
167 if (error == EISDIR) in in_sync_sys()
168 error = EACCES; /* SVID compliance? */ in in_sync_sys()
177 error = in_write_instance(vp); in in_sync_sys()
184 if (error) in in_sync_sys()
190 return (error ? set_errno(error) : 0); in in_sync_sys()
209 int error; in in_write() local
213 error = vn_rdwr(UIO_WRITE, vp, buf, count, *vo, in in_write()
218 return (error); in in_write()
236 int error; in in_fclose() local
238 error = VOP_CLOSE(fp->vp, FCREAT, 1, (offset_t)0, CRED(), NULL); in in_fclose()
241 return (error); in in_fclose()
247 int error = 0; in in_fflush() local
250 error = in_write(fp->vp, &fp->voffset, fp->buf, fp->count); in in_fflush()
251 if (error == 0) in in_fflush()
252 error = VOP_FSYNC(fp->vp, FSYNC, CRED(), NULL); in in_fflush()
253 return (error); in in_fflush()
259 int error = 0; in in_fputs() local
264 error = in_write(fp->vp, &fp->voffset, fp->buf, in in_fputs()
266 if (error) in in_fputs()
273 return (error); in in_fputs()
295 int error = 0; in in_walktree() local
298 for (error = 0; np; np = np->in_sibling) { in in_walktree()
325 if (error = in_fputs(in_fp, linebuffer)) in in_walktree()
326 return (error); in in_walktree()
330 if (error = in_walktree(np->in_child, next)) in in_walktree()
333 return (error); in in_walktree()
347 int error; in in_write_instance() local
355 error = in_fputs(in_fp, in in_write_instance()
358 if (error == 0) { in in_write_instance()
362 error = in_walktree(root->in_child, cp); in in_write_instance()
365 if (error == 0) { in in_write_instance()
366 if ((error = in_fflush(in_fp)) == 0) in in_write_instance()
367 error = in_fclose(in_fp); in in_write_instance()
371 return (error); in in_write_instance()