Skip to content

Commit d3cb897

Browse files
committed
Extracted tarball.
1 parent 86b00b3 commit d3cb897

File tree

597 files changed

+107313
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

597 files changed

+107313
-0
lines changed

nosc-files/JOHNS-NOTE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Hi, John --
2+
3+
Well, after a grim fight, I finally got all the files off your tape. One
4+
block was unreadable; however after an unbelivable cut-and-paste job on
5+
the file (it was disk1, the copy of the source disk), I got something that
6+
would work. I had to patch in a block of zeros, but it turned out that the
7+
bad block was in the middle of a recreatable binary, so I'm OK.
8+
9+
To make sure that your tape is OK, I'll read the whole thing back in
10+
before I send it to you.
11+
12+
One curious thing -- I truncated disk1 and disk2 to 4000 blocks, 'cause
13+
that's how big they are (disk3 is 4872, despite what the documentation
14+
says), and wrote it out on one of my tapes using tp. Now, however, I
15+
can't read it back in! Any ideas? There are no tape errors; tp gets a
16+
core dump with a buss error.
17+
18+
I hope you find the problem with your system and get back on soon.
19+
20+
-- Greg

nosc-files/bin/delete

17.8 KB
Binary file not shown.

nosc-files/bin/dump

15.5 KB
Binary file not shown.

nosc-files/bin/forward

24.9 KB
Binary file not shown.

nosc-files/bin/open

18.6 KB
Binary file not shown.

nosc-files/bin/pickup

23.1 KB
Binary file not shown.

nosc-files/bin/reply

24.8 KB
Binary file not shown.

nosc-files/bin/scan

22.5 KB
Binary file not shown.

nosc-files/bin/send

25.1 KB
Binary file not shown.

nosc-files/bin/show

17.3 KB
Binary file not shown.

nosc-files/bin/undelete

16.5 KB
Binary file not shown.

nosc-files/bin/write

16.2 KB
Binary file not shown.

nosc-files/compile

5.68 KB
Binary file not shown.

nosc-files/compile-old

5.47 KB
Binary file not shown.

nosc-files/compile.new

5.39 KB
Binary file not shown.

nosc-files/compile.orig

