Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dce_aud_rewind(3sec) — DCE 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

dce_aud_rewind(3sec)  —  Subroutines

NAME

dce_aud_rewind — Rewinds the specified audit trail file.  Used by the trail analysis and examination tools. 

Synopsis

void dce_aud_rewind(
dce_aud_trail_t ∗at,
unsigned32 ∗status);

Parameters

Input

atA pointer to the descriptor of an audit trail file previously opened for writing by the function dce_aud_open(). 

Output

statusThe status code returned by this function. This status code indicates whether the routine was completed successfully or not. If the routine was not completed successfully, the reason for the failure is given.  For a list of the possible status codes and their meanings, see “Errors”. 

Description

The dce_aud_rewind() function rewinds the specified audit trail file.  This function can be used to instantly clean up the audit trail file if it is no longer needed. 

dce_aud_open() must be  called to specify the desired audit trail file, and the specified audit trail file must be opened with the aud_c_trl_open_write flag. Otherwise, the routine will rewind the audit trail which is currently set in the value of at. 

If the call is successful, the file cursors are set to the beginning of the file. 

Return Values

No value is returned. 

Errors

The following describes a partial list of errors that might be returned.  Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages. 

aud_s_ok
The call was successful.

aud_s_invalid_trail_descriptor
The Audit Trail descriptor is invalid

aud_s_trl_invalid_open_flag
The Audit Trail is opened with open flag

aud_s_rewind_trail_file
The ftruncate() call failed on trail file

aud_s_rewind_index_file
The ftruncate() call failed on index file

Related Information

Functions: dce_aud_clean(3sec), dce_aud_open(3sec). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026