Lines Matching refs:shf
46 struct shf *shf; member
814 struct shf shf; in expand() local
816 shf_sopen(NULL, 0, SHF_WR|SHF_DYNAMIC, &shf); in expand()
817 print_value_quoted(&shf, str_val(st->var)); in expand()
818 x.str = shf_sclose(&shf); in expand()
998 if (x.u.shf == NULL) { in expand()
1008 while ((c = shf_getc(x.u.shf)) == 0 || in expand()
1012 c = shf_getc(x.u.shf); in expand()
1017 shf_ungetc(c, x.u.shf); in expand()
1030 shf_ungetc(c, x.u.shf); in expand()
1037 if (x.u.shf) in expand()
1038 shf_close(x.u.shf); in expand()
1524 struct shf *shf; in comsub() local
1561 shf = shf_open(name = evalstr(io->ioname, DOTILDE), in comsub()
1563 if (shf == NULL) in comsub()
1578 shf = NULL; in comsub()
1593 if (!tf->shf) { in comsub()
1598 shf = tf->shf; in comsub()
1603 ksh_dup2(shf_fileno(shf), 1, false); in comsub()
1611 lseek(shf_fileno(shf), (off_t)0, SEEK_SET); in comsub()
1621 shf = shf_fdopen(pv[0], SHF_RD, NULL); in comsub()
1634 xp->u.shf = shf; in comsub()