Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

db_init

Name

db_init � Initialize and activate trace facility

Synopsis

#include <spp.h>
int db_init (qkey)
int qkey; /* message queue key of process */

Description

Data interface processes (DIPs) call db_init once at the start to set up the trace mechanism provided by the system. The qkey is the message queue key assigned to the process.

From then on, processes can use db_pr and db_put to write out trace and debug messages. These trace messages then can be displayed on the command line by using the trace command. On behalf of the process, VSstartup and startup call db_init so this function does not have to be called directly.

Diagnostics

No indication of success or failure is returned. If it fails, the dp_put message appears on standard error (stderr) and db_pr messages are ignored.

See also

� 2002 Avaya Inc. All Rights Reserved.