-
Notifications
You must be signed in to change notification settings - Fork 6
/
magic.py
executable file
·351 lines (327 loc) · 90.2 KB
/
magic.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
#!/usr/bin/env python
from __future__ import print_function
import os, sys, getopt
import termios
import signal
try:
from termcolor import colored
except:
def colored(text, color=None, on_color=None, attrs=None):
return text
TYPE_EQUAL = 'equal'
TYPE_BITOR = 'bitor'
py_magic = {
'os': {
'open': {
'flags': 'O_APPEND O_ASYNC O_CREAT O_DIRECTORY O_DSYNC O_EXCL O_EXLOCK O_NDELAY O_NOCTTY O_NOFOLLOW O_NONBLOCK O_RDONLY O_RDWR O_SHLOCK O_SYNC O_TRUNC O_WRONLY'.split(' '),
'type': TYPE_BITOR
},
'seek': {
'flags': 'SEEK_SET SEEK_CUR SEEK_END'.split(' '),
'type': TYPE_EQUAL
}
},
'socket': {
'family': {
'flags': 'AF_ALG AF_APPLETALK AF_ASH AF_ATMPVC AF_ATMSVC AF_AX25 AF_BLUETOOTH AF_BRIDGE AF_CAN AF_DECnet AF_ECONET AF_INET AF_INET6 AF_IPX AF_IRDA AF_KEY AF_LLC AF_NETBEUI AF_NETLINK AF_NETROM AF_PACKET AF_PPPOX AF_QIPCRTR AF_RDS AF_ROSE AF_ROUTE AF_SECURITY AF_SNA AF_TIPC AF_UNIX AF_UNSPEC AF_VSOCK AF_WANPIPE AF_X25'.split(),
'type': TYPE_EQUAL,
},
'type': {
'flags': 'SOCK_CLOEXEC SOCK_DGRAM SOCK_NONBLOCK SOCK_RAW SOCK_RDM SOCK_SEQPACKET SOCK_STREAM'.split(),
'type': TYPE_BITOR,
},
},
'termios': {
'iflags': {
'flags': 'IGNBRK BRKINT IGNPAR PARMRK INPCK ISTRIP INLCR IGNCR ICRNL IUCLC IXON IXANY IXOFF IMAXBEL IUTF8'.split(' '),
'type': TYPE_BITOR
},
'oflags': {
'flags': 'OPOST OLCUC ONLCR OCRNL ONOCR ONLRET OFILL OFDEL NLDLY CRDLY TABDLY BSDLY VTDLY FFDLY'.split(' '),
'type': TYPE_BITOR,
},
'cflags': {
'flags': 'CBAUD CBAUDEX CSIZE CSTOPB CREAD PARENB PARODD HUPCL CLOCAL LOBLK CIBAUD CMSPAR CRTSCTS'.split(' '),
'type': TYPE_BITOR,
},
'lflags': {
'flags': 'ISIG ICANON XCASE ECHO ECHOE ECHOK ECHONL ECHOCTL ECHOPRT ECHOKE DEFECHO FLUSHO NOFLSH TOSTOP PENDIN IEXTEN'.split(' '),
'type': TYPE_BITOR,
}
},
'signal': {
'flags': 'NSIG SIGABRT SIGALRM SIGBUS SIGCHLD SIGCONT SIGEMT SIGFPE SIGHUP SIGILL SIGINFO SIGINT SIGIO SIGIOT SIGKILL SIGPIPE SIGPROF SIGQUIT SIGSEGV SIGSTOP SIGSYS SIGTERM SIGTRAP SIGTSTP SIGTTIN SIGTTOU SIGURG SIGUSR1 SIGUSR2 SIGVTALRM SIGWINCH SIGXCPU SIGXFSZ SIG_DFL SIG_IGN'.split(' '),
'type': TYPE_EQUAL
},
'mmap': {
'access': {
'flags': 'ACCESS_COPY ACCESS_READ ACCESS_WRITE'.split(' '),
'type': TYPE_BITOR,
},
'prot': {
'flags': 'PROT_EXEC PROT_READ PROT_WRITE'.split(' '),
'type': TYPE_BITOR,
},
'flags': {
'flags': 'MAP_ANON MAP_ANONYMOUS MAP_DENYWRITE MAP_EXECUTABLE MAP_PRIVATE MAP_SHARED'.split(' '),
'type': TYPE_BITOR,
}
},
'errno': {
'flags': 'E2BIG EACCES EADDRINUSE EADDRNOTAVAIL EAFNOSUPPORT EAGAIN EALREADY EAUTH EBADARCH EBADEXEC EBADF EBADMACHO EBADMSG EBADRPC EBUSY ECANCELED ECHILD ECONNABORTED ECONNREFUSED ECONNRESET EDEADLK EDESTADDRREQ EDEVERR EDOM EDQUOT EEXIST EFAULT EFBIG EFTYPE EHOSTDOWN EHOSTUNREACH EIDRM EILSEQ EINPROGRESS EINTR EINVAL EIO EISCONN EISDIR ELOOP EMFILE EMLINK EMSGSIZE EMULTIHOP ENAMETOOLONG ENEEDAUTH ENETDOWN ENETRESET ENETUNREACH ENFILE ENOATTR ENOBUFS ENODATA ENODEV ENOENT ENOEXEC ENOLCK ENOLINK ENOMEM ENOMSG ENOPOLICY ENOPROTOOPT ENOSPC ENOSR ENOSTR ENOSYS ENOTBLK ENOTCONN ENOTDIR ENOTEMPTY ENOTRECOVERABLE ENOTSOCK ENOTSUP ENOTTY ENXIO EOPNOTSUPP EOVERFLOW EOWNERDEAD EPERM EPFNOSUPPORT EPIPE EPROCLIM EPROCUNAVAIL EPROGMISMATCH EPROGUNAVAIL EPROTO EPROTONOSUPPORT EPROTOTYPE EPWROFF ERANGE EREMOTE EROFS ERPCMISMATCH ESHLIBVERS ESHUTDOWN ESOCKTNOSUPPORT ESPIPE ESRCH ESTALE ETIME ETIMEDOUT ETOOMANYREFS ETXTBSY EUSERS EWOULDBLOCK EXDEV'.split(' '),
'type': TYPE_EQUAL,
}
}
magics = {
'sysconf': {
'name': {
'flags': [(0, '_SC_ARG_MAX') , (1, '_SC_CHILD_MAX') , (180, '_SC_HOST_NAME_MAX') , (71, '_SC_LOGIN_NAME_MAX') , (3 , '_SC_NGROUPS_MAX') , (2 , '_SC_CLK_TCK') , (4 , '_SC_OPEN_MAX') , (30 , '_SC_PAGESIZE') , (30 , '_SC_PAGE_SIZE') , (44 , '_SC_RE_DUP_MAX') , (5 , '_SC_STREAM_MAX') , (173, '_SC_SYMLOOP_MAX') , (72 , '_SC_TTY_NAME_MAX') , (6 , '_SC_TZNAME_MAX') , (29 , '_SC_VERSION') , (36 , '_SC_BC_BASE_MAX') , (37 , '_SC_BC_DIM_MAX') , (38 , '_SC_BC_SCALE_MAX') , (39 , '_SC_BC_STRING_MAX') , (40 , '_SC_COLL_WEIGHTS_MAX') , (42 , '_SC_EXPR_NEST_MAX') , (43 , '_SC_LINE_MAX') , (44 , '_SC_RE_DUP_MAX') , (46 , '_SC_2_VERSION') , (48 , '_SC_2_C_DEV') , (49 , '_SC_2_FORT_DEV') , (50 , '_SC_2_FORT_RUN') , (52 , '_SC_2_LOCALEDEF') , (51 , '_SC_2_SW_DEV') , (85 , '_SC_PHYS_PAGES') , (86 , '_SC_AVPHYS_PAGES') , (83 , '_SC_NPROCESSORS_CONF') , (84 , '_SC_NPROCESSORS_ONLN')],
'type': TYPE_EQUAL,
},
},
'duktape': {
'compile': {
'flags': [((1 << 3), 'DUK_COMPILE_EVAL'), ((1 << 4), 'DUK_COMPILE_FUNCTION'), ((1 << 5) , 'DUK_COMPILE_STRICT'), ((1 << 6), 'DUK_COMPILE_SHEBANG'), ((1 << 7), 'DUK_COMPILE_SAFE'), ((1 << 8), 'DUK_COMPILE_NORESULT'), ((1 << 9), 'DUK_COMPILE_NOSOURCE'), ((1 << 10), 'DUK_COMPILE_STRLEN'), ((1 << 11), 'DUK_COMPILE_NOFILENAME'), ((1 << 12), 'DUK_COMPILE_FUNCEXPR'),],
'type': TYPE_BITOR,
},
},
'setvbuf': {
'mode': {
'flags': [(0, '_IOFBF'), (1, '_IOLBF'), (2, '_IONBF')],
'type': TYPE_EQUAL,
},
},
'd_type': {
'flags': [(0, 'DT_UNKNOWN'), (8, 'DT_REG'), (10, 'DT_LNK'), (6, 'DT_BLK'), (2, 'DT_CHR'), (1, 'DT_FIFO')],
'type': TYPE_EQUAL,
},
'ascii': {
'flags': [(0, 'nul'), (1, 'soh'), (2, 'stx'), (3, 'etx'), (4, 'eot'), (5, 'enq'), (6, 'ack'), (7, 'bel'), (8, 'bs'), (9, 'ht'), (10, 'nl'), (11, 'vt'), (12, 'np'), (13, 'carriage return'), (14, 'so'), (15, 'si'), (16, 'dle'), (17, 'dc1'), (18, 'dc2'), (19, 'dc3'), (20, 'dc4'), (21, 'nak'), (22, 'syn'), (23, 'etb'), (24, 'can'), (25, 'em'), (26, 'sub'), (27, 'esc'), (28, 'fs'), (29, 'gs'), (30, 'rs'), (31, 'us'), (32, 'space'), (127, 'delete')] + [(x, chr(x)) for x in range(33, 127)],
'type': TYPE_EQUAL
},
'seccomp': {
'filter_ret': {
'flags': [(0x0, 'SECCOMP_RET_KILL(SCMP_RET_KILL)'), (0x30000, 'SECCOMP_RET_TRAP(SCMP_RET_TRAPS)'), (0x50000, 'SECCOMP_RET_ERRNO(SCMP_RET_ERRNO)'), (0x7ff00000, 'SECCOMP_RET_TRACE(SCMP_RET_TRACE)'), (0x7fff0000, 'SECCOMP_RET_ALLOW(SCMP_RET_ALLOW)')],
'type': TYPE_EQUAL # TODO: complex return value here to handle
},
'filter_ret_mask': {
'flags': [(0xffff, 'SECCOMP_RET_DATA'), (0x7fff0000, 'SECCOMP_RET_ACTION')],
'type': TYPE_EQUAL
},
'filter_flags': {
'flags': [(1, 'SECCOMP_FILTER_FLAG_TSYNC')],
'type': TYPE_EQUAL
},
'': {
'flags': [(0, 'SECCOMP_SET_MODE_STRICT'), (1, 'SECCOMP_SET_MODE_FILTER')],
'type': TYPE_EQUAL
}
},
'prctl': {
'': {
'flags': [(23, 'PR_CAPBSET_READ'), (24, 'PR_CAPBSET_DROP'), (36, 'PR_SET_CHILD_SUBREAPER'), (37, 'PR_GET_CHILD_SUBREAPER'), (4, 'PR_SET_DUMPABLE'), (3, 'PR_GET_DUMPABLE'), (20, 'PR_SET_ENDIAN'), (19, 'PR_GET_ENDIAN'), (10, 'PR_SET_FPEMU'), (9, 'PR_GET_FPEMU'), (12, 'PR_SET_FPEXC'), (11, 'PR_GET_FPEXC'), (8, 'PR_SET_KEEPCAPS'), (7, 'PR_GET_KEEPCAPS'), (15, 'PR_SET_NAME'), (16, 'PR_GET_NAME'), (38, 'PR_SET_NO_NEW_PRIVS'), (39, 'PR_GET_NO_NEW_PRIVS'), (1, 'PR_SET_PDEATHSIG'), (2, 'PR_GET_PDEATHSIG'), (1499557217, 'PR_SET_PTRACER'), (22, 'PR_SET_SECCOMP'), (21, 'PR_GET_SECCOMP'), (28, 'PR_SET_SECUREBITS'), (27, 'PR_GET_SECUREBITS'), (40, 'PR_GET_TID_ADDRESS'), (29, 'PR_SET_TIMERSLACK'), (30, 'PR_GET_TIMERSLACK'), (14, 'PR_SET_TIMING'), (13, 'PR_GET_TIMING'), (31, 'PR_TASK_PERF_EVENTS_DISABLE'), (32, 'PR_TASK_PERF_EVENTS_ENABLE'), (26, 'PR_SET_TSC'), (25, 'PR_GET_TSC'), (6, 'PR_SET_UNALIGN'), (5, 'PR_GET_UNALIGN'), (33, 'PR_MCE_KILL'), (34, 'PR_MCE_KILL_GET'), (35, 'PR_SET_MM')],
'type': TYPE_EQUAL
},
'pr_set_seccomp': {
'flags': [(1, 'SECCOMP_MODE_STRICT'), (2, 'SECCOMP_MODE_FILTER')],
'type': TYPE_EQUAL
}
},
'ptrace': {
'flags': [(0, 'PTRACE_TRACEME'), (1, 'PTRACE_PEEKTEXT'), (2, 'PTRACE_PEEKDATA'), (3, 'PTRACE_PEEKUSER'), (4, 'PTRACE_POKETEXT'), (5, 'PTRACE_POKEDATA'), (6, 'PTRACE_POKEUSER'), (12, 'PTRACE_GETREGS'), (14, 'PTRACE_GETFPREGS'), (16900, 'PTRACE_GETREGSET'), (16898, 'PTRACE_GETSIGINFO'), (13, 'PTRACE_SETREGS'), (15, 'PTRACE_SETFPREGS'), (16901, 'PTRACE_SETREGSET'), (16899, 'PTRACE_SETSIGINFO'), (16896, 'PTRACE_SETOPTIONS'), (1048576, 'PTRACE_O_EXITKILL'), (8, 'PTRACE_O_TRACECLONE'), (16, 'PTRACE_O_TRACEEXEC'), (64, 'PTRACE_O_TRACEEXIT'), (2, 'PTRACE_O_TRACEFORK'), (1, 'PTRACE_O_TRACESYSGOOD'), (4, 'PTRACE_O_TRACEVFORK'), (32, 'PTRACE_O_TRACEVFORKDONE'), (16897, 'PTRACE_GETEVENTMSG'), (7, 'PTRACE_CONT'), (24, 'PTRACE_SYSCALL'), (9, 'PTRACE_SINGLESTEP'), (16904, 'PTRACE_LISTEN'), (8, 'PTRACE_KILL'), (16903, 'PTRACE_INTERRUPT'), (16, 'PTRACE_ATTACH'), (16902, 'PTRACE_SEIZE'), (17, 'PTRACE_DETACH'), (31, 'PTRACE_SYSEMU'), (32, 'PTRACE_SYSEMU_SINGLESTEP')],
'type': TYPE_EQUAL
},
'syscall': {
'linux': {
'i386': {
'flags': [(0,"sys_setup"),(1,"sys_exit"),(2,"sys_fork"),(3,"sys_read"),(4,"sys_write"),(5,"sys_open"),(6,"sys_close"),(7,"sys_waitpid"),(8,"sys_creat"),(9,"sys_link"),(10,"sys_unlink"),(11,"sys_execve"),(12,"sys_chdir"),(13,"sys_time"),(14,"sys_mknod"),(15,"sys_chmod"),(16,"sys_lchown"),(17,"sys_break"),(18,"sys_oldstat"),(19,"sys_lseek"),(20,"sys_getpid"),(21,"sys_mount"),(22,"sys_umount"),(23,"sys_setuid"),(24,"sys_getuid"),(25,"sys_stime"),(26,"sys_ptrace"),(27,"sys_alarm"),(28,"sys_oldfstat"),(29,"sys_pause"),(30,"sys_utime"),(31,"sys_stty"),(32,"sys_gtty"),(33,"sys_access"),(34,"sys_nice"),(35,"sys_ftime"),(36,"sys_sync"),(37,"sys_kill"),(38,"sys_rename"),(39,"sys_mkdir"),(40,"sys_rmdir"),(41,"sys_dup"),(42,"sys_pipe"),(43,"sys_times"),(44,"sys_prof"),(45,"sys_brk"),(46,"sys_setgid"),(47,"sys_getgid"),(48,"sys_signal"),(49,"sys_geteuid"),(50,"sys_getegid"),(51,"sys_acct"),(52,"sys_umount2"),(53,"sys_lock"),(54,"sys_ioctl"),(55,"sys_fcntl"),(56,"sys_mpx"),(57,"sys_setpgid"),(58,"sys_ulimit"),(59,"sys_oldolduname"),(60,"sys_umask"),(61,"sys_chroot"),(62,"sys_ustat"),(63,"sys_dup2"),(64,"sys_getppid"),(65,"sys_getpgrp"),(66,"sys_setsid"),(67,"sys_sigaction"),(68,"sys_sgetmask"),(69,"sys_ssetmask"),(70,"sys_setreuid"),(71,"sys_setregid"),(72,"sys_sigsuspend"),(73,"sys_sigpending"),(74,"sys_sethostname"),(75,"sys_setrlimit"),(76,"sys_getrlimit"),(77,"sys_getrusage"),(78,"sys_gettimeofday"),(79,"sys_settimeofday"),(80,"sys_getgroups"),(81,"sys_setgroups"),(82,"sys_select"),(83,"sys_symlink"),(84,"sys_oldlstat"),(85,"sys_readlink"),(86,"sys_uselib"),(87,"sys_swapon"),(88,"sys_reboot"),(89,"sys_readdir"),(90,"sys_mmap"),(91,"sys_munmap"),(92,"sys_truncate"),(93,"sys_ftruncate"),(94,"sys_fchmod"),(95,"sys_fchown"),(96,"sys_getpriority"),(97,"sys_setpriority"),(98,"sys_profil"),(99,"sys_statfs"),(100,"sys_fstatfs"),(101,"sys_ioperm"),(102,"sys_socketcall"),(103,"sys_syslog"),(104,"sys_setitimer"),(105,"sys_getitimer"),(106,"sys_stat"),(107,"sys_lstat"),(108,"sys_fstat"),(109,"sys_olduname"),(110,"sys_iopl"),(111,"sys_vhangup"),(112,"sys_idle"),(113,"sys_vm86old"),(114,"sys_wait4"),(115,"sys_swapoff"),(116,"sys_sysinfo"),(117,"sys_ipc"),(118,"sys_fsync"),(119,"sys_sigreturn"),(120,"sys_clone"),(121,"sys_setdomainname"),(122,"sys_uname"),(123,"sys_modify_ldt"),(124,"sys_adjtimex"),(125,"sys_mprotect"),(126,"sys_sigprocmask"),(127,"sys_create_module"),(128,"sys_init_module"),(129,"sys_delete_module"),(130,"sys_get_kernel_syms"),(131,"sys_quotactl"),(132,"sys_getpgid"),(133,"sys_fchdir"),(134,"sys_bdflush"),(135,"sys_sysfs"),(136,"sys_personality"),(137,"sys_afs_syscall"),(138,"sys_setfsuid"),(139,"sys_setfsgid"),(140,"sys__llseek"),(141,"sys_getdents"),(142,"sys__newselect"),(143,"sys_flock"),(144,"sys_msync"),(145,"sys_readv"),(146,"sys_writev"),(147,"sys_getsid"),(148,"sys_fdatasync"),(149,"sys__sysctl"),(150,"sys_mlock"),(151,"sys_munlock"),(152,"sys_mlockall"),(153,"sys_munlockall"),(154,"sys_sched_setparam"),(155,"sys_sched_getparam"),(156,"sys_sched_setscheduler"),(157,"sys_sched_getscheduler"),(158,"sys_sched_yield"),(159,"sys_sched_get_priority_max"),(160,"sys_sched_get_priority_min"),(161,"sys_sched_rr_get_interval"),(162,"sys_nanosleep"),(163,"sys_mremap"),(164,"sys_setresuid"),(165,"sys_getresuid"),(166,"sys_vm86"),(167,"sys_query_module"),(168,"sys_poll"),(169,"sys_nfsservctl"),(170,"sys_setresgid"),(171,"sys_getresgid"),(172,"sys_prctl"),(173,"sys_rt_sigreturn"),(174,"sys_rt_sigaction"),(175,"sys_rt_sigprocmask"),(176,"sys_rt_sigpending"),(177,"sys_rt_sigtimedwait"),(178,"sys_rt_sigqueueinfo"),(179,"sys_rt_sigsuspend"),(180,"sys_pread"),(181,"sys_pwrite"),(182,"sys_chown"),(183,"sys_getcwd"),(184,"sys_capget"),(185,"sys_capset"),(186,"sys_sigaltstack"),(187,"sys_sendfile"),(188,"sys_getpmsg"),(189,"sys_putpmsg"),(190,"sys_vfork"),(252,"sys_exit_group")],
'type': TYPE_EQUAL
},
'amd64': {
'flags': [(0,"sys_read"),(1,"sys_write"),(2,"sys_open"),(3,"sys_close"),(4,"sys_stat"),(5,"sys_fstat"),(6,"sys_lstat"),(7,"sys_poll"),(8,"sys_lseek"),(9,"sys_mmap"),(10,"sys_mprotect"),(11,"sys_munmap"),(12,"sys_brk"),(13,"sys_rt_sigaction"),(14,"sys_rt_sigprocmask"),(15,"sys_rt_sigreturn"),(16,"sys_ioctl"),(17,"sys_pread64"),(18,"sys_pwrite64"),(19,"sys_readv"),(20,"sys_writev"),(21,"sys_access"),(22,"sys_pipe"),(23,"sys_select"),(24,"sys_sched_yield"),(25,"sys_mremap"),(26,"sys_msync"),(27,"sys_mincore"),(28,"sys_madvise"),(29,"sys_shmget"),(30,"sys_shmat"),(31,"sys_shmctl"),(32,"sys_dup"),(33,"sys_dup2"),(34,"sys_pause"),(35,"sys_nanosleep"),(36,"sys_getitimer"),(37,"sys_alarm"),(38,"sys_setitimer"),(39,"sys_getpid"),(40,"sys_sendfile"),(41,"sys_socket"),(42,"sys_connect"),(43,"sys_accept"),(44,"sys_sendto"),(45,"sys_recvfrom"),(46,"sys_sendmsg"),(47,"sys_recvmsg"),(48,"sys_shutdown"),(49,"sys_bind"),(50,"sys_listen"),(51,"sys_getsockname"),(52,"sys_getpeername"),(53,"sys_socketpair"),(54,"sys_setsockopt"),(55,"sys_getsockopt"),(56,"sys_clone"),(57,"sys_fork"),(58,"sys_vfork"),(59,"sys_execve"),(60,"sys_exit"),(61,"sys_wait4"),(62,"sys_kill"),(63,"sys_uname"),(64,"sys_semget"),(65,"sys_semop"),(66,"sys_semctl"),(67,"sys_shmdt"),(68,"sys_msgget"),(69,"sys_msgsnd"),(70,"sys_msgrcv"),(71,"sys_msgctl"),(72,"sys_fcntl"),(73,"sys_flock"),(74,"sys_fsync"),(75,"sys_fdatasync"),(76,"sys_truncate"),(77,"sys_ftruncate"),(78,"sys_getdents"),(79,"sys_getcwd"),(80,"sys_chdir"),(81,"sys_fchdir"),(82,"sys_rename"),(83,"sys_mkdir"),(84,"sys_rmdir"),(85,"sys_creat"),(86,"sys_link"),(87,"sys_unlink"),(88,"sys_symlink"),(89,"sys_readlink"),(90,"sys_chmod"),(91,"sys_fchmod"),(92,"sys_chown"),(93,"sys_fchown"),(94,"sys_lchown"),(95,"sys_umask"),(96,"sys_gettimeofday"),(97,"sys_getrlimit"),(98,"sys_getrusage"),(99,"sys_sysinfo"),(100,"sys_times"),(101,"sys_ptrace"),(102,"sys_getuid"),(103,"sys_syslog"),(104,"sys_getgid"),(105,"sys_setuid"),(106,"sys_setgid"),(107,"sys_geteuid"),(108,"sys_getegid"),(109,"sys_setpgid"),(110,"sys_getppid"),(111,"sys_getpgrp"),(112,"sys_setsid"),(113,"sys_setreuid"),(114,"sys_setregid"),(115,"sys_getgroups"),(116,"sys_setgroups"),(117,"sys_setresuid"),(118,"sys_getresuid"),(119,"sys_setresgid"),(120,"sys_getresgid"),(121,"sys_getpgid"),(122,"sys_setfsuid"),(123,"sys_setfsgid"),(124,"sys_getsid"),(125,"sys_capget"),(126,"sys_capset"),(127,"sys_rt_sigpending"),(128,"sys_rt_sigtimedwait"),(129,"sys_rt_sigqueueinfo"),(130,"sys_rt_sigsuspend"),(131,"sys_sigaltstack"),(132,"sys_utime"),(133,"sys_mknod"),(134,"sys_uselib"),(135,"sys_personality"),(136,"sys_ustat"),(137,"sys_statfs"),(138,"sys_fstatfs"),(139,"sys_sysfs"),(140,"sys_getpriority"),(141,"sys_setpriority"),(142,"sys_sched_setparam"),(143,"sys_sched_getparam"),(144,"sys_sched_setscheduler"),(145,"sys_sched_getscheduler"),(146,"sys_sched_get_priority_max"),(147,"sys_sched_get_priority_min"),(148,"sys_sched_rr_get_interval"),(149,"sys_mlock"),(150,"sys_munlock"),(151,"sys_mlockall"),(152,"sys_munlockall"),(153,"sys_vhangup"),(154,"sys_modify_ldt"),(155,"sys_pivot_root"),(156,"sys__sysctl"),(157,"sys_prctl"),(158,"sys_arch_prctl"),(159,"sys_adjtimex"),(160,"sys_setrlimit"),(161,"sys_chroot"),(162,"sys_sync"),(163,"sys_acct"),(164,"sys_settimeofday"),(165,"sys_mount"),(166,"sys_umount2"),(167,"sys_swapon"),(168,"sys_swapoff"),(169,"sys_reboot"),(170,"sys_sethostname"),(171,"sys_setdomainname"),(172,"sys_iopl"),(173,"sys_ioperm"),(174,"sys_create_module"),(175,"sys_init_module"),(176,"sys_delete_module"),(177,"sys_get_kernel_syms"),(178,"sys_query_module"),(179,"sys_quotactl"),(180,"sys_nfsservctl"),(181,"sys_getpmsg"),(182,"sys_putpmsg"),(183,"sys_afs_syscall"),(184,"sys_tuxcall"),(185,"sys_security"),(186,"sys_gettid"),(187,"sys_readahead"),(188,"sys_setxattr"),(189,"sys_lsetxattr"),(190,"sys_fsetxattr"),(191,"sys_getxattr"),(192,"sys_lgetxattr"),(193,"sys_fgetxattr"),(194,"sys_listxattr"),(195,"sys_llistxattr"),(196,"sys_flistxattr"),(197,"sys_removexattr"),(198,"sys_lremovexattr"),(199,"sys_fremovexattr"),(200,"sys_tkill"),(201,"sys_time"),(202,"sys_futex"),(203,"sys_sched_setaffinity"),(204,"sys_sched_getaffinity"),(205,"sys_set_thread_area"),(206,"sys_io_setup"),(207,"sys_io_destroy"),(208,"sys_io_getevents"),(209,"sys_io_submit"),(210,"sys_io_cancel"),(211,"sys_get_thread_area"),(212,"sys_lookup_dcookie"),(213,"sys_epoll_create"),(214,"sys_epoll_ctl_old"),(215,"sys_epoll_wait_old"),(216,"sys_remap_file_pages"),(217,"sys_getdents64"),(218,"sys_set_tid_address"),(219,"sys_restart_syscall"),(220,"sys_semtimedop"),(221,"sys_fadvise64"),(222,"sys_timer_create"),(223,"sys_timer_settime"),(224,"sys_timer_gettime"),(225,"sys_timer_getoverrun"),(226,"sys_timer_delete"),(227,"sys_clock_settime"),(228,"sys_clock_gettime"),(229,"sys_clock_getres"),(230,"sys_clock_nanosleep"),(231,"sys_exit_group"),(232,"sys_epoll_wait"),(233,"sys_epoll_ctl"),(234,"sys_tgkill"),(235,"sys_utimes"),(236,"sys_vserver"),(237,"sys_mbind"),(238,"sys_set_mempolicy"),(239,"sys_get_mempolicy"),(240,"sys_mq_open"),(241,"sys_mq_unlink"),(242,"sys_mq_timedsend"),(243,"sys_mq_timedreceive"),(244,"sys_mq_notify"),(245,"sys_mq_getsetattr"),(246,"sys_kexec_load"),(247,"sys_waitid"),(248,"sys_add_key"),(249,"sys_request_key"),(250,"sys_keyctl"),(251,"sys_ioprio_set"),(252,"sys_ioprio_get"),(253,"sys_inotify_init"),(254,"sys_inotify_add_watch"),(255,"sys_inotify_rm_watch"),(256,"sys_migrate_pages"),(257,"sys_openat"),(258,"sys_mkdirat"),(259,"sys_mknodat"),(260,"sys_fchownat"),(261,"sys_futimesat"),(262,"sys_newfstatat"),(263,"sys_unlinkat"),(264,"sys_renameat"),(265,"sys_linkat"),(266,"sys_symlinkat"),(267,"sys_readlinkat"),(268,"sys_fchmodat"),(269,"sys_faccessat"),(270,"sys_pselect6"),(271,"sys_ppoll"),(272,"sys_unshare"),(273,"sys_set_robust_list"),(274,"sys_get_robust_list"),(275,"sys_splice"),(276,"sys_tee"),(277,"sys_sync_file_range"),(278,"sys_vmsplice"),(279,"sys_move_pages"),(280,"sys_utimensat"),(281,"sys_epoll_pwait"),(282,"sys_signalfd"),(283,"sys_timerfd_create"),(284,"sys_eventfd"),(285,"sys_fallocate"),(286,"sys_timerfd_settime"),(287,"sys_timerfd_gettime"),(288,"sys_accept4"),(289,"sys_signalfd4"),(290,"sys_eventfd2"),(291,"sys_epoll_create1"),(292,"sys_dup3"),(293,"sys_pipe2"),(294,"sys_inotify_init1"),(295,"sys_preadv"),(296,"sys_pwritev"),(297,"sys_rt_tgsigqueueinfo"),(298,"sys_perf_event_open"),(299,"sys_recvmmsg"),(300,"sys_fanotify_init"),(301,"sys_fanotify_mark"),(302,"sys_prlimit64"),(303,"sys_name_to_handle_at"),(304,"sys_open_by_handle_at"),(305,"sys_clock_adjtime"),(306,"sys_syncfs"),(307,"sys_sendmmsg"),(308,"sys_setns"),(309,"sys_getcpu"),(310,"sys_process_vm_readv"),(311,"sys_process_vm_writev")],
'type': TYPE_EQUAL
},
'arm': {
'flags': [(142, 'SYS__newselect'), (149, 'SYS__sysctl'), (285, 'SYS_accept'), (366, 'SYS_accept4'), (33, 'SYS_access'), (51, 'SYS_acct'), (309, 'SYS_add_key'), (124, 'SYS_adjtimex'), (134, 'SYS_bdflush'), (282, 'SYS_bind'), (45, 'SYS_brk'), (184, 'SYS_capget'), (185, 'SYS_capset'), (12, 'SYS_chdir'), (15, 'SYS_chmod'), (182, 'SYS_chown'), (212, 'SYS_chown32'), (61, 'SYS_chroot'), (372, 'SYS_clock_adjtime'), (264, 'SYS_clock_getres'), (263, 'SYS_clock_gettime'), (265, 'SYS_clock_nanosleep'), (262, 'SYS_clock_settime'), (120, 'SYS_clone'), (6, 'SYS_close'), (283, 'SYS_connect'), (8, 'SYS_creat'), (129, 'SYS_delete_module'), (41, 'SYS_dup'), (63, 'SYS_dup2'), (358, 'SYS_dup3'), (250, 'SYS_epoll_create'), (357, 'SYS_epoll_create1'), (251, 'SYS_epoll_ctl'), (346, 'SYS_epoll_pwait'), (252, 'SYS_epoll_wait'), (351, 'SYS_eventfd'), (356, 'SYS_eventfd2'), (11, 'SYS_execve'), (1, 'SYS_exit'), (248, 'SYS_exit_group'), (334, 'SYS_faccessat'), (352, 'SYS_fallocate'), (367, 'SYS_fanotify_init'), (368, 'SYS_fanotify_mark'), (133, 'SYS_fchdir'), (94, 'SYS_fchmod'), (333, 'SYS_fchmodat'), (95, 'SYS_fchown'), (207, 'SYS_fchown32'), (325, 'SYS_fchownat'), (55, 'SYS_fcntl'), (221, 'SYS_fcntl64'), (148, 'SYS_fdatasync'), (231, 'SYS_fgetxattr'), (379, 'SYS_finit_module'), (234, 'SYS_flistxattr'), (143, 'SYS_flock'), (2, 'SYS_fork'), (237, 'SYS_fremovexattr'), (228, 'SYS_fsetxattr'), (108, 'SYS_fstat'), (197, 'SYS_fstat64'), (327, 'SYS_fstatat64'), (100, 'SYS_fstatfs'), (267, 'SYS_fstatfs64'), (118, 'SYS_fsync'), (93, 'SYS_ftruncate'), (194, 'SYS_ftruncate64'), (240, 'SYS_futex'), (326, 'SYS_futimesat'), (320, 'SYS_get_mempolicy'), (339, 'SYS_get_robust_list'), (345, 'SYS_getcpu'), (183, 'SYS_getcwd'), (141, 'SYS_getdents'), (217, 'SYS_getdents64'), (50, 'SYS_getegid'), (202, 'SYS_getegid32'), (49, 'SYS_geteuid'), (201, 'SYS_geteuid32'), (47, 'SYS_getgid'), (200, 'SYS_getgid32'), (80, 'SYS_getgroups'), (205, 'SYS_getgroups32'), (105, 'SYS_getitimer'), (287, 'SYS_getpeername'), (132, 'SYS_getpgid'), (65, 'SYS_getpgrp'), (20, 'SYS_getpid'), (64, 'SYS_getppid'), (96, 'SYS_getpriority'), (171, 'SYS_getresgid'), (211, 'SYS_getresgid32'), (165, 'SYS_getresuid'), (209, 'SYS_getresuid32'), (77, 'SYS_getrusage'), (147, 'SYS_getsid'), (286, 'SYS_getsockname'), (295, 'SYS_getsockopt'), (224, 'SYS_gettid'), (78, 'SYS_gettimeofday'), (24, 'SYS_getuid'), (199, 'SYS_getuid32'), (229, 'SYS_getxattr'), (128, 'SYS_init_module'), (317, 'SYS_inotify_add_watch'), (316, 'SYS_inotify_init'), (360, 'SYS_inotify_init1'), (318, 'SYS_inotify_rm_watch'), (247, 'SYS_io_cancel'), (244, 'SYS_io_destroy'), (245, 'SYS_io_getevents'), (243, 'SYS_io_setup'), (246, 'SYS_io_submit'), (54, 'SYS_ioctl'), (315, 'SYS_ioprio_get'), (314, 'SYS_ioprio_set'), (378, 'SYS_kcmp'), (347, 'SYS_kexec_load'), (311, 'SYS_keyctl'), (37, 'SYS_kill'), (16, 'SYS_lchown'), (198, 'SYS_lchown32'), (230, 'SYS_lgetxattr'), (9, 'SYS_link'), (330, 'SYS_linkat'), (284, 'SYS_listen'), (232, 'SYS_listxattr'), (233, 'SYS_llistxattr'), (249, 'SYS_lookup_dcookie'), (236, 'SYS_lremovexattr'), (19, 'SYS_lseek'), (227, 'SYS_lsetxattr'), (107, 'SYS_lstat'), (196, 'SYS_lstat64'), (220, 'SYS_madvise'), (319, 'SYS_mbind'), (219, 'SYS_mincore'), (39, 'SYS_mkdir'), (323, 'SYS_mkdirat'), (14, 'SYS_mknod'), (324, 'SYS_mknodat'), (150, 'SYS_mlock'), (152, 'SYS_mlockall'), (192, 'SYS_mmap2'), (21, 'SYS_mount'), (344, 'SYS_move_pages'), (125, 'SYS_mprotect'), (279, 'SYS_mq_getsetattr'), (278, 'SYS_mq_notify'), (274, 'SYS_mq_open'), (277, 'SYS_mq_timedreceive'), (276, 'SYS_mq_timedsend'), (275, 'SYS_mq_unlink'), (163, 'SYS_mremap'), (304, 'SYS_msgctl'), (303, 'SYS_msgget'), (302, 'SYS_msgrcv'), (301, 'SYS_msgsnd'), (144, 'SYS_msync'), (151, 'SYS_munlock'), (153, 'SYS_munlockall'), (91, 'SYS_munmap'), (370, 'SYS_name_to_handle_at'), (162, 'SYS_nanosleep'), (169, 'SYS_nfsservctl'), (34, 'SYS_nice'), (5, 'SYS_open'), (371, 'SYS_open_by_handle_at'), (322, 'SYS_openat'), (29, 'SYS_pause'), (271, 'SYS_pciconfig_iobase'), (272, 'SYS_pciconfig_read'), (273, 'SYS_pciconfig_write'), (364, 'SYS_perf_event_open'), (136, 'SYS_personality'), (42, 'SYS_pipe'), (359, 'SYS_pipe2'), (218, 'SYS_pivot_root'), (168, 'SYS_poll'), (336, 'SYS_ppoll'), (172, 'SYS_prctl'), (180, 'SYS_pread64'), (361, 'SYS_preadv'), (369, 'SYS_prlimit64'), (376, 'SYS_process_vm_readv'), (377, 'SYS_process_vm_writev'), (335, 'SYS_pselect6'), (26, 'SYS_ptrace'), (181, 'SYS_pwrite64'), (362, 'SYS_pwritev'), (131, 'SYS_quotactl'), (3, 'SYS_read'), (225, 'SYS_readahead'), (85, 'SYS_readlink'), (332, 'SYS_readlinkat'), (145, 'SYS_readv'), (88, 'SYS_reboot'), (291, 'SYS_recv'), (292, 'SYS_recvfrom'), (297, 'SYS_recvmsg'), (365, 'SYS_recvmmsg'), (253, 'SYS_remap_file_pages'), (235, 'SYS_removexattr'), (38, 'SYS_rename'), (329, 'SYS_renameat'), (310, 'SYS_request_key'), (0, 'SYS_restart_syscall'), (40, 'SYS_rmdir'), (174, 'SYS_rt_sigaction'), (176, 'SYS_rt_sigpending'), (175, 'SYS_rt_sigprocmask'), (178, 'SYS_rt_sigqueueinfo'), (173, 'SYS_rt_sigreturn'), (179, 'SYS_rt_sigsuspend'), (177, 'SYS_rt_sigtimedwait'), (363, 'SYS_rt_tgsigqueueinfo'), (159, 'SYS_sched_get_priority_max'), (160, 'SYS_sched_get_priority_min'), (242, 'SYS_sched_getaffinity'), (155, 'SYS_sched_getparam'), (157, 'SYS_sched_getscheduler'), (161, 'SYS_sched_rr_get_interval'), (241, 'SYS_sched_setaffinity'), (154, 'SYS_sched_setparam'), (156, 'SYS_sched_setscheduler'), (158, 'SYS_sched_yield'), (300, 'SYS_semctl'), (299, 'SYS_semget'), (298, 'SYS_semop'), (312, 'SYS_semtimedop'), (289, 'SYS_send'), (187, 'SYS_sendfile'), (239, 'SYS_sendfile64'), (374, 'SYS_sendmmsg'), (296, 'SYS_sendmsg'), (290, 'SYS_sendto'), (321, 'SYS_set_mempolicy'), (338, 'SYS_set_robust_list'), (256, 'SYS_set_tid_address'), (121, 'SYS_setdomainname'), (139, 'SYS_setfsgid'), (216, 'SYS_setfsgid32'), (138, 'SYS_setfsuid'), (215, 'SYS_setfsuid32'), (46, 'SYS_setgid'), (214, 'SYS_setgid32'), (81, 'SYS_setgroups'), (206, 'SYS_setgroups32'), (74, 'SYS_sethostname'), (104, 'SYS_setitimer'), (375, 'SYS_setns'), (57, 'SYS_setpgid'), (97, 'SYS_setpriority'), (71, 'SYS_setregid'), (204, 'SYS_setregid32'), (170, 'SYS_setresgid'), (210, 'SYS_setresgid32'), (164, 'SYS_setresuid'), (208, 'SYS_setresuid32'), (70, 'SYS_setreuid'), (203, 'SYS_setreuid32'), (75, 'SYS_setrlimit'), (66, 'SYS_setsid'), (294, 'SYS_setsockopt'), (79, 'SYS_settimeofday'), (23, 'SYS_setuid'), (213, 'SYS_setuid32'), (226, 'SYS_setxattr'), (305, 'SYS_shmat'), (308, 'SYS_shmctl'), (306, 'SYS_shmdt'), (307, 'SYS_shmget'), (293, 'SYS_shutdown'), (67, 'SYS_sigaction'), (186, 'SYS_sigaltstack'), (349, 'SYS_signalfd'), (355, 'SYS_signalfd4'), (73, 'SYS_sigpending'), (126, 'SYS_sigprocmask'), (119, 'SYS_sigreturn'), (72, 'SYS_sigsuspend'), (281, 'SYS_socket'), (288, 'SYS_socketpair'), (340, 'SYS_splice'), (106, 'SYS_stat'), (195, 'SYS_stat64'), (99, 'SYS_statfs'), (266, 'SYS_statfs64'), (115, 'SYS_swapoff'), (87, 'SYS_swapon'), (83, 'SYS_symlink'), (331, 'SYS_symlinkat'), (36, 'SYS_sync'), (341, 'SYS_sync_file_range2'), (373, 'SYS_syncfs'), (135, 'SYS_sysfs'), (116, 'SYS_sysinfo'), (103, 'SYS_syslog'), (342, 'SYS_tee'), (268, 'SYS_tgkill'), (257, 'SYS_timer_create'), (261, 'SYS_timer_delete'), (260, 'SYS_timer_getoverrun'), (259, 'SYS_timer_gettime'), (258, 'SYS_timer_settime'), (350, 'SYS_timerfd_create'), (354, 'SYS_timerfd_gettime'), (353, 'SYS_timerfd_settime'), (43, 'SYS_times'), (238, 'SYS_tkill'), (92, 'SYS_truncate'), (193, 'SYS_truncate64'), (191, 'SYS_ugetrlimit'), (60, 'SYS_umask'), (52, 'SYS_umount2'), (122, 'SYS_uname'), (10, 'SYS_unlink'), (328, 'SYS_unlinkat'), (337, 'SYS_unshare'), (86, 'SYS_uselib'), (62, 'SYS_ustat'), (348, 'SYS_utimensat'), (269, 'SYS_utimes'), (190, 'SYS_vfork'), (111, 'SYS_vhangup'), (343, 'SYS_vmsplice'), (114, 'SYS_wait4'), (280, 'SYS_waitid'), (4, 'SYS_write'), (146, 'SYS_writev')],
'type': TYPE_EQUAL,
},
'ppc': {
'flags': [(0, "SYS_restart_syscall"), (1, "SYS_exit"), (2, "SYS_fork"), (3, "SYS_read"), (4, "SYS_write"), (5, "SYS_open"), (6, "SYS_close"), (7, "SYS_waitpid"), (8, "SYS_creat"), (9, "SYS_link"), (10, "SYS_unlink"), (11, "SYS_execve"), (12, "SYS_chdir"), (13, "SYS_time"), (14, "SYS_mknod"), (15, "SYS_chmod"), (16, "SYS_lchown"), (17, "SYS_break"), (18, "SYS_oldstat"), (19, "SYS_lseek"), (20, "SYS_getpid"), (21, "SYS_mount"), (22, "SYS_umount"), (23, "SYS_setuid"), (24, "SYS_getuid"), (25, "SYS_stime"), (26, "SYS_ptrace"), (27, "SYS_alarm"), (28, "SYS_oldfstat"), (29, "SYS_pause"), (30, "SYS_utime"), (31, "SYS_stty"), (32, "SYS_gtty"), (33, "SYS_access"), (34, "SYS_nice"), (35, "SYS_ftime"), (36, "SYS_sync"), (37, "SYS_kill"), (38, "SYS_rename"), (39, "SYS_mkdir"), (40, "SYS_rmdir"), (41, "SYS_dup"), (42, "SYS_pipe"), (43, "SYS_times"), (44, "SYS_prof"), (45, "SYS_brk"), (46, "SYS_setgid"), (47, "SYS_getgid"), (48, "SYS_signal"), (49, "SYS_geteuid"), (50, "SYS_getegid"), (51, "SYS_acct"), (52, "SYS_umount2"), (53, "SYS_lock"), (54, "SYS_ioctl"), (55, "SYS_fcntl"), (56, "SYS_mpx"), (57, "SYS_setpgid"), (58, "SYS_ulimit"), (59, "SYS_oldolduname"), (60, "SYS_umask"), (61, "SYS_chroot"), (62, "SYS_ustat"), (63, "SYS_dup2"), (64, "SYS_getppid"), (65, "SYS_getpgrp"), (66, "SYS_setsid"), (67, "SYS_sigaction"), (68, "SYS_sgetmask"), (69, "SYS_ssetmask"), (70, "SYS_setreuid"), (71, "SYS_setregid"), (72, "SYS_sigsuspend"), (73, "SYS_sigpending"), (74, "SYS_sethostname"), (75, "SYS_setrlimit"), (76, "SYS_getrlimit"), (77, "SYS_getrusage"), (78, "SYS_gettimeofday"), (79, "SYS_settimeofday"), (80, "SYS_getgroups"), (81, "SYS_setgroups"), (82, "SYS_select"), (83, "SYS_symlink"), (84, "SYS_oldlstat"), (85, "SYS_readlink"), (86, "SYS_uselib"), (87, "SYS_swapon"), (88, "SYS_reboot"), (89, "SYS_readdir"), (90, "SYS_mmap"), (91, "SYS_munmap"), (92, "SYS_truncate"), (93, "SYS_ftruncate"), (94, "SYS_fchmod"), (95, "SYS_fchown"), (96, "SYS_getpriority"), (97, "SYS_setpriority"), (98, "SYS_profil"), (99, "SYS_statfs"), (100, "SYS_fstatfs"), (101, "SYS_ioperm"), (102, "SYS_socketcall"), (103, "SYS_syslog"), (104, "SYS_setitimer"), (105, "SYS_getitimer"), (106, "SYS_stat"), (107, "SYS_lstat"), (108, "SYS_fstat"), (109, "SYS_olduname"), (110, "SYS_iopl"), (111, "SYS_vhangup"), (112, "SYS_idle"), (113, "SYS_vm86"), (114, "SYS_wait4"), (115, "SYS_swapoff"), (116, "SYS_sysinfo"), (117, "SYS_ipc"), (118, "SYS_fsync"), (119, "SYS_sigreturn"), (120, "SYS_clone"), (121, "SYS_setdomainname"), (122, "SYS_uname"), (123, "SYS_modify_ldt"), (124, "SYS_adjtimex"), (125, "SYS_mprotect"), (126, "SYS_sigprocmask"), (127, "SYS_create_module"), (128, "SYS_init_module"), (129, "SYS_delete_module"), (130, "SYS_get_kernel_syms"), (131, "SYS_quotactl"), (132, "SYS_getpgid"), (133, "SYS_fchdir"), (134, "SYS_bdflush"), (135, "SYS_sysfs"), (136, "SYS_personality"), (137, "SYS_afs_syscall"), (138, "SYS_setfsuid"), (139, "SYS_setfsgid"), (140, "SYS__llseek"), (141, "SYS_getdents"), (142, "SYS__newselect"), (143, "SYS_flock"), (144, "SYS_msync"), (145, "SYS_readv"), (146, "SYS_writev"), (147, "SYS_getsid"), (148, "SYS_fdatasync"), (149, "SYS__sysctl"), (150, "SYS_mlock"), (151, "SYS_munlock"), (152, "SYS_mlockall"), (153, "SYS_munlockall"), (154, "SYS_sched_setparam"), (155, "SYS_sched_getparam"), (156, "SYS_sched_setscheduler"), (157, "SYS_sched_getscheduler"), (158, "SYS_sched_yield"), (159, "SYS_sched_get_priority_max"), (160, "SYS_sched_get_priority_min"), (161, "SYS_sched_rr_get_interval"), (162, "SYS_nanosleep"), (163, "SYS_mremap"), (164, "SYS_setresuid"), (165, "SYS_getresuid"), (166, "SYS_query_module"), (167, "SYS_poll"), (168, "SYS_nfsservctl"), (169, "SYS_setresgid"), (170, "SYS_getresgid"), (171, "SYS_prctl"), (172, "SYS_rt_sigreturn"), (173, "SYS_rt_sigaction"), (174, "SYS_rt_sigprocmask"), (175, "SYS_rt_sigpending"), (176, "SYS_rt_sigtimedwait"), (177, "SYS_rt_sigqueueinfo"), (178, "SYS_rt_sigsuspend"), (179, "SYS_pread64"), (180, "SYS_pwrite64"), (181, "SYS_chown"), (182, "SYS_getcwd"), (183, "SYS_capget"), (184, "SYS_capset"), (185, "SYS_sigaltstack"), (186, "SYS_sendfile"), (187, "SYS_getpmsg"), (188, "SYS_putpmsg"), (189, "SYS_vfork"), (190, "SYS_ugetrlimit"), (191, "SYS_readahead"), (192, "SYS_mmap2"), (193, "SYS_truncate64"), (194, "SYS_ftruncate64"), (195, "SYS_stat64"), (196, "SYS_lstat64"), (197, "SYS_fstat64"), (198, "SYS_pciconfig_read"), (199, "SYS_pciconfig_write"), (200, "SYS_pciconfig_iobase"), (201, "SYS_multiplexer"), (202, "SYS_getdents64"), (203, "SYS_pivot_root"), (204, "SYS_fcntl64"), (205, "SYS_madvise"), (206, "SYS_mincore"), (207, "SYS_gettid"), (208, "SYS_tkill"), (209, "SYS_setxattr"), (210, "SYS_lsetxattr"), (211, "SYS_fsetxattr"), (212, "SYS_getxattr"), (213, "SYS_lgetxattr"), (214, "SYS_fgetxattr"), (215, "SYS_listxattr"), (216, "SYS_llistxattr"), (217, "SYS_flistxattr"), (218, "SYS_removexattr"), (219, "SYS_lremovexattr"), (220, "SYS_fremovexattr"), (221, "SYS_futex"), (222, "SYS_sched_setaffinity"), (223, "SYS_sched_getaffinity"), (225, "SYS_tuxcall"), (226, "SYS_sendfile64"), (227, "SYS_io_setup"), (228, "SYS_io_destroy"), (229, "SYS_io_getevents"), (230, "SYS_io_submit"), (231, "SYS_io_cancel"), (232, "SYS_set_tid_address"), (233, "SYS_fadvise64"), (234, "SYS_exit_group"), (235, "SYS_lookup_dcookie"), (236, "SYS_epoll_create"), (237, "SYS_epoll_ctl"), (238, "SYS_epoll_wait"), (239, "SYS_remap_file_pages"), (240, "SYS_timer_create"), (241, "SYS_timer_settime"), (242, "SYS_timer_gettime"), (243, "SYS_timer_getoverrun"), (244, "SYS_timer_delete"), (245, "SYS_clock_settime"), (246, "SYS_clock_gettime"), (247, "SYS_clock_getres"), (248, "SYS_clock_nanosleep"), (249, "SYS_swapcontext"), (250, "SYS_tgkill"), (251, "SYS_utimes"), (252, "SYS_statfs64"), (253, "SYS_fstatfs64"), (254, "SYS_fadvise64_64"), (255, "SYS_rtas"), (256, "SYS_sys_debug_setcontext"), (259, "SYS_mbind"), (260, "SYS_get_mempolicy"), (261, "SYS_set_mempolicy"), (262, "SYS_mq_open"), (263, "SYS_mq_unlink"), (264, "SYS_mq_timedsend"), (265, "SYS_mq_timedreceive"), (266, "SYS_mq_notify"), (267, "SYS_mq_getsetattr"), (268, "SYS_kexec_load"), (269, "SYS_add_key"), (270, "SYS_request_key"), (271, "SYS_keyctl"), (272, "SYS_waitid"), (273, "SYS_ioprio_set"), (274, "SYS_ioprio_get"), (275, "SYS_inotify_init"), (276, "SYS_inotify_add_watch"), (277, "SYS_inotify_rm_watch"), (278, "SYS_spu_run"), (279, "SYS_spu_create"), (280, "SYS_pselect6"), (281, "SYS_ppoll"), (282, "SYS_unshare"), (286, "SYS_openat"), (287, "SYS_mkdirat"), (288, "SYS_mknodat"), (289, "SYS_fchownat"), (290, "SYS_futimesat"), (291, "SYS_fstatat64"), (292, "SYS_unlinkat"), (293, "SYS_renameat"), (294, "SYS_linkat"), (295, "SYS_symlinkat"), (296, "SYS_readlinkat"), (297, "SYS_fchmodat"), (298, "SYS_faccessat")],
'type': TYPE_EQUAL,
},
'ppc64': {
'flags': [(0, "SYS_restart_syscall"), (1, "SYS_exit"), (2, "SYS_fork"), (3, "SYS_read"), (4, "SYS_write"), (5, "SYS_open"), (6, "SYS_close"), (7, "SYS_waitpid"), (8, "SYS_creat"), (9, "SYS_link"), (10, "SYS_unlink"), (11, "SYS_execve"), (12, "SYS_chdir"), (13, "SYS_time"), (14, "SYS_mknod"), (15, "SYS_chmod"), (16, "SYS_lchown"), (17, "SYS_break"), (18, "SYS_oldstat"), (19, "SYS_lseek"), (20, "SYS_getpid"), (21, "SYS_mount"), (22, "SYS_umount"), (23, "SYS_setuid"), (24, "SYS_getuid"), (25, "SYS_stime"), (26, "SYS_ptrace"), (27, "SYS_alarm"), (28, "SYS_oldfstat"), (29, "SYS_pause"), (30, "SYS_utime"), (31, "SYS_stty"), (32, "SYS_gtty"), (33, "SYS_access"), (34, "SYS_nice"), (35, "SYS_ftime"), (36, "SYS_sync"), (37, "SYS_kill"), (38, "SYS_rename"), (39, "SYS_mkdir"), (40, "SYS_rmdir"), (41, "SYS_dup"), (42, "SYS_pipe"), (43, "SYS_times"), (44, "SYS_prof"), (45, "SYS_brk"), (46, "SYS_setgid"), (47, "SYS_getgid"), (48, "SYS_signal"), (49, "SYS_geteuid"), (50, "SYS_getegid"), (51, "SYS_acct"), (52, "SYS_umount2"), (53, "SYS_lock"), (54, "SYS_ioctl"), (55, "SYS_fcntl"), (56, "SYS_mpx"), (57, "SYS_setpgid"), (58, "SYS_ulimit"), (59, "SYS_oldolduname"), (60, "SYS_umask"), (61, "SYS_chroot"), (62, "SYS_ustat"), (63, "SYS_dup2"), (64, "SYS_getppid"), (65, "SYS_getpgrp"), (66, "SYS_setsid"), (67, "SYS_sigaction"), (68, "SYS_sgetmask"), (69, "SYS_ssetmask"), (70, "SYS_setreuid"), (71, "SYS_setregid"), (72, "SYS_sigsuspend"), (73, "SYS_sigpending"), (74, "SYS_sethostname"), (75, "SYS_setrlimit"), (76, "SYS_getrlimit"), (77, "SYS_getrusage"), (78, "SYS_gettimeofday"), (79, "SYS_settimeofday"), (80, "SYS_getgroups"), (81, "SYS_setgroups"), (82, "SYS_select"), (83, "SYS_symlink"), (84, "SYS_oldlstat"), (85, "SYS_readlink"), (86, "SYS_uselib"), (87, "SYS_swapon"), (88, "SYS_reboot"), (89, "SYS_readdir"), (90, "SYS_mmap"), (91, "SYS_munmap"), (92, "SYS_truncate"), (93, "SYS_ftruncate"), (94, "SYS_fchmod"), (95, "SYS_fchown"), (96, "SYS_getpriority"), (97, "SYS_setpriority"), (98, "SYS_profil"), (99, "SYS_statfs"), (100, "SYS_fstatfs"), (101, "SYS_ioperm"), (102, "SYS_socketcall"), (103, "SYS_syslog"), (104, "SYS_setitimer"), (105, "SYS_getitimer"), (106, "SYS_stat"), (107, "SYS_lstat"), (108, "SYS_fstat"), (109, "SYS_olduname"), (110, "SYS_iopl"), (111, "SYS_vhangup"), (112, "SYS_idle"), (113, "SYS_vm86"), (114, "SYS_wait4"), (115, "SYS_swapoff"), (116, "SYS_sysinfo"), (117, "SYS_ipc"), (118, "SYS_fsync"), (119, "SYS_sigreturn"), (120, "SYS_clone"), (121, "SYS_setdomainname"), (122, "SYS_uname"), (123, "SYS_modify_ldt"), (124, "SYS_adjtimex"), (125, "SYS_mprotect"), (126, "SYS_sigprocmask"), (127, "SYS_create_module"), (128, "SYS_init_module"), (129, "SYS_delete_module"), (130, "SYS_get_kernel_syms"), (131, "SYS_quotactl"), (132, "SYS_getpgid"), (133, "SYS_fchdir"), (134, "SYS_bdflush"), (135, "SYS_sysfs"), (136, "SYS_personality"), (137, "SYS_afs_syscall"), (138, "SYS_setfsuid"), (139, "SYS_setfsgid"), (140, "SYS__llseek"), (141, "SYS_getdents"), (142, "SYS__newselect"), (143, "SYS_flock"), (144, "SYS_msync"), (145, "SYS_readv"), (146, "SYS_writev"), (147, "SYS_getsid"), (148, "SYS_fdatasync"), (149, "SYS__sysctl"), (150, "SYS_mlock"), (151, "SYS_munlock"), (152, "SYS_mlockall"), (153, "SYS_munlockall"), (154, "SYS_sched_setparam"), (155, "SYS_sched_getparam"), (156, "SYS_sched_setscheduler"), (157, "SYS_sched_getscheduler"), (158, "SYS_sched_yield"), (159, "SYS_sched_get_priority_max"), (160, "SYS_sched_get_priority_min"), (161, "SYS_sched_rr_get_interval"), (162, "SYS_nanosleep"), (163, "SYS_mremap"), (164, "SYS_setresuid"), (165, "SYS_getresuid"), (166, "SYS_query_module"), (167, "SYS_poll"), (168, "SYS_nfsservctl"), (169, "SYS_setresgid"), (170, "SYS_getresgid"), (171, "SYS_prctl"), (172, "SYS_rt_sigreturn"), (173, "SYS_rt_sigaction"), (174, "SYS_rt_sigprocmask"), (175, "SYS_rt_sigpending"), (176, "SYS_rt_sigtimedwait"), (177, "SYS_rt_sigqueueinfo"), (178, "SYS_rt_sigsuspend"), (179, "SYS_pread64"), (180, "SYS_pwrite64"), (181, "SYS_chown"), (182, "SYS_getcwd"), (183, "SYS_capget"), (184, "SYS_capset"), (185, "SYS_sigaltstack"), (186, "SYS_sendfile"), (187, "SYS_getpmsg"), (188, "SYS_putpmsg"), (189, "SYS_vfork"), (190, "SYS_ugetrlimit"), (191, "SYS_readahead"), (198, "SYS_pciconfig_read"), (199, "SYS_pciconfig_write"), (200, "SYS_pciconfig_iobase"), (201, "SYS_multiplexer"), (202, "SYS_getdents64"), (203, "SYS_pivot_root"), (205, "SYS_madvise"), (206, "SYS_mincore"), (207, "SYS_gettid"), (208, "SYS_tkill"), (209, "SYS_setxattr"), (210, "SYS_lsetxattr"), (211, "SYS_fsetxattr"), (212, "SYS_getxattr"), (213, "SYS_lgetxattr"), (214, "SYS_fgetxattr"), (215, "SYS_listxattr"), (216, "SYS_llistxattr"), (217, "SYS_flistxattr"), (218, "SYS_removexattr"), (219, "SYS_lremovexattr"), (220, "SYS_fremovexattr"), (221, "SYS_futex"), (222, "SYS_sched_setaffinity"), (223, "SYS_sched_getaffinity"), (225, "SYS_tuxcall"), (227, "SYS_io_setup"), (228, "SYS_io_destroy"), (229, "SYS_io_getevents"), (230, "SYS_io_submit"), (231, "SYS_io_cancel"), (232, "SYS_set_tid_address"), (233, "SYS_fadvise64"), (234, "SYS_exit_group"), (235, "SYS_lookup_dcookie"), (236, "SYS_epoll_create"), (237, "SYS_epoll_ctl"), (238, "SYS_epoll_wait"), (239, "SYS_remap_file_pages"), (240, "SYS_timer_create"), (241, "SYS_timer_settime"), (242, "SYS_timer_gettime"), (243, "SYS_timer_getoverrun"), (244, "SYS_timer_delete"), (245, "SYS_clock_settime"), (246, "SYS_clock_gettime"), (247, "SYS_clock_getres"), (248, "SYS_clock_nanosleep"), (249, "SYS_swapcontext"), (250, "SYS_tgkill"), (251, "SYS_utimes"), (252, "SYS_statfs64"), (253, "SYS_fstatfs64"), (255, "SYS_rtas"), (256, "SYS_sys_debug_setcontext"), (259, "SYS_mbind"), (260, "SYS_get_mempolicy"), (261, "SYS_set_mempolicy"), (262, "SYS_mq_open"), (263, "SYS_mq_unlink"), (264, "SYS_mq_timedsend"), (265, "SYS_mq_timedreceive"), (266, "SYS_mq_notify"), (267, "SYS_mq_getsetattr"), (268, "SYS_kexec_load"), (269, "SYS_add_key"), (270, "SYS_request_key"), (271, "SYS_keyctl"), (272, "SYS_waitid"), (273, "SYS_ioprio_set"), (274, "SYS_ioprio_get"), (275, "SYS_inotify_init"), (276, "SYS_inotify_add_watch"), (277, "SYS_inotify_rm_watch"), (278, "SYS_spu_run"), (279, "SYS_spu_create"), (280, "SYS_pselect6"), (281, "SYS_ppoll"), (282, "SYS_unshare"), (286, "SYS_unlinkat"), (287, "SYS_renameat"), (288, "SYS_linkat"), (289, "SYS_symlinkat"), (290, "SYS_readlinkat"), (291, "SYS_fchmodat"), (292, "SYS_faccessat")],
'type': TYPE_EQUAL,
},
'sparc': {
'flags': [(0, "SYS_restart_syscall"), (1, "SYS_exit"), (2, "SYS_fork"), (3, "SYS_read"), (4, "SYS_write"), (5, "SYS_open"), (6, "SYS_close"), (7, "SYS_wait4"), (8, "SYS_creat"), (9, "SYS_link"), (10, "SYS_unlink"), (11, "SYS_execv"), (12, "SYS_chdir"), (14, "SYS_mknod"), (15, "SYS_chmod"), (16, "SYS_lchown"), (17, "SYS_brk"), (18, "SYS_perfctr"), (19, "SYS_lseek"), (20, "SYS_getpid"), (21, "SYS_capget"), (22, "SYS_capset"), (23, "SYS_setuid"), (24, "SYS_getuid"), (25, "SYS_vmsplice"), (26, "SYS_ptrace"), (27, "SYS_alarm"), (28, "SYS_sigaltstack"), (29, "SYS_pause"), (30, "SYS_utime"), (31, "SYS_lchown32"), (32, "SYS_fchown32"), (33, "SYS_access"), (34, "SYS_nice"), (35, "SYS_chown32"), (36, "SYS_sync"), (37, "SYS_kill"), (38, "SYS_stat"), (39, "SYS_sendfile"), (40, "SYS_lstat"), (41, "SYS_dup"), (42, "SYS_pipe"), (43, "SYS_times"), (44, "SYS_getuid32"), (45, "SYS_umount2"), (46, "SYS_setgid"), (47, "SYS_getgid"), (48, "SYS_signal"), (49, "SYS_geteuid"), (50, "SYS_getegid"), (51, "SYS_acct"), (53, "SYS_getgid32"), (54, "SYS_ioctl"), (55, "SYS_reboot"), (56, "SYS_mmap2"), (57, "SYS_symlink"), (58, "SYS_readlink"), (59, "SYS_execve"), (60, "SYS_umask"), (61, "SYS_chroot"), (62, "SYS_fstat"), (63, "SYS_fstat64"), (64, "SYS_getpagesize"), (65, "SYS_msync"), (66, "SYS_vfork"), (67, "SYS_pread64"), (68, "SYS_pwrite64"), (69, "SYS_geteuid32"), (70, "SYS_getegid32"), (71, "SYS_mmap"), (72, "SYS_setreuid32"), (73, "SYS_munmap"), (74, "SYS_mprotect"), (75, "SYS_madvise"), (76, "SYS_vhangup"), (77, "SYS_truncate64"), (78, "SYS_mincore"), (79, "SYS_getgroups"), (80, "SYS_setgroups"), (81, "SYS_getpgrp"), (82, "SYS_setgroups32"), (83, "SYS_setitimer"), (84, "SYS_ftruncate64"), (85, "SYS_swapon"), (86, "SYS_getitimer"), (87, "SYS_setuid32"), (88, "SYS_sethostname"), (89, "SYS_setgid32"), (90, "SYS_dup2"), (91, "SYS_setfsuid32"), (92, "SYS_fcntl"), (93, "SYS_select"), (94, "SYS_setfsgid32"), (95, "SYS_fsync"), (96, "SYS_setpriority"), (97, "SYS_socket"), (98, "SYS_connect"), (99, "SYS_accept"), (100, "SYS_getpriority"), (101, "SYS_rt_sigreturn"), (102, "SYS_rt_sigaction"), (103, "SYS_rt_sigprocmask"), (104, "SYS_rt_sigpending"), (105, "SYS_rt_sigtimedwait"), (106, "SYS_rt_sigqueueinfo"), (107, "SYS_rt_sigsuspend"), (108, "SYS_setresuid32"), (109, "SYS_getresuid32"), (110, "SYS_setresgid32"), (111, "SYS_getresgid32"), (112, "SYS_setregid32"), (113, "SYS_recvmsg"), (114, "SYS_sendmsg"), (115, "SYS_getgroups32"), (116, "SYS_gettimeofday"), (117, "SYS_getrusage"), (118, "SYS_getsockopt"), (119, "SYS_getcwd"), (120, "SYS_readv"), (121, "SYS_writev"), (122, "SYS_settimeofday"), (123, "SYS_fchown"), (124, "SYS_fchmod"), (125, "SYS_recvfrom"), (126, "SYS_setreuid"), (127, "SYS_setregid"), (128, "SYS_rename"), (129, "SYS_truncate"), (130, "SYS_ftruncate"), (131, "SYS_flock"), (132, "SYS_lstat64"), (133, "SYS_sendto"), (134, "SYS_shutdown"), (135, "SYS_socketpair"), (136, "SYS_mkdir"), (137, "SYS_rmdir"), (138, "SYS_utimes"), (139, "SYS_stat64"), (140, "SYS_sendfile64"), (141, "SYS_getpeername"), (142, "SYS_futex"), (143, "SYS_gettid"), (144, "SYS_getrlimit"), (145, "SYS_setrlimit"), (146, "SYS_pivot_root"), (147, "SYS_prctl"), (148, "SYS_pciconfig_read"), (149, "SYS_pciconfig_write"), (150, "SYS_getsockname"), (151, "SYS_inotify_init"), (152, "SYS_inotify_add_watch"), (153, "SYS_poll"), (154, "SYS_getdents64"), (155, "SYS_fcntl64"), (156, "SYS_inotify_rm_watch"), (157, "SYS_statfs"), (158, "SYS_fstatfs"), (159, "SYS_umount"), (160, "SYS_sched_set_affinity"), (161, "SYS_sched_get_affinity"), (162, "SYS_getdomainname"), (163, "SYS_setdomainname"), (165, "SYS_quotactl"), (166, "SYS_set_tid_address"), (167, "SYS_mount"), (168, "SYS_ustat"), (169, "SYS_setxattr"), (170, "SYS_lsetxattr"), (171, "SYS_fsetxattr"), (172, "SYS_getxattr"), (173, "SYS_lgetxattr"), (174, "SYS_getdents"), (175, "SYS_setsid"), (176, "SYS_fchdir"), (177, "SYS_fgetxattr"), (178, "SYS_listxattr"), (179, "SYS_llistxattr"), (180, "SYS_flistxattr"), (181, "SYS_removexattr"), (182, "SYS_lremovexattr"), (183, "SYS_sigpending"), (184, "SYS_query_module"), (185, "SYS_setpgid"), (186, "SYS_fremovexattr"), (187, "SYS_tkill"), (188, "SYS_exit_group"), (189, "SYS_uname"), (190, "SYS_init_module"), (191, "SYS_personality"), (192, "SYS_remap_file_pages"), (193, "SYS_epoll_create"), (194, "SYS_epoll_ctl"), (195, "SYS_epoll_wait"), (196, "SYS_ioprio_set"), (197, "SYS_getppid"), (198, "SYS_sigaction"), (199, "SYS_sgetmask"), (200, "SYS_ssetmask"), (201, "SYS_sigsuspend"), (202, "SYS_oldlstat"), (203, "SYS_uselib"), (204, "SYS_readdir"), (205, "SYS_readahead"), (206, "SYS_socketcall"), (207, "SYS_syslog"), (208, "SYS_lookup_dcookie"), (209, "SYS_fadvise64"), (210, "SYS_fadvise64_64"), (211, "SYS_tgkill"), (212, "SYS_waitpid"), (213, "SYS_swapoff"), (214, "SYS_sysinfo"), (215, "SYS_ipc"), (216, "SYS_sigreturn"), (217, "SYS_clone"), (218, "SYS_ioprio_get"), (219, "SYS_adjtimex"), (220, "SYS_sigprocmask"), (221, "SYS_create_module"), (222, "SYS_delete_module"), (223, "SYS_get_kernel_syms"), (224, "SYS_getpgid"), (225, "SYS_bdflush"), (226, "SYS_sysfs"), (227, "SYS_afs_syscall"), (228, "SYS_setfsuid"), (229, "SYS_setfsgid"), (230, "SYS__newselect"), (231, "SYS_time"), (232, "SYS_splice"), (233, "SYS_stime"), (234, "SYS_statfs64"), (235, "SYS_fstatfs64"), (236, "SYS__llseek"), (237, "SYS_mlock"), (238, "SYS_munlock"), (239, "SYS_mlockall"), (240, "SYS_munlockall"), (241, "SYS_sched_setparam"), (242, "SYS_sched_getparam"), (243, "SYS_sched_setscheduler"), (244, "SYS_sched_getscheduler"), (245, "SYS_sched_yield"), (246, "SYS_sched_get_priority_max"), (247, "SYS_sched_get_priority_min"), (248, "SYS_sched_rr_get_interval"), (249, "SYS_nanosleep"), (250, "SYS_mremap"), (251, "SYS__sysctl"), (252, "SYS_getsid"), (253, "SYS_fdatasync"), (254, "SYS_nfsservctl"), (255, "SYS_sync_file_range"), (256, "SYS_clock_settime"), (257, "SYS_clock_gettime"), (258, "SYS_clock_getres"), (259, "SYS_clock_nanosleep"), (260, "SYS_sched_getaffinity"), (261, "SYS_sched_setaffinity"), (262, "SYS_timer_settime"), (263, "SYS_timer_gettime"), (264, "SYS_timer_getoverrun"), (265, "SYS_timer_delete"), (266, "SYS_timer_create"), (267, "SYS_vserver"), (268, "SYS_io_setup"), (269, "SYS_io_destroy"), (270, "SYS_io_submit"), (271, "SYS_io_cancel"), (272, "SYS_io_getevents"), (273, "SYS_mq_open"), (274, "SYS_mq_unlink"), (275, "SYS_mq_timedsend"), (276, "SYS_mq_timedreceive"), (277, "SYS_mq_notify"), (278, "SYS_mq_getsetattr"), (279, "SYS_waitid"), (280, "SYS_tee"), (281, "SYS_add_key"), (282, "SYS_request_key"), (283, "SYS_keyctl"), (284, "SYS_openat"), (285, "SYS_mkdirat"), (286, "SYS_mknodat"), (287, "SYS_fchownat"), (288, "SYS_futimesat"), (289, "SYS_fstatat64"), (290, "SYS_unlinkat"), (291, "SYS_renameat"), (292, "SYS_linkat"), (293, "SYS_symlinkat"), (294, "SYS_readlinkat"), (295, "SYS_fchmodat"), (296, "SYS_faccessat"), (297, "SYS_pselect6"), (298, "SYS_ppoll"), (299, "SYS_unshare"), (300, "SYS_set_robust_list"), (301, "SYS_get_robust_list"), (302, "SYS_migrate_pages"), (303, "SYS_mbind"), (304, "SYS_get_mempolicy"), (305, "SYS_set_mempolicy"), (306, "SYS_kexec_load"), (307, "SYS_move_pages"), (308, "SYS_getcpu"), (309, "SYS_epoll_pwait"), (310, "SYS_utimensat"), (311, "SYS_signalfd"), (312, "SYS_timerfd_create"), (313, "SYS_eventfd"), (314, "SYS_fallocate"), (315, "SYS_timerfd_settime"), (316, "SYS_timerfd_gettime"), (317, "SYS_signalfd4"), (318, "SYS_eventfd2"), (319, "SYS_epoll_create1"), (320, "SYS_dup3"), (321, "SYS_pipe2"), (322, "SYS_inotify_init1"), (323, "SYS_accept4"), (324, "SYS_preadv"), (325, "SYS_pwritev"), (326, "SYS_rt_tgsigqueueinfo"), (327, "SYS_perf_event_open"), (328, "SYS_recvmmsg")],
'type': TYPE_EQUAL,
},
'sparc64': {
'flags': [(0, "SYS_restart_syscall"), (1, "SYS_exit"), (2, "SYS_fork"), (3, "SYS_read"), (4, "SYS_write"), (5, "SYS_open"), (6, "SYS_close"), (7, "SYS_wait4"), (8, "SYS_creat"), (9, "SYS_link"), (10, "SYS_unlink"), (11, "SYS_execv"), (12, "SYS_chdir"), (14, "SYS_mknod"), (15, "SYS_chmod"), (16, "SYS_lchown"), (17, "SYS_brk"), (18, "SYS_perfctr"), (19, "SYS_lseek"), (20, "SYS_getpid"), (21, "SYS_capget"), (22, "SYS_capset"), (23, "SYS_setuid"), (24, "SYS_getuid"), (25, "SYS_vmsplice"), (26, "SYS_ptrace"), (27, "SYS_alarm"), (28, "SYS_sigaltstack"), (29, "SYS_pause"), (30, "SYS_utime"), (33, "SYS_access"), (34, "SYS_nice"), (36, "SYS_sync"), (37, "SYS_kill"), (38, "SYS_stat"), (39, "SYS_sendfile"), (40, "SYS_lstat"), (41, "SYS_dup"), (42, "SYS_pipe"), (43, "SYS_times"), (45, "SYS_umount2"), (46, "SYS_setgid"), (47, "SYS_getgid"), (48, "SYS_signal"), (49, "SYS_geteuid"), (50, "SYS_getegid"), (51, "SYS_acct"), (52, "SYS_memory_ordering"), (54, "SYS_ioctl"), (55, "SYS_reboot"), (57, "SYS_symlink"), (58, "SYS_readlink"), (59, "SYS_execve"), (60, "SYS_umask"), (61, "SYS_chroot"), (62, "SYS_fstat"), (63, "SYS_fstat64"), (64, "SYS_getpagesize"), (65, "SYS_msync"), (66, "SYS_vfork"), (67, "SYS_pread64"), (68, "SYS_pwrite64"), (71, "SYS_mmap"), (73, "SYS_munmap"), (74, "SYS_mprotect"), (75, "SYS_madvise"), (76, "SYS_vhangup"), (78, "SYS_mincore"), (79, "SYS_getgroups"), (80, "SYS_setgroups"), (81, "SYS_getpgrp"), (83, "SYS_setitimer"), (85, "SYS_swapon"), (86, "SYS_getitimer"), (88, "SYS_sethostname"), (90, "SYS_dup2"), (92, "SYS_fcntl"), (93, "SYS_select"), (95, "SYS_fsync"), (96, "SYS_setpriority"), (97, "SYS_socket"), (98, "SYS_connect"), (99, "SYS_accept"), (100, "SYS_getpriority"), (101, "SYS_rt_sigreturn"), (102, "SYS_rt_sigaction"), (103, "SYS_rt_sigprocmask"), (104, "SYS_rt_sigpending"), (105, "SYS_rt_sigtimedwait"), (106, "SYS_rt_sigqueueinfo"), (107, "SYS_rt_sigsuspend"), (108, "SYS_setresuid"), (109, "SYS_getresuid"), (110, "SYS_setresgid"), (111, "SYS_getresgid"), (113, "SYS_recvmsg"), (114, "SYS_sendmsg"), (116, "SYS_gettimeofday"), (117, "SYS_getrusage"), (118, "SYS_getsockopt"), (119, "SYS_getcwd"), (120, "SYS_readv"), (121, "SYS_writev"), (122, "SYS_settimeofday"), (123, "SYS_fchown"), (124, "SYS_fchmod"), (125, "SYS_recvfrom"), (126, "SYS_setreuid"), (127, "SYS_setregid"), (128, "SYS_rename"), (129, "SYS_truncate"), (130, "SYS_ftruncate"), (131, "SYS_flock"), (132, "SYS_lstat64"), (133, "SYS_sendto"), (134, "SYS_shutdown"), (135, "SYS_socketpair"), (136, "SYS_mkdir"), (137, "SYS_rmdir"), (138, "SYS_utimes"), (139, "SYS_stat64"), (140, "SYS_sendfile64"), (141, "SYS_getpeername"), (142, "SYS_futex"), (143, "SYS_gettid"), (144, "SYS_getrlimit"), (145, "SYS_setrlimit"), (146, "SYS_pivot_root"), (147, "SYS_prctl"), (148, "SYS_pciconfig_read"), (149, "SYS_pciconfig_write"), (150, "SYS_getsockname"), (151, "SYS_inotify_init"), (152, "SYS_inotify_add_watch"), (153, "SYS_poll"), (154, "SYS_getdents64"), (156, "SYS_inotify_rm_watch"), (157, "SYS_statfs"), (158, "SYS_fstatfs"), (159, "SYS_umount"), (160, "SYS_sched_set_affinity"), (161, "SYS_sched_get_affinity"), (162, "SYS_getdomainname"), (163, "SYS_setdomainname"), (164, "SYS_utrap_install"), (165, "SYS_quotactl"), (166, "SYS_set_tid_address"), (167, "SYS_mount"), (168, "SYS_ustat"), (169, "SYS_setxattr"), (170, "SYS_lsetxattr"), (171, "SYS_fsetxattr"), (172, "SYS_getxattr"), (173, "SYS_lgetxattr"), (174, "SYS_getdents"), (175, "SYS_setsid"), (176, "SYS_fchdir"), (177, "SYS_fgetxattr"), (178, "SYS_listxattr"), (179, "SYS_llistxattr"), (180, "SYS_flistxattr"), (181, "SYS_removexattr"), (182, "SYS_lremovexattr"), (183, "SYS_sigpending"), (184, "SYS_query_module"), (185, "SYS_setpgid"), (186, "SYS_fremovexattr"), (187, "SYS_tkill"), (188, "SYS_exit_group"), (189, "SYS_uname"), (190, "SYS_init_module"), (191, "SYS_personality"), (192, "SYS_remap_file_pages"), (193, "SYS_epoll_create"), (194, "SYS_epoll_ctl"), (195, "SYS_epoll_wait"), (196, "SYS_ioprio_set"), (197, "SYS_getppid"), (198, "SYS_sigaction"), (199, "SYS_sgetmask"), (200, "SYS_ssetmask"), (201, "SYS_sigsuspend"), (202, "SYS_oldlstat"), (203, "SYS_uselib"), (204, "SYS_readdir"), (205, "SYS_readahead"), (206, "SYS_socketcall"), (207, "SYS_syslog"), (208, "SYS_lookup_dcookie"), (209, "SYS_fadvise64"), (210, "SYS_fadvise64_64"), (211, "SYS_tgkill"), (212, "SYS_waitpid"), (213, "SYS_swapoff"), (214, "SYS_sysinfo"), (215, "SYS_ipc"), (216, "SYS_sigreturn"), (217, "SYS_clone"), (218, "SYS_ioprio_get"), (219, "SYS_adjtimex"), (220, "SYS_sigprocmask"), (221, "SYS_create_module"), (222, "SYS_delete_module"), (223, "SYS_get_kernel_syms"), (224, "SYS_getpgid"), (225, "SYS_bdflush"), (226, "SYS_sysfs"), (227, "SYS_afs_syscall"), (228, "SYS_setfsuid"), (229, "SYS_setfsgid"), (230, "SYS__newselect"), (232, "SYS_splice"), (233, "SYS_stime"), (234, "SYS_statfs64"), (235, "SYS_fstatfs64"), (236, "SYS__llseek"), (237, "SYS_mlock"), (238, "SYS_munlock"), (239, "SYS_mlockall"), (240, "SYS_munlockall"), (241, "SYS_sched_setparam"), (242, "SYS_sched_getparam"), (243, "SYS_sched_setscheduler"), (244, "SYS_sched_getscheduler"), (245, "SYS_sched_yield"), (246, "SYS_sched_get_priority_max"), (247, "SYS_sched_get_priority_min"), (248, "SYS_sched_rr_get_interval"), (249, "SYS_nanosleep"), (250, "SYS_mremap"), (251, "SYS__sysctl"), (252, "SYS_getsid"), (253, "SYS_fdatasync"), (254, "SYS_nfsservctl"), (255, "SYS_sync_file_range"), (256, "SYS_clock_settime"), (257, "SYS_clock_gettime"), (258, "SYS_clock_getres"), (259, "SYS_clock_nanosleep"), (260, "SYS_sched_getaffinity"), (261, "SYS_sched_setaffinity"), (262, "SYS_timer_settime"), (263, "SYS_timer_gettime"), (264, "SYS_timer_getoverrun"), (265, "SYS_timer_delete"), (266, "SYS_timer_create"), (267, "SYS_vserver"), (268, "SYS_io_setup"), (269, "SYS_io_destroy"), (270, "SYS_io_submit"), (271, "SYS_io_cancel"), (272, "SYS_io_getevents"), (273, "SYS_mq_open"), (274, "SYS_mq_unlink"), (275, "SYS_mq_timedsend"), (276, "SYS_mq_timedreceive"), (277, "SYS_mq_notify"), (278, "SYS_mq_getsetattr"), (279, "SYS_waitid"), (280, "SYS_tee"), (281, "SYS_add_key"), (282, "SYS_request_key"), (283, "SYS_keyctl"), (284, "SYS_openat"), (285, "SYS_mkdirat"), (286, "SYS_mknodat"), (287, "SYS_fchownat"), (288, "SYS_futimesat"), (289, "SYS_fstatat64"), (290, "SYS_unlinkat"), (291, "SYS_renameat"), (292, "SYS_linkat"), (293, "SYS_symlinkat"), (294, "SYS_readlinkat"), (295, "SYS_fchmodat"), (296, "SYS_faccessat"), (297, "SYS_pselect6"), (298, "SYS_ppoll"), (299, "SYS_unshare"), (300, "SYS_set_robust_list"), (301, "SYS_get_robust_list"), (302, "SYS_migrate_pages"), (303, "SYS_mbind"), (304, "SYS_get_mempolicy"), (305, "SYS_set_mempolicy"), (306, "SYS_kexec_load"), (307, "SYS_move_pages"), (308, "SYS_getcpu"), (309, "SYS_epoll_pwait"), (310, "SYS_utimensat"), (311, "SYS_signalfd"), (312, "SYS_timerfd_create"), (313, "SYS_eventfd"), (314, "SYS_fallocate"), (315, "SYS_timerfd_settime"), (316, "SYS_timerfd_gettime"), (317, "SYS_signalfd4"), (318, "SYS_eventfd2"), (319, "SYS_epoll_create1"), (320, "SYS_dup3"), (321, "SYS_pipe2"), (322, "SYS_inotify_init1"), (323, "SYS_accept4"), (324, "SYS_preadv"), (325, "SYS_pwritev"), (326, "SYS_rt_tgsigqueueinfo"), (327, "SYS_perf_event_open"), (328, "SYS_recvmmsg")],
'type': TYPE_EQUAL,
},
'mips-o32': {
'flags': [(4000, "SYS_syscall"), (4001, "SYS_exit"), (4002, "SYS_fork"), (4003, "SYS_read"), (4004, "SYS_write"), (4005, "SYS_open"), (4006, "SYS_close"), (4007, "SYS_waitpid"), (4008, "SYS_creat"), (4009, "SYS_link"), (4010, "SYS_unlink"), (4011, "SYS_execve"), (4012, "SYS_chdir"), (4013, "SYS_time"), (4014, "SYS_mknod"), (4015, "SYS_chmod"), (4016, "SYS_lchown"), (4017, "SYS_break"), (4019, "SYS_lseek"), (4020, "SYS_getpid"), (4021, "SYS_mount"), (4022, "SYS_umount"), (4023, "SYS_setuid"), (4024, "SYS_getuid"), (4025, "SYS_stime"), (4026, "SYS_ptrace"), (4027, "SYS_alarm"), (4029, "SYS_pause"), (4030, "SYS_utime"), (4031, "SYS_stty"), (4032, "SYS_gtty"), (4033, "SYS_access"), (4034, "SYS_nice"), (4035, "SYS_ftime"), (4036, "SYS_sync"), (4037, "SYS_kill"), (4038, "SYS_rename"), (4039, "SYS_mkdir"), (4040, "SYS_rmdir"), (4041, "SYS_dup"), (4042, "SYS_pipe"), (4043, "SYS_times"), (4044, "SYS_prof"), (4045, "SYS_brk"), (4046, "SYS_setgid"), (4047, "SYS_getgid"), (4048, "SYS_signal"), (4049, "SYS_geteuid"), (4050, "SYS_getegid"), (4051, "SYS_acct"), (4052, "SYS_umount2"), (4053, "SYS_lock"), (4054, "SYS_ioctl"), (4055, "SYS_fcntl"), (4056, "SYS_mpx"), (4057, "SYS_setpgid"), (4058, "SYS_ulimit"), (4060, "SYS_umask"), (4061, "SYS_chroot"), (4062, "SYS_ustat"), (4063, "SYS_dup2"), (4064, "SYS_getppid"), (4065, "SYS_getpgrp"), (4066, "SYS_setsid"), (4067, "SYS_sigaction"), (4068, "SYS_sgetmask"), (4069, "SYS_ssetmask"), (4070, "SYS_setreuid"), (4071, "SYS_setregid"), (4072, "SYS_sigsuspend"), (4073, "SYS_sigpending"), (4074, "SYS_sethostname"), (4075, "SYS_setrlimit"), (4076, "SYS_getrlimit"), (4077, "SYS_getrusage"), (4078, "SYS_gettimeofday"), (4079, "SYS_settimeofday"), (4080, "SYS_getgroups"), (4081, "SYS_setgroups"), (4083, "SYS_symlink"), (4085, "SYS_readlink"), (4086, "SYS_uselib"), (4087, "SYS_swapon"), (4088, "SYS_reboot"), (4089, "SYS_readdir"), (4090, "SYS_mmap"), (4091, "SYS_munmap"), (4092, "SYS_truncate"), (4093, "SYS_ftruncate"), (4094, "SYS_fchmod"), (4095, "SYS_fchown"), (4096, "SYS_getpriority"), (4097, "SYS_setpriority"), (4098, "SYS_profil"), (4099, "SYS_statfs"), (4100, "SYS_fstatfs"), (4101, "SYS_ioperm"), (4102, "SYS_socketcall"), (4103, "SYS_syslog"), (4104, "SYS_setitimer"), (4105, "SYS_getitimer"), (4106, "SYS_stat"), (4107, "SYS_lstat"), (4108, "SYS_fstat"), (4110, "SYS_iopl"), (4111, "SYS_vhangup"), (4112, "SYS_idle"), (4113, "SYS_vm86"), (4114, "SYS_wait4"), (4115, "SYS_swapoff"), (4116, "SYS_sysinfo"), (4117, "SYS_ipc"), (4118, "SYS_fsync"), (4119, "SYS_sigreturn"), (4120, "SYS_clone"), (4121, "SYS_setdomainname"), (4122, "SYS_uname"), (4123, "SYS_modify_ldt"), (4124, "SYS_adjtimex"), (4125, "SYS_mprotect"), (4126, "SYS_sigprocmask"), (4127, "SYS_create_module"), (4128, "SYS_init_module"), (4129, "SYS_delete_module"), (4130, "SYS_get_kernel_syms"), (4131, "SYS_quotactl"), (4132, "SYS_getpgid"), (4133, "SYS_fchdir"), (4134, "SYS_bdflush"), (4135, "SYS_sysfs"), (4136, "SYS_personality"), (4137, "SYS_afs_syscall"), (4138, "SYS_setfsuid"), (4139, "SYS_setfsgid"), (4140, "SYS__llseek"), (4141, "SYS_getdents"), (4142, "SYS__newselect"), (4143, "SYS_flock"), (4144, "SYS_msync"), (4145, "SYS_readv"), (4146, "SYS_writev"), (4147, "SYS_cacheflush"), (4148, "SYS_cachectl"), (4149, "SYS_sysmips"), (4151, "SYS_getsid"), (4152, "SYS_fdatasync"), (4153, "SYS__sysctl"), (4154, "SYS_mlock"), (4155, "SYS_munlock"), (4156, "SYS_mlockall"), (4157, "SYS_munlockall"), (4158, "SYS_sched_setparam"), (4159, "SYS_sched_getparam"), (4160, "SYS_sched_setscheduler"), (4161, "SYS_sched_getscheduler"), (4162, "SYS_sched_yield"), (4163, "SYS_sched_get_priority_max"), (4164, "SYS_sched_get_priority_min"), (4165, "SYS_sched_rr_get_interval"), (4166, "SYS_nanosleep"), (4167, "SYS_mremap"), (4168, "SYS_accept"), (4169, "SYS_bind"), (4170, "SYS_connect"), (4171, "SYS_getpeername"), (4172, "SYS_getsockname"), (4173, "SYS_getsockopt"), (4174, "SYS_listen"), (4175, "SYS_recv"), (4176, "SYS_recvfrom"), (4177, "SYS_recvmsg"), (4178, "SYS_send"), (4179, "SYS_sendmsg"), (4180, "SYS_sendto"), (4181, "SYS_setsockopt"), (4182, "SYS_shutdown"), (4183, "SYS_socket"), (4184, "SYS_socketpair"), (4185, "SYS_setresuid"), (4186, "SYS_getresuid"), (4187, "SYS_query_module"), (4188, "SYS_poll"), (4189, "SYS_nfsservctl"), (4190, "SYS_setresgid"), (4191, "SYS_getresgid"), (4192, "SYS_prctl"), (4193, "SYS_rt_sigreturn"), (4194, "SYS_rt_sigaction"), (4195, "SYS_rt_sigprocmask"), (4196, "SYS_rt_sigpending"), (4197, "SYS_rt_sigtimedwait"), (4198, "SYS_rt_sigqueueinfo"), (4199, "SYS_rt_sigsuspend"), (4200, "SYS_pread64"), (4201, "SYS_pwrite64"), (4202, "SYS_chown"), (4203, "SYS_getcwd"), (4204, "SYS_capget"), (4205, "SYS_capset"), (4206, "SYS_sigaltstack"), (4207, "SYS_sendfile"), (4208, "SYS_getpmsg"), (4209, "SYS_putpmsg"), (4210, "SYS_mmap2"), (4211, "SYS_truncate64"), (4212, "SYS_ftruncate64"), (4213, "SYS_stat64"), (4214, "SYS_lstat64"), (4215, "SYS_fstat64"), (4216, "SYS_pivot_root"), (4217, "SYS_mincore"), (4218, "SYS_madvise"), (4219, "SYS_getdents64"), (4220, "SYS_fcntl64"), (4222, "SYS_gettid"), (4223, "SYS_readahead"), (4224, "SYS_setxattr"), (4225, "SYS_lsetxattr"), (4226, "SYS_fsetxattr"), (4227, "SYS_getxattr"), (4228, "SYS_lgetxattr"), (4229, "SYS_fgetxattr"), (4230, "SYS_listxattr"), (4231, "SYS_llistxattr"), (4232, "SYS_flistxattr"), (4233, "SYS_removexattr"), (4234, "SYS_lremovexattr"), (4235, "SYS_fremovexattr"), (4236, "SYS_tkill"), (4237, "SYS_sendfile64"), (4238, "SYS_futex"), (4239, "SYS_sched_setaffinity"), (4240, "SYS_sched_getaffinity"), (4241, "SYS_io_setup"), (4242, "SYS_io_destroy"), (4243, "SYS_io_getevents"), (4244, "SYS_io_submit"), (4245, "SYS_io_cancel"), (4246, "SYS_exit_group"), (4247, "SYS_lookup_dcookie"), (4248, "SYS_epoll_create"), (4249, "SYS_epoll_ctl"), (4250, "SYS_epoll_wait"), (4251, "SYS_remap_file_pages"), (4252, "SYS_set_tid_address"), (4253, "SYS_restart_syscall"), (4254, "SYS_fadvise64"), (4255, "SYS_statfs64"), (4256, "SYS_fstatfs64"), (4257, "SYS_timer_create"), (4258, "SYS_timer_settime"), (4259, "SYS_timer_gettime"), (4260, "SYS_timer_getoverrun"), (4261, "SYS_timer_delete"), (4262, "SYS_clock_settime"), (4263, "SYS_clock_gettime"), (4264, "SYS_clock_getres"), (4265, "SYS_clock_nanosleep"), (4266, "SYS_tgkill"), (4267, "SYS_utimes"), (4268, "SYS_mbind"), (4269, "SYS_get_mempolicy"), (4270, "SYS_set_mempolicy"), (4271, "SYS_mq_open"), (4272, "SYS_mq_unlink"), (4273, "SYS_mq_timedsend"), (4274, "SYS_mq_timedreceive"), (4275, "SYS_mq_notify"), (4276, "SYS_mq_getsetattr"), (4277, "SYS_vserver"), (4278, "SYS_waitid"), (4280, "SYS_add_key"), (4281, "SYS_request_key"), (4282, "SYS_keyctl"), (4283, "SYS_set_thread_area"), (4284, "SYS_inotify_init"), (4285, "SYS_inotify_add_watch"), (4286, "SYS_inotify_rm_watch"), (4287, "SYS_migrate_pages"), (4288, "SYS_openat"), (4289, "SYS_mkdirat"), (4290, "SYS_mknodat"), (4291, "SYS_fchownat"), (4292, "SYS_futimesat"), (4293, "SYS_fstatat64"), (4294, "SYS_unlinkat"), (4295, "SYS_renameat"), (4296, "SYS_linkat"), (4297, "SYS_symlinkat"), (4298, "SYS_readlinkat"), (4299, "SYS_fchmodat"), (4300, "SYS_faccessat"), (4301, "SYS_pselect6"), (4302, "SYS_ppoll"), (4303, "SYS_unshare"), (4304, "SYS_splice"), (4305, "SYS_sync_file_range"), (4306, "SYS_tee"), (4307, "SYS_vmsplice"), (4308, "SYS_move_pages"), (4309, "SYS_set_robust_list"), (4310, "SYS_get_robust_list"), (4311, "SYS_kexec_load"), (4312, "SYS_getcpu"), (4313, "SYS_epoll_pwait"), (4314, "SYS_ioprio_set"), (4315, "SYS_ioprio_get"), (4316, "SYS_utimensat"), (4317, "SYS_signalfd"), (4318, "SYS_timerfd"), (4319, "SYS_eventfd"), (4320, "SYS_fallocate"), (4321, "SYS_timerfd_create"), (4322, "SYS_timerfd_gettime"), (4323, "SYS_timerfd_settime"), (4324, "SYS_signalfd4"), (4325, "SYS_eventfd2"), (4326, "SYS_epoll_create1"), (4327, "SYS_dup3"), (4328, "SYS_pipe2"), (4329, "SYS_inotify_init1"), (4330, "SYS_preadv"), (4331, "SYS_pwritev"), (4332, "SYS_rt_tgsigqueueinfo"), (4333, "SYS_perf_event_open"), (4334, "SYS_accept4"), (4335, "SYS_recvmmsg"), (4336, "SYS_fanotify_init"), (4337, "SYS_fanotify_mark"), (4338, "SYS_prlimit64")],
'type': TYPE_EQUAL,
},
'mips-n32': {
'flags': [(6000, "SYS_read"), (6001, "SYS_write"), (6002, "SYS_open"), (6003, "SYS_close"), (6004, "SYS_stat"), (6005, "SYS_fstat"), (6006, "SYS_lstat"), (6007, "SYS_poll"), (6008, "SYS_lseek"), (6009, "SYS_mmap"), (6010, "SYS_mprotect"), (6011, "SYS_munmap"), (6012, "SYS_brk"), (6013, "SYS_rt_sigaction"), (6014, "SYS_rt_sigprocmask"), (6015, "SYS_ioctl"), (6016, "SYS_pread64"), (6017, "SYS_pwrite64"), (6018, "SYS_readv"), (6019, "SYS_writev"), (6020, "SYS_access"), (6021, "SYS_pipe"), (6022, "SYS__newselect"), (6023, "SYS_sched_yield"), (6024, "SYS_mremap"), (6025, "SYS_msync"), (6026, "SYS_mincore"), (6027, "SYS_madvise"), (6028, "SYS_shmget"), (6029, "SYS_shmat"), (6030, "SYS_shmctl"), (6031, "SYS_dup"), (6032, "SYS_dup2"), (6033, "SYS_pause"), (6034, "SYS_nanosleep"), (6035, "SYS_getitimer"), (6036, "SYS_setitimer"), (6037, "SYS_alarm"), (6038, "SYS_getpid"), (6039, "SYS_sendfile"), (6040, "SYS_socket"), (6041, "SYS_connect"), (6042, "SYS_accept"), (6043, "SYS_sendto"), (6044, "SYS_recvfrom"), (6045, "SYS_sendmsg"), (6046, "SYS_recvmsg"), (6047, "SYS_shutdown"), (6048, "SYS_bind"), (6049, "SYS_listen"), (6050, "SYS_getsockname"), (6051, "SYS_getpeername"), (6052, "SYS_socketpair"), (6053, "SYS_setsockopt"), (6054, "SYS_getsockopt"), (6055, "SYS_clone"), (6056, "SYS_fork"), (6057, "SYS_execve"), (6058, "SYS_exit"), (6059, "SYS_wait4"), (6060, "SYS_kill"), (6061, "SYS_uname"), (6062, "SYS_semget"), (6063, "SYS_semop"), (6064, "SYS_semctl"), (6065, "SYS_shmdt"), (6066, "SYS_msgget"), (6067, "SYS_msgsnd"), (6068, "SYS_msgrcv"), (6069, "SYS_msgctl"), (6070, "SYS_fcntl"), (6071, "SYS_flock"), (6072, "SYS_fsync"), (6073, "SYS_fdatasync"), (6074, "SYS_truncate"), (6075, "SYS_ftruncate"), (6076, "SYS_getdents"), (6077, "SYS_getcwd"), (6078, "SYS_chdir"), (6079, "SYS_fchdir"), (6080, "SYS_rename"), (6081, "SYS_mkdir"), (6082, "SYS_rmdir"), (6083, "SYS_creat"), (6084, "SYS_link"), (6085, "SYS_unlink"), (6086, "SYS_symlink"), (6087, "SYS_readlink"), (6088, "SYS_chmod"), (6089, "SYS_fchmod"), (6090, "SYS_chown"), (6091, "SYS_fchown"), (6092, "SYS_lchown"), (6093, "SYS_umask"), (6094, "SYS_gettimeofday"), (6095, "SYS_getrlimit"), (6096, "SYS_getrusage"), (6097, "SYS_sysinfo"), (6098, "SYS_times"), (6099, "SYS_ptrace"), (6100, "SYS_getuid"), (6101, "SYS_syslog"), (6102, "SYS_getgid"), (6103, "SYS_setuid"), (6104, "SYS_setgid"), (6105, "SYS_geteuid"), (6106, "SYS_getegid"), (6107, "SYS_setpgid"), (6108, "SYS_getppid"), (6109, "SYS_getpgrp"), (6110, "SYS_setsid"), (6111, "SYS_setreuid"), (6112, "SYS_setregid"), (6113, "SYS_getgroups"), (6114, "SYS_setgroups"), (6115, "SYS_setresuid"), (6116, "SYS_getresuid"), (6117, "SYS_setresgid"), (6118, "SYS_getresgid"), (6119, "SYS_getpgid"), (6120, "SYS_setfsuid"), (6121, "SYS_setfsgid"), (6122, "SYS_getsid"), (6123, "SYS_capget"), (6124, "SYS_capset"), (6125, "SYS_rt_sigpending"), (6126, "SYS_rt_sigtimedwait"), (6127, "SYS_rt_sigqueueinfo"), (6128, "SYS_rt_sigsuspend"), (6129, "SYS_sigaltstack"), (6130, "SYS_utime"), (6131, "SYS_mknod"), (6132, "SYS_personality"), (6133, "SYS_ustat"), (6134, "SYS_statfs"), (6135, "SYS_fstatfs"), (6136, "SYS_sysfs"), (6137, "SYS_getpriority"), (6138, "SYS_setpriority"), (6139, "SYS_sched_setparam"), (6140, "SYS_sched_getparam"), (6141, "SYS_sched_setscheduler"), (6142, "SYS_sched_getscheduler"), (6143, "SYS_sched_get_priority_max"), (6144, "SYS_sched_get_priority_min"), (6145, "SYS_sched_rr_get_interval"), (6146, "SYS_mlock"), (6147, "SYS_munlock"), (6148, "SYS_mlockall"), (6149, "SYS_munlockall"), (6150, "SYS_vhangup"), (6151, "SYS_pivot_root"), (6152, "SYS__sysctl"), (6153, "SYS_prctl"), (6154, "SYS_adjtimex"), (6155, "SYS_setrlimit"), (6156, "SYS_chroot"), (6157, "SYS_sync"), (6158, "SYS_acct"), (6159, "SYS_settimeofday"), (6160, "SYS_mount"), (6161, "SYS_umount2"), (6162, "SYS_swapon"), (6163, "SYS_swapoff"), (6164, "SYS_reboot"), (6165, "SYS_sethostname"), (6166, "SYS_setdomainname"), (6167, "SYS_create_module"), (6168, "SYS_init_module"), (6169, "SYS_delete_module"), (6170, "SYS_get_kernel_syms"), (6171, "SYS_query_module"), (6172, "SYS_quotactl"), (6173, "SYS_nfsservctl"), (6174, "SYS_getpmsg"), (6175, "SYS_putpmsg"), (6176, "SYS_afs_syscall"), (6177, "SYS_reserved177"), (6178, "SYS_gettid"), (6179, "SYS_readahead"), (6180, "SYS_setxattr"), (6181, "SYS_lsetxattr"), (6182, "SYS_fsetxattr"), (6183, "SYS_getxattr"), (6184, "SYS_lgetxattr"), (6185, "SYS_fgetxattr"), (6186, "SYS_listxattr"), (6187, "SYS_llistxattr"), (6188, "SYS_flistxattr"), (6189, "SYS_removexattr"), (6190, "SYS_lremovexattr"), (6191, "SYS_fremovexattr"), (6192, "SYS_tkill"), (6193, "SYS_reserved193"), (6194, "SYS_futex"), (6195, "SYS_sched_setaffinity"), (6196, "SYS_sched_getaffinity"), (6197, "SYS_cacheflush"), (6198, "SYS_cachectl"), (6199, "SYS_sysmips"), (6200, "SYS_io_setup"), (6201, "SYS_io_destroy"), (6202, "SYS_io_getevents"), (6203, "SYS_io_submit"), (6204, "SYS_io_cancel"), (6205, "SYS_exit_group"), (6206, "SYS_lookup_dcookie"), (6207, "SYS_epoll_create"), (6208, "SYS_epoll_ctl"), (6209, "SYS_epoll_wait"), (6210, "SYS_remap_file_pages"), (6211, "SYS_rt_sigreturn"), (6212, "SYS_fcntl64"), (6213, "SYS_set_tid_address"), (6214, "SYS_restart_syscall"), (6215, "SYS_semtimedop"), (6216, "SYS_fadvise64"), (6217, "SYS_statfs64"), (6218, "SYS_fstatfs64"), (6219, "SYS_sendfile64"), (6220, "SYS_timer_create"), (6221, "SYS_timer_settime"), (6222, "SYS_timer_gettime"), (6223, "SYS_timer_getoverrun"), (6224, "SYS_timer_delete"), (6225, "SYS_clock_settime"), (6226, "SYS_clock_gettime"), (6227, "SYS_clock_getres"), (6228, "SYS_clock_nanosleep"), (6229, "SYS_tgkill"), (6230, "SYS_utimes"), (6231, "SYS_mbind"), (6232, "SYS_get_mempolicy"), (6233, "SYS_set_mempolicy"), (6234, "SYS_mq_open"), (6235, "SYS_mq_unlink"), (6236, "SYS_mq_timedsend"), (6237, "SYS_mq_timedreceive"), (6238, "SYS_mq_notify"), (6239, "SYS_mq_getsetattr"), (6240, "SYS_vserver"), (6241, "SYS_waitid"), (6243, "SYS_add_key"), (6244, "SYS_request_key"), (6245, "SYS_keyctl"), (6246, "SYS_set_thread_area"), (6247, "SYS_inotify_init"), (6248, "SYS_inotify_add_watch"), (6249, "SYS_inotify_rm_watch"), (6250, "SYS_migrate_pages"), (6251, "SYS_openat"), (6252, "SYS_mkdirat"), (6253, "SYS_mknodat"), (6254, "SYS_fchownat"), (6255, "SYS_futimesat"), (6256, "SYS_newfstatat"), (6257, "SYS_unlinkat"), (6258, "SYS_renameat"), (6259, "SYS_linkat"), (6260, "SYS_symlinkat"), (6261, "SYS_readlinkat"), (6262, "SYS_fchmodat"), (6263, "SYS_faccessat"), (6264, "SYS_pselect6"), (6265, "SYS_ppoll"), (6266, "SYS_unshare"), (6267, "SYS_splice"), (6268, "SYS_sync_file_range"), (6269, "SYS_tee"), (6270, "SYS_vmsplice"), (6271, "SYS_move_pages"), (6272, "SYS_set_robust_list"), (6273, "SYS_get_robust_list"), (6274, "SYS_kexec_load"), (6275, "SYS_getcpu"), (6276, "SYS_epoll_pwait"), (6277, "SYS_ioprio_set"), (6278, "SYS_ioprio_get"), (6279, "SYS_utimensat"), (6280, "SYS_signalfd"), (6281, "SYS_timerfd"), (6282, "SYS_eventfd"), (6283, "SYS_fallocate"), (6284, "SYS_timerfd_create"), (6285, "SYS_timerfd_gettime"), (6286, "SYS_timerfd_settime"), (6287, "SYS_signalfd4"), (6288, "SYS_eventfd2"), (6289, "SYS_epoll_create1"), (6290, "SYS_dup3"), (6291, "SYS_pipe2"), (6292, "SYS_inotify_init1"), (6293, "SYS_preadv"), (6294, "SYS_pwritev"), (6295, "SYS_rt_tgsigqueueinfo"), (6296, "SYS_perf_event_open"), (6297, "SYS_accept4"), (6298, "SYS_recvmmsg"), (6299, "SYS_getdents64"), (6300, "SYS_fanotify_init"), (6301, "SYS_fanotify_mark"), (6302, "SYS_prlimit64")],
'type': TYPE_EQUAL,
},
'mips-n64': {
'flags': [(5000, "SYS_read"), (5001, "SYS_write"), (5002, "SYS_open"), (5003, "SYS_close"), (5004, "SYS_stat"), (5005, "SYS_fstat"), (5006, "SYS_lstat"), (5007, "SYS_poll"), (5008, "SYS_lseek"), (5009, "SYS_mmap"), (5010, "SYS_mprotect"), (5011, "SYS_munmap"), (5012, "SYS_brk"), (5013, "SYS_rt_sigaction"), (5014, "SYS_rt_sigprocmask"), (5015, "SYS_ioctl"), (5016, "SYS_pread64"), (5017, "SYS_pwrite64"), (5018, "SYS_readv"), (5019, "SYS_writev"), (5020, "SYS_access"), (5021, "SYS_pipe"), (5022, "SYS__newselect"), (5023, "SYS_sched_yield"), (5024, "SYS_mremap"), (5025, "SYS_msync"), (5026, "SYS_mincore"), (5027, "SYS_madvise"), (5028, "SYS_shmget"), (5029, "SYS_shmat"), (5030, "SYS_shmctl"), (5031, "SYS_dup"), (5032, "SYS_dup2"), (5033, "SYS_pause"), (5034, "SYS_nanosleep"), (5035, "SYS_getitimer"), (5036, "SYS_setitimer"), (5037, "SYS_alarm"), (5038, "SYS_getpid"), (5039, "SYS_sendfile"), (5040, "SYS_socket"), (5041, "SYS_connect"), (5042, "SYS_accept"), (5043, "SYS_sendto"), (5044, "SYS_recvfrom"), (5045, "SYS_sendmsg"), (5046, "SYS_recvmsg"), (5047, "SYS_shutdown"), (5048, "SYS_bind"), (5049, "SYS_listen"), (5050, "SYS_getsockname"), (5051, "SYS_getpeername"), (5052, "SYS_socketpair"), (5053, "SYS_setsockopt"), (5054, "SYS_getsockopt"), (5055, "SYS_clone"), (5056, "SYS_fork"), (5057, "SYS_execve"), (5058, "SYS_exit"), (5059, "SYS_wait4"), (5060, "SYS_kill"), (5061, "SYS_uname"), (5062, "SYS_semget"), (5063, "SYS_semop"), (5064, "SYS_semctl"), (5065, "SYS_shmdt"), (5066, "SYS_msgget"), (5067, "SYS_msgsnd"), (5068, "SYS_msgrcv"), (5069, "SYS_msgctl"), (5070, "SYS_fcntl"), (5071, "SYS_flock"), (5072, "SYS_fsync"), (5073, "SYS_fdatasync"), (5074, "SYS_truncate"), (5075, "SYS_ftruncate"), (5076, "SYS_getdents"), (5077, "SYS_getcwd"), (5078, "SYS_chdir"), (5079, "SYS_fchdir"), (5080, "SYS_rename"), (5081, "SYS_mkdir"), (5082, "SYS_rmdir"), (5083, "SYS_creat"), (5084, "SYS_link"), (5085, "SYS_unlink"), (5086, "SYS_symlink"), (5087, "SYS_readlink"), (5088, "SYS_chmod"), (5089, "SYS_fchmod"), (5090, "SYS_chown"), (5091, "SYS_fchown"), (5092, "SYS_lchown"), (5093, "SYS_umask"), (5094, "SYS_gettimeofday"), (5095, "SYS_getrlimit"), (5096, "SYS_getrusage"), (5097, "SYS_sysinfo"), (5098, "SYS_times"), (5099, "SYS_ptrace"), (5100, "SYS_getuid"), (5101, "SYS_syslog"), (5102, "SYS_getgid"), (5103, "SYS_setuid"), (5104, "SYS_setgid"), (5105, "SYS_geteuid"), (5106, "SYS_getegid"), (5107, "SYS_setpgid"), (5108, "SYS_getppid"), (5109, "SYS_getpgrp"), (5110, "SYS_setsid"), (5111, "SYS_setreuid"), (5112, "SYS_setregid"), (5113, "SYS_getgroups"), (5114, "SYS_setgroups"), (5115, "SYS_setresuid"), (5116, "SYS_getresuid"), (5117, "SYS_setresgid"), (5118, "SYS_getresgid"), (5119, "SYS_getpgid"), (5120, "SYS_setfsuid"), (5121, "SYS_setfsgid"), (5122, "SYS_getsid"), (5123, "SYS_capget"), (5124, "SYS_capset"), (5125, "SYS_rt_sigpending"), (5126, "SYS_rt_sigtimedwait"), (5127, "SYS_rt_sigqueueinfo"), (5128, "SYS_rt_sigsuspend"), (5129, "SYS_sigaltstack"), (5130, "SYS_utime"), (5131, "SYS_mknod"), (5132, "SYS_personality"), (5133, "SYS_ustat"), (5134, "SYS_statfs"), (5135, "SYS_fstatfs"), (5136, "SYS_sysfs"), (5137, "SYS_getpriority"), (5138, "SYS_setpriority"), (5139, "SYS_sched_setparam"), (5140, "SYS_sched_getparam"), (5141, "SYS_sched_setscheduler"), (5142, "SYS_sched_getscheduler"), (5143, "SYS_sched_get_priority_max"), (5144, "SYS_sched_get_priority_min"), (5145, "SYS_sched_rr_get_interval"), (5146, "SYS_mlock"), (5147, "SYS_munlock"), (5148, "SYS_mlockall"), (5149, "SYS_munlockall"), (5150, "SYS_vhangup"), (5151, "SYS_pivot_root"), (5152, "SYS__sysctl"), (5153, "SYS_prctl"), (5154, "SYS_adjtimex"), (5155, "SYS_setrlimit"), (5156, "SYS_chroot"), (5157, "SYS_sync"), (5158, "SYS_acct"), (5159, "SYS_settimeofday"), (5160, "SYS_mount"), (5161, "SYS_umount2"), (5162, "SYS_swapon"), (5163, "SYS_swapoff"), (5164, "SYS_reboot"), (5165, "SYS_sethostname"), (5166, "SYS_setdomainname"), (5167, "SYS_create_module"), (5168, "SYS_init_module"), (5169, "SYS_delete_module"), (5170, "SYS_get_kernel_syms"), (5171, "SYS_query_module"), (5172, "SYS_quotactl"), (5173, "SYS_nfsservctl"), (5174, "SYS_getpmsg"), (5175, "SYS_putpmsg"), (5176, "SYS_afs_syscall"), (5178, "SYS_gettid"), (5179, "SYS_readahead"), (5180, "SYS_setxattr"), (5181, "SYS_lsetxattr"), (5182, "SYS_fsetxattr"), (5183, "SYS_getxattr"), (5184, "SYS_lgetxattr"), (5185, "SYS_fgetxattr"), (5186, "SYS_listxattr"), (5187, "SYS_llistxattr"), (5188, "SYS_flistxattr"), (5189, "SYS_removexattr"), (5190, "SYS_lremovexattr"), (5191, "SYS_fremovexattr"), (5192, "SYS_tkill"), (5194, "SYS_futex"), (5195, "SYS_sched_setaffinity"), (5196, "SYS_sched_getaffinity"), (5197, "SYS_cacheflush"), (5198, "SYS_cachectl"), (5199, "SYS_sysmips"), (5200, "SYS_io_setup"), (5201, "SYS_io_destroy"), (5202, "SYS_io_getevents"), (5203, "SYS_io_submit"), (5204, "SYS_io_cancel"), (5205, "SYS_exit_group"), (5206, "SYS_lookup_dcookie"), (5207, "SYS_epoll_create"), (5208, "SYS_epoll_ctl"), (5209, "SYS_epoll_wait"), (5210, "SYS_remap_file_pages"), (5211, "SYS_rt_sigreturn"), (5212, "SYS_set_tid_address"), (5213, "SYS_restart_syscall"), (5214, "SYS_semtimedop"), (5215, "SYS_fadvise64"), (5216, "SYS_timer_create"), (5217, "SYS_timer_settime"), (5218, "SYS_timer_gettime"), (5219, "SYS_timer_getoverrun"), (5220, "SYS_timer_delete"), (5221, "SYS_clock_settime"), (5222, "SYS_clock_gettime"), (5223, "SYS_clock_getres"), (5224, "SYS_clock_nanosleep"), (5225, "SYS_tgkill"), (5226, "SYS_utimes"), (5227, "SYS_mbind"), (5228, "SYS_get_mempolicy"), (5229, "SYS_set_mempolicy"), (5230, "SYS_mq_open"), (5231, "SYS_mq_unlink"), (5232, "SYS_mq_timedsend"), (5233, "SYS_mq_timedreceive"), (5234, "SYS_mq_notify"), (5235, "SYS_mq_getsetattr"), (5236, "SYS_vserver"), (5237, "SYS_waitid"), (5239, "SYS_add_key"), (5240, "SYS_request_key"), (5241, "SYS_keyctl"), (5242, "SYS_set_thread_area"), (5243, "SYS_inotify_init"), (5244, "SYS_inotify_add_watch"), (5245, "SYS_inotify_rm_watch"), (5246, "SYS_migrate_pages"), (5247, "SYS_openat"), (5248, "SYS_mkdirat"), (5249, "SYS_mknodat"), (5250, "SYS_fchownat"), (5251, "SYS_futimesat"), (5252, "SYS_newfstatat"), (5253, "SYS_unlinkat"), (5254, "SYS_renameat"), (5255, "SYS_linkat"), (5256, "SYS_symlinkat"), (5257, "SYS_readlinkat"), (5258, "SYS_fchmodat"), (5259, "SYS_faccessat"), (5260, "SYS_pselect6"), (5261, "SYS_ppoll"), (5262, "SYS_unshare"), (5263, "SYS_splice"), (5264, "SYS_sync_file_range"), (5265, "SYS_tee"), (5266, "SYS_vmsplice"), (5267, "SYS_move_pages"), (5268, "SYS_set_robust_list"), (5269, "SYS_get_robust_list"), (5270, "SYS_kexec_load"), (5271, "SYS_getcpu"), (5272, "SYS_epoll_pwait"), (5273, "SYS_ioprio_set"), (5274, "SYS_ioprio_get"), (5275, "SYS_utimensat"), (5276, "SYS_signalfd"), (5277, "SYS_timerfd"), (5278, "SYS_eventfd"), (5279, "SYS_fallocate"), (5280, "SYS_timerfd_create"), (5281, "SYS_timerfd_gettime"), (5282, "SYS_timerfd_settime"), (5283, "SYS_signalfd4"), (5284, "SYS_eventfd2"), (5285, "SYS_epoll_create1"), (5286, "SYS_dup3"), (5287, "SYS_pipe2"), (5288, "SYS_inotify_init1"), (5289, "SYS_preadv"), (5290, "SYS_pwritev"), (5291, "SYS_rt_tgsigqueueinfo"), (5292, "SYS_perf_event_open"), (5293, "SYS_accept4"), (5294, "SYS_recvmmsg"), (5295, "SYS_fanotify_init"), (5296, "SYS_fanotify_mark"), (5297, "SYS_prlimit64")],
'type': TYPE_EQUAL,
},
'blackfin': {
'flags': [(0, "SYS_restart_syscall"), (1, "SYS_exit"), (2, "SYS_fork"), (3, "SYS_read"), (4, "SYS_write"), (5, "SYS_open"), (6, "SYS_close"), (8, "SYS_creat"), (9, "SYS_link"), (10, "SYS_unlink"), (11, "SYS_execve"), (12, "SYS_chdir"), (13, "SYS_time"), (14, "SYS_mknod"), (15, "SYS_chmod"), (16, "SYS_chown"), (19, "SYS_lseek"), (20, "SYS_getpid"), (21, "SYS_mount"), (23, "SYS_setuid"), (24, "SYS_getuid"), (25, "SYS_stime"), (26, "SYS_ptrace"), (27, "SYS_alarm"), (29, "SYS_pause"), (33, "SYS_access"), (34, "SYS_nice"), (36, "SYS_sync"), (37, "SYS_kill"), (38, "SYS_rename"), (39, "SYS_mkdir"), (40, "SYS_rmdir"), (41, "SYS_dup"), (42, "SYS_pipe"), (43, "SYS_times"), (45, "SYS_brk"), (46, "SYS_setgid"), (47, "SYS_getgid"), (49, "SYS_geteuid"), (50, "SYS_getegid"), (51, "SYS_acct"), (52, "SYS_umount2"), (54, "SYS_ioctl"), (55, "SYS_fcntl"), (57, "SYS_setpgid"), (60, "SYS_umask"), (61, "SYS_chroot"), (62, "SYS_ustat"), (63, "SYS_dup2"), (64, "SYS_getppid"), (65, "SYS_getpgrp"), (66, "SYS_setsid"), (68, "SYS_sgetmask"), (69, "SYS_ssetmask"), (70, "SYS_setreuid"), (71, "SYS_setregid"), (74, "SYS_sethostname"), (75, "SYS_setrlimit"), (77, "SYS_getrusage"), (78, "SYS_gettimeofday"), (79, "SYS_settimeofday"), (80, "SYS_getgroups"), (81, "SYS_setgroups"), (83, "SYS_symlink"), (85, "SYS_readlink"), (88, "SYS_reboot"), (91, "SYS_munmap"), (92, "SYS_truncate"), (93, "SYS_ftruncate"), (94, "SYS_fchmod"), (95, "SYS_fchown"), (96, "SYS_getpriority"), (97, "SYS_setpriority"), (99, "SYS_statfs"), (100, "SYS_fstatfs"), (103, "SYS_syslog"), (104, "SYS_setitimer"), (105, "SYS_getitimer"), (106, "SYS_stat"), (107, "SYS_lstat"), (108, "SYS_fstat"), (111, "SYS_vhangup"), (114, "SYS_wait4"), (116, "SYS_sysinfo"), (118, "SYS_fsync"), (120, "SYS_clone"), (121, "SYS_setdomainname"), (122, "SYS_uname"), (124, "SYS_adjtimex"), (125, "SYS_mprotect"), (128, "SYS_init_module"), (129, "SYS_delete_module"), (131, "SYS_quotactl"), (132, "SYS_getpgid"), (133, "SYS_fchdir"), (134, "SYS_bdflush"), (136, "SYS_personality"), (138, "SYS_setfsuid"), (139, "SYS_setfsgid"), (140, "SYS__llseek"), (141, "SYS_getdents"), (143, "SYS_flock"), (145, "SYS_readv"), (146, "SYS_writev"), (147, "SYS_getsid"), (148, "SYS_fdatasync"), (149, "SYS__sysctl"), (154, "SYS_sched_setparam"), (155, "SYS_sched_getparam"), (156, "SYS_sched_setscheduler"), (157, "SYS_sched_getscheduler"), (158, "SYS_sched_yield"), (159, "SYS_sched_get_priority_max"), (160, "SYS_sched_get_priority_min"), (161, "SYS_sched_rr_get_interval"), (162, "SYS_nanosleep"), (163, "SYS_mremap"), (164, "SYS_setresuid"), (165, "SYS_getresuid"), (169, "SYS_nfsservctl"), (170, "SYS_setresgid"), (171, "SYS_getresgid"), (172, "SYS_prctl"), (173, "SYS_rt_sigreturn"), (174, "SYS_rt_sigaction"), (175, "SYS_rt_sigprocmask"), (176, "SYS_rt_sigpending"), (177, "SYS_rt_sigtimedwait"), (178, "SYS_rt_sigqueueinfo"), (179, "SYS_rt_sigsuspend"), (180, "SYS_pread"), (181, "SYS_pwrite"), (182, "SYS_lchown"), (183, "SYS_getcwd"), (184, "SYS_capget"), (185, "SYS_capset"), (186, "SYS_sigaltstack"), (187, "SYS_sendfile"), (190, "SYS_vfork"), (191, "SYS_getrlimit"), (192, "SYS_mmap2"), (193, "SYS_truncate64"), (194, "SYS_ftruncate64"), (195, "SYS_stat64"), (196, "SYS_lstat64"), (197, "SYS_fstat64"), (198, "SYS_chown32"), (199, "SYS_getuid32"), (200, "SYS_getgid32"), (201, "SYS_geteuid32"), (202, "SYS_getegid32"), (203, "SYS_setreuid32"), (204, "SYS_setregid32"), (205, "SYS_getgroups32"), (206, "SYS_setgroups32"), (207, "SYS_fchown32"), (208, "SYS_setresuid32"), (209, "SYS_getresuid32"), (210, "SYS_setresgid32"), (211, "SYS_getresgid32"), (212, "SYS_lchown32"), (213, "SYS_setuid32"), (214, "SYS_setgid32"), (215, "SYS_setfsuid32"), (216, "SYS_setfsgid32"), (217, "SYS_pivot_root"), (220, "SYS_getdents64"), (221, "SYS_fcntl64"), (224, "SYS_gettid"), (225, "SYS_readahead"), (226, "SYS_setxattr"), (227, "SYS_lsetxattr"), (228, "SYS_fsetxattr"), (229, "SYS_getxattr"), (230, "SYS_lgetxattr"), (231, "SYS_fgetxattr"), (232, "SYS_listxattr"), (233, "SYS_llistxattr"), (234, "SYS_flistxattr"), (235, "SYS_removexattr"), (236, "SYS_lremovexattr"), (237, "SYS_fremovexattr"), (238, "SYS_tkill"), (239, "SYS_sendfile64"), (240, "SYS_futex"), (241, "SYS_sched_setaffinity"), (242, "SYS_sched_getaffinity"), (245, "SYS_io_setup"), (246, "SYS_io_destroy"), (247, "SYS_io_getevents"), (248, "SYS_io_submit"), (249, "SYS_io_cancel"), (252, "SYS_exit_group"), (253, "SYS_lookup_dcookie"), (254, "SYS_bfin_spinlock"), (255, "SYS_epoll_create"), (256, "SYS_epoll_ctl"), (257, "SYS_epoll_wait"), (259, "SYS_set_tid_address"), (260, "SYS_timer_create"), (261, "SYS_timer_settime"), (262, "SYS_timer_gettime"), (263, "SYS_timer_getoverrun"), (264, "SYS_timer_delete"), (265, "SYS_clock_settime"), (266, "SYS_clock_gettime"), (267, "SYS_clock_getres"), (268, "SYS_clock_nanosleep"), (269, "SYS_statfs64"), (270, "SYS_fstatfs64"), (271, "SYS_tgkill"), (272, "SYS_utimes"), (273, "SYS_fadvise64_64"), (278, "SYS_mq_open"), (279, "SYS_mq_unlink"), (280, "SYS_mq_timedsend"), (281, "SYS_mq_timedreceive"), (282, "SYS_mq_notify"), (283, "SYS_mq_getsetattr"), (284, "SYS_kexec_load"), (285, "SYS_waitid"), (286, "SYS_add_key"), (287, "SYS_request_key"), (288, "SYS_keyctl"), (289, "SYS_ioprio_set"), (290, "SYS_ioprio_get"), (291, "SYS_inotify_init"), (292, "SYS_inotify_add_watch"), (293, "SYS_inotify_rm_watch"), (295, "SYS_openat"), (296, "SYS_mkdirat"), (297, "SYS_mknodat"), (298, "SYS_fchownat"), (299, "SYS_futimesat"), (300, "SYS_fstatat64"), (301, "SYS_unlinkat"), (302, "SYS_renameat"), (303, "SYS_linkat"), (304, "SYS_symlinkat"), (305, "SYS_readlinkat"), (306, "SYS_fchmodat"), (307, "SYS_faccessat"), (308, "SYS_pselect6"), (309, "SYS_ppoll"), (310, "SYS_unshare"), (311, "SYS_sram_alloc"), (312, "SYS_sram_free"), (313, "SYS_dma_memcpy"), (314, "SYS_accept"), (315, "SYS_bind"), (316, "SYS_connect"), (317, "SYS_getpeername"), (318, "SYS_getsockname"), (319, "SYS_getsockopt"), (320, "SYS_listen"), (321, "SYS_recv"), (322, "SYS_recvfrom"), (323, "SYS_recvmsg"), (324, "SYS_send"), (325, "SYS_sendmsg"), (326, "SYS_sendto"), (327, "SYS_setsockopt"), (328, "SYS_shutdown"), (329, "SYS_socket"), (330, "SYS_socketpair"), (331, "SYS_semctl"), (332, "SYS_semget"), (333, "SYS_semop"), (334, "SYS_msgctl"), (335, "SYS_msgget"), (336, "SYS_msgrcv"), (337, "SYS_msgsnd"), (338, "SYS_shmat"), (339, "SYS_shmctl"), (340, "SYS_shmdt"), (341, "SYS_shmget"), (342, "SYS_splice"), (343, "SYS_sync_file_range"), (344, "SYS_tee"), (345, "SYS_vmsplice"), (346, "SYS_epoll_pwait"), (347, "SYS_utimensat"), (348, "SYS_signalfd"), (349, "SYS_timerfd_create"), (350, "SYS_eventfd"), (351, "SYS_pread64"), (352, "SYS_pwrite64"), (353, "SYS_fadvise64"), (354, "SYS_set_robust_list"), (355, "SYS_get_robust_list"), (356, "SYS_fallocate"), (357, "SYS_semtimedop"), (358, "SYS_timerfd_settime"), (359, "SYS_timerfd_gettime"), (360, "SYS_signalfd4"), (361, "SYS_eventfd2"), (362, "SYS_epoll_create1"), (363, "SYS_dup3"), (364, "SYS_pipe2"), (365, "SYS_inotify_init1"), (366, "SYS_preadv"), (367, "SYS_pwritev"), (368, "SYS_rt_tgsigqueueinfo"), (369, "SYS_perf_event_open"), (370, "SYS_recvmmsg"), (371, "SYS_fanotify_init"), (372, "SYS_fanotify_mark"), (373, "SYS_prlimit64")],
'type': TYPE_EQUAL,
}
},
'cgc': {
'flags': [(1, 'terminate'), (2, 'transmit'), (3, 'receive'), (4, 'fdwait'), (5, 'allocate'), (6, 'deallocate'), (7, 'random')],
'type': TYPE_EQUAL,
}
},
'socket': {
'osx': {
'flags': [(1, 'SOCK_STREAM'), (2, 'SOCK_DGRAM'), (3, 'SOCK_RAW'), (5, 'SOCK_SEQPACKET'), (4, 'SOCK_RDM'), (1, 'PF_LOCAL'), (1, 'PF_UNIX'), (2, 'PF_INET'), (17, 'PF_ROUTE'), (29, 'PF_KEY'), (30, 'PF_INET6'), (32, 'PF_SYSTEM'), (27, 'PF_NDRV')],
'type': TYPE_EQUAL,
}
},
'net': {
'ipproto': {
'flags': [(0, 'IPPROTO_IP'), (1, 'IPPROTO_ICMP'), (2, 'IPPROTO_IGMP'), (4, 'IPPROTO_IPIP'), (6, 'IPPROTO_TCP'), (8, 'IPPROTO_EGP'), (12, 'IPPROTO_PUP'), (17, 'IPPROTO_UDP'), (22, 'IPPROTO_IDP'), (29, 'IPPROTO_TP'), (33, 'IPPROTO_DCCP'), (41, 'IPPROTO_IPV6'), (46, 'IPPROTO_RSVP'), (47, 'IPPROTO_GRE'), (50, 'IPPROTO_ESP'), (51, 'IPPROTO_AH'), (92, 'IPPROTO_MTP'), (94, 'IPPROTO_BEETPH'), (98, 'IPPROTO_ENCAP'), (103, 'IPPROTO_PIM'), (108, 'IPPROTO_COMP'), (132, 'IPPROTO_SCTP'), (136, 'IPPROTO_UDPLITE'), (255, 'IPPROTO_RAW')],
'type': TYPE_EQUAL,
}
},
'glob': {
'flags': {
'flags': [(1, 'GLOB_ERR'), (2, 'GLOB_MARK'), (4, 'GLOB_NOSORT'), (8, 'GLOB_DOOFFS'), (10, 'GLOB_NOCHECK'), (20, 'GLOB_APPEND'), (40, 'GLOB_NOESCAPE'), (80, 'GLOB_PERIOD'), (200, 'GLOB_ALTDIRFUNC'), (400, 'GLOB_BRACE'), (800, 'GLOB_NOMAGIC'), (1000, 'GLOB_TILDE'), (4000, 'GLOB_TILDE_CHECK'), (2000, 'GLOB_ONLYDIR')],
'type': TYPE_BITOR,
},
'return': {
'flags': [(0, 'GLOB_SUCCESS'), (1, 'GLOB_NOSPACE'), (2, 'GLOB_ABORTED'), (3, 'GLOB_NOMATCH')],
'type': TYPE_EQUAL,
}
},
'access': {
'mode': {
'flags': [(0, 'F_OK'), (1, 'X_OK'), (2, 'W_OK'), (4, 'R_OK')],
'type': TYPE_BITOR,
}
},
'chmod': {
'mode': {
'flags': [(2048, 'S_ISUID'), (1024, 'S_ISGID'), (512, 'S_ISVTX'), (256, 'S_IRUSR'), (128, 'S_IWUSR'), (64, 'S_IXUSR'), (32, 'S_IRGRP'), (16, 'S_IWGRP'), (8, 'S_IXGRP'), (4, 'S_IROTH'), (2, 'S_IWOTH'), (1, 'S_IXOTH')],
'type': TYPE_BITOR,
}
},
}
def FIND(key, hint): return key.lower().find(hint.lower()) > -1
def magic(query, hints, match = FIND):
ret = {}
def match_all(keyword):
if isinstance(hints, str):
return match(keyword, hints)
for hint in hints:
if not match(keyword, hint):
return False
return True
name = None
number = None
if isinstance(query, str):
if query.startswith('0x'):
try:
number = int(query, 16)
except:
raise ValueError('bad magic number in hex')
elif query.startswith('0b'):
try:
number = int(query, 2)
except:
raise ValueError('bad magic number in bin')
else:
try:
number = int(query, 10)
except:
number = None
name = query
elif isinstance(query, (int, long)):
number = query
else:
raise ValueError('query should be type number or string')
def visit(obj, path):
if 'flags' in obj and 'type' in obj:
bits = {}
def get_one(f, value, tp):
if not match_all(path + '.' + f):
return
if name is not None:
if match(f, name):
bits[f] = value
elif tp == TYPE_EQUAL:
if value == number:
bits[f] = value
elif tp == TYPE_BITOR:
if value & number:
bits[f] = value
if not obj['flags']:
return
if isinstance(obj['flags'][0], str): # is py_magic
for f in obj['flags']:
try:
value = getattr(modules[module], f)
get_one(f, value, obj['type'])
except: pass
else: # tupple
for value, f in obj['flags']:
get_one(f, value, obj['type'])
if bits:
ret[path] = bits
else:
for k in obj:
visit(obj[k], path and path + '.' + k or k)
# py magics
modules = {}
for module in py_magic:
if module not in modules:
modules[module] = __import__(module, globals())
visit(py_magic[module], module)
# magics
visit(magics, '')
return ret
def usage():
print("""
usage:
$ magic.py (number|name) [keyword | [keyword] ...]
examples:
$ magic.py 11 open
$ magic.py 15 signal
$ magic.py 10240 iflags
$ magic.py SIGTERM signal
$ magic.py creat open
# list all consts in open
$ magic.py '' open
""")
def main():
number = 0
if len(sys.argv) < 2:
usage()
sys.exit(0)
try:
rs = magic(sys.argv[1], sys.argv[2:])
except ValueError as err:
usage()
sys.exit(10)
if not rs:
print('0ops, magic number not found :(')
return 0
for k in rs:
w = rs[k]
sys.stdout.write(colored(k, 'yellow') + '\r\n')
sys.stdout.write(' ' + colored(isinstance(w, (list, dict)) and ' | '.join(['%s = %d(0x%s)' % (k, w[k], format(w[k], 'x')) for k in w.keys()]) or ', '.join(w), 'cyan') + '\r\n')
sys.stdout.flush()
return 0
if __name__ == '__main__':
sys.exit(main())