Line | |
---|
1 | .TH OPENPTY 3 "May 15, 1985"
|
---|
2 | .AT 3
|
---|
3 | .SH NAME
|
---|
4 | openpty \- library call to obtain a pty
|
---|
5 | .SH SYNOPSIS
|
---|
6 | .nf
|
---|
7 | .ft B
|
---|
8 | #include <libutil.h>
|
---|
9 |
|
---|
10 | int openpty(int *\fIamaster\fP, int *\fIaslave\fP, char *\fIname\fP, struct termios *\fItermp\fP, struct winsize *\fIwinp\fP)
|
---|
11 | .ft R
|
---|
12 | .fi
|
---|
13 | .SH DESCRIPTION
|
---|
14 | .B Openpty
|
---|
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.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.