Improve the change in the previous commit: use a stub for osigreturn()

when it is not really used instead of unconditionalizing all of it.
This commit is contained in:
Bruce Evans 2002-02-03 04:09:02 +00:00
parent 42dcd8695a
commit 5c8d0a85b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90128
5 changed files with 20 additions and 0 deletions

View File

@ -1446,6 +1446,7 @@ osigreturn(struct thread *td,
struct osigcontext *sigcntxp;
} */ *uap)
{
#ifdef COMPAT_43
struct osigcontext *scp, ksc;
struct proc *p = td->td_proc;
@ -1498,6 +1499,9 @@ osigreturn(struct thread *td,
sizeof(struct fpreg));
td->td_pcb->pcb_fp_control = ksc.sc_fp_control;
return (EJUSTRETURN);
#else /* !COMPAT_43 */
return (ENOSYS);
#endif /* COMPAT_43 */
}
int

View File

@ -594,6 +594,7 @@ osigreturn(td, uap)
struct osigcontext *sigcntxp;
} */ *uap;
{
#ifdef COMPAT_43
struct trapframe *regs;
struct osigcontext *scp;
struct proc *p = td->td_proc;
@ -696,6 +697,9 @@ osigreturn(td, uap)
regs->tf_eip = scp->sc_pc;
regs->tf_eflags = eflags;
return (EJUSTRETURN);
#else /* !COMPAT_43 */
return (ENOSYS);
#endif /* COMPAT_43 */
}
int

View File

@ -594,6 +594,7 @@ osigreturn(td, uap)
struct osigcontext *sigcntxp;
} */ *uap;
{
#ifdef COMPAT_43
struct trapframe *regs;
struct osigcontext *scp;
struct proc *p = td->td_proc;
@ -696,6 +697,9 @@ osigreturn(td, uap)
regs->tf_eip = scp->sc_pc;
regs->tf_eflags = eflags;
return (EJUSTRETURN);
#else /* !COMPAT_43 */
return (ENOSYS);
#endif /* COMPAT_43 */
}
int

View File

@ -607,6 +607,7 @@ osigreturn(td, uap)
struct osigcontext *sigcntxp;
} */ *uap;
{
#ifdef COMPAT_43
struct trapframe *regs;
struct osigcontext *scp;
struct proc *p = td->td_proc;
@ -709,6 +710,9 @@ osigreturn(td, uap)
regs->tf_eip = scp->sc_pc;
regs->tf_eflags = eflags;
return (EJUSTRETURN);
#else /* !COMPAT_43 */
return (ENOSYS);
#endif /* COMPAT_43 */
}
int

View File

@ -607,6 +607,7 @@ osigreturn(td, uap)
struct osigcontext *sigcntxp;
} */ *uap;
{
#ifdef COMPAT_43
struct trapframe *regs;
struct osigcontext *scp;
struct proc *p = td->td_proc;
@ -709,6 +710,9 @@ osigreturn(td, uap)
regs->tf_eip = scp->sc_pc;
regs->tf_eflags = eflags;
return (EJUSTRETURN);
#else /* !COMPAT_43 */
return (ENOSYS);
#endif /* COMPAT_43 */
}
int