From 82fae659b0c729f0aace9e067a8c343eaf1ddc28 Mon Sep 17 00:00:00 2001 From: dugsong <> Date: Thu, 19 Nov 1998 08:18:59 +0000 Subject: [PATCH] add support for more ptys --- src/etc/etc.alpha/MAKEDEV | 15 +++++++++++++-- src/etc/etc.amiga/MAKEDEV | 15 +++++++++++++-- src/etc/etc.arc/MAKEDEV | 15 +++++++++++++-- src/etc/etc.arm32/MAKEDEV | 15 +++++++++++++-- src/etc/etc.atari/MAKEDEV | 13 ++++++++++++- src/etc/etc.hp300/MAKEDEV | 15 +++++++++++++-- src/etc/etc.i386/MAKEDEV | 15 +++++++++++++-- src/etc/etc.mac68k/MAKEDEV | 15 +++++++++++++-- src/etc/etc.mvme68k/MAKEDEV | 17 ++++++++++++++--- src/etc/etc.mvme88k/MAKEDEV | 13 ++++++++++++- src/etc/etc.pc532/MAKEDEV | 15 +++++++++++++-- src/etc/etc.pmax/MAKEDEV | 15 +++++++++++++-- src/etc/etc.powerpc/MAKEDEV | 15 +++++++++++++-- src/etc/etc.sparc/MAKEDEV | 15 +++++++++++++-- src/etc/etc.sun3/MAKEDEV | 13 ++++++++++++- src/etc/etc.vax/MAKEDEV | 14 ++++++++++++-- src/etc/etc.wgrisc/MAKEDEV | 15 +++++++++++++-- src/etc/etc.x68k/MAKEDEV | 17 ++++++++++++++--- 18 files changed, 232 insertions(+), 35 deletions(-) diff --git a/src/etc/etc.alpha/MAKEDEV b/src/etc/etc.alpha/MAKEDEV index 1b24a38f..ce079b6f 100644 --- a/src/etc/etc.alpha/MAKEDEV +++ b/src/etc/etc.alpha/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.39 1998/09/25 11:11:58 todd Exp $ +# $OpenBSD: MAKEDEV,v 1.40 1998/11/19 08:18:55 dugsong Exp $ # $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -333,10 +333,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 n=0 while [ $n -lt 16 ] diff --git a/src/etc/etc.amiga/MAKEDEV b/src/etc/etc.amiga/MAKEDEV index 52309202..54b2d87a 100644 --- a/src/etc/etc.amiga/MAKEDEV +++ b/src/etc/etc.amiga/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.39 1998/10/15 21:24:52 art Exp $ +# $OpenBSD: MAKEDEV,v 1.40 1998/11/19 08:18:56 dugsong Exp $ # $NetBSD: MAKEDEV,v 1.21 1996/05/19 21:03:49 veego Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -529,10 +529,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 n=0 while [ $n -lt 16 ] diff --git a/src/etc/etc.arc/MAKEDEV b/src/etc/etc.arc/MAKEDEV index f22d38e7..0cdbddeb 100644 --- a/src/etc/etc.arc/MAKEDEV +++ b/src/etc/etc.arc/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.28 1998/09/25 11:11:58 todd Exp $ +# $OpenBSD: MAKEDEV,v 1.29 1998/11/19 08:18:56 dugsong Exp $ # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @@ -412,10 +412,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 n=0 while [ $n -lt 16 ] diff --git a/src/etc/etc.arm32/MAKEDEV b/src/etc/etc.arm32/MAKEDEV index 374c7679..b10cf657 100644 --- a/src/etc/etc.arm32/MAKEDEV +++ b/src/etc/etc.arm32/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.13 1998/09/25 11:11:59 todd Exp $ +# $OpenBSD: MAKEDEV,v 1.14 1998/11/19 08:18:56 dugsong Exp $ # $NetBSD: MAKEDEV,v 1.3 1996/04/26 20:10:24 mark Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -226,10 +226,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 eval `echo $offset $name | awk ' { b=$1; n=$2 } END { for (i = 0; i < 16; i++) diff --git a/src/etc/etc.atari/MAKEDEV b/src/etc/etc.atari/MAKEDEV index 708ea36b..13b4fe85 100644 --- a/src/etc/etc.atari/MAKEDEV +++ b/src/etc/etc.atari/MAKEDEV @@ -396,10 +396,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 (i=0; while [ $i -lt 16 ]; do eval `printf "rm -f tty%s%x; mknod tty%s%x c 4 %d; \ diff --git a/src/etc/etc.hp300/MAKEDEV b/src/etc/etc.hp300/MAKEDEV index 49194979..271a2a6c 100644 --- a/src/etc/etc.hp300/MAKEDEV +++ b/src/etc/etc.hp300/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.28 1998/10/15 21:24:53 art Exp $ +# $OpenBSD: MAKEDEV,v 1.29 1998/11/19 08:18:56 dugsong Exp $ # $NetBSD: MAKEDEV,v 1.12 1995/11/05 23:50:22 thorpej Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -457,10 +457,21 @@ pty*) 2) offset=32 name=r;; 3) offset=48 name=s;; 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 n=0 while [ $n -lt 16 ] diff --git a/src/etc/etc.i386/MAKEDEV b/src/etc/etc.i386/MAKEDEV index 2e6b592a..f69a8043 100644 --- a/src/etc/etc.i386/MAKEDEV +++ b/src/etc/etc.i386/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.65 1998/09/15 21:54:53 deraadt Exp $ +# $OpenBSD: MAKEDEV,v 1.66 1998/11/19 08:18:57 dugsong Exp $ # $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -378,10 +378,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 n=0 while [ $n -lt 16 ] diff --git a/src/etc/etc.mac68k/MAKEDEV b/src/etc/etc.mac68k/MAKEDEV index 35c62829..9b9bc428 100644 --- a/src/etc/etc.mac68k/MAKEDEV +++ b/src/etc/etc.mac68k/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.26 1998/10/15 21:24:53 art Exp $ +# $OpenBSD: MAKEDEV,v 1.27 1998/11/19 08:18:57 dugsong Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -285,10 +285,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 n=0 while [ $n -lt 16 ] diff --git a/src/etc/etc.mvme68k/MAKEDEV b/src/etc/etc.mvme68k/MAKEDEV index d7197244..79bc6eac 100644 --- a/src/etc/etc.mvme68k/MAKEDEV +++ b/src/etc/etc.mvme68k/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.25 1998/09/23 07:30:57 todd Exp $ +# $OpenBSD: MAKEDEV,v 1.26 1998/11/19 08:18:57 dugsong Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -33,7 +33,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $OpenBSD: MAKEDEV,v 1.25 1998/09/23 07:30:57 todd Exp $ +# $OpenBSD: MAKEDEV,v 1.26 1998/11/19 08:18:57 dugsong Exp $ # # Device "make" file. Valid arguments: # all makes all known devices, including local devices, @@ -363,10 +363,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 eval `echo $offset $name | awk ' { b=$1; n=$2 } END { for (i = 0; i < 16; i++) diff --git a/src/etc/etc.mvme88k/MAKEDEV b/src/etc/etc.mvme88k/MAKEDEV index bbefc731..25b6b694 100644 --- a/src/etc/etc.mvme88k/MAKEDEV +++ b/src/etc/etc.mvme88k/MAKEDEV @@ -187,10 +187,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 eval `echo $offset $name | awk ' { b=$1; n=$2 } END { for (i = 0; i < 16; i++) diff --git a/src/etc/etc.pc532/MAKEDEV b/src/etc/etc.pc532/MAKEDEV index 5bb2bc0b..32b2f5f2 100644 --- a/src/etc/etc.pc532/MAKEDEV +++ b/src/etc/etc.pc532/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.14 1998/09/15 10:23:22 pattonme Exp $ +# $OpenBSD: MAKEDEV,v 1.15 1998/11/19 08:18:57 dugsong Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -188,10 +188,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 eval `echo $offset $name | awk ' { b=$1; n=$2 } END { for (i = 0; i < 16; i++) diff --git a/src/etc/etc.pmax/MAKEDEV b/src/etc/etc.pmax/MAKEDEV index 20eb7517..a2717002 100644 --- a/src/etc/etc.pmax/MAKEDEV +++ b/src/etc/etc.pmax/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.28 1998/11/09 05:56:50 millert Exp $ +# $OpenBSD: MAKEDEV,v 1.29 1998/11/19 08:18:57 dugsong Exp $ # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @@ -348,10 +348,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 n=0 while [ $n -lt 16 ] diff --git a/src/etc/etc.powerpc/MAKEDEV b/src/etc/etc.powerpc/MAKEDEV index e7b25f5b..c0c79d85 100644 --- a/src/etc/etc.powerpc/MAKEDEV +++ b/src/etc/etc.powerpc/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.24 1998/10/15 21:24:53 art Exp $ +# $OpenBSD: MAKEDEV,v 1.25 1998/11/19 08:18:58 dugsong Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -314,10 +314,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 n=0 while [ $n -lt 16 ] diff --git a/src/etc/etc.sparc/MAKEDEV b/src/etc/etc.sparc/MAKEDEV index 3dd84203..b1cd217d 100644 --- a/src/etc/etc.sparc/MAKEDEV +++ b/src/etc/etc.sparc/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.51 1998/10/16 16:50:16 marc Exp $ +# $OpenBSD: MAKEDEV,v 1.52 1998/11/19 08:18:58 dugsong Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -573,10 +573,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $unit in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 n=0 while [ $n -lt 16 ] diff --git a/src/etc/etc.sun3/MAKEDEV b/src/etc/etc.sun3/MAKEDEV index af293f29..46f2731e 100644 --- a/src/etc/etc.sun3/MAKEDEV +++ b/src/etc/etc.sun3/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.24 1998/10/15 21:24:53 art Exp $ +# $OpenBSD: MAKEDEV,v 1.25 1998/11/19 08:18:58 dugsong Exp $ # $NetBSD: MAKEDEV,v 1.8 1996/03/03 16:54:17 thorpej Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -149,6 +149,17 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $arg;; esac for pair in 0.0 1.1 2.2 3.3 4.4 5.5 6.6 7.7 \ diff --git a/src/etc/etc.vax/MAKEDEV b/src/etc/etc.vax/MAKEDEV index 195a9f33..0fc7c0b7 100644 --- a/src/etc/etc.vax/MAKEDEV +++ b/src/etc/etc.vax/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.16 1998/09/15 10:23:23 pattonme Exp $ +# $OpenBSD: MAKEDEV,v 1.17 1998/11/19 08:18:58 dugsong Exp $ # $NetBSD: MAKEDEV,v 1.3 1996/01/07 16:53:15 ragge Exp $ # # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 @@ -413,10 +413,20 @@ pty*) 3) offset=48 name=s;; 4) offset=64 name=t;; 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4|5) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 eval `echo $offset $name | awk ' { b=$1; n=$2 } END { for (i = 0; i < 16; i++) diff --git a/src/etc/etc.wgrisc/MAKEDEV b/src/etc/etc.wgrisc/MAKEDEV index c7c026d6..24c3654d 100644 --- a/src/etc/etc.wgrisc/MAKEDEV +++ b/src/etc/etc.wgrisc/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.6 1997/09/16 06:01:05 deraadt Exp $ +# $OpenBSD: MAKEDEV,v 1.7 1998/11/19 08:18:58 dugsong Exp $ # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @@ -228,10 +228,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 eval `echo $offset $name | awk ' { b=$1; n=$2 } END { for (i = 0; i < 16; i++) diff --git a/src/etc/etc.x68k/MAKEDEV b/src/etc/etc.x68k/MAKEDEV index 4d082f57..0f542853 100644 --- a/src/etc/etc.x68k/MAKEDEV +++ b/src/etc/etc.x68k/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.10 1997/09/16 03:03:05 deraadt Exp $ +# $OpenBSD: MAKEDEV,v 1.11 1998/11/19 08:18:59 dugsong Exp $ # $NetBSD: MAKEDEV,v 1.1.1.1.4.1 1996/06/17 02:36:16 oki Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -34,7 +34,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $Id: MAKEDEV,v 1.10 1997/09/16 03:03:05 deraadt Exp $ +# $Id: MAKEDEV,v 1.11 1998/11/19 08:18:59 dugsong Exp $ # # from: # hp300/MAKEDEV (1/15/94), from: @@ -432,10 +432,21 @@ pty*) 3) offset=48 name=s;; # Note that telnetd, rlogind, and xterm (at least) only look at p-s. 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; *) echo bad unit for pty in: $i;; esac case $class in - 0|1|2|3|4) + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) umask 0 (i=0; while [ $i -lt 16 ]; do eval `printf "rm -f tty%s%x; mknod tty%s%x c 4 %d; \