Reference Guide

ZCOM C I/F Library Routines
ZSET_RCVR (3X)
Chapter 4 323
Threads
Considerations
This routine may be called from a multi-threaded application using the
POSIX (1003.1c) kernel threads API package. This routine has the
following characteristics when called by a multi-threaded application:
PAR AMETER S
cancellation point Thread cancellation can occur when a thread
calls this routine.
async-cancel unsafe The calling thread’s cancelability type must be
PTHREAD_CANCEL_DEFERRED if
cancellation is enabled.
async-signal unsafe It cannot be called from a signal handler.
fork unsafe It cannot be called by a child process after
fork(2) but before exec(2).
action Type of action to perform.
ZcADD_PRIMARY - Sets the program ZLU as the primary receiver.
ZcDEL_PRIMARY - Deletes the primary receiver.
ZcADD_SHARED - Adds the program ZLU to the list of shared
receivers.
ZcDEL_SHARED - Removes the program ZLU from the list of shared
receivers.
zap ZCOM address of terminal.
mode Receiver mode:
ZcNORMAL (0) - Set receiver for normal messages
ZcINB_MLTPLX (1) - Set inbound multiplexer receiver
ZcOUTB_MLTPLX (2) - Set outbound multiplexer receiver
ZcCONTROL (3) - Set receiver for control messages