ZCOM C I/F Library Routines

ZSEND (3X)

EXAMPLE

#include <zcom/zcomsys.h> #include <zcom/zcomcall.h>

int32

ierr;

zaddr_type

zaddr;

uint32

mode;

zmhd_type

zmhd;

char

ibuf[size]; /* where size is user-determined; must be >= len */

int32

len;

int32

waitstat;

if (ierr = zsend (&zaddr, mode, &zmhd, ibuf, len, &waitstat)) { /* error return code */

}

else {

/* good return code */

}

FILES

 

 

 

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

ZCOM system 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

zcomstatus(3X), zcntl(3X), zread(3X), zopen(3X).

Chapter 4

287

Page 287
Image 287
HP UX 11i v1 I/O Cards manual