#include <stdio.h>
#include <unistd.h>
#include <libgen.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <lxc.h>
usage(argv[0]);
if (!priority) {
- if (lxc_get_priority(name, &prio)) {
+ if (lxc_cgroup_get_priority(name, &prio)) {
fprintf(stderr, "failed to retrieve the priority of '%s'\n", name);
return 1;
}
}
prio = atoi(priority);
- if (lxc_set_priority(name, prio)) {
+ if (lxc_cgroup_set_priority(name, prio)) {
fprintf(stderr, "failed to assign priority %d to of '%s'",
prio, name);
return 1;