1FPERR(2)                      System Calls Manual                     FPERR(2)
2
3
4

NAME

6       fperr - get floating-point error registers (2BSD)
7

SYNOPSIS

9       #include <pdp/fperr.h>
10
11       struct fperr
12       {
13            short     f_fec;
14            caddr_t   f_fea;
15       };
16
17       fperr(fpe)
18       struct fperr *fpe;
19

DESCRIPTION

21       Fperr returns the contents of the floating-point processor's error reg‐
22       isters as they were following the last floating exception generated  by
23       the calling process.  The registers are stored in the structure pointed
24       to by fpe.
25
26       This call is required because the error registers in the PDP-11  float‐
27       ing-point  processor  are read-only.  Thus, they may be changed by some
28       other process between the time that the current  process  generates  an
29       exception  and  the  time  that it reads the registers.  Therefore, the
30       system saves their state at the time of an exception.
31
32       The values returned are valid only after a floating-point exception.
33

ERRORS

35       [EINVAL]       The kernel has not been compiled for  a  processor  with
36                      floating point.
37

SEE ALSO

39       Ed  Gould,  Jim Reeds, Vance Vaughan, UNIX Problems with Floating Point
40       Processors
41

BUGS

43       Fperr is unique to the PDP-11 and 2BSD; its use is discouraged.
44
45
46
473rd Berkeley Distribution      January 22, 1987                       FPERR(2)
Impressum