DCE for the HP e3000 (B3821-90003)
70 Chapter7
Programming with RPC 1.2.1 on MPE/iX
/*
* If you want to use the building blocks tracing facility then define the TRACING
* flag in your compile (put -DTRACING in the Makefile). For this to compile and
* link, you will need the building blocks library installed on your system.
*/
#include <dce/trace_log.h> /* Building blocks tracing */
extern tr_handle_t * tr_handle; /* used by client, server */
/*
* These print functions use the trace/log facility instead of stdio. All print
* statements in this file use these macros so it's easy to replace use of stdio with
* the trace/log facility. The NULL after tr_handle signifies the use of the 500
* byte, default buffer for trace output.
*/
# define RINT_FUNC tr_printmsg
# define PRINT_HANDLE tr_handle, NULL
/*
* The trace_name string is registered with the trace/log facility as the
* name of this application. It will appear in any tracing output.
*/
# define trace_name sleeper_description
#else /* TRACING */
/*
* These print functions use stdio instead of the trace/log facility. They
* turn off the tracing macros by replacing them with standard IO routines.
*/
# define PRINT_FUNC fprintf
# define PRINT_HANDLE stdout
#endif /* TRACING */