ACC Programmer's Reference Guide

242 Chapter4
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 ZL U associa ted 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 a re required f or t he
system. They are named as pzluNNNNN,whereNNNNN is a number
ranging from 00001 to 99999 . The firs t program ZLU is associated with
pzlu00001, the second one is associated with pzlu00002,etc.(E.g.ina
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
subsystemonanasneededbasis.
FILES
SEE ALSO select(2), close(2).
/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.