Sample Programs, Configuration, and Header Files
Sample Process Group Program
Sample Process Group Program
/*
*test_sc: generic main() to call wq_set_proc_cls/wq_get_proc_cls
*usage:
*
*test_sc svc_cls
*
*arguments:
*svc_clst = target service class
*exit value:
*
*new (current) service class:
*error: 100 */
#include <webqosapi.h>
#define ERR_RET | 100 |
#define TR | if (tr_on) |
#define USAGE | printf(“usage: %s svc_cls |
#ifdef __STDC__
main(in argc, char **argv) #else
main(argc, argv) int argc;
int **argv; #endif
{
int ret; int cls; int newcls; int err;
int tr_on = 0;
Appendix A | 35 |