OSF DCE Application Development Guide--Introduction and Style Guide
A Sample Application
/****************************************************************************/
/* Default routing information: */
#define SAMPLE_SVC_FATAL_DEFAULT_ROUTE 0
#define SAMPLE_SVC_ERROR_DEFAULT_ROUTE 1
#define SAMPLE_SVC_WARNING_DEFAULT_ROUTE 2
#define SAMPLE_SVC_NOTICE_DEFAULT_ROUTE 3
#define SAMPLE_SVC_VERBOSE_NOTICE_DEFAULT_ROUTE 4
#define MAX_DEFAULT_ROUTES 5
unsigned_char_t *default_routes[MAX_DEFAULT_ROUTES] =
{"FATAL:STDERR:",
"ERROR:STDERR:",
"WARNING:STDERR:",
"NOTICE:STDERR:",
"NOTICE_VERBOSE:STDERR:"};
/*
{"FATAL:TEXTFILE:/tmp/smp_svc_%ld",
"ERROR:TEXTFILE:/tmp/smp_svc_%ld",
"WARNING:TEXTFILE:/tmp/smp_svc_%ld",
"NOTICE:TEXTFILE:/tmp/smp_svc_%ld",
"NOTICE_VERBOSE:/tmp/smp_svc_%ld"};
*/
/* Default debug level and route... */
unsigned_char_t *default_debug_route = (unsigned_char_t *)"smp:*.9:STDERR:-";
unsigned_char_t *default_debug_level = (unsigned_char_t *)"*.9";
/* */
/* The debug level scheme is at present roughly as follows: */
/* */
/* svc_c_debug1 -- not used. */
/* svc_c_debug2 -- not used. */
/* svc_c_debug3 -- not used. */
/* svc_c_debug4 -- messages announcing calls to system (DCE or OS) */
/* routines. */
/* svc_c_debug5 -- messages announcing calls to local routines. */
/* svc_c_debug6 -- messages announcing entry/exit to/from server remote */
/* routines (e.g., remote bind, remote svc, sample in- */
/* terface operations, etc.). This is also the level */
/* for enabling announcements of library calls from */
/* within these routines. */
/* svc_c_debug7 -- messages announcing entry/exit to/from server local- */
/* ly called routines. */
/* svc_c_debug8 -- messages displaying various debugging information. */
/* svc_c_debug9 -- not used. */
/* */
124246 Tandem Computers Incorporated A− 11