stolen by code that requests system messages using TIOCCONS.
Fixes PR port-sbmips/16229 from Ben Harris.