"Fossies" - the Fresh Open Source Software Archive

Member "stress-ng-0.09.56/stress-enosys.c" (15 Mar 2019, 58895 Bytes) of package /linux/privat/stress-ng-0.09.56.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "stress-enosys.c" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 0.09.52_vs_0.09.54.

    1 /*
    2  * Copyright (C) 2013-2019 Canonical, Ltd.
    3  *
    4  * This program is free software; you can redistribute it and/or
    5  * modify it under the terms of the GNU General Public License
    6  * as published by the Free Software Foundation; either version 2
    7  * of the License, or (at your option) any later version.
    8  *
    9  * This program is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12  * GNU General Public License for more details.
   13  *
   14  * You should have received a copy of the GNU General Public License
   15  * along with this program; if not, write to the Free Software
   16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   17  *
   18  * This code is a complete clean re-write of the stress tool by
   19  * Colin Ian King <colin.king@canonical.com> and attempts to be
   20  * backwardly compatible with the stress tool by Amos Waterland
   21  * <apw@rossby.metr.ou.edu> but has more stress tests and more
   22  * functionality.
   23  *
   24  */
   25 #include "stress-ng.h"
   26 
   27 #if defined(HAVE_SYSCALL_H)
   28 
   29 #define HASH_SYSCALL_SIZE   (1987)
   30 
   31 #if defined(__NR_syscalls)
   32 #define MAX_SYSCALL __NR_syscalls
   33 #else
   34 #define MAX_SYSCALL (2048)      /* Guess */
   35 #endif
   36 
   37 typedef struct hash_syscall {
   38     struct hash_syscall *next;
   39     long    number;
   40 } hash_syscall_t;
   41 
   42 static hash_syscall_t *hash_syscall_table[HASH_SYSCALL_SIZE];
   43 
   44 PRAGMA_PUSH
   45 PRAGMA_WARN_OFF
   46 static inline long syscall7(long number, long arg1, long arg2,
   47                 long arg3, long arg4, long arg5,
   48                 long arg6, long arg7)
   49 {
   50     int ret;
   51     pid_t pid = getpid();
   52 
   53     ret = syscall(number, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
   54 
   55     if (getpid() != pid) {
   56         /* Somehow we forked/cloned ourselves, so exit */
   57         _exit(0);
   58     }
   59     return ret;
   60 }
   61 PRAGMA_POP
   62 
   63 static inline bool HOT OPTIMIZE3 syscall_find(long number)
   64 {
   65     hash_syscall_t *h = hash_syscall_table[number % HASH_SYSCALL_SIZE];
   66 
   67     /* Really make sure reboot is never called */
   68 #if defined(SYS_reboot)
   69     if ((number & 0xffff) == SYS_reboot)
   70         return true;
   71 #endif
   72 #if defined(__NR_reboot)
   73     if ((number & 0xffff) == __NR_reboot)
   74         return true;
   75 #endif
   76 #if defined(SYS_clone)
   77     if ((number & 0xffff) == SYS_clone)
   78         return true;
   79 #endif
   80 #if defined(__NR_clone)
   81     if ((number & 0xffff) == __NR_clone)
   82         return true;
   83 #endif
   84 #if defined(SYS_clone2)
   85     if ((number & 0xffff) == SYS_clone2)
   86         return true;
   87 #endif
   88 #if defined(__NR_clone2)
   89     if ((number & 0xffff) == __NR_clone2)
   90         return true;
   91 #endif
   92 #if defined(SYS_fork)
   93     if ((number & 0xffff) == SYS_fork)
   94         return true;
   95 #endif
   96 #if defined(__NR_fork)
   97     if ((number & 0xffff) == __NR_fork)
   98         return true;
   99 #endif
  100 #if defined(SYS_vfork)
  101     if ((number & 0xffff) == SYS_vfork)
  102         return true;
  103 #endif
  104 #if defined(__NR_vfork)
  105     if ((number & 0xffff) == __NR_vfork)
  106         return true;
  107 #endif
  108 #if defined(SYS_vhangup)
  109         if ((number & 0xffff) == SYS_vhangup)
  110                 return true;
  111 #endif
  112 #if defined(__NR_vhangup)
  113         if ((number & 0xffff) == __NR_vhangup)
  114                 return true;
  115 #endif
  116     while (h) {
  117         if (h->number == number)
  118             return true;
  119         h = h->next;
  120     }
  121     return false;
  122 }
  123 
  124 static inline void HOT OPTIMIZE3 syscall_add(long number)
  125 {
  126     const long hash = number % HASH_SYSCALL_SIZE;
  127     hash_syscall_t *newh, *h = hash_syscall_table[hash];
  128 
  129     while (h) {
  130         if (h->number == number)
  131             return;     /* Already exists */
  132         h = h->next;
  133     }
  134 
  135     newh = malloc(sizeof(*newh));
  136     if (!newh)
  137         return; /* Can't add, ignore */
  138 
  139     newh->number = number;
  140     newh->next = hash_syscall_table[hash];
  141     hash_syscall_table[hash]  = newh;
  142 }
  143 
  144 static inline void syscall_free(void)
  145 {
  146     size_t i;
  147     hash_syscall_t *h;
  148 
  149     for (i = 0; i < HASH_SYSCALL_SIZE; i++) {
  150         h = hash_syscall_table[i];
  151 
  152         while (h) {
  153             hash_syscall_t *next = h->next;
  154 
  155             free(h);
  156             h = next;
  157         }
  158     }
  159 }
  160 
  161 static const int sigs[] = {
  162 #if defined(SIGILL)
  163     SIGILL,
  164 #endif
  165 #if defined(SIGTRAP)
  166     SIGTRAP,
  167 #endif
  168 #if defined(SIGFPE)
  169     SIGFPE,
  170 #endif
  171 #if defined(SIGBUS)
  172     SIGBUS,
  173 #endif
  174 #if defined(SIGSEGV)
  175     SIGSEGV,
  176 #endif
  177 #if defined(SIGIOT)
  178     SIGIOT,
  179 #endif
  180 #if defined(SIGEMT)
  181     SIGEMT,
  182 #endif
  183 #if defined(SIGALRM)
  184     SIGALRM,
  185 #endif
  186 #if defined(SIGINT)
  187     SIGINT,
  188 #endif
  189 #if defined(SIGHUP)
  190     SIGHUP
  191 #endif
  192 };
  193 
  194 static const long skip_syscalls[] = {
  195 /* Traditional SYS_ syscall interface */
  196 #if defined(SYS_accept)
  197     SYS_accept,
  198 #endif
  199 #if defined(SYS_accept4)
  200     SYS_accept4,
  201 #endif
  202 #if defined(SYS_access)
  203     SYS_access,
  204 #endif
  205 #if defined(SYS_acct)
  206     SYS_acct,
  207 #endif
  208 #if defined(SYS_add_key)
  209     SYS_add_key,
  210 #endif
  211 #if defined(SYS_adjtimex)
  212     SYS_adjtimex,
  213 #endif
  214 #if defined(SYS_afs_syscall)
  215     SYS_afs_syscall,
  216 #endif
  217 #if defined(SYS_alarm)
  218     SYS_alarm,
  219 #endif
  220 #if defined(SYS_arch_prctl)
  221     SYS_arch_prctl,
  222 #endif
  223 #if defined(SYS_bdflush)
  224     SYS_bdflush,
  225 #endif
  226 #if defined(SYS_bind)
  227     SYS_bind,
  228 #endif
  229 #if defined(SYS_bpf)
  230     SYS_bpf,
  231 #endif
  232 #if defined(SYS_break)
  233     SYS_break,
  234 #endif
  235 #if defined(SYS_brk)
  236     SYS_brk,
  237 #endif
  238 #if defined(SYS_capget)
  239     SYS_capget,
  240 #endif
  241 #if defined(SYS_capset)
  242     SYS_capset,
  243 #endif
  244 #if defined(SYS_chdir)
  245     SYS_chdir,
  246 #endif
  247 #if defined(SYS_chmod)
  248     SYS_chmod,
  249 #endif
  250 #if defined(SYS_chown)
  251     SYS_chown,
  252 #endif
  253 #if defined(SYS_chown32)
  254     SYS_chown32,
  255 #endif
  256 #if defined(SYS_chroot)
  257     SYS_chroot,
  258 #endif
  259 #if defined(SYS_clock_adjtime)
  260     SYS_clock_adjtime,
  261 #endif
  262 #if defined(SYS_clock_getres)
  263     SYS_clock_getres,
  264 #endif
  265 #if defined(SYS_clock_gettime)
  266     SYS_clock_gettime,
  267 #endif
  268 #if defined(SYS_clock_nanosleep)
  269     SYS_clock_nanosleep,
  270 #endif
  271 #if defined(SYS_clock_settime)
  272     SYS_clock_settime,
  273 #endif
  274 #if defined(SYS_clone)
  275     SYS_clone,
  276 #endif
  277 #if defined(SYS_clone2)
  278     SYS_clone2,
  279 #endif
  280 #if defined(SYS_close)
  281     SYS_close,
  282 #endif
  283 #if defined(SYS_connect)
  284     SYS_connect,
  285 #endif
  286 #if defined(SYS_copy_file_range)
  287     SYS_copy_file_range,
  288 #endif
  289 #if defined(SYS_creat)
  290     SYS_creat,
  291 #endif
  292 #if defined(SYS_create_module)
  293     SYS_create_module,
  294 #endif
  295 #if defined(SYS_delete_module)
  296     SYS_delete_module,
  297 #endif
  298 #if defined(SYS_dup)
  299     SYS_dup,
  300 #endif
  301 #if defined(SYS_dup2)
  302     SYS_dup2,
  303 #endif
  304 #if defined(SYS_dup3)
  305     SYS_dup3,
  306 #endif
  307 #if defined(SYS_epoll_create)
  308     SYS_epoll_create,
  309 #endif
  310 #if defined(SYS_epoll_create1)
  311     SYS_epoll_create1,
  312 #endif
  313 #if defined(SYS_epoll_ctl)
  314     SYS_epoll_ctl,
  315 #endif
  316 #if defined(SYS_epoll_ctl_old)
  317     SYS_epoll_ctl_old,
  318 #endif
  319 #if defined(SYS_epoll_pwait)
  320     SYS_epoll_pwait,
  321 #endif
  322 #if defined(SYS_epoll_wait)
  323     SYS_epoll_wait,
  324 #endif
  325 #if defined(SYS_epoll_wait_old)
  326     SYS_epoll_wait_old,
  327 #endif
  328 #if defined(SYS_eventfd)
  329     SYS_eventfd,
  330 #endif
  331 #if defined(SYS_eventfd2)
  332     SYS_eventfd2,
  333 #endif
  334 #if defined(SYS_execve)
  335     SYS_execve,
  336 #endif
  337 #if defined(SYS_execveat)
  338     SYS_execveat,
  339 #endif
  340 #if defined(SYS_exit)
  341     SYS_exit,
  342 #endif
  343 #if defined(SYS_exit_group)
  344     SYS_exit_group,
  345 #endif
  346 #if defined(SYS_faccessat)
  347     SYS_faccessat,
  348 #endif
  349 #if defined(SYS_fadvise64)
  350     SYS_fadvise64,
  351 #endif
  352 #if defined(SYS_fadvise64_64)
  353     SYS_fadvise64_64,
  354 #endif
  355 #if defined(SYS_fallocate)
  356     SYS_fallocate,
  357 #endif
  358 #if defined(SYS_fanotify_init)
  359     SYS_fanotify_init,
  360 #endif
  361 #if defined(SYS_fanotify_mark)
  362     SYS_fanotify_mark,
  363 #endif
  364 #if defined(SYS_fchdir)
  365     SYS_fchdir,
  366 #endif
  367 #if defined(SYS_fchmod)
  368     SYS_fchmod,
  369 #endif
  370 #if defined(SYS_fchmodat)
  371     SYS_fchmodat,
  372 #endif
  373 #if defined(SYS_fchown)
  374     SYS_fchown,
  375 #endif
  376 #if defined(SYS_fchown32)
  377     SYS_fchown32,
  378 #endif
  379 #if defined(SYS_fchownat)
  380     SYS_fchownat,
  381 #endif
  382 #if defined(SYS_fcntl)
  383     SYS_fcntl,
  384 #endif
  385 #if defined(SYS_fcntl64)
  386     SYS_fcntl64,
  387 #endif
  388 #if defined(SYS_fdatasync)
  389     SYS_fdatasync,
  390 #endif
  391 #if defined(SYS_fgetxattr)
  392     SYS_fgetxattr,
  393 #endif
  394 #if defined(SYS_finit_module)
  395     SYS_finit_module,
  396 #endif
  397 #if defined(SYS_flistxattr)
  398     SYS_flistxattr,
  399 #endif
  400 #if defined(SYS_flock)
  401     SYS_flock,
  402 #endif
  403 #if defined(SYS_fork)
  404     SYS_fork,
  405 #endif
  406 #if defined(SYS_fremovexattr)
  407     SYS_fremovexattr,
  408 #endif
  409 #if defined(SYS_fsetxattr)
  410     SYS_fsetxattr,
  411 #endif
  412 #if defined(SYS_fstat)
  413     SYS_fstat,
  414 #endif
  415 #if defined(SYS_fstat64)
  416     SYS_fstat64,
  417 #endif
  418 #if defined(SYS_fstatat64)
  419     SYS_fstatat64,
  420 #endif
  421 #if defined(SYS_fstatfs)
  422     SYS_fstatfs,
  423 #endif
  424 #if defined(SYS_fstatfs64)
  425     SYS_fstatfs64,
  426 #endif
  427 #if defined(SYS_fsync)
  428     SYS_fsync,
  429 #endif
  430 #if defined(SYS_ftime)
  431     SYS_ftime,
  432 #endif
  433 #if defined(SYS_ftruncate)
  434     SYS_ftruncate,
  435 #endif
  436 #if defined(SYS_ftruncate64)
  437     SYS_ftruncate64,
  438 #endif
  439 #if defined(SYS_futex)
  440     SYS_futex,
  441 #endif
  442 #if defined(SYS_futimesat)
  443     SYS_futimesat,
  444 #endif
  445 #if defined(SYS_getcpu)
  446     SYS_getcpu,
  447 #endif
  448 #if defined(SYS_getcwd)
  449     SYS_getcwd,
  450 #endif
  451 #if defined(SYS_getdents)
  452     SYS_getdents,
  453 #endif
  454 #if defined(SYS_getdents64)
  455     SYS_getdents64,
  456 #endif
  457 #if defined(SYS_getegid)
  458     SYS_getegid,
  459 #endif
  460 #if defined(SYS_getegid32)
  461     SYS_getegid32,
  462 #endif
  463 #if defined(SYS_geteuid)
  464     SYS_geteuid,
  465 #endif
  466 #if defined(SYS_geteuid32)
  467     SYS_geteuid32,
  468 #endif
  469 #if defined(SYS_getgid)
  470     SYS_getgid,
  471 #endif
  472 #if defined(SYS_getgid32)
  473     SYS_getgid32,
  474 #endif
  475 #if defined(SYS_getgroups)
  476     SYS_getgroups,
  477 #endif
  478 #if defined(SYS_getgroups32)
  479     SYS_getgroups32,
  480 #endif
  481 #if defined(SYS_getitimer)
  482     SYS_getitimer,
  483 #endif
  484 #if defined(SYS_get_kernel_syms)
  485     SYS_get_kernel_syms,
  486 #endif
  487 #if defined(SYS_get_mempolicy)
  488     SYS_get_mempolicy,
  489 #endif
  490 #if defined(SYS_getpeername)
  491     SYS_getpeername,
  492 #endif
  493 #if defined(SYS_getpgid)
  494     SYS_getpgid,
  495 #endif
  496 #if defined(SYS_getpgrp)
  497     SYS_getpgrp,
  498 #endif
  499 #if defined(SYS_getpid)
  500     SYS_getpid,
  501 #endif
  502 #if defined(SYS_getpmsg)
  503     SYS_getpmsg,
  504 #endif
  505 #if defined(SYS_getppid)
  506     SYS_getppid,
  507 #endif
  508 #if defined(SYS_getpriority)
  509     SYS_getpriority,
  510 #endif
  511 #if defined(SYS_getrandom)
  512     SYS_getrandom,
  513 #endif
  514 #if defined(SYS_getresgid)
  515     SYS_getresgid,
  516 #endif
  517 #if defined(SYS_getresgid32)
  518     SYS_getresgid32,
  519 #endif
  520 #if defined(SYS_getresuid)
  521     SYS_getresuid,
  522 #endif
  523 #if defined(SYS_getresuid32)
  524     SYS_getresuid32,
  525 #endif
  526 #if defined(SYS_getrlimit)
  527     SYS_getrlimit,
  528 #endif
  529 #if defined(SYS_get_robust_list)
  530     SYS_get_robust_list,
  531 #endif
  532 #if defined(SYS_getrusage)
  533     SYS_getrusage,
  534 #endif
  535 #if defined(SYS_getsid)
  536     SYS_getsid,
  537 #endif
  538 #if defined(SYS_getsockname)
  539     SYS_getsockname,
  540 #endif
  541 #if defined(SYS_getsockopt)
  542     SYS_getsockopt,
  543 #endif
  544 #if defined(SYS_get_thread_area)
  545     SYS_get_thread_area,
  546 #endif
  547 #if defined(SYS_gettid)
  548     SYS_gettid,
  549 #endif
  550 #if defined(SYS_gettimeofday)
  551     SYS_gettimeofday,
  552 #endif
  553 #if defined(SYS_getuid)
  554     SYS_getuid,
  555 #endif
  556 #if defined(SYS_getuid32)
  557     SYS_getuid32,
  558 #endif
  559 #if defined(SYS_getxattr)
  560     SYS_getxattr,
  561 #endif
  562 #if defined(SYS_gtty)
  563     SYS_gtty,
  564 #endif
  565 #if defined(SYS_idle)
  566     SYS_idle,
  567 #endif
  568 #if defined(SYS_init_module)
  569     SYS_init_module,
  570 #endif
  571 #if defined(SYS_inotify_add_watch)
  572     SYS_inotify_add_watch,
  573 #endif
  574 #if defined(SYS_inotify_init)
  575     SYS_inotify_init,
  576 #endif
  577 #if defined(SYS_inotify_init1)
  578     SYS_inotify_init1,
  579 #endif
  580 #if defined(SYS_inotify_rm_watch)
  581     SYS_inotify_rm_watch,
  582 #endif
  583 #if defined(SYS_io_cancel)
  584     SYS_io_cancel,
  585 #endif
  586 #if defined(SYS_ioctl)
  587     SYS_ioctl,
  588 #endif
  589 #if defined(SYS_io_destroy)
  590     SYS_io_destroy,
  591 #endif
  592 #if defined(SYS_io_getevents)
  593     SYS_io_getevents,
  594 #endif
  595 #if defined(SYS_io_pgetevents)
  596     SYS_io_pgetevents,
  597 #endif
  598 #if defined(SYS_ioperm)
  599     SYS_ioperm,
  600 #endif
  601 #if defined(SYS_iopl)
  602     SYS_iopl,
  603 #endif
  604 #if defined(SYS_ioprio_get)
  605     SYS_ioprio_get,
  606 #endif
  607 #if defined(SYS_ioprio_set)
  608     SYS_ioprio_set,
  609 #endif
  610 #if defined(SYS_io_setup)
  611     SYS_io_setup,
  612 #endif
  613 #if defined(SYS_io_submit)
  614     SYS_io_submit,
  615 #endif
  616 #if defined(SYS_ipc)
  617     SYS_ipc,
  618 #endif
  619 #if defined(SYS_kcmp)
  620     SYS_kcmp,
  621 #endif
  622 #if defined(SYS_kexec_file_load)
  623     SYS_kexec_file_load,
  624 #endif
  625 #if defined(SYS_kexec_load)
  626     SYS_kexec_load,
  627 #endif
  628 #if defined(SYS_keyctl)
  629     SYS_keyctl,
  630 #endif
  631 #if defined(SYS_kill)
  632     SYS_kill,
  633 #endif
  634 #if defined(SYS_lchown)
  635     SYS_lchown,
  636 #endif
  637 #if defined(SYS_lchown32)
  638     SYS_lchown32,
  639 #endif
  640 #if defined(SYS_lgetxattr)
  641     SYS_lgetxattr,
  642 #endif
  643 #if defined(SYS_link)
  644     SYS_link,
  645 #endif
  646 #if defined(SYS_linkat)
  647     SYS_linkat,
  648 #endif
  649 #if defined(SYS_listen)
  650     SYS_listen,
  651 #endif
  652 #if defined(SYS_listxattr)
  653     SYS_listxattr,
  654 #endif
  655 #if defined(SYS_llistxattr)
  656     SYS_llistxattr,
  657 #endif
  658 #if defined(SYS__llseek)
  659     SYS__llseek,
  660 #endif
  661 #if defined(SYS_lock)
  662     SYS_lock,
  663 #endif
  664 #if defined(SYS_lookup_dcookie)
  665     SYS_lookup_dcookie,
  666 #endif
  667 #if defined(SYS_lremovexattr)
  668     SYS_lremovexattr,
  669 #endif
  670 #if defined(SYS_lseek)
  671     SYS_lseek,
  672 #endif
  673 #if defined(SYS_lsetxattr)
  674     SYS_lsetxattr,
  675 #endif
  676 #if defined(SYS_lstat)
  677     SYS_lstat,
  678 #endif
  679 #if defined(SYS_lstat64)
  680     SYS_lstat64,
  681 #endif
  682 #if defined(SYS_madvise)
  683     SYS_madvise,
  684 #endif
  685 #if defined(SYS_mbind)
  686     SYS_mbind,
  687 #endif
  688 #if defined(SYS_membarrier)
  689     SYS_membarrier,
  690 #endif
  691 #if defined(SYS_memfd_create)
  692     SYS_memfd_create,
  693 #endif
  694 #if defined(SYS_migrate_pages)
  695     SYS_migrate_pages,
  696 #endif
  697 #if defined(SYS_mincore)
  698     SYS_mincore,
  699 #endif
  700 #if defined(SYS_mkdir)
  701     SYS_mkdir,
  702 #endif
  703 #if defined(SYS_mkdirat)
  704     SYS_mkdirat,
  705 #endif
  706 #if defined(SYS_mknod)
  707     SYS_mknod,
  708 #endif
  709 #if defined(SYS_mknodat)
  710     SYS_mknodat,
  711 #endif
  712 #if defined(SYS_mlock)
  713     SYS_mlock,
  714 #endif
  715 #if defined(SYS_mlock2)
  716     SYS_mlock2,
  717 #endif
  718 #if defined(SYS_mlockall)
  719     SYS_mlockall,
  720 #endif
  721 #if defined(SYS_mmap)
  722     SYS_mmap,
  723 #endif
  724 #if defined(SYS_mmap2)
  725     SYS_mmap2,
  726 #endif
  727 #if defined(SYS_modify_ldt)
  728     SYS_modify_ldt,
  729 #endif
  730 #if defined(SYS_mount)
  731     SYS_mount,
  732 #endif
  733 #if defined(SYS_move_pages)
  734     SYS_move_pages,
  735 #endif
  736 #if defined(SYS_mprotect)
  737     SYS_mprotect,
  738 #endif
  739 #if defined(SYS_mpx)
  740     SYS_mpx,
  741 #endif
  742 #if defined(SYS_mq_getsetattr)
  743     SYS_mq_getsetattr,
  744 #endif
  745 #if defined(SYS_mq_notify)
  746     SYS_mq_notify,
  747 #endif
  748 #if defined(SYS_mq_open)
  749     SYS_mq_open,
  750 #endif
  751 #if defined(SYS_mq_timedreceive)
  752     SYS_mq_timedreceive,
  753 #endif
  754 #if defined(SYS_mq_timedsend)
  755     SYS_mq_timedsend,
  756 #endif
  757 #if defined(SYS_mq_unlink)
  758     SYS_mq_unlink,
  759 #endif
  760 #if defined(SYS_mremap)
  761     SYS_mremap,
  762 #endif
  763 #if defined(SYS_msgctl)
  764     SYS_msgctl,
  765 #endif
  766 #if defined(SYS_msgget)
  767     SYS_msgget,
  768 #endif
  769 #if defined(SYS_msgrcv)
  770     SYS_msgrcv,
  771 #endif
  772 #if defined(SYS_msgsnd)
  773     SYS_msgsnd,
  774 #endif
  775 #if defined(SYS_msync)
  776     SYS_msync,
  777 #endif
  778 #if defined(SYS_munlock)
  779     SYS_munlock,
  780 #endif
  781 #if defined(SYS_munlockall)
  782     SYS_munlockall,
  783 #endif
  784 #if defined(SYS_munmap)
  785     SYS_munmap,
  786 #endif
  787 #if defined(SYS_name_to_handle_at)
  788     SYS_name_to_handle_at,
  789 #endif
  790 #if defined(SYS_nanosleep)
  791     SYS_nanosleep,
  792 #endif
  793 #if defined(SYS_newfstatat)
  794     SYS_newfstatat,
  795 #endif
  796 #if defined(SYS__newselect)
  797     SYS__newselect,
  798 #endif
  799 #if defined(SYS_nfsservctl)
  800     SYS_nfsservctl,
  801 #endif
  802 #if defined(SYS_nice)
  803     SYS_nice,
  804 #endif
  805 #if defined(SYS_oldfstat)
  806     SYS_oldfstat,
  807 #endif
  808 #if defined(SYS_oldlstat)
  809     SYS_oldlstat,
  810 #endif
  811 #if defined(SYS_oldolduname)
  812     SYS_oldolduname,
  813 #endif
  814 #if defined(SYS_oldstat)
  815     SYS_oldstat,
  816 #endif
  817 #if defined(SYS_olduname)
  818     SYS_olduname,
  819 #endif
  820 #if defined(SYS_open)
  821     SYS_open,
  822 #endif
  823 #if defined(SYS_openat)
  824     SYS_openat,
  825 #endif
  826 #if defined(SYS_open_by_handle_at)
  827     SYS_open_by_handle_at,
  828 #endif
  829 #if defined(SYS_pause)
  830     SYS_pause,
  831 #endif
  832 #if defined(SYS_perf_event_open)
  833     SYS_perf_event_open,
  834 #endif
  835 #if defined(SYS_personality)
  836     SYS_personality,
  837 #endif
  838 #if defined(SYS_pipe)
  839     SYS_pipe,
  840 #endif
  841 #if defined(SYS_pipe2)
  842     SYS_pipe2,
  843 #endif
  844 #if defined(SYS_pivot_root)
  845     SYS_pivot_root,
  846 #endif
  847 #if defined(SYS_pkey_alloc)
  848     SYS_pkey_alloc,
  849 #endif
  850 #if defined(SYS_pkey_free)
  851     SYS_pkey_free,
  852 #endif
  853 #if defined(SYS_pkey_get)
  854     SYS_pkey_get,
  855 #endif
  856 #if defined(SYS_pkey_mprotect)
  857     SYS_pkey_mprotect,
  858 #endif
  859 #if defined(SYS_pkey_set)
  860     SYS_pkey_set,
  861 #endif
  862 #if defined(SYS_poll)
  863     SYS_poll,
  864 #endif
  865 #if defined(SYS_ppoll)
  866     SYS_ppoll,
  867 #endif
  868 #if defined(SYS_prctl)
  869     SYS_prctl,
  870 #endif
  871 #if defined(SYS_pread64)
  872     SYS_pread64,
  873 #endif
  874 #if defined(SYS_preadv)
  875     SYS_preadv,
  876 #endif
  877 #if defined(SYS_preadv2)
  878     SYS_preadv2,
  879 #endif
  880 #if defined(SYS_prlimit64)
  881     SYS_prlimit64,
  882 #endif
  883 #if defined(SYS_process_vm_readv)
  884     SYS_process_vm_readv,
  885 #endif
  886 #if defined(SYS_process_vm_writev)
  887     SYS_process_vm_writev,
  888 #endif
  889 #if defined(SYS_prof)
  890     SYS_prof,
  891 #endif
  892 #if defined(SYS_profil)
  893     SYS_profil,
  894 #endif
  895 #if defined(SYS_pselect6)
  896     SYS_pselect6,
  897 #endif
  898 #if defined(SYS_ptrace)
  899     SYS_ptrace,
  900 #endif
  901 #if defined(SYS_putpmsg)
  902     SYS_putpmsg,
  903 #endif
  904 #if defined(SYS_pwrite64)
  905     SYS_pwrite64,
  906 #endif
  907 #if defined(SYS_pwritev)
  908     SYS_pwritev,
  909 #endif
  910 #if defined(SYS_pwritev2)
  911     SYS_pwritev2,
  912 #endif
  913 #if defined(SYS_query_module)
  914     SYS_query_module,
  915 #endif
  916 #if defined(SYS_quotactl)
  917     SYS_quotactl,
  918 #endif
  919 #if defined(SYS_read)
  920     SYS_read,
  921 #endif
  922 #if defined(SYS_readahead)
  923     SYS_readahead,
  924 #endif
  925 #if defined(SYS_readdir)
  926     SYS_readdir,
  927 #endif
  928 #if defined(SYS_readlink)
  929     SYS_readlink,
  930 #endif
  931 #if defined(SYS_readlinkat)
  932     SYS_readlinkat,
  933 #endif
  934 #if defined(SYS_readv)
  935     SYS_readv,
  936 #endif
  937 #if defined(SYS_reboot)
  938     SYS_reboot,
  939 #endif
  940 #if defined(SYS_recvfrom)
  941     SYS_recvfrom,
  942 #endif
  943 #if defined(SYS_recvmmsg)
  944     SYS_recvmmsg,
  945 #endif
  946 #if defined(SYS_recvmsg)
  947     SYS_recvmsg,
  948 #endif
  949 #if defined(SYS_remap_file_pages)
  950     SYS_remap_file_pages,
  951 #endif
  952 #if defined(SYS_removexattr)
  953     SYS_removexattr,
  954 #endif
  955 #if defined(SYS_rename)
  956     SYS_rename,
  957 #endif
  958 #if defined(SYS_renameat)
  959     SYS_renameat,
  960 #endif
  961 #if defined(SYS_renameat2)
  962     SYS_renameat2,
  963 #endif
  964 #if defined(SYS_request_key)
  965     SYS_request_key,
  966 #endif
  967 #if defined(SYS_restart_syscall)
  968     SYS_restart_syscall,
  969 #endif
  970 #if defined(SYS_rmdir)
  971     SYS_rmdir,
  972 #endif
  973 #if defined(SYS_rseq)
  974     SYS_rseq,
  975 #endif
  976 #if defined(SYS_rt_sigaction)
  977     SYS_rt_sigaction,
  978 #endif
  979 #if defined(SYS_rt_sigpending)
  980     SYS_rt_sigpending,
  981 #endif
  982 #if defined(SYS_rt_sigprocmask)
  983     SYS_rt_sigprocmask,
  984 #endif
  985 #if defined(SYS_rt_sigqueueinfo)
  986     SYS_rt_sigqueueinfo,
  987 #endif
  988 #if defined(SYS_rt_sigreturn)
  989     SYS_rt_sigreturn,
  990 #endif
  991 #if defined(SYS_rt_sigsuspend)
  992     SYS_rt_sigsuspend,
  993 #endif
  994 #if defined(SYS_rt_sigtimedwait)
  995     SYS_rt_sigtimedwait,
  996 #endif
  997 #if defined(SYS_rt_tgsigqueueinfo)
  998     SYS_rt_tgsigqueueinfo,
  999 #endif
 1000 #if defined(SYS_sched_getaffinity)
 1001     SYS_sched_getaffinity,
 1002 #endif
 1003 #if defined(SYS_sched_getattr)
 1004     SYS_sched_getattr,
 1005 #endif
 1006 #if defined(SYS_sched_getparam)
 1007     SYS_sched_getparam,
 1008 #endif
 1009 #if defined(SYS_sched_get_priority_max)
 1010     SYS_sched_get_priority_max,
 1011 #endif
 1012 #if defined(SYS_sched_get_priority_min)
 1013     SYS_sched_get_priority_min,
 1014 #endif
 1015 #if defined(SYS_sched_getscheduler)
 1016     SYS_sched_getscheduler,
 1017 #endif
 1018 #if defined(SYS_sched_rr_get_interval)
 1019     SYS_sched_rr_get_interval,
 1020 #endif
 1021 #if defined(SYS_sched_setaffinity)
 1022     SYS_sched_setaffinity,
 1023 #endif
 1024 #if defined(SYS_sched_setattr)
 1025     SYS_sched_setattr,
 1026 #endif
 1027 #if defined(SYS_sched_setparam)
 1028     SYS_sched_setparam,
 1029 #endif
 1030 #if defined(SYS_sched_setscheduler)
 1031     SYS_sched_setscheduler,
 1032 #endif
 1033 #if defined(SYS_sched_yield)
 1034     SYS_sched_yield,
 1035 #endif
 1036 #if defined(SYS_seccomp)
 1037     SYS_seccomp,
 1038 #endif
 1039 #if defined(SYS_security)
 1040     SYS_security,
 1041 #endif
 1042 #if defined(SYS_select)
 1043     SYS_select,
 1044 #endif
 1045 #if defined(SYS_semctl)
 1046     SYS_semctl,
 1047 #endif
 1048 #if defined(SYS_semget)
 1049     SYS_semget,
 1050 #endif
 1051 #if defined(SYS_semop)
 1052     SYS_semop,
 1053 #endif
 1054 #if defined(SYS_semtimedop)
 1055     SYS_semtimedop,
 1056 #endif
 1057 #if defined(SYS_sendfile)
 1058     SYS_sendfile,
 1059 #endif
 1060 #if defined(SYS_sendfile64)
 1061     SYS_sendfile64,
 1062 #endif
 1063 #if defined(SYS_sendmmsg)
 1064     SYS_sendmmsg,
 1065 #endif
 1066 #if defined(SYS_sendmsg)
 1067     SYS_sendmsg,
 1068 #endif
 1069 #if defined(SYS_sendto)
 1070     SYS_sendto,
 1071 #endif
 1072 #if defined(SYS_setdomainname)
 1073     SYS_setdomainname,
 1074 #endif
 1075 #if defined(SYS_setfsgid)
 1076     SYS_setfsgid,
 1077 #endif
 1078 #if defined(SYS_setfsgid32)
 1079     SYS_setfsgid32,
 1080 #endif
 1081 #if defined(SYS_setfsuid)
 1082     SYS_setfsuid,
 1083 #endif
 1084 #if defined(SYS_setfsuid32)
 1085     SYS_setfsuid32,
 1086 #endif
 1087 #if defined(SYS_setgid)
 1088     SYS_setgid,
 1089 #endif
 1090 #if defined(SYS_setgid32)
 1091     SYS_setgid32,
 1092 #endif
 1093 #if defined(SYS_setgroups)
 1094     SYS_setgroups,
 1095 #endif
 1096 #if defined(SYS_setgroups32)
 1097     SYS_setgroups32,
 1098 #endif
 1099 #if defined(SYS_sethostname)
 1100     SYS_sethostname,
 1101 #endif
 1102 #if defined(SYS_setitimer)
 1103     SYS_setitimer,
 1104 #endif
 1105 #if defined(SYS_set_mempolicy)
 1106     SYS_set_mempolicy,
 1107 #endif
 1108 #if defined(SYS_setns)
 1109     SYS_setns,
 1110 #endif
 1111 #if defined(SYS_setpgid)
 1112     SYS_setpgid,
 1113 #endif
 1114 #if defined(SYS_setpriority)
 1115     SYS_setpriority,
 1116 #endif
 1117 #if defined(SYS_setregid)
 1118     SYS_setregid,
 1119 #endif
 1120 #if defined(SYS_setregid32)
 1121     SYS_setregid32,
 1122 #endif
 1123 #if defined(SYS_setresgid)
 1124     SYS_setresgid,
 1125 #endif
 1126 #if defined(SYS_setresgid32)
 1127     SYS_setresgid32,
 1128 #endif
 1129 #if defined(SYS_setresuid)
 1130     SYS_setresuid,
 1131 #endif
 1132 #if defined(SYS_setresuid32)
 1133     SYS_setresuid32,
 1134 #endif
 1135 #if defined(SYS_setreuid)
 1136     SYS_setreuid,
 1137 #endif
 1138 #if defined(SYS_setreuid32)
 1139     SYS_setreuid32,
 1140 #endif
 1141 #if defined(SYS_setrlimit)
 1142     SYS_setrlimit,
 1143 #endif
 1144 #if defined(SYS_set_robust_list)
 1145     SYS_set_robust_list,
 1146 #endif
 1147 #if defined(SYS_setsid)
 1148     SYS_setsid,
 1149 #endif
 1150 #if defined(SYS_setsockopt)
 1151     SYS_setsockopt,
 1152 #endif
 1153 #if defined(SYS_set_thread_area)
 1154     SYS_set_thread_area,
 1155 #endif
 1156 #if defined(SYS_set_tid_address)
 1157     SYS_set_tid_address,
 1158 #endif
 1159 #if defined(SYS_settimeofday)
 1160     SYS_settimeofday,
 1161 #endif
 1162 #if defined(SYS_setuid)
 1163     SYS_setuid,
 1164 #endif
 1165 #if defined(SYS_setuid32)
 1166     SYS_setuid32,
 1167 #endif
 1168 #if defined(SYS_setxattr)
 1169     SYS_setxattr,
 1170 #endif
 1171 #if defined(SYS_sgetmask)
 1172     SYS_sgetmask,
 1173 #endif
 1174 #if defined(SYS_shmat)
 1175     SYS_shmat,
 1176 #endif
 1177 #if defined(SYS_shmctl)
 1178     SYS_shmctl,
 1179 #endif
 1180 #if defined(SYS_shmdt)
 1181     SYS_shmdt,
 1182 #endif
 1183 #if defined(SYS_shmget)
 1184     SYS_shmget,
 1185 #endif
 1186 #if defined(SYS_shutdown)
 1187     SYS_shutdown,
 1188 #endif
 1189 #if defined(SYS_sigaction)
 1190     SYS_sigaction,
 1191 #endif
 1192 #if defined(SYS_sigaltstack)
 1193     SYS_sigaltstack,
 1194 #endif
 1195 #if defined(SYS_signal)
 1196     SYS_signal,
 1197 #endif
 1198 #if defined(SYS_signalfd)
 1199     SYS_signalfd,
 1200 #endif
 1201 #if defined(SYS_signalfd4)
 1202     SYS_signalfd4,
 1203 #endif
 1204 #if defined(SYS_sigpending)
 1205     SYS_sigpending,
 1206 #endif
 1207 #if defined(SYS_sigprocmask)
 1208     SYS_sigprocmask,
 1209 #endif
 1210 #if defined(SYS_sigreturn)
 1211     SYS_sigreturn,
 1212 #endif
 1213 #if defined(SYS_sigsuspend)
 1214     SYS_sigsuspend,
 1215 #endif
 1216 #if defined(SYS_socket)
 1217     SYS_socket,
 1218 #endif
 1219 #if defined(SYS_socketcall)
 1220     SYS_socketcall,
 1221 #endif
 1222 #if defined(SYS_socketpair)
 1223     SYS_socketpair,
 1224 #endif
 1225 #if defined(SYS_splice)
 1226     SYS_splice,
 1227 #endif
 1228 #if defined(SYS_ssetmask)
 1229     SYS_ssetmask,
 1230 #endif
 1231 #if defined(SYS_stat)
 1232     SYS_stat,
 1233 #endif
 1234 #if defined(SYS_stat64)
 1235     SYS_stat64,
 1236 #endif
 1237 #if defined(SYS_statfs)
 1238     SYS_statfs,
 1239 #endif
 1240 #if defined(SYS_statfs64)
 1241     SYS_statfs64,
 1242 #endif
 1243 #if defined(SYS_statx)
 1244     SYS_statx,
 1245 #endif
 1246 #if defined(SYS_stime)
 1247     SYS_stime,
 1248 #endif
 1249 #if defined(SYS_stty)
 1250     SYS_stty,
 1251 #endif
 1252 #if defined(SYS_swapoff)
 1253     SYS_swapoff,
 1254 #endif
 1255 #if defined(SYS_swapon)
 1256     SYS_swapon,
 1257 #endif
 1258 #if defined(SYS_symlink)
 1259     SYS_symlink,
 1260 #endif
 1261 #if defined(SYS_symlinkat)
 1262     SYS_symlinkat,
 1263 #endif
 1264 #if defined(SYS_sync)
 1265     SYS_sync,
 1266 #endif
 1267 #if defined(SYS_sync_file_range)
 1268     SYS_sync_file_range,
 1269 #endif
 1270 #if defined(SYS_syncfs)
 1271     SYS_syncfs,
 1272 #endif
 1273 #if defined(SYS__sysctl)
 1274     SYS__sysctl,
 1275 #endif
 1276 #if defined(SYS_sysfs)
 1277     SYS_sysfs,
 1278 #endif
 1279 #if defined(SYS_sysinfo)
 1280     SYS_sysinfo,
 1281 #endif
 1282 #if defined(SYS_syslog)
 1283     SYS_syslog,
 1284 #endif
 1285 #if defined(SYS_tee)
 1286     SYS_tee,
 1287 #endif
 1288 #if defined(SYS_tgkill)
 1289     SYS_tgkill,
 1290 #endif
 1291 #if defined(SYS_time)
 1292     SYS_time,
 1293 #endif
 1294 #if defined(SYS_timer_create)
 1295     SYS_timer_create,
 1296 #endif
 1297 #if defined(SYS_timer_delete)
 1298     SYS_timer_delete,
 1299 #endif
 1300 #if defined(SYS_timerfd_create)
 1301     SYS_timerfd_create,
 1302 #endif
 1303 #if defined(SYS_timerfd_gettime)
 1304     SYS_timerfd_gettime,
 1305 #endif
 1306 #if defined(SYS_timerfd_settime)
 1307     SYS_timerfd_settime,
 1308 #endif
 1309 #if defined(SYS_timer_getoverrun)
 1310     SYS_timer_getoverrun,
 1311 #endif
 1312 #if defined(SYS_timer_gettime)
 1313     SYS_timer_gettime,
 1314 #endif
 1315 #if defined(SYS_timer_settime)
 1316     SYS_timer_settime,
 1317 #endif
 1318 #if defined(SYS_times)
 1319     SYS_times,
 1320 #endif
 1321 #if defined(SYS_tkill)
 1322     SYS_tkill,
 1323 #endif
 1324 #if defined(SYS_truncate)
 1325     SYS_truncate,
 1326 #endif
 1327 #if defined(SYS_truncate64)
 1328     SYS_truncate64,
 1329 #endif
 1330 #if defined(SYS_tuxcall)
 1331     SYS_tuxcall,
 1332 #endif
 1333 #if defined(SYS_ugetrlimit)
 1334     SYS_ugetrlimit,
 1335 #endif
 1336 #if defined(SYS_ulimit)
 1337     SYS_ulimit,
 1338 #endif
 1339 #if defined(SYS_umask)
 1340     SYS_umask,
 1341 #endif
 1342 #if defined(SYS_umount)
 1343     SYS_umount,
 1344 #endif
 1345 #if defined(SYS_umount2)
 1346     SYS_umount2,
 1347 #endif
 1348 #if defined(SYS_uname)
 1349     SYS_uname,
 1350 #endif
 1351 #if defined(SYS_unlink)
 1352     SYS_unlink,
 1353 #endif
 1354 #if defined(SYS_unlinkat)
 1355     SYS_unlinkat,
 1356 #endif
 1357 #if defined(SYS_unshare)
 1358     SYS_unshare,
 1359 #endif
 1360 #if defined(SYS_uselib)
 1361     SYS_uselib,
 1362 #endif
 1363 #if defined(SYS_userfaultfd)
 1364     SYS_userfaultfd,
 1365 #endif
 1366 #if defined(SYS_ustat)
 1367     SYS_ustat,
 1368 #endif
 1369 #if defined(SYS_utime)
 1370     SYS_utime,
 1371 #endif
 1372 #if defined(SYS_utimensat)
 1373     SYS_utimensat,
 1374 #endif
 1375 #if defined(SYS_utimes)
 1376     SYS_utimes,
 1377 #endif
 1378 #if defined(SYS_vfork)
 1379     SYS_vfork,
 1380 #endif
 1381 #if defined(SYS_vhangup)
 1382     SYS_vhangup,
 1383 #endif
 1384 #if defined(SYS_vm86)
 1385     SYS_vm86,
 1386 #endif
 1387 #if defined(SYS_vm86old)
 1388     SYS_vm86old,
 1389 #endif
 1390 #if defined(SYS_vmsplice)
 1391     SYS_vmsplice,
 1392 #endif
 1393 #if defined(SYS_vserver)
 1394     SYS_vserver,
 1395 #endif
 1396 #if defined(SYS_wait4)
 1397     SYS_wait4,
 1398 #endif
 1399 #if defined(SYS_waitid)
 1400     SYS_waitid,
 1401 #endif
 1402 #if defined(SYS_waitpid)
 1403     SYS_waitpid,
 1404 #endif
 1405 #if defined(SYS_write)
 1406     SYS_write,
 1407 #endif
 1408 #if defined(SYS_writev)
 1409     SYS_writev,
 1410 #endif
 1411 
 1412 /* Linux syscall numbers */
 1413 #if defined(__NR_accept)
 1414     __NR_accept,
 1415 #endif
 1416 #if defined(__NR_accept4)
 1417     __NR_accept4,
 1418 #endif
 1419 #if defined(__NR_access)
 1420     __NR_access,
 1421 #endif
 1422 #if defined(__NR_acct)
 1423     __NR_acct,
 1424 #endif
 1425 #if defined(__NR_acl_get)
 1426     __NR_acl_get,
 1427 #endif
 1428 #if defined(__NR_acl_set)
 1429     __NR_acl_set,
 1430 #endif
 1431 #if defined(__NR_add_key)
 1432     __NR_add_key,
 1433 #endif
 1434 #if defined(__NR_adjtimex)
 1435     __NR_adjtimex,
 1436 #endif
 1437 #if defined(__NR_afs_syscall)
 1438     __NR_afs_syscall,
 1439 #endif
 1440 #if defined(__NR_alarm)
 1441     __NR_alarm,
 1442 #endif
 1443 #if defined(__NR_alloc_hugepages)
 1444     __NR_alloc_hugepages,
 1445 #endif
 1446 #if defined(__NR_arc_gettls)
 1447     __NR_arc_gettls,
 1448 #endif
 1449 #if defined(__NR_arch_specific_syscall)
 1450     __NR_arch_specific_syscall,
 1451 #endif
 1452 #if defined(__NR_arc_settls)
 1453     __NR_arc_settls,
 1454 #endif
 1455 #if defined(__NR_arc_usr_cmpxchg)
 1456     __NR_arc_usr_cmpxchg,
 1457 #endif
 1458 #if defined(__NR_arm_fadvise64_64)
 1459     __NR_arm_fadvise64_64,
 1460 #endif
 1461 #if defined(__NR_atomic_barrier)
 1462     __NR_atomic_barrier,
 1463 #endif
 1464 #if defined(__NR_atomic_cmpxchg_32)
 1465     __NR_atomic_cmpxchg_32,
 1466 #endif
 1467 #if defined(__NR_attrctl)
 1468     __NR_attrctl,
 1469 #endif
 1470 #if defined(__NR_bdflush)
 1471     __NR_bdflush,
 1472 #endif
 1473 #if defined(__NR_bfin_spinlock)
 1474     __NR_bfin_spinlock,
 1475 #endif
 1476 #if defined(__NR_bind)
 1477     __NR_bind,
 1478 #endif
 1479 #if defined(__NR_bpf)
 1480     __NR_bpf,
 1481 #endif
 1482 #if defined(__NR_break)
 1483     __NR_break,
 1484 #endif
 1485 #if defined(__NR_brk)
 1486     __NR_brk,
 1487 #endif
 1488 #if defined(__NR_cachectl)
 1489     __NR_cachectl,
 1490 #endif
 1491 #if defined(__NR_cacheflush)
 1492     __NR_cacheflush,
 1493 #endif
 1494 #if defined(__NR_cache_sync)
 1495     __NR_cache_sync,
 1496 #endif
 1497 #if defined(__NR_capget)
 1498     __NR_capget,
 1499 #endif
 1500 #if defined(__NR_capset)
 1501     __NR_capset,
 1502 #endif
 1503 #if defined(__NR_chdir)
 1504     __NR_chdir,
 1505 #endif
 1506 #if defined(__NR_chmod)
 1507     __NR_chmod,
 1508 #endif
 1509 #if defined(__NR_chown)
 1510     __NR_chown,
 1511 #endif
 1512 #if defined(__NR_chown32)
 1513     __NR_chown32,
 1514 #endif
 1515 #if defined(__NR_chroot)
 1516     __NR_chroot,
 1517 #endif
 1518 #if defined(__NR_clock_adjtime)
 1519     __NR_clock_adjtime,
 1520 #endif
 1521 #if defined(__NR_clock_getres)
 1522     __NR_clock_getres,
 1523 #endif
 1524 #if defined(__NR_clock_gettime)
 1525     __NR_clock_gettime,
 1526 #endif
 1527 #if defined(__NR_clock_nanosleep)
 1528     __NR_clock_nanosleep,
 1529 #endif
 1530 #if defined(__NR_clock_settime)
 1531     __NR_clock_settime,
 1532 #endif
 1533 #if defined(__NR_clone)
 1534     __NR_clone,
 1535 #endif
 1536 #if defined(__NR_clone2)
 1537     __NR_clone2,
 1538 #endif
 1539 #if defined(__NR_close)
 1540     __NR_close,
 1541 #endif
 1542 #if defined(__NR_cmpxchg_badaddr)
 1543     __NR_cmpxchg_badaddr,
 1544 #endif
 1545 #if defined(__NR_compat_exit)
 1546     __NR_compat_exit,
 1547 #endif
 1548 #if defined(__NR_compat_read)
 1549     __NR_compat_read,
 1550 #endif
 1551 #if defined(__NR_compat_restart_syscall)
 1552     __NR_compat_restart_syscall,
 1553 #endif
 1554 #if defined(__NR_compat_rt_sigreturn)
 1555     __NR_compat_rt_sigreturn,
 1556 #endif
 1557 #if defined(__NR_compat_sigreturn)
 1558     __NR_compat_sigreturn,
 1559 #endif
 1560 #if defined(__NR_compat_syscalls)
 1561     __NR_compat_syscalls,
 1562 #endif
 1563 #if defined(__NR_compat_write)
 1564     __NR_compat_write,
 1565 #endif
 1566 #if defined(__NR_connect)
 1567     __NR_connect,
 1568 #endif
 1569 #if defined(__NR_copy_file_range)
 1570     __NR_copy_file_range,
 1571 #endif
 1572 #if defined(__NR_creat)
 1573     __NR_creat,
 1574 #endif
 1575 #if defined(__NR_create_module)
 1576     __NR_create_module,
 1577 #endif
 1578 #if defined(__NR_delete_module)
 1579     __NR_delete_module,
 1580 #endif
 1581 #if defined(__NR_dipc)
 1582     __NR_dipc,
 1583 #endif
 1584 #if defined(__NR_dma_memcpy)
 1585     __NR_dma_memcpy,
 1586 #endif
 1587 #if defined(__NR_dup)
 1588     __NR_dup,
 1589 #endif
 1590 #if defined(__NR_dup2)
 1591     __NR_dup2,
 1592 #endif
 1593 #if defined(__NR_dup3)
 1594     __NR_dup3,
 1595 #endif
 1596 #if defined(__NR_epoll_create)
 1597     __NR_epoll_create,
 1598 #endif
 1599 #if defined(__NR_epoll_create1)
 1600     __NR_epoll_create1,
 1601 #endif
 1602 #if defined(__NR_epoll_ctl)
 1603     __NR_epoll_ctl,
 1604 #endif
 1605 #if defined(__NR_epoll_pwait)
 1606     __NR_epoll_pwait,
 1607 #endif
 1608 #if defined(__NR_epoll_wait)
 1609     __NR_epoll_wait,
 1610 #endif
 1611 #if defined(__NR_eventfd)
 1612     __NR_eventfd,
 1613 #endif
 1614 #if defined(__NR_eventfd2)
 1615     __NR_eventfd2,
 1616 #endif
 1617 #if defined(__NR_execv)
 1618     __NR_execv,
 1619 #endif
 1620 #if defined(__NR_execve)
 1621     __NR_execve,
 1622 #endif
 1623 #if defined(__NR_execveat)
 1624     __NR_execveat,
 1625 #endif
 1626 #if defined(__NR_exec_with_loader)
 1627     __NR_exec_with_loader,
 1628 #endif
 1629 #if defined(__NR_exit)
 1630     __NR_exit,
 1631 #endif
 1632 #if defined(__NR__exit)
 1633     __NR__exit,
 1634 #endif
 1635 #if defined(__NR_exit_group)
 1636     __NR_exit_group,
 1637 #endif
 1638 #if defined(__NR_faccessat)
 1639     __NR_faccessat,
 1640 #endif
 1641 #if defined(__NR_fadvise64)
 1642     __NR_fadvise64,
 1643 #endif
 1644 #if defined(__NR_fadvise64_64)
 1645     __NR_fadvise64_64,
 1646 #endif
 1647 #if defined(__NR_fallocate)
 1648     __NR_fallocate,
 1649 #endif
 1650 #if defined(__NR_fanotify_init)
 1651     __NR_fanotify_init,
 1652 #endif
 1653 #if defined(__NR_fanotify_mark)
 1654     __NR_fanotify_mark,
 1655 #endif
 1656 #if defined(__NR_FAST_atomic_update)
 1657     __NR_FAST_atomic_update,
 1658 #endif
 1659 #if defined(__NR_FAST_cmpxchg)
 1660     __NR_FAST_cmpxchg,
 1661 #endif
 1662 #if defined(__NR_FAST_cmpxchg64)
 1663     __NR_FAST_cmpxchg64,
 1664 #endif
 1665 #if defined(__NR_fchdir)
 1666     __NR_fchdir,
 1667 #endif
 1668 #if defined(__NR_fchmod)
 1669     __NR_fchmod,
 1670 #endif
 1671 #if defined(__NR_fchmodat)
 1672     __NR_fchmodat,
 1673 #endif
 1674 #if defined(__NR_fchown)
 1675     __NR_fchown,
 1676 #endif
 1677 #if defined(__NR_fchown32)
 1678     __NR_fchown32,
 1679 #endif
 1680 #if defined(__NR_fchownat)
 1681     __NR_fchownat,
 1682 #endif
 1683 #if defined(__NR_fcntl)
 1684     __NR_fcntl,
 1685 #endif
 1686 #if defined(__NR_fcntl64)
 1687     __NR_fcntl64,
 1688 #endif
 1689 #if defined(__NR_fdatasync)
 1690     __NR_fdatasync,
 1691 #endif
 1692 #if defined(__NR_fgetxattr)
 1693     __NR_fgetxattr,
 1694 #endif
 1695 #if defined(__NR_finit_module)
 1696     __NR_finit_module,
 1697 #endif
 1698 #if defined(__NR_flistxattr)
 1699     __NR_flistxattr,
 1700 #endif
 1701 #if defined(__NR_flock)
 1702     __NR_flock,
 1703 #endif
 1704 #if defined(__NR_fork)
 1705     __NR_fork,
 1706 #endif
 1707 #if defined(__NR_free_hugepages)
 1708     __NR_free_hugepages,
 1709 #endif
 1710 #if defined(__NR_fremovexattr)
 1711     __NR_fremovexattr,
 1712 #endif
 1713 #if defined(__NR_fsetxattr)
 1714     __NR_fsetxattr,
 1715 #endif
 1716 #if defined(__NR_fstat)
 1717     __NR_fstat,
 1718 #endif
 1719 #if defined(__NR_fstat64)
 1720     __NR_fstat64,
 1721 #endif
 1722 #if defined(__NR_fstatat64)
 1723     __NR_fstatat64,
 1724 #endif
 1725 #if defined(__NR_fstatfs)
 1726     __NR_fstatfs,
 1727 #endif
 1728 #if defined(__NR_fstatfs64)
 1729     __NR_fstatfs64,
 1730 #endif
 1731 #if defined(__NR_fsync)
 1732     __NR_fsync,
 1733 #endif
 1734 #if defined(__NR_ftime)
 1735     __NR_ftime,
 1736 #endif
 1737 #if defined(__NR_ftruncate)
 1738     __NR_ftruncate,
 1739 #endif
 1740 #if defined(__NR_ftruncate64)
 1741     __NR_ftruncate64,
 1742 #endif
 1743 #if defined(__NR_futex)
 1744     __NR_futex,
 1745 #endif
 1746 #if defined(__NR_futimesat)
 1747     __NR_futimesat,
 1748 #endif
 1749 #if defined(__NR_getcpu)
 1750     __NR_getcpu,
 1751 #endif
 1752 #if defined(__NR_getcwd)
 1753     __NR_getcwd,
 1754 #endif
 1755 #if defined(__NR_getdents)
 1756     __NR_getdents,
 1757 #endif
 1758 #if defined(__NR_getdents64)
 1759     __NR_getdents64,
 1760 #endif
 1761 #if defined(__NR_getdomainname)
 1762     __NR_getdomainname,
 1763 #endif
 1764 #if defined(__NR_getdtablesize)
 1765     __NR_getdtablesize,
 1766 #endif
 1767 #if defined(__NR_getegid)
 1768     __NR_getegid,
 1769 #endif
 1770 #if defined(__NR_getegid32)
 1771     __NR_getegid32,
 1772 #endif
 1773 #if defined(__NR_geteuid)
 1774     __NR_geteuid,
 1775 #endif
 1776 #if defined(__NR_geteuid32)
 1777     __NR_geteuid32,
 1778 #endif
 1779 #if defined(__NR_getgid)
 1780     __NR_getgid,
 1781 #endif
 1782 #if defined(__NR_getgid32)
 1783     __NR_getgid32,
 1784 #endif
 1785 #if defined(__NR_getgroups)
 1786     __NR_getgroups,
 1787 #endif
 1788 #if defined(__NR_getgroups32)
 1789     __NR_getgroups32,
 1790 #endif
 1791 #if defined(__NR_gethostname)
 1792     __NR_gethostname,
 1793 #endif
 1794 #if defined(__NR_getitimer)
 1795     __NR_getitimer,
 1796 #endif
 1797 #if defined(__NR_get_kernel_syms)
 1798     __NR_get_kernel_syms,
 1799 #endif
 1800 #if defined(__NR_get_mempolicy)
 1801     __NR_get_mempolicy,
 1802 #endif
 1803 #if defined(__NR_getpagesize)
 1804     __NR_getpagesize,
 1805 #endif
 1806 #if defined(__NR_getpeername)
 1807     __NR_getpeername,
 1808 #endif
 1809 #if defined(__NR_getpgid)
 1810     __NR_getpgid,
 1811 #endif
 1812 #if defined(__NR_getpgrp)
 1813     __NR_getpgrp,
 1814 #endif
 1815 #if defined(__NR_getpid)
 1816     __NR_getpid,
 1817 #endif
 1818 #if defined(__NR_getpmsg)
 1819     __NR_getpmsg,
 1820 #endif
 1821 #if defined(__NR_getppid)
 1822     __NR_getppid,
 1823 #endif
 1824 #if defined(__NR_getpriority)
 1825     __NR_getpriority,
 1826 #endif
 1827 #if defined(__NR_getrandom)
 1828     __NR_getrandom,
 1829 #endif
 1830 #if defined(__NR_getresgid)
 1831     __NR_getresgid,
 1832 #endif
 1833 #if defined(__NR_getresgid32)
 1834     __NR_getresgid32,
 1835 #endif
 1836 #if defined(__NR_getresuid)
 1837     __NR_getresuid,
 1838 #endif
 1839 #if defined(__NR_getresuid32)
 1840     __NR_getresuid32,
 1841 #endif
 1842 #if defined(__NR_getrlimit)
 1843     __NR_getrlimit,
 1844 #endif
 1845 #if defined(__NR_get_robust_list)
 1846     __NR_get_robust_list,
 1847 #endif
 1848 #if defined(__NR_getrusage)
 1849     __NR_getrusage,
 1850 #endif
 1851 #if defined(__NR_getsid)
 1852     __NR_getsid,
 1853 #endif
 1854 #if defined(__NR_getsockname)
 1855     __NR_getsockname,
 1856 #endif
 1857 #if defined(__NR_getsockopt)
 1858     __NR_getsockopt,
 1859 #endif
 1860 #if defined(__NR_get_thread_area)
 1861     __NR_get_thread_area,
 1862 #endif
 1863 #if defined(__NR_gettid)
 1864     __NR_gettid,
 1865 #endif
 1866 #if defined(__NR_gettimeofday)
 1867     __NR_gettimeofday,
 1868 #endif
 1869 #if defined(__NR_getuid)
 1870     __NR_getuid,
 1871 #endif
 1872 #if defined(__NR_getuid32)
 1873     __NR_getuid32,
 1874 #endif
 1875 #if defined(__NR_getunwind)
 1876     __NR_getunwind,
 1877 #endif
 1878 #if defined(__NR_getxattr)
 1879     __NR_getxattr,
 1880 #endif
 1881 #if defined(__NR_getxgid)
 1882     __NR_getxgid,
 1883 #endif
 1884 #if defined(__NR_getxpid)
 1885     __NR_getxpid,
 1886 #endif
 1887 #if defined(__NR_getxuid)
 1888     __NR_getxuid,
 1889 #endif
 1890 #if defined(__NR_gtty)
 1891     __NR_gtty,
 1892 #endif
 1893 #if defined(__NR_idle)
 1894     __NR_idle,
 1895 #endif
 1896 #if defined(__NR_init_module)
 1897     __NR_init_module,
 1898 #endif
 1899 #if defined(__NR_inotify_add_watch)
 1900     __NR_inotify_add_watch,
 1901 #endif
 1902 #if defined(__NR_inotify_init)
 1903     __NR_inotify_init,
 1904 #endif
 1905 #if defined(__NR_inotify_init1)
 1906     __NR_inotify_init1,
 1907 #endif
 1908 #if defined(__NR_inotify_rm_watch)
 1909     __NR_inotify_rm_watch,
 1910 #endif
 1911 #if defined(__NR_io_cancel)
 1912     __NR_io_cancel,
 1913 #endif
 1914 #if defined(__NR_ioctl)
 1915     __NR_ioctl,
 1916 #endif
 1917 #if defined(__NR_io_destroy)
 1918     __NR_io_destroy,
 1919 #endif
 1920 #if defined(__NR_io_getevents)
 1921     __NR_io_getevents,
 1922 #endif
 1923 #if defined(__NR_io_pgetevents)
 1924     __NR_io_pgetevents,
 1925 #endif
 1926 #if defined(__NR_ioperm)
 1927     __NR_ioperm,
 1928 #endif
 1929 #if defined(__NR_iopl)
 1930     __NR_iopl,
 1931 #endif
 1932 #if defined(__NR_ioprio_get)
 1933     __NR_ioprio_get,
 1934 #endif
 1935 #if defined(__NR_ioprio_set)
 1936     __NR_ioprio_set,
 1937 #endif
 1938 #if defined(__NR_io_setup)
 1939     __NR_io_setup,
 1940 #endif
 1941 #if defined(__NR_io_submit)
 1942     __NR_io_submit,
 1943 #endif
 1944 #if defined(__NR_ipc)
 1945     __NR_ipc,
 1946 #endif
 1947 #if defined(__NR_kcmp)
 1948     __NR_kcmp,
 1949 #endif
 1950 #if defined(__NR_kern_features)
 1951     __NR_kern_features,
 1952 #endif
 1953 #if defined(__NR_kexec_file_load)
 1954     __NR_kexec_file_load,
 1955 #endif
 1956 #if defined(__NR_kexec_load)
 1957     __NR_kexec_load,
 1958 #endif
 1959 #if defined(__NR_keyctl)
 1960     __NR_keyctl,
 1961 #endif
 1962 #if defined(__NR_kill)
 1963     __NR_kill,
 1964 #endif
 1965 #if defined(__NR_lchown)
 1966     __NR_lchown,
 1967 #endif
 1968 #if defined(__NR_lchown32)
 1969     __NR_lchown32,
 1970 #endif
 1971 #if defined(__NR_lgetxattr)
 1972     __NR_lgetxattr,
 1973 #endif
 1974 #if defined(__NR_link)
 1975     __NR_link,
 1976 #endif
 1977 #if defined(__NR_linkat)
 1978     __NR_linkat,
 1979 #endif
 1980 #if defined(__NR_Linux)
 1981     __NR_Linux,
 1982 #endif
 1983 #if defined(__NR_Linux_syscalls)
 1984     __NR_Linux_syscalls,
 1985 #endif
 1986 #if defined(__NR_listen)
 1987     __NR_listen,
 1988 #endif
 1989 #if defined(__NR_listxattr)
 1990     __NR_listxattr,
 1991 #endif
 1992 #if defined(__NR_llistxattr)
 1993     __NR_llistxattr,
 1994 #endif
 1995 #if defined(__NR_llseek)
 1996     __NR_llseek,
 1997 #endif
 1998 #if defined(__NR__llseek)
 1999     __NR__llseek,
 2000 #endif
 2001 #if defined(__NR_lock)
 2002     __NR_lock,
 2003 #endif
 2004 #if defined(__NR_lookup_dcookie)
 2005     __NR_lookup_dcookie,
 2006 #endif
 2007 #if defined(__NR_lremovexattr)
 2008     __NR_lremovexattr,
 2009 #endif
 2010 #if defined(__NR_lseek)
 2011     __NR_lseek,
 2012 #endif
 2013 #if defined(__NR_lsetxattr)
 2014     __NR_lsetxattr,
 2015 #endif
 2016 #if defined(__NR_lstat)
 2017     __NR_lstat,
 2018 #endif
 2019 #if defined(__NR_lstat64)
 2020     __NR_lstat64,
 2021 #endif
 2022 #if defined(__NR_lws_entries)
 2023     __NR_lws_entries,
 2024 #endif
 2025 #if defined(__NR_madvise)
 2026     __NR_madvise,
 2027 #endif
 2028 #if defined(__NR_madvise1)
 2029     __NR_madvise1,
 2030 #endif
 2031 #if defined(__NR_mbind)
 2032     __NR_mbind,
 2033 #endif
 2034 #if defined(__NR_membarrier)
 2035     __NR_membarrier,
 2036 #endif
 2037 #if defined(__NR_memfd_create)
 2038     __NR_memfd_create,
 2039 #endif
 2040 #if defined(__NR_memory_ordering)
 2041     __NR_memory_ordering,
 2042 #endif
 2043 #if defined(__NR_metag_get_tls)
 2044     __NR_metag_get_tls,
 2045 #endif
 2046 #if defined(__NR_metag_set_fpu_flags)
 2047     __NR_metag_set_fpu_flags,
 2048 #endif
 2049 #if defined(__NR_metag_setglobalbit)
 2050     __NR_metag_setglobalbit,
 2051 #endif
 2052 #if defined(__NR_metag_set_tls)
 2053     __NR_metag_set_tls,
 2054 #endif
 2055 #if defined(__NR_migrate_pages)
 2056     __NR_migrate_pages,
 2057 #endif
 2058 #if defined(__NR_mincore)
 2059     __NR_mincore,
 2060 #endif
 2061 #if defined(__NR_mkdir)
 2062     __NR_mkdir,
 2063 #endif
 2064 #if defined(__NR_mkdirat)
 2065     __NR_mkdirat,
 2066 #endif
 2067 #if defined(__NR_mknod)
 2068     __NR_mknod,
 2069 #endif
 2070 #if defined(__NR_mknodat)
 2071     __NR_mknodat,
 2072 #endif
 2073 #if defined(__NR_mlock)
 2074     __NR_mlock,
 2075 #endif
 2076 #if defined(__NR_mlock2)
 2077     __NR_mlock2,
 2078 #endif
 2079 #if defined(__NR_mlockall)
 2080     __NR_mlockall,
 2081 #endif
 2082 #if defined(__NR_mmap)
 2083     __NR_mmap,
 2084 #endif
 2085 #if defined(__NR_mmap2)
 2086     __NR_mmap2,
 2087 #endif
 2088 #if defined(__NR_modify_ldt)
 2089     __NR_modify_ldt,
 2090 #endif
 2091 #if defined(__NR_mount)
 2092     __NR_mount,
 2093 #endif
 2094 #if defined(__NR_move_pages)
 2095     __NR_move_pages,
 2096 #endif
 2097 #if defined(__NR_mprotect)
 2098     __NR_mprotect,
 2099 #endif
 2100 #if defined(__NR_mpx)
 2101     __NR_mpx,
 2102 #endif
 2103 #if defined(__NR_mq_getsetattr)
 2104     __NR_mq_getsetattr,
 2105 #endif
 2106 #if defined(__NR_mq_notify)
 2107     __NR_mq_notify,
 2108 #endif
 2109 #if defined(__NR_mq_open)
 2110     __NR_mq_open,
 2111 #endif
 2112 #if defined(__NR_mq_timedreceive)
 2113     __NR_mq_timedreceive,
 2114 #endif
 2115 #if defined(__NR_mq_timedsend)
 2116     __NR_mq_timedsend,
 2117 #endif
 2118 #if defined(__NR_mq_unlink)
 2119     __NR_mq_unlink,
 2120 #endif
 2121 #if defined(__NR_mremap)
 2122     __NR_mremap,
 2123 #endif
 2124 #if defined(__NR_msgctl)
 2125     __NR_msgctl,
 2126 #endif
 2127 #if defined(__NR_msgget)
 2128     __NR_msgget,
 2129 #endif
 2130 #if defined(__NR_msgrcv)
 2131     __NR_msgrcv,
 2132 #endif
 2133 #if defined(__NR_msgsnd)
 2134     __NR_msgsnd,
 2135 #endif
 2136 #if defined(__NR_msync)
 2137     __NR_msync,
 2138 #endif
 2139 #if defined(__NR_multiplexer)
 2140     __NR_multiplexer,
 2141 #endif
 2142 #if defined(__NR_munlock)
 2143     __NR_munlock,
 2144 #endif
 2145 #if defined(__NR_munlockall)
 2146     __NR_munlockall,
 2147 #endif
 2148 #if defined(__NR_munmap)
 2149     __NR_munmap,
 2150 #endif
 2151 #if defined(__NR_N32_Linux)
 2152     __NR_N32_Linux,
 2153 #endif
 2154 #if defined(__NR_N32_Linux_syscalls)
 2155     __NR_N32_Linux_syscalls,
 2156 #endif
 2157 #if defined(__NR_N32_restart_syscall)
 2158     __NR_N32_restart_syscall,
 2159 #endif
 2160 #if defined(__NR_name_to_handle_at)
 2161     __NR_name_to_handle_at,
 2162 #endif
 2163 #if defined(__NR_nanosleep)
 2164     __NR_nanosleep,
 2165 #endif
 2166 #if defined(__NR_newfstat)
 2167     __NR_newfstat,
 2168 #endif
 2169 #if defined(__NR_newfstatat)
 2170     __NR_newfstatat,
 2171 #endif
 2172 #if defined(__NR_newlstat)
 2173     __NR_newlstat,
 2174 #endif
 2175 #if defined(__NR__newselect)
 2176     __NR__newselect,
 2177 #endif
 2178 #if defined(__NR_newstat)
 2179     __NR_newstat,
 2180 #endif
 2181 #if defined(__NR_newuname)
 2182     __NR_newuname,
 2183 #endif
 2184 #if defined(__NR_nfsservctl)
 2185     __NR_nfsservctl,
 2186 #endif
 2187 #if defined(__NR_nice)
 2188     __NR_nice,
 2189 #endif
 2190 #if defined(__NR_ni_syscall)
 2191     __NR_ni_syscall,
 2192 #endif
 2193 #if defined(__NR_old_adjtimex)
 2194     __NR_old_adjtimex,
 2195 #endif
 2196 #if defined(__NR_olddebug_setcontext)
 2197     __NR_olddebug_setcontext,
 2198 #endif
 2199 #if defined(__NR_oldfstat)
 2200     __NR_oldfstat,
 2201 #endif
 2202 #if defined(__NR_old_getrlimit)
 2203     __NR_old_getrlimit,
 2204 #endif
 2205 #if defined(__NR_oldlstat)
 2206     __NR_oldlstat,
 2207 #endif
 2208 #if defined(__NR_oldolduname)
 2209     __NR_oldolduname,
 2210 #endif
 2211 #if defined(__NR_oldstat)
 2212     __NR_oldstat,
 2213 #endif
 2214 #if defined(__NR_oldumount)
 2215     __NR_oldumount,
 2216 #endif
 2217 #if defined(__NR_olduname)
 2218     __NR_olduname,
 2219 #endif
 2220 #if defined(__NR_oldwait4)
 2221     __NR_oldwait4,
 2222 #endif
 2223 #if defined(__NR_open)
 2224     __NR_open,
 2225 #endif
 2226 #if defined(__NR_openat)
 2227     __NR_openat,
 2228 #endif
 2229 #if defined(__NR_open_by_handle_at)
 2230     __NR_open_by_handle_at,
 2231 #endif
 2232 #if defined(__NR_or1k_atomic)
 2233     __NR_or1k_atomic,
 2234 #endif
 2235 #if defined(__NR_pause)
 2236     __NR_pause,
 2237 #endif
 2238 #if defined(__NR_pciconfig_iobase)
 2239     __NR_pciconfig_iobase,
 2240 #endif
 2241 #if defined(__NR_pciconfig_read)
 2242     __NR_pciconfig_read,
 2243 #endif
 2244 #if defined(__NR_pciconfig_write)
 2245     __NR_pciconfig_write,
 2246 #endif
 2247 #if defined(__NR_perfctr)
 2248     __NR_perfctr,
 2249 #endif
 2250 #if defined(__NR_perf_event_open)
 2251     __NR_perf_event_open,
 2252 #endif
 2253 #if defined(__NR_perfmonctl)
 2254     __NR_perfmonctl,
 2255 #endif
 2256 #if defined(__NR_personality)
 2257     __NR_personality,
 2258 #endif
 2259 #if defined(__NR_pipe)
 2260     __NR_pipe,
 2261 #endif
 2262 #if defined(__NR_pipe2)
 2263     __NR_pipe2,
 2264 #endif
 2265 #if defined(__NR_pivot_root)
 2266     __NR_pivot_root,
 2267 #endif
 2268 #if defined(__NR_pkey_alloc)
 2269     __NR_pkey_alloc,
 2270 #endif
 2271 #if defined(__NR_pkey_free)
 2272     __NR_pkey_free,
 2273 #endif
 2274 #if defined(__NR_pkey_get)
 2275     __NR_pkey_get,
 2276 #endif
 2277 #if defined(__NR_pkey_mprotect)
 2278     __NR_pkey_mprotect,
 2279 #endif
 2280 #if defined(__NR_pkey_set)
 2281     __NR_pkey_set,
 2282 #endif
 2283 #if defined(__NR_poll)
 2284     __NR_poll,
 2285 #endif
 2286 #if defined(__NR_ppoll)
 2287     __NR_ppoll,
 2288 #endif
 2289 #if defined(__NR_prctl)
 2290     __NR_prctl,
 2291 #endif
 2292 #if defined(__NR_pread)
 2293     __NR_pread,
 2294 #endif
 2295 #if defined(__NR_pread64)
 2296     __NR_pread64,
 2297 #endif
 2298 #if defined(__NR_preadv)
 2299     __NR_preadv,
 2300 #endif
 2301 #if defined(__NR_preadv2)
 2302     __NR_preadv2,
 2303 #endif
 2304 #if defined(__NR_prlimit64)
 2305     __NR_prlimit64,
 2306 #endif
 2307 #if defined(__NR_process_vm_readv)
 2308     __NR_process_vm_readv,
 2309 #endif
 2310 #if defined(__NR_process_vm_writev)
 2311     __NR_process_vm_writev,
 2312 #endif
 2313 #if defined(__NR_prof)
 2314     __NR_prof,
 2315 #endif
 2316 #if defined(__NR_profil)
 2317     __NR_profil,
 2318 #endif
 2319 #if defined(__NR_pselect6)
 2320     __NR_pselect6,
 2321 #endif
 2322 #if defined(__NR_ptrace)
 2323     __NR_ptrace,
 2324 #endif
 2325 #if defined(__NR_putpmsg)
 2326     __NR_putpmsg,
 2327 #endif
 2328 #if defined(__NR_pwrite)
 2329     __NR_pwrite,
 2330 #endif
 2331 #if defined(__NR_pwrite64)
 2332     __NR_pwrite64,
 2333 #endif
 2334 #if defined(__NR_pwritev)
 2335     __NR_pwritev,
 2336 #endif
 2337 #if defined(__NR_pwritev2)
 2338     __NR_pwritev2,
 2339 #endif
 2340 #if defined(__NR_query_module)
 2341     __NR_query_module,
 2342 #endif
 2343 #if defined(__NR_quotactl)
 2344     __NR_quotactl,
 2345 #endif
 2346 #if defined(__NR_read)
 2347     __NR_read,
 2348 #endif
 2349 #if defined(__NR_readahead)
 2350     __NR_readahead,
 2351 #endif
 2352 #if defined(__NR_readdir)
 2353     __NR_readdir,
 2354 #endif
 2355 #if defined(__NR_readlink)
 2356     __NR_readlink,
 2357 #endif
 2358 #if defined(__NR_readlinkat)
 2359     __NR_readlinkat,
 2360 #endif
 2361 #if defined(__NR_readv)
 2362     __NR_readv,
 2363 #endif
 2364 #if defined(__NR_reboot)
 2365     __NR_reboot,
 2366 #endif
 2367 #if defined(__NR_recv)
 2368     __NR_recv,
 2369 #endif
 2370 #if defined(__NR_recvfrom)
 2371     __NR_recvfrom,
 2372 #endif
 2373 #if defined(__NR_recvmmsg)
 2374     __NR_recvmmsg,
 2375 #endif
 2376 #if defined(__NR_recvmsg)
 2377     __NR_recvmsg,
 2378 #endif
 2379 #if defined(__NR_remap_file_pages)
 2380     __NR_remap_file_pages,
 2381 #endif
 2382 #if defined(__NR_removexattr)
 2383     __NR_removexattr,
 2384 #endif
 2385 #if defined(__NR_rename)
 2386     __NR_rename,
 2387 #endif
 2388 #if defined(__NR_renameat)
 2389     __NR_renameat,
 2390 #endif
 2391 #if defined(__NR_renameat2)
 2392     __NR_renameat2,
 2393 #endif
 2394 #if defined(__NR_request_key)
 2395     __NR_request_key,
 2396 #endif
 2397 #if defined(__NR_reserved152)
 2398     __NR_reserved152,
 2399 #endif
 2400 #if defined(__NR_reserved153)
 2401     __NR_reserved153,
 2402 #endif
 2403 #if defined(__NR_reserved177)
 2404     __NR_reserved177,
 2405 #endif
 2406 #if defined(__NR_reserved193)
 2407     __NR_reserved193,
 2408 #endif
 2409 #if defined(__NR_reserved221)
 2410     __NR_reserved221,
 2411 #endif
 2412 #if defined(__NR_reserved253)
 2413     __NR_reserved253,
 2414 #endif
 2415 #if defined(__NR_reserved82)
 2416     __NR_reserved82,
 2417 #endif
 2418 #if defined(__NR_restart_syscall)
 2419     __NR_restart_syscall,
 2420 #endif
 2421 #if defined(__NR_riscv_flush_icache)
 2422     __NR_riscv_flush_icache,
 2423 #endif
 2424 #if defined(__NR_rmdir)
 2425     __NR_rmdir,
 2426 #endif
 2427 #if defined(__NR_rseq)
 2428     __NR_rseq,
 2429 #endif
 2430 #if defined(__NR_rtas)
 2431     __NR_rtas,
 2432 #endif
 2433 #if defined(__NR_rt_sigaction)
 2434     __NR_rt_sigaction,
 2435 #endif
 2436 #if defined(__NR_rt_sigpending)
 2437     __NR_rt_sigpending,
 2438 #endif
 2439 #if defined(__NR_rt_sigprocmask)
 2440     __NR_rt_sigprocmask,
 2441 #endif
 2442 #if defined(__NR_rt_sigqueueinfo)
 2443     __NR_rt_sigqueueinfo,
 2444 #endif
 2445 #if defined(__NR_rt_sigreturn)
 2446     __NR_rt_sigreturn,
 2447 #endif
 2448 #if defined(__NR_rt_sigsuspend)
 2449     __NR_rt_sigsuspend,
 2450 #endif
 2451 #if defined(__NR_rt_sigtimedwait)
 2452     __NR_rt_sigtimedwait,
 2453 #endif
 2454 #if defined(__NR_rt_tgsigqueueinfo)
 2455     __NR_rt_tgsigqueueinfo,
 2456 #endif
 2457 #if defined(__NR_s390_guarded_storage)
 2458     __NR_s390_guarded_storage,
 2459 #endif
 2460 #if defined(__NR_s390_pci_mmio_read)
 2461     __NR_s390_pci_mmio_read,
 2462 #endif
 2463 #if defined(__NR_s390_pci_mmio_write)
 2464     __NR_s390_pci_mmio_write,
 2465 #endif
 2466 #if defined(__NR_s390_runtime_instr)
 2467     __NR_s390_runtime_instr,
 2468 #endif
 2469 #if defined(__NR_s390_sthyi)
 2470     __NR_s390_sthyi,
 2471 #endif
 2472 #if defined(__NR_sched_getaffinity)
 2473     __NR_sched_getaffinity,
 2474 #endif
 2475 #if defined(__NR_sched_get_affinity)
 2476     __NR_sched_get_affinity,
 2477 #endif
 2478 #if defined(__NR_sched_getattr)
 2479     __NR_sched_getattr,
 2480 #endif
 2481 #if defined(__NR_sched_getparam)
 2482     __NR_sched_getparam,
 2483 #endif
 2484 #if defined(__NR_sched_get_priority_max)
 2485     __NR_sched_get_priority_max,
 2486 #endif
 2487 #if defined(__NR_sched_get_priority_min)
 2488     __NR_sched_get_priority_min,
 2489 #endif
 2490 #if defined(__NR_sched_getscheduler)
 2491     __NR_sched_getscheduler,
 2492 #endif
 2493 #if defined(__NR_sched_rr_get_interval)
 2494     __NR_sched_rr_get_interval,
 2495 #endif
 2496 #if defined(__NR_sched_setaffinity)
 2497     __NR_sched_setaffinity,
 2498 #endif
 2499 #if defined(__NR_sched_set_affinity)
 2500     __NR_sched_set_affinity,
 2501 #endif
 2502 #if defined(__NR_sched_setattr)
 2503     __NR_sched_setattr,
 2504 #endif
 2505 #if defined(__NR_sched_setparam)
 2506     __NR_sched_setparam,
 2507 #endif
 2508 #if defined(__NR_sched_setscheduler)
 2509     __NR_sched_setscheduler,
 2510 #endif
 2511 #if defined(__NR_sched_yield)
 2512     __NR_sched_yield,
 2513 #endif
 2514 #if defined(__NR_seccomp)
 2515     __NR_seccomp,
 2516 #endif
 2517 #if defined(__NR_seccomp_exit)
 2518     __NR_seccomp_exit,
 2519 #endif
 2520 #if defined(__NR_seccomp_exit_32)
 2521     __NR_seccomp_exit_32,
 2522 #endif
 2523 #if defined(__NR_seccomp_read)
 2524     __NR_seccomp_read,
 2525 #endif
 2526 #if defined(__NR_seccomp_read_32)
 2527     __NR_seccomp_read_32,
 2528 #endif
 2529 #if defined(__NR_seccomp_sigreturn)
 2530     __NR_seccomp_sigreturn,
 2531 #endif
 2532 #if defined(__NR_seccomp_sigreturn_32)
 2533     __NR_seccomp_sigreturn_32,
 2534 #endif
 2535 #if defined(__NR_seccomp_write)
 2536     __NR_seccomp_write,
 2537 #endif
 2538 #if defined(__NR_seccomp_write_32)
 2539     __NR_seccomp_write_32,
 2540 #endif
 2541 #if defined(__NR_security)
 2542     __NR_security,
 2543 #endif
 2544 #if defined(__NR_select)
 2545     __NR_select,
 2546 #endif
 2547 #if defined(__NR_semctl)
 2548     __NR_semctl,
 2549 #endif
 2550 #if defined(__NR_semget)
 2551     __NR_semget,
 2552 #endif
 2553 #if defined(__NR_semop)
 2554     __NR_semop,
 2555 #endif
 2556 #if defined(__NR_semtimedop)
 2557     __NR_semtimedop,
 2558 #endif
 2559 #if defined(__NR_send)
 2560     __NR_send,
 2561 #endif
 2562 #if defined(__NR_sendfile)
 2563     __NR_sendfile,
 2564 #endif
 2565 #if defined(__NR_sendfile64)
 2566     __NR_sendfile64,
 2567 #endif
 2568 #if defined(__NR_sendmmsg)
 2569     __NR_sendmmsg,
 2570 #endif
 2571 #if defined(__NR_sendmsg)
 2572     __NR_sendmsg,
 2573 #endif
 2574 #if defined(__NR_sendto)
 2575     __NR_sendto,
 2576 #endif
 2577 #if defined(__NR_setdomainname)
 2578     __NR_setdomainname,
 2579 #endif
 2580 #if defined(__NR_setfsgid)
 2581     __NR_setfsgid,
 2582 #endif
 2583 #if defined(__NR_setfsgid32)
 2584     __NR_setfsgid32,
 2585 #endif
 2586 #if defined(__NR_setfsuid)
 2587     __NR_setfsuid,
 2588 #endif
 2589 #if defined(__NR_setfsuid32)
 2590     __NR_setfsuid32,
 2591 #endif
 2592 #if defined(__NR_setgid)
 2593     __NR_setgid,
 2594 #endif
 2595 #if defined(__NR_setgid32)
 2596     __NR_setgid32,
 2597 #endif
 2598 #if defined(__NR_setgroups)
 2599     __NR_setgroups,
 2600 #endif
 2601 #if defined(__NR_setgroups32)
 2602     __NR_setgroups32,
 2603 #endif
 2604 #if defined(__NR_sethae)
 2605     __NR_sethae,
 2606 #endif
 2607 #if defined(__NR_sethostname)
 2608     __NR_sethostname,
 2609 #endif
 2610 #if defined(__NR_setitimer)
 2611     __NR_setitimer,
 2612 #endif
 2613 #if defined(__NR_set_mempolicy)
 2614     __NR_set_mempolicy,
 2615 #endif
 2616 #if defined(__NR_setns)
 2617     __NR_setns,
 2618 #endif
 2619 #if defined(__NR_setpgid)
 2620     __NR_setpgid,
 2621 #endif
 2622 #if defined(__NR_setpgrp)
 2623     __NR_setpgrp,
 2624 #endif
 2625 #if defined(__NR_setpriority)
 2626     __NR_setpriority,
 2627 #endif
 2628 #if defined(__NR_setregid)
 2629     __NR_setregid,
 2630 #endif
 2631 #if defined(__NR_setregid32)
 2632     __NR_setregid32,
 2633 #endif
 2634 #if defined(__NR_setresgid)
 2635     __NR_setresgid,
 2636 #endif
 2637 #if defined(__NR_setresgid32)
 2638     __NR_setresgid32,
 2639 #endif
 2640 #if defined(__NR_setresuid)
 2641     __NR_setresuid,
 2642 #endif
 2643 #if defined(__NR_setresuid32)
 2644     __NR_setresuid32,
 2645 #endif
 2646 #if defined(__NR_setreuid)
 2647     __NR_setreuid,
 2648 #endif
 2649 #if defined(__NR_setreuid32)
 2650     __NR_setreuid32,
 2651 #endif
 2652 #if defined(__NR_setrlimit)
 2653     __NR_setrlimit,
 2654 #endif
 2655 #if defined(__NR_set_robust_list)
 2656     __NR_set_robust_list,
 2657 #endif
 2658 #if defined(__NR_setsid)
 2659     __NR_setsid,
 2660 #endif
 2661 #if defined(__NR_setsockopt)
 2662     __NR_setsockopt,
 2663 #endif
 2664 #if defined(__NR_set_thread_area)
 2665     __NR_set_thread_area,
 2666 #endif
 2667 #if defined(__NR_set_tid_address)
 2668     __NR_set_tid_address,
 2669 #endif
 2670 #if defined(__NR_settimeofday)
 2671     __NR_settimeofday,
 2672 #endif
 2673 #if defined(__NR_setuid)
 2674     __NR_setuid,
 2675 #endif
 2676 #if defined(__NR_setuid32)
 2677     __NR_setuid32,
 2678 #endif
 2679 #if defined(__NR_setxattr)
 2680     __NR_setxattr,
 2681 #endif
 2682 #if defined(__NR_sgetmask)
 2683     __NR_sgetmask,
 2684 #endif
 2685 #if defined(__NR_shmat)
 2686     __NR_shmat,
 2687 #endif
 2688 #if defined(__NR_shmctl)
 2689     __NR_shmctl,
 2690 #endif
 2691 #if defined(__NR_shmdt)
 2692     __NR_shmdt,
 2693 #endif
 2694 #if defined(__NR_shmget)
 2695     __NR_shmget,
 2696 #endif
 2697 #if defined(__NR_shutdown)
 2698     __NR_shutdown,
 2699 #endif
 2700 #if defined(__NR_sigaction)
 2701     __NR_sigaction,
 2702 #endif
 2703 #if defined(__NR_sigaltstack)
 2704     __NR_sigaltstack,
 2705 #endif
 2706 #if defined(__NR_signal)
 2707     __NR_signal,
 2708 #endif
 2709 #if defined(__NR_signalfd)
 2710     __NR_signalfd,
 2711 #endif
 2712 #if defined(__NR_signalfd4)
 2713     __NR_signalfd4,
 2714 #endif
 2715 #if defined(__NR_sigpending)
 2716     __NR_sigpending,
 2717 #endif
 2718 #if defined(__NR_sigprocmask)
 2719     __NR_sigprocmask,
 2720 #endif
 2721 #if defined(__NR_sigreturn)
 2722     __NR_sigreturn,
 2723 #endif
 2724 #if defined(__NR_sigsuspend)
 2725     __NR_sigsuspend,
 2726 #endif
 2727 #if defined(__NR_socket)
 2728     __NR_socket,
 2729 #endif
 2730 #if defined(__NR_socketcall)
 2731     __NR_socketcall,
 2732 #endif
 2733 #if defined(__NR_socketpair)
 2734     __NR_socketpair,
 2735 #endif
 2736 #if defined(__NR_spill)
 2737     __NR_spill,
 2738 #endif
 2739 #if defined(__NR_splice)
 2740     __NR_splice,
 2741 #endif
 2742 #if defined(__NR_spu_create)
 2743     __NR_spu_create,
 2744 #endif
 2745 #if defined(__NR_spu_run)
 2746     __NR_spu_run,
 2747 #endif
 2748 #if defined(__NR_sram_alloc)
 2749     __NR_sram_alloc,
 2750 #endif
 2751 #if defined(__NR_sram_free)
 2752     __NR_sram_free,
 2753 #endif
 2754 #if defined(__NR_ssetmask)
 2755     __NR_ssetmask,
 2756 #endif
 2757 #if defined(__NR_stat)
 2758     __NR_stat,
 2759 #endif
 2760 #if defined(__NR_stat64)
 2761     __NR_stat64,
 2762 #endif
 2763 #if defined(__NR_statfs)
 2764     __NR_statfs,
 2765 #endif
 2766 #if defined(__NR_statfs64)
 2767     __NR_statfs64,
 2768 #endif
 2769 #if defined(__NR_statx)
 2770     __NR_statx,
 2771 #endif
 2772 #if defined(__NR_stime)
 2773     __NR_stime,
 2774 #endif
 2775 #if defined(__NR_stty)
 2776     __NR_stty,
 2777 #endif
 2778 #if defined(__NR_subpage_prot)
 2779     __NR_subpage_prot,
 2780 #endif
 2781 #if defined(__NR_swapcontext)
 2782     __NR_swapcontext,
 2783 #endif
 2784 #if defined(__NR_swapoff)
 2785     __NR_swapoff,
 2786 #endif
 2787 #if defined(__NR_swapon)
 2788     __NR_swapon,
 2789 #endif
 2790 #if defined(__NR_switch_endian)
 2791     __NR_switch_endian,
 2792 #endif
 2793 #if defined(__NR_symlink)
 2794     __NR_symlink,
 2795 #endif
 2796 #if defined(__NR_symlinkat)
 2797     __NR_symlinkat,
 2798 #endif
 2799 #if defined(__NR_sync)
 2800     __NR_sync,
 2801 #endif
 2802 #if defined(__NR_sync_file_range)
 2803     __NR_sync_file_range,
 2804 #endif
 2805 #if defined(__NR_sync_file_range2)
 2806     __NR_sync_file_range2,
 2807 #endif
 2808 #if defined(__NR_syncfs)
 2809     __NR_syncfs,
 2810 #endif
 2811 #if defined(__NR_syscall)
 2812     __NR_syscall,
 2813 #endif
 2814 #if defined(__NR_SYSCALL_BASE)
 2815     __NR_SYSCALL_BASE,
 2816 #endif
 2817 #if defined(__NR_syscall_compat_max)
 2818     __NR_syscall_compat_max,
 2819 #endif
 2820 #if defined(__NR_syscall_count)
 2821     __NR_syscall_count,
 2822 #endif
 2823 #if defined(__NR_syscalls)
 2824     __NR_syscalls,
 2825 #endif
 2826 #if defined(__NR_sysctl)
 2827     __NR_sysctl,
 2828 #endif
 2829 #if defined(__NR__sysctl)
 2830     __NR__sysctl,
 2831 #endif
 2832 #if defined(__NR_sys_debug_setcontext)
 2833     __NR_sys_debug_setcontext,
 2834 #endif
 2835 #if defined(__NR_sysfs)
 2836     __NR_sysfs,
 2837 #endif
 2838 #if defined(__NR_sysinfo)
 2839     __NR_sysinfo,
 2840 #endif
 2841 #if defined(__NR_syslog)
 2842     __NR_syslog,
 2843 #endif
 2844 #if defined(__NR_sysmips)
 2845     __NR_sysmips,
 2846 #endif
 2847 #if defined(__NR_tas)
 2848     __NR_tas,
 2849 #endif
 2850 #if defined(__NR_tee)
 2851     __NR_tee,
 2852 #endif
 2853 #if defined(__NR_tgkill)
 2854     __NR_tgkill,
 2855 #endif
 2856 #if defined(__NR_time)
 2857     __NR_time,
 2858 #endif
 2859 #if defined(__NR_timer_create)
 2860     __NR_timer_create,
 2861 #endif
 2862 #if defined(__NR_timer_delete)
 2863     __NR_timer_delete,
 2864 #endif
 2865 #if defined(__NR_timerfd)
 2866     __NR_timerfd,
 2867 #endif
 2868 #if defined(__NR_timerfd_create)
 2869     __NR_timerfd_create,
 2870 #endif
 2871 #if defined(__NR_timerfd_gettime)
 2872     __NR_timerfd_gettime,
 2873 #endif
 2874 #if defined(__NR_timerfd_settime)
 2875     __NR_timerfd_settime,
 2876 #endif
 2877 #if defined(__NR_timer_getoverrun)
 2878     __NR_timer_getoverrun,
 2879 #endif
 2880 #if defined(__NR_timer_gettime)
 2881     __NR_timer_gettime,
 2882 #endif
 2883 #if defined(__NR_timer_settime)
 2884     __NR_timer_settime,
 2885 #endif
 2886 #if defined(__NR_times)
 2887     __NR_times,
 2888 #endif
 2889 #if defined(__NR_tkill)
 2890     __NR_tkill,
 2891 #endif
 2892 #if defined(__NR_truncate)
 2893     __NR_truncate,
 2894 #endif
 2895 #if defined(__NR_truncate64)
 2896     __NR_truncate64,
 2897 #endif
 2898 #if defined(__NR_tuxcall)
 2899     __NR_tuxcall,
 2900 #endif
 2901 #if defined(__NR_ugetrlimit)
 2902     __NR_ugetrlimit,
 2903 #endif
 2904 #if defined(__NR_ulimit)
 2905     __NR_ulimit,
 2906 #endif
 2907 #if defined(__NR_umask)
 2908     __NR_umask,
 2909 #endif
 2910 #if defined(__NR_umount)
 2911     __NR_umount,
 2912 #endif
 2913 #if defined(__NR_umount2)
 2914     __NR_umount2,
 2915 #endif
 2916 #if defined(__NR_uname)
 2917     __NR_uname,
 2918 #endif
 2919 #if defined(__NR_unlink)
 2920     __NR_unlink,
 2921 #endif
 2922 #if defined(__NR_unlinkat)
 2923     __NR_unlinkat,
 2924 #endif
 2925 #if defined(__NR_unshare)
 2926     __NR_unshare,
 2927 #endif
 2928 #if defined(__NR_unused109)
 2929     __NR_unused109,
 2930 #endif
 2931 #if defined(__NR_unused150)
 2932     __NR_unused150,
 2933 #endif
 2934 #if defined(__NR_unused18)
 2935     __NR_unused18,
 2936 #endif
 2937 #if defined(__NR_unused28)
 2938     __NR_unused28,
 2939 #endif
 2940 #if defined(__NR_unused59)
 2941     __NR_unused59,
 2942 #endif
 2943 #if defined(__NR_unused84)
 2944     __NR_unused84,
 2945 #endif
 2946 #if defined(__NR_uselib)
 2947     __NR_uselib,
 2948 #endif
 2949 #if defined(__NR_userfaultfd)
 2950     __NR_userfaultfd,
 2951 #endif
 2952 #if defined(__NR_ustat)
 2953     __NR_ustat,
 2954 #endif
 2955 #if defined(__NR_utime)
 2956     __NR_utime,
 2957 #endif
 2958 #if defined(__NR_utimensat)
 2959     __NR_utimensat,
 2960 #endif
 2961 #if defined(__NR_utimes)
 2962     __NR_utimes,
 2963 #endif
 2964 #if defined(__NR_utrap_install)
 2965     __NR_utrap_install,
 2966 #endif
 2967 #if defined(__NR_vfork)
 2968     __NR_vfork,
 2969 #endif
 2970 #if defined(__NR_vhangup)
 2971     __NR_vhangup,
 2972 #endif
 2973 #if defined(__NR_vm86)
 2974     __NR_vm86,
 2975 #endif
 2976 #if defined(__NR_vm86old)
 2977     __NR_vm86old,
 2978 #endif
 2979 #if defined(__NR_vmsplice)
 2980     __NR_vmsplice,
 2981 #endif
 2982 #if defined(__NR_vserver)
 2983     __NR_vserver,
 2984 #endif
 2985 #if defined(__NR_wait4)
 2986     __NR_wait4,
 2987 #endif
 2988 #if defined(__NR_waitid)
 2989     __NR_waitid,
 2990 #endif
 2991 #if defined(__NR_waitpid)
 2992     __NR_waitpid,
 2993 #endif
 2994 #if defined(__NR_write)
 2995     __NR_write,
 2996 #endif
 2997 #if defined(__NR_writev)
 2998     __NR_writev,
 2999 #endif
 3000 #if defined(__NR_xtensa)
 3001     __NR_xtensa,
 3002 #endif
 3003     0   /* ensure at least 1 element */
 3004 };
 3005 
 3006 /*
 3007  *  limit_procs()
 3008  *  try to limit child resources
 3009  */
 3010 static void limit_procs(const int procs)
 3011 {
 3012 #if defined(RLIMIT_CPU) || defined(RLIMIT_NPROC)
 3013     struct rlimit lim;
 3014 #endif
 3015 
 3016 #if defined(RLIMIT_CPU)
 3017     lim.rlim_cur = 1;
 3018     lim.rlim_max = 1;
 3019     (void)setrlimit(RLIMIT_CPU, &lim);
 3020 #endif
 3021 #if defined(RLIMIT_NPROC)
 3022     lim.rlim_cur = procs;
 3023     lim.rlim_max = procs;
 3024     (void)setrlimit(RLIMIT_NPROC, &lim);
 3025 #else
 3026     (void)procs;
 3027 #endif
 3028 }
 3029 
 3030 static void MLOCKED_TEXT stress_badhandler(int signum)
 3031 {
 3032     (void)signum;
 3033     _exit(1);
 3034 }
 3035 
 3036 /*
 3037  *  Call a system call in a child context so we don't clobber
 3038  *  the parent
 3039  */
 3040 static inline int stress_do_syscall(const args_t *args, const long number)
 3041 {
 3042     pid_t pid;
 3043     int rc = 0;
 3044 
 3045     /* Check if this is a known non-ENOSYS syscall */
 3046     if (syscall_find(number))
 3047         return rc;
 3048     if (!keep_stressing())
 3049         return 0;
 3050     pid = fork();
 3051     if (pid < 0) {
 3052         _exit(EXIT_NO_RESOURCE);
 3053     } else if (pid == 0) {
 3054         struct itimerval it;
 3055         int ret;
 3056         size_t i;
 3057         unsigned long arg;
 3058         char buffer[1024];
 3059 
 3060         /* Try to limit child from spawning */
 3061         limit_procs(2);
 3062 
 3063         /* We don't want bad ops clobbering this region */
 3064         stress_unmap_shared();
 3065 
 3066         /* Drop all capabilities */
 3067         if (stress_drop_capabilities(args->name) < 0) {
 3068             _exit(EXIT_NO_RESOURCE);
 3069         }
 3070         for (i = 0; i < SIZEOF_ARRAY(sigs); i++) {
 3071             if (stress_sighandler(args->name, sigs[i], stress_badhandler, NULL) < 0)
 3072                 _exit(EXIT_FAILURE);
 3073         }
 3074 
 3075         (void)setpgid(0, g_pgrp);
 3076         stress_parent_died_alarm();
 3077 
 3078         /*
 3079          * Force abort if we take too long
 3080          */
 3081         it.it_interval.tv_sec = 0;
 3082         it.it_interval.tv_usec = 100000;
 3083         it.it_value.tv_sec = 0;
 3084         it.it_value.tv_usec = 100000;
 3085         if (setitimer(ITIMER_REAL, &it, NULL) < 0) {
 3086             pr_fail_dbg("setitimer");
 3087             _exit(EXIT_NO_RESOURCE);
 3088         }
 3089 
 3090         /*
 3091          *  Try various ENOSYS calls
 3092          */
 3093         if (!keep_stressing())
 3094             _exit(EXIT_SUCCESS);
 3095         ret = syscall7(number, -1, -1, -1, -1, -1, -1, -1);
 3096         if ((ret < 0) && (errno != ENOSYS))
 3097             _exit(errno);
 3098 
 3099         if (!keep_stressing())
 3100             _exit(EXIT_SUCCESS);
 3101         ret = syscall7(number, 0, 0, 0, 0, 0, 0, 0);
 3102         if ((ret < 0) && (errno != ENOSYS))
 3103             _exit(errno);
 3104 
 3105         if (!keep_stressing())
 3106             _exit(EXIT_SUCCESS);
 3107         ret = syscall7(number, 1, 1, 1, 1, 1, 1, 1);
 3108         if ((ret < 0) && (errno != ENOSYS))
 3109             _exit(errno);
 3110 
 3111         for (arg = 2; arg;) {
 3112             if (!keep_stressing())
 3113                 _exit(EXIT_SUCCESS);
 3114             ret = syscall7(number, arg, arg, arg,
 3115                       arg, arg, arg, arg);
 3116             if ((ret < 0) && (errno != ENOSYS))
 3117                 _exit(errno);
 3118             arg <<= 1;
 3119             ret = syscall7(number, arg - 1, arg - 1, arg - 1,
 3120                       arg - 1, arg - 1, arg - 1, arg - 1);
 3121             if ((ret < 0) && (errno != ENOSYS))
 3122                 _exit(errno);
 3123         }
 3124 
 3125         if (!keep_stressing())
 3126             _exit(EXIT_SUCCESS);
 3127         ret = syscall7(number, mwc64(), mwc64(), mwc64(),
 3128                   mwc64(), mwc64(), mwc64(), mwc64());
 3129         if ((ret < 0) && (errno != ENOSYS))
 3130             _exit(errno);
 3131 
 3132         ret = syscall7(number, (long)buffer, (long)buffer,
 3133                    (long)buffer, (long)buffer,
 3134                    (long)buffer, (long)buffer,
 3135                    (long)buffer);
 3136         _exit(ret < 0 ? errno : 0);
 3137     } else {
 3138         int ret, status;
 3139 
 3140         ret = waitpid(pid, &status, 0);
 3141         if (ret < 0) {
 3142             if (errno != EINTR)
 3143                 pr_dbg("%s: waitpid(): errno=%d (%s)\n",
 3144                     args->name, errno, strerror(errno));
 3145             (void)kill(pid, SIGKILL);
 3146             (void)waitpid(pid, &status, 0);
 3147 
 3148         }
 3149         rc = WEXITSTATUS(status);
 3150 
 3151         /* Add to known syscalls that don't return ENOSYS */
 3152         if (rc != ENOSYS)
 3153             syscall_add(number);
 3154         inc_counter(args);
 3155     }
 3156     return rc;
 3157 }
 3158 
 3159 /*
 3160  *  stress_enosys
 3161  *  stress system calls
 3162  */
 3163 static int stress_enosys(const args_t *args)
 3164 {
 3165     pid_t pid;
 3166 
 3167 again:
 3168     if (!keep_stressing())
 3169         return EXIT_SUCCESS;
 3170     pid = fork();
 3171     if (pid < 0) {
 3172         if ((errno == EAGAIN) || (errno == ENOMEM))
 3173             goto again;
 3174         pr_err("%s: fork failed: errno=%d: (%s)\n",
 3175             args->name, errno, strerror(errno));
 3176     } else if (pid > 0) {
 3177         int status, ret;
 3178 
 3179         (void)setpgid(pid, g_pgrp);
 3180         /* Parent, wait for child */
 3181         ret = waitpid(pid, &status, 0);
 3182         if (ret < 0) {
 3183             if (errno != EINTR)
 3184                 pr_dbg("%s: waitpid(): errno=%d (%s)\n",
 3185                     args->name, errno, strerror(errno));
 3186             (void)kill(pid, SIGTERM);
 3187             (void)kill(pid, SIGKILL);
 3188             (void)waitpid(pid, &status, 0);
 3189         } else if (WIFSIGNALED(status)) {
 3190             pr_dbg("%s: child died: %s (instance %d)\n",
 3191                 args->name, stress_strsignal(WTERMSIG(status)),
 3192                 args->instance);
 3193             /* If we got killed by OOM killer, re-start */
 3194             if (WTERMSIG(status) == SIGKILL) {
 3195                 if (g_opt_flags & OPT_FLAGS_OOMABLE) {
 3196                     log_system_mem_info();
 3197                     pr_dbg("%s: assuming killed by OOM "
 3198                         "killer, bailing out "
 3199                         "(instance %d)\n",
 3200                         args->name, args->instance);
 3201                     _exit(0);
 3202                 } else {
 3203                     log_system_mem_info();
 3204                     pr_dbg("%s: assuming killed by OOM "
 3205                         "killer, restarting again "
 3206                         "(instance %d)\n",
 3207                         args->name, args->instance);
 3208                     goto again;
 3209                 }
 3210             }
 3211         }
 3212     } else if (pid == 0) {
 3213         const unsigned long mask = ULONG_MAX;
 3214         ssize_t j;
 3215 
 3216         /* Child, wrapped to catch OOMs */
 3217         if (!keep_stressing())
 3218             _exit(0);
 3219 
 3220         (void)setpgid(0, g_pgrp);
 3221         stress_parent_died_alarm();
 3222 
 3223         /* Make sure this is killable by OOM killer */
 3224         set_oom_adjustment(args->name, true);
 3225 
 3226         //limit_procs(2);
 3227 
 3228         for (j = 0; j < (ssize_t)SIZEOF_ARRAY(skip_syscalls) - 1; j++)
 3229             syscall_add(skip_syscalls[j]);
 3230 
 3231         do {
 3232             long number;
 3233 
 3234             /* Low sequential syscalls */
 3235             for (number = 0; number < MAX_SYSCALL + 1024; number++) {
 3236                 if (!keep_stressing())
 3237                     goto finish;
 3238                 stress_do_syscall(args, number);
 3239             }
 3240 
 3241             /* Random syscalls */
 3242             for (j = 0; j < 1024; j++) {
 3243                 if (!keep_stressing())
 3244                     goto finish;
 3245                 stress_do_syscall(args, mwc8() & mask);
 3246                 if (!keep_stressing())
 3247                     goto finish;
 3248                 stress_do_syscall(args, mwc16() & mask);
 3249                 if (!keep_stressing())
 3250                     goto finish;
 3251                 stress_do_syscall(args, mwc32() & mask);
 3252                 if (!keep_stressing())
 3253                     goto finish;
 3254                 stress_do_syscall(args, mwc64() & mask);
 3255             }
 3256 
 3257             /* Various bit masks */
 3258             for (number = 1; number; number <<= 1) {
 3259                 if (!keep_stressing())
 3260                     goto finish;
 3261                 stress_do_syscall(args, number);
 3262                 if (!keep_stressing())
 3263                     goto finish;
 3264                 stress_do_syscall(args, number | 1);
 3265                 if (!keep_stressing())
 3266                     goto finish;
 3267                 stress_do_syscall(args, number | (number << 1));
 3268                 if (!keep_stressing())
 3269                     goto finish;
 3270                 stress_do_syscall(args, ~number);
 3271             }
 3272 
 3273             /* Various high syscalls */
 3274             for (number = 0xff; number; number <<= 8) {
 3275                 long n;
 3276 
 3277                 for (n = 0; n < 0x100; n++) {
 3278                     if (!keep_stressing())
 3279                         goto finish;
 3280                     stress_do_syscall(args, n + number);
 3281                 }
 3282             }
 3283         } while (keep_stressing());
 3284 finish:
 3285         syscall_free();
 3286         _exit(EXIT_SUCCESS);
 3287     }
 3288     return EXIT_SUCCESS;
 3289 }
 3290 stressor_info_t stress_enosys_info = {
 3291     .stressor = stress_enosys,
 3292     .class = CLASS_OS
 3293 };
 3294 #else
 3295 stressor_info_t stress_enosys_info = {
 3296     .stressor = stress_not_implemented,
 3297     .class = CLASS_OS
 3298 };
 3299 #endif