similarity index 94%
rename from testcases/kernel/syscalls/sched_setaffinity/sched_setaffinity.h
rename to include/lapi/cpuset.h
@@ -29,8 +29,8 @@
#define _GNU_SOURCE
#include <sched.h>
-#ifndef LTP_SCHED_SETAFFINITY_H
-#define LTP_SCHED_SETAFFINITY_H
+#ifndef LTP_CPUSET_H
+#define LTP_CPUSET_H
#ifndef CPU_ALLOC
#define CPU_ALLOC(ncpus) malloc(sizeof(cpu_set_t)); \
@@ -56,4 +56,4 @@ if (ncpus > CPU_SETSIZE) { \
#define CPU_SET_S(cpu, size, mask) CPU_SET(cpu, mask)
#endif
-#endif /* LTP_SCHED_SETAFFINITY_H */
+#endif /* LTP_CPUSET_H */
@@ -40,7 +40,7 @@
#include <sys/wait.h>
#include "test.h"
#include "safe_macros.h"
-#include "sched_setaffinity.h"
+#include "lapi/cpuset.h"
#include "lapi/syscalls.h"
char *TCID = "sched_setaffinity01";
The compatibility macros for cpu sets can be used elsewhere in LTP. Signed-off-by: Steve Muckle <smuckle@google.com> --- .../sched_setaffinity.h => include/lapi/cpuset.h | 6 +++--- .../kernel/syscalls/sched_setaffinity/sched_setaffinity01.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename testcases/kernel/syscalls/sched_setaffinity/sched_setaffinity.h => include/lapi/cpuset.h (94%)