HP UX 11i v1 I/O Cards manual 242

Models: UX 11i v1 I/O Cards

1 298
Download 298 pages 31.75 Kb
Page 242
Image 242

ZCOM C I/F Library Routines

ZLUOPEN (3X)

EXAMPLE

#include

<zcom/zcomsys.h>

 

 

#include

 

<zcom/zcomcall.h>

 

int32

 

ierr;

 

 

zaddr_type

 

zaddr;

 

 

int

 

mode;

 

 

int

 

fd;

 

 

if (ierr = zluopen (&zaddr, mode, &fd)) {

 

/* error return code */

 

 

}

 

 

 

 

else {

 

 

 

 

/* good return code */

 

 

}

 

 

 

NOTES

The ZLU associated device files are kept in the /dev/zcom directory, and

 

should only be opened by zluopen. If they are opened and accessed

 

directly, incorrect results may be returned.

 

Currently, only device files for program ZLUs are required for the

 

system. They are named as pzluNNNNN, where NNNNN is a number

 

ranging from 00001 to 99999. The first program ZLU is associated with

 

pzlu00001, the second one is associated with pzlu00002, etc. (E.g. in a

 

system with 2000 terminal ZLUs, the first program ZLU, i.e. 2001, is

 

associated with the device file /dev/zcom/pzlu00001.)

 

Note that these device files are created automatically by the ZCOM

 

subsystem on an as needed basis.

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).

 

/dev/zcom/pzlu*

 

Device files associated with program ZLUs.

SEE ALSO

select(2), close(2).

 

 

242

Chapter 4

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