Browse Source

sync

OPENBSD_3_1
todd 23 years ago
parent
commit
b4d80f179d
11 changed files with 185 additions and 315 deletions
  1. +13
    -23
      src/etc/etc.alpha/MAKEDEV
  2. +13
    -23
      src/etc/etc.amiga/MAKEDEV
  3. +10
    -22
      src/etc/etc.hp300/MAKEDEV
  4. +13
    -23
      src/etc/etc.hppa/MAKEDEV
  5. +13
    -23
      src/etc/etc.i386/MAKEDEV
  6. +13
    -23
      src/etc/etc.mac68k/MAKEDEV
  7. +13
    -23
      src/etc/etc.macppc/MAKEDEV
  8. +13
    -23
      src/etc/etc.sparc/MAKEDEV
  9. +13
    -23
      src/etc/etc.sparc64/MAKEDEV
  10. +13
    -23
      src/etc/etc.sun3/MAKEDEV
  11. +58
    -86
      src/etc/etc.vax/MAKEDEV

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

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.alpha/MAKEDEV.md,v 1.7 2002/02/09 16:59:50 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.alpha/MAKEDEV.md,v 1.8 2002/02/14 13:29:20 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.74 2002/02/14 05:55:08 todd Exp $
# $OpenBSD: MAKEDEV,v 1.75 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -271,7 +271,9 @@ xfs*)
;;
ss*)
M ss$U c 32 $U 440 operator
M ss$U c 32 $(($U*16)) 640 operator
M nss$U c 32 $(($(($U*16))+1)) 640 operator
M enss$U c 32 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@ -374,29 +376,17 @@ lpt*|lpa*)
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 4 $(($off+$n))
M pty$nam c 5 $(($off+$n))
n=$(($n+1))


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

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.amiga/MAKEDEV.md,v 1.4 2002/02/09 16:59:50 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.amiga/MAKEDEV.md,v 1.5 2002/02/14 13:29:20 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.55 2002/02/14 05:55:08 todd Exp $
# $OpenBSD: MAKEDEV,v 1.56 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -340,7 +340,9 @@ uk*)
;;
ss*)
M ss$U c 25 $U 440 operator
M ss$U c 25 $(($U*16)) 640 operator
M nss$U c 25 $(($(($U*16))+1)) 640 operator
M enss$U c 25 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@ -378,29 +380,17 @@ lpt*|lpa*)
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 4 $(($off+$n))
M pty$nam c 5 $(($off+$n))
n=$(($n+1))


+ 10
- 22
src/etc/etc.hp300/MAKEDEV View File

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.hp300/MAKEDEV.md,v 1.3 2002/02/14 04:37:15 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.hp300/MAKEDEV.md,v 1.4 2002/02/14 13:29:20 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.41 2002/02/14 05:55:09 todd Exp $
# $OpenBSD: MAKEDEV,v 1.42 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -366,29 +366,17 @@ fd)
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 4 $(($off+$n))
M pty$nam c 5 $(($off+$n))
n=$(($n+1))


+ 13
- 23
src/etc/etc.hppa/MAKEDEV View File

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.hppa/MAKEDEV.md,v 1.3 2002/02/13 20:21:54 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.hppa/MAKEDEV.md,v 1.4 2002/02/14 13:29:20 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.13 2002/02/14 05:55:09 todd Exp $
# $OpenBSD: MAKEDEV,v 1.14 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -208,7 +208,9 @@ uk*)
;;
ss*)
M ss$U c 14 $U 440 operator
M ss$U c 14 $(($U*16)) 640 operator
M nss$U c 14 $(($(($U*16))+1)) 640 operator
M enss$U c 14 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@ -269,29 +271,17 @@ lpt*|lpa*)
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 4 $(($off+$n))
M pty$nam c 5 $(($off+$n))
n=$(($n+1))


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

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.i386/MAKEDEV.md,v 1.3 2002/02/09 16:59:50 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.i386/MAKEDEV.md,v 1.4 2002/02/14 13:29:20 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.118 2002/02/14 05:55:09 todd Exp $
# $OpenBSD: MAKEDEV,v 1.119 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -299,7 +299,9 @@ ses*)
;;
ss*)
M ss$U c 19 $U 440 operator
M ss$U c 19 $(($U*16)) 640 operator
M nss$U c 19 $(($(($U*16))+1)) 640 operator
M enss$U c 19 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@ -428,29 +430,17 @@ lpt*|lpa*)
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 5 $(($off+$n))
M pty$nam c 6 $(($off+$n))
n=$(($n+1))


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

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.mac68k/MAKEDEV.md,v 1.3 2002/02/08 20:26:36 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.mac68k/MAKEDEV.md,v 1.4 2002/02/14 13:29:20 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.45 2002/02/14 05:55:09 todd Exp $
# $OpenBSD: MAKEDEV,v 1.46 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -250,7 +250,9 @@ xfs*)
;;
ss*)
M ss$U c 33 $U 440 operator
M ss$U c 33 $(($U*16)) 640 operator
M nss$U c 33 $(($(($U*16))+1)) 640 operator
M enss$U c 33 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@ -293,29 +295,17 @@ bpf*)
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 4 $(($off+$n))
M pty$nam c 5 $(($off+$n))
n=$(($n+1))


