HP UX 11i v1 I/O Cards manual

Models: UX 11i v1 I/O Cards

1 298
Download 298 pages 31.75 Kb
Page 263
Image 263

ZCOM C I/F Library Routines

ZPTUP (3X)

PARAMETERS

zap ZCOM address of the physical terminal table to update.

ibuf Data buffer holding the information to place into the PTT.

len Number of bytes of data to copy from ibuf into the PTT.

offset Byte offset within the physical terminal table from where the update should begin.

RETURN VALUE Routine zptup 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;

zaddr_type

zaddr;

char

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

int32

len;

int32

offset;

if (ierr = zptup (&zaddr, ibuf, len, offset)) { /* 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).

Chapter 4

263

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