Lines Matching refs:fp
30 ** fp -- the file pointer
38 sm_wsetup(fp)
39 register SM_FILE_T *fp;
46 if ((fp->f_flags & SMWR) == 0)
48 if ((fp->f_flags & SMRW) == 0)
53 if (fp->f_flags & SMRD)
56 if (HASUB(fp))
57 FREEUB(fp);
60 fp->f_flags &= ~(SMRD|SMFEOF);
61 fp->f_r = 0;
62 fp->f_p = fp->f_bf.smb_base;
64 fp->f_flags |= SMWR;
68 if (fp->f_bf.smb_base == NULL)
69 sm_makebuf(fp);
70 if (fp->f_flags & SMLBF)
78 fp->f_w = 0;
79 fp->f_lbfsize = -fp->f_bf.smb_size;
82 fp->f_w = fp->f_flags & SMNBF ? 0 : fp->f_bf.smb_size;