tpscmt — Set commit return mode
#include <atmi.h>
int tpscmt(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
Change the logic how tpcommit(3) shall behave. Setting affects current transaction and is used during the phase when commit is performed. The setting value is stored in thread local stored for particular control thread. The value is shared with tx.h API.
Parameter when_return accepts following values:
On success, tpscmt() return either TP_CMT_LOGGED or TP_CMT_COMPLETE depending on previous setting. On error, -1 is returned, with tperrno set to indicate the error.