Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil Mention how big the name can be.
details: https://anonhg.NetBSD.org/src/rev/8521f8fa8d19
branches: trunk
changeset: 780421:8521f8fa8d19
user: christos <christos%NetBSD.org@localhost>
date: Mon Jul 23 02:21:14 2012 +0000
description:
Mention how big the name can be.
diffstat:
lib/libutil/openpty.3 | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r b448cd119a0e -r 8521f8fa8d19 lib/libutil/openpty.3
--- a/lib/libutil/openpty.3 Mon Jul 23 01:31:01 2012 +0000
+++ b/lib/libutil/openpty.3 Mon Jul 23 02:21:14 2012 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: openpty.3,v 1.14 2008/11/28 07:17:17 dholland Exp $
+.\" $NetBSD: openpty.3,v 1.15 2012/07/23 02:21:14 christos 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 November 28, 2008
+.Dd July 22, 2012
.Dt OPENPTY 3
.Os
.Sh NAME
@@ -68,6 +68,17 @@
.Fa name
is non-null, the filename of the slave is returned in
.Fa name .
+The length of
+.Fa name
+is limited to
+.Dv 16
+characters in the current
+.Xr ptm 4
+device driver (including the terminating
+.Dv NUL )
+which limits the maximum to
+.Dv 100,000
+ptys.
If
.Fa termp
is non-null, the terminal parameters of the slave will be set to the
Home |
Main Index |
Thread Index |
Old Index