HP WebQoS for HP-UX API Programmer's Guide

22 Chapter2
Using the WebQoS API
wq_set_proc_cls()
wq_set_proc_cls()
Sets the process group of the current process. For a multithreaded
process, all threads are set to the same specified process group.
A process is only allowed to change its process group to the value(s)
specified in the file /etc/opt/webqos/svccls.allow. By default, a
process cannot change its process group. Refer to the svccls.allow file
for an explanation of how to configure this file. A copy of this file can be
found in Appendix A , “Sample Programs, Configuration, and Header
Files,” on page 33.
Synopsis
#include <webqosapi.h>
int wq_set_proc_cls(uint32_t class, uint32_t scope, int *errorcode)
Link using -lqosapi_pr -L/opt/prm/lib -lprmext
Arguments
class The process group to which the application sets the
process to be in. Refer to “class Values” for a list of
process group values.
scope Specifies scope of the function, which can be the entire
process or a thread. Currently, only the entire process
can be set (using WQ_SCOPE_PROCESS). For more
information about multithreaded applications, refer to
“Multithreaded Applications” in this section.
errorcode The error code set when the return value is -1. Refer to
“Errors” in this section for a list of error codes.