summaryrefslogtreecommitdiff
path: root/src/arch-s390.h
blob: 899c9521dd17ee61b3c64e40696752a2e4d85f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright 2015 IBM
 * Author: Jan Willeke <willeke@linux.vnet.com.com>
 */

#ifndef _ARCH_S390_H
#define _ARCH_S390_H

#include <inttypes.h>

#include "arch.h"
#include "db.h"
#include "system.h"

#define s390_arg_count_max		6

extern const struct arch_def arch_def_s390;
#define s390_arg_offset(x)		(offsetof(struct seccomp_data, args[x]))

int s390_syscall_resolve_name(const char *name);
const char *s390_syscall_resolve_num(int num);

const char *s390_syscall_iterate_name(unsigned int spot);

int s390_syscall_rewrite(int *syscall);

int s390_rule_add(struct db_filter_col *col, struct db_filter *db, bool strict,
		  struct db_api_rule_list *rule);

#endif