Lines Matching refs:shf
483 s->u.shf = shf_open(s->file, O_RDONLY, 0, in main_init()
485 if (s->u.shf == NULL) { in main_init()
497 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0), in main_init()
503 s->u.shf->flags |= SHF_INTERRUPT; in main_init()
679 struct shf *shf; in include() local
684 shf = shf_open(name, O_RDONLY, 0, SHF_MAPHI | SHF_CLEXEC); in include()
685 if (shf == NULL) in include()
697 quitenv(s ? s->u.shf : NULL); in include()
730 s->u.shf = shf; in include()
733 quitenv(s->u.shf); in include()
956 quitenv(struct shf *shf) in quitenv() argument
1007 if (shf) in quitenv()
1008 shf_close(shf); in quitenv()
1029 if (shf) in quitenv()
1030 shf_close(shf); in quitenv()
1372 struct shf shf_iob[NSHF_IOB];
1627 tp->shf = NULL; in maketemp()
1671 tp->shf = shf_fdopen(i, j, NULL); in maketemp()