ACC Programmer's Reference Guide
286 Chapter4
ZCOM C I/F Library Routines
ZSEND (3X)
#define ZCOM_MRQCODE_CNTWR 3 /* Terminal write */
#define ZCOM_MRQCODE_STDT 4 /* INTERNAL USE: Status transfer */
#define ZCOM_MRQCODE_STATUS 5 /* Unsolicited status change */
#define ZCOM_MRQCODE_TERM 6 /* Set terminal parameters */
#define ZCOM_MRQCODE_ENB 7 /* Terminal enable */
#define ZCOM_MRQCODE_DSB 8 /* Terminal disable */
#define ZCOM_MRQCODE_ACT 9 /* Terminal activate */
#define ZCOM_MRQCODE_DEA 10 /* Terminal deactivate */
#define ZCOM_MRQCODE_DEL 11 /* Terminal delete */
#define ZCOM_MRQCODE_PORT 14 /* Port configuration */
#define ZCOM_MRQCODE_MULTI 15 /* Multi-completion RXDT req code. */
/*-- ZCOM Message Header --*/
typedef struct {
zmid_type mid; /* Message ID header */
zmrq_type mrq; /* Message request block */
} zmhd_type;
RETURN VALUE Routine zsend returns 0 if successful. Otherwise, a non-zero error code
is returned. See /opt/acc/include/zcom/zcomsys.h for the list of ZCOM
error codes and their meanings.
If mode ZcMODE_WAIT is used and zsend returns with zero, rstat
contains the return status: 0 means successful, non-zero means there
was a problem with the send. zcomstatus(3X)maybeusedtoretrievea
status message, using request code ZCOM_MRQCODE_WRITE and
rstat.










