more syscall files

This commit is contained in:
Oliver Lehmann 2009-08-26 18:55:15 +00:00
parent c21281e49d
commit dc7ad831ec
17 changed files with 295 additions and 93 deletions

View File

@ -4,10 +4,8 @@ abs.o abs.c C
atof.o atof.s ASM atof.o atof.s ASM
atoi.o atoi.c C atoi.o atoi.c C
atol.o atol.c C atol.o atol.c C
brk.o ASM
bsearch.o bsearch.c C bsearch.o bsearch.c C
cerror.o cerror.s ASM cerror.o cerror.s ASM
chroot.o chroot.s ASM
clrerr.o clrerr.c C clrerr.o clrerr.c C
cnvt.o cnvt.c C cnvt.o cnvt.c C
crypt.o crypt.c C crypt.o crypt.c C
@ -20,11 +18,9 @@ data.o data.c C
decimal.o decimal.s ASM decimal.o decimal.s ASM
doprnt.o doprnt.c C doprnt.o doprnt.c C
doscan.o doscan.c C doscan.o doscan.c C
dup2.o dup2.s ASM
ecvt.o ecvt.s ASM ecvt.o ecvt.s ASM
endopen.o endopen.c C endopen.o endopen.c C
errlst.o errlst.c C errlst.o errlst.c C
execlp.o execlp.s ASM
execvp.o execvp.c C execvp.o execvp.c C
fakcu.o fakcu.s ASM fakcu.o fakcu.s ASM
fdopen.o fdopen.c C fdopen.o fdopen.c C
@ -41,7 +37,6 @@ fputs.o fputs.c C
freopen.o freopen.c C freopen.o freopen.c C
fseek.o fseek.c C fseek.o fseek.c C
ftell.o ftell.c C ftell.o ftell.c C
ftime.o ftime.s ASM
getchar.o getchar.c C getchar.o getchar.c C
getenv.o getenv.c C getenv.o getenv.c C
getgrent.o getgrent.c C getgrent.o getgrent.c C
@ -50,7 +45,6 @@ getgrnam.o getgrnam.c C
getlogin.o getlogin.c C getlogin.o getlogin.c C
getopt.o getopt.c C getopt.o getopt.c C
getpass.o getpass.c C getpass.o getpass.c C
getpgrp.o getpgrp.s ASM
getpw.o getpw.c C getpw.o getpw.c C
getpwent.o getpwent.c C getpwent.o getpwent.c C
getpwnam.o getpwnam.c C getpwnam.o getpwnam.c C
@ -63,12 +57,9 @@ isatty.o isatty.c C
l3.o l3.c C l3.o l3.c C
l64a.o l64a.c C l64a.o l64a.c C
length.o length.c C length.o length.c C
lkdata.o lkdata.s ASM
lock.o lock.s ASM
lsearch.o lsearch.c C lsearch.o lsearch.c C
malloc.o malloc.c C malloc.o malloc.c C
mcount.o mcount.s ASM mcount.o mcount.s ASM
mdmctl.o mdmctl.s ASM
mktemp.o mktemp.c C mktemp.o mktemp.c C
mon.o mon.c C mon.o mon.c C
mpx.o mpx.c C mpx.o mpx.c C
@ -91,7 +82,6 @@ scanf.o scanf.c C
setbuf.o setbuf.c C setbuf.o setbuf.c C
setret.o setret.s ASM setret.o setret.s ASM
sleep.o sleep.c C sleep.o sleep.c C
sptrace.o sptrace.s ASM
ssignal.o ssignal.c C ssignal.o ssignal.c C
stfl.o ??? stfl.o ???
strcat.o strcat.c C strcat.o strcat.c C
@ -119,4 +109,3 @@ toupper.o toupper.c C
ttyname.o ttyname.c C ttyname.o ttyname.c C
ttyslot.o ttyslot.c C ttyslot.o ttyslot.c C
ungetc.o ungetc.c C ungetc.o ungetc.c C
unlk.o unlk.s ASM

View File

@ -55,3 +55,14 @@ ustat.o ustat.s ASM
utime.o utime.s ASM utime.o utime.s ASM
wait.o wait.s ASM wait.o wait.s ASM
write.o write.s ASM write.o write.s ASM
brk.o ASM
chroot.o chroot.s ASM
dup2.o dup2.s ASM
execlp.o execlp.s ASM
ftime.o ftime.s ASM
getpgrp.o getpgrp.s ASM
lkdata.o lkdata.s ASM
lock.o lock.s ASM
mdmctl.o mdmctl.s ASM
sptrace.o sptrace.s ASM
unlk.o unlk.s ASM

