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
21

DESCRIPTION

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

RETURN VALUE

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

ERRORS

44       No errors are defined.
45
46       The following sections are informative.
47

EXAMPLES

49       None.
50

APPLICATION USAGE

52       None.
53

RATIONALE

55       None.
56

FUTURE DIRECTIONS

58       None.
59

SEE ALSO

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