beautypg.com

Return values, Return values -86, Figure 4-77 – ADIC Server User Manual

Page 128

background image

4-86

DAS ACI Functions

601626-B

Return Values

0: The call was successful.

-1: The call failed.

The external variable d_errno is set to one of the following
DAS error codes:

ERPC

EINVALID

EDASINT

ETIMEOUT

ESWITCHINPROG

See Figure 4-77 for an example of the aci_list function.

Figure 4-77

Example of the aci_list Function

/* List outstanding client requests */

int rc, i;

char *client = "SomeClient";

struct aci_req_entry *requests[ACI_MAX_REQ_ENTRIES];

if ( rc = aci_list( client, requests ) )

{

aci_perror( "Command failed: " );

}

else

{

printf ("List for client %s successful\n",

client);

for (i=0;(i

>request_no!=0);i++)

{

printf("client = %s\n\trequest =

%u\n\tindivid_no = %ld\n"

"\ttype = %s\n",

requests[i]->clientname,

requests[i]->request_no,

requests[i]->individ_no,

requests[i]->req_type);

}