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

Table Of Contents
Using the C Run-Time Library
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
4-11
EDIT File Functions
The TNS/R native C modules that must be recompiled and the source code changes
you need to make are summarized in this table:
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 4-4
. For a detailed description of each function, see the
Guardian TNS C Library Calls Reference Manual or Guardian Native C Library Calls
Reference Manual.
Type of Compilation
Unit Type of Executable Unit Change Required
SYSTYPE GUARDIAN OSS process Use _guardian variant of the
function in compilation unit.
SYSTYPE OSS Guardian process Use _oss variant of the function
in compilation unit.
Table 4-4. C Functions That Retrieve Process Startup Information (page 1 of 2)
Function Action
get_assign_msg() Retrieves a specified ASSIGN message.
get_assign_msg_by_name() Retrieves the ASSIGN message that
corresponds to the logical-unit name
requested.
get_max_assign_msg_ordinal() Determines how many ASSIGN messages are
assigned to a particular process.