1FEGETEXCEPTFLAG(3P)        POSIX Programmer's Manual       FEGETEXCEPTFLAG(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       fegetexceptflag, fesetexceptflag — get and  set  floating-point  status
13       flags
14

SYNOPSIS

16       #include <fenv.h>
17
18       int fegetexceptflag(fexcept_t *flagp, int excepts);
19       int fesetexceptflag(const fexcept_t *flagp, int excepts);
20

DESCRIPTION

22       The  functionality described on this reference page is aligned with the
23       ISO C standard. Any conflict between the  requirements  described  here
24       and  the  ISO C  standard is unintentional. This volume of POSIX.1‐2017
25       defers to the ISO C standard.
26
27       The fegetexceptflag() function shall attempt to  store  an  implementa‐
28       tion-defined  representation of the states of the floating-point status
29       flags indicated by the argument excepts in the object pointed to by the
30       argument flagp.
31
32       The  fesetexceptflag() function shall attempt to set the floating-point
33       status flags indicated by the argument excepts to the states stored  in
34       the  object  pointed  to by flagp.  The value pointed to by flagp shall
35       have been set by a previous  call  to  fegetexceptflag()  whose  second
36       argument  represented  at  least those floating-point exceptions repre‐
37       sented by the argument excepts.  This function does not raise floating-
38       point exceptions, but only sets the state of the flags.
39

RETURN VALUE

41       If  the representation was successfully stored, fegetexceptflag() shall
42       return zero. Otherwise, it  shall  return  a  non-zero  value.  If  the
43       excepts  argument  is zero or if all the specified exceptions were suc‐
44       cessfully set, fesetexceptflag() shall return zero. Otherwise, it shall
45       return a non-zero value.
46

ERRORS

48       No errors are defined.
49
50       The following sections are informative.
51

EXAMPLES

53       None.
54

APPLICATION USAGE

56       None.
57

RATIONALE

59       None.
60

FUTURE DIRECTIONS

62       None.
63

SEE ALSO

65       feclearexcept(), feraiseexcept(), fetestexcept()
66
67       The Base Definitions volume of POSIX.1‐2017, <fenv.h>
68
70       Portions  of  this text are reprinted and reproduced in electronic form
71       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
72       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
73       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
74       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
75       event of any discrepancy between this version and the original IEEE and
76       The  Open Group Standard, the original IEEE and The Open Group Standard
77       is the referee document. The original Standard can be  obtained  online
78       at http://www.opengroup.org/unix/online.html .
79
80       Any  typographical  or  formatting  errors that appear in this page are
81       most likely to have been introduced during the conversion of the source
82       files  to  man page format. To report such errors, see https://www.ker
83       nel.org/doc/man-pages/reporting_bugs.html .
84
85
86
87IEEE/The Open Group                  2017                  FEGETEXCEPTFLAG(3P)
Impressum