OSDN Git Service

(split) LDP: Update original to LDP v3.40.
[linuxjm/LDP_man-pages.git] / original / man3 / posix_openpt.3
index 3a009b1..aa81d3c 100644 (file)
@@ -22,7 +22,7 @@
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
-.TH POSIX_OPENPT 3 2010-10-04 "" "Linux Programmer's Manual"
+.TH POSIX_OPENPT 3 2012-04-20 "" "Linux Programmer's Manual"
 .SH NAME
 posix_openpt \- open a pseudoterminal device
 .SH SYNOPSIS
 .SH NAME
 posix_openpt \- open a pseudoterminal device
 .SH SYNOPSIS
@@ -80,7 +80,9 @@ is part of the UNIX 98 pseudoterminal support (see
 .BR pts (4)).
 This function is specified in POSIX.1-2001.
 .SH NOTES
 .BR pts (4)).
 This function is specified in POSIX.1-2001.
 .SH NOTES
-This function is a recent invention in POSIX.
+The
+.BR posix_openpt ()
+function is a recent invention in POSIX.
 Some UNIX implementations that support System V
 (aka UNIX 98) pseudoterminals don't have this function, but it
 is easy to implement:
 Some UNIX implementations that support System V
 (aka UNIX 98) pseudoterminals don't have this function, but it
 is easy to implement:
@@ -94,6 +96,13 @@ posix_openpt(int flags)
 }
 .fi
 .in
 }
 .fi
 .in
+.PP
+Calling
+.BR posix_openpt ()
+creates a pathname for the corresponding pseudoterminal slave device.
+The pathname of the slave device can be obtained using
+.BR ptsname (3).
+The slave device pathname exists only as long as the master device is open.
 .SH "SEE ALSO"
 .BR open (2),
 .BR getpt (3),
 .SH "SEE ALSO"
 .BR open (2),
 .BR getpt (3),