+ 13
- 23
src/etc/etc.macppc/MAKEDEV View File

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.macppc/MAKEDEV.md,v 1.3 2002/01/23 07:53:01 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.macppc/MAKEDEV.md,v 1.4 2002/02/14 13:29:20 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.15 2002/02/14 05:55:09 todd Exp $
# $OpenBSD: MAKEDEV,v 1.16 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -257,7 +257,9 @@ xfs*)
;;
ss*)
M ss$U c 42 $U 440 operator
M ss$U c 42 $(($U*16)) 640 operator
M nss$U c 42 $(($(($U*16))+1)) 640 operator
M enss$U c 42 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@ -337,29 +339,17 @@ usb*)
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 4 $(($off+$n))
M pty$nam c 5 $(($off+$n))
n=$(($n+1))


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

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.sparc/MAKEDEV.md,v 1.7 2002/02/09 16:59:50 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.sparc/MAKEDEV.md,v 1.8 2002/02/14 13:29:20 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.83 2002/02/14 05:55:09 todd Exp $
# $OpenBSD: MAKEDEV,v 1.84 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -377,29 +377,17 @@ tty[a-z])
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 20 $(($off+$n))
M pty$nam c 21 $(($off+$n))
n=$(($n+1))
@ -444,7 +432,9 @@ rd*)
;;
ss*)
M ss$U c 121 $U 440 operator
M ss$U c 121 $(($U*16)) 640 operator
M nss$U c 121 $(($(($U*16))+1)) 640 operator
M enss$U c 121 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;


+ 13
- 23
src/etc/etc.sparc64/MAKEDEV View File

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.sparc64/MAKEDEV.md,v 1.16 2002/02/10 21:55:53 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.sparc64/MAKEDEV.md,v 1.17 2002/02/14 13:29:21 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.54 2002/02/14 05:55:09 todd Exp $
# $OpenBSD: MAKEDEV,v 1.55 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -339,7 +339,9 @@ uk*)
;;
ss*)
M ss$U c 59 $U 440 operator
M ss$U c 59 $(($U*16)) 640 operator
M nss$U c 59 $(($(($U*16))+1)) 640 operator
M enss$U c 59 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@ -397,29 +399,17 @@ usb*)
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 20 $(($off+$n))
M pty$nam c 21 $(($off+$n))
n=$(($n+1))


+ 13
- 23
src/etc/etc.sun3/MAKEDEV View File

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.sun3/MAKEDEV.md,v 1.1 2002/01/08 00:59:59 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.29 2002/02/14 05:38:22 todd Exp
# OpenBSD: etc.sun3/MAKEDEV.md,v 1.2 2002/02/14 13:29:21 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.49 2002/02/14 05:55:09 todd Exp $
# $OpenBSD: MAKEDEV,v 1.50 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -230,7 +230,9 @@ fd)
;;
ss*)
M ss$U c 99 $U 440 operator
M ss$U c 99 $(($U*16)) 640 operator
M nss$U c 99 $(($(($U*16))+1)) 640 operator
M enss$U c 99 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@ -277,29 +279,17 @@ bwtwo*)
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 20 $(($off+$n))
M pty$nam c 21 $(($off+$n))
n=$(($n+1))


