Lines Matching refs:iop
1404 iosetup(struct ioword *iop, struct tbl *tp) in iosetup() argument
1407 char *cp = iop->ioname; in iosetup()
1408 int iotype = iop->ioflag & IOTYPE; in iosetup()
1418 iotmp = *iop; in iosetup()
1438 if (Flag(FNOCLOBBER) && !(iop->ioflag & IOCLOB)) { in iosetup()
1468 u = herein(iop, NULL); in iosetup()
1481 X_OK | ((iop->ioflag & IORDUP) ? R_OK : W_OK), in iosetup()
1490 if (u == (int)iop->unit) { in iosetup()
1492 iop->ioflag |= IODUPSELF; in iosetup()
1530 if (e->savefd[iop->unit] == 0) { in iosetup()
1532 if (u == (int)iop->unit) in iosetup()
1533 e->savefd[iop->unit] = -1; in iosetup()
1542 e->savefd[iop->unit] = savefd(iop->unit); in iosetup()
1546 close(iop->unit); in iosetup()
1547 else if (u != (int)iop->unit) { in iosetup()
1548 if (ksh_dup2(u, iop->unit, true) < 0) { in iosetup()
1568 if (iop->ioflag & IORDUP) in iosetup()
1588 hereinval(struct ioword *iop, int sub, char **resbuf, struct shf *shf) in hereinval() argument
1590 const char * volatile ccp = iop->heredoc; in hereinval()
1601 if (iop->ioflag & IOHERESTR) { in hereinval()
1602 ccp = evalstr(iop->delim, DOHERESTR | DOSCALAR); in hereinval()
1624 herein(struct ioword *iop, char **resbuf) in herein() argument
1632 i = (iop->ioflag & IOEVAL) ? (ONEWORD | HEREDOC) : 0; in herein()
1636 return (hereinval(iop, i, resbuf, NULL)); in herein()
1653 if (hereinval(iop, i, NULL, shf) == -2) { in herein()