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

fegetenv.3p (2886B)


  1. '\" et
  2. .TH FEGETENV "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. fegetenv,
  12. fesetenv
  13. \(em get and set current floating-point environment
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. #include <fenv.h>
  18. .P
  19. int fegetenv(fenv_t *\fIenvp\fP);
  20. int fesetenv(const fenv_t *\fIenvp\fP);
  21. .fi
  22. .SH DESCRIPTION
  23. The functionality described on this reference page is aligned with the
  24. ISO\ C standard. Any conflict between the requirements described here and the
  25. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  26. .P
  27. The
  28. \fIfegetenv\fR()
  29. function shall attempt to store the current floating-point environment
  30. in the object pointed to by
  31. .IR envp .
  32. .P
  33. The
  34. \fIfesetenv\fR()
  35. function shall attempt to establish the floating-point environment
  36. represented by the object pointed to by
  37. .IR envp .
  38. The argument
  39. .IR envp
  40. shall point to an object set by a call to
  41. \fIfegetenv\fR()
  42. or
  43. \fIfeholdexcept\fR(),
  44. or equal a floating-point environment macro. The
  45. \fIfesetenv\fR()
  46. function does not raise floating-point exceptions, but only installs
  47. the state of the floating-point status flags represented through its
  48. argument.
  49. .SH "RETURN VALUE"
  50. If the representation was successfully stored,
  51. \fIfegetenv\fR()
  52. shall return zero. Otherwise, it shall return a non-zero value.
  53. If the environment was successfully established,
  54. \fIfesetenv\fR()
  55. shall return zero. Otherwise, it shall return a non-zero value.
  56. .SH ERRORS
  57. No errors are defined.
  58. .LP
  59. .IR "The following sections are informative."
  60. .SH EXAMPLES
  61. None.
  62. .SH "APPLICATION USAGE"
  63. None.
  64. .SH RATIONALE
  65. None.
  66. .SH "FUTURE DIRECTIONS"
  67. None.
  68. .SH "SEE ALSO"
  69. .IR "\fIfeholdexcept\fR\^(\|)",
  70. .IR "\fIfeupdateenv\fR\^(\|)"
  71. .P
  72. The Base Definitions volume of POSIX.1\(hy2017,
  73. .IR "\fB<fenv.h>\fP"
  74. .\"
  75. .SH COPYRIGHT
  76. Portions of this text are reprinted and reproduced in electronic form
  77. from IEEE Std 1003.1-2017, Standard for Information Technology
  78. -- Portable Operating System Interface (POSIX), The Open Group Base
  79. Specifications Issue 7, 2018 Edition,
  80. Copyright (C) 2018 by the Institute of
  81. Electrical and Electronics Engineers, Inc and The Open Group.
  82. In the event of any discrepancy between this version and the original IEEE and
  83. The Open Group Standard, the original IEEE and The Open Group Standard
  84. is the referee document. The original Standard can be obtained online at
  85. http://www.opengroup.org/unix/online.html .
  86. .PP
  87. Any typographical or formatting errors that appear
  88. in this page are most likely
  89. to have been introduced during the conversion of the source files to
  90. man page format. To report such errors, see
  91. https://www.kernel.org/doc/man-pages/reporting_bugs.html .