tpadmcall - Administer unbooted application
#include <atmi.h> #include <fml32.h> #include <tpadm.h> int tpadmcall(FBFR32 *inbuf, FBFR32 **outbuf, long flags)
tpadmcall is used to retrieve and update attributes of an unbooted application. It may also be used in an active application to perform direct retrievals of a limited set of attributes without requiring communication to an external process. This verb provides sufficient capability such that complete system configuration and administration can take place through system provided interface routines.
inbuf is a pointer to an FML32 buffer previously allocated with tpalloc(3c) that contains the desired administrative operation and its parameters.
outbuf is the address of a pointer to the FML32 buffer that should contain the results. outbuf must point to an FML32 buffer originally allocated by tpalloc(3c). If the same buffer is to be used for both sending and receiving, outbuf should be set to the address of inbuf.
Currently, tpadmcall()'s last argument, flags, is reserved for future use and must be set to 0.
MIB(5) should be consulted for generic information on construction of administrative requests. TM_MIB(5) and APPQ_MIB(5) should be consulted for information on the classes that are accessible through tpadmcall().
There are four modes in which calls to tpadmcall() can be made.
Access to and update of binary TUXEDO System application configuration files through this interface routine is controlled through the use of UNIX System permissions on directory and file names.
The following environment variables must be set prior to calling this routine.
Use of the TA_OCCURS attribute on GET requests is not supported when using tpadmcall(). GETNEXT requests are not supported when using tpadmcall().
tpadmcall returns 0 on success and -1 on failure.
Under the following conditions, tpadmcall() fails and sets tperrno to one of the following values. Except for TPEINVAL, the caller's output buffer, outbuf, will be modified to include TA_ERROR, TA_STATUS and possibly TA_BADFLD attributes to further qualify the error condition. See MIB(5), TM_MIB(5), and APPQ_MIB(5) for an explanation of possible error codes returned in this fashion.
This interface supports access and update to the local configuration file and bulletin board only; therefore, there are no interoperability concerns.
This interface is available only on UNIX System sites running TUXEDO System Release 5.0 or later.
${TUXDIR}/lib/libtmib.a,
${TUXDIR}/lib/libqm.a,
${TUXDIR}/lib/libtmib.so.<rel>,
${TUXDIR}/lib/libqm.so.<rel>
MIB(5),
TM_MIB(5),
APPQ_MIB(5),
EVENT_MIB(5),
ACL_MIB(5),
WS_MIB(5),
BEA TUXEDO
Administrator's Guide