Browse Source

add support for more ptys

OPENBSD_2_5
dugsong 26 years ago
parent
commit
82fae659b0
18 changed files with 232 additions and 35 deletions
  1. +13
    -2
      src/etc/etc.alpha/MAKEDEV
  2. +13
    -2
      src/etc/etc.amiga/MAKEDEV
  3. +13
    -2
      src/etc/etc.arc/MAKEDEV
  4. +13
    -2
      src/etc/etc.arm32/MAKEDEV
  5. +12
    -1
      src/etc/etc.atari/MAKEDEV
  6. +13
    -2
      src/etc/etc.hp300/MAKEDEV
  7. +13
    -2
      src/etc/etc.i386/MAKEDEV
  8. +13
    -2
      src/etc/etc.mac68k/MAKEDEV
  9. +14
    -3
      src/etc/etc.mvme68k/MAKEDEV
  10. +12
    -1
      src/etc/etc.mvme88k/MAKEDEV
  11. +13
    -2
      src/etc/etc.pc532/MAKEDEV
  12. +13
    -2
      src/etc/etc.pmax/MAKEDEV
  13. +13
    -2
      src/etc/etc.powerpc/MAKEDEV
  14. +13
    -2
      src/etc/etc.sparc/MAKEDEV
  15. +12
    -1
      src/etc/etc.sun3/MAKEDEV
  16. +12
    -2
      src/etc/etc.vax/MAKEDEV
  17. +13
    -2
      src/etc/etc.wgrisc/MAKEDEV
  18. +14
    -3
      src/etc/etc.x68k/MAKEDEV

+ 13
- 2
src/etc/etc.alpha/MAKEDEV View File

@ -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 ]


+ 13
- 2
src/etc/etc.amiga/MAKEDEV View File

@ -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 ]


+ 13
- 2
src/etc/etc.arc/MAKEDEV View File

@ -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 ]


+ 13
- 2
src/etc/etc.arm32/MAKEDEV View File

@ -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++)


+ 12
- 1
src/etc/etc.atari/MAKEDEV View File

@ -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; \


+ 13
- 2
src/etc/etc.hp300/MAKEDEV View File

@ -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 ]


+ 13
- 2
src/etc/etc.i386/MAKEDEV View File

@ -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 ]


+ 13
- 2
src/etc/etc.mac68k/MAKEDEV View File

@ -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 ]


+ 14
- 3
src/etc/etc.mvme68k/MAKEDEV View File

@ -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++)


+ 12
- 1
src/etc/etc.mvme88k/MAKEDEV View File

@ -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++)


+ 13
- 2
src/etc/etc.pc532/MAKEDEV View File

@ -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++)


+ 13
- 2
src/etc/etc.pmax/MAKEDEV View File

@ -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 ]


+ 13
- 2
src/etc/etc.powerpc/MAKEDEV View File

@ -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 ]


+ 13
- 2
src/etc/etc.sparc/MAKEDEV View File

@ -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 ]


+ 12
- 1
src/etc/etc.sun3/MAKEDEV View File

@ -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 \


+ 12
- 2
src/etc/etc.vax/MAKEDEV View File

@ -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++)


+ 13
- 2
src/etc/etc.wgrisc/MAKEDEV View File

@ -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++)


+ 14
- 3
src/etc/etc.x68k/MAKEDEV View File

@ -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; \


Loading…
Cancel
Save