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

Table Of Contents
Introduction to HP C and C++ for NonStop Systems
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
1-11
Features of TNS/R Native C and C++
This manual is not intended to be a reference manual for ANSI C or for C++. For a
complete description of ANSI C, see ANSI X3.159. For a complete description of C++,
see ANSI X3J16/96-0225 (VERSION2) and ISO/IEC 14882:1998(E) (VERSION3).
Useful references on C and C++ include:
ANSI C, American National Standards Institute. ANSI X3.159-1989.
Ellis, Margaret A. and Stroustrup, Bjarne. The Annotated C++ Reference Manual.
Addison Wesley, 1990.
ISO/IEC. Programming Languages – C. International Standard ISO/IEC 9899. First
edition 1990-12-15.
Working Paper for Draft Proposed International Standard for Information Systems–
Programming Language C++. X3, Information Processing Systems. 2 Dec 1996.
X3J16/96-0225 WG21/N1043 (the standard on which the NonStop VERSION2 of
the Standard C++ Library is based).
International Standard ISO/IEC 14882:1998(E) Programming Languages -- C++
(the 1998 standard on which the NonStop VERSION3 of the Standard C++ Library
is based).
International Standard ISO/IEC 14882:2003(E) Programming Languages -- C++
(a newer standard)
HP includes several extensions to ISO/ANSI standard C that make C an effective
language for writing the applications that execute under the HP NonStop OS. Some of
these features are:
Access to several types of physical files
There is an extensive set of I/O library routines that enable you to access many
different types of physical files, including:
°
C disk files, which are odd-unstructured files and have a file code of 180
°
EDIT disk files, which have a file code of 101
°
Processes
°
Terminal s
°
$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.