source: trunk/minix/man/man3/openpty.3@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 531 bytes
Line 
1.TH OPENPTY 3 "May 15, 1985"
2.AT 3
3.SH NAME
4openpty \- library call to obtain a pty
5.SH SYNOPSIS
6.nf
7.ft B
8#include <libutil.h>
9
10int 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
15tries to obtain pty file descriptors by opening /dev/ttypX and
16/dev/ptypX, setting *\fIamaster\fP and *\fIaslave\fP to these fd's,
17changing ownership of the slave pty to the current process, and making
18it only group-writable by group tty.
Note: See TracBrowser for help on using the repository browser.