Home | History | Annotate | Download | only in src

Lines Matching refs:iop

1283 iosetup(struct ioword *iop, struct tbl *tp)
1286 char *cp = iop->name;
1287 int iotype = iop->flag & IOTYPE;
1297 iotmp = *iop;
1321 if (Flag(FNOCLOBBER) && !(iop->flag & IOCLOB) &&
1333 u = herein(iop, NULL);
1346 X_OK | ((iop->flag & IORDUP) ? R_OK : W_OK),
1352 if (u == iop->unit)
1378 if (e->savefd[iop->unit] == 0) {
1380 if (u == iop->unit)
1381 e->savefd[iop->unit] = -1;
1385 * redirections. Ask savefd() not to close iop->unit;
1386 * this allows error messages to be seen if iop->unit
1390 e->savefd[iop->unit] = savefd(iop->unit);
1394 close(iop->unit);
1395 else if (u != iop->unit) {
1396 if (ksh_dup2(u, iop->unit, true) < 0) {
1415 if (iop->flag & IORDUP)
1469 herein(struct ioword *iop, char **resbuf)
1477 if (iop->heredoc == NULL) {
1484 i = (iop->flag & IOEVAL) ? (ONEWORD | HEREDOC) : 0;
1488 return (hereinval(iop->heredoc, i, resbuf, NULL));
1505 if (hereinval(iop->heredoc, i, NULL, shf) == -2) {