IOTYPE
if ((io->flag&IOTYPE) != IOREAD)
int iotype = iop->flag & IOTYPE;
ishere = (iop->flag&IOTYPE) == IOHERE;
if ((iop->flag & IOTYPE) == IOHERE && iop->heredoc) {
int type = flag & IOTYPE;