This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
{PATCH] ppc64 fe_nomask again
- From: Steven Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 31 Jan 2003 17:24:51 -0600
- Subject: {PATCH] ppc64 fe_nomask again
- Organization: IBM Linux Developement
- Reply-to: sjmunroe at vnet dot ibm dot com
This patch (with related kernel-feature and *context patches) makes
glibc 2.3 compatible with exiting Suse SLES 8 systems (which run the
2.4.19 kernel) use !__ASSUME_NEW_PRCTL_SYSCALL to noop (ENOSYS) the
prctl syscall in fe_nomask.c
2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
[!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
--
Steven Munroe
sjmunroe@us.ibm.com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
diff -rupPN libc23-cvstip-20030131/sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c libc23/sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
--- libc23-cvstip-20030131/sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c 2003-01-28 21:18:31.000000000 -0600
+++ libc23/sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c 2003-01-31 15:23:26.000000000 -0600
@@ -26,8 +26,11 @@
const fenv_t *
__fe_nomask_env (void)
{
+#ifdef __ASSUME_NEW_PRCTL_SYSCALL
INTERNAL_SYSCALL_DECL (err);
INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_PRECISE);
-
+#else
+ __set_errno (ENOSYS);
+#endif
return FE_ENABLED_ENV;
}