1
0
mirror of https://github.com/DoctorWkt/unix-jun72.git synced 2026-04-02 20:27:26 +00:00

Import of the executables & files on the original s2 tape from Dennis Ritchie.

This commit is contained in:
warren.toomey
2008-05-06 06:49:26 +00:00
parent 86251ff0c2
commit 9b61c90288
92 changed files with 249 additions and 0 deletions

BIN
fs/new/etc/init Executable file

Binary file not shown.

BIN
fs/root/bin/: Executable file

Binary file not shown.

BIN
fs/root/bin/ar Executable file

Binary file not shown.

BIN
fs/root/bin/as Executable file

Binary file not shown.

BIN
fs/root/bin/bas Executable file

Binary file not shown.

BIN
fs/root/bin/cal Executable file

Binary file not shown.

BIN
fs/root/bin/cat Executable file

Binary file not shown.

BIN
fs/root/bin/cc Executable file

Binary file not shown.

BIN
fs/root/bin/chball Executable file

Binary file not shown.

BIN
fs/root/bin/check Executable file

Binary file not shown.

BIN
fs/root/bin/chmod Executable file

Binary file not shown.

BIN
fs/root/bin/chown Executable file

Binary file not shown.

BIN
fs/root/bin/cmp Executable file

Binary file not shown.

BIN
fs/root/bin/cp Executable file

Binary file not shown.

BIN
fs/root/bin/date Executable file

Binary file not shown.

BIN
fs/root/bin/db Executable file

Binary file not shown.

BIN
fs/root/bin/dc Executable file

Binary file not shown.

BIN
fs/root/bin/df Executable file

Binary file not shown.

BIN
fs/root/bin/ds Executable file

Binary file not shown.

BIN
fs/root/bin/dsw Executable file

Binary file not shown.

BIN
fs/root/bin/du Executable file

Binary file not shown.

BIN
fs/root/bin/echo Executable file

Binary file not shown.

BIN
fs/root/bin/ed Executable file

Binary file not shown.

BIN
fs/root/bin/exit Executable file

Binary file not shown.

BIN
fs/root/bin/fc Executable file

Binary file not shown.

BIN
fs/root/bin/find Executable file

Binary file not shown.

BIN
fs/root/bin/form Executable file

Binary file not shown.

BIN
fs/root/bin/goto Executable file

Binary file not shown.

BIN
fs/root/bin/if Executable file

Binary file not shown.

BIN
fs/root/bin/ld Executable file

Binary file not shown.

BIN
fs/root/bin/ln Executable file

Binary file not shown.

BIN
fs/root/bin/login Executable file

Binary file not shown.

BIN
fs/root/bin/ls Executable file

Binary file not shown.

BIN
fs/root/bin/mail Executable file

Binary file not shown.

BIN
fs/root/bin/maki Executable file

Binary file not shown.

BIN
fs/root/bin/mesg Executable file

Binary file not shown.

BIN
fs/root/bin/mkdir Executable file

Binary file not shown.

BIN
fs/root/bin/mv Executable file

Binary file not shown.

BIN
fs/root/bin/nm Executable file

Binary file not shown.

BIN
fs/root/bin/od Executable file

Binary file not shown.

BIN
fs/root/bin/pr Executable file

Binary file not shown.

BIN
fs/root/bin/rew Executable file

Binary file not shown.

BIN
fs/root/bin/rm Executable file

Binary file not shown.

BIN
fs/root/bin/rmdir Executable file

Binary file not shown.

BIN
fs/root/bin/roff Executable file

Binary file not shown.

BIN
fs/root/bin/sh Executable file

Binary file not shown.

BIN
fs/root/bin/size Executable file

Binary file not shown.

BIN
fs/root/bin/skip Executable file

Binary file not shown.

BIN
fs/root/bin/sort Executable file

Binary file not shown.

BIN
fs/root/bin/stat Executable file

Binary file not shown.

BIN
fs/root/bin/strip Executable file

Binary file not shown.

BIN
fs/root/bin/stty Executable file

