summaryrefslogtreecommitdiffstats
path: root/schedutils/taskset.c
diff options
context:
space:
mode:
authorSami Kerola2011-07-17 19:59:16 +0200
committerKarel Zak2011-07-21 17:29:38 +0200
commit6f45c0e9ff04db97550eada4a3e115613c7cf150 (patch)
tree0f631e5b3a537a3485f33355992b0cd95de34ebd /schedutils/taskset.c
parentdocs: mention long options in ionice.1 (diff)
downloadkernel-qcow2-util-linux-6f45c0e9ff04db97550eada4a3e115613c7cf150.tar.gz
kernel-qcow2-util-linux-6f45c0e9ff04db97550eada4a3e115613c7cf150.tar.xz
kernel-qcow2-util-linux-6f45c0e9ff04db97550eada4a3e115613c7cf150.zip
taskset: include-what-you-use header check
taskset.c should add these lines: #include <sched.h> for sched_getaffinity, etc #include <stddef.h> for size_t #include <string.h> for memset Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'schedutils/taskset.c')
-rw-r--r--schedutils/taskset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/schedutils/taskset.c b/schedutils/taskset.c
index 6f0fbc9e9..a45151e34 100644
--- a/schedutils/taskset.c
+++ b/schedutils/taskset.c
@@ -24,6 +24,9 @@
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
+#include <sched.h>
+#include <stddef.h>
+#include <string.h>
#include "cpuset.h"
#include "nls.h"