Lines Matching refs:error
55 * written to 'pathname', -1 plus error code in errno otherwise.
129 int error;
139 if ((error = secpolicy_sys_devices(CRED())) != 0)
140 return (set_errno(error));
156 error = EALREADY;
165 if ((error = vn_open(pathname, UIO_USERSPACE,
167 if (error == EISDIR)
168 error = EACCES; /* SVID compliance? */
174 * so let's get on with it. Any error, and we just give up and
175 * hand the first error we get back to userland.
177 error = in_write_instance(vp);
180 * If there was any sort of error, we deliberately go and
184 if (error)
190 return (error ? set_errno(error) : 0);
209 int error;
213 error = vn_rdwr(UIO_WRITE, vp, buf, count, *vo,
218 return (error);
236 int error;
238 error = VOP_CLOSE(fp->vp, FCREAT, 1, (offset_t)0, CRED(), NULL);
241 return (error);
247 int error = 0;
250 error = in_write(fp->vp, &fp->voffset, fp->buf, fp->count);
251 if (error == 0)
252 error = VOP_FSYNC(fp->vp, FSYNC, CRED(), NULL);
253 return (error);
259 int error = 0;
264 error = in_write(fp->vp, &fp->voffset, fp->buf,
266 if (error)
273 return (error);
295 int error = 0;
298 for (error = 0; np; np = np->in_sibling) {
325 if (error = in_fputs(in_fp, linebuffer))
326 return (error);
330 if (error = in_walktree(np->in_child, next))
333 return (error);
347 int error;
355 error = in_fputs(in_fp,
358 if (error == 0) {
362 error = in_walktree(root->in_child, cp);
365 if (error == 0) {
366 if ((error = in_fflush(in_fp)) == 0)
367 error = in_fclose(in_fp);
371 return (error);