diff options
author | jkh <jkh@FreeBSD.org> | 1995-02-09 11:10:02 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-02-09 11:10:02 +0000 |
commit | 05810ff0eddb79450a100ae0d9db75e405d8d6be (patch) | |
tree | 87a372b2716118f6f8e5a1c406d9a3e0030d29a3 /etc | |
parent | b526ea331c411b1aab50c065205e7bf1eff4d7c2 (diff) | |
download | FreeBSD-src-05810ff0eddb79450a100ae0d9db75e405d8d6be.zip FreeBSD-src-05810ff0eddb79450a100ae0d9db75e405d8d6be.tar.gz |
Device entries for >32 PTYs.
Submitted by: Heikki Suonsivu <hsu@cs.hut.fi>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/MAKEDEV | 33 | ||||
-rw-r--r-- | etc/etc.i386/MAKEDEV | 33 |
2 files changed, 40 insertions, 26 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 46b326a..33c9205 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -55,7 +55,7 @@ # cua* dialout serial ports # # Pseudo terminals: -# pty* set of 16 master and slave pseudo terminals +# pty* set of 32 master and slave pseudo terminals # vty* virtual terminals using syscons/pcvt/codrv console # # Printers: @@ -76,7 +76,7 @@ # tun Tunneling IP device # spigot Video Spigot video aquisition card # -# $Id: MAKEDEV,v 1.64 1995/02/01 23:15:11 jkh Exp $ +# $Id: MAKEDEV,v 1.65 1995/02/07 12:07:18 jkh Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin: @@ -395,21 +395,28 @@ pty*) class=`expr $i : 'pty\(.*\)'` case $class in 0) offset=0 name=p;; - 1) offset=16 name=q;; - 2) offset=32 name=r;; - 3) offset=48 name=s;; -# Note that telnetd, rlogind, and xterm (at least) only look at p-s. - 4) offset=64 name=t;; + 1) offset=32 name=q;; + 2) offset=64 name=r;; + 3) offset=96 name=s;; +# Note that xterm (at least) only look at p-s. + 4) offset=128 name=P;; + 5) offset=160 name=Q;; + 6) offset=192 name=R;; + 7) offset=224 name=S;; + # This still leaves [tuTU]. *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7) umask 0 - eval `echo $offset $name | awk ' { b=$1; n=$2 } END { - for (i = 0; i < 16; i++) - printf("rm -f tty%s%x; mknod tty%s%x c 5 %d; \ - rm -f pty%s%x; mknod pty%s%x c 6 %d; ", \ - n, i, n, i, b+i, n, i, n, i, b+i); }'` + eval `echo $offset $name | awk ' { b=$1; n=$2 } END { \ + for (i = 0; i < 32; i++) { \ + c = substr("0123456789abcdefghijklmnopqrstuv", i + 1, 1); \ + printf("rm -f tty%s%s; mknod tty%s%s c 5 %d; \ + rm -f pty%s%s; mknod pty%s%s c 6 %d; ", \ + n, c, n, c, b+i, n, c, n, c, b+i); \ + } \ + }'` umask 77 ;; esac diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index 46b326a..33c9205 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/MAKEDEV @@ -55,7 +55,7 @@ # cua* dialout serial ports # # Pseudo terminals: -# pty* set of 16 master and slave pseudo terminals +# pty* set of 32 master and slave pseudo terminals # vty* virtual terminals using syscons/pcvt/codrv console # # Printers: @@ -76,7 +76,7 @@ # tun Tunneling IP device # spigot Video Spigot video aquisition card # -# $Id: MAKEDEV,v 1.64 1995/02/01 23:15:11 jkh Exp $ +# $Id: MAKEDEV,v 1.65 1995/02/07 12:07:18 jkh Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin: @@ -395,21 +395,28 @@ pty*) class=`expr $i : 'pty\(.*\)'` case $class in 0) offset=0 name=p;; - 1) offset=16 name=q;; - 2) offset=32 name=r;; - 3) offset=48 name=s;; -# Note that telnetd, rlogind, and xterm (at least) only look at p-s. - 4) offset=64 name=t;; + 1) offset=32 name=q;; + 2) offset=64 name=r;; + 3) offset=96 name=s;; +# Note that xterm (at least) only look at p-s. + 4) offset=128 name=P;; + 5) offset=160 name=Q;; + 6) offset=192 name=R;; + 7) offset=224 name=S;; + # This still leaves [tuTU]. *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7) umask 0 - eval `echo $offset $name | awk ' { b=$1; n=$2 } END { - for (i = 0; i < 16; i++) - printf("rm -f tty%s%x; mknod tty%s%x c 5 %d; \ - rm -f pty%s%x; mknod pty%s%x c 6 %d; ", \ - n, i, n, i, b+i, n, i, n, i, b+i); }'` + eval `echo $offset $name | awk ' { b=$1; n=$2 } END { \ + for (i = 0; i < 32; i++) { \ + c = substr("0123456789abcdefghijklmnopqrstuv", i + 1, 1); \ + printf("rm -f tty%s%s; mknod tty%s%s c 5 %d; \ + rm -f pty%s%s; mknod pty%s%s c 6 %d; ", \ + n, c, n, c, b+i, n, c, n, c, b+i); \ + } \ + }'` umask 77 ;; esac |