z/OS Language Environment Programming Guide for 64-bit Virtual Addressing Mode
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Binding C

z/OS Language Environment Programming Guide for 64-bit Virtual Addressing Mode
SA38-0689-00

When binding the C object module as shown in Figure 1, the binder generates the following definition side-deck:
IMPORT CODE64 'BASICIO'   bopen
IMPORT CODE64 ,BASICIO,   bclose
IMPORT CODE64 ,BASICIO,   bread
IMPORT CODE64 ,BASICIO,   bwrite
IMPORT DATA64 ,BASICIO,   berror

You can edit the definition side-deck to remove any functions or variables that you do not want to export. For instance, in the above example, if you do not want to expose berror, remove the control statement IMPORT DATA64 ,BASICIO, berror from the definition side-deck.

Note:
  1. You should also provide a header file containing the prototypes for exported functions and external variable declarations for exported variables.
  2. Side-decks are created without newline characters, therefore you cannot edit them with an editor that expects newline characters, such as vi in z/OS UNIX.

For more information on binding C, see z/OS XL C/C++ User's Guide.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014