Lines Matching defs:shf
483 s->u.shf = shf_open(s->file, O_RDONLY, 0,
485 if (s->u.shf == NULL) {
497 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0),
503 s->u.shf->flags |= SHF_INTERRUPT;
677 struct shf *shf;
682 shf = shf_open(name, O_RDONLY, 0, SHF_MAPHI | SHF_CLEXEC);
683 if (shf == NULL)
695 quitenv(s ? s->u.shf : NULL);
728 s->u.shf = shf;
731 quitenv(s->u.shf);
951 quitenv(struct shf *shf)
1002 if (shf)
1003 shf_close(shf);
1020 if (shf)
1021 shf_close(shf);
1355 struct shf shf_iob[NSHF_IOB];
1608 tp->shf = NULL;
1657 tp->shf = shf_fdopen(i, SHF_WR, NULL);