+ 58
- 86
src/etc/etc.vax/MAKEDEV View File

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from:
#
# OpenBSD: etc.vax/MAKEDEV.md,v 1.4 2002/02/14 14:32:26 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.30 2002/02/14 14:32:26 todd Exp
# OpenBSD: etc.vax/MAKEDEV.md,v 1.5 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.mi,v 1.31 2002/02/14 17:44:38 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.6 2002/02/14 05:50:37 todd Exp
#
# $OpenBSD: MAKEDEV,v 1.39 2002/02/14 14:32:50 todd Exp $
# $OpenBSD: MAKEDEV,v 1.40 2002/02/14 17:46:15 todd Exp $
#
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved.
@ -76,8 +76,8 @@
# dmz* unibus dmz32
# vt* console
# dz* unibus dz11 and dz32
# dl* unibus dl11
# Special purpose devices:
# audio* audio device
# openprom
# bpf* Berkeley Packet Filter
# pf* Packet Filter
@ -222,16 +222,17 @@ std)
M ksyms c 50 0 640 kmem
M drum c 7 0 640 kmem
M klog c 33 0 600
M ttyg0 c 25 0
M ttyg1 c 25 1
M ttyg2 c 25 2
M ttyg3 c 25 3
M crl c 35 0
M ttyg0 c 25 0 600
M ttyg1 c 25 1 600
M ttyg2 c 25 2 600
M ttyg3 c 25 3 600
M crl c 35 0 600
M csa1 c 51 0 600
M csa2 c 51 1 600
M tu0 b 8 0
M tu1 b 8 1
M kUmem c 3 3 660
M tu0 b 8 0 600
M tu1 b 8 1 600
M floppy c 8 0 600
M kUmem c 3 3 600
;;
ht*|tm*|mt*|ts*|ut*)
@ -244,21 +245,23 @@ ht*|tm*|mt*|ts*|ut*)
esac
case $U in
[0-7])
four=$(($U+4)) eight=$(($U+8))
twelve=$(($U+12)) twenty=$(($U+20))
four=$(($U+4))
eight=$(($U+8))
twelve=$(($U+12))
twenty=$(($U+20))
M $n$U b $b $U 660 operator
M $n$four b $b $four 660 operator
M $n$eight b $b $eight 660 operator
M $n$twelve b $b $twelve 660 operator
M n$n$four b $b $four 660 operator
M n$n$twelve b $b $twelve 660 operator
M nr$n$four c $c $four 660 operator
M nr$n$twelve c $c $twelve 660 operator
M n$n$U b $b $four 660 operator;: sanity w/pdp11 v7
M n$n$eight b $b $twelve 660 operator;: ditto
M nr$n$U c $c $four 660 operator;: ditto
M nr$n$twelve c $c $twelve 660 operator;: ditto
M r$n$U c $c $U 660 operator
M r$n$four c $c $four 660 operator
M r$n$eight c $c $eight 660 operator
M r$n$twelve c $c $twelve 660 operator
if [ $i = ut ]; : XXXX
if [ "$i" = "ut" ];
then
M $n$twenty b $b $twenty 660 operator
M r$n$twenty c $b $twenty 660 operator
@ -345,30 +348,17 @@ openprom)
M openprom c 70 0
;;
audio*)
M sound$U c 69 $U
M mixer$U c 69 $(($U+16))
M audio$U c 69 $(($U+128))
M audioctl$U c 69 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
dz*)
unit=${i#dz};
case $unit in
case $U in
[0-7])
i=0
while [ $i -lt 8 ]; do
no=$(($unit * 8 + $i))
no=$(($(($U*8))+$i))
if [ $no -lt 10 ]; then
no="0${no}"
fi
rm -f tty${no}
mknod tty${no} c 1 $no
i=$(($i + 1))
M tty${no} c 1 $no 600
let i=i+1
done
;;
*)
@ -377,38 +367,33 @@ dz*)
esac
;;
dhu*|dmz*|dmf*|dh*)
dhu*|dmz*|dmf*|dh*|vt*)
set -A cnvtbl 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v
case $i in
vt*) name=vt; major=68; count=8;
unit=${i#vt}
case $unit in
case $U in
0) ch=w ;;
*) echo bad unit for $name in: $i ;;
esac;;
dmz*) name=dmz; major=37; count=24;
unit=${i#dmz}
case $unit in
case $U in
0) ch=a ;; 1) ch=b ;; 2) ch=c ;; 3) ch=e ;; 4) ch=f ;;
*) echo bad unit for $name in: $i ;;
esac;;
dmf*) name=dmf; major=22; count=8;
unit=${i#dmf}
case $unit in
case $U in
0) ch=A ;; 1) ch=B ;; 2) ch=C ;; 3) ch=E ;;
4) ch=F ;; 5) ch=G ;; 6) ch=H ;; 7) ch=I ;;
*) echo bad unit for $name in: $i ;;
esac;;
dhu*) name=dhu; major=34; count=16;
unit=${i#dhu}
case $unit in
case $U in
0) ch=S ;; 1) ch=T ;; 2) ch=U ;; 3) ch=V ;;
4) ch=W ;; 5) ch=X ;; 6) ch=Y ;; 7) ch=Z ;;
*) echo bad unit for $name in: $i ;;
esac;;
dh*) name=dh; major=12; count=16;
unit=${i#dh}
case $unit in
case $U in
0) ch=h ;; 1) ch=i ;; 2) ch=j ;; 3) ch=k ;;
4) ch=l ;; 5) ch=m ;; 6) ch=n ;; 7) ch=o ;;
*) echo bad unit for $name in: $i ;;
@ -418,51 +403,36 @@ dhu*|dmz*|dmf*|dh*)
while [ $i -lt $count ]; do
let=${cnvtbl[$i]}
if [ -n "$let" ] ;then
rm -f tty${ch}${let}
mknod tty${ch}${let} c $major $(($unit * $count + $i))
M tty${ch}${let} c $major $(($(($U*$count))+$i)) 600
else
echo bad count for ${name}: $unit, $count, $i
echo bad count for ${name}: $U, $count, $i
fi
i=$(($i + 1))
let i=i+1
done
;;
dl*)
unit=${i#dl}
major=66
let=${cnvtbl[$unit]}
let=${cnvtbl[$U]}
if [ -n "$let" ] ;then
rm -f ttyJ${let}
mknod ttyJ${let} c $major $unit
M ttyJ${let} c $major $U 600
else
echo bad number for ${name}: $unit
echo bad number for ${name}: $U
fi
;;
pty*)
case $U in
0) off=0 name=p;;
1) off=16 name=q;;
2) off=32 name=r;;
3) off=48 name=s;;
4) off=64 name=t;;
5) off=80 name=u;;
6) off=96 name=v;;
7) off=112 name=w;;
8) off=128 name=x;;
9) off=144 name=y;;
10) off=160 name=z;;
11) off=176 name=P;;
12) off=192 name=Q;;
13) off=206 name=R;;
14) off=224 name=S;;
15) off=240 name=T;;
*) echo bad unit for pty in: $i; continue;;
esac
if [ $U -gt 15 ]; then
echo bad unit for pty in: $i
continue
fi
set -A tbl p q r s t u v w x y z P Q R S T
name=${tbl[$U]}
n=0
while [ $n -lt 16 ]
do
nam=$name$(hex $n)
off=$(($U*16))
M tty$nam c 20 $(($off+$n))
M pty$nam c 21 $(($off+$n))
n=$(($n+1))
@ -511,7 +481,9 @@ uk*)
;;
ss*)
M ss$U c 64 $U 440 operator
M ss$U c 64 $(($U*16)) 640 operator
M nss$U c 64 $(($(($U*16))+1)) 640 operator
M enss$U c 64 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
;;
@ -529,7 +501,7 @@ st*)
for pre in " " n e en
do
M ${pre}st$U b 21 $n 660 operator
M ${pre}rst$U c 38 $n 660 operator
M ${pre}rst$U c 60 $n 660 operator
n=$(($n+1))
done
;;
@ -539,15 +511,15 @@ local)
;;
all)
R dz0 dh0 dmf0 dmz0 dhu0 mt0 hd0 hd1 hd2 audio0 xfs0 ss0 ss1
R uk0 ses0 rndrandom lkm pf altq tun0 tun1 tun2 tun3 bpf0 bpf1
R bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 fd1 fd1B fd1C fd1D
R fd1E fd1F fd1G fd1H fd0 fd0B fd0C fd0D fd0E fd0F fd0G fd0H
R xd0 xd1 xd2 xd3 xy0 xy1 xy2 xy3 ut0 up0 up1 up2 up3 ts0 tm0
R rx0 rx1 rl0 rl1 rl2 rl3 rb0 rb1 rb2 rb3 ra0 ra1 ra2 ra3 ht0
R hp0 hp1 hp2 hp3 hk0 hk1 hk2 hk3 rd0 raid0 raid1 raid2 raid3
R ccd0 ccd1 ccd2 ccd3 vnd0 vnd1 vnd2 vnd3 std cd0 cd1 ch0 st0
R st1 pty0 pty1 pty2 fd sd0 sd1 sd2 sd3 sd4
R vt0 dl0 dz0 dh0 dmf0 dmz0 dhu0 ts0 ts1 mt0 mt1 hd0 hd1 hd2
R xfs0 ss0 ss1 uk0 ses0 rndrandom lkm pf altq tun0 tun1 tun2
R tun3 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 fd1
R fd1B fd1C fd1D fd1E fd1F fd1G fd1H fd0 fd0B fd0C fd0D fd0E
R fd0F fd0G fd0H xd0 xd1 xd2 xd3 xy0 xy1 xy2 xy3 ut0 up0 up1
R up2 up3 tm0 rx0 rx1 rl0 rl1 rl2 rl3 rb0 rb1 rb2 rb3 ra0 ra1
R ra2 ra3 ht0 hp0 hp1 hp2 hp3 hk0 hk1 hk2 hk3 rd0 raid0 raid1
R raid2 raid3 ccd0 ccd1 ccd2 ccd3 vnd0 vnd1 vnd2 vnd3 std cd0
R cd1 ch0 st0 st1 pty0 pty1 pty2 fd sd0 sd1 sd2 sd3 sd4
;;
up*|xd*|xy*|sd*|rx*|rl*|rb*|raid*|ra*|hp*|hk*|hd*|ccd*)


Loading…
Cancel
Save