tpsprio - routine for setting service request priority
#include <atmi.h> int tpsprio(prio, flags)
tpsprio() sets the priority for the next request sent or forwarded. The priority set affects only the next request sent. (Priority can also be set for messages enqueued or dequeued by tpenqueue(3c) or tpdequeue(3c) if the queued message facility is installed.) By default, the setting of prio increments or decrements a service's default priority up to a maximum of 100 or down to a minimum of 1 depending on its sign, where 100 is the highest priority. The default priority for a request is determined by the service to which the request is being sent. This default may be specified administratively (see ubbconfig(5)), or take the system default of 50. tpsprio() has no effect on messages sent via tpconnect(3c) or tpsend(3c).
Following is a list of valid flags.
tpsprio() returns -1 on error and sets tperrno to indicate the error condition.
Under the following conditions, tpsprio() fails and sets tperrno to:
tpacall(3c),
tpcall(3c),
tpdequeue(3c),
tpenqueue(3c),
tpgprio(3c)