Guardian Application Conversion Guide
Recompiling Your C Program
Converting C Applications
096047 Tandem Computers Incorporated 5–3
D-Series
CEXTDECS Declarations
The $SYSTEM.SYSTEM.CEXTDECS file contains external declarations for Guardian
procedures. Some C-series Guardian procedures have been replaced by new D-series
procedures. The D-series CEXTDECS file contains declarations for both the C-series
version and D-series version of these procedures.
Convert your #include compiler directive to specify D-series declarations instead of
C-series declarations. Then replace the C-series procedure names in your program
with the new D-series procedure names.
For example:
#include Specifying
Superseded C-Series Procedures
#include Specifying
D-Series Procedures
#include <cextdecs (OPEN, \
READX, \
WRITEX,\
CLOSE)>
#include <cextdecs(FILE_OPEN_,\
READX, \
WRITEX, \
FILE_CLOSE_)>
Appendix A lists the D-series procedures that supersede C-series procedures. For a
description of each procedure, refer to the Guardian Procedure Calls Reference Manual.
D-Series
ZSYSC Declarations
The $SYSTEM.ZSYSDEFS.ZSYSC file contains source declarations for Guardian
procedures and system messages.
Note Contact your system manager if you cannot find $SYSTEM.ZSYSDEFS.ZSYSC. The file may have been
relocated.
To use these declarations, include them with your source code using the #include
compiler directive.
The following directive includes the entire ZSYSC file without printing the contents of
the file in a compiler listing:
#include "$system.zsysdefs.zsysc" nolist
The ZSYSC file is divided into sections, which allows you to include only the sections
your program actually needs. The following directive includes only the process-
creation and system-message constant declarations and prints the contents of each
section in a compiler listing:
#include "$system.zsysdefs.zsysc (process_constant, \
system_messages_constant)"
To print a listing of the ZSYSC file to check the declarations that are available for your
program, use the FUP COPY command:
10> FUP COPY $SYSTEM.ZSYSDEFS.ZSYSC, $s.#lineptr