pty_fork pty_master_open and tty_functions headers and library routines