View File

@ -1,6 +1,7 @@
while read line ; do while read line ; do
file=$(echo "$line" | awk '{print $2}') file=$(echo "$line" | awk '{print $2}')
grep -q $file TODO.done && continue
comment=$(echo "$line" | awk '{print substr($NF,length($NF))}') comment=$(echo "$line" | awk '{print substr($NF,length($NF))}')
found=$(find . -name "$file") found=$(find . -name "$file")

View File

@ -1,5 +1,9 @@
! @[$] crt0.s Rev : 3.2 09/12/83 00:05:03 ! ! @[$] crt0.s Rev : 3.2 09/12/83 00:05:03 !
! @[$] crt0.s Rev : 3.2 09/12/83 00:05:03 !
! @[$] crt0.s Rev : 3.2 09/12/83 00:05:03 !
crt0 module crt0 module
internal internal

View File

@ -10,10 +10,10 @@ cat <<EOF > $func.s
$func module $func module
external external
_cerror cerror procedure
global global
$func procedure _$func procedure
entry entry
ld r0,r7 ld r0,r7
EOF EOF
@ -38,7 +38,7 @@ cat <<EOF >> $func.s
ld r2,r4 ld r2,r4
ret nc ret nc
jp cerror jp cerror
end $func end _$func
end $func end $func
EOF EOF

View File

@ -1,12 +1,13 @@
AS= as AS= as
ASFLAGS= ASFLAGS=
OBJ= access.o acct.o alarm.o brk.o chdir.o chmod.o chown.o close.o creat.o \ OBJ= access.o acct.o alarm.o brk.o chdir.o chmod.o chown.o chroot.o close.o \
dup.o execl.o execle.o execv.o execve.o exit.o fcntl.o fork.o fstat.o \ creat.o dup.o dup2.o execl.o execle.o execlp.o execv.o execve.o exit.o \
getegid.o geteuid.o getgid.o getpid.o getppid.o getuid.o ioctl.o \ fcntl.o fork.o fstat.o ftime.o getegid.o geteuid.o getgid.o getpgrp.o \
kill.o link.o lseek.o mknod.o mount.o nice.o open.o pause.o pipe.o \ getpid.o getppid.o getuid.o ioctl.o kill.o link.o lkdata.o lock.o \
profil.o ptrace.o read.o setgid.o setpgrp.o setuid.o signal.o stat.o \ lseek.o mdmctl.o mknod.o mount.o nice.o open.o pause.o pipe.o profil.o \
ptrace.o read.o setgid.o setpgrp.o setuid.o signal.o sptrace.o stat.o \
stime.o sync.o time.o times.o ulimit.o umask.o umount.o uname.o \ stime.o sync.o time.o times.o ulimit.o umask.o umount.o uname.o \
unlink.o ustat.o utime.o wait.o write.o unlink.o unlk.o ustat.o utime.o wait.o write.o
all: $(OBJ) all: $(OBJ)

View File

@ -0,0 +1,18 @@
! @[$] chroot.s 2.1 09/12/83 11:40:07 - 87wega3.2 !
chroot module
external
cerror procedure
global
_chroot procedure
entry
ld r0,r7
xor r4,r4
sc #61
ld r2,r4
ret nc
jp cerror
end _chroot
end chroot

View File

@ -0,0 +1,19 @@
! @[$] dup2.s 2.1 09/12/83 11:40:25 - 87wega3.2 !
dup2 module
external
cerror procedure
global
_dup2 procedure
entry
ld r0,r7
ld r1,r6
set r0,#6
sc #41
ld r2,r4
ret nc
jp cerror
end _dup2
end dup2

View File

@ -0,0 +1,24 @@
! @[$] execlp.s 2.2 09/12/83 11:23:49 - 87wega3.2 !
execlp module
external
_execvp procedure
global
_execlp procedure
entry
ex r2,@r15
push @r15,r3
push @r15,r4
push @r15,r5
push @r15,r6
ld r6,r15
push @r15,r2
call _execvp
ld r1,@r15
inc r15,#12
jp @r1
end _execlp
end execlp

View File

