Identifying Hardware and Software Signals
The following is a list of the LE/VSE C Run-Time supported signals:
- SIGABND
- System abend.
- SIGABRT
- Abnormal termination (software only).
- SIGFPE
- Erroneous arithmetic operation (hardware and software).
- SIGILL
- Invalid object module (hardware and software).
- SIGINT
- Interactive attention interrupt by raise() (software only).
- SIGIOERR
- Serious software error such as a system read or write. You can assign a signal handler to determine the file in which the error occurs or whether the condition is an abort or abend. This minimizes the time required to locate the source of a serious error.
- SIGSEGV
- Invalid access to memory (hardware and software).
- SIGTERM
- Termination request sent to program (software only).
- SIGUSR1
- Reserved for user (software only).
- SIGUSR2
- Reserved for user (software only).
The applicable hardware signals or exceptions that are supported are listed in Table 1. It also lists those hardware exceptions that are not supported (for example, fixed-point overflow) and are masked.
The applicable software signals or exceptions that are supported are listed in Table 2.
C Signal |
Hardware
Exception |
Default Run-Time
Message withLE/VSE |
Default
System Action with LE/VSE Library |
---|---|---|---|
SIGILL |
Operation
exception |
CEE3201 |
Abnormal terminationVSE
rc=3000 |
Privileged
operation exception |
CEE3202 | ||
Execute exception | CEE3203 | ||
SIGSEGV | Protection exception | CEE3204 |
Abnormal terminationVSE
rc=3000 |
Addressing exception | CEE3205 | ||
Specification exception | CEE3206 | ||
SIGFPE | Data exception | CEE3207 |
Abnormal terminationVSE
rc=3000 |
Fixed-point divide | CEE3209 | ||
Decimal overflow | CEE3210 | ||
Decimal divide | CEE3211 | ||
Exponent overflow | CEE3212 | ||
Floating point divide | CEE3215 | ||
Note: The default run-time program mask is
enabled for decimal overflow exceptions.
|
Table 2 shows software signals or exceptions, their origin, default run-time messages and default system actions.
C Signal | Software Exception | Default Run-Time Message with LE/VSE | Default System Action with LE/VSE Library |
---|---|---|---|
SIGILL | raise(SIGILL) | EDC6001 | Abnormal Termination VSE rc=3000 |
SIGSEGV | raise(SIGSEGV) | EDC6002 | Abnormal Termination VSE rc=3000 |
SIGFPE | raise(SIGFPE) | EDC6002 | Abnormal Termination VSE rc=3000 |
SIGABND | raise(SIGABND) | EDC6003 | Abnormal Termination VSE rc=3000 |
SIGTERM | raise(SIGTERM) | EDC6004 | Abnormal Termination VSE rc=3000 |
SIGINT | raise(SIGINT) | EDC6005 | Abnormal Termination VSE rc=3000 |
SIGABRT | raise(SIGABRT) | EDC6006 | Abnormal Termination VSE rc=2000 |
SIGUSR1 | raise(SIGUSR1) | EDC6007 | Abnormal Termination VSE rc=3000 |
SIGUSR2 | raise(SIGUSR2) | EDC6008 | Abnormal Termination VSE rc=3000 |
SIGIOERR | raise(SIGIOERR) | EDC6009 | Signal is ignored. |