1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
vers(__file__,
{-$OpenBSD: MAKEDEV.md,v 1.10 2002/05/16 21:11:21 miod Exp $-},
etc.MACHINE)dnl
dnl
dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
dnl All rights reserved.
dnl
dnl Redistribution and use in source and binary forms, with or without
dnl modification, are permitted provided that the following conditions
dnl are met:
dnl 1. Redistributions of source code must retain the above copyright
dnl notice, this list of conditions and the following disclaimer.
dnl 2. The name of the author may not be used to endorse or promote products
dnl derived from this software without specific prior written permission.
dnl
dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
dnl THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
dnl EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
dnl PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
dnl OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
dnl WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
dnl ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dnl
dnl
_TITLE(make)
_DEV(all)
_DEV(std)
_DEV(loc)
_TITLE(tap)
_DEV(st, 60, 21)
_DEV(mt, 38, 15)
_DEV(ht, 5, 1)
_DEV(tm, 14, 5)
_DEV(ts, 16, 6)
_DEV(ut, 17, 10)
_TITLE(dis)
_DEV(hp, 4, 0)
_DEV(hk, 11, 3)
_DEV(up, 13, 2)
_DEV(ra, 9, 9)
_DEV(rb, 23, 11)
_DEV(rx, 30, 12)
_DEV(rl, 32, 14)
_DEV(hd, 58, 19)
_DEV(sd, 59, 20)
_DEV(cd, 61, 22)
_DEV(ch, 63)
_DEV(ss, 64)
_DEV(uk, 65)
_DEV(rd, 62, 23)
_DEV(flo, 54, 16)
_DEV(vnd, 55, 18)
_DEV(ccd, 54, 17)
_TITLE(pty)
_DEV(tty, 20)
_DEV(pty, 21)
_TITLE(prn)
_TITLE(term)
_DEV(dhu, 34)
_DEV(dh, 12)
_DEV(dmf, 22)
_DEV(dmz, 37)
_DEV(vt, 68)
_DEV(dz, 1)
_DEV(dl, 66)
_TITLE(spec)
_DEV(oppr)
_DEV(bpf, 56)
_DEV(pf, 42)
_DEV(altq, 75)
_DEV(lkm, 28)
_DEV(tun, 57)
_DEV(rnd, 67)
_DEV(mag)
_DEV(xfs, 51)
_DEV(raid, 73, 25)
_DEV(fdesc, 53)
_DEV(ses, 124)
_DEV(systrace, 49)
dnl
divert(7)dnl
dnl
ramdisk)
_recurse std random
_recurse fd0 sd0 sd1 rd0
;;
_std(2, 3, 50, 7, 33)
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 600
M tu1 b 8 1 600
M floppy c 8 0 600
M kUmem c 3 3 600
;;
ht*|tm*|mt*|ts*|ut*)
case $i in
ht*) n=ht b=1 c=5;;
mt*) n=mt b=15 c=38;;
tm*) n=tm b=5 c=14;;
ts*) n=ts b=6 c=16;;
ut*) n=ut b=10 c=17;;
esac
case $U in
[0-7])
four=Add($U, 4)
eight=Add($U, 8)
twelve=Add($U, 12)
twenty=Add($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$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$eight 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" ];
then
M $n$twenty b $b $twenty 660 operator
M r$n$twenty c $b $twenty 660 operator
fi
;;
*)
echo bad unit for tape in: $i
;;
esac
umask 77
;;
|