ZCOM C I/F Library Routines

ZGET_SHRCVR_LIST (3X)

RETURN VALUE Routine zget_shrcvrs_list returns 0 if successful. Otherwise, a non-zeroerror code is returned. See /opt/acc/include/zcom/zcomsys.h for the list of ZCOM error codes and their meanings.

EXAMPLE

#include

<zcom/zcomsys.h>

 

 

#include

<zcom/zcomcall.h>

 

 

int32

ierr;

 

 

int32

mlen;

 

 

uint32

mode;

 

 

zaddr_type

zaddr;

 

 

zaddr_type

rcvrs[size]; /* "size" is user-determined, and is >=

 

mlen */

 

 

 

mlen = size;

 

 

mode = 3; /* Get list of receivers waiting for Dynamic Reconfig

 

Events */

 

 

 

if (ierr = zget_shrcvr_list (&zaddr, mode, mlen, rcvrs)) {

 

/* error return code */

 

 

}

 

 

 

else {

 

 

 

/* good return code */

 

 

}

 

 

FILES

 

 

 

 

/opt/acc/include/zcom/zcomsys.h

ZCOM subsystem general include

 

 

 

file, containing data types, data

 

 

 

structures, constants, error codes,

 

 

 

masks, etc. Note that this must be

 

 

 

the first include file before any other

 

 

 

ZCOM include files.

 

/opt/acc/include/zcom/zcomcall.h

ZCOM routine function prototypes

 

 

 

(requires ANSI C compilation).

SEE ALSO

zevent_rcvr(3X), zconfig(3X)

 

Chapter 4

235