STTYF_DONE
SET(sp->sp_flags, STTYF_DONE);
CLR(sp->sp_flags, STTYF_DONE | STTYF_CDCHG |
if (ISSET(flags, STTYF_DONE)) {