Binary file not shown.

BIN
fs/root/bin/su Executable file

Binary file not shown.

BIN
fs/root/bin/sum Executable file

Binary file not shown.

BIN
fs/root/bin/tap Executable file

Binary file not shown.

BIN
fs/root/bin/tm Executable file

Binary file not shown.

BIN
fs/root/bin/tty Executable file

Binary file not shown.

BIN
fs/root/bin/un Executable file

Binary file not shown.

BIN
fs/root/bin/wc Executable file

Binary file not shown.

BIN
fs/root/bin/who Executable file

Binary file not shown.

BIN
fs/root/bin/write Executable file

Binary file not shown.

BIN
fs/root/etc/as2 Executable file

Binary file not shown.

BIN
fs/root/etc/getty Executable file

Binary file not shown.

BIN
fs/root/etc/glob Executable file

Binary file not shown.

BIN
fs/root/etc/init Executable file

Binary file not shown.

BIN
fs/root/etc/msh Executable file

Binary file not shown.

13
fs/root/etc/passwd Executable file
View File

@@ -0,0 +1,13 @@
root::0:/:
eroot::0:/:/bin/ed
sys::1:/usr/sys:
bin::3:/bin:
adm::3:/usr/adm:
s1::3:/usr/s1:
s2::3:/usr/s2:
jack::10:/usr/jack:
peter::11:/usr/peter:
jay::12:/usr/jay:
bob::13:/usr/bob:
sun::14:/usr/sun:
lee::15:/usr/lee:

BIN
fs/root/etc/std0 Executable file

Binary file not shown.

BIN
fs/root/etc/suftab Executable file

Binary file not shown.

10
fs/root/etc/uids Executable file
View File

@@ -0,0 +1,10 @@
root:0
sys:1
bin:3
adm:3
jack:10
peter:11
jay:12
bob:13
sun:14
lee:15

BIN
fs/root/tmp/etma Executable file

Binary file not shown.

BIN
fs/root/tmp/ttmp Executable file

Binary file not shown.

BIN
fs/root/tmp/utmp Executable file

Binary file not shown.

BIN
fs/usr/fort/fc1 Executable file

Binary file not shown.

BIN
fs/usr/fort/fc2 Executable file

Binary file not shown.

BIN
fs/usr/fort/fc3 Executable file

Binary file not shown.

BIN
fs/usr/fort/fc4 Executable file

Binary file not shown.

BIN
fs/usr/jack/a.out Executable file

Binary file not shown.

5
fs/usr/jack/x.f Executable file
View File

@@ -0,0 +1,5 @@
a = 2.3
i = 10
print 100, a, i
100 format(2hhi, f10.2, i5)
end

54
fs/usr/ken/maki.s Executable file
View File

@@ -0,0 +1,54 @@
/ maki -- make initialization dec tape
sys open; std0; 0
bes error
mov r0,r1
sys read; buf; 512.
mov r1,r0
sys close
sys open; tap0; 1
bes error
mov r0,r1
sys write; buf; 512.
bes error
sys open; rf; 0
bes error
mov r0,r2
jsr pc,copy
mov r1,r0
sys close
sys open; tap1; 1
bes error
mov r0,r1
jsr pc,copy
sys exit
copy:
mov $512.,-(sp)
1:
mov r2,r0
sys read; buf; 512.
bes error
mov r1,r0
sys write; buf; 512.
bes error
dec (sp)
bne 1b
tst (sp)+
rts pc
error:
mov $1,r0
sys write; mes; emes-mes
sys exit
mes:
<error in copy\n>
emes:
tap0: </dev/tap0\0>
tap1: </dev/tap1\0>
rf: </dev/rf0\0>
std0: </etc/std0\0>
.even
buf: .=.+512.

BIN
fs/usr/lib/bilib.a Executable file

Binary file not shown.

BIN
fs/usr/lib/c0 Executable file

Binary file not shown.

BIN
fs/usr/lib/c1 Executable file

Binary file not shown.

BIN
fs/usr/lib/filib.a Executable file

