Lines Matching refs:fp
63 ** fp -- the file pointer to get repositioned
72 sm_io_tell(fp, timeout)
73 register SM_FILE_T *fp;
79 SM_REQUIRE_ISA(fp, SmFileMagic);
80 if (fp->f_seek == NULL)
87 timeout = fp->f_timeout;
104 (void) sm_flush(fp, (int *) &timeout);
118 if (fp->f_flags & SMOFF)
119 pos = fp->f_lseekoff;
123 pos = (*fp->f_seek)(fp, (off_t) 0, SM_IO_SEEK_CUR);
127 if (fp->f_flags & SMRD)
135 pos -= fp->f_r;
136 if (HASUB(fp))
137 pos -= fp->f_ur;
139 else if (fp->f_flags & SMWR && fp->f_p != NULL)
147 pos += fp->f_p - fp->f_bf.smb_base;