Lines Matching refs:fp
30 ** fp -- the file to be buffered
40 sm_makebuf(fp)
41 register SM_FILE_T *fp;
48 if (fp->f_flags & SMNBF)
50 fp->f_bf.smb_base = fp->f_p = fp->f_nbuf;
51 fp->f_bf.smb_size = 1;
54 flags = sm_whatbuf(fp, &size, &couldbetty);
57 fp->f_flags |= SMNBF;
58 fp->f_bf.smb_base = fp->f_p = fp->f_nbuf;
59 fp->f_bf.smb_size = 1;
65 fp->f_bf.smb_base = fp->f_p = p;
66 fp->f_bf.smb_size = size;
67 if (couldbetty && isatty(fp->f_file))
69 fp->f_flags |= flags;
76 ** fills in flag to indicate if 'fp' could be a tty (nothing
80 ** fp -- file pointer to be buffered
92 sm_whatbuf(fp, bufsize, couldbetty)
93 register SM_FILE_T *fp;
99 if (fp->f_file < 0 || fstat(fp->f_file, &st) < 0)
142 if ((fp->f_flags & SMSTR) == 0)
145 fp->f_blksize = st.st_blksize;
150 fp->f_seek == sm_stdseek)