Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc Change foo*) case patterns to foo[0-9]*) in MD MAKEDEV.c...
details: https://anonhg.NetBSD.org/src/rev/9fe347c861f5
branches: trunk
changeset: 769314:9fe347c861f5
user: apb <apb%NetBSD.org@localhost>
date: Tue Sep 06 14:40:10 2011 +0000
description:
Change foo*) case patterns to foo[0-9]*) in MD MAKEDEV.conf files,
as was done earlier today for the MI MAKEDEV.tmpl. There are
also a few instances of slightly different changes in the
case patterns.
diffstat:
etc/etc.alpha/MAKEDEV.conf | 8 +++-----
etc/etc.amiga/MAKEDEV.conf | 6 +++---
etc/etc.amigappc/MAKEDEV.conf | 6 +++---
etc/etc.atari/MAKEDEV.conf | 6 +++---
etc/etc.emips/MAKEDEV.conf | 8 +++-----
etc/etc.evbppc/MAKEDEV.conf | 4 ++--
etc/etc.hp300/MAKEDEV.conf | 12 +++++-------
etc/etc.mvme68k/MAKEDEV.conf | 4 ++--
etc/etc.ofppc/MAKEDEV.conf | 4 ++--
etc/etc.pmax/MAKEDEV.conf | 16 ++++++----------
etc/etc.sandpoint/MAKEDEV.conf | 4 ++--
etc/etc.sparc/MAKEDEV.conf | 6 +++---
etc/etc.vax/MAKEDEV.conf | 22 +++++++++++-----------
etc/etc.x68k/MAKEDEV.conf | 6 +++---
14 files changed, 51 insertions(+), 61 deletions(-)
diffs (truncated from 420 to 300 lines):
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.alpha/MAKEDEV.conf
--- a/etc/etc.alpha/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.alpha/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.7 2007/01/15 23:35:11 hubertf Exp $
+# $NetBSD: MAKEDEV.conf,v 1.8 2011/09/06 14:40:10 apb Exp $
all_md)
makedev wscons stic0 sd0 sd1 sd2 sd3 sd4
@@ -30,9 +30,7 @@
makedev ttyB0 ttyB1 ttyC0 ttyC1 ttyE0 ttyE1 wsmouse0 wskbd0 ttyEcfg
;;
-ttyB*)
- case $i in
- ttyB*) name=ttyB; unit=${i#ttyB}; major=15; minor=$(($unit * 2));;
- esac
+ttyB[0-9]*)
+ name=ttyB; unit=${i#ttyB}; major=15; minor=$(($unit * 2))
mkdev $name$unit c $major $minor "" "" $u_uucp
;;
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.amiga/MAKEDEV.conf
--- a/etc/etc.amiga/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.amiga/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.10 2007/01/15 23:35:11 hubertf Exp $
+# $NetBSD: MAKEDEV.conf,v 1.11 2011/09/06 14:40:10 apb Exp $
all_md)
makedev wscons std_amiga fd0 fd1 fd2 fd3 kbd mouse0 mouse1 par0
@@ -33,7 +33,7 @@
mkdev reload c 2 20
;;
-tty0*|ttyA*|ttyB*)
+tty0[0-9]*|ttyA[0-9]*|ttyB[0-9]*)
case $i in
tty0*) name=tty0; mname=ttym; unit=${i#tty0}; chr=12; mult=1; add=128;;
ttyA*) name=ttyA; mname=ttyAm; unit=${i#ttyA}; chr=17; mult=1; add=128;;
@@ -43,7 +43,7 @@
mkdev $mname$unit c $chr $(($unit * $mult + $add)) "" "" $u_uucp
;;
-grf*)
+grf[0-9]*)
unit=${i#grf}; chr=10
case $unit in
0|1|2|3|4|5|6|7)
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.amigappc/MAKEDEV.conf
--- a/etc/etc.amigappc/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.amigappc/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.1 2006/01/11 16:06:36 is Exp $
+# $NetBSD: MAKEDEV.conf,v 1.2 2011/09/06 14:40:10 apb Exp $
all_md)
makedev wscons std_amiga fd0 fd1 fd2 fd3 kbd mouse0 mouse1 par0
@@ -31,7 +31,7 @@
mkdev reload c 2 20
;;
-tty0*|ttyA*|ttyB*)
+tty0[0-9]*|ttyA[0-9]*|ttyB[0-9]*)
case $i in
tty0*) name=tty0; mname=ttym; unit=${i#tty0}; chr=12; mult=1; add=128;;
ttyA*) name=ttyA; mname=ttyAm; unit=${i#ttyA}; chr=17; mult=1; add=128;;
@@ -41,7 +41,7 @@
mkdev $mname$unit c $chr $(($unit * $mult + $add)) "" "" $u_uucp
;;
-grf*)
+grf[0-9]*)
unit=${i#grf}; chr=10
case $unit in
0|1|2|3|4|5|6|7)
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.atari/MAKEDEV.conf
--- a/etc/etc.atari/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.atari/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.8 2008/11/08 22:34:57 abs Exp $
+# $NetBSD: MAKEDEV.conf,v 1.9 2011/09/06 14:40:10 apb Exp $
all_md)
makedev std_atari st0 ttye0 ttye1 ttye2 ttye3 ttye4 ttye5 grf0 grf1
@@ -26,7 +26,7 @@
mkdev reload c 2 20 640 $g_kmem
;;
-ttyA*|ttyB*)
+ttyA[0-9]*|ttyB[0-9]*)
case $i in
ttyA*) name=tyA; unit=${i#ttyA}; major=7; minor=$(($unit * 16));;
ttyB*) name=tyB; unit=${i#ttyB}; major=35; minor=$unit;;
@@ -35,7 +35,7 @@
mkdev d$name$unit c $major $(($minor + $dialout )) "" "" $u_uucp
;;
-lpt*)
+lpt[0-9]*)
unit=${i#lpt}
mkdev lpt$unit c 29 $unit
;;
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.emips/MAKEDEV.conf
--- a/etc/etc.emips/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.emips/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.1 2011/01/26 01:18:47 pooka Exp $
+# $NetBSD: MAKEDEV.conf,v 1.2 2011/09/06 14:40:10 apb Exp $
all_md)
makedev minimal
@@ -14,10 +14,8 @@
# Serial devices: dz*.
#
# Create dz* devices as /dev/ttyD[0-3],
-dz*)
- case $i in
- dz*) name=dz; unit=${i#dz}; chr=16;;
- esac
+dz[0-9]*)
+ name=dz; unit=${i#dz}; chr=16
case $unit in
0)
mkdev ttyD0 c $chr 0
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.evbppc/MAKEDEV.conf
--- a/etc/etc.evbppc/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.evbppc/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.7 2011/02/26 18:07:16 ahoka Exp $
+# $NetBSD: MAKEDEV.conf,v 1.8 2011/09/06 14:40:10 apb Exp $
all_md)
makedev wscons sd0 sd1 sd2 st0 st1 cd0 cd1 wd0 wd1
@@ -25,7 +25,7 @@
makedev md0
;;
-xlcom*)
+xlcom[0-9]*)
unit=${i#xlcom}
mkdev xlcom$unit c 99 $unit "" "" $u_uucp
;;
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.hp300/MAKEDEV.conf
--- a/etc/etc.hp300/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.hp300/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.12 2011/02/06 18:26:51 tsutsui Exp $
+# $NetBSD: MAKEDEV.conf,v 1.13 2011/09/06 14:40:11 apb Exp $
all_md)
makedev ct0 ct1 rd0 rd1 rd2
@@ -12,10 +12,8 @@
makedev ss0 uk0 uk1
;;
-ct*)
- case $i in
- ct*) name=ct; unit=${i#ct}; blk=0; chr=7;;
- esac
+ct[0-9]*)
+ name=ct; unit=${i#ct}; blk=0; chr=7
case $unit in
0|1|2|3|4|5|6|7)
four=$(($unit + 4)) ; eight=$(($unit + 8))
@@ -42,12 +40,12 @@
esac
;;
-rd*)
+rd[0-9]*)
name=rd; unit=${i#rd}; blk=2; chr=9
%MKDISK% $name $unit $blk $chr
;;
-ttyM*)
+ttyM[0-9a-f]*)
unit=${i#????}
case $unit in
[0-9]) i=$unit ;;
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.mvme68k/MAKEDEV.conf
--- a/etc/etc.mvme68k/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.mvme68k/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.6 2007/01/15 23:35:12 hubertf Exp $
+# $NetBSD: MAKEDEV.conf,v 1.7 2011/09/06 14:40:11 apb Exp $
all_md)
makedev sd0 sd1 sd2
@@ -9,7 +9,7 @@
makedev ses0 ses1 ses2 ses3
;;
-ttyC*)
+ttyC[0-9]*)
# on-board mvme68k serial ports
unit=${i#ttyC}
mkdev ttyC$unit c 13 $(($unit + $dialin )) "" "" $u_uucp
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.ofppc/MAKEDEV.conf
--- a/etc/etc.ofppc/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.ofppc/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.7 2008/09/13 11:46:18 tsutsui Exp $
+# $NetBSD: MAKEDEV.conf,v 1.8 2011/09/06 14:40:11 apb Exp $
all_md)
makedev wscons sd0 sd1 sd2 st0 st1 cd0 cd1 wd0 wd1 fd0 fd1
@@ -42,7 +42,7 @@
mkdev dty$unit c 45 $(($ounit + $dialout)) "" "" $u_uucp
;;
-xlcom*)
+xlcom[0-9]*)
unit=${i#xlcom}
mkdev xlcom$unit c 99 $unit "" "" $u_uucp
;;
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.pmax/MAKEDEV.conf
--- a/etc/etc.pmax/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.pmax/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.7 2006/09/06 11:09:58 ad Exp $
+# $NetBSD: MAKEDEV.conf,v 1.8 2011/09/06 14:40:11 apb Exp $
all_md)
makedev minimal
@@ -20,10 +20,8 @@
# Serial devices: dc*, scc*.
#
# Create dz* devices as /dev/ttyD[0-3],
-dz*)
- case $i in
- dz*) name=dz; unit=${i#dz}; chr=16;;
- esac
+dz[0-9]*)
+ name=dz; unit=${i#dz}; chr=16
case $unit in
0)
mkdev ttyD0 c $chr 0
@@ -39,10 +37,8 @@
# Make zs devices as /dev/tty[abcd],
#
-zs*)
- case $i in
- zs*) name=scc; unit=${i#zs}; chr=17;;
- esac
+zs[0-9]*)
+ name=scc; unit=${i#zs}; chr=17
case $unit in
0|1)
mkdev ttya c $chr 0
@@ -56,7 +52,7 @@
esac
;;
-stic*)
+stic[0-9]*)
unit=${i#stic}
mkdev stic$unit c 98 $unit
;;
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.sandpoint/MAKEDEV.conf
--- a/etc/etc.sandpoint/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.sandpoint/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.13 2011/06/08 18:37:23 phx Exp $
+# $NetBSD: MAKEDEV.conf,v 1.14 2011/09/06 14:40:11 apb Exp $
init)
makedev std tty00 tty01 opty ptm pty0
@@ -20,7 +20,7 @@
makedev init
;;
-tty0*)
+tty0[0-9]*)
unit=${i#tty0}
mkdev tty0$unit c 45 $(($unit + $dialin )) "" "" $u_uucp
mkdev dty0$unit c 45 $(($unit + $dialout)) "" "" $u_uucp
diff -r ae36645a9cb0 -r 9fe347c861f5 etc/etc.sparc/MAKEDEV.conf
--- a/etc/etc.sparc/MAKEDEV.conf Tue Sep 06 14:13:46 2011 +0000
+++ b/etc/etc.sparc/MAKEDEV.conf Tue Sep 06 14:40:10 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.13 2008/09/13 13:11:38 tsutsui Exp $
+# $NetBSD: MAKEDEV.conf,v 1.14 2011/09/06 14:40:11 apb Exp $
all_md)
makedev std_sparc ttya ttyb ttyc ttyd ttyC00 ttyC01
@@ -50,12 +50,12 @@
mkdev dty$unit c 12 $(($index + $dialout)) "" "" $u_uucp
;;
-apm*)
+apm|apmctl)
lndev tctrl0 apm
mkdev apmctl c 71 8 644
;;
-tctrl*)
+tctrl[0-9]*)
unit=${i#tctrl}
mkdev tctrl$unit c 71 $unit 666
Home |
Main Index |
Thread Index |
Old Index