+159
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
: compile [ SYSTEM-DIR ] [ load [ UNIX-NAME ] ]
2+
: SYSTEM-DIR may not be "load"
3+
: SYSTEM-DIR is the directory to which the compile will be relative
4+
: load [ UNIX-NAME ] causes an attempt to load a system via loadit
5+
6+
if -r /usr/sys/conf/mkconf -a -r /usr/sys/conf/isconf -a \
7+
-r /usr/sys/conf/sysfix goto setup
8+
echo "To compile, the files mkconf, isconf, and sysfix must be in the"
9+
echo "/usr/sys/conf directory. At least one of these files is missing."
10+
exit
11+
: begin
12+
13+
set A = wk
14+
if $1x = x goto startit
15+
if $1 = load goto startit
16+
set A = $1
17+
shift
18+
: startit
19+
20+
21+
echo configuring $A
22+
date
23+
if ! -r $A mkdir $A
24+
if ! -r $A exit;: it failed
25+
chmod 751 $A
26+
if -r $A/configuration goto std
27+
echo "rk" >$A/configuration
28+
if -r $A/configuration goto std
29+
echo "couldn't create default configuration file -- quitting"
30+
exit
31+
: std
32+
if -r $A/lib rm -f $A/lib
33+
/usr/sys/conf/mkconf <$A/configuration
34+
if -r $A/conf.mod sh -c "ed - <"$A"/conf.mod"
35+
echo l.o:
36+
as l.s
37+
if -r $A/l.o rm -f $A/l.o
38+
mv a.out $A/l.o
39+
rm -f l.s
40+
echo c.o:
41+
cc -c -O c.c
42+
if -r $A/c.o rm -f $A/c.o
43+
mv c.o $A/c.o
44+
rm -f c.c
45+
sh /tmp/:compile: $A conf -P mch
46+
chmod 644 $A/l.o $A/c.o $A/lib
47+
48+
echo Unix kernel code:
49+
date
50+
sh /tmp/:compile: $A ken \
51+
main alloc iget prf rdwri slp subr text \
52+
trap sig sysent clock fio malloc nami pipe \
53+
sys1 sys2 sys3 sys4 acct badint
54+
55+
echo NCP resident code:
56+
date
57+
sh /tmp/:compile: $A ncpk nrdwr nopcls contab kerbuf ncpio btest
58+
sh /tmp/:compile: $A ncpk -P itol
59+
60+
echo Unix device drivers:
61+
date
62+
: default device drivers -- always present
63+
sh /tmp/:compile: $A dmr bio tty partab kl mem sys
64+
: block device drivers -- disks and tapes
65+
if { /usr/sys/conf/isconf $A/configuration rk } sh /tmp/:compile: $A dmr rk
66+
if { /usr/sys/conf/isconf $A/configuration si } sh /tmp/:compile: $A dmr si
67+
if { /usr/sys/conf/isconf $A/configuration rp } sh /tmp/:compile: $A dmr rp
68+
if { /usr/sys/conf/isconf $A/configuration hp } sh /tmp/:compile: $A dmr hp
69+
if { /usr/sys/conf/isconf $A/configuration rf } sh /tmp/:compile: $A dmr rf
70+
if { /usr/sys/conf/isconf $A/configuration hs } sh /tmp/:compile: $A dmr hs
71+
if { /usr/sys/conf/isconf $A/configuration rl } sh /tmp/:compile: $A dmr rl
72+
if { /usr/sys/conf/isconf $A/configuration rx } sh /tmp/:compile: $A dmr rx
73+
if { /usr/sys/conf/isconf $A/configuration tm } sh /tmp/:compile: $A dmr tm
74+
if { /usr/sys/conf/isconf $A/configuration ht } sh /tmp/:compile: $A dmr ht
75+
if { /usr/sys/conf/isconf $A/configuration tc } sh /tmp/:compile: $A dmr tc
76+
sh /tmp/:compile: $A dmr devstart rhstart
77+
: character device drivers -- tty-like devices
78+
if { /usr/sys/conf/isconf $A/configuration dh } sh /tmp/:compile: $A dmr dhdm dh dhfdm
79+
if { /usr/sys/conf/isconf $A/configuration dj } sh /tmp/:compile: $A dmr dj
80+
if { /usr/sys/conf/isconf $A/configuration dz } sh /tmp/:compile: $A dmr dz
81+
if { /usr/sys/conf/isconf $A/configuration dc } sh /tmp/:compile: $A dmr dc
82+
if { /usr/sys/conf/isconf $A/configuration ptyc } sh /tmp/:compile: $A dmr pty
83+
: character device drivers -- communication line drivers
84+
if { /usr/sys/conf/isconf $A/configuration dq } sh /tmp/:compile: $A dmr dq
85+
if { /usr/sys/conf/isconf $A/configuration du } sh /tmp/:compile: $A dmr du
86+
if { /usr/sys/conf/isconf $A/configuration dp } sh /tmp/:compile: $A dmr dp
87+
: character device drivers -- all other devices
88+
if { /usr/sys/conf/isconf $A/configuration lp } sh /tmp/:compile: $A dmr lp
89+
if { /usr/sys/conf/isconf $A/configuration cr } sh /tmp/:compile: $A dmr cr
90+
if { /usr/sys/conf/isconf $A/configuration pc } sh /tmp/:compile: $A dmr pc
91+
if { /usr/sys/conf/isconf $A/configuration dn } sh /tmp/:compile: $A dmr dn
92+
93+
echo IMP driver code:
94+
date
95+
if ! { /usr/sys/conf/isconf $A/configuration vdh } goto notvdh
96+
sh /tmp/:compile: $A dvr vdhio vdh
97+
sh /tmp/:compile: $A dvr -P vdh_swabuf vdh_clock
98+
goto vdhdone
99+
: notvdh
100+
sh /tmp/:compile: $A dvr impio
101+
if { /usr/sys/conf/isconf $A/configuration acc } \
102+
sh /tmp/:compile: $A dvr acc
103+
: LATER ill
104+
if { /usr/sys/conf/isconf $A/configuration imp } \
105+
sh /tmp/:compile: $A dvr imp11a
106+
: vdhdone
107+
108+
: this should be at the very end of the last archive library
109+
sh /tmp/:compile: $A dvr -P CKSUM TRACE
110+
111+
rm -f /tmp/:compile:
112+
113+
if $1x = loadx sh loadit $A $2
114+
echo done!
115+
date
116+
exit
117+
118+
: setup
119+
cat >/tmp/:compile:;goto begin
120+
set A = $1
121+
set B = $2
122+
if $B != dvr goto notdvr
123+
set B = ncpk/drivers
124+
: notdvr
125+
if $3x != -Px goto loop
126+
set P = -P
127+
shift
128+
: loop
129+
if $3x = x exit
130+
shift
131+
set D = $A/
132+
if -r $D$2.c goto compile
133+
set D = $B/
134+
if -r $D$2.c goto compile
135+
set D = /usr/sys/$D
136+
if -r $D$2.c goto compile
137+
echo $B/$2.c: module not found -- dummy module included
138+
: comperr
139+
as /dev/null
140+
mv a.out $2.o
141+
goto comptest
142+
: compile
143+
echo $B/$2: found as $D$2.c
144+
cc -O -c -L$A:h:$B:/usr/sys/h:/usr/sys/$B:/usr/include $P $D$2.c
145+
if $Px != -Px goto comptest
146+
if ! -r $2.i cp $D$2.c $2.i
147+
as $2.i
148+
rm -f $2.i
149+
if ! -r a.out goto loop
150+
mv a.out $2.o
151+
: comptest
152+
if ! -r $2.o goto compfail
153+
size $2.o
154+
ar r $A/lib $2.o
155+
rm -f $2.o
156+
goto loop
157+
: compfail
158+
echo "Compile failed -- placeholder included"
159+
goto comperr

