User Guide

Ampex 1308910-01 4-7
libacl API Functions aclAuditLibrary
4.4 aclAuditLibrary
NAME
aclAuditLibrary() - retrieve the status of all elements from the ACL internal database.
SYNOPSIS
#include <acl.h>
int aclAuditLibrary(char *device, aclElementStatus_t elemdata[]);
DESCRIPTION
aclAuditLibrary() reports the current status of all elements in the ACL.
aclAuditLibrary() is available to all users.
PARAMETERS
*device Pointer or string specifying the device special file associated with the
ACL.
elemdata[] Array of
aclElementStatus_t structures large enough to hold
status data for all of the elements in the ACL (nine for a DST 412 ACL,
132 for a DST 712 ACL, and 261 for an DST 812 ACL). Allocating
space for an
ACL_MAXELEMENTS array of structures (defined in
ach.h) is suggested.
USAGE
aclAuditLibrary() reports the element status in the elemdata[] array of structures Each
structure provides status for a single element.
char device[] = "device_name";
aclElementStatus_t aes[ACL_MAXELEMENTS];
aclAuditLibrary(device,aes);
typedef struct
{
elem_type_enum type;
access_enum acc;
except_enum ex;
full_enum full;
cart_sz_enum size;
int pos;
door_enum door;