#include <unistd.h>
#include <sys/syscall.h>
+#ifndef HAVE_GETCPU
+static inline int
+getcpu (unsigned *cpu, unsigned *node)
+{
+ return syscall (__NR_getcpu, cpu, node, 0);
+}
+#endif
+
static inline long
set_mempolicy (int mode, const unsigned long *nodemask, unsigned long maxnode)
{
return syscall (__NR_move_pages, pid, count, pages, nodes, status, flags);
}
+#ifndef HAVE_MEMFD_CREATE
static inline int
memfd_create (const char *name, unsigned int flags)
{
return syscall (__NR_memfd_create, name, flags);
}
+#endif
#endif /* included_linux_syscall_h */