Last active
July 4, 2018 22:54
-
-
Save izabera/f3d8e3a8858acaa59c9ef33dd771164f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
shopt -s extglob | |
declare -A signal=( | |
[1]=sighup [2]=sigint [3]=sigquit [4]=sigill [5]=sigtrap | |
[6]=sigabrt [7]=sigbus [8]=sigfpe [9]=sigkill [10]=sigusr1 | |
[11]=sigsegv [12]=sigusr2 [13]=sigpipe [14]=sigalrm [15]=sigterm | |
[16]=sigstkflt [17]=sigchld [18]=sigcont [19]=sigstop [20]=sigtstp | |
[21]=sigttin [22]=sigttou [23]=sigurg [24]=sigxcpu [25]=sigxfsz | |
[26]=sigvtalrm [27]=sigprof [28]=sigwinch [29]=sigio [30]=sigpwr | |
[31]=sigsys [34]=sigrtmin [35]=sigrtmin+1 [36]=sigrtmin+2 [37]=sigrtmin+3 | |
[38]=sigrtmin+4 [39]=sigrtmin+5 [40]=sigrtmin+6 [41]=sigrtmin+7 [42]=sigrtmin+8 | |
[43]=sigrtmin+9 [44]=sigrtmin+10 [45]=sigrtmin+11 [46]=sigrtmin+12 [47]=sigrtmin+13 | |
[48]=sigrtmin+14 [49]=sigrtmin+15 [50]=sigrtmax-14 [51]=sigrtmax-13 [52]=sigrtmax-12 | |
[53]=sigrtmax-11 [54]=sigrtmax-10 [55]=sigrtmax-9 [56]=sigrtmax-8 [57]=sigrtmax-7 | |
[58]=sigrtmax-6 [59]=sigrtmax-5 [60]=sigrtmax-4 [61]=sigrtmax-3 [62]=sigrtmax-2 | |
[63]=sigrtmax-1 [64]=sigrtmax | |
[sighup]=1 [sigint]=2 [sigquit]=3 [sigill]=4 [sigtrap]=5 | |
[sigabrt]=6 [sigbus]=7 [sigfpe]=8 [sigkill]=9 [sigusr1]=10 | |
[sigsegv]=11 [sigusr2]=12 [sigpipe]=13 [sigalrm]=14 [sigterm]=15 | |
[sigstkflt]=16 [sigchld]=17 [sigcont]=18 [sigstop]=19 [sigtstp]=20 | |
[sigttin]=21 [sigttou]=22 [sigurg]=23 [sigxcpu]=24 [sigxfsz]=25 | |
[sigvtalrm]=26 [sigprof]=27 [sigwinch]=28 [sigio]=29 [sigpwr]=30 | |
[sigsys]=31 [sigrtmin]=34 [sigrtmin+1]=35 | |
[sigrtmin+2]=36 [sigrtmin+3]=37 [sigrtmin+4]=38 [sigrtmin+5]=39 [sigrtmin+6]=40 | |
[sigrtmin+7]=41 [sigrtmin+8]=42 [sigrtmin+9]=43 [sigrtmin+10]=44 [sigrtmin+11]=45 | |
[sigrtmin+12]=46 [sigrtmin+13]=47 [sigrtmin+14]=48 [sigrtmin+15]=49 [sigrtmax-14]=50 | |
[sigrtmax-13]=51 [sigrtmax-12]=52 [sigrtmax-11]=53 [sigrtmax-10]=54 [sigrtmax-9]=55 | |
[sigrtmax-8]=56 [sigrtmax-7]=57 [sigrtmax-6]=58 [sigrtmax-5]=59 [sigrtmax-4]=60 | |
[sigrtmax-3]=61 [sigrtmax-2]=62 [sigrtmax-1]=63 [sigrtmax]=64 | |
) | |
declare -A syscallsx64=( | |
[__nr_read]=0 [0]=read [__nr_write]=1 [1]=write | |
[__nr_open]=2 [2]=open [__nr_close]=3 [3]=close | |
[__nr_stat]=4 [4]=stat [__nr_fstat]=5 [5]=fstat | |
[__nr_lstat]=6 [6]=lstat [__nr_poll]=7 [7]=poll | |
[__nr_lseek]=8 [8]=lseek [__nr_mmap]=9 [9]=mmap | |
[__nr_mprotect]=10 [10]=mprotect [__nr_munmap]=11 [11]=munmap | |
[__nr_brk]=12 [12]=brk [__nr_rt_sigaction]=13 [13]=rt_sigaction | |
[__nr_rt_sigprocmask]=14 [14]=rt_sigprocmask [__nr_rt_sigreturn]=15 [15]=rt_sigreturn | |
[__nr_ioctl]=16 [16]=ioctl [__nr_pread64]=17 [17]=pread64 | |
[__nr_pwrite64]=18 [18]=pwrite64 [__nr_readv]=19 [19]=readv | |
[__nr_writev]=20 [20]=writev [__nr_access]=21 [21]=access | |
[__nr_pipe]=22 [22]=pipe [__nr_select]=23 [23]=select | |
[__nr_sched_yield]=24 [24]=sched_yield [__nr_mremap]=25 [25]=mremap | |
[__nr_msync]=26 [26]=msync [__nr_mincore]=27 [27]=mincore | |
[__nr_madvise]=28 [28]=madvise [__nr_shmget]=29 [29]=shmget | |
[__nr_shmat]=30 [30]=shmat [__nr_shmctl]=31 [31]=shmctl | |
[__nr_dup]=32 [32]=dup [__nr_dup2]=33 [33]=dup2 | |
[__nr_pause]=34 [34]=pause [__nr_nanosleep]=35 [35]=nanosleep | |
[__nr_getitimer]=36 [36]=getitimer [__nr_alarm]=37 [37]=alarm | |
[__nr_setitimer]=38 [38]=setitimer [__nr_getpid]=39 [39]=getpid | |
[__nr_sendfile]=40 [40]=sendfile [__nr_socket]=41 [41]=socket | |
[__nr_connect]=42 [42]=connect [__nr_accept]=43 [43]=accept | |
[__nr_sendto]=44 [44]=sendto [__nr_recvfrom]=45 [45]=recvfrom | |
[__nr_sendmsg]=46 [46]=sendmsg [__nr_recvmsg]=47 [47]=recvmsg | |
[__nr_shutdown]=48 [48]=shutdown [__nr_bind]=49 [49]=bind | |
[__nr_listen]=50 [50]=listen [__nr_getsockname]=51 [51]=getsockname | |
[__nr_getpeername]=52 [52]=getpeername [__nr_socketpair]=53 [53]=socketpair | |
[__nr_setsockopt]=54 [54]=setsockopt [__nr_getsockopt]=55 [55]=getsockopt | |
[__nr_clone]=56 [56]=clone [__nr_fork]=57 [57]=fork | |
[__nr_vfork]=58 [58]=vfork [__nr_execve]=59 [59]=execve | |
[__nr_exit]=60 [60]=exit [__nr_wait4]=61 [61]=wait4 | |
[__nr_kill]=62 [62]=kill [__nr_uname]=63 [63]=uname | |
[__nr_semget]=64 [64]=semget [__nr_semop]=65 [65]=semop | |
[__nr_semctl]=66 [66]=semctl [__nr_shmdt]=67 [67]=shmdt | |
[__nr_msgget]=68 [68]=msgget [__nr_msgsnd]=69 [69]=msgsnd | |
[__nr_msgrcv]=70 [70]=msgrcv [__nr_msgctl]=71 [71]=msgctl | |
[__nr_fcntl]=72 [72]=fcntl [__nr_flock]=73 [73]=flock | |
[__nr_fsync]=74 [74]=fsync [__nr_fdatasync]=75 [75]=fdatasync | |
[__nr_truncate]=76 [76]=truncate [__nr_ftruncate]=77 [77]=ftruncate | |
[__nr_getdents]=78 [78]=getdents [__nr_getcwd]=79 [79]=getcwd | |
[__nr_chdir]=80 [80]=chdir [__nr_fchdir]=81 [81]=fchdir | |
[__nr_rename]=82 [82]=rename [__nr_mkdir]=83 [83]=mkdir | |
[__nr_rmdir]=84 [84]=rmdir [__nr_creat]=85 [85]=creat | |
[__nr_link]=86 [86]=link [__nr_unlink]=87 [87]=unlink | |
[__nr_symlink]=88 [88]=symlink [__nr_readlink]=89 [89]=readlink | |
[__nr_chmod]=90 [90]=chmod [__nr_fchmod]=91 [91]=fchmod | |
[__nr_chown]=92 [92]=chown [__nr_fchown]=93 [93]=fchown | |
[__nr_lchown]=94 [94]=lchown [__nr_umask]=95 [95]=umask | |
[__nr_gettimeofday]=96 [96]=gettimeofday [__nr_getrlimit]=97 [97]=getrlimit | |
[__nr_getrusage]=98 [98]=getrusage [__nr_sysinfo]=99 [99]=sysinfo | |
[__nr_times]=100 [100]=times [__nr_ptrace]=101 [101]=ptrace | |
[__nr_getuid]=102 [102]=getuid [__nr_syslog]=103 [103]=syslog | |
[__nr_getgid]=104 [104]=getgid [__nr_setuid]=105 [105]=setuid | |
[__nr_setgid]=106 [106]=setgid [__nr_geteuid]=107 [107]=geteuid | |
[__nr_getegid]=108 [108]=getegid [__nr_setpgid]=109 [109]=setpgid | |
[__nr_getppid]=110 [110]=getppid [__nr_getpgrp]=111 [111]=getpgrp | |
[__nr_setsid]=112 [112]=setsid [__nr_setreuid]=113 [113]=setreuid | |
[__nr_setregid]=114 [114]=setregid [__nr_getgroups]=115 [115]=getgroups | |
[__nr_setgroups]=116 [116]=setgroups [__nr_setresuid]=117 [117]=setresuid | |
[__nr_getresuid]=118 [118]=getresuid [__nr_setresgid]=119 [119]=setresgid | |
[__nr_getresgid]=120 [120]=getresgid [__nr_getpgid]=121 [121]=getpgid | |
[__nr_setfsuid]=122 [122]=setfsuid [__nr_setfsgid]=123 [123]=setfsgid | |
[__nr_getsid]=124 [124]=getsid [__nr_capget]=125 [125]=capget | |
[__nr_capset]=126 [126]=capset [__nr_rt_sigpending]=127 [127]=rt_sigpending | |
[__nr_rt_sigtimedwait]=128 [128]=rt_sigtimedwait [__nr_rt_sigqueueinfo]=129 [129]=rt_sigqueueinfo | |
[__nr_rt_sigsuspend]=130 [130]=rt_sigsuspend [__nr_sigaltstack]=131 [131]=sigaltstack | |
[__nr_utime]=132 [132]=utime [__nr_mknod]=133 [133]=mknod | |
[__nr_uselib]=134 [134]=uselib [__nr_personality]=135 [135]=personality | |
[__nr_ustat]=136 [136]=ustat [__nr_statfs]=137 [137]=statfs | |
[__nr_fstatfs]=138 [138]=fstatfs [__nr_sysfs]=139 [139]=sysfs | |
[__nr_getpriority]=140 [140]=getpriority [__nr_setpriority]=141 [141]=setpriority | |
[__nr_sched_setparam]=142 [142]=sched_setparam [__nr_sched_getparam]=143 [143]=sched_getparam | |
[__nr_sched_setscheduler]=144 [144]=sched_setscheduler [__nr_sched_getscheduler]=145 [145]=sched_getscheduler | |
[__nr_sched_get_priority_max]=146 [146]=sched_get_priority_max [__nr_sched_get_priority_min]=147 [147]=sched_get_priority_min | |
[__nr_sched_rr_get_interval]=148 [148]=sched_rr_get_interval [__nr_mlock]=149 [149]=mlock | |
[__nr_munlock]=150 [150]=munlock [__nr_mlockall]=151 [151]=mlockall | |
[__nr_munlockall]=152 [152]=munlockall [__nr_vhangup]=153 [153]=vhangup | |
[__nr_modify_ldt]=154 [154]=modify_ldt [__nr_pivot_root]=155 [155]=pivot_root | |
[__nr__sysctl]=156 [156]=_sysctl [__nr_prctl]=157 [157]=prctl | |
[__nr_arch_prctl]=158 [158]=arch_prctl [__nr_adjtimex]=159 [159]=adjtimex | |
[__nr_setrlimit]=160 [160]=setrlimit [__nr_chroot]=161 [161]=chroot | |
[__nr_sync]=162 [162]=sync [__nr_acct]=163 [163]=acct | |
[__nr_settimeofday]=164 [164]=settimeofday [__nr_mount]=165 [165]=mount | |
[__nr_umount2]=166 [166]=umount2 [__nr_swapon]=167 [167]=swapon | |
[__nr_swapoff]=168 [168]=swapoff [__nr_reboot]=169 [169]=reboot | |
[__nr_sethostname]=170 [170]=sethostname [__nr_setdomainname]=171 [171]=setdomainname | |
[__nr_iopl]=172 [172]=iopl [__nr_ioperm]=173 [173]=ioperm | |
[__nr_create_module]=174 [174]=create_module [__nr_init_module]=175 [175]=init_module | |
[__nr_delete_module]=176 [176]=delete_module [__nr_get_kernel_syms]=177 [177]=get_kernel_syms | |
[__nr_query_module]=178 [178]=query_module [__nr_quotactl]=179 [179]=quotactl | |
[__nr_nfsservctl]=180 [180]=nfsservctl [__nr_getpmsg]=181 [181]=getpmsg | |
[__nr_putpmsg]=182 [182]=putpmsg [__nr_afs_syscall]=183 [183]=afs_syscall | |
[__nr_tuxcall]=184 [184]=tuxcall [__nr_security]=185 [185]=security | |
[__nr_gettid]=186 [186]=gettid [__nr_readahead]=187 [187]=readahead | |
[__nr_setxattr]=188 [188]=setxattr [__nr_lsetxattr]=189 [189]=lsetxattr | |
[__nr_fsetxattr]=190 [190]=fsetxattr [__nr_getxattr]=191 [191]=getxattr | |
[__nr_lgetxattr]=192 [192]=lgetxattr [__nr_fgetxattr]=193 [193]=fgetxattr | |
[__nr_listxattr]=194 [194]=listxattr [__nr_llistxattr]=195 [195]=llistxattr | |
[__nr_flistxattr]=196 [196]=flistxattr [__nr_removexattr]=197 [197]=removexattr | |
[__nr_lremovexattr]=198 [198]=lremovexattr [__nr_fremovexattr]=199 [199]=fremovexattr | |
[__nr_tkill]=200 [200]=tkill [__nr_time]=201 [201]=time | |
[__nr_futex]=202 [202]=futex [__nr_sched_setaffinity]=203 [203]=sched_setaffinity | |
[__nr_sched_getaffinity]=204 [204]=sched_getaffinity [__nr_set_thread_area]=205 [205]=set_thread_area | |
[__nr_io_setup]=206 [206]=io_setup [__nr_io_destroy]=207 [207]=io_destroy | |
[__nr_io_getevents]=208 [208]=io_getevents [__nr_io_submit]=209 [209]=io_submit | |
[__nr_io_cancel]=210 [210]=io_cancel [__nr_get_thread_area]=211 [211]=get_thread_area | |
[__nr_lookup_dcookie]=212 [212]=lookup_dcookie [__nr_epoll_create]=213 [213]=epoll_create | |
[__nr_epoll_ctl_old]=214 [214]=epoll_ctl_old [__nr_epoll_wait_old]=215 [215]=epoll_wait_old | |
[__nr_remap_file_pages]=216 [216]=remap_file_pages [__nr_getdents64]=217 [217]=getdents64 | |
[__nr_set_tid_address]=218 [218]=set_tid_address [__nr_restart_syscall]=219 [219]=restart_syscall | |
[__nr_semtimedop]=220 [220]=semtimedop [__nr_fadvise64]=221 [221]=fadvise64 | |
[__nr_timer_create]=222 [222]=timer_create [__nr_timer_settime]=223 [223]=timer_settime | |
[__nr_timer_gettime]=224 [224]=timer_gettime [__nr_timer_getoverrun]=225 [225]=timer_getoverrun | |
[__nr_timer_delete]=226 [226]=timer_delete [__nr_clock_settime]=227 [227]=clock_settime | |
[__nr_clock_gettime]=228 [228]=clock_gettime [__nr_clock_getres]=229 [229]=clock_getres | |
[__nr_clock_nanosleep]=230 [230]=clock_nanosleep [__nr_exit_group]=231 [231]=exit_group | |
[__nr_epoll_wait]=232 [232]=epoll_wait [__nr_epoll_ctl]=233 [233]=epoll_ctl | |
[__nr_tgkill]=234 [234]=tgkill [__nr_utimes]=235 [235]=utimes | |
[__nr_vserver]=236 [236]=vserver [__nr_mbind]=237 [237]=mbind | |
[__nr_set_mempolicy]=238 [238]=set_mempolicy [__nr_get_mempolicy]=239 [239]=get_mempolicy | |
[__nr_mq_open]=240 [240]=mq_open [__nr_mq_unlink]=241 [241]=mq_unlink | |
[__nr_mq_timedsend]=242 [242]=mq_timedsend [__nr_mq_timedreceive]=243 [243]=mq_timedreceive | |
[__nr_mq_notify]=244 [244]=mq_notify [__nr_mq_getsetattr]=245 [245]=mq_getsetattr | |
[__nr_kexec_load]=246 [246]=kexec_load [__nr_waitid]=247 [247]=waitid | |
[__nr_add_key]=248 [248]=add_key [__nr_request_key]=249 [249]=request_key | |
[__nr_keyctl]=250 [250]=keyctl [__nr_ioprio_set]=251 [251]=ioprio_set | |
[__nr_ioprio_get]=252 [252]=ioprio_get [__nr_inotify_init]=253 [253]=inotify_init | |
[__nr_inotify_add_watch]=254 [254]=inotify_add_watch [__nr_inotify_rm_watch]=255 [255]=inotify_rm_watch | |
[__nr_migrate_pages]=256 [256]=migrate_pages [__nr_openat]=257 [257]=openat | |
[__nr_mkdirat]=258 [258]=mkdirat [__nr_mknodat]=259 [259]=mknodat | |
[__nr_fchownat]=260 [260]=fchownat [__nr_futimesat]=261 [261]=futimesat | |
[__nr_newfstatat]=262 [262]=newfstatat [__nr_unlinkat]=263 [263]=unlinkat | |
[__nr_renameat]=264 [264]=renameat [__nr_linkat]=265 [265]=linkat | |
[__nr_symlinkat]=266 [266]=symlinkat [__nr_readlinkat]=267 [267]=readlinkat | |
[__nr_fchmodat]=268 [268]=fchmodat [__nr_faccessat]=269 [269]=faccessat | |
[__nr_pselect6]=270 [270]=pselect6 [__nr_ppoll]=271 [271]=ppoll | |
[__nr_unshare]=272 [272]=unshare [__nr_set_robust_list]=273 [273]=set_robust_list | |
[__nr_get_robust_list]=274 [274]=get_robust_list [__nr_splice]=275 [275]=splice | |
[__nr_tee]=276 [276]=tee [__nr_sync_file_range]=277 [277]=sync_file_range | |
[__nr_vmsplice]=278 [278]=vmsplice [__nr_move_pages]=279 [279]=move_pages | |
[__nr_utimensat]=280 [280]=utimensat [__nr_epoll_pwait]=281 [281]=epoll_pwait | |
[__nr_signalfd]=282 [282]=signalfd [__nr_timerfd_create]=283 [283]=timerfd_create | |
[__nr_eventfd]=284 [284]=eventfd [__nr_fallocate]=285 [285]=fallocate | |
[__nr_timerfd_settime]=286 [286]=timerfd_settime [__nr_timerfd_gettime]=287 [287]=timerfd_gettime | |
[__nr_accept4]=288 [288]=accept4 [__nr_signalfd4]=289 [289]=signalfd4 | |
[__nr_eventfd2]=290 [290]=eventfd2 [__nr_epoll_create1]=291 [291]=epoll_create1 | |
[__nr_dup3]=292 [292]=dup3 [__nr_pipe2]=293 [293]=pipe2 | |
[__nr_inotify_init1]=294 [294]=inotify_init1 [__nr_preadv]=295 [295]=preadv | |
[__nr_pwritev]=296 [296]=pwritev [__nr_rt_tgsigqueueinfo]=297 [297]=rt_tgsigqueueinfo | |
[__nr_perf_event_open]=298 [298]=perf_event_open [__nr_recvmmsg]=299 [299]=recvmmsg | |
[__nr_fanotify_init]=300 [300]=fanotify_init [__nr_fanotify_mark]=301 [301]=fanotify_mark | |
[__nr_prlimit64]=302 [302]=prlimit64 [__nr_name_to_handle_at]=303 [303]=name_to_handle_at | |
[__nr_open_by_handle_at]=304 [304]=open_by_handle_at [__nr_clock_adjtime]=305 [305]=clock_adjtime | |
[__nr_syncfs]=306 [306]=syncfs [__nr_sendmmsg]=307 [307]=sendmmsg | |
[__nr_setns]=308 [308]=setns [__nr_getcpu]=309 [309]=getcpu | |
[__nr_process_vm_readv]=310 [310]=process_vm_readv [__nr_process_vm_writev]=311 [311]=process_vm_writev | |
[__nr_kcmp]=312 [312]=kcmp [__nr_finit_module]=313 [313]=finit_module | |
[__nr_sched_setattr]=314 [314]=sched_setattr [__nr_sched_getattr]=315 [315]=sched_getattr | |
[__nr_renameat2]=316 [316]=renameat2 [__nr_seccomp]=317 [317]=seccomp | |
[__nr_getrandom]=318 [318]=getrandom [__nr_memfd_create]=319 [319]=memfd_create | |
[__nr_kexec_file_load]=320 [320]=kexec_file_load [__nr_bpf]=321 [321]=bpf | |
[__nr_execveat]=322 [322]=execveat [__nr_userfaultfd]=323 [323]=userfaultfd | |
[__nr_membarrier]=324 [324]=membarrier [__nr_mlock2]=325 [325]=mlock2 | |
[__nr_copy_file_range]=326 [326]=copy_file_range [__nr_preadv2]=327 [327]=preadv2 | |
[__nr_pwritev2]=328 [328]=pwritev2 [__nr_pkey_mprotect]=329 [329]=pkey_mprotect | |
[__nr_pkey_alloc]=330 [330]=pkey_alloc [__nr_pkey_free]=331 [331]=pkey_free | |
[__nr_statx]=332 [332]=statx | |
) | |
declare -A syscallsx86=( | |
[__nr_restart_syscall]=0 [0]=restart_syscall [__nr_exit]=1 [1]=exit | |
[__nr_fork]=2 [2]=fork [__nr_read]=3 [3]=read | |
[__nr_write]=4 [4]=write [__nr_open]=5 [5]=open | |
[__nr_close]=6 [6]=close [__nr_waitpid]=7 [7]=waitpid | |
[__nr_creat]=8 [8]=creat [__nr_link]=9 [9]=link | |
[__nr_unlink]=10 [10]=unlink [__nr_execve]=11 [11]=execve | |
[__nr_chdir]=12 [12]=chdir [__nr_time]=13 [13]=time | |
[__nr_mknod]=14 [14]=mknod [__nr_chmod]=15 [15]=chmod | |
[__nr_lchown]=16 [16]=lchown [__nr_break]=17 [17]=break | |
[__nr_oldstat]=18 [18]=oldstat [__nr_lseek]=19 [19]=lseek | |
[__nr_getpid]=20 [20]=getpid [__nr_mount]=21 [21]=mount | |
[__nr_umount]=22 [22]=umount [__nr_setuid]=23 [23]=setuid | |
[__nr_getuid]=24 [24]=getuid [__nr_stime]=25 [25]=stime | |
[__nr_ptrace]=26 [26]=ptrace [__nr_alarm]=27 [27]=alarm | |
[__nr_oldfstat]=28 [28]=oldfstat [__nr_pause]=29 [29]=pause | |
[__nr_utime]=30 [30]=utime [__nr_stty]=31 [31]=stty | |
[__nr_gtty]=32 [32]=gtty [__nr_access]=33 [33]=access | |
[__nr_nice]=34 [34]=nice [__nr_ftime]=35 [35]=ftime | |
[__nr_sync]=36 [36]=sync [__nr_kill]=37 [37]=kill | |
[__nr_rename]=38 [38]=rename [__nr_mkdir]=39 [39]=mkdir | |
[__nr_rmdir]=40 [40]=rmdir [__nr_dup]=41 [41]=dup | |
[__nr_pipe]=42 [42]=pipe [__nr_times]=43 [43]=times | |
[__nr_prof]=44 [44]=prof [__nr_brk]=45 [45]=brk | |
[__nr_setgid]=46 [46]=setgid [__nr_getgid]=47 [47]=getgid | |
[__nr_signal]=48 [48]=signal [__nr_geteuid]=49 [49]=geteuid | |
[__nr_getegid]=50 [50]=getegid [__nr_acct]=51 [51]=acct | |
[__nr_umount2]=52 [52]=umount2 [__nr_lock]=53 [53]=lock | |
[__nr_ioctl]=54 [54]=ioctl [__nr_fcntl]=55 [55]=fcntl | |
[__nr_mpx]=56 [56]=mpx [__nr_setpgid]=57 [57]=setpgid | |
[__nr_ulimit]=58 [58]=ulimit [__nr_oldolduname]=59 [59]=oldolduname | |
[__nr_umask]=60 [60]=umask [__nr_chroot]=61 [61]=chroot | |
[__nr_ustat]=62 [62]=ustat [__nr_dup2]=63 [63]=dup2 | |
[__nr_getppid]=64 [64]=getppid [__nr_getpgrp]=65 [65]=getpgrp | |
[__nr_setsid]=66 [66]=setsid [__nr_sigaction]=67 [67]=sigaction | |
[__nr_sgetmask]=68 [68]=sgetmask [__nr_ssetmask]=69 [69]=ssetmask | |
[__nr_setreuid]=70 [70]=setreuid [__nr_setregid]=71 [71]=setregid | |
[__nr_sigsuspend]=72 [72]=sigsuspend [__nr_sigpending]=73 [73]=sigpending | |
[__nr_sethostname]=74 [74]=sethostname [__nr_setrlimit]=75 [75]=setrlimit | |
[__nr_getrlimit]=76 [76]=getrlimit [__nr_getrusage]=77 [77]=getrusage | |
[__nr_gettimeofday]=78 [78]=gettimeofday [__nr_settimeofday]=79 [79]=settimeofday | |
[__nr_getgroups]=80 [80]=getgroups [__nr_setgroups]=81 [81]=setgroups | |
[__nr_select]=82 [82]=select [__nr_symlink]=83 [83]=symlink | |
[__nr_oldlstat]=84 [84]=oldlstat [__nr_readlink]=85 [85]=readlink | |
[__nr_uselib]=86 [86]=uselib [__nr_swapon]=87 [87]=swapon | |
[__nr_reboot]=88 [88]=reboot [__nr_readdir]=89 [89]=readdir | |
[__nr_mmap]=90 [90]=mmap [__nr_munmap]=91 [91]=munmap | |
[__nr_truncate]=92 [92]=truncate [__nr_ftruncate]=93 [93]=ftruncate | |
[__nr_fchmod]=94 [94]=fchmod [__nr_fchown]=95 [95]=fchown | |
[__nr_getpriority]=96 [96]=getpriority [__nr_setpriority]=97 [97]=setpriority | |
[__nr_profil]=98 [98]=profil [__nr_statfs]=99 [99]=statfs | |
[__nr_fstatfs]=100 [100]=fstatfs [__nr_ioperm]=101 [101]=ioperm | |
[__nr_socketcall]=102 [102]=socketcall [__nr_syslog]=103 [103]=syslog | |
[__nr_setitimer]=104 [104]=setitimer [__nr_getitimer]=105 [105]=getitimer | |
[__nr_stat]=106 [106]=stat [__nr_lstat]=107 [107]=lstat | |
[__nr_fstat]=108 [108]=fstat [__nr_olduname]=109 [109]=olduname | |
[__nr_iopl]=110 [110]=iopl [__nr_vhangup]=111 [111]=vhangup | |
[__nr_idle]=112 [112]=idle [__nr_vm86old]=113 [113]=vm86old | |
[__nr_wait4]=114 [114]=wait4 [__nr_swapoff]=115 [115]=swapoff | |
[__nr_sysinfo]=116 [116]=sysinfo [__nr_ipc]=117 [117]=ipc | |
[__nr_fsync]=118 [118]=fsync [__nr_sigreturn]=119 [119]=sigreturn | |
[__nr_clone]=120 [120]=clone [__nr_setdomainname]=121 [121]=setdomainname | |
[__nr_uname]=122 [122]=uname [__nr_modify_ldt]=123 [123]=modify_ldt | |
[__nr_adjtimex]=124 [124]=adjtimex [__nr_mprotect]=125 [125]=mprotect | |
[__nr_sigprocmask]=126 [126]=sigprocmask [__nr_create_module]=127 [127]=create_module | |
[__nr_init_module]=128 [128]=init_module [__nr_delete_module]=129 [129]=delete_module | |
[__nr_get_kernel_syms]=130 [130]=get_kernel_syms [__nr_quotactl]=131 [131]=quotactl | |
[__nr_getpgid]=132 [132]=getpgid [__nr_fchdir]=133 [133]=fchdir | |
[__nr_bdflush]=134 [134]=bdflush [__nr_sysfs]=135 [135]=sysfs | |
[__nr_personality]=136 [136]=personality [__nr_afs_syscall]=137 [137]=afs_syscall | |
[__nr_setfsuid]=138 [138]=setfsuid [__nr_setfsgid]=139 [139]=setfsgid | |
[__nr__llseek]=140 [140]=_llseek [__nr_getdents]=141 [141]=getdents | |
[__nr__newselect]=142 [142]=_newselect [__nr_flock]=143 [143]=flock | |
[__nr_msync]=144 [144]=msync [__nr_readv]=145 [145]=readv | |
[__nr_writev]=146 [146]=writev [__nr_getsid]=147 [147]=getsid | |
[__nr_fdatasync]=148 [148]=fdatasync [__nr__sysctl]=149 [149]=_sysctl | |
[__nr_mlock]=150 [150]=mlock [__nr_munlock]=151 [151]=munlock | |
[__nr_mlockall]=152 [152]=mlockall [__nr_munlockall]=153 [153]=munlockall | |
[__nr_sched_setparam]=154 [154]=sched_setparam [__nr_sched_getparam]=155 [155]=sched_getparam | |
[__nr_sched_setscheduler]=156 [156]=sched_setscheduler [__nr_sched_getscheduler]=157 [157]=sched_getscheduler | |
[__nr_sched_yield]=158 [158]=sched_yield [__nr_sched_get_priority_max]=159 [159]=sched_get_priority_max | |
[__nr_sched_get_priority_min]=160 [160]=sched_get_priority_min [__nr_sched_rr_get_interval]=161 [161]=sched_rr_get_interval | |
[__nr_nanosleep]=162 [162]=nanosleep [__nr_mremap]=163 [163]=mremap | |
[__nr_setresuid]=164 [164]=setresuid [__nr_getresuid]=165 [165]=getresuid | |
[__nr_vm86]=166 [166]=vm86 [__nr_query_module]=167 [167]=query_module | |
[__nr_poll]=168 [168]=poll [__nr_nfsservctl]=169 [169]=nfsservctl | |
[__nr_setresgid]=170 [170]=setresgid [__nr_getresgid]=171 [171]=getresgid | |
[__nr_prctl]=172 [172]=prctl [__nr_rt_sigreturn]=173 [173]=rt_sigreturn | |
[__nr_rt_sigaction]=174 [174]=rt_sigaction [__nr_rt_sigprocmask]=175 [175]=rt_sigprocmask | |
[__nr_rt_sigpending]=176 [176]=rt_sigpending [__nr_rt_sigtimedwait]=177 [177]=rt_sigtimedwait | |
[__nr_rt_sigqueueinfo]=178 [178]=rt_sigqueueinfo [__nr_rt_sigsuspend]=179 [179]=rt_sigsuspend | |
[__nr_pread64]=180 [180]=pread64 [__nr_pwrite64]=181 [181]=pwrite64 | |
[__nr_chown]=182 [182]=chown [__nr_getcwd]=183 [183]=getcwd | |
[__nr_capget]=184 [184]=capget [__nr_capset]=185 [185]=capset | |
[__nr_sigaltstack]=186 [186]=sigaltstack [__nr_sendfile]=187 [187]=sendfile | |
[__nr_getpmsg]=188 [188]=getpmsg [__nr_putpmsg]=189 [189]=putpmsg | |
[__nr_vfork]=190 [190]=vfork [__nr_ugetrlimit]=191 [191]=ugetrlimit | |
[__nr_mmap2]=192 [192]=mmap2 [__nr_truncate64]=193 [193]=truncate64 | |
[__nr_ftruncate64]=194 [194]=ftruncate64 [__nr_stat64]=195 [195]=stat64 | |
[__nr_lstat64]=196 [196]=lstat64 [__nr_fstat64]=197 [197]=fstat64 | |
[__nr_lchown32]=198 [198]=lchown32 [__nr_getuid32]=199 [199]=getuid32 | |
[__nr_getgid32]=200 [200]=getgid32 [__nr_geteuid32]=201 [201]=geteuid32 | |
[__nr_getegid32]=202 [202]=getegid32 [__nr_setreuid32]=203 [203]=setreuid32 | |
[__nr_setregid32]=204 [204]=setregid32 [__nr_getgroups32]=205 [205]=getgroups32 | |
[__nr_setgroups32]=206 [206]=setgroups32 [__nr_fchown32]=207 [207]=fchown32 | |
[__nr_setresuid32]=208 [208]=setresuid32 [__nr_getresuid32]=209 [209]=getresuid32 | |
[__nr_setresgid32]=210 [210]=setresgid32 [__nr_getresgid32]=211 [211]=getresgid32 | |
[__nr_chown32]=212 [212]=chown32 [__nr_setuid32]=213 [213]=setuid32 | |
[__nr_setgid32]=214 [214]=setgid32 [__nr_setfsuid32]=215 [215]=setfsuid32 | |
[__nr_setfsgid32]=216 [216]=setfsgid32 [__nr_pivot_root]=217 [217]=pivot_root | |
[__nr_mincore]=218 [218]=mincore [__nr_madvise]=219 [219]=madvise | |
[__nr_getdents64]=220 [220]=getdents64 [__nr_fcntl64]=221 [221]=fcntl64 | |
[__nr_gettid]=224 [224]=gettid [__nr_readahead]=225 [225]=readahead | |
[__nr_setxattr]=226 [226]=setxattr [__nr_lsetxattr]=227 [227]=lsetxattr | |
[__nr_fsetxattr]=228 [228]=fsetxattr [__nr_getxattr]=229 [229]=getxattr | |
[__nr_lgetxattr]=230 [230]=lgetxattr [__nr_fgetxattr]=231 [231]=fgetxattr | |
[__nr_listxattr]=232 [232]=listxattr [__nr_llistxattr]=233 [233]=llistxattr | |
[__nr_flistxattr]=234 [234]=flistxattr [__nr_removexattr]=235 [235]=removexattr | |
[__nr_lremovexattr]=236 [236]=lremovexattr [__nr_fremovexattr]=237 [237]=fremovexattr | |
[__nr_tkill]=238 [238]=tkill [__nr_sendfile64]=239 [239]=sendfile64 | |
[__nr_futex]=240 [240]=futex [__nr_sched_setaffinity]=241 [241]=sched_setaffinity | |
[__nr_sched_getaffinity]=242 [242]=sched_getaffinity [__nr_set_thread_area]=243 [243]=set_thread_area | |
[__nr_get_thread_area]=244 [244]=get_thread_area [__nr_io_setup]=245 [245]=io_setup | |
[__nr_io_destroy]=246 [246]=io_destroy [__nr_io_getevents]=247 [247]=io_getevents | |
[__nr_io_submit]=248 [248]=io_submit [__nr_io_cancel]=249 [249]=io_cancel | |
[__nr_fadvise64]=250 [250]=fadvise64 [__nr_exit_group]=252 [252]=exit_group | |
[__nr_lookup_dcookie]=253 [253]=lookup_dcookie [__nr_epoll_create]=254 [254]=epoll_create | |
[__nr_epoll_ctl]=255 [255]=epoll_ctl [__nr_epoll_wait]=256 [256]=epoll_wait | |
[__nr_remap_file_pages]=257 [257]=remap_file_pages [__nr_set_tid_address]=258 [258]=set_tid_address | |
[__nr_timer_create]=259 [259]=timer_create [__nr_timer_settime]=260 [260]=timer_settime | |
[__nr_timer_gettime]=261 [261]=timer_gettime [__nr_timer_getoverrun]=262 [262]=timer_getoverrun | |
[__nr_timer_delete]=263 [263]=timer_delete [__nr_clock_settime]=264 [264]=clock_settime | |
[__nr_clock_gettime]=265 [265]=clock_gettime [__nr_clock_getres]=266 [266]=clock_getres | |
[__nr_clock_nanosleep]=267 [267]=clock_nanosleep [__nr_statfs64]=268 [268]=statfs64 | |
[__nr_fstatfs64]=269 [269]=fstatfs64 [__nr_tgkill]=270 [270]=tgkill | |
[__nr_utimes]=271 [271]=utimes [__nr_fadvise64_64]=272 [272]=fadvise64_64 | |
[__nr_vserver]=273 [273]=vserver [__nr_mbind]=274 [274]=mbind | |
[__nr_get_mempolicy]=275 [275]=get_mempolicy [__nr_set_mempolicy]=276 [276]=set_mempolicy | |
[__nr_mq_open]=277 [277]=mq_open [__nr_mq_unlink]=278 [278]=mq_unlink | |
[__nr_mq_timedsend]=279 [279]=mq_timedsend [__nr_mq_timedreceive]=280 [280]=mq_timedreceive | |
[__nr_mq_notify]=281 [281]=mq_notify [__nr_mq_getsetattr]=282 [282]=mq_getsetattr | |
[__nr_kexec_load]=283 [283]=kexec_load [__nr_waitid]=284 [284]=waitid | |
[__nr_add_key]=286 [286]=add_key [__nr_request_key]=287 [287]=request_key | |
[__nr_keyctl]=288 [288]=keyctl [__nr_ioprio_set]=289 [289]=ioprio_set | |
[__nr_ioprio_get]=290 [290]=ioprio_get [__nr_inotify_init]=291 [291]=inotify_init | |
[__nr_inotify_add_watch]=292 [292]=inotify_add_watch [__nr_inotify_rm_watch]=293 [293]=inotify_rm_watch | |
[__nr_migrate_pages]=294 [294]=migrate_pages [__nr_openat]=295 [295]=openat | |
[__nr_mkdirat]=296 [296]=mkdirat [__nr_mknodat]=297 [297]=mknodat | |
[__nr_fchownat]=298 [298]=fchownat [__nr_futimesat]=299 [299]=futimesat | |
[__nr_fstatat64]=300 [300]=fstatat64 [__nr_unlinkat]=301 [301]=unlinkat | |
[__nr_renameat]=302 [302]=renameat [__nr_linkat]=303 [303]=linkat | |
[__nr_symlinkat]=304 [304]=symlinkat [__nr_readlinkat]=305 [305]=readlinkat | |
[__nr_fchmodat]=306 [306]=fchmodat [__nr_faccessat]=307 [307]=faccessat | |
[__nr_pselect6]=308 [308]=pselect6 [__nr_ppoll]=309 [309]=ppoll | |
[__nr_unshare]=310 [310]=unshare [__nr_set_robust_list]=311 [311]=set_robust_list | |
[__nr_get_robust_list]=312 [312]=get_robust_list [__nr_splice]=313 [313]=splice | |
[__nr_sync_file_range]=314 [314]=sync_file_range [__nr_tee]=315 [315]=tee | |
[__nr_vmsplice]=316 [316]=vmsplice [__nr_move_pages]=317 [317]=move_pages | |
[__nr_getcpu]=318 [318]=getcpu [__nr_epoll_pwait]=319 [319]=epoll_pwait | |
[__nr_utimensat]=320 [320]=utimensat [__nr_signalfd]=321 [321]=signalfd | |
[__nr_timerfd_create]=322 [322]=timerfd_create [__nr_eventfd]=323 [323]=eventfd | |
[__nr_fallocate]=324 [324]=fallocate [__nr_timerfd_settime]=325 [325]=timerfd_settime | |
[__nr_timerfd_gettime]=326 [326]=timerfd_gettime [__nr_signalfd4]=327 [327]=signalfd4 | |
[__nr_eventfd2]=328 [328]=eventfd2 [__nr_epoll_create1]=329 [329]=epoll_create1 | |
[__nr_dup3]=330 [330]=dup3 [__nr_pipe2]=331 [331]=pipe2 | |
[__nr_inotify_init1]=332 [332]=inotify_init1 [__nr_preadv]=333 [333]=preadv | |
[__nr_pwritev]=334 [334]=pwritev [__nr_rt_tgsigqueueinfo]=335 [335]=rt_tgsigqueueinfo | |
[__nr_perf_event_open]=336 [336]=perf_event_open [__nr_recvmmsg]=337 [337]=recvmmsg | |
[__nr_fanotify_init]=338 [338]=fanotify_init [__nr_fanotify_mark]=339 [339]=fanotify_mark | |
[__nr_prlimit64]=340 [340]=prlimit64 [__nr_name_to_handle_at]=341 [341]=name_to_handle_at | |
[__nr_open_by_handle_at]=342 [342]=open_by_handle_at [__nr_clock_adjtime]=343 [343]=clock_adjtime | |
[__nr_syncfs]=344 [344]=syncfs [__nr_sendmmsg]=345 [345]=sendmmsg | |
[__nr_setns]=346 [346]=setns [__nr_process_vm_readv]=347 [347]=process_vm_readv | |
[__nr_process_vm_writev]=348 [348]=process_vm_writev [__nr_kcmp]=349 [349]=kcmp | |
[__nr_finit_module]=350 [350]=finit_module [__nr_sched_setattr]=351 [351]=sched_setattr | |
[__nr_sched_getattr]=352 [352]=sched_getattr [__nr_renameat2]=353 [353]=renameat2 | |
[__nr_seccomp]=354 [354]=seccomp [__nr_getrandom]=355 [355]=getrandom | |
[__nr_memfd_create]=356 [356]=memfd_create [__nr_bpf]=357 [357]=bpf | |
[__nr_execveat]=358 [358]=execveat [__nr_socket]=359 [359]=socket | |
[__nr_socketpair]=360 [360]=socketpair [__nr_bind]=361 [361]=bind | |
[__nr_connect]=362 [362]=connect [__nr_listen]=363 [363]=listen | |
[__nr_accept4]=364 [364]=accept4 [__nr_getsockopt]=365 [365]=getsockopt | |
[__nr_setsockopt]=366 [366]=setsockopt [__nr_getsockname]=367 [367]=getsockname | |
[__nr_getpeername]=368 [368]=getpeername [__nr_sendto]=369 [369]=sendto | |
[__nr_sendmsg]=370 [370]=sendmsg [__nr_recvfrom]=371 [371]=recvfrom | |
[__nr_recvmsg]=372 [372]=recvmsg [__nr_shutdown]=373 [373]=shutdown | |
[__nr_userfaultfd]=374 [374]=userfaultfd [__nr_membarrier]=375 [375]=membarrier | |
[__nr_mlock2]=376 [376]=mlock2 [__nr_copy_file_range]=377 [377]=copy_file_range | |
[__nr_preadv2]=378 [378]=preadv2 [__nr_pwritev2]=379 [379]=pwritev2 | |
[__nr_pkey_mprotect]=380 [380]=pkey_mprotect [__nr_pkey_alloc]=381 [381]=pkey_alloc | |
[__nr_pkey_free]=382 [382]=pkey_free [__nr_statx]=383 [383]=statx | |
[__nr_arch_prctl]=384 [384]=arch_prctl | |
) | |
declare -A syscallsarm64=( | |
[__nr_io_setup]=0 [0]=io_setup [__nr_io_destroy]=1 [1]=io_destroy | |
[__nr_io_submit]=2 [2]=io_submit [__nr_io_cancel]=3 [3]=io_cancel | |
[__nr_io_getevents]=4 [4]=io_getevents [__nr_setxattr]=5 [5]=setxattr | |
[__nr_lsetxattr]=6 [6]=lsetxattr [__nr_fsetxattr]=7 [7]=fsetxattr | |
[__nr_getxattr]=8 [8]=getxattr [__nr_lgetxattr]=9 [9]=lgetxattr | |
[__nr_fgetxattr]=10 [10]=fgetxattr [__nr_listxattr]=11 [11]=listxattr | |
[__nr_llistxattr]=12 [12]=llistxattr [__nr_flistxattr]=13 [13]=flistxattr | |
[__nr_removexattr]=14 [14]=removexattr [__nr_lremovexattr]=15 [15]=lremovexattr | |
[__nr_fremovexattr]=16 [16]=fremovexattr [__nr_getcwd]=17 [17]=getcwd | |
[__nr_lookup_dcookie]=18 [18]=lookup_dcookie [__nr_eventfd2]=19 [19]=eventfd2 | |
[__nr_epoll_create1]=20 [20]=epoll_create1 [__nr_epoll_ctl]=21 [21]=epoll_ctl | |
[__nr_epoll_pwait]=22 [22]=epoll_pwait [__nr_dup]=23 [23]=dup | |
[__nr_dup3]=24 [24]=dup3 [__nr_fcntl]=25 [25]=fcntl | |
[__nr_inotify_init1]=26 [26]=inotify_init1 [__nr_inotify_add_watch]=27 [27]=inotify_add_watch | |
[__nr_inotify_rm_watch]=28 [28]=inotify_rm_watch [__nr_ioctl]=29 [29]=ioctl | |
[__nr_ioprio_set]=30 [30]=ioprio_set [__nr_ioprio_get]=31 [31]=ioprio_get | |
[__nr_flock]=32 [32]=flock [__nr_mknodat]=33 [33]=mknodat | |
[__nr_mkdirat]=34 [34]=mkdirat [__nr_unlinkat]=35 [35]=unlinkat | |
[__nr_symlinkat]=36 [36]=symlinkat [__nr_linkat]=37 [37]=linkat | |
[__nr_renameat]=38 [38]=renameat [__nr_umount2]=39 [39]=umount2 | |
[__nr_mount]=40 [40]=mount [__nr_pivot_root]=41 [41]=pivot_root | |
[__nr_nfsservctl]=42 [42]=nfsservctl [__nr_statfs]=43 [43]=statfs | |
[__nr_fstatfs]=44 [44]=fstatfs [__nr_truncate]=45 [45]=truncate | |
[__nr_ftruncate]=46 [46]=ftruncate [__nr_fallocate]=47 [47]=fallocate | |
[__nr_faccessat]=48 [48]=faccessat [__nr_chdir]=49 [49]=chdir | |
[__nr_fchdir]=50 [50]=fchdir [__nr_chroot]=51 [51]=chroot | |
[__nr_fchmod]=52 [52]=fchmod [__nr_fchmodat]=53 [53]=fchmodat | |
[__nr_fchownat]=54 [54]=fchownat [__nr_fchown]=55 [55]=fchown | |
[__nr_openat]=56 [56]=openat [__nr_close]=57 [57]=close | |
[__nr_vhangup]=58 [58]=vhangup [__nr_pipe2]=59 [59]=pipe2 | |
[__nr_quotactl]=60 [60]=quotactl [__nr_getdents64]=61 [61]=getdents64 | |
[__nr_lseek]=62 [62]=lseek [__nr_read]=63 [63]=read | |
[__nr_write]=64 [64]=write [__nr_readv]=65 [65]=readv | |
[__nr_writev]=66 [66]=writev [__nr_pread64]=67 [67]=pread64 | |
[__nr_pwrite64]=68 [68]=pwrite64 [__nr_preadv]=69 [69]=preadv | |
[__nr_pwritev]=70 [70]=pwritev [__nr_sendfile]=71 [71]=sendfile | |
[__nr_pselect6]=72 [72]=pselect6 [__nr_ppoll]=73 [73]=ppoll | |
[__nr_signalfd4]=74 [74]=signalfd4 [__nr_vmsplice]=75 [75]=vmsplice | |
[__nr_splice]=76 [76]=splice [__nr_tee]=77 [77]=tee | |
[__nr_readlinkat]=78 [78]=readlinkat [__nr_newfstatat]=79 [79]=newfstatat | |
[__nr_fstat]=80 [80]=fstat [__nr_sync]=81 [81]=sync | |
[__nr_fsync]=82 [82]=fsync [__nr_fdatasync]=83 [83]=fdatasync | |
[__nr_sync_file_range]=84 [84]=sync_file_range [__nr_timerfd_create]=85 [85]=timerfd_create | |
[__nr_timerfd_settime]=86 [86]=timerfd_settime [__nr_timerfd_gettime]=87 [87]=timerfd_gettime | |
[__nr_utimensat]=88 [88]=utimensat [__nr_acct]=89 [89]=acct | |
[__nr_capget]=90 [90]=capget [__nr_capset]=91 [91]=capset | |
[__nr_personality]=92 [92]=personality [__nr_exit]=93 [93]=exit | |
[__nr_exit_group]=94 [94]=exit_group [__nr_waitid]=95 [95]=waitid | |
[__nr_set_tid_address]=96 [96]=set_tid_address [__nr_unshare]=97 [97]=unshare | |
[__nr_futex]=98 [98]=futex [__nr_set_robust_list]=99 [99]=set_robust_list | |
[__nr_get_robust_list]=100 [100]=get_robust_list [__nr_nanosleep]=101 [101]=nanosleep | |
[__nr_getitimer]=102 [102]=getitimer [__nr_setitimer]=103 [103]=setitimer | |
[__nr_kexec_load]=104 [104]=kexec_load [__nr_init_module]=105 [105]=init_module | |
[__nr_delete_module]=106 [106]=delete_module [__nr_timer_create]=107 [107]=timer_create | |
[__nr_timer_gettime]=108 [108]=timer_gettime [__nr_timer_getoverrun]=109 [109]=timer_getoverrun | |
[__nr_timer_settime]=110 [110]=timer_settime [__nr_timer_delete]=111 [111]=timer_delete | |
[__nr_clock_settime]=112 [112]=clock_settime [__nr_clock_gettime]=113 [113]=clock_gettime | |
[__nr_clock_getres]=114 [114]=clock_getres [__nr_clock_nanosleep]=115 [115]=clock_nanosleep | |
[__nr_syslog]=116 [116]=syslog [__nr_ptrace]=117 [117]=ptrace | |
[__nr_sched_setparam]=118 [118]=sched_setparam [__nr_sched_setscheduler]=119 [119]=sched_setscheduler | |
[__nr_sched_getscheduler]=120 [120]=sched_getscheduler [__nr_sched_getparam]=121 [121]=sched_getparam | |
[__nr_sched_setaffinity]=122 [122]=sched_setaffinity [__nr_sched_getaffinity]=123 [123]=sched_getaffinity | |
[__nr_sched_yield]=124 [124]=sched_yield [__nr_sched_get_priority_max]=125 [125]=sched_get_priority_max | |
[__nr_sched_get_priority_min]=126 [126]=sched_get_priority_min [__nr_sched_rr_get_interval]=127 [127]=sched_rr_get_interval | |
[__nr_restart_syscall]=128 [128]=restart_syscall [__nr_kill]=129 [129]=kill | |
[__nr_tkill]=130 [130]=tkill [__nr_tgkill]=131 [131]=tgkill | |
[__nr_sigaltstack]=132 [132]=sigaltstack [__nr_rt_sigsuspend]=133 [133]=rt_sigsuspend | |
[__nr_rt_sigaction]=134 [134]=rt_sigaction [__nr_rt_sigprocmask]=135 [135]=rt_sigprocmask | |
[__nr_rt_sigpending]=136 [136]=rt_sigpending [__nr_rt_sigtimedwait]=137 [137]=rt_sigtimedwait | |
[__nr_rt_sigqueueinfo]=138 [138]=rt_sigqueueinfo [__nr_rt_sigreturn]=139 [139]=rt_sigreturn | |
[__nr_setpriority]=140 [140]=setpriority [__nr_getpriority]=141 [141]=getpriority | |
[__nr_reboot]=142 [142]=reboot [__nr_setregid]=143 [143]=setregid | |
[__nr_setgid]=144 [144]=setgid [__nr_setreuid]=145 [145]=setreuid | |
[__nr_setuid]=146 [146]=setuid [__nr_setresuid]=147 [147]=setresuid | |
[__nr_getresuid]=148 [148]=getresuid [__nr_setresgid]=149 [149]=setresgid | |
[__nr_getresgid]=150 [150]=getresgid [__nr_setfsuid]=151 [151]=setfsuid | |
[__nr_setfsgid]=152 [152]=setfsgid [__nr_times]=153 [153]=times | |
[__nr_setpgid]=154 [154]=setpgid [__nr_getpgid]=155 [155]=getpgid | |
[__nr_getsid]=156 [156]=getsid [__nr_setsid]=157 [157]=setsid | |
[__nr_getgroups]=158 [158]=getgroups [__nr_setgroups]=159 [159]=setgroups | |
[__nr_uname]=160 [160]=uname [__nr_sethostname]=161 [161]=sethostname | |
[__nr_setdomainname]=162 [162]=setdomainname [__nr_getrlimit]=163 [163]=getrlimit | |
[__nr_setrlimit]=164 [164]=setrlimit [__nr_getrusage]=165 [165]=getrusage | |
[__nr_umask]=166 [166]=umask [__nr_prctl]=167 [167]=prctl | |
[__nr_getcpu]=168 [168]=getcpu [__nr_gettimeofday]=169 [169]=gettimeofday | |
[__nr_settimeofday]=170 [170]=settimeofday [__nr_adjtimex]=171 [171]=adjtimex | |
[__nr_getpid]=172 [172]=getpid [__nr_getppid]=173 [173]=getppid | |
[__nr_getuid]=174 [174]=getuid [__nr_geteuid]=175 [175]=geteuid | |
[__nr_getgid]=176 [176]=getgid [__nr_getegid]=177 [177]=getegid | |
[__nr_gettid]=178 [178]=gettid [__nr_sysinfo]=179 [179]=sysinfo | |
[__nr_mq_open]=180 [180]=mq_open [__nr_mq_unlink]=181 [181]=mq_unlink | |
[__nr_mq_timedsend]=182 [182]=mq_timedsend [__nr_mq_timedreceive]=183 [183]=mq_timedreceive | |
[__nr_mq_notify]=184 [184]=mq_notify [__nr_mq_getsetattr]=185 [185]=mq_getsetattr | |
[__nr_msgget]=186 [186]=msgget [__nr_msgctl]=187 [187]=msgctl | |
[__nr_msgrcv]=188 [188]=msgrcv [__nr_msgsnd]=189 [189]=msgsnd | |
[__nr_semget]=190 [190]=semget [__nr_semctl]=191 [191]=semctl | |
[__nr_semtimedop]=192 [192]=semtimedop [__nr_semop]=193 [193]=semop | |
[__nr_shmget]=194 [194]=shmget [__nr_shmctl]=195 [195]=shmctl | |
[__nr_shmat]=196 [196]=shmat [__nr_shmdt]=197 [197]=shmdt | |
[__nr_socket]=198 [198]=socket [__nr_socketpair]=199 [199]=socketpair | |
[__nr_bind]=200 [200]=bind [__nr_listen]=201 [201]=listen | |
[__nr_accept]=202 [202]=accept [__nr_connect]=203 [203]=connect | |
[__nr_getsockname]=204 [204]=getsockname [__nr_getpeername]=205 [205]=getpeername | |
[__nr_sendto]=206 [206]=sendto [__nr_recvfrom]=207 [207]=recvfrom | |
[__nr_setsockopt]=208 [208]=setsockopt [__nr_getsockopt]=209 [209]=getsockopt | |
[__nr_shutdown]=210 [210]=shutdown [__nr_sendmsg]=211 [211]=sendmsg | |
[__nr_recvmsg]=212 [212]=recvmsg [__nr_readahead]=213 [213]=readahead | |
[__nr_brk]=214 [214]=brk [__nr_munmap]=215 [215]=munmap | |
[__nr_mremap]=216 [216]=mremap [__nr_add_key]=217 [217]=add_key | |
[__nr_request_key]=218 [218]=request_key [__nr_keyctl]=219 [219]=keyctl | |
[__nr_clone]=220 [220]=clone [__nr_execve]=221 [221]=execve | |
[__nr_mmap]=222 [222]=mmap [__nr_fadvise64]=223 [223]=fadvise64 | |
[__nr_swapon]=224 [224]=swapon [__nr_swapoff]=225 [225]=swapoff | |
[__nr_mprotect]=226 [226]=mprotect [__nr_msync]=227 [227]=msync | |
[__nr_mlock]=228 [228]=mlock [__nr_munlock]=229 [229]=munlock | |
[__nr_mlockall]=230 [230]=mlockall [__nr_munlockall]=231 [231]=munlockall | |
[__nr_mincore]=232 [232]=mincore [__nr_madvise]=233 [233]=madvise | |
[__nr_remap_file_pages]=234 [234]=remap_file_pages [__nr_mbind]=235 [235]=mbind | |
[__nr_get_mempolicy]=236 [236]=get_mempolicy [__nr_set_mempolicy]=237 [237]=set_mempolicy | |
[__nr_migrate_pages]=238 [238]=migrate_pages [__nr_move_pages]=239 [239]=move_pages | |
[__nr_rt_tgsigqueueinfo]=240 [240]=rt_tgsigqueueinfo [__nr_perf_event_open]=241 [241]=perf_event_open | |
[__nr_accept4]=242 [242]=accept4 [__nr_recvmmsg]=243 [243]=recvmmsg | |
[__nr_wait4]=260 [260]=wait4 [__nr_prlimit64]=261 [261]=prlimit64 | |
[__nr_fanotify_init]=262 [262]=fanotify_init [__nr_fanotify_mark]=263 [263]=fanotify_mark | |
[__nr_name_to_handle_at]=264 [264]=name_to_handle_at [__nr_open_by_handle_at]=265 [265]=open_by_handle_at | |
[__nr_clock_adjtime]=266 [266]=clock_adjtime [__nr_syncfs]=267 [267]=syncfs | |
[__nr_setns]=268 [268]=setns [__nr_sendmmsg]=269 [269]=sendmmsg | |
[__nr_process_vm_readv]=270 [270]=process_vm_readv [__nr_process_vm_writev]=271 [271]=process_vm_writev | |
[__nr_kcmp]=272 [272]=kcmp [__nr_finit_module]=273 [273]=finit_module | |
[__nr_sched_setattr]=274 [274]=sched_setattr [__nr_sched_getattr]=275 [275]=sched_getattr | |
[__nr_renameat2]=276 [276]=renameat2 [__nr_seccomp]=277 [277]=seccomp | |
[__nr_getrandom]=278 [278]=getrandom [__nr_memfd_create]=279 [279]=memfd_create | |
[__nr_bpf]=280 [280]=bpf [__nr_execveat]=281 [281]=execveat | |
[__nr_userfaultfd]=282 [282]=userfaultfd [__nr_membarrier]=283 [283]=membarrier | |
[__nr_mlock2]=284 [284]=mlock2 [__nr_copy_file_range]=285 [285]=copy_file_range | |
[__nr_preadv2]=286 [286]=preadv2 [__nr_pwritev2]=287 [287]=pwritev2 | |
[__nr_pkey_mprotect]=288 [288]=pkey_mprotect [__nr_pkey_alloc]=289 [289]=pkey_alloc | |
[__nr_pkey_free]=290 [290]=pkey_free [__nr_statx]=291 [291]=statx | |
) | |
declare -A syscallsarm32=( | |
[__nr_restart_syscall]=0 [0]=restart_syscall [__nr_exit]=1 [1]=exit | |
[__nr_fork]=2 [2]=fork [__nr_read]=3 [3]=read | |
[__nr_write]=4 [4]=write [__nr_open]=5 [5]=open | |
[__nr_close]=6 [6]=close [__nr_creat]=8 [8]=creat | |
[__nr_link]=9 [9]=link [__nr_unlink]=10 [10]=unlink | |
[__nr_execve]=11 [11]=execve [__nr_chdir]=12 [12]=chdir | |
[__nr_mknod]=14 [14]=mknod [__nr_chmod]=15 [15]=chmod | |
[__nr_lchown]=16 [16]=lchown [__nr_lseek]=19 [19]=lseek | |
[__nr_getpid]=20 [20]=getpid [__nr_mount]=21 [21]=mount | |
[__nr_setuid]=23 [23]=setuid [__nr_getuid]=24 [24]=getuid | |
[__nr_ptrace]=26 [26]=ptrace [__nr_pause]=29 [29]=pause | |
[__nr_access]=33 [33]=access [__nr_nice]=34 [34]=nice | |
[__nr_sync]=36 [36]=sync [__nr_kill]=37 [37]=kill | |
[__nr_rename]=38 [38]=rename [__nr_mkdir]=39 [39]=mkdir | |
[__nr_rmdir]=40 [40]=rmdir [__nr_dup]=41 [41]=dup | |
[__nr_pipe]=42 [42]=pipe [__nr_times]=43 [43]=times | |
[__nr_brk]=45 [45]=brk [__nr_setgid]=46 [46]=setgid | |
[__nr_getgid]=47 [47]=getgid [__nr_geteuid]=49 [49]=geteuid | |
[__nr_getegid]=50 [50]=getegid [__nr_acct]=51 [51]=acct | |
[__nr_umount2]=52 [52]=umount2 [__nr_ioctl]=54 [54]=ioctl | |
[__nr_fcntl]=55 [55]=fcntl [__nr_setpgid]=57 [57]=setpgid | |
[__nr_umask]=60 [60]=umask [__nr_chroot]=61 [61]=chroot | |
[__nr_ustat]=62 [62]=ustat [__nr_dup2]=63 [63]=dup2 | |
[__nr_getppid]=64 [64]=getppid [__nr_getpgrp]=65 [65]=getpgrp | |
[__nr_setsid]=66 [66]=setsid [__nr_sigaction]=67 [67]=sigaction | |
[__nr_setreuid]=70 [70]=setreuid [__nr_setregid]=71 [71]=setregid | |
[__nr_sigsuspend]=72 [72]=sigsuspend [__nr_sigpending]=73 [73]=sigpending | |
[__nr_sethostname]=74 [74]=sethostname [__nr_setrlimit]=75 [75]=setrlimit | |
[__nr_getrusage]=77 [77]=getrusage [__nr_gettimeofday]=78 [78]=gettimeofday | |
[__nr_settimeofday]=79 [79]=settimeofday [__nr_getgroups]=80 [80]=getgroups | |
[__nr_setgroups]=81 [81]=setgroups [__nr_symlink]=83 [83]=symlink | |
[__nr_readlink]=85 [85]=readlink [__nr_uselib]=86 [86]=uselib | |
[__nr_swapon]=87 [87]=swapon [__nr_reboot]=88 [88]=reboot | |
[__nr_munmap]=91 [91]=munmap [__nr_truncate]=92 [92]=truncate | |
[__nr_ftruncate]=93 [93]=ftruncate [__nr_fchmod]=94 [94]=fchmod | |
[__nr_fchown]=95 [95]=fchown [__nr_getpriority]=96 [96]=getpriority | |
[__nr_setpriority]=97 [97]=setpriority [__nr_statfs]=99 [99]=statfs | |
[__nr_fstatfs]=100 [100]=fstatfs [__nr_syslog]=103 [103]=syslog | |
[__nr_setitimer]=104 [104]=setitimer [__nr_getitimer]=105 [105]=getitimer | |
[__nr_stat]=106 [106]=stat [__nr_lstat]=107 [107]=lstat | |
[__nr_fstat]=108 [108]=fstat [__nr_vhangup]=111 [111]=vhangup | |
[__nr_wait4]=114 [114]=wait4 [__nr_swapoff]=115 [115]=swapoff | |
[__nr_sysinfo]=116 [116]=sysinfo [__nr_fsync]=118 [118]=fsync | |
[__nr_sigreturn]=119 [119]=sigreturn [__nr_clone]=120 [120]=clone | |
[__nr_setdomainname]=121 [121]=setdomainname [__nr_uname]=122 [122]=uname | |
[__nr_adjtimex]=124 [124]=adjtimex [__nr_mprotect]=125 [125]=mprotect | |
[__nr_sigprocmask]=126 [126]=sigprocmask [__nr_init_module]=128 [128]=init_module | |
[__nr_delete_module]=129 [129]=delete_module [__nr_quotactl]=131 [131]=quotactl | |
[__nr_getpgid]=132 [132]=getpgid [__nr_fchdir]=133 [133]=fchdir | |
[__nr_bdflush]=134 [134]=bdflush [__nr_sysfs]=135 [135]=sysfs | |
[__nr_personality]=136 [136]=personality [__nr_setfsuid]=138 [138]=setfsuid | |
[__nr_setfsgid]=139 [139]=setfsgid [__nr__llseek]=140 [140]=_llseek | |
[__nr_getdents]=141 [141]=getdents [__nr__newselect]=142 [142]=_newselect | |
[__nr_flock]=143 [143]=flock [__nr_msync]=144 [144]=msync | |
[__nr_readv]=145 [145]=readv [__nr_writev]=146 [146]=writev | |
[__nr_getsid]=147 [147]=getsid [__nr_fdatasync]=148 [148]=fdatasync | |
[__nr__sysctl]=149 [149]=_sysctl [__nr_mlock]=150 [150]=mlock | |
[__nr_munlock]=151 [151]=munlock [__nr_mlockall]=152 [152]=mlockall | |
[__nr_munlockall]=153 [153]=munlockall [__nr_sched_setparam]=154 [154]=sched_setparam | |
[__nr_sched_getparam]=155 [155]=sched_getparam [__nr_sched_setscheduler]=156 [156]=sched_setscheduler | |
[__nr_sched_getscheduler]=157 [157]=sched_getscheduler [__nr_sched_yield]=158 [158]=sched_yield | |
[__nr_sched_get_priority_max]=159 [159]=sched_get_priority_max [__nr_sched_get_priority_min]=160 [160]=sched_get_priority_min | |
[__nr_sched_rr_get_interval]=161 [161]=sched_rr_get_interval [__nr_nanosleep]=162 [162]=nanosleep | |
[__nr_mremap]=163 [163]=mremap [__nr_setresuid]=164 [164]=setresuid | |
[__nr_getresuid]=165 [165]=getresuid [__nr_poll]=168 [168]=poll | |
[__nr_nfsservctl]=169 [169]=nfsservctl [__nr_setresgid]=170 [170]=setresgid | |
[__nr_getresgid]=171 [171]=getresgid [__nr_prctl]=172 [172]=prctl | |
[__nr_rt_sigreturn]=173 [173]=rt_sigreturn [__nr_rt_sigaction]=174 [174]=rt_sigaction | |
[__nr_rt_sigprocmask]=175 [175]=rt_sigprocmask [__nr_rt_sigpending]=176 [176]=rt_sigpending | |
[__nr_rt_sigtimedwait]=177 [177]=rt_sigtimedwait [__nr_rt_sigqueueinfo]=178 [178]=rt_sigqueueinfo | |
[__nr_rt_sigsuspend]=179 [179]=rt_sigsuspend [__nr_pread64]=180 [180]=pread64 | |
[__nr_pwrite64]=181 [181]=pwrite64 [__nr_chown]=182 [182]=chown | |
[__nr_getcwd]=183 [183]=getcwd [__nr_capget]=184 [184]=capget | |
[__nr_capset]=185 [185]=capset [__nr_sigaltstack]=186 [186]=sigaltstack | |
[__nr_sendfile]=187 [187]=sendfile [__nr_vfork]=190 [190]=vfork | |
[__nr_ugetrlimit]=191 [191]=ugetrlimit [__nr_mmap2]=192 [192]=mmap2 | |
[__nr_truncate64]=193 [193]=truncate64 [__nr_ftruncate64]=194 [194]=ftruncate64 | |
[__nr_stat64]=195 [195]=stat64 [__nr_lstat64]=196 [196]=lstat64 | |
[__nr_fstat64]=197 [197]=fstat64 [__nr_lchown32]=198 [198]=lchown32 | |
[__nr_getuid32]=199 [199]=getuid32 [__nr_getgid32]=200 [200]=getgid32 | |
[__nr_geteuid32]=201 [201]=geteuid32 [__nr_getegid32]=202 [202]=getegid32 | |
[__nr_setreuid32]=203 [203]=setreuid32 [__nr_setregid32]=204 [204]=setregid32 | |
[__nr_getgroups32]=205 [205]=getgroups32 [__nr_setgroups32]=206 [206]=setgroups32 | |
[__nr_fchown32]=207 [207]=fchown32 [__nr_setresuid32]=208 [208]=setresuid32 | |
[__nr_getresuid32]=209 [209]=getresuid32 [__nr_setresgid32]=210 [210]=setresgid32 | |
[__nr_getresgid32]=211 [211]=getresgid32 [__nr_chown32]=212 [212]=chown32 | |
[__nr_setuid32]=213 [213]=setuid32 [__nr_setgid32]=214 [214]=setgid32 | |
[__nr_setfsuid32]=215 [215]=setfsuid32 [__nr_setfsgid32]=216 [216]=setfsgid32 | |
[__nr_getdents64]=217 [217]=getdents64 [__nr_pivot_root]=218 [218]=pivot_root | |
[__nr_mincore]=219 [219]=mincore [__nr_madvise]=220 [220]=madvise | |
[__nr_fcntl64]=221 [221]=fcntl64 [__nr_gettid]=224 [224]=gettid | |
[__nr_readahead]=225 [225]=readahead [__nr_setxattr]=226 [226]=setxattr | |
[__nr_lsetxattr]=227 [227]=lsetxattr [__nr_fsetxattr]=228 [228]=fsetxattr | |
[__nr_getxattr]=229 [229]=getxattr [__nr_lgetxattr]=230 [230]=lgetxattr | |
[__nr_fgetxattr]=231 [231]=fgetxattr [__nr_listxattr]=232 [232]=listxattr | |
[__nr_llistxattr]=233 [233]=llistxattr [__nr_flistxattr]=234 [234]=flistxattr | |
[__nr_removexattr]=235 [235]=removexattr [__nr_lremovexattr]=236 [236]=lremovexattr | |
[__nr_fremovexattr]=237 [237]=fremovexattr [__nr_tkill]=238 [238]=tkill | |
[__nr_sendfile64]=239 [239]=sendfile64 [__nr_futex]=240 [240]=futex | |
[__nr_sched_setaffinity]=241 [241]=sched_setaffinity [__nr_sched_getaffinity]=242 [242]=sched_getaffinity | |
[__nr_io_setup]=243 [243]=io_setup [__nr_io_destroy]=244 [244]=io_destroy | |
[__nr_io_getevents]=245 [245]=io_getevents [__nr_io_submit]=246 [246]=io_submit | |
[__nr_io_cancel]=247 [247]=io_cancel [__nr_exit_group]=248 [248]=exit_group | |
[__nr_lookup_dcookie]=249 [249]=lookup_dcookie [__nr_epoll_create]=250 [250]=epoll_create | |
[__nr_epoll_ctl]=251 [251]=epoll_ctl [__nr_epoll_wait]=252 [252]=epoll_wait | |
[__nr_remap_file_pages]=253 [253]=remap_file_pages [__nr_set_tid_address]=256 [256]=set_tid_address | |
[__nr_timer_create]=257 [257]=timer_create [__nr_timer_settime]=258 [258]=timer_settime | |
[__nr_timer_gettime]=259 [259]=timer_gettime [__nr_timer_getoverrun]=260 [260]=timer_getoverrun | |
[__nr_timer_delete]=261 [261]=timer_delete [__nr_clock_settime]=262 [262]=clock_settime | |
[__nr_clock_gettime]=263 [263]=clock_gettime [__nr_clock_getres]=264 [264]=clock_getres | |
[__nr_clock_nanosleep]=265 [265]=clock_nanosleep [__nr_statfs64]=266 [266]=statfs64 | |
[__nr_fstatfs64]=267 [267]=fstatfs64 [__nr_tgkill]=268 [268]=tgkill | |
[__nr_utimes]=269 [269]=utimes [__nr_fadvise64_64]=270 [270]=fadvise64_64 | |
[__nr_arm_fadvise64_64]=270 [270]=arm_fadvise64_64 [__nr_pciconfig_iobase]=271 [271]=pciconfig_iobase | |
[__nr_pciconfig_read]=272 [272]=pciconfig_read [__nr_pciconfig_write]=273 [273]=pciconfig_write | |
[__nr_mq_open]=274 [274]=mq_open [__nr_mq_unlink]=275 [275]=mq_unlink | |
[__nr_mq_timedsend]=276 [276]=mq_timedsend [__nr_mq_timedreceive]=277 [277]=mq_timedreceive | |
[__nr_mq_notify]=278 [278]=mq_notify [__nr_mq_getsetattr]=279 [279]=mq_getsetattr | |
[__nr_waitid]=280 [280]=waitid [__nr_socket]=281 [281]=socket | |
[__nr_bind]=282 [282]=bind [__nr_connect]=283 [283]=connect | |
[__nr_listen]=284 [284]=listen [__nr_accept]=285 [285]=accept | |
[__nr_getsockname]=286 [286]=getsockname [__nr_getpeername]=287 [287]=getpeername | |
[__nr_socketpair]=288 [288]=socketpair [__nr_send]=289 [289]=send | |
[__nr_sendto]=290 [290]=sendto [__nr_recv]=291 [291]=recv | |
[__nr_recvfrom]=292 [292]=recvfrom [__nr_shutdown]=293 [293]=shutdown | |
[__nr_setsockopt]=294 [294]=setsockopt [__nr_getsockopt]=295 [295]=getsockopt | |
[__nr_sendmsg]=296 [296]=sendmsg [__nr_recvmsg]=297 [297]=recvmsg | |
[__nr_semop]=298 [298]=semop [__nr_semget]=299 [299]=semget | |
[__nr_semctl]=300 [300]=semctl [__nr_msgsnd]=301 [301]=msgsnd | |
[__nr_msgrcv]=302 [302]=msgrcv [__nr_msgget]=303 [303]=msgget | |
[__nr_msgctl]=304 [304]=msgctl [__nr_shmat]=305 [305]=shmat | |
[__nr_shmdt]=306 [306]=shmdt [__nr_shmget]=307 [307]=shmget | |
[__nr_shmctl]=308 [308]=shmctl [__nr_add_key]=309 [309]=add_key | |
[__nr_request_key]=310 [310]=request_key [__nr_keyctl]=311 [311]=keyctl | |
[__nr_semtimedop]=312 [312]=semtimedop [__nr_vserver]=313 [313]=vserver | |
[__nr_ioprio_set]=314 [314]=ioprio_set [__nr_ioprio_get]=315 [315]=ioprio_get | |
[__nr_inotify_init]=316 [316]=inotify_init [__nr_inotify_add_watch]=317 [317]=inotify_add_watch | |
[__nr_inotify_rm_watch]=318 [318]=inotify_rm_watch [__nr_mbind]=319 [319]=mbind | |
[__nr_get_mempolicy]=320 [320]=get_mempolicy [__nr_set_mempolicy]=321 [321]=set_mempolicy | |
[__nr_openat]=322 [322]=openat [__nr_mkdirat]=323 [323]=mkdirat | |
[__nr_mknodat]=324 [324]=mknodat [__nr_fchownat]=325 [325]=fchownat | |
[__nr_futimesat]=326 [326]=futimesat [__nr_fstatat64]=327 [327]=fstatat64 | |
[__nr_unlinkat]=328 [328]=unlinkat [__nr_renameat]=329 [329]=renameat | |
[__nr_linkat]=330 [330]=linkat [__nr_symlinkat]=331 [331]=symlinkat | |
[__nr_readlinkat]=332 [332]=readlinkat [__nr_fchmodat]=333 [333]=fchmodat | |
[__nr_faccessat]=334 [334]=faccessat [__nr_pselect6]=335 [335]=pselect6 | |
[__nr_ppoll]=336 [336]=ppoll [__nr_unshare]=337 [337]=unshare | |
[__nr_set_robust_list]=338 [338]=set_robust_list [__nr_get_robust_list]=339 [339]=get_robust_list | |
[__nr_splice]=340 [340]=splice [__nr_sync_file_range2]=341 [341]=sync_file_range2 | |
[__nr_arm_sync_file_range]=341 [341]=arm_sync_file_range [__nr_tee]=342 [342]=tee | |
[__nr_vmsplice]=343 [343]=vmsplice [__nr_move_pages]=344 [344]=move_pages | |
[__nr_getcpu]=345 [345]=getcpu [__nr_epoll_pwait]=346 [346]=epoll_pwait | |
[__nr_kexec_load]=347 [347]=kexec_load [__nr_utimensat]=348 [348]=utimensat | |
[__nr_signalfd]=349 [349]=signalfd [__nr_timerfd_create]=350 [350]=timerfd_create | |
[__nr_eventfd]=351 [351]=eventfd [__nr_fallocate]=352 [352]=fallocate | |
[__nr_timerfd_settime]=353 [353]=timerfd_settime [__nr_timerfd_gettime]=354 [354]=timerfd_gettime | |
[__nr_signalfd4]=355 [355]=signalfd4 [__nr_eventfd2]=356 [356]=eventfd2 | |
[__nr_epoll_create1]=357 [357]=epoll_create1 [__nr_dup3]=358 [358]=dup3 | |
[__nr_pipe2]=359 [359]=pipe2 [__nr_inotify_init1]=360 [360]=inotify_init1 | |
[__nr_preadv]=361 [361]=preadv [__nr_pwritev]=362 [362]=pwritev | |
[__nr_rt_tgsigqueueinfo]=363 [363]=rt_tgsigqueueinfo [__nr_perf_event_open]=364 [364]=perf_event_open | |
[__nr_recvmmsg]=365 [365]=recvmmsg [__nr_accept4]=366 [366]=accept4 | |
[__nr_fanotify_init]=367 [367]=fanotify_init [__nr_fanotify_mark]=368 [368]=fanotify_mark | |
[__nr_prlimit64]=369 [369]=prlimit64 [__nr_name_to_handle_at]=370 [370]=name_to_handle_at | |
[__nr_open_by_handle_at]=371 [371]=open_by_handle_at [__nr_clock_adjtime]=372 [372]=clock_adjtime | |
[__nr_syncfs]=373 [373]=syncfs [__nr_sendmmsg]=374 [374]=sendmmsg | |
[__nr_setns]=375 [375]=setns [__nr_process_vm_readv]=376 [376]=process_vm_readv | |
[__nr_process_vm_writev]=377 [377]=process_vm_writev [__nr_kcmp]=378 [378]=kcmp | |
[__nr_finit_module]=379 [379]=finit_module [__nr_sched_setattr]=380 [380]=sched_setattr | |
[__nr_sched_getattr]=381 [381]=sched_getattr [__nr_renameat2]=382 [382]=renameat2 | |
[__nr_seccomp]=383 [383]=seccomp [__nr_getrandom]=384 [384]=getrandom | |
[__nr_memfd_create]=385 [385]=memfd_create [__nr_bpf]=386 [386]=bpf | |
[__nr_execveat]=387 [387]=execveat [__nr_userfaultfd]=388 [388]=userfaultfd | |
[__nr_membarrier]=389 [389]=membarrier [__nr_mlock2]=390 [390]=mlock2 | |
[__nr_copy_file_range]=391 [391]=copy_file_range [__nr_preadv2]=392 [392]=preadv2 | |
[__nr_pwritev2]=393 [393]=pwritev2 [__nr_pkey_mprotect]=394 [394]=pkey_mprotect | |
[__nr_pkey_alloc]=395 [395]=pkey_alloc [__nr_pkey_free]=396 [396]=pkey_free | |
[__nr_statx]=397 [397]=statx [__nr_breakpoint]=983041 [983041]=breakpoint | |
[__nr_cacheflush]=983042 [983042]=cacheflush [__nr_usr26]=983043 [983043]=usr26 | |
[__nr_usr32]=983044 [983044]=usr32 [__nr_set_tls]=983045 [983045]=set_tls | |
[__nr_get_tls]=983046 [983046]=get_tls | |
) | |
declare -A errno=( | |
[eperm]=1 [1]=eperm [enoent]=2 [2]=enoent | |
[esrch]=3 [3]=esrch [eintr]=4 [4]=eintr | |
[eio]=5 [5]=eio [enxio]=6 [6]=enxio | |
[e2big]=7 [7]=e2big [enoexec]=8 [8]=enoexec | |
[ebadf]=9 [9]=ebadf [echild]=10 [10]=echild | |
[eagain]=11 [11]=eagain [ewouldblock]=11 [11]=ewouldblock | |
[enomem]=12 [12]=enomem [eacces]=13 [13]=eacces | |
[efault]=14 [14]=efault [enotblk]=15 [15]=enotblk | |
[ebusy]=16 [16]=ebusy [eexist]=17 [17]=eexist | |
[exdev]=18 [18]=exdev [enodev]=19 [19]=enodev | |
[enotdir]=20 [20]=enotdir [eisdir]=21 [21]=eisdir | |
[einval]=22 [22]=einval [enfile]=23 [23]=enfile | |
[emfile]=24 [24]=emfile [enotty]=25 [25]=enotty | |
[etxtbsy]=26 [26]=etxtbsy [efbig]=27 [27]=efbig | |
[enospc]=28 [28]=enospc [espipe]=29 [29]=espipe | |
[erofs]=30 [30]=erofs [emlink]=31 [31]=emlink | |
[epipe]=32 [32]=epipe [edom]=33 [33]=edom | |
[erange]=34 [34]=erange [edeadlk]=35 [35]=edeadlk | |
[edeadlock]=35 [35]=edeadlock [enametoolong]=36 [36]=enametoolong | |
[enolck]=37 [37]=enolck [enosys]=38 [38]=enosys | |
[enotempty]=39 [39]=enotempty [eloop]=40 [40]=eloop | |
[enomsg]=42 [42]=enomsg [eidrm]=43 [43]=eidrm | |
[echrng]=44 [44]=echrng [el2nsync]=45 [45]=el2nsync | |
[el3hlt]=46 [46]=el3hlt [el3rst]=47 [47]=el3rst | |
[elnrng]=48 [48]=elnrng [eunatch]=49 [49]=eunatch | |
[enocsi]=50 [50]=enocsi [el2hlt]=51 [51]=el2hlt | |
[ebade]=52 [52]=ebade [ebadr]=53 [53]=ebadr | |
[exfull]=54 [54]=exfull [enoano]=55 [55]=enoano | |
[ebadrqc]=56 [56]=ebadrqc [ebadslt]=57 [57]=ebadslt | |
[ebfont]=59 [59]=ebfont [enostr]=60 [60]=enostr | |
[enodata]=61 [61]=enodata [etime]=62 [62]=etime | |
[enosr]=63 [63]=enosr [enonet]=64 [64]=enonet | |
[enopkg]=65 [65]=enopkg [eremote]=66 [66]=eremote | |
[enolink]=67 [67]=enolink [eadv]=68 [68]=eadv | |
[esrmnt]=69 [69]=esrmnt [ecomm]=70 [70]=ecomm | |
[eproto]=71 [71]=eproto [emultihop]=72 [72]=emultihop | |
[edotdot]=73 [73]=edotdot [ebadmsg]=74 [74]=ebadmsg | |
[eoverflow]=75 [75]=eoverflow [enotuniq]=76 [76]=enotuniq | |
[ebadfd]=77 [77]=ebadfd [eremchg]=78 [78]=eremchg | |
[elibacc]=79 [79]=elibacc [elibbad]=80 [80]=elibbad | |
[elibscn]=81 [81]=elibscn [elibmax]=82 [82]=elibmax | |
[elibexec]=83 [83]=elibexec [eilseq]=84 [84]=eilseq | |
[erestart]=85 [85]=erestart [estrpipe]=86 [86]=estrpipe | |
[eusers]=87 [87]=eusers [enotsock]=88 [88]=enotsock | |
[edestaddrreq]=89 [89]=edestaddrreq [emsgsize]=90 [90]=emsgsize | |
[eprototype]=91 [91]=eprototype [enoprotoopt]=92 [92]=enoprotoopt | |
[eprotonosupport]=93 [93]=eprotonosupport [esocktnosupport]=94 [94]=esocktnosupport | |
[enotsup]=95 [95]=enotsup [eopnotsupp]=95 [95]=eopnotsupp | |
[epfnosupport]=96 [96]=epfnosupport [eafnosupport]=97 [97]=eafnosupport | |
[eaddrinuse]=98 [98]=eaddrinuse [eaddrnotavail]=99 [99]=eaddrnotavail | |
[enetdown]=100 [100]=enetdown [enetunreach]=101 [101]=enetunreach | |
[enetreset]=102 [102]=enetreset [econnaborted]=103 [103]=econnaborted | |
[econnreset]=104 [104]=econnreset [enobufs]=105 [105]=enobufs | |
[eisconn]=106 [106]=eisconn [enotconn]=107 [107]=enotconn | |
[eshutdown]=108 [108]=eshutdown [etoomanyrefs]=109 [109]=etoomanyrefs | |
[etimedout]=110 [110]=etimedout [econnrefused]=111 [111]=econnrefused | |
[ehostdown]=112 [112]=ehostdown [ehostunreach]=113 [113]=ehostunreach | |
[ealready]=114 [114]=ealready [einprogress]=115 [115]=einprogress | |
[estale]=116 [116]=estale [euclean]=117 [117]=euclean | |
[enotnam]=118 [118]=enotnam [enavail]=119 [119]=enavail | |
[eisnam]=120 [120]=eisnam [eremoteio]=121 [121]=eremoteio | |
[edquot]=122 [122]=edquot [enomedium]=123 [123]=enomedium | |
[emediumtype]=124 [124]=emediumtype [ecanceled]=125 [125]=ecanceled | |
[enokey]=126 [126]=enokey [ekeyexpired]=127 [127]=ekeyexpired | |
[ekeyrevoked]=128 [128]=ekeyrevoked [ekeyrejected]=129 [129]=ekeyrejected | |
[eownerdead]=130 [130]=eownerdead [enotrecoverable]=131 [131]=enotrecoverable | |
[erfkill]=132 [132]=erfkill [ehwpoison]=133 [133]=ehwpoison | |
) | |
get () { | |
declare -n array=$1 | |
shift | |
for i do | |
if [[ ${array[${array[__nr_${i,,}]+__nr_}${array[__${i,,}]+__}${array[sig${i,,}]+sig}${i,,}]} ]]; then | |
found=1 | |
printf '%30s = %-30s (%s)\n' "$i" "${array[${array[__nr_${i,,}]+__nr_}${array[__${i,,}]+__}${array[sig${i,,}]+sig}${i,,}]}" "${!array}" | |
fi | |
done | |
} | |
getsyscall () { | |
case ${*,,} in | |
*x?(86[-_])64*) get syscallsx64 "$@" ;;& | |
*@(i[36]|x)86!([-_]64*)|*x32*) get syscallsx86 "$@" ;;& | |
*a@(rm@(v8|64)|arch)*) get syscallsarm64 "$@" ;;& | |
*arm!(64*)) get syscallsarm32 "$@" ;;& | |
*@(@(i[36]|x)86|x32|x?(86[-_])64|arm|aarch)*) ;; | |
*) getsyscall "$(uname -m)" "$@" | |
esac | |
} | |
# try to magically guess wtf they're talking about | |
case ${*,,} in | |
*sig*) get signal "$@" ;;& | |
*sys*) getsyscall "$@" ;;& | |
*err*) get errno "$@" ;;& | |
*s@(ig|ys)*|*err*|"") ;; | |
*) get signal "$@" | |
getsyscall "$@" | |
get errno "$@" | |
esac | |
(( found )) || echo idk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment