Bundle libseccomp 2.3.1
[linux-seccomp.git] / libseccomp / src / arch-s390x.h
diff --git a/libseccomp/src/arch-s390x.h b/libseccomp/src/arch-s390x.h
new file mode 100644 (file)
index 0000000..2857d7f
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2015 IBM
+ * Author: Jan Willeke <willeke@linux.vnet.com.com>
+ */
+
+#ifndef _ARCH_S390X_H
+#define _ARCH_S390X_H
+
+#include <inttypes.h>
+
+#include "arch.h"
+#include "db.h"
+#include "system.h"
+
+#define s390x_arg_count_max            6
+
+extern const struct arch_def arch_def_s390x;
+#define s390x_arg_offset(x)            (offsetof(struct seccomp_data, args[x]))
+
+#define s390x_arg_offset_lo(x)         (s390x_arg_offset(x) + 4)
+#define s390x_arg_offset_hi(x)         (s390x_arg_offset(x))
+
+int s390x_syscall_resolve_name(const char *name);
+const char *s390x_syscall_resolve_num(int num);
+
+const char *s390x_syscall_iterate_name(unsigned int spot);
+
+int s390x_syscall_rewrite(int *syscall);
+
+int s390x_rule_add(struct db_filter_col *col, struct db_filter *db, bool strict,
+                  struct db_api_rule_list *rule);
+
+#endif
This page took 0.009945 seconds and 4 git commands to generate.