logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

feholdexcept.3p (2708B)


  1. '\" et
  2. .TH FEHOLDEXCEPT "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. feholdexcept
  12. \(em save current floating-point environment
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <fenv.h>
  17. .P
  18. int feholdexcept(fenv_t *\fIenvp\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The functionality described on this reference page is aligned with the
  22. ISO\ C standard. Any conflict between the requirements described here and the
  23. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  24. .P
  25. The
  26. \fIfeholdexcept\fR()
  27. function shall save the current floating-point environment in the
  28. object pointed to by
  29. .IR envp ,
  30. clear the floating-point status flags, and then install a non-stop
  31. (continue on floating-point exceptions) mode, if available, for all
  32. floating-point exceptions.
  33. .SH "RETURN VALUE"
  34. The
  35. \fIfeholdexcept\fR()
  36. function shall return zero if and only if non-stop floating-point
  37. exception handling was successfully installed.
  38. .SH ERRORS
  39. No errors are defined.
  40. .LP
  41. .IR "The following sections are informative."
  42. .SH EXAMPLES
  43. None.
  44. .SH "APPLICATION USAGE"
  45. None.
  46. .SH RATIONALE
  47. The
  48. \fIfeholdexcept\fR()
  49. function should be effective on typical IEC\ 60559:\|1989 standard implementations which
  50. have the default non-stop mode and at least one other mode for trap
  51. handling or aborting. If the implementation provides only the non-stop
  52. mode, then installing the non-stop mode is trivial.
  53. .SH "FUTURE DIRECTIONS"
  54. None.
  55. .SH "SEE ALSO"
  56. .IR "\fIfegetenv\fR\^(\|)",
  57. .IR "\fIfeupdateenv\fR\^(\|)"
  58. .P
  59. The Base Definitions volume of POSIX.1\(hy2017,
  60. .IR "\fB<fenv.h>\fP"
  61. .\"
  62. .SH COPYRIGHT
  63. Portions of this text are reprinted and reproduced in electronic form
  64. from IEEE Std 1003.1-2017, Standard for Information Technology
  65. -- Portable Operating System Interface (POSIX), The Open Group Base
  66. Specifications Issue 7, 2018 Edition,
  67. Copyright (C) 2018 by the Institute of
  68. Electrical and Electronics Engineers, Inc and The Open Group.
  69. In the event of any discrepancy between this version and the original IEEE and
  70. The Open Group Standard, the original IEEE and The Open Group Standard
  71. is the referee document. The original Standard can be obtained online at
  72. http://www.opengroup.org/unix/online.html .
  73. .PP
  74. Any typographical or formatting errors that appear
  75. in this page are most likely
  76. to have been introduced during the conversion of the source files to
  77. man page format. To report such errors, see
  78. https://www.kernel.org/doc/man-pages/reporting_bugs.html .