Lines Matching refs:shf
45 struct shf *shf; member
426 struct shf shf; in expand() local
428 shf_sopen(NULL, 0, SHF_WR|SHF_DYNAMIC, &shf); in expand()
429 print_value_quoted(&shf, str_val(st->var)); in expand()
430 x.str = shf_sclose(&shf); in expand()
850 if (x.u.shf == NULL) { in expand()
860 while ((c = shf_getc(x.u.shf)) == 0 || c == '\n') in expand()
865 shf_ungetc(c, x.u.shf); in expand()
872 if (x.u.shf) in expand()
873 shf_close(x.u.shf); in expand()
1302 struct shf *shf; in comsub() local
1329 shf = shf_open(name = evalstr(io->ioname, DOTILDE), O_RDONLY, in comsub()
1331 if (shf == NULL) in comsub()
1343 if (!tf->shf) { in comsub()
1348 shf = tf->shf; in comsub()
1353 ksh_dup2(shf_fileno(shf), 1, false); in comsub()
1361 lseek(shf_fileno(shf), (off_t)0, SEEK_SET); in comsub()
1371 shf = shf_fdopen(pv[0], SHF_RD, NULL); in comsub()
1384 xp->u.shf = shf; in comsub()