_needsync
if (_needsync(iop, bufend))
if (_needsync(iop, bufend)) /* recover from interrupts */
if (_needsync(iop, bufend))
if (_needsync(stdin, bufend))
if (_needsync(stdout, bufend))