HP UX 11i v1 I/O Cards manual Parameter and from the same TTY, the same ZLU name will be

Models: UX 11i v1 I/O Cards

1 298
Download 298 pages 31.75 Kb
Page 152
Image 152

 

ZCOM C I/F Library Routines

 

 

MAKEZLUNAME (3X)

 

 

If two different programs call this routine with the same name

WARNING

 

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

 

 

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 static buffer for temporary storage

 

of the returned name. 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

 

 

 

 

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

SEE ALSO

zopen(3x), ttyname(3c)

152

Chapter 4

Page 152
Image 152
HP UX 11i v1 I/O Cards manual Parameter and from the same TTY, the same ZLU name will be