Lines Matching refs:fp
61 ** fp -- the file pointer to get repositioned
70 sm_io_tell(fp, timeout)
71 register SM_FILE_T *fp;
77 SM_REQUIRE_ISA(fp, SmFileMagic);
78 if (fp->f_seek == NULL)
85 timeout = fp->f_timeout;
102 (void) sm_flush(fp, (int *) &timeout);
116 if (fp->f_flags & SMOFF)
117 pos = fp->f_lseekoff;
121 pos = (*fp->f_seek)(fp, (off_t) 0, SM_IO_SEEK_CUR);
125 if (fp->f_flags & SMRD)
133 pos -= fp->f_r;
134 if (HASUB(fp))
135 pos -= fp->f_ur;
137 else if (fp->f_flags & SMWR && fp->f_p != NULL)
145 pos += fp->f_p - fp->f_bf.smb_base;