Added unmount, now unmount as well as umount exist

This commit is contained in:
ceriel 1987-10-05 09:17:42 +00:00
parent d4a31af34d
commit 158d0505ea
10 changed files with 21 additions and 6 deletions

View file

@ -126,6 +126,7 @@ times.c
truncate.s
umask.s
unlink.s
umount.s
unmount.s
utime.c
utimes.s

View file

@ -0,0 +1,4 @@
#include "syscall.h"
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define _umount
_umount: SYSTEM(SYS_umount)

View file

@ -1,4 +1,4 @@
#include "syscall.h"
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define _umount
_umount: SYSTEM(SYS_umount)
.define _unmount
_unmount: SYSTEM(SYS_umount)

View file

@ -129,6 +129,7 @@ times.c
truncate.s
umask.s
unlink.s
umount.s
unmount.s
ustat.s
utime.c

View file

@ -29,7 +29,7 @@ sigvec(sig,vec,ovec)
_sigfunc[sig] = old;
return -1;
}
if (ovec->handler == _sigtramp) {
if (ovec && ovec->handler == _sigtramp) {
ovec->handler = old;
}
return 0;

View file

@ -0,0 +1,4 @@
#include "syscall.h"
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define _umount
_umount: SYSTEM(SYS_umount)

View file

@ -1,4 +1,4 @@
#include "syscall.h"
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define _umount
_umount: SYSTEM(SYS_umount)
.define _unmount
_unmount: SYSTEM(SYS_umount)

View file

@ -119,6 +119,7 @@ getrusage.s
truncate.s
umask.s
umount.s
unmount.s
unlink.s
utime.c
utimes.s

View file

@ -1,4 +1,5 @@
.globl _errno, cerror
.globl _errno
.globl cerror
.comm _errno, 4
cerror:
movl r0,_errno

View file

@ -0,0 +1,3 @@
#include "syscall.h"
DEFINE(_unmount)
SYSTEM(SYS_umount)