ACC X.25 Protocol User's Guide
Chapter 4 115
X.25 Application Programming
ZX25L2STAT_RCVR (3X) — ACC X.25
The libraries libzx25.a, libzcom_c.a and libpthread.a must be linked into
the calling program by giving the “-lzx25 -lzcom_c -lpthread” options to
cc(1) or ld(1).
Threads
Considerations
This routine may be called from a multi-threaded application using the
POSIX (1003.1c) kernel threads API package. It has the following
characteristics when called by multi-threaded applications:
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).
See the NOTES section that follows for more information on using this
routine in a multi-threaded application.
PARAMETERS: zxip ZCOM X.2 5 access dat a s tructure (from zx25info call).
action Type of action to perform.
lzap Link terminal ZCOM address (e.g. X.2 5 LAP-B ZLU).
pzap Program ZCOM address to receive status on or to be
deleted.
Zc_ADD_PRIMARY - Sets the program ZLU as the primary
receiver.
Zc_DEL_PRIMARY - Deletes the primary receiver.
Zc_ADD_SHARED - Adds the program ZLU to the list of
shared receivers.
Zc_DEL_SHARED - Removes the program ZLU from the
list of shared receivers.










