summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-01 15:44:03 +0000
committerbde <bde@FreeBSD.org>2002-02-01 15:44:03 +0000
commit199578d7e8dd5f3e862d836d520b44843738e810 (patch)
tree4fa3b87f94af2c013a39398905d632cfdae879a0 /sys/powerpc
parent71445fd2e0afffa649adf74ad07b0e1a30167fb1 (diff)
downloadFreeBSD-src-199578d7e8dd5f3e862d836d520b44843738e810.zip
FreeBSD-src-199578d7e8dd5f3e862d836d520b44843738e810.tar.gz
Compile osigreturn() unconditionally since it will always be needed on
some arches and the syscall table is machine-independent. It was (bogusly) conditional on COMPAT_43, so this usually makes no difference. ia64: in addition: - replace the bogus cloned comment before osigreturn() by a correct one. osigreturn() is just a stub fo ia64's. - fix the formatting of cloned comment before sigreturn(). - fix the return code. use nosys() instead of returning ENOSYS to get the same semantics as if the syscall is not in the syscall table. Generating SIGSYS is actually correct here. - fix style bugs. powerpc: copy the cleaned up ia64 stub. This mainly fixes a bogus comment. sparc64: copy the cleaned up the ia64 stub, since there was no stub before.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/aim/machdep.c10
-rw-r--r--sys/powerpc/powerpc/machdep.c10
2 files changed, 12 insertions, 8 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index 9a79ad8..c93d5e3 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -723,15 +723,17 @@ sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
return;
}
-#ifdef COMPAT_43
+/*
+ * Stub to satisfy the reference to osigreturn in the syscall table. This
+ * is needed even for newer arches that don't support old signals because
+ * the syscall table is machine-independent.
+ */
int
osigreturn(struct thread *td, struct osigreturn_args *uap)
{
- /* XXX: To be done */
- return(ENOSYS);
+ return (nosys(td, (struct nosys_args *)uap));
}
-#endif
int
sigreturn(struct thread *td, struct sigreturn_args *uap)
diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c
index 9a79ad8..c93d5e3 100644
--- a/sys/powerpc/powerpc/machdep.c
+++ b/sys/powerpc/powerpc/machdep.c
@@ -723,15 +723,17 @@ sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
return;
}
-#ifdef COMPAT_43
+/*
+ * Stub to satisfy the reference to osigreturn in the syscall table. This
+ * is needed even for newer arches that don't support old signals because
+ * the syscall table is machine-independent.
+ */
int
osigreturn(struct thread *td, struct osigreturn_args *uap)
{
- /* XXX: To be done */
- return(ENOSYS);
+ return (nosys(td, (struct nosys_args *)uap));
}
-#endif
int
sigreturn(struct thread *td, struct sigreturn_args *uap)
OpenPOWER on IntegriCloud