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

Terminals
$RECEIVE
Two file-reference models
There are two sets of input and output routines; each set has its own method of tracking,
maintaining, and referring to a file. These methods are called file-reference models, they are:
The ANSI model, which uses FILE pointers to identify the files.
The alternate or UNIX-style model, which uses file descriptors to identify the files.
With two file-reference models available, select the model whose I/O services best suit
the needs of application. For more details, see Chapter 4: Using the C Run-Time Library.
Access to Guardian system procedures
You can call procedures in the Guardian system library using the cextdecs header file in
the Guardian environment or the cextdecs.h header file in the OSS or PC environments.
Access to Open System Services system calls and library calls
Call routines that are part of the Open System Services library.
Access to procedures written in other languages
TNS programs can call procedures written in C, C++, TNS COBOL, FORTRAN, D-series
Pascal, and TAL. Native programs can call procedures written in C, C++, native COBOL,
and pTAL.
Access to a NonStop SQL/MP database or a NonStop SQL/MX database
TNS/R native C or C++ program can interface to a NonStop SQL/MP or NonStop SQL/MX
database using embedded SQL.
Fault-tolerant programs
Write fault-tolerant process pairs using the active backup programming model.
TNS/E Native C and C++ Language System
The TNS/E native C and C++ language system generates TNS/R and TNS/E native C and C++
programs for the Guardian and OSS environments.
Components of this language system:
TNS/E Native C Compiler
TNS/E Native C++ Compiler (page 39)
TNS/E Native C Run-Time Library (page 40)
C++ Run-Time Library and Standard C++ Library (page 40)
TNS/E Native Linker (eld Utility) (page 41)
Optional components:
Native Inspect Symbolic Debugger (page 41)
Visual Inspect Symbolic Debugger (page 42)
NonStop SQL/MP Compiler and NonStop SQL/MX Compiler (page 42)
TNS/E Native C and C++ Migration Tool (page 43)
38 Introduction to HP C and C++ for NonStop Systems