ioctl cleanups, more tty port