]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit - sys/kern/tty.c
MFC: r294362, r294414, r294753
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Jan 2016 22:48:04 +0000 (22:48 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Jan 2016 22:48:04 +0000 (22:48 +0000)
commita99e46f1b663a5acc3d225a494f4dee4ee72bc11
tree9f35e08c97350406026bf3cc3da682a658e8b035
parent3cca592e163697487ecd2837325e1e8135d06bba
MFC: r294362, r294414, r294753

- Fix tty_drain() and, thus, TIOCDRAIN of the current tty(4) incarnation
  to actually wait until the TX FIFOs of UARTs have be drained before
  returning. This is done by bringing the equivalent of the TS_BUSY flag
  found in the previous implementation back in an ABI-preserving way.
  Reported and tested by: Patrick Powell
- Make the code consistent with itself style-wise and bring it closer
  to style(9).
- Mark unused arguments as such.
- Make the ttystates table const.

git-svn-id: svn://svn.freebsd.org/base/stable/10@294959 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/uart/uart_tty.c
sys/kern/tty.c
sys/sys/ttydevsw.h