mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
+ alph2d() (thanks dr!), allow ttyU's a-zA-Z to be created
This commit is contained in:
parent
1c4517453b
commit
ac8c3c2c1c
@ -1,6 +1,6 @@
|
||||
include(MAKEDEV.sub)dnl
|
||||
dnl
|
||||
vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp $-})dnl
|
||||
vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.65 2004/01/12 22:31:34 todd Exp $-})dnl
|
||||
dnl
|
||||
divert(1)dnl
|
||||
{-#-}
|
||||
@ -447,7 +447,9 @@ _mcdev({-uhid-}, uhid*, {-uhid-}, {-major_uhid_c-}, 660)dnl
|
||||
__devitem(ulpt, ulpt*, Printer devices)dnl
|
||||
_mcdev({-ulpt-}, ulpt*, {-ulpt-}, {-major_ulpt_c-}, 660)dnl
|
||||
__devitem(ttyU, ttyU*, Serial ports)dnl
|
||||
_mcdev({-ttyU-}, ttyU*, {-ttyU-}, {-major_ttyU_c-}, 660, dialer uucp)dnl
|
||||
_mkdev({-ttyU-}, {-ttyU[0-9a-zA-Z]-}, {-U=${i#ttyU*}
|
||||
o=$(alph2d $U)
|
||||
M ttyU$U c major_ttyU_c $o 660 dialer uucp-})dnl
|
||||
__devitem(urio, urio*, Diamond Multimedia Rio 500)dnl
|
||||
_mcdev({-urio-}, urio*, {-urio-}, {-major_urio_c-}, 660)dnl
|
||||
__devitem(uscan, uscanner*, Scanners)dnl
|
||||
@ -674,6 +676,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.189 2004/01/11 22:00:23 deraadt Exp $
|
||||
# $OpenBSD: Makefile,v 1.190 2004/01/12 22:31:34 todd Exp $
|
||||
|
||||
TZDIR= /usr/share/zoneinfo
|
||||
LOCALTIME= Canada/Mountain
|
||||
@ -335,7 +335,6 @@ MAKEDEVARCHS+= macppc
|
||||
MAKEDEVARCHS+= mvme68k
|
||||
MAKEDEVARCHS+= mvme88k
|
||||
#MAKEDEVARCHS+= mvmeppc
|
||||
MAKEDEVARCHS+= pegasos
|
||||
MAKEDEVARCHS+= sparc
|
||||
MAKEDEVARCHS+= sparc64
|
||||
#MAKEDEVARCHS+= vax
|
||||
|
@ -3,9 +3,9 @@
|
||||
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.alpha/MAKEDEV.md,v 1.16 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: etc.alpha/MAKEDEV.md,v 1.17 2004/01/12 22:18:24 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -60,7 +60,7 @@
|
||||
# uhid* Generic HID devices
|
||||
# ulpt* Printer devices
|
||||
# ugen* Generic device
|
||||
# utty* Serial ports
|
||||
# ttyU* Serial ports
|
||||
# Special purpose devices:
|
||||
# ch* SCSI media changer
|
||||
# pf* Packet Filter
|
||||
@ -102,6 +102,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
@ -315,7 +323,7 @@ fd)
|
||||
;;
|
||||
|
||||
usbs)
|
||||
R utty0 utty1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
|
||||
R ttyU0 ttyU1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
|
||||
R usb0 usb1
|
||||
;;
|
||||
|
||||
@ -339,8 +347,10 @@ ch*)
|
||||
M ch$U c 14 $U 660 operator
|
||||
;;
|
||||
|
||||
utty*)
|
||||
M utty$U c 49 $U 660
|
||||
ttyU[0-9a-zA-Z])
|
||||
U=${i#ttyU*}
|
||||
o=$(alph2d $U)
|
||||
M ttyU$U c 49 $o 660 dialer uucp
|
||||
;;
|
||||
|
||||
ugen*)
|
||||
|
@ -4,8 +4,8 @@
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.hp300/MAKEDEV.md,v 1.13 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -78,6 +78,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
|
@ -4,8 +4,8 @@
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.hppa/MAKEDEV.md,v 1.16 2003/12/09 04:27:51 mickey Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -88,6 +88,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
|
@ -3,9 +3,9 @@
|
||||
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.i386/MAKEDEV.md,v 1.17 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: etc.i386/MAKEDEV.md,v 1.18 2004/01/12 22:18:24 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -65,7 +65,7 @@
|
||||
# ugen* Generic device
|
||||
# ulpt* Printer devices
|
||||
# urio* Diamond Multimedia Rio 500
|
||||
# utty* Serial ports
|
||||
# ttyU* Serial ports
|
||||
# uscanner* Scanners
|
||||
# Call units:
|
||||
# Special purpose devices:
|
||||
@ -117,6 +117,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
@ -257,7 +265,7 @@ mouse*)
|
||||
;;
|
||||
|
||||
usbs)
|
||||
R utty0 utty1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
|
||||
R ttyU0 ttyU1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
|
||||
R uscanner0 urio0 usb0 usb1
|
||||
;;
|
||||
|
||||
@ -392,8 +400,10 @@ uscanner*)
|
||||
M uscanner$U c 77 $U 660
|
||||
;;
|
||||
|
||||
utty*)
|
||||
M utty$U c 66 $U 660
|
||||
ttyU[0-9a-zA-Z])
|
||||
U=${i#ttyU*}
|
||||
o=$(alph2d $U)
|
||||
M ttyU$U c 66 $o 660 dialer uucp
|
||||
;;
|
||||
|
||||
urio*)
|
||||
|
@ -4,8 +4,8 @@
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.mac68k/MAKEDEV.md,v 1.11 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -77,6 +77,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
|
@ -3,9 +3,9 @@
|
||||
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.macppc/MAKEDEV.md,v 1.11 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: etc.macppc/MAKEDEV.md,v 1.12 2004/01/12 22:18:24 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -58,7 +58,7 @@
|
||||
# ugen* Generic device
|
||||
# ulpt* Printer devices
|
||||
# urio* Diamond Multimedia Rio 500
|
||||
# utty* Serial ports
|
||||
# ttyU* Serial ports
|
||||
# uscanner* Scanners
|
||||
# Special purpose devices:
|
||||
# audio* audio device
|
||||
@ -98,6 +98,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
@ -249,7 +257,7 @@ pci)
|
||||
;;
|
||||
|
||||
usbs)
|
||||
R utty0 utty1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
|
||||
R ttyU0 ttyU1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
|
||||
R uscanner0 urio0 usb0 usb1
|
||||
;;
|
||||
|
||||
@ -322,8 +330,10 @@ uscanner*)
|
||||
M uscanner$U c 74 $U 660
|
||||
;;
|
||||
|
||||
utty*)
|
||||
M utty$U c 66 $U 660
|
||||
ttyU[0-9a-zA-Z])
|
||||
U=${i#ttyU*}
|
||||
o=$(alph2d $U)
|
||||
M ttyU$U c 66 $o 660 dialer uucp
|
||||
;;
|
||||
|
||||
urio*)
|
||||
|
@ -4,8 +4,8 @@
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.mvme68k/MAKEDEV.md,v 1.9 2003/09/26 06:58:02 miod Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -82,6 +82,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
|
@ -4,8 +4,8 @@
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.mvme88k/MAKEDEV.md,v 1.10 2004/01/05 20:11:56 miod Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -78,6 +78,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
|
@ -4,8 +4,8 @@
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.sparc/MAKEDEV.md,v 1.19 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -93,6 +93,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
|
@ -3,9 +3,9 @@
|
||||
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
# generated from:
|
||||
#
|
||||
# OpenBSD: etc.sparc64/MAKEDEV.md,v 1.27 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.63 2003/10/15 02:01:04 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.8 2003/06/18 18:08:59 todd Exp
|
||||
# OpenBSD: etc.sparc64/MAKEDEV.md,v 1.28 2004/01/12 22:18:24 todd Exp
|
||||
# OpenBSD: MAKEDEV.mi,v 1.64 2004/01/12 22:18:23 todd Exp
|
||||
# OpenBSD: MAKEDEV.sub,v 1.9 2004/01/12 22:18:24 todd Exp
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
|
||||
@ -66,7 +66,7 @@
|
||||
# ugen* Generic device
|
||||
# ulpt* Printer devices
|
||||
# urio* Diamond Multimedia Rio 500
|
||||
# utty* Serial ports
|
||||
# ttyU* Serial ports
|
||||
# uscanner* Scanners
|
||||
# Special purpose devices:
|
||||
# usbs make USB devices
|
||||
@ -109,6 +109,14 @@ hex()
|
||||
esac
|
||||
}
|
||||
|
||||
alph2d()
|
||||
{
|
||||
local t="$1"
|
||||
local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
local sub=${p%${t}*}
|
||||
echo ${#sub}
|
||||
}
|
||||
|
||||
h2d()
|
||||
{
|
||||
local s="$1"
|
||||
@ -365,7 +373,7 @@ ses*)
|
||||
;;
|
||||
|
||||
usbs)
|
||||
R utty0 utty1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
|
||||
R ttyU0 ttyU1 ugen0 ugen1 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3
|
||||
R uscanner0 urio0 usb0 usb1
|
||||
;;
|
||||
|
||||
@ -373,8 +381,10 @@ uscanner*)
|
||||
M uscanner$U c 96 $U 660
|
||||
;;
|
||||
|
||||
utty*)
|
||||
M utty$U c 95 $U 660
|
||||
ttyU[0-9a-zA-Z])
|
||||
U=${i#ttyU*}
|
||||
o=$(alph2d $U)
|
||||
M ttyU$U c 95 $o 660 dialer uucp
|
||||
;;
|
||||
|
||||
urio*)
|
||||
|
Loading…
Reference in New Issue
Block a user