Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

signal(3C)

signal(3F)

TRAPER(3F)  —  NEWS-OS Programmer’s Manual

NAME

traper − trap arithmetic errors

SYNOPSIS

integer function traper (mask)

DESCRIPTION

NOTE: Routine for value=1 is not yet implemented on NEWS.

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

The argument has the following meaning:

         value   meaning
          0     do not trap either condition
          1     trap integer overflow only (not implemented on NEWS)
          2     trap floating underflow only
          3     trap both the above
 

The previous value is returned. 

DIAGNOSTICS

This function call is only available in Fortran for CISC NEWS. 

FILES

/usr/lib/libF77.a

SEE ALSO

signal(3C), signal(3F)

NEWS-OSRelease 4.1C

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