From Bde:
o Removed references to TS_WOPEN (the one for hanging up was
simply wrong for case of TS_WOPEN and TS_ISOPEN set (aborted
open clobbers successful open, and TS_ISOPEN unset more or
less corresponds to TS_WOPEN set).
o Unique name for sleep address ("comdcd" not ttopen[]).
o Use tsleep() instead of ttysleep(). Neither is quite right
(revoking of tty for another open() shouldn't cause incomplete
open to fail; comopen() should reinitialize after sleeping
unless port is already open).
o Use ttwwakeup() to handle write-wakeups consistently.
o Removed comselect(). It just duplicated ttselect().