User Guide

5-60 Ampex 1308911-02
Model No.
Running Head
dst_status libdd2 API Functions
typedef struct
{
u_int valid; /* Valid members - see defines above */
int minblksz; /* Minimum block size */
int maxblksz; /* Maximum block size */
int drvblksz; /* Drive's current block size */
int wrblksz; /* New file block size (set on write)*/
dst_state_st state; /* Current state - see defines above */
dst_result_st results; /* Results from the last I/O op */
dst_format_st format; /* Tape format information */
dst_position_st lpos; /* Current logical position */
dst_position_st obsolete1; /* Used to be ppos */
int bufdata; /* no. of bytes in buffer */
int rpcap; /* Remaining partition capacity past current *
position in phys blks */
int fileblksz; /* Used to be rtcap, obsolete3 */
} dst_status_st;
typedef struct
{
u_int valid; /* Valid members */ (see Table C-5)
dst_rcode_en rcode; /* Primary result code */ (see Table C-3)
dst_rclasss_en rclass /* Result class of rcode */ (see Table C-6)
dst_msicode_en msicode; /* MSI result code */ (see Table C-1)
dst_msrcode_en msrcode; /* MSR result code*/ (see Table C-2)
dst_msrstat_st msrstat; /* MSR machine status */ (see below)
dst_severity_en severity; /* Level of error severity */ (see Table C-6)
} dst_result_st;
typedef struct
{
u_char statbyte[2];
} dst_msrstat_st;
msrstat.statbyte[0] corresponds to Byte 23 in Table C-4
msrstat.statbyte[1] corresponds to Byte 24 in Table C-4
STRUCTURE MEMBERS
valid On input, indicates which structure members to get information for. On
return indicates which members contain current information retrieved
from the drive. The following deļ¬nitions apply:
DST_MINBLK_VALID
DST_MAXBLK_VALID
DST_DRVBLK_VALID
DST_STATE_VALID
DST_RESULT_VALID
DST_FMT_VALID
DST_LPOS_VALID