Back to index

glibc  2.9
Functions
fe_mask.c File Reference
#include <fenv.h>
#include <errno.h>
#include <sysdep.h>
#include <sys/syscall.h>
#include <sys/prctl.h>
#include <kernel-features.h>

Go to the source code of this file.

Functions

const fenv_t__fe_mask_env (void)

Function Documentation

const fenv_t* __fe_mask_env ( void  )

Definition at line 28 of file fe_mask.c.

{
#if defined PR_SET_FPEXC && defined PR_FP_EXC_DISABLED
  int result;
  INTERNAL_SYSCALL_DECL (err);
  result = INTERNAL_SYSCALL (prctl, err, 2, PR_SET_FPEXC, PR_FP_EXC_DISABLED);
# 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
  return FE_DFL_ENV;
}

Here is the call graph for this function: