This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

{PATCH] ppc64 fe_nomask again


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;
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]