shared termios and constants for freebsd