TNS/R Native Application Migration Guide

C and C++ Migration Tasks
TNS/R Native Application Migration Guide523745-001
3-9
Replacing Calls to Obsolete C Library
Supplementary Functions
Replacing Calls to Obsolete C Library
Supplementary Functions
The native C run-time library does not support the following C library functions. None of
the obsolete functions are specified in the ISO/ANSI C Standard, the X/OPEN XPG4
Specification, or the X/OPEN UNIX Specification. In most cases, you can replace the
obsolete function with another function and a few additional lines of code.
Example 3-1. Examining _cc_status
Prior to RVU D40 (TNS Programs Only)
_tal _extensible _cc_status READX ( ... );
#include <tal.h>
...
_cc_status CC;
CC = READX ( ... );
if (CC == CCL) {
...
} else if (CC == CCG) {
...
}
RVU D40 and Later (TNS and Native Programs)
_tal _extensible _cc_status READX ( ... );
#include <tal.h>
...
_cc_status CC;
CC = READX ( ... );
if (_status_lt(CC)) {
...
} else if (_status_gt(CC)) {
...
}
Table 3-1. Obsolete C Supplementary Functions (page 1 of 3)
Obsolete Function Suggested Replacement
_is_system_trap() Delete _is_system_trap(). Trap handling mechanism
replaced with signals in native processes. See the Guardian
Programmer’s Guide for details.
iscsym() Write your own function iscsym() to check whether a
character is a valid character in C identifier.
iscsymf() Write your own function iscsymf() to check whether a
character is a valid first character in a C identifier.