From 199578d7e8dd5f3e862d836d520b44843738e810 Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 1 Feb 2002 15:44:03 +0000 Subject: 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. --- sys/amd64/amd64/machdep.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/amd64') diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 807ab20..0d23bcf 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -587,7 +587,6 @@ sendsig(catcher, sig, mask, code) * make sure that the user has not modified the * state to gain improper privileges. */ -#ifdef COMPAT_43 int osigreturn(td, uap) struct thread *td; @@ -698,7 +697,6 @@ osigreturn(td, uap) regs->tf_eflags = eflags; return (EJUSTRETURN); } -#endif int sigreturn(td, uap) -- cgit v1.1