ACC Programmer's Reference Guide

152 Chapter4
ZCOM C I/F Library Routines
MAKEZLUNAME (3X)
WARNING If two diff erent programs call this rout ine with the same name
parameter and from the same TTY, the same ZLU name will be
returned.This implies that if multiple copies of a program are
run from the same TTY, they will all get the same ZLU name. If
they are run from different terminals, different ZLU names will
be re turned.
For multi-threaded application, since all threads will be from the
same TTY, if the threads use the same name parameter, the same
ZLU name will be returned.
This routine uses an internal s tatic buffer f or temporary storage
of the returned nam e. The buffer is overwritten by each call.
EXAMPLE
#include <zcom/zcomsys.h>
#include <zcom/zcomcall.h>
char *zluname; /* Returned ZLU name string */
char name[8];
zluname = makezluname (name);
FILES
SEE ALSO
zopen(3x), ttyname(3c)
/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).