From 158d0505ea62528417a4ef3eb1738a6e6c2b40b3 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 5 Oct 1987 09:17:42 +0000 Subject: [PATCH] Added unmount, now unmount as well as umount exist --- mach/sun2/libsys/LIST | 1 + mach/sun2/libsys/umount.s | 4 ++++ mach/sun2/libsys/unmount.s | 4 ++-- mach/sun3/libsys/LIST | 1 + mach/sun3/libsys/sigvec.c | 2 +- mach/sun3/libsys/umount.s | 4 ++++ mach/sun3/libsys/unmount.s | 4 ++-- mach/vax4/libbsd4_2/LIST | 1 + mach/vax4/libbsd4_2/cerror.s | 3 ++- mach/vax4/libbsd4_2/unmount.s | 3 +++ 10 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 mach/sun2/libsys/umount.s create mode 100644 mach/sun3/libsys/umount.s create mode 100644 mach/vax4/libbsd4_2/unmount.s diff --git a/mach/sun2/libsys/LIST b/mach/sun2/libsys/LIST index 36c42ddfc..3b1529014 100644 --- a/mach/sun2/libsys/LIST +++ b/mach/sun2/libsys/LIST @@ -126,6 +126,7 @@ times.c truncate.s umask.s unlink.s +umount.s unmount.s utime.c utimes.s diff --git a/mach/sun2/libsys/umount.s b/mach/sun2/libsys/umount.s new file mode 100644 index 000000000..f323fa5f4 --- /dev/null +++ b/mach/sun2/libsys/umount.s @@ -0,0 +1,4 @@ +#include "syscall.h" +.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text +.define _umount +_umount: SYSTEM(SYS_umount) diff --git a/mach/sun2/libsys/unmount.s b/mach/sun2/libsys/unmount.s index f323fa5f4..d58bf8371 100644 --- a/mach/sun2/libsys/unmount.s +++ b/mach/sun2/libsys/unmount.s @@ -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) diff --git a/mach/sun3/libsys/LIST b/mach/sun3/libsys/LIST index 2b746292f..cffcb20de 100644 --- a/mach/sun3/libsys/LIST +++ b/mach/sun3/libsys/LIST @@ -129,6 +129,7 @@ times.c truncate.s umask.s unlink.s +umount.s unmount.s ustat.s utime.c diff --git a/mach/sun3/libsys/sigvec.c b/mach/sun3/libsys/sigvec.c index 82a2e69d3..9b2fb21f8 100644 --- a/mach/sun3/libsys/sigvec.c +++ b/mach/sun3/libsys/sigvec.c @@ -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; diff --git a/mach/sun3/libsys/umount.s b/mach/sun3/libsys/umount.s new file mode 100644 index 000000000..f323fa5f4 --- /dev/null +++ b/mach/sun3/libsys/umount.s @@ -0,0 +1,4 @@ +#include "syscall.h" +.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text +.define _umount +_umount: SYSTEM(SYS_umount) diff --git a/mach/sun3/libsys/unmount.s b/mach/sun3/libsys/unmount.s index f323fa5f4..d58bf8371 100644 --- a/mach/sun3/libsys/unmount.s +++ b/mach/sun3/libsys/unmount.s @@ -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) diff --git a/mach/vax4/libbsd4_2/LIST b/mach/vax4/libbsd4_2/LIST index 8ea4f3315..daba62ba4 100644 --- a/mach/vax4/libbsd4_2/LIST +++ b/mach/vax4/libbsd4_2/LIST @@ -119,6 +119,7 @@ getrusage.s truncate.s umask.s umount.s +unmount.s unlink.s utime.c utimes.s diff --git a/mach/vax4/libbsd4_2/cerror.s b/mach/vax4/libbsd4_2/cerror.s index 27af5b390..35301151a 100644 --- a/mach/vax4/libbsd4_2/cerror.s +++ b/mach/vax4/libbsd4_2/cerror.s @@ -1,4 +1,5 @@ - .globl _errno, cerror + .globl _errno + .globl cerror .comm _errno, 4 cerror: movl r0,_errno diff --git a/mach/vax4/libbsd4_2/unmount.s b/mach/vax4/libbsd4_2/unmount.s new file mode 100644 index 000000000..ca040bb1e --- /dev/null +++ b/mach/vax4/libbsd4_2/unmount.s @@ -0,0 +1,3 @@ +#include "syscall.h" +DEFINE(_unmount) +SYSTEM(SYS_umount)