pty_allocate
res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty));
int pty_allocate(int *, int *, char *, size_t);