ACC X.25 Protocol User's Guide

Chapter 4 111
X.25 Application Programming
ZX25INT_CONF (3X) — ACC X.25
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.25 access dat a structure (from zx25info call).
vzap ZCOM address of the Virtual Circuit terminal .
RETURN VALUE Routine zx25int_conf returns a 0 when successful. If there was a ZCOM
error, it retu rns a negative value. See
/opt/acc/include/zcom/zcomsys.h forthelistofZCOMerrorcodesand
their meanings. If zx25int_conf itself failed, one of the following positive
error codes is returned:
ZxeUNKNOWN_L2_ZLU (02) Unable to find the X.25 link ZLU for
this SVC ZLU.
ZxeREQ_TIMEOUT (04) TheremoteZCOMsystemdidnot
respond within 30 seconds.
ZxeINVALID_STATE (06) The ZLU specified is not in the data
transfer state.
ZxeLINK_IS_DOWN (11) The X.25 link is down. Unable to send
acknowledgment to D-bit data
packet.
ZxeUNKNOWN_VC_ZLU (13) The ZLU specified is not an X.25
Virtual Circuit ZLU.