C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)

The TNS/R native C modules that must be recompiled and the source code changes you need to
make are summarized in this table:
Change RequiredType of Executable UnitType of Compilation Unit
Use _guardian variant of the function
in compilation unit.
OSS processSYSTYPEGUARDIAN
Use _oss variant of the function in
compilation unit.
Guardian processSYSTYPEOSS
EDIT File Functions
The Guardian TNS and native C run-time libraries provide two HP extension functions to support
EDIT files: edfseek() and edftell(). For more details, see the Guardian TNS C Library Calls
Reference Manual, Guardian Native C Library Calls Reference Manual, or Open System Services
Library Calls Reference Manual.
SQL Data-Type Conversion Functions
The Guardian TNS and native C run-time libraries provide HP extension functions to support
data-type conversion for SQL programs. The two data-type conversion functions are
dec_to_longlong() and longlong_to_dec(). For more details, see the Guardian TNS C
Library Calls Reference Manual, Guardian Native C Library Calls Reference Manual, or Open
System Services Library Calls Reference Manual.
Startup Information Retrieval Functions
The Guardian TNS and native C run-time libraries include six functions that allow the retrieval of
the process startup message, the PARAM message, and the ASSIGN messages. You can call these
functions from Guardian processes only. These functions are listed in Table 13. For a detailed
description of each function, see the Guardian TNS C Library Calls Reference Manual or Guardian
Native C Library Calls Reference Manual.
Table 13 C Functions That Retrieve Process Startup Information
ActionFunction
Retrieves a specified ASSIGN message.get_assign_msg()
Retrieves the ASSIGN message that corresponds to the
logical-unit name requested.
get_assign_msg_by_name()
Determines how many ASSIGN messages are assigned to
a particular process.
get_max_assign_msg_ordinal()
Retrieves the value of the parameter that corresponds to
the parameter name requested.
get_param_by_name()
Retrieves the PARAM message.get_param_msg()
Retrieves the process startup message.get_startup_msg()
Miscellaneous HP Extension Functions
These functions are HP extensions that provide specific control over the HP C and C++ environment
on NonStop systems:
chvol()
heap_check()
heap_check_always()
heap_min_block_size()
78 Using the C Run-Time Library