summaryrefslogtreecommitdiff
path: root/etc/etc.sun3/MAKEDEV
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2002-02-14 17:46:16 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2002-02-14 17:46:16 +0000
commit21627bedb01e48b190d1b159750facb3b627afbf (patch)
tree3763f47254edd23a7174098eefc7494b47d04c4c /etc/etc.sun3/MAKEDEV
parent42b72c0863b27a0f8c4fbd5e24bbcd4550f696bd (diff)
sync
Diffstat (limited to 'etc/etc.sun3/MAKEDEV')
-rw-r--r--etc/etc.sun3/MAKEDEV36
1 files changed, 13 insertions, 23 deletions
diff --git a/etc/etc.sun3/MAKEDEV b/etc/etc.sun3/MAKEDEV
index 1835d91b1fc..ff333fb65da 100644
--- a/etc/etc.sun3/MAKEDEV
+++ b/etc/etc.sun3/MAKEDEV
@@ -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))