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-zeroerror 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-zeromeans there was a problem with the send. zcomstatus(3X) may be used to retrieve a status message, using request code ZCOM_MRQCODE_WRITE and rstat.

286

Chapter 4