#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
-#include <ust/ustcmd.h>
+#include <ust/ustctl.h>
#include "scanning_functions.h"
#include "usterr.h"
#include "cli.h"
free(channel);
return -1;
}
- if (ustcmd_set_subbuf_size(argv[2], channel, size, pid)) {
+ if (ustctl_set_subbuf_size(argv[2], channel, size, pid)) {
ERR("error while trying to set the size of subbuffers "
"for PID %u\n",
pid);
free(channel);
return -1;
}
- if (ustcmd_set_subbuf_num(argv[2], channel, num, pid)) {
+ if (ustctl_set_subbuf_num(argv[2], channel, num, pid)) {
ERR("error while trying to set the number of subbuffers for PID %u\n",
pid);
result = -1;
pid = parse_pid(argv[1]);
- if ((size = ustcmd_get_subbuf_size(argv[2], argv[3], pid)) < 0) {
+ if ((size = ustctl_get_subbuf_size(argv[2], argv[3], pid)) < 0) {
ERR("error while trying to get the subbuffer size from PID %u\n",
pid);
return -1;
pid = parse_pid(argv[1]);
- if ((num = ustcmd_get_subbuf_num(argv[2], argv[3], pid)) < 0) {
+ if ((num = ustctl_get_subbuf_num(argv[2], argv[3], pid)) < 0) {
ERR("error while trying to get the subbuffer size from PID %u\n",
pid);
return -1;