From: Ben Gras Date: Tue, 19 Jul 2005 16:02:39 +0000 (+0000) Subject: Openpty() manpage X-Git-Tag: v3.1.0~589 X-Git-Url: http://zhaoyanbai.com/repos/%22https:/www.google.com/jsapi/static/gitweb.js?a=commitdiff_plain;h=7c91a50061ea1f3441dd053ccf95e9da31cbbc08;p=minix.git Openpty() manpage --- diff --git a/man/man3/openpty.3 b/man/man3/openpty.3 new file mode 100644 index 000000000..808fe9677 --- /dev/null +++ b/man/man3/openpty.3 @@ -0,0 +1,18 @@ +.TH OPENPTY 3 "May 15, 1985" +.AT 3 +.SH NAME +openpty \- library call to obtain a pty +.SH SYNOPSIS +.nf +.ft B +#include + +int openpty(int *\fIamaster\fP, int *\fIaslave\fP, char *\fIname\fP, struct termios *\fItermp\fP, struct winsize *\fIwinp\fP) +.ft R +.fi +.SH DESCRIPTION +.B Openpty +tries to obtain pty file descriptors by opening /dev/ttypX and +/dev/ptypX, setting *\fIamaster\fP and *\fIaslave\fP to these fd's, +changing ownership of the slave pty to the current process, and making +it only group-writable by group tty.