Distributed Name Service (DNS) Management Programming Manual
Appendix H DNS Programming Example, C
46958 Tandem Computers Incorporated H–1
#pragma XMEM
#pragma RUNNABLE
#pragma SYMBOLS
#include "ZSPIDEF.ZSPIC" nolist
#include "ZSPIDEF.ZDNSC" nolist
#include <stddefh> nolist
#include <stdlibh> nolist
#include <stdioh> nolist
#include <errnoh> nolist
#include <fcntlh> nolist
#include <stringh> nolist
#include <talh> nolist
#include <cextdecs(ABORTTRANSACTION \
, BEGINTRANSACTION \
, DEBUG \
, ENDTRANSACTION \
, FILEINFO \
, GETSYSTEMNAME \
, MYSYSTEMNUMBER \
, SSGET \
, SSGETTKN \
, SSINIT \
, SSMOVE \
, SSNULL \
, SSPUT \
, SSPUTTKN )> nolist
/*-------------------------------------------------------------------*/
/* TRUE and FALSE */
/*-------------------------------------------------------------------*/
#define true -1
#define false 0
/*-------------------------------------------------------------------*/
/* Class of error */
/*-------------------------------------------------------------------*/
typedef enum {no_err
, dns_err
, open_err
, io_err
, spi_err
, tmf_err}
error_class;
/*-------------------------------------------------------------------*/
/* Error indicator returned by functions in this program */
/*-------------------------------------------------------------------*/