new makefile and standard-form declarations as per DMC <dmcnash@rfm.com>
added locking on tty_flush_buffer
added flush_buffer routine for line discipline
add back spinlock accidentally removed
added ioctl