User Guide
5-12 Ampex 1308911-02
Model No.
Running Head
dst_clrlog libdd2 API Functions
5.3 dst_clrlog
NAME
dst_clrlog - clear tape drive error and operational statistics.
SYNOPSIS
#include <dd2.h>
int dst_clrlog(int fd, dst_log_st *log);
DESCRIPTION
dst_clrlog() sets the tape drive error and operational statistics to their default values except for
service statistics. The service statistics (such as total scanner head contact time) are not
resettable.
You must have root permissions to use dst_clrlog().
PARAMETERS
fd The file descriptor returned by the open call.
*log Pointer to dst_log_st structure. This member is obsolete
since driver version 4.0 and will be ignored.
RETURN VALUES
The return value is DST_SUCCESS (0) or DST_FAILURE (-1). See the “DST API Overview”
on page 5-1 for information on
errno failure messages and associated DST result codes.
SEE ALSO
““DST API Overview” on page 5-1, dst_getlog(), dd2_clrlog_drive