@ -0,0 +1,18 @@
! @[$] ftime.s 2.1 09/12/83 11:41:12 - 87wega3.2 !
ftime module
external
cerror procedure
global
_ftime procedure
entry
ld r0,r7
xor r4,r4
sc #35
ld r2,r4
ret nc
jp cerror
end _ftime
end ftime

View File

@ -0,0 +1,18 @@
! @[$] getpgrp.s 1.1 09/12/83 11:41:27 - 87wega3.2 !
getpgrp module
external
cerror procedure
global
_getpgrp procedure
entry
xor r0,r0
xor r4,r4
sc #39
ld r2,r4
ret nc
jp cerror
end _getpgrp
end getpgrp

View File

@ -0,0 +1,19 @@
! @[$] lkdata.s 2.1 09/12/83 11:41:55 - 87wega3.2!
lkdata module
external
cerror procedure
global
_lkdata procedure
entry
ld r0,r7
ld r1,r6
ld r2,r5
sc #49
ldl rr2,rr4
ret nc
jp cerror
end _lkdata
end lkdata

View File

@ -0,0 +1,18 @@
! @[$] lock.s 2.1 09/12/83 11:41:58 - 87wega3.2 !
lock module
external
cerror procedure
global
_lock procedure
entry
ld r0,r7
xor r4,r4
sc #53
ld r2,r4
ret nc
jp cerror
end _lock
end lock

View File

@ -0,0 +1,19 @@
! @[$] mdmctl.s 2.2 09/12/83 11:42:19 - 87wega3.2 !
mdmctl module
external
cerror procedure
global
_mdmctl procedure
entry
ld r0,r7
ld r1,r6
ld r2,r5
sc #62
jp c,cerror
xor r2,r2
ret
end _mdmctl
end mdmctl

View File

@ -1,75 +1,75 @@
! @[$] signal.s 2.1 09/12/83 11:43:15 - 87wega3.2 ! ! @[$] signal.s 2.1 09/12/83 11:43:15 - 87wega3.2 !
signal module signal module
$SECTION signal_b $SECTION signal_b
internal internal
L1 L1
ARRAY [20 WORD] ARRAY [20 WORD]
$SDEFAULT $SDEFAULT
external external
cerror procedure cerror procedure
global global
_signal procedure _signal procedure
entry entry
ld r2,#22 ld r2,#22
ld r0,r7 ld r0,r7
ld r1,r6 ld r1,r6
cp r0,#%0014 cp r0,#%0014
jp ge,cerror jp ge,cerror
ld r3,r0 ld r3,r0
sla r3,#1 sla r3,#1
ld r2,L1(r3) ld r2,L1(r3)
ld L1(r3),r1 ld L1(r3),r1
rr r1,#1 rr r1,#1
rl r1,#1 rl r1,#1
jr ule,L2 jr ule,L2
lda r1,L5(r3) lda r1,L5(r3)
L2: L2:
sc #48 sc #48
bit r4,#0 bit r4,#0
jr z,L4 jr z,L4
ld r2,r4 ld r2,r4
L4: L4:
ret nc ret nc
jp cerror jp cerror
L5: L5:
calr L7 calr L7
L6: L6:
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
calr L7 calr L7
L7: L7:
sub r15,#30 sub r15,#30
ldm @r15,r0,#15 ldm @r15,r0,#15
ld r7,30(r15) ld r7,30(r15)
sub r7,#L6 sub r7,#L6
ld r2,L1(r7) ld r2,L1(r7)
srl r7,#1 srl r7,#1
call @r2 call @r2
ldm r0,@r15,#15 ldm r0,@r15,#15
add r15,#32 add r15,#32
sc #0 sc #0
end _signal end _signal
end signal end signal

View File

@ -0,0 +1,24 @@
! @[$] sptrace.s 2.2 09/12/83 11:43:19 - 87wega3.2 !
sptrace module
external
cerror procedure
_errno word
global
_sptrace procedure
entry
xor r0,r0
ld _errno,r0
ld r0,r7
ld r1,r6
ld r6,r3
ldl rr2,rr4
ld r4,r6
sc #58
ld r2,r4
ret nc
jp cerror
end _sptrace
end sptrace

View File

@ -0,0 +1,19 @@
! @[$] unlk.s 2.1 09/12/83 11:44:04 - 87wega3.2 !
unlk module
external
cerror procedure
global
_unlk procedure
entry
ld r0,r7
ld r1,r6
ld r2,r5
sc #50
ldl rr2,rr4
ret nc
jp cerror
end _unlk
end unlk