Clarify that the "amaster" argument of forkpty() is only defined upon

return in the parent process, but the tty name is available to both
the parent and child. Bump date.
This commit is contained in:
dholland 2008-11-28 07:17:17 +00:00
parent bd6148602f
commit d5870e1cc6
1 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: openpty.3,v 1.13 2004/06/18 02:42:57 christos Exp $
.\" $NetBSD: openpty.3,v 1.14 2008/11/28 07:17:17 dholland Exp $
.\"
.\" Copyright (c) 1995
.\" The Regents of the University of California. All rights reserved.
@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd June 17, 2004
.Dd November 28, 2008
.Dt OPENPTY 3
.Os
.Sh NAME
@ -101,11 +101,15 @@ function combines
and
.Fn login_tty
to create a new process operating in a pseudo-tty.
The file descriptor of the master side of the pseudo-tty is returned in
.Fa amaster ,
and the filename of the slave in
The file descriptor of the master side of the pseudo-tty is returned
(to the parent process only) in
.Fa amaster .
The filename of the slave is returned (to both the parent and child
processes) in
.Fa name
if it is non-null.
if
.Fa name
is non-null.
The
.Fa termp
and