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

NAME

6       fegetexceptflag,  fesetexceptflag  -  get and set floating-point status
7       flags
8

SYNOPSIS

10       #include <fenv.h>
11
12       int fegetexceptflag(fexcept_t *flagp, int excepts);
13       int fesetexceptflag(const fexcept_t *flagp, int excepts);
14
15

DESCRIPTION

17       The fegetexceptflag() function shall attempt to  store  an  implementa‐
18       tion-defined  representation of the states of the floating-point status
19       flags indicated by the argument excepts in the object pointed to by the
20       argument flagp.
21
22       The  fesetexceptflag() function shall attempt to set the floating-point
23       status flags indicated by the argument excepts to the states stored  in
24       the  object  pointed  to by flagp.  The value pointed to by flagp shall
25       have been set by a previous  call  to  fegetexceptflag()  whose  second
26       argument  represented  at  least those floating-point exceptions repre‐
27       sented by the argument excepts. This function does not raise  floating-
28       point exceptions, but only sets the state of the flags.
29

RETURN VALUE

31       If  the representation was successfully stored, fegetexceptflag() shall
32       return zero. Otherwise, it  shall  return  a  non-zero  value.  If  the
33       excepts  argument  is zero or if all the specified exceptions were suc‐
34       cessfully set, fesetexceptflag() shall return zero. Otherwise, it shall
35       return a non-zero value.
36

ERRORS

38       No errors are defined.
39
40       The following sections are informative.
41

EXAMPLES

43       None.
44

APPLICATION USAGE

46       None.
47

RATIONALE

49       None.
50

FUTURE DIRECTIONS

52       None.
53

SEE ALSO

55       feclearexcept()  ,  feraiseexcept() , fetestexcept() , the Base Defini‐
56       tions volume of IEEE Std 1003.1-2001, <fenv.h>
57
59       Portions of this text are reprinted and reproduced in  electronic  form
60       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
61       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
62       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
63       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
64       event of any discrepancy between this version and the original IEEE and
65       The Open Group Standard, the original IEEE and The Open Group  Standard
66       is  the  referee document. The original Standard can be obtained online
67       at http://www.opengroup.org/unix/online.html .
68
69
70
71IEEE/The Open Group                  2003                   FEGETEXCEPTFLAG(P)
Impressum