nosc-files/conf/btab.h

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"rk",
2+
"tm",

nosc-files/conf/buildone

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
as data.s l.s
2+
ld -x -r -d a.out m45.o c.o ../lib1 ../lib2 ../lib3
3+
nm -ug
4+
sysfix a.out x
5+
echo unix in x, syms in usyms
6+
syms x > usyms

nosc-files/conf/c.c

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#
2+
/*
3+
* unix configuration table
4+
*/
5+
6+
/* UNIX Identification and Configuration information */
7+
#define ED 6
8+
#define VER 2
9+
#define MAJ 2
10+
#define MIN 3
11+
12+
int unixid {( (ED<<12) | (VER<<8)|(MAJ<<4)|MIN)};
13+
char id[] "~|^`Green-40 network UNIX Vx.x DN root=/dev/rl0 swap=/dev/rl0\n";
14+
15+
/* to pacify V7 C compiler */
16+
17+
extern nodev(), nulldev();
18+
extern ctclose(), ctopen(), ctwrite();
19+
extern dhclose(), dhopen(), dhread(), dhsgtty(), dhwrite();
20+
extern dqsclose(), dqsopen(), dqsread(), dqswrite();
21+
extern rlopen(), rlread(), rlstrategy(), rltab(), rlwrite();
22+
extern hpopen(), hpread(), hpstrategy(), hptab(), hpwrite();
23+
extern hsread(), hsstrategy(), hstab(), hswrite();
24+
extern htclose(), htmopen(), htopen();
25+
extern htread(), htstrategy(), httab(), htwrite();
26+
extern klclose(), klopen(), klread(), klsgtty(), klwrite();
27+
extern lpclose(), lpopen(), lpsgtty(), lpwrite();
28+
extern mmread(), mmwrite();
29+
extern ncpclose(), ncpopen(), ncpread(), ncpwrite();
30+
extern ptcclose(), ptcopen(), ptcread(), ptcwrite();
31+
extern ptsclose(), ptsopen(), ptsread(), ptswrite(), ptysgtty();
32+
extern rkread(), rkstrategy(), rktab(), rkwrite();
33+
extern syopen(), syread(), sysgtty(), sywrite();
34+
extern tcclose(), tcstrategy(), tctab();
35+
extern rlpopen(),rlpclose(),rlpwrite();
36+
37+
/* device drivers */
38+
int (*bdevsw[])()
39+
{
40+
&nodev, &nodev, &nodev, 0, /*0- rk */
41+
&rlopen, &nulldev, &rlstrategy, &rltab, /*1- rl */
42+
0
43+
};
44+
int nblkdev 2; /* Must define of block devices here */
45+
46+
int (*cdevsw[])()
47+
{
48+
&klopen, &klclose, &klread, &klwrite, &klsgtty, /*0- console */
49+
&rlopen, &nulldev, &rlread, &rlwrite, &nodev, /*1- rl */
50+
&dhopen, &dhclose, &dhread, &dhwrite, &dhsgtty, /*2- dh */
51+
&nulldev, &nulldev, &mmread, &mmwrite, &nodev, /*3- mem */
52+
&syopen, &nulldev, &syread, &sywrite, &sysgtty, /*4- tty */
53+
&ncpopen, &ncpclose, &ncpread, &ncpwrite, &nodev, /*5- imp */
54+
/* &ptcopen, &ptcclose, &ptcread, &ptcwrite, &ptysgtty, /*6- pty-ctl*/
55+
/* &ptsopen, &ptsclose, &ptsread, &ptswrite, &ptysgtty, /*7- pty-slv*/
56+
0
57+
};
58+
int nchrdev 8; /* Must define of char devices here */
59+
60+
int rootdev {(1<<8)|0}; /* /dev/rl0 */
61+
int swapdev {(1<<8)|0}; /* /dev/rl0 */
62+
int swplo 9000; /* cannot be zero */
63+
int nswap 1220; /* RL01's have 10220 blks */

