opens the master clone device, /dev/ptmx ; see pts (4).) After performing any program-specific initializations ... forkpty (3), openpty (3), termios (3), pts