@@ -126,6 +126,7 @@ times.c
truncate.s
umask.s
unlink.s
+umount.s
unmount.s
utime.c
utimes.s
@@ -0,0 +1,4 @@
+#include "syscall.h"
+.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
+.define _umount
+_umount: SYSTEM(SYS_umount)
@@ -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)
@@ -129,6 +129,7 @@ times.c
ustat.s
@@ -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;
@@ -119,6 +119,7 @@ getrusage.s
umount.s
+unmount.s
@@ -1,4 +1,5 @@
- .globl _errno, cerror
+ .globl _errno
+ .globl cerror
.comm _errno, 4
cerror:
movl r0,_errno
@@ -0,0 +1,3 @@
+DEFINE(_unmount)
+SYSTEM(SYS_umount)