Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libutil mention PATH_MAX instead of 16.



details:   https://anonhg.NetBSD.org/src/rev/c89c123bc6c2
branches:  trunk
changeset: 780517:c89c123bc6c2
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jul 27 21:33:46 2012 +0000

description:
mention PATH_MAX instead of 16.

diffstat:

 lib/libutil/openpty.3 |  22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diffs (43 lines):

diff -r 162ccbbe93a5 -r c89c123bc6c2 lib/libutil/openpty.3
--- a/lib/libutil/openpty.3     Fri Jul 27 21:28:24 2012 +0000
+++ b/lib/libutil/openpty.3     Fri Jul 27 21:33:46 2012 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: openpty.3,v 1.16 2012/07/27 18:22:04 wiz Exp $
+.\"    $NetBSD: openpty.3,v 1.17 2012/07/27 21:33:46 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 July 22, 2012
+.Dd July 27, 2012
 .Dt OPENPTY 3
 .Os
 .Sh NAME
@@ -71,14 +71,16 @@
 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.
+.Dv PATH_MAX
+as any other regular path name, so a buffer of this size should be used.
+.\" .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