CRE Programmer's Guide

CRE Services
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
2-5
Error Reporting
native CRE calls a kernel routine that calls all shared run-time library termination
routines, and then calls another kernel routine to stop the process.
In the Guardian environment, the CRE also ensures that buffers for standard files are
empty and properly closed.
Error Reporting
In general, the CRE writes messages to the standard log file. The location to which the
CRE writes messages, however, can be different in the OSS and Guardian
environments. See Standard Log on page 2-33 for more details.
Standard Functions
The CRE provides many standard functions, including:
Math functions, described in Section 7, Math Functions
String functions, described in Section 8, String and Memory Block Functions
Memory block functions, described in Section 8, String and Memory Block
Functions
The native CRE library supports only standard functions required by the C and C++
run-time libraries.
CRE Services
Table 2-1. CRE Services in the Guardian Environment
Service TNS environment Native environment
Standard files Yes Yes
$RECEIVE message processing Yes Yes
Exception handling Traps Signals
Process initialization Yes Yes
Process termination Yes Yes
Process pairs Yes Yes
Table 2-2. CRE Services in the OSS Environment (page 1 of 2)
Service TNS environment Native environment
Standard files No No
$RECEIVE message processing Limited Limited
Exception handling Signals Signals