Lines Matching refs:fp
52 sm_stdioopen(fp, info, flags, rpool) in sm_stdioopen() argument
53 SM_FILE_T *fp; in sm_stdioopen()
100 fp->f_cookie = s;
115 setup(fp) in setup() argument
116 SM_FILE_T *fp; in setup()
118 if (fp->f_cookie == NULL)
120 switch (fp->f_ival)
123 fp->f_cookie = stdin;
126 fp->f_cookie = stdout;
129 fp->f_cookie = stderr;
132 sm_abort("fp->f_ival=%d: out of range (0...2)", fp->f_ival);
151 sm_stdioread(fp, buf, n) in sm_stdioread() argument
152 SM_FILE_T *fp; in sm_stdioread()
158 if (fp->f_cookie == NULL)
159 setup(fp);
160 s = fp->f_cookie;
177 sm_stdiowrite(fp, buf, n) in sm_stdiowrite() argument
178 SM_FILE_T *fp; in sm_stdiowrite()
184 if (fp->f_cookie == NULL)
185 setup(fp);
186 s = fp->f_cookie;
203 sm_stdioseek(fp, offset, whence) in sm_stdioseek() argument
204 SM_FILE_T *fp; in sm_stdioseek()
210 if (fp->f_cookie == NULL)
211 setup(fp);
212 s = fp->f_cookie;
227 sm_stdioclose(fp) in sm_stdioclose() argument
228 SM_FILE_T *fp; in sm_stdioclose()
232 if (fp->f_cookie == NULL)
233 setup(fp);
234 s = fp->f_cookie;
253 sm_stdiosetinfo(fp, what, valp) in sm_stdiosetinfo() argument
254 SM_FILE_T *fp; in sm_stdiosetinfo()
282 sm_stdiogetinfo(fp, what, valp) in sm_stdiogetinfo() argument
283 SM_FILE_T *fp; in sm_stdiogetinfo()
294 if (fp->f_cookie == NULL)
295 setup(fp);
296 fd = fileno((FILE *) fp->f_cookie);
334 SM_FILE_T *fp; local
361 fp = sm_fp(SmFtRealStdio, ioflags, NULL);
362 fp->f_file = fd;
363 fp->f_cookie = stream;
364 return fp;