Linux-Seccomp
view release on metacpan or search on metacpan
libseccomp/src/arch-mips64-syscalls.c view on Meta::CPAN
/**
* Enhanced Seccomp MIPS64 Specific Code
*
* Copyright (c) 2014 Red Hat <pmoore@redhat.com>
* Author: Paul Moore <paul@paul-moore.com>
*
*/
/*
* This library is free software; you can redistribute it and/or modify it
* under the terms of version 2.1 of the GNU Lesser General Public License as
* published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library; if not, see <http://www.gnu.org/licenses>.
*/
#include <string.h>
#include <seccomp.h>
#include "arch.h"
#include "arch-mips64.h"
/* 64 ABI */
#define __SCMP_NR_BASE 5000
/* NOTE: based on Linux 4.5-rc4 */
const struct arch_syscall_def mips64_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", (__SCMP_NR_BASE + 22) },
{ "_sysctl", (__SCMP_NR_BASE + 152) },
{ "accept", (__SCMP_NR_BASE + 42) },
{ "accept4", (__SCMP_NR_BASE + 293) },
{ "access", (__SCMP_NR_BASE + 20) },
{ "acct", (__SCMP_NR_BASE + 158) },
{ "add_key", (__SCMP_NR_BASE + 239) },
{ "adjtimex", (__SCMP_NR_BASE + 154) },
{ "afs_syscall", (__SCMP_NR_BASE + 176) },
{ "alarm", (__SCMP_NR_BASE + 37) },
{ "arm_fadvise64_64", __PNR_arm_fadvise64_64 },
{ "arm_sync_file_range", __PNR_arm_sync_file_range },
{ "arch_prctl", __PNR_arch_prctl },
{ "bdflush", __PNR_bdflush },
{ "bind", (__SCMP_NR_BASE + 48) },
{ "bpf", (__SCMP_NR_BASE + 315) },
{ "break", __PNR_break },
{ "breakpoint", __PNR_breakpoint },
{ "brk", (__SCMP_NR_BASE + 12) },
{ "cachectl", (__SCMP_NR_BASE + 198) },
{ "cacheflush", (__SCMP_NR_BASE + 197) },
{ "capget", (__SCMP_NR_BASE + 123) },
{ "capset", (__SCMP_NR_BASE + 124) },
{ "chdir", (__SCMP_NR_BASE + 78) },
{ "chmod", (__SCMP_NR_BASE + 88) },
{ "chown", (__SCMP_NR_BASE + 90) },
{ "chown32", __PNR_chown32 },
{ "chroot", (__SCMP_NR_BASE + 156) },
{ "clock_adjtime", (__SCMP_NR_BASE + 300) },
{ "clock_getres", (__SCMP_NR_BASE + 223) },
{ "clock_gettime", (__SCMP_NR_BASE + 222) },
{ "clock_nanosleep", (__SCMP_NR_BASE + 224) },
{ "clock_settime", (__SCMP_NR_BASE + 221) },
{ "clone", (__SCMP_NR_BASE + 55) },
{ "close", (__SCMP_NR_BASE + 3) },
{ "connect", (__SCMP_NR_BASE + 41) },
{ "copy_file_range", (__SCMP_NR_BASE + 320) },
{ "creat", (__SCMP_NR_BASE + 83) },
{ "create_module", (__SCMP_NR_BASE + 167) },
{ "delete_module", (__SCMP_NR_BASE + 169) },
{ "dup", (__SCMP_NR_BASE + 31) },
{ "dup2", (__SCMP_NR_BASE + 32) },
{ "dup3", (__SCMP_NR_BASE + 286) },
{ "epoll_create", (__SCMP_NR_BASE + 207) },
{ "epoll_create1", (__SCMP_NR_BASE + 285) },
{ "epoll_ctl", (__SCMP_NR_BASE + 208) },
{ "epoll_ctl_old", __PNR_epoll_ctl_old },
{ "epoll_pwait", (__SCMP_NR_BASE + 272) },
{ "epoll_wait", (__SCMP_NR_BASE + 209) },
{ "epoll_wait_old", __PNR_epoll_wait_old },
{ "eventfd", (__SCMP_NR_BASE + 278) },
{ "eventfd2", (__SCMP_NR_BASE + 284) },
{ "execve", (__SCMP_NR_BASE + 57) },
{ "execveat", (__SCMP_NR_BASE + 316) },
{ "exit", (__SCMP_NR_BASE + 58) },
{ "exit_group", (__SCMP_NR_BASE + 205) },
{ "faccessat", (__SCMP_NR_BASE + 259) },
{ "fadvise64", (__SCMP_NR_BASE + 215) },
{ "fadvise64_64", __PNR_fadvise64_64 },
{ "fallocate", (__SCMP_NR_BASE + 279) },
{ "fanotify_init", (__SCMP_NR_BASE + 295) },
{ "fanotify_mark", (__SCMP_NR_BASE + 296) },
{ "fchdir", (__SCMP_NR_BASE + 79) },
{ "fchmod", (__SCMP_NR_BASE + 89) },
{ "fchmodat", (__SCMP_NR_BASE + 258) },
{ "fchown", (__SCMP_NR_BASE + 91) },
{ "fchown32", __PNR_fchown32 },
{ "fchownat", (__SCMP_NR_BASE + 250) },
{ "fcntl", (__SCMP_NR_BASE + 70) },
{ "fcntl64", __PNR_fcntl64 },
{ "fdatasync", (__SCMP_NR_BASE + 73) },
{ "fgetxattr", (__SCMP_NR_BASE + 185) },
{ "finit_module", (__SCMP_NR_BASE + 307) },
{ "flistxattr", (__SCMP_NR_BASE + 188) },
{ "flock", (__SCMP_NR_BASE + 71) },
{ "fork", (__SCMP_NR_BASE + 56) },
{ "fremovexattr", (__SCMP_NR_BASE + 191) },
{ "fsetxattr", (__SCMP_NR_BASE + 182) },
{ "fstat", (__SCMP_NR_BASE + 5) },
{ "fstat64", __PNR_fstat64 },
{ "fstatat64", __PNR_fstat64 },
{ "fstatfs", (__SCMP_NR_BASE + 135) },
{ "fstatfs64", __PNR_fstatfs64 },
{ "fsync", (__SCMP_NR_BASE + 72) },
{ "ftime", __PNR_ftime },
{ "ftruncate", (__SCMP_NR_BASE + 75) },
{ "ftruncate64", __PNR_ftruncate64 },
{ "futex", (__SCMP_NR_BASE + 194) },
{ "futimesat", (__SCMP_NR_BASE + 251) },
{ "get_kernel_syms", (__SCMP_NR_BASE + 170) },
{ "get_mempolicy", (__SCMP_NR_BASE + 228) },
{ "get_robust_list", (__SCMP_NR_BASE + 269) },
{ "get_thread_area", __PNR_get_thread_area },
{ "getcpu", (__SCMP_NR_BASE + 271) },
{ "getcwd", (__SCMP_NR_BASE + 77) },
{ "getdents", (__SCMP_NR_BASE + 76) },
{ "getdents64", (__SCMP_NR_BASE + 308) },
{ "getegid", (__SCMP_NR_BASE + 106) },
{ "getegid32", __PNR_getegid32 },
{ "geteuid", (__SCMP_NR_BASE + 105) },
{ "geteuid32", __PNR_geteuid32 },
{ "getgid", (__SCMP_NR_BASE + 102) },
{ "getgid32", __PNR_getgid32 },
{ "getgroups", (__SCMP_NR_BASE + 113) },
{ "getgroups32", __PNR_getgroups32 },
{ "getitimer", (__SCMP_NR_BASE + 35) },
{ "getpeername", (__SCMP_NR_BASE + 51) },
{ "getpgid", (__SCMP_NR_BASE + 119) },
{ "getpgrp", (__SCMP_NR_BASE + 109) },
{ "getpid", (__SCMP_NR_BASE + 38) },
{ "getpmsg", (__SCMP_NR_BASE + 174) },
{ "getppid", (__SCMP_NR_BASE + 108) },
{ "getpriority", (__SCMP_NR_BASE + 137) },
{ "getrandom", (__SCMP_NR_BASE + 313) },
{ "getresgid", (__SCMP_NR_BASE + 118) },
{ "getresgid32", __PNR_getresgid32 },
{ "getresuid", (__SCMP_NR_BASE + 116) },
{ "getresuid32", __PNR_getresuid32 },
{ "getrlimit", (__SCMP_NR_BASE + 95) },
{ "getrusage", (__SCMP_NR_BASE + 96) },
{ "getsid", (__SCMP_NR_BASE + 122) },
{ "getsockname", (__SCMP_NR_BASE + 50) },
{ "getsockopt", (__SCMP_NR_BASE + 54) },
{ "gettid", (__SCMP_NR_BASE + 178) },
{ "gettimeofday", (__SCMP_NR_BASE + 94) },
{ "getuid", (__SCMP_NR_BASE + 100) },
{ "getuid32", __PNR_getuid32 },
{ "getxattr", (__SCMP_NR_BASE + 183) },
{ "gtty", __PNR_gtty },
{ "idle", __PNR_idle },
{ "init_module", (__SCMP_NR_BASE + 168) },
{ "inotify_add_watch", (__SCMP_NR_BASE + 244) },
{ "inotify_init", (__SCMP_NR_BASE + 243) },
{ "inotify_init1", (__SCMP_NR_BASE + 288) },
{ "inotify_rm_watch", (__SCMP_NR_BASE + 245) },
{ "io_cancel", (__SCMP_NR_BASE + 204) },
{ "io_destroy", (__SCMP_NR_BASE + 201) },
{ "io_getevents", (__SCMP_NR_BASE + 202) },
{ "io_setup", (__SCMP_NR_BASE + 200) },
{ "io_submit", (__SCMP_NR_BASE + 203) },
{ "ioctl", (__SCMP_NR_BASE + 15) },
{ "ioperm", __PNR_ioperm },
{ "iopl", __PNR_iopl },
{ "ioprio_get", (__SCMP_NR_BASE + 274) },
{ "ioprio_set", (__SCMP_NR_BASE + 273) },
{ "ipc", __PNR_ipc },
{ "kcmp", (__SCMP_NR_BASE + 306) },
{ "kexec_file_load", __PNR_kexec_file_load },
{ "kexec_load", (__SCMP_NR_BASE + 270) },
{ "keyctl", (__SCMP_NR_BASE + 241) },
{ "kill", (__SCMP_NR_BASE + 60) },
{ "lchown", (__SCMP_NR_BASE + 92) },
{ "lchown32", __PNR_lchown32 },
{ "lgetxattr", (__SCMP_NR_BASE + 184) },
{ "link", (__SCMP_NR_BASE + 84) },
{ "linkat", (__SCMP_NR_BASE + 255) },
{ "listen", (__SCMP_NR_BASE + 49) },
{ "listxattr", (__SCMP_NR_BASE + 186) },
{ "llistxattr", (__SCMP_NR_BASE + 187) },
{ "lock", __PNR_lock },
{ "lookup_dcookie", (__SCMP_NR_BASE + 206) },
{ "lremovexattr", (__SCMP_NR_BASE + 190) },
{ "lseek", (__SCMP_NR_BASE + 8) },
{ "lsetxattr", (__SCMP_NR_BASE + 181) },
{ "lstat", (__SCMP_NR_BASE + 6) },
{ "lstat64", __PNR_lstat64 },
{ "madvise", (__SCMP_NR_BASE + 27) },
{ "mbind", (__SCMP_NR_BASE + 227) },
{ "membarrier", (__SCMP_NR_BASE + 318) },
{ "memfd_create", (__SCMP_NR_BASE + 314) },
{ "migrate_pages", (__SCMP_NR_BASE + 246) },
{ "mincore", (__SCMP_NR_BASE + 26) },
{ "mkdir", (__SCMP_NR_BASE + 81) },
{ "mkdirat", (__SCMP_NR_BASE + 248) },
{ "mknod", (__SCMP_NR_BASE + 131) },
{ "mknodat", (__SCMP_NR_BASE + 249) },
{ "mlock", (__SCMP_NR_BASE + 146) },
{ "mlock2", (__SCMP_NR_BASE + 319) },
{ "mlockall", (__SCMP_NR_BASE + 148) },
{ "mmap", (__SCMP_NR_BASE + 9) },
{ "mmap2", __PNR_mmap2 },
{ "modify_ldt", __PNR_modify_ldt },
{ "mount", (__SCMP_NR_BASE + 160) },
{ "move_pages", (__SCMP_NR_BASE + 267) },
{ "mprotect", (__SCMP_NR_BASE + 10) },
{ "mpx", __PNR_mpx },
{ "mq_getsetattr", (__SCMP_NR_BASE + 235) },
{ "mq_notify", (__SCMP_NR_BASE + 234) },
{ "mq_open", (__SCMP_NR_BASE + 230) },
{ "mq_timedreceive", (__SCMP_NR_BASE + 233) },
{ "mq_timedsend", (__SCMP_NR_BASE + 232) },
{ "mq_unlink", (__SCMP_NR_BASE + 231) },
{ "mremap", (__SCMP_NR_BASE + 24) },
{ "msgctl", (__SCMP_NR_BASE + 69) },
{ "msgget", (__SCMP_NR_BASE + 66) },
{ "msgrcv", (__SCMP_NR_BASE + 68) },
{ "msgsnd", (__SCMP_NR_BASE + 67) },
{ "msync", (__SCMP_NR_BASE + 25) },
{ "multiplexer", __PNR_multiplexer },
{ "munlock", (__SCMP_NR_BASE + 147) },
{ "munlockall", (__SCMP_NR_BASE + 149) },
{ "munmap", (__SCMP_NR_BASE + 11) },
{ "name_to_handle_at", (__SCMP_NR_BASE + 298) },
{ "nanosleep", (__SCMP_NR_BASE + 34) },
{ "newfstatat", (__SCMP_NR_BASE + 252) },
{ "nfsservctl", (__SCMP_NR_BASE + 173) },
{ "nice", __PNR_nice },
{ "oldfstat", __PNR_oldfstat },
{ "oldlstat", __PNR_oldlstat },
{ "oldolduname", __PNR_oldolduname },
{ "oldstat", __PNR_oldstat },
{ "olduname", __PNR_olduname },
{ "oldwait4", __PNR_oldwait4 },
( run in 0.611 second using v1.01-cache-2.11-cpan-71847e10f99 )