Binary file not shown.

BIN
fs/usr/lib/liba.a Executable file

Binary file not shown.

BIN
fs/usr/lib/libb.a Executable file

Binary file not shown.

BIN
fs/usr/lib/libc.a Executable file

Binary file not shown.

BIN
fs/usr/lib/libf.a Executable file

Binary file not shown.

BIN
fs/usr/sys/a.out Executable file

Binary file not shown.

BIN
fs/usr/sys/core Executable file

Binary file not shown.

162
fs/usr/sys/maki.s Executable file
View File

@@ -0,0 +1,162 @@
/ maki -- make initialization dec tape
sys open; tape; 1
bes error
mov r0,fo
sys write; vcboot; 512.
bes error
sys open; disk; 0
bes error
mov r0,r1
sys seek; 1700; 0
bes error
mov $64.,r2
1:
mov r1,r0
sys read; buf; 512.
jsr pc,tout
dec r2
bne 1b
mov r1,r0
sys close
mov $files,r5
1:
tstb (r5)
beq 1f
mov r5,0f
sys stat; 0:..; buf
bes error
mov $buf,r3
mov buf+6,(r3)+ / size
movb buf+2,(r3)+ / mode
movb buf+5,(r3)+ / uid
2:
movb (r5)+,(r3)+
bne 2b
2:
clrb (r3)+
cmp r3,$buf+512.
blo 2b
jsr pc,tout
sys open; buf+4; 0
bes error
mov r0,fi
2:
mov fi,r0
sys read; buf; 512.
tst r0
beq 2f
jsr pc,tout
br 2b
2:
mov fi,r0
sys close
br 1b
1:
clr buf
jsr pc,tout
sys exit
tout:
mov fo,r0
sys write; buf; 512.
bes error
rts pc
error:
mov $1,r0
sys write; 1f; 4
4
sys exit
1:
<?\n>
vcboot:
mov $20000,sp
jsr r5,dtio; 1; 20000; -20000; 5
jsr r5,drio; 3; 140000; 20000; -20000; 3
jsr r5,dtio; 33.; 20000; -20000; 5
jsr r5,drio; 3; 160000; 20000; -20000; 3
jsr r5,drio; 3; 140000; 54000; -2000; 5
jmp *$54000
tcdt = 177350
tccm = 177342
dtio:
mov $tcdt,r0
mov $tccm,r1
mov $3,(r1) / rn-f
1:
tstb (r1)
bge 1b
tst (r1)
blt 0f
cmp (r5),(r0)
beq 2f
bgt dtio
0:
mov $4003,(r1) / rn-b
1:
tstb (r1)
bge 1b
tst (r1)
blt dtio
mov (r0),r2
add $5,r2
cmp (r5),r2
bgt dtio
br 0b
2:
tst (r5)+
mov (r5)+,-(r0)
mov (r5)+,-(r0)
mov (r5)+,-(r0)
1:
tstb (r0)
bge 1b
tst (r0)
bge 1f
sub $8.,r5
br dtio
1:
mov $1,(r0) / sat
rts r5
dae = 177470
drio:
mov $dae+2,r0
mov (r5)+,-(r0)
mov (r5)+,-(r0)
mov (r5)+,-(r0)
mov (r5)+,-(r0)
mov (r5)+,-(r0)
1:
tstb (r0)
bge 1b
tst (r0)
bge 1f
sub $10.,r5
br drio
1:
rts r5
tape:
</dev/tap7\0>
disk:
</dev/rf0\0>
files:
</etc/init\0>
</etc/getty\0>
</bin/chmod\0>
</bin/date\0>
</bin/login\0>
</bin/mkdir\0>
</bin/sh\0>
</bin/tap\0>
</bin/ls\0>
<\0>
.even
fi: .=.+2
fo: .=.+2
buf: .=.+512.

5
fs/usr/x Executable file
View File

@@ -0,0 +1,5 @@
tap x\
./fort/fc1\
./fort/fc2\
./fort/fc3\
./fort/fc4