User's Guide
20 Chapter2
Using the WebQoS API
wq_get_proc_cls()
wq_get_proc_cls()
Gets the process group defined for the current process or thread.
This function is intended for processes that are separate from http
daemons, such as cgi-bin. Plug-In applications that are expected to run
as http daemon threads (such as NSAPI plug-ins) should not link to
libqosapi_pr.sl.
Synopsis
#include <webqosapi.h>
int wq_get_proc_cls(int *errorcode)
Link using -lqosapi_pr -L/opt/prm/lib -lprmext
Arguments
errorcode The error code set when the return value is -1. Refer to
“Errors” in this section for a list of error codes.
Return Value
wq_get_proc_cls() returns a non-negative value representing the
process group or -1 if an error occurred.
Table 2-5 wq_get_proc_cls() Return Values
wq_get_proc_cls()
Return Value
Condition or Process Group
-1 Error
WQ_SVCCLS_LOW Low
WQ_SVCCLS_MED Medium
WQ_SVCCLS_HIGH High
WQ_SVCCLS_OTHER Other
WQ_SVCCLS_ROOT PRM_SYS class; accessible by root only