forkpty
extern pid_t forkpty(int* master, char* name,
if ((pid = forkpty(&fd, NULL, NULL, NULL)) < 0)