Bundle libseccomp 2.3.1
[linux-seccomp.git] / libseccomp / src / arch-mips.c
CommitLineData
8befd5cc
MG
1/**
2 * Enhanced Seccomp MIPS Specific Code
3 *
4 * Copyright (c) 2014 Imagination Technologies Ltd.
5 * Author: Markos Chandras <markos.chandras@imgtec.com>
6 *
7 */
8
9/*
10 * This library is free software; you can redistribute it and/or modify it
11 * under the terms of version 2.1 of the GNU Lesser General Public License as
12 * published by the Free Software Foundation.
13 *
14 * This library is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
17 * for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this library; if not, see <http://www.gnu.org/licenses>.
21 */
22
23#include <stdlib.h>
24#include <errno.h>
25#include <linux/audit.h>
26
27#include "arch.h"
28#include "arch-mips.h"
29
30const struct arch_def arch_def_mips = {
31 .token = SCMP_ARCH_MIPS,
32 .token_bpf = AUDIT_ARCH_MIPS,
33 .size = ARCH_SIZE_32,
34 .endian = ARCH_ENDIAN_BIG,
35 .syscall_resolve_name = mips_syscall_resolve_name,
36 .syscall_resolve_num = mips_syscall_resolve_num,
37 .syscall_rewrite = NULL,
38 .rule_add = NULL,
39};
40
41const struct arch_def arch_def_mipsel = {
42 .token = SCMP_ARCH_MIPSEL,
43 .token_bpf = AUDIT_ARCH_MIPSEL,
44 .size = ARCH_SIZE_32,
45 .endian = ARCH_ENDIAN_LITTLE,
46 .syscall_resolve_name = mips_syscall_resolve_name,
47 .syscall_resolve_num = mips_syscall_resolve_num,
48 .syscall_rewrite = NULL,
49 .rule_add = NULL,
50};
This page took 0.012849 seconds and 4 git commands to generate.