openpty
extern int openpty(int* master, int* slave, char* name,
if (openpty(&master, &slave, name, termAttrs, windowSize) != 0)