TNS/E Native Application Conversion Guide

Converting Programs That Run in the Common Run-
Time Environment
TNS/E Native Application Conversion Guide529659-003
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
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
COBOL, 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 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
COBOL Manual for TNS/E Programs
for information on COBOL
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