Source-Changes archive

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

CVS commit: basesrc



Module Name:    basesrc
Committed By:   tls
Date:           Sat Feb  2 05:48:31 UTC 2002

Modified Files:
        basesrc/etc/etc.i386: MAKEDEV
        basesrc/lib/libutil: pty.c

Log Message:
Add support for up to 930 pty devices (instead of the current 256).

The openpty() routine has been modified to use the extra pty names
before the "traditional" names, so that programs too dumb to use
openpty() will, hopefully, find one of the "traditional" ptys free
even if many others are in use.  The modifications to MAKEDEV are
courtesy Andrew Brown, and are pretty clever: the unit numbers used
by the "traditional" names stay the same, to avoid trouble when
upgrading existing systems.  The unusual use of "dd" to index an
array in MAKEDEV is because no other simple method seemed feasible
using only the programs on the install media for all ports.


To generate a diff of this commit:
cvs rdiff -r1.159 -r1.160 basesrc/etc/etc.i386/MAKEDEV
cvs rdiff -r1.17 -r1.18 basesrc/lib/libutil/pty.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index