Lines Matching refs:fp
35 ** fp -- the file that buffering is to be changed for
47 sm_io_setvbuf(fp, timeout, buf, mode, size)
48 SM_FILE_T *fp;
60 SM_REQUIRE_ISA(fp, SmFileMagic);
81 SM_CONVERT_TIME(fp, fd, timeout, &to);
82 (void) sm_flush(fp, &timeout);
83 if (HASUB(fp))
84 FREEUB(fp);
85 fp->f_r = fp->f_lbfsize = 0;
86 flags = fp->f_flags;
89 sm_free((void *) fp->f_bf.smb_base);
90 fp->f_bf.smb_base = NULL;
105 flags |= sm_whatbuf(fp, &iosize, &ttyflag);
133 fp->f_flags = flags | SMNBF;
134 fp->f_w = 0;
135 fp->f_bf.smb_base = fp->f_p = fp->f_nbuf;
136 fp->f_bf.smb_size = 1;
163 fp->f_flags = flags;
164 fp->f_bf.smb_base = fp->f_p = (unsigned char *)buf;
165 fp->f_bf.smb_size = size;
166 /* fp->f_lbfsize is still 0 */
176 fp->f_w = 0;
177 fp->f_lbfsize = -fp->f_bf.smb_size;
180 fp->f_w = size;
185 fp->f_w = 0;