Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ traper(3F) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

signal(3C)

signal(3F)

traper(3F)

NAME

traper − trap arithmetic errors

SYNOPSIS

integer function traper (mask)

DESCRIPTION

Integer overflow and floating point underflow are not normally trapped during execution.  This routine enables zero, one, or both of these traps by setting status bits in the appropriate control registers.  If the condition occurs and trapping is enabled, signal SIGFPE is sent to the process. (See signal(3C))

The argument mask has the following meaning:

         value   meaning
          0     do not trap either condition
          1     trap integer overflow only
          2     trap floating underflow only
          3     trap both the above
 

On Series 4000 systems only, floating underflow can be enabled or disabled and the value 1 has no meaning.  The previous value of these bits is returned. 

FILES

/usr/lib/libF77.a

SEE ALSO

signal(3C), signal(3F)

NOTES

When compiling source with the -Qocs option, an explicit underscore needs to be added to the end of the routine name. 

CX/UX Hf77 Fortran Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026