2.11BSD/man/cat2/fperr.0

Compare this file to the similar file:
Show the results in this format:




FPERR(2)	    UNIX Programmer's Manual		 FPERR(2)



NAME
     fperr - get floating-point error registers (2BSD)

SYNOPSIS
     #include <pdp/fperr.h>

     struct fperr
     {
	  short     f_fec;
	  caddr_t   f_fea;
     };

     fperr(fpe)
     struct fperr *fpe;

DESCRIPTION
     _F_p_e_r_r returns the contents of the floating-point processor's
     error registers as they were following the last floating
     exception generated by the calling process.  The registers
     are stored in the structure pointed to by _f_p_e.

     This call is required because the error registers in the
     PDP-11 floating-point processor are read-only.  Thus, they
     may be changed by some other process between the time that
     the current process generates an exception and the time that
     it reads the registers.  Therefore, the system saves their
     state at the time of an exception.

     The values returned are valid only after a floating-point
     exception.

ERRORS
     [EINVAL]	    The kernel has not been compiled for a pro-
		    cessor with floating point.

SEE ALSO
     Ed Gould, Jim Reeds, Vance Vaughan, _U_N_I_X _P_r_o_b_l_e_m_s _w_i_t_h
     _F_l_o_a_t_i_n_g _P_o_i_n_t _P_r_o_c_e_s_s_o_r_s

BUGS
     _F_p_e_r_r is unique to the PDP-11 and 2BSD; its use is
     discouraged.













Printed 11/26/99	January 22, 1987			1