nosc-files/conf/cc

7.68 KB
Binary file not shown.

nosc-files/conf/ctab.h

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"lp",
2+
"dh",
3+
"mem",
4+
"rk",
5+
"tm",
6+
"net",
7+
"ptyc",
8+
"ptys",
9+
"cr",
10+
"pc",

nosc-files/conf/data.s

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/ l45.o needs to be in data space
2+
/ to get l45.o; as data.s l.s
3+
.data

nosc-files/conf/illgononet

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
as data.s l.s
2+
ld -x -r -d a.out /sys/conf.cac/m45.o c.o /sys/lib1 /sys/lib2 /sys/lib3-noncp
3+
nm -ug
4+
cp a.out x
5+
syms x >usyms
6+
/sys/conf.cac/sysfix a.out xs
7+
echo Ill unix in x, syms in usyms, sysfixed unix in xs

nosc-files/conf/isconf

2.76 KB
Binary file not shown.

nosc-files/conf/isconf.c

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#/*
2+
Module Name:
3+
isconf.c -- scan a configuration file for a specific entry
4+
5+
Installation:
6+
cc -O isconf.c
7+
if ! -r a.out exit
8+
chmod 755 a.out
9+
mv a.out isconf
10+
11+
Synopsis:
12+
isconf <configuration-file> <search-word>
13+
14+
Function:
15+
Scan a file to see if the specified word is located at the beginning
16+
of the line, optionally preceeded by white space or numeric digits.
17+
18+
Diagnostics:
19+
20+
Module History:
21+
Created 20Jul78 by Greg Noel
22+
*/
23+
int fi[259]; /* space for input buffer */
24+
25+
main(argc, argv)
26+
int argc;
27+
char **argv;
28+
{
29+
register int c; /* character from input */
30+
register char *p; /* pointer to argument word */
31+
32+
if(argc < 3) {
33+
printf("isconf: usage is 'isconf <file> <word>'\n");
34+
exit(2);
35+
}
36+
if(fopen(argv[1], fi) < 0) {
37+
printf("isconf: can't open configuration file\n");
38+
exit(3);
39+
}
40+
for(;;) {
41+
p = argv[2];
42+
do {
43+
if( (c = nxtchr()) == '\n')
44+
if(*p == '\0')
45+
exit(0); /* configured */
46+
else
47+
break;
48+
} while(c == *p++);
49+
while(c != '\n') c = nxtchr();
50+
}
51+
}
52+
nxtchr()
53+
{
54+
register int c;
55+
56+
do {
57+
if( (c = getc(fi)) < 0) exit(1); /* not configured */
58+
} while(c == '\t' || c == ' ' || (c >= '0' && c <= '9') );
59+
return c;
60+
}

nosc-files/conf/l.s

2 KB
Binary file not shown.

0 commit comments

Comments
 (0)