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

fegetexceptflag.3p (3205B)


  1. '\" et
  2. .TH FEGETEXCEPTFLAG "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. fegetexceptflag,
  12. fesetexceptflag
  13. \(em get and set floating-point status flags
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. #include <fenv.h>
  18. .P
  19. int fegetexceptflag(fexcept_t *\fIflagp\fP, int \fIexcepts\fP);
  20. int fesetexceptflag(const fexcept_t *\fIflagp\fP, int \fIexcepts\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. \fIfegetexceptflag\fR()
  29. function shall attempt to store an implementation-defined representation
  30. of the states of the floating-point status flags indicated by the argument
  31. .IR excepts
  32. in the object pointed to by the argument
  33. .IR flagp .
  34. .P
  35. The
  36. \fIfesetexceptflag\fR()
  37. function shall attempt to set the floating-point status flags indicated
  38. by the argument
  39. .IR excepts
  40. to the states stored in the object pointed to by
  41. .IR flagp .
  42. The value pointed to by
  43. .IR flagp
  44. shall have been set by a previous call to
  45. \fIfegetexceptflag\fR()
  46. whose second argument represented at least those floating-point
  47. exceptions represented by the argument
  48. .IR excepts .
  49. This function does not raise floating-point exceptions, but only sets
  50. the state of the flags.
  51. .SH "RETURN VALUE"
  52. If the representation was successfully stored,
  53. \fIfegetexceptflag\fR()
  54. shall return zero. Otherwise, it shall return a non-zero value. If the
  55. .IR excepts
  56. argument is zero or if all the specified exceptions were successfully
  57. set,
  58. \fIfesetexceptflag\fR()
  59. shall return zero. Otherwise, it shall return a non-zero value.
  60. .SH ERRORS
  61. No errors are defined.
  62. .LP
  63. .IR "The following sections are informative."
  64. .SH EXAMPLES
  65. None.
  66. .SH "APPLICATION USAGE"
  67. None.
  68. .SH RATIONALE
  69. None.
  70. .SH "FUTURE DIRECTIONS"
  71. None.
  72. .SH "SEE ALSO"
  73. .IR "\fIfeclearexcept\fR\^(\|)",
  74. .IR "\fIferaiseexcept\fR\^(\|)",
  75. .IR "\fIfetestexcept\fR\^(\|)"
  76. .P
  77. The Base Definitions volume of POSIX.1\(hy2017,
  78. .IR "\fB<fenv.h>\fP"
  79. .\"
  80. .SH COPYRIGHT
  81. Portions of this text are reprinted and reproduced in electronic form
  82. from IEEE Std 1003.1-2017, Standard for Information Technology
  83. -- Portable Operating System Interface (POSIX), The Open Group Base
  84. Specifications Issue 7, 2018 Edition,
  85. Copyright (C) 2018 by the Institute of
  86. Electrical and Electronics Engineers, Inc and The Open Group.
  87. In the event of any discrepancy between this version and the original IEEE and
  88. The Open Group Standard, the original IEEE and The Open Group Standard
  89. is the referee document. The original Standard can be obtained online at
  90. http://www.opengroup.org/unix/online.html .
  91. .PP
  92. Any typographical or formatting errors that appear
  93. in this page are most likely
  94. to have been introduced during the conversion of the source files to
  95. man page format. To report such errors, see
  96. https://www.kernel.org/doc/man-pages/reporting_bugs.html .