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 truncate.s
umask.s umask.s
unlink.s unlink.s
umount.s
unmount.s unmount.s
utime.c utime.c
utimes.s 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" #include "syscall.h"
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define _umount .define _unmount
_umount: SYSTEM(SYS_umount) _unmount: SYSTEM(SYS_umount)

View file

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

View file

@ -29,7 +29,7 @@ sigvec(sig,vec,ovec)
_sigfunc[sig] = old; _sigfunc[sig] = old;
return -1; return -1;
} }
if (ovec->handler == _sigtramp) { if (ovec && ovec->handler == _sigtramp) {
ovec->handler = old; ovec->handler = old;
} }
return 0; 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" #include "syscall.h"
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define _umount .define _unmount
_umount: SYSTEM(SYS_umount) _unmount: SYSTEM(SYS_umount)

View file

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

View file

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

View file

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