TNS/E Native Application Conversion Guide

OSS API and Utilities Conversion Tasks
TNS/E Native Application Conversion Guide529659-003
11 - 5
Using System Calls Enhanced to Support the Native
Architecture
Using System Calls Enhanced to Support the
Native Architecture
These OSS system calls have been enhanced to support native processes, native
object files, and DLLs:
tdm_execve
tdm_execvep
tdm_fork
tdm_spawn
tdm_spawnp
Depending on the operations that your TNS programs perform with these functions,
you might need to specify new or different parameters. Also, any returned error values
should not be depended upon. For details, see the function’s reference page online or
in the
Open System Services System Calls Reference Manual
.
Specifying Compiler Pragmas
On G-series systems, there are two versions of the OSS c89 utility: one version for the
TNS compilation system and one version for the native compilation system. H-series
systems support only the native compilation system, either the native c89 utility or the
native c99 utility (beginning with H06.21/J06.10 and later versions). The native c89
utilities are nearly identical on G-series and H-series systems.
The TNS c89 utility has two flags that support compiler pragmas, -Wsystype and
-Wverbose. For all other pragmas, you either place pragmas in the source text or
pass pragmas to compilation system components by using the -Wccom flag and an
argument string, such as:
-Wccom="runnamed,nomap,inline"
The native c89 and c99 utilities have flags that support most compiler pragmas
because native compilers require most pragmas to appear on the command line. The
flags also enable c89 and c99 to validate pragmas before invoking compilation system
components. For example, the TNS c89 -Wccom flag in the preceding example is
replaced with these flags:
-Wrunnamed -Wnomap -Winline
Flags that support compiler pragmas begin with -
W
to identify them as HP extensions
for NonStop systems. For information on mapping pragmas to native c89 or c99 flags,
see the native 89 or c99 reference page online or in the
Open System Services Shell
and Utilities Reference Manual
.