OSF DCE Administration Guide--Core Components

DCE Audit Service
#define evt_vn_bank_server_acct_transfer 0x01000004
3. Adds a call to the dce_aud_open() API to the application server’s
initialization routines. This opens the audit trail file. This function
uses the event number of the lowest numbered event, (in this case
acct_open()) as one of its parameters. For example:
main()
/* evt_vn_bank_server_acct_open is the lowest event number */
dce_aud_open(aud_c_trl_open_write, description,
evt_vn_bank_server_acct_open,
5, &audit_trail, &status);
4. Adds Audit event logging functions to every code point in the
application server code. These functions perform the following at
each code point:
Initializes an audit record by using the dce_aud_start() API.
This function ‘‘assigns’’ the event number to the code point
representing an event. Thus, this function uses the event number
as one of its parameters.
Adds event-specific information to the audit record by using the
dce_aud_put_ev_info() API.
Commits the audit record using the dce_aud_commit() API.
This function writes the audit record to the audit trail file.
Following is an example of how these APIs are used on the code points of the bank
server program:
124243 Tandem Computers Incorporated 42 11