1 .TH OPENPTY 3 "May 15, 1985"
4 openpty \- library call to obtain a pty
10 int openpty(int *\fIamaster\fP, int *\fIaslave\fP, char *\fIname\fP, struct termios *\fItermp\fP, struct winsize *\fIwinp\fP)
15 tries to obtain pty file descriptors by opening /dev/ttypX and
16 /dev/ptypX, setting *\fIamaster\fP and *\fIaslave\fP to these fd's,
17 changing ownership of the slave pty to the current process, and making
18 it only group-writable by group tty.