Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

User Commands (c) c89(1)
An executable le produced by the nld utility
A module denition le created by the NonStop SQL/MX preprocessor.
When the -Wsql ag is specied, C source les that contain embedded NonStop SQL/MP infor-
mation can have names sufxed with .c or .ec. When the -Wsqlmx ag is specied, c89 uses the
source le lename extension to determine the language mode (C or C++) and the names of the
source les created by the NonStop SQL/MX preprocessor.
The name of a created source le is the name of the primary source le plus one of the following
extension transformations:
If the primary source le sufxis.ec or .sql and the -Wcpluplus ag is not specied, the
created source le has the sufx .c and uses the C language mode.
If the primary source le sufxis.ec or .sql and the -Wcplusplus ag is also specied,
the created source le has the sufx .cpp and uses the C++ language mode.
If the primary source le sufxis.eC, .ecpp, .ec++, .ecc,or.ecxx, the created source le
has the sufx .C, .cpp, .c++, .cc,or.cxx, resapectively, and uses the C++ language mode.
When c89 is passed a le name sufxed with .C, .cpp, .c++, .cc,or.cxx, that le is not passed to
the NonStop SQL/MX preprocessor. Such les are assumed to contain only C or C++ statements
without embedded NonStop SQL/MX information.
Output Files
An output le can be a preprocessed source le, an object le, or an executable le.
Standard Output File
The standard output le is empty unless a -E, -WM,or-WP ag is specied. If one of these
ags is specied, preprocessed source code is sent to the standard output le. When -WH is
used, the standard output le contains a line indicating which le is currently being operated
upon.
Standard Error File
The standard error le contains diagnostic and informational messages from c89 and the compi-
lation components it calls. If more than one source le operand is specied, then for each such
le the format "%s: \n",le is used to print the name of the source le before it is processed.
Standard Libraries
The c89 utility recognizes the following -l operands for standard libraries.
-l c Contains all library functions provided by HP that are specied in the XPG4 Version 2
(X/Open UNIX) specication, including those functions listed as residing in the
math.h header le.
-l C Contains the correct C++ run-time libraries, based on the value of the -Wversionn ag.
If the -Wversionn ag is omitted, the default version C++ library is used.
When you specify the -Wcplusplus and -Wversionn ags, you need not specify -l C;
all needed libraries are automatically linked. For TNS/R programs, this includes the
cppinit[n].o and main function (_MAIN). When you specify the -Wversion2 ag,
cppinit.o is linked for a nonPIC program or cppinit2.o is linked for a PIC program.
When you specify the -Wversion3 ag, cppinit3.o is linked for a nonPIC program or
cppinit4.o is linked for a PIC program.
527188-004 Hewlett-Packard Company 223