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
atoi.o atoi.c C
atol.o atol.c C
brk.o ASM
bsearch.o bsearch.c C
cerror.o cerror.s ASM
chroot.o chroot.s ASM
clrerr.o clrerr.c C
cnvt.o cnvt.c C
crypt.o crypt.c C
@ -20,11 +18,9 @@ data.o data.c C
decimal.o decimal.s ASM
doprnt.o doprnt.c C
doscan.o doscan.c C
dup2.o dup2.s ASM
ecvt.o ecvt.s ASM
endopen.o endopen.c C
errlst.o errlst.c C
execlp.o execlp.s ASM
execvp.o execvp.c C
fakcu.o fakcu.s ASM
fdopen.o fdopen.c C
@ -41,7 +37,6 @@ fputs.o fputs.c C
freopen.o freopen.c C
fseek.o fseek.c C
ftell.o ftell.c C
ftime.o ftime.s ASM
getchar.o getchar.c C
getenv.o getenv.c C
getgrent.o getgrent.c C
@ -50,7 +45,6 @@ getgrnam.o getgrnam.c C
getlogin.o getlogin.c C
getopt.o getopt.c C
getpass.o getpass.c C
getpgrp.o getpgrp.s ASM
getpw.o getpw.c C
getpwent.o getpwent.c C
getpwnam.o getpwnam.c C
@ -63,12 +57,9 @@ isatty.o isatty.c C
l3.o l3.c C
l64a.o l64a.c C
length.o length.c C
lkdata.o lkdata.s ASM
lock.o lock.s ASM
lsearch.o lsearch.c C
malloc.o malloc.c C
mcount.o mcount.s ASM
mdmctl.o mdmctl.s ASM
mktemp.o mktemp.c C
mon.o mon.c C
mpx.o mpx.c C
@ -91,7 +82,6 @@ scanf.o scanf.c C
setbuf.o setbuf.c C
setret.o setret.s ASM
sleep.o sleep.c C
sptrace.o sptrace.s ASM
ssignal.o ssignal.c C
stfl.o ???
strcat.o strcat.c C
@ -119,4 +109,3 @@ toupper.o toupper.c C
ttyname.o ttyname.c C
ttyslot.o ttyslot.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
wait.o wait.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
file=$(echo "$line" | awk '{print $2}')
grep -q $file TODO.done && continue
comment=$(echo "$line" | awk '{print substr($NF,length($NF))}')
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 module
internal

View File

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

View File

@ -1,12 +1,13 @@
AS= as
ASFLAGS=
OBJ= access.o acct.o alarm.o brk.o chdir.o chmod.o chown.o close.o creat.o \
dup.o execl.o execle.o execv.o execve.o exit.o fcntl.o fork.o fstat.o \
getegid.o geteuid.o getgid.o getpid.o getppid.o getuid.o ioctl.o \
kill.o link.o lseek.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 stat.o \
OBJ= access.o acct.o alarm.o brk.o chdir.o chmod.o chown.o chroot.o close.o \
creat.o dup.o dup2.o execl.o execle.o execlp.o execv.o execve.o exit.o \
fcntl.o fork.o fstat.o ftime.o getegid.o geteuid.o getgid.o getpgrp.o \
getpid.o getppid.o getuid.o ioctl.o kill.o link.o lkdata.o lock.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 \
unlink.o ustat.o utime.o wait.o write.o
unlink.o unlk.o ustat.o utime.o wait.o write.o
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

@ -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