TNS/R Native Application Migration Guide
Common Run-Time Environment (CRE) Migration
Tasks
TNS/R Native Application Migration Guide—523745-001
8-2
Specifying Header Files
Specifying Header Files
Separate TAL and pTAL header files describe the external declarations of CRE
functions. Change external declaration file references in SOURCE directives to use the
pTAL declaration files, as follows:
Replacing Obsolete CRE Functions
The obsolete CRE functions include:
•
Standard Math Functions on page 8-3
•
String Functions on page 8-5
•
Memory Block Functions on page 8-7
•
Exception-Handling Functions on page 8-8
•
$RECEIVE Functions on page 8-8
•
Sixty-Four-Bit Logical Operation Functions on page 8-8
•
Decimal-Conversion Functions on page 8-8
In many cases, the obsolete functions have nearly identical replacements or, for
COBOL85, equivalent intrinsic functions. The replacements match the functions in the
native C run-time library. To call these functions from pTAL, you must write your own
pTAL function declarations. See the C header files and the Guardian TNS/R Native C
Library Calls Reference Manual for a description of each function’s definition and
behavior. See the pTAL Reference Manual for information on writing pTAL declarations
for C functions. See the COBOL85 for NonStop Systems Manual for information on
COBOL85 intrinsic functions.
CRE functions that can generate arithmetic traps in TNS processes do not generate
arithmetic traps in native processes. In the native environment, the trap handling facility
has been replaced with a signal handling facility. Arithmetic overflow is detected
dynamically and a default signal handler is provided. Programs must now evaluate
errno or the parameters to a function call. For native programs, the CRE provides a
default signal handler instead of a default trap handler.
For Function Names
Beginning With:
Use This TAL
Declaration File:
Use This pTAL
Declaration File:
CRE_ CREDECS CRERDECS
RTL_ RTLDECS RTLRDECS
CLU_ CLUDECS CLURDECS