UL_BUILD_INIT([taskset], [check])
UL_REQUIRES_BUILD([taskset], [schedutils])
+UL_REQUIRES_HAVE([taskset], [cpu_set_t], [cpu_set_t type])
UL_REQUIRES_SYSCALL_CHECK([taskset],
[UL_CHECK_SYSCALL([sched_getaffinity])],
[sched_getaffinity])
+#ifndef UTIL_LINUX_PATH_H
+#define UTIL_LINUX_PATH_H
+
#include <stdio.h>
extern FILE *path_fopen(const char *mode, int exit_on_err, const char *path, ...)
__attribute__ ((__format__ (__printf__, 1, 2)));
extern int path_exist(const char *path, ...)
__attribute__ ((__format__ (__printf__, 1, 2)));
+
+#ifdef HAVE_CPU_SET_T
+# include "cpuset.h"
+
extern cpu_set_t *path_cpuset(int, const char *path, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern cpu_set_t *path_cpulist(int, const char *path, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void path_setprefix(const char *);
+#endif /* HAVE_CPU_SET_T */
+
+#endif /* UTIL_LINUX_PATH_H */
#include <errno.h>
#include "all-io.h"
-#include "cpuset.h"
#include "path.h"
#include "nls.h"
#include "c.h"
return access(p, F_OK) == 0;
}
+#ifdef HAVE_CPU_SET_T
+
static cpu_set_t *
path_cpuparse(int maxcpus, int islist, const char *path, va_list ap)
{
return set;
}
+#endif /* HAVE_CPU_SET_T */
+
void
path_setprefix(const char *prefix)
{