tpclose - routine for closing a resource manager
#include <atmi.h> int tpclose(void)
tpclose() tears down the association between the caller and the resource manager to which it is linked. Since resource managers differ in their close semantics, the specific information needed to close a particular resource manager is placed in a configuration file.
If a resource manager is already closed (that is, tpclose() is called more than once), no action is taken and success is returned.
tpclose() returns -1 on error and sets tperrno to indicate the error condition.
Under the following conditions, tpclose() fails and sets tperrno to: