Lines Matching refs:shf
469 s->u.shf = shf_open(s->file, O_RDONLY, 0, in main_init()
471 if (s->u.shf == NULL) { in main_init()
483 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0), in main_init()
489 s->u.shf->flags |= SHF_INTERRUPT; in main_init()
665 struct shf *shf; in include() local
670 shf = shf_open(name, O_RDONLY, 0, SHF_MAPHI | SHF_CLEXEC); in include()
671 if (shf == NULL) in include()
683 quitenv(s ? s->u.shf : NULL); in include()
716 s->u.shf = shf; in include()
719 quitenv(s->u.shf); in include()
946 quitenv(struct shf *shf) in quitenv() argument
997 if (shf) in quitenv()
998 shf_close(shf); in quitenv()
1019 if (shf) in quitenv()
1020 shf_close(shf); in quitenv()
1352 struct shf shf_iob[NSHF_IOB];
1612 tp->shf = NULL; in maketemp()
1656 tp->shf = shf_fdopen(i, j, NULL); in maketemp()