diff options
author | 2003-10-14 17:58:49 +0000 | |
---|---|---|
committer | 2003-10-14 17:58:49 +0000 | |
commit | 8ab387857b297b28e8d93a04e1d2e3d43655bbf7 (patch) | |
tree | d759c21d0cab04ef67fcc536cc6f2e2f207a5b25 | |
parent | allow 'MAKEDEV tty08 - tty7f' to function now, prompted by theo (diff) | |
download | wireguard-openbsd-8ab387857b297b28e8d93a04e1d2e3d43655bbf7.tar.xz wireguard-openbsd-8ab387857b297b28e8d93a04e1d2e3d43655bbf7.zip |
sync
-rw-r--r-- | etc/etc.alpha/MAKEDEV | 37 | ||||
-rw-r--r-- | etc/etc.hp300/MAKEDEV | 27 | ||||
-rw-r--r-- | etc/etc.hppa/MAKEDEV | 37 | ||||
-rw-r--r-- | etc/etc.i386/MAKEDEV | 37 | ||||
-rw-r--r-- | etc/etc.mac68k/MAKEDEV | 27 | ||||
-rw-r--r-- | etc/etc.macppc/MAKEDEV | 37 | ||||
-rw-r--r-- | etc/etc.mvme68k/MAKEDEV | 27 | ||||
-rw-r--r-- | etc/etc.mvme88k/MAKEDEV | 27 | ||||
-rw-r--r-- | etc/etc.sparc/MAKEDEV | 27 | ||||
-rw-r--r-- | etc/etc.sparc64/MAKEDEV | 37 |
10 files changed, 210 insertions, 110 deletions
diff --git a/etc/etc.alpha/MAKEDEV b/etc/etc.alpha/MAKEDEV index 9d2c69ae13b..c48210bd7c7 100644 --- a/etc/etc.alpha/MAKEDEV +++ b/etc/etc.alpha/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.alpha/MAKEDEV.md,v 1.16 2003/06/18 18:08:59 todd Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -45,7 +45,7 @@ # ttyC-F* wscons virtual consoles # wskbd* wscons keyboards # wsmux wscons keyboard/mouse mux devices -# tty0* NS16x50 serial ports +# tty[0-7][0-9a-f] NS16x50 serial ports # ttyc* Cyclades serial ports # Pointing devices: # wsmouse* wscons mice @@ -102,15 +102,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } @@ -385,9 +394,11 @@ wsmouse*) M wsmouse$U c 30 $U 600 ;; -tty0*) - M tty$U c 26 $U 660 dialer uucp - M cua$U c 26 $(($U+128)) 660 dialer uucp +tty[0-7][0-9a-f]) + U=${i#tty*} + o=$(hextod $U) + M tty$U c 26 $o 660 dialer uucp + M cua$U c 26 $(($o+128)) 660 dialer uucp ;; wsmux|wsmouse|wskbd) diff --git a/etc/etc.hp300/MAKEDEV b/etc/etc.hp300/MAKEDEV index 6b224c51e04..97ad91dc99f 100644 --- a/etc/etc.hp300/MAKEDEV +++ b/etc/etc.hp300/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.hp300/MAKEDEV.md,v 1.13 2003/06/18 18:08:59 todd Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -78,15 +78,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } diff --git a/etc/etc.hppa/MAKEDEV b/etc/etc.hppa/MAKEDEV index 90539c2a0b8..00ec4a759f9 100644 --- a/etc/etc.hppa/MAKEDEV +++ b/etc/etc.hppa/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.hppa/MAKEDEV.md,v 1.15 2003/08/07 09:19:14 mickey Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -37,7 +37,7 @@ # vnd* "file" pseudo-disks # rd* "rd" pseudo-disks # Terminal ports: -# tty0* NS16x50 serial ports +# tty[0-7][0-9a-f] NS16x50 serial ports # Pseudo terminals: # tty* set of 16 slave psuedo terminals # pty* set of 16 master pseudo terminals @@ -87,15 +87,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } @@ -336,9 +345,11 @@ pty*) done ;; -tty0*) - M tty$U c 23 $U 660 dialer uucp - M cua$U c 23 $(($U+128)) 660 dialer uucp +tty[0-7][0-9a-f]) + U=${i#tty*} + o=$(hextod $U) + M tty$U c 23 $o 660 dialer uucp + M cua$U c 23 $(($o+128)) 660 dialer uucp ;; rd*) diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index f2267cf52f2..257bcb0e43d 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.i386/MAKEDEV.md,v 1.17 2003/06/18 18:08:59 todd Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -51,7 +51,7 @@ # mouse mouse (provides events, for X11) # wsmouse* wscons mice # Terminal ports: -# tty0* NS16x50 serial ports +# tty[0-7][0-9a-f] NS16x50 serial ports # ttyc* Cyclades serial ports # Pseudo terminals: # tty* set of 16 slave psuedo terminals @@ -117,15 +117,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } @@ -438,9 +447,11 @@ pty*) done ;; -tty0*) - M tty$U c 8 $U 660 dialer uucp - M cua$U c 8 $(($U+128)) 660 dialer uucp +tty[0-7][0-9a-f]) + U=${i#tty*} + o=$(hextod $U) + M tty$U c 8 $o 660 dialer uucp + M cua$U c 8 $(($o+128)) 660 dialer uucp ;; wsmouse*) diff --git a/etc/etc.mac68k/MAKEDEV b/etc/etc.mac68k/MAKEDEV index 9c027d2954b..f70991e4683 100644 --- a/etc/etc.mac68k/MAKEDEV +++ b/etc/etc.mac68k/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.mac68k/MAKEDEV.md,v 1.11 2003/06/18 18:08:59 todd Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -77,15 +77,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } diff --git a/etc/etc.macppc/MAKEDEV b/etc/etc.macppc/MAKEDEV index b63f6a4aeb9..6d8e2fd5faf 100644 --- a/etc/etc.macppc/MAKEDEV +++ b/etc/etc.macppc/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.macppc/MAKEDEV.md,v 1.11 2003/06/18 18:08:59 todd Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -48,7 +48,7 @@ # wsmux wscons keyboard/mouse mux devices # Terminal ports: # ttyE? Workstation console (framebuffer & keyboard) tty emulators -# tty0* NS16x50 serial ports +# tty[0-7][0-9a-f] NS16x50 serial ports # Pseudo terminals: # tty* set of 16 slave psuedo terminals # pty* set of 16 master pseudo terminals @@ -98,15 +98,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } @@ -360,9 +369,11 @@ pty*) done ;; -tty0*) - M tty$U c 7 $U 660 dialer uucp - M cua$U c 7 $(($U+128)) 660 dialer uucp +tty[0-7][0-9a-f]) + U=${i#tty*} + o=$(hextod $U) + M tty$U c 7 $o 660 dialer uucp + M cua$U c 7 $(($o+128)) 660 dialer uucp ;; wsmux|wsmouse|wskbd) diff --git a/etc/etc.mvme68k/MAKEDEV b/etc/etc.mvme68k/MAKEDEV index c964dbebbf4..0642839e566 100644 --- a/etc/etc.mvme68k/MAKEDEV +++ b/etc/etc.mvme68k/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.mvme68k/MAKEDEV.md,v 1.9 2003/09/26 06:58:02 miod Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -82,15 +82,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } diff --git a/etc/etc.mvme88k/MAKEDEV b/etc/etc.mvme88k/MAKEDEV index 581f219fa89..0d7620bb8cb 100644 --- a/etc/etc.mvme88k/MAKEDEV +++ b/etc/etc.mvme88k/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.mvme88k/MAKEDEV.md,v 1.8 2003/09/26 06:58:04 miod Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -78,15 +78,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index 7509b988657..1b8b62883e2 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.sparc/MAKEDEV.md,v 1.19 2003/06/18 18:08:59 todd Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -93,15 +93,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } diff --git a/etc/etc.sparc64/MAKEDEV b/etc/etc.sparc64/MAKEDEV index 9ece074352b..0eadcc57cd2 100644 --- a/etc/etc.sparc64/MAKEDEV +++ b/etc/etc.sparc64/MAKEDEV @@ -4,7 +4,7 @@ # generated from: # # OpenBSD: etc.sparc64/MAKEDEV.md,v 1.27 2003/06/18 18:08:59 todd Exp -# OpenBSD: MAKEDEV.mi,v 1.61 2003/10/11 03:32:15 tedu Exp +# OpenBSD: MAKEDEV.mi,v 1.62 2003/10/14 17:58:23 todd Exp # OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp # # @@ -52,7 +52,7 @@ # Terminal ports: # tty[a-z]* Zilog 8530 Serial Port # cua[a-z]* Zilog 8530 Serial Port -# tty0* NS16x50 serial ports +# tty[0-7][0-9a-f] NS16x50 serial ports # ttyh* Sab82532 serial devices # Pseudo terminals: # tty* set of 16 slave psuedo terminals @@ -109,15 +109,24 @@ hex() esac } -trunc() +h2d() { - # XXX pdksh can't seem to deal with locally scoped variables - # in ${foo#$bar} expansions - arg1="$1" - arg2="$2" - case $3 in - l) echo ${arg2#$arg1} ;; - r|*) echo ${arg1#$arg2} ;; + local s="$1" + local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*} + + echo $(($(_h2d $f)*16+ $(_h2d $n) )) +} + +_h2d() +{ + case $1 in + [0-9]) echo -n $1;; + a) echo -n 10;; + b) echo -n 11;; + c) echo -n 12;; + d) echo -n 13;; + e) echo -n 14;; + f) echo -n 15;; esac } @@ -423,9 +432,11 @@ ttyh*) M ttyh$U c 77 $U 660 dialer uucp ;; -tty0*) - M tty$U c 36 $U 660 dialer uucp - M cua$U c 36 $(($U+128)) 660 dialer uucp +tty[0-7][0-9a-f]) + U=${i#tty*} + o=$(hextod $U) + M tty$U c 36 $o 660 dialer uucp + M cua$U c 36 $(($o+128)) 660 dialer uucp ;; cua[a-z]) |