mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
* sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
(__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL is not defined, but the prctl constants are.
This commit is contained in:
@@ -27,9 +27,15 @@
|
||||
const fenv_t *
|
||||
__fe_nomask_env (void)
|
||||
{
|
||||
#ifdef __ASSUME_NEW_PRCTL_SYSCALL
|
||||
#if defined PR_SET_FPEXC && defined PR_FP_EXC_PRECISE
|
||||
int result;
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_PRECISE);
|
||||
result = INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_PRECISE);
|
||||
# ifndef __ASSUME_NEW_PRCTL_SYSCALL
|
||||
if (INTERNAL_SYSCALL_ERROR_P (result, err)
|
||||
&& INTERNAL_SYSCALL_ERRNO (result, err) == EINVAL)
|
||||
__set_errno (ENOSYS);
|
||||
# endif
|
||||
#else
|
||||
__set_errno (ENOSYS);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user