Skip navigation.

ATMI C Function Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


tpopen(3c)

Name

tpopen()—Routine for opening a resource manager.

Synopsis

#include <atmi.h> 
int tpopen(void)

Description

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.

In a multithreaded application, a thread in the TPINVALIDCONTEXT state is not allowed to issue a call to tpopen().

Return Values

Upon failure, tpopen() returns -1 and sets tperrno to indicate the error condition.

Errors

Upon failure, tpopen() sets tperrno to one of the following values:

[TPERMERR]

A resource manager failed to open correctly. More information concerning the reason a resource manager failed to open can be obtained by interrogating a resource manager in its own specific manner. Note that any calls to determine the exact nature of the error hinder portability.

[TPEPROTO]

tpopen() was called in an improper context (for example, by a client that has not joined a BEA Tuxedo system server group).

[TPESYSTEM]

A BEA Tuxedo system error has occurred. The exact nature of the error is written to a log file.

[TPEOS]

An operating system error has occurred.

See Also

tpclose(3c)

 

Skip navigation bar  Back to Top Previous Next