Lines Matching defs:fp2
232 SM_FILE_T *fp2;
289 fp2 = sm_fp(type, ioflags, fp);
290 ret = (*fp2->f_open)(fp2, info, flags, rpool);
298 fp2->f_flags = 0; /* release */
299 fp2->sm_magic = NULL; /* release */
315 sm_rpool_attach_x(rpool, sm_io_close, fp2);
318 return fp2;
323 ** When a read occurs on fp, fp2 will be flushed iff there is no
328 ** fp2 -- the file opened for writing.
335 sm_io_autoflush(fp, fp2)
337 SM_FILE_T *fp2;
342 if (fp2 != NULL)
343 SM_REQUIRE_ISA(fp2, SmFileMagic);
346 fp->f_flushfp = fp2;
353 ** update fp2's mode at the same time. This is to be used when
360 ** fp2 -- the second file
367 sm_io_automode(fp1, fp2)
369 SM_FILE_T *fp2;
372 SM_REQUIRE_ISA(fp2, SmFileMagic);
374 fp1->f_modefp = fp2;
375 fp2->f_modefp = fp1;