tpgblktime — Get timeout configuration for ATMI library
#include <atmi.h>
int tpgblktime(long flags);
For XATMI client link with -latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm
For XATMI server link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm
Get current configured XATMI IPC call timeout setting in seconds. If particular setting is not configured, value 0 is returned.
Valid flags
TPBLK_ALL Get thread specific timeout setting.
TPBLK_NEXT Get thread specific next call timeout setting.
0 Get effective timeout setting used that will be used for next XATMI IPC call (send/receive). This will return value including the TPBLK_NEXT value. Thought TPBLK_NEXT is only processed for certain XATMI calls. See the list in tpsblktime(3) manpage.
On success, tpgblktime() return timeout configured; on error, -1 is returned, with tperrno set to indicate the error.
Note that tpstrerror() returns generic error message plus custom message with debug info from last function call.
TPEINVAL flags is not TPBLK_ALL, TPBLK_NEXT or 0.
TPESYSTEM tpinit(3) for client was not called and not other timeout was configured for given context.