summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-03 04:09:02 +0000
committerbde <bde@FreeBSD.org>2002-02-03 04:09:02 +0000
commit10b0acc83425e75cf8b837508b5b8979a821bc30 (patch)
tree16fad0d0860e34b83bdf1ba4ae1fb837e25b2083 /sys
parent2547546bed043aa1f269555b72436419fb846c0d (diff)
downloadFreeBSD-src-10b0acc83425e75cf8b837508b5b8979a821bc30.zip
FreeBSD-src-10b0acc83425e75cf8b837508b5b8979a821bc30.tar.gz
Improve the change in the previous commit: use a stub for osigreturn()
when it is not really used instead of unconditionalizing all of it.
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/machdep.c4
-rw-r--r--sys/amd64/amd64/machdep.c4
-rw-r--r--sys/i386/i386/machdep.c4
-rw-r--r--sys/pc98/i386/machdep.c4
-rw-r--r--sys/pc98/pc98/machdep.c4
5 files changed, 20 insertions, 0 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c
index 73a6765..9ac2824 100644
--- a/sys/alpha/alpha/machdep.c
+++ b/sys/alpha/alpha/machdep.c
@@ -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
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 0d23bcf..308d319 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -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
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 0d23bcf..308d319 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -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
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index 63a24ff..0c0243d 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -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
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 63a24ff..0c0243d 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -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
OpenPOWER on IntegriCloud