Lines Matching refs:fp
77 lseek32_common(file_t *fp, int stype, offset_t off, offset_t max,
87 vp = fp->f_vnode;
90 curoff = fp->f_offset;
115 if (error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL)) {
145 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL);
154 fp->f_offset = (offset_t)noff;
174 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL);
185 fp->f_offset = (offset_t)noff;
197 fp->f_offset = newoff;
208 file_t *fp;
212 if ((fp = getf(fdes)) == NULL)
227 if (fp->f_vnode->v_type == VREG || stype != SEEK_SET)
228 error = lseek32_common(fp, stype, (offset_t)off,
231 error = lseek32_common(fp, stype, (offset_t)(uint_t)off,
246 file_t *fp;
255 if ((fp = getf(fdes)) == NULL)
258 error = lseek32_common(fp, stype, off, MAXOFFSET_T, &retoff);
276 file_t *fp;
283 if ((fp = getf(fdes)) == NULL)
286 vp = fp->f_vnode;
291 new_off += fp->f_offset;
296 if ((error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL)) != 0)
321 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL);
329 fp->f_offset = new_off;
349 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL);
359 fp->f_offset = new_off;
368 old_off = fp->f_offset;
370 fp->f_offset = new_off;