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