Commit | Line | Data |
---|---|---|
53607101 C |
1 | .TH TRAPER 3F "18 July 1983" |
2 | .UC 4 | |
3 | .SH NAME | |
4 | traper \- trap arithmetic errors | |
5 | .SH SYNOPSIS | |
6 | .B integer function traper (mask) | |
7 | .SH DESCRIPTION | |
8 | \fBNOTE: This routine applies only to the \s-2VAX\s0. | |
9 | It is ignored on the \s-2PDP11\s0.\fR | |
10 | .PP | |
11 | Integer overflow and floating point underflow are not normally | |
12 | trapped during execution. This routine enables these traps by setting | |
13 | status bits in the process status word. These bits are reset on | |
14 | entry to a subprogram, and the previous state is restored on return. | |
15 | Therefore, this routine must be called | |
16 | .I inside | |
17 | each subprogram in which these conditions should be trapped. | |
18 | If the condition occurs and trapping is enabled, | |
19 | signal SIGFPE is sent to the process. (See | |
20 | .IR signal (3C)) | |
21 | .PP | |
22 | The argument has the following meaning: | |
23 | .nf | |
24 | ||
25 | value meaning | |
26 | 0 do not trap either condition | |
27 | 1 trap integer overflow only | |
28 | 2 trap floating underflow only | |
29 | 3 trap both the above | |
30 | ||
31 | .fi | |
32 | The previous value of these bits is returned. | |
33 | .SH FILES | |
34 | .ie \nM /usr/ucb/lib/libF77.a | |
35 | .el /usr/lib/libF77.a | |
36 | .SH "SEE ALSO" | |
37 | signal(3C), signal(3F) |