Lines Matching refs:shf
544 s->u.shf = shf_open(s->file, O_RDONLY | O_MAYEXEC, 0, in main_init()
546 if (s->u.shf == NULL) { in main_init()
558 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0), in main_init()
564 s->u.shf->flags |= SHF_INTERRUPT; in main_init()
769 struct shf *shf; in include() local
774 shf = shf_open(name, O_RDONLY | O_MAYEXEC, 0, SHF_MAPHI | SHF_CLEXEC); in include()
775 if (shf == NULL) in include()
787 quitenv(s ? s->u.shf : NULL); in include()
821 s->u.shf = shf; in include()
824 quitenv(s->u.shf); in include()
1054 quitenv(struct shf *shf) in quitenv() argument
1105 if (shf) in quitenv()
1106 shf_close(shf); in quitenv()
1127 if (shf) in quitenv()
1128 shf_close(shf); in quitenv()
1502 struct shf shf_iob[NSHF_IOB];
1761 tp->shf = NULL; in maketemp()
1805 tp->shf = shf_fdopen(i, j, NULL); in maketemp()
2067 struct shf *shf; in init_environ() local
2082 if (!(shf = shf_open(xp, O_RDONLY, 0, 0))) { in init_environ()
2096 while ((n = shf_read(xp, Xnleft(xs, xp), shf)) > 0) { in init_environ()
2105 cstrerror(shf_errno(shf))); in init_environ()
2112 shf_close(shf); in init_environ()