tpopen - routine for opening a resource manager
#include <atmi.h> int tpopen(void)
tpopen() opens the resource manager to which the caller is linked. At most one resource manager can be linked to the caller. This function is used in place of resource manager-specific open calls and allows a service routine to be free of calls that may hinder portability. Since resource managers differ in their initialization semantics, the specific information needed to open a particular resource manager is placed in a configuration file.
If a resource manager is already open (that is, tpopen() is called more than once), no action is taken and success is returned.
tpopen() returns -1 on error and sets tperrno to indicate the error condition.
Under the following conditions, tpopen() fails and sets tperrno to: