/*bin/echo   ' -*- mode:sh; indent-tabs-mode:nil; tab-width:8; coding:utf-8 -*-│
│vi: set net ft=sh ts=2 sts=2 sw=2 fenc=utf-8                               :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Copyright 2020 Justine Alexandra Roberts Tunney                              │
│                                                                              │
│ Permission to use, copy, modify, and/or distribute this software for         │
│ any purpose with or without fee is hereby granted, provided that the         │
│ above copyright notice and this permission notice appear in all copies.      │
│                                                                              │
│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL                │
│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED                │
│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE             │
│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL         │
│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR        │
│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER               │
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR             │
│ PERFORMANCE OF THIS SOFTWARE.                                                │
╚────────────────────────────────────────────────────────────────'>/dev/null #*/
dir=libc/sysv/calls
. libc/sysv/gen.sh
#include "libc/calls/syscall-sysv.internal.h"

#       The Fifth Bell System Interface, Community Edition     ┌─────────────────────────┐
#	» so many numbers                                      │ legend                  │
#	                                                       ├─────────────────────────┤
#	                             GNU/Systemd┐              │   ffff │ unavailable    │
# 	                                 2.6.18+│              │   sys_ │ wrapped        │
#	                             Mac OS X┐  │              │ __sys_ │ wrapped twice  │
#	                                15.6+│  │              └─────────────────────────┘
#	                          FreeBSD┐   │  │
#	                              12+│ ┌─│──│── XnuClass{1:Mach,2:Unix}
#	                       OpenBSD┐  │ │ │  │
#	                          6.4+│  │ │ │  │
#	                     NetBSD┐  │  │ │ │  │
#	                       9.1+│  │  │ │ │  │
#	Symbol                    ┌┴┐┌┴┐┌┴┐│┬┴┐┌┴┐      Directives & Commentary
scall	sys_exit		0x00100100120010e7	globl hidden # a.k.a. exit_group
scall	sys_read		0x0030030032003000	globl hidden
scall	sys_write		0x0040040042004001	globl hidden
scall	sys_open		0x0050050052005002	globl hidden
scall	sys_close		0x0060060062006003	globl hidden
scall	__sys_stat		0x1b7026fff2152004	globl hidden # FreeBSD 11→12 fumble; use sys_fstatat(); blocked on Android
scall	__sys_fstat		0x1b80352272153005	globl hidden # needs __stat2linux()
scall	__sys_lstat		0x1b90280282154006	globl hidden # needs __stat2linux(); blocked on Android
scall	sys_poll		0x0d10fc0d120e6007	globl hidden
scall	sys_ppoll		0xfff06d221ffff10f	globl hidden # consider INTON/INTOFF tutorial in examples/unbourne.c
scall	sys_lseek		0x0c70c71de20c7008	globl hidden # netbsd+openbsd:evilpad
scall	__sys_mmap		0x0c50c51dd20c5009	globl hidden # netbsd+openbsd:pad
scall	sys_msync		0x115100041204101a	globl hidden
scall	sys_mprotect		0x04a04a04a204a00a	globl hidden
scall	__sys_munmap		0x049049049204900b	globl hidden
scall	sys_sigaction		0x15402e1a0202e00d	globl hidden # rt_sigaction on Lunix; __sigaction_sigtramp() on NetBSD
scall	__sys_sigprocmask	0x125030154214900e	globl hidden # a.k.a. rt_sigprocmask, openbsd:byvalue, a.k.a. pthread_sigmask
scall	sys_ioctl		0x0360360362036010	globl hidden
scall	sys_pread		0x0ad0ad1db2099011	globl hidden # a.k.a. pread64; netbsd+openbsd:pad
scall	sys_pwrite		0x0ae0ae1dc209a012	globl hidden # a.k.a. pwrite64; netbsd+openbsd:pad
scall	sys_readv		0x0780780782078013	globl hidden
scall	sys_writev		0x0790790792079014	globl hidden
scall	sys_access		0x0210210212021015	globl hidden
scall	__sys_pipe		0x02a10721e202a016	globl hidden # NOTE: pipe2() on FreeBSD; XNU is pipe(void)→eax:edx
scall	sys_select		0x1a104705d205d017	globl hidden
scall	sys_pselect		0x1b406e20a218a10e	globl hidden # pselect6() on gnu/systemd
scall	sys_sched_yield		0x15e12a14bf25d018	globl hidden # select() on XNU (previously swtch() but removed in 12.4)
scall	__sys_mremap		0x19bffffffffff019	globl hidden
scall	sys_mincore		0x04e04e04e204e01b	globl hidden
scall	sys_madvise		0x04b04b04b204b01c	globl hidden
scall	sys_shmget		0x0e71210e7210901d	globl # no wrapper; consider mmap
scall	sys_shmat		0x0e40e40e4210601e	globl # no wrapper; consider mmap
scall	sys_shmctl		0x1bb128200210701f	globl # no wrapper; consider mmap
scall	sys_dup			0x0290290292029020	globl hidden
scall	sys_dup2		0x05a05a05a205a021	globl hidden
scall	sys_pause		0xfffffffffffff022	globl hidden
scall	sys_nanosleep		0x1ae05b0f0ffff023	globl hidden
scall	sys_clock_nanosleep	0x1ddfff0f4ffff0e6	globl hidden
scall	sys_getitimer		0x1aa0460562056024	globl hidden
scall	sys_setitimer		0x1a90450532053026	globl hidden
scall	sys_alarm		0xfffffffffffff025	globl hidden
scall	sys_getpid		0x0140140142014027	globl hidden # netbsd returns ppid in edx
scall	sys_sendfile		0xffffff1892151028	globl hidden # Linux vs. XNU/BSD ABIs very different
scall	__sys_socket		0x18a0610612061029	globl hidden
scall	__sys_connect		0x062062062206202a	globl hidden
scall	__sys_accept		0x01e01e21d201e02b	globl hidden # accept4 on freebsd
scall	sys_sendto		0x085085085208502c	globl hidden
scall	sys_recvfrom		0x01d01d01d201d02d	globl hidden
scall	sys_sendmsg		0x01c01c01c201c02e	globl hidden
scall	sys_recvmsg		0x01b01b01b201b02f	globl hidden
scall	sys_shutdown		0x0860860862086030	globl hidden
scall	__sys_bind		0x0680680682068031	globl hidden
scall	sys_listen		0x06a06a06a206a032	globl hidden
scall	__sys_getsockname	0x0200200202020033	globl hidden
scall	__sys_getpeername	0x01f01f08d201f034	globl hidden
scall	__sys_socketpair	0x0870870872087035	globl hidden
scall	sys_setsockopt		0x0690690692069036	globl hidden
scall	sys_getsockopt		0x0760760762076037	globl hidden
scall	sys_fork		0x0020020022002039	globl hidden # xnu needs eax&=~-edx bc eax always holds pid and edx is 0 for parent and 1 for child
#scall	vfork			0x042042042204203a	globl        # this syscall is from the moon so we implement it by hand in libc/runtime/vfork.S; probably removed from XNU in 12.5
scall	sys_posix_spawn		0x1daffffff20f4fff	globl hidden # good luck figuring out how xnu defines this
scall	__sys_execve		0x03b03b03b203b03b	globl hidden
scall	__sys_wait4		0x1c100b007200703d	globl hidden
scall	sys_kill		0x02507a025202503e	globl hidden # kill(pid, sig, 1) b/c xnu
scall	sys_killpg		0x092fff092fffffff	globl hidden
scall	sys_clone		0x11fffffffffff038	globl hidden
scall	sys_tkill		0x13e0771b121480c8	globl hidden # thr_kill() on freebsd; _lwp_kill() on netbsd; thrkill() on openbsd where arg3 should be 0; __pthread_kill() on XNU
scall	sys_futex		0x0a6053fffffff0ca	globl hidden # raises SIGSYS on NetBSD
scall	sys_set_robust_list	0x0a7ffffffffff111	globl # no wrapper
scall	sys_get_robust_list	0x0a8ffffffffff112	globl # no wrapper
scall	sys_uname		0x0a4fff0a4ffff03f	globl hidden
scall	sys_semget		0x0dd0dd0dd20ff040	globl # no wrapper; won't polyfill for windows
scall	sys_semop		0x0de1220de2100041	globl # no wrapper; won't polyfill for windows
scall	sys_semctl		0xfff1271fe20fe042	globl # no wrapper; won't polyfill for windows
scall	sys_shmdt		0x0e60e60e62108043	globl # no wrapper; won't polyfill for windows
scall	sys_msgget		0x0e10e10e12103044	globl # no wrapper; won't polyfill for windows
scall	sys_msgsnd		0x0e20e20e22104045	globl # no wrapper; won't polyfill for windows
scall	sys_msgrcv		0x0e30e30e32105046	globl # no wrapper; won't polyfill for windows
scall	sys_msgctl		0x1bc1291ff2102047	globl # no wrapper; won't polyfill for windows
scall	__sys_fcntl		0x05c05c05c205c048	globl hidden
scall	sys_flock		0x0830830832083049	globl hidden
scall	sys_fsync		0x05f05f05f205f04a	globl hidden
scall	sys_fdatasync		0x0f105f22620bb04b	globl hidden # fsync() on openbsd
scall	sys_truncate		0x0c80c81df20c804c	globl hidden # netbsd+openbsd:pad
scall	sys_ftruncate		0x0c90c91e020c904d	globl hidden # netbsd+openbsd:pad
scall	sys_getcwd		0x128130146ffff04f	globl hidden
scall	sys_chdir		0x00c00c00c200c050	globl hidden
scall	sys_fchdir		0x00d00d00d200d051	globl hidden
scall	sys_rename		0x0800800802080052	globl hidden
scall	sys_mkdir		0x0880880882088053	globl hidden
scall	sys_rmdir		0x0890890892089054	globl hidden
scall	sys_creat		0x008fff008ffff055	globl hidden
scall	sys_link		0x0090090092009056	globl hidden
scall	sys_unlink		0x00a00a00a200a057	globl hidden
scall	sys_symlink		0x0390390392039058	globl hidden
scall	sys_readlink		0x03a03a03a203a059	globl hidden # usually an anti-pattern
scall	sys_chmod		0x00f00f00f200f05a	globl hidden
scall	sys_fchmod		0x07c07c07c207c05b	globl hidden
scall	sys_chown		0x010010010201005c	globl hidden # impl. w/ fchownat() @asyncsignalsafe
scall	sys_fchown		0x07b07b07b207b05d	globl hidden # @asyncsignalsafe
scall	sys_lchown		0x1130fe0fe216c05e	globl hidden # impl. w/ fchownat()
scall	sys_umask		0x03c03c03c203c05f	globl hidden
scall	sys_gettimeofday	0x1a20430742074060	globl hidden # xnu esi/edx=0
scall	sys_getrlimit		0x0c20c20c220c2061	globl hidden
scall	__sys_getrusage		0x1bd0130752075062	globl hidden
scall	sys_sysinfo		0xfffffffffffff063	globl hidden
scall	sys_times		0xfffffffffffff064	globl hidden
scall	__sys_ptrace		0x01a01a01a201a065	globl hidden # ptrace() wrapper api is terrible
scall	sys_syslog		0xfffffffffffff067	globl hidden
scall	sys_getuid		0x0180180182018066	globl hidden
scall	sys_getgid		0x02f02f02f202f068	globl hidden
scall	sys_getppid		0xfff027027202706e	globl hidden # see sys_getpid()→edx for netbsd
scall	sys_getpgrp		0x051051051205106f	globl hidden
scall	sys_setsid		0x0930930932093070	globl hidden
scall	sys_getsid		0x11e0ff136213607c	globl hidden
scall	sys_getpgid		0x0cf0cf0cf2097079	globl hidden
scall	sys_setpgid		0x052052052205206d	globl hidden
scall	sys_geteuid		0x019019019201906b	globl hidden
scall	sys_getegid		0x02b02b02b202b06c	globl hidden
scall	sys_getgroups		0x04f04f04f204f073	globl hidden
scall	sys_setgroups		0x0500500502050074	globl hidden
scall	sys_setreuid		0x07e07e07e207e071	globl hidden
scall	sys_setregid		0x07f07f07f207f072	globl hidden
scall	sys_setuid		0x0170170172017069	globl hidden
scall	sys_setgid		0x0b50b50b520b506a	globl hidden
scall	sys_setresuid		0xfff11a137ffff075	globl hidden # polyfilled for xnu
scall	sys_setresgid		0xfff11c138ffff077	globl hidden # polyfilled for xnu
scall	sys_getresuid		0xfff119168ffff076	globl hidden # semantics aren't well-defined
scall	sys_getresgid		0xfff11b169ffff078	globl hidden # semantics aren't well-defined
scall	sys_sigpending		0x124034157203407f	globl hidden # a.k.a. rt_sigpending on linux
scall	sys_sigsuspend		0x12606f155206f082	globl hidden # a.k.a. rt_sigsuspend on Linux; openbsd:byvalue, sigsuspend_nocancel on XNU
scall	sys_sigaltstack		0x1191200352035083	globl hidden
scall	sys_mknod		0x1c200e00e200e085	globl hidden
scall	sys_mknodat		0x1cc14022fffff103	globl # no wrapper; FreeBSD 12+
scall	sys_mkfifo		0x0840840842084fff	globl hidden
scall	sys_mkfifoat		0x1cb13f1f1fffffff	globl # no wrapper
scall	sys_statfs		0x09d03f22b2159089	globl hidden
scall	sys_fstatfs		0x09e04022c215a08a	globl hidden
scall	sys_getpriority		0x064064064206408c	globl hidden
scall	sys_setpriority		0x060060060206008d	globl hidden # modern nice()
scall	sys_mlock		0x0cb0cb0cb20cb095	globl # no wrapper
scall	sys_munlock		0x0cc0cc0cc20cc096	globl # no wrapper
scall	sys_mlockall		0x0f210f1442144097	globl # no wrapper
scall	sys_munlockall		0x0f31101452145098	globl # no wrapper
scall	sys_setrlimit		0x0c30c30c320c30a0	globl hidden
scall	sys_chroot		0x03d03d03d203d0a1	globl hidden
scall	sys_sync		0x02402402420240a2	globl hidden
scall	sys_acct		0x03303303320330a3	globl # no wrapper
scall	sys_settimeofday	0x1a304407a207a0a4	globl # no wrapper
scall	sys_mount		0x19a01501520a70a5	globl hidden
scall	sys_unmount		0x016016016209f0a6	globl # no wrapper; umount2() on linux
scall	sys_umount2		0x016016016209f0a6	globl # no wrapper; unmount() on bsd
scall	sys_reboot		0x0d003703720370a9	globl hidden # two arguments b/c netbsd/sparc lool
scall	sys_quotactl		0xfff09409420a50b3	globl # no wrapper
scall	sys_setfsuid		0xfffffffffffff07a	globl hidden
scall	sys_setfsgid		0xfffffffffffff07b	globl hidden
scall	sys_capget		0xfffffffffffff07d	globl # no wrapper
scall	sys_capset		0xfffffffffffff07e	globl # no wrapper
scall	sys_sigtimedwait	0xffffff159ffff080	globl # no wrapper
scall	sys_sigqueue		0xffffff1c8fffffff	globl hidden
scall	sys_sigqueueinfo	0x0f5ffffffffff081	globl hidden # a.k.a. rt_sigqueueinfo on linux
scall	sys_personality		0xfffffffffffff087	globl # no wrapper
scall	sys_ustat		0xfffffffffffff088	globl # no wrapper
scall	sys_sysfs		0xfffffffffffff08b	globl # no wrapper
scall	sys_sched_setparam	0x15afff147ffff08e	globl hidden
scall	sys_sched_getparam	0x15bfff148ffff08f	globl hidden
scall	sys_sched_setscheduler	0xffffff149ffff090	globl hidden
scall	sys_sched_getscheduler	0xffffff14affff091	globl hidden
scall	sys_sched_setaffinity	0x15cffffffffff0cb	globl hidden
scall	sys_sched_getaffinity	0x15dffffffffff0cc	globl hidden # returns bytes written on success. we polyfill bad posix designs like nice() returning 0, but we won't polyfill a bad unilateral redesign that's just glibc
scall	sys_sched_get_priority_max 0xffffff14cffff092	globl hidden
scall	sys_sched_get_priority_min 0xffffff14dffff093	globl hidden
scall	sys_cpuset_getaffinity	0xffffff1e7fffffff	globl # no wrapper
scall	sys_cpuset_setaffinity	0xffffff1e8fffffff	globl # no wrapper
scall	sys_sched_rr_get_interval 0xffffff14effff094	globl hidden
scall	sys_vhangup		0xfffffffffffff099	globl # no wrapper
scall	sys_modify_ldt		0xfffffffffffff09a	globl # no wrapper
scall	sys_pivot_root		0xfffffffffffff09b	globl hidden
#scall	prctl			0xfffffffffffff09d	globl # wrapped manually
scall	sys_arch_prctl		0x0a50a50a5ffff09e	globl hidden # sysarch() on bsd
scall	sys_enable_tls		0x13d1490a5300309e	globl hidden # arch_prctl on linux, sysarch on freebsd, _lwp_setprivate on netbsd, __set_tcb on openbsd, _lwp_setprivate on netbsd, thread_fast_set_cthread_self on xnu
scall	sys_adjtimex		0xfffffffffffff09f	globl # no wrapper
scall	sys_swapon		0xffffff05520550a7	globl # no wrapper
scall	sys_swapoff		0xffffff1a8ffff0a8	globl # no wrapper
scall	sys_sethostname		0xffffff058ffff0aa	globl # no wrapper
scall	sys_setdomainname	0xffffff0a3ffff0ab	globl # no wrapper
scall	sys_iopl		0xfffffffffffff0ac	globl # no wrapper
scall	sys_ioperm		0xfffffffffffff0ad	globl # no wrapper
scall	sys_init_module		0xfffffffffffff0af	globl # no wrapper
scall	sys_delete_module	0xfffffffffffff0b0	globl # no wrapper
scall	__sys_gettid		0x13712b1b0101b0ba	globl hidden # thread_self_trap (or gettid? on xnu), _lwp_self on netbsd, thr_self on freebsd, getthrid on openbsd
scall	sys_readahead		0xfffffffffffff0bb	globl # no wrapper; consider fadvise() / madvise()
scall	sys_setxattr		0x177ffffff20ec0bc	globl # no wrapper
scall	sys_fsetxattr		0x179ffffff20ed0be	globl # no wrapper
scall	sys_getxattr		0x17affffff20ea0bf	globl # no wrapper
scall	sys_fgetxattr		0x17cffffff20eb0c1	globl # no wrapper
scall	sys_listxattr		0x17dffffff20f00c2	globl # no wrapper
scall	sys_flistxattr		0x17fffffff20f10c4	globl # no wrapper
scall	sys_removexattr		0x180ffffff20ee0c5	globl # no wrapper
scall	sys_fremovexattr	0x182ffffff20ef0c7	globl # no wrapper
scall	sys_lsetxattr		0x178ffffffffff0bd	globl # no wrapper
scall	sys_lgetxattr		0x17bffffffffff0c0	globl # no wrapper
scall	sys_llistxattr		0x17effffffffff0c3	globl # no wrapper
scall	sys_lremovexattr	0x181ffffffffff0c6	globl # no wrapper
scall	sys_io_setup		0xfffffffffffff0ce	globl # no wrapper
scall	sys_io_destroy		0xfffffffffffff0cf	globl # no wrapper
scall	sys_io_getevents	0xfffffffffffff0d0	globl # no wrapper
scall	sys_io_submit		0xfffffffffffff0d1	globl # no wrapper
scall	sys_io_cancel		0xfffffffffffff0d2	globl # no wrapper
scall	sys_lookup_dcookie	0xfffffffffffff0d4	globl # no wrapper
scall	sys_epoll_create	0xfffffffffffff0d5	globl hidden
scall	sys_epoll_wait		0xfffffffffffff0e8	globl hidden
scall	sys_epoll_ctl		0xfffffffffffff0e9	globl hidden
scall	sys_getdents		0x18606311020c40d9	globl hidden # use opendir/readdir; four args b/c xnu, getdirentries on xnu, 32-bit on xnu/freebsd, a.k.a. getdents64 on linux, 64-bit on openbsd
scall	sys_set_tid_address	0xfffffffffffff0da	globl # no wrapper
scall	sys_restart_syscall	0xfffffffffffff0db	globl # no wrapper
scall	sys_semtimedop		0xfffffffffffff0dc	globl # no wrapper
scall	sys_fadvise		0x1a0fff213ffff0dd	globl hidden
scall	sys_timer_create	0x0ebffffffffff0de	globl # no wrapper
scall	sys_timer_settime	0x1beffffffffff0df	globl # no wrapper
scall	sys_timer_gettime	0x1bfffffffffff0e0	globl # no wrapper
scall	sys_timer_getoverrun	0x0efffffffffff0e1	globl # no wrapper
scall	sys_timer_delete	0x0ecffffffffff0e2	globl # no wrapper
scall	sys_ktimer_create	0xffffff0ebfffffff	globl # no wrapper
scall	sys_ktimer_delete	0xffffff0ecfffffff	globl # no wrapper
scall	sys_ktimer_getoverrun	0xffffff0effffffff	globl # no wrapper
scall	sys_ktimer_gettime	0xffffff0eefffffff	globl # no wrapper
scall	sys_ktimer_settime	0xffffff0edfffffff	globl # no wrapper
scall	sys_clock_settime	0x1ac0580e9ffff0e3	globl # no wrapper
scall	sys_clock_gettime	0x1ab0570e8ffff0e4	globl hidden # Linux 2.6+ (c. 2003); XNU uses magic address
scall	sys_clock_getres	0x1ad0590eaffff0e5	globl hidden
scall	sys_tgkill		0xfffffffffffff0ea	globl hidden
scall	sys_mbind		0xfffffffffffff0ed	globl # no wrapper; numa numa yeah
scall	set_mempolicy		0xfffffffffffff0ee	globl
scall	get_mempolicy		0xfffffffffffff0ef	globl
scall	sys_mq_open		0x101ffffffffff0f0	globl # won't polyfill
scall	sys_mq_unlink		0x103ffffffffff0f1	globl # won't polyfill
scall	sys_mq_timedsend	0x1b0ffffffffff0f2	globl # won't polyfill
scall	sys_mq_timedreceive	0x1b1ffffffffff0f3	globl # won't polyfill
scall	sys_mq_notify		0x106ffffffffff0f4	globl # won't polyfill
scall	sys_mq_getsetattr	0xfffffffffffff0f5	globl # won't polyfill
scall	sys_kexec_load		0xfffffffffffff0f6	globl # no wrapper
scall	sys_waitid		0xfffffffff20ad0f7	globl # Linux 2.6.9+; no wrapper
scall	sys_add_key		0xfffffffffffff0f8	globl # no wrapper
scall	sys_request_key		0xfffffffffffff0f9	globl # no wrapper
scall	sys_keyctl		0xfffffffffffff0fa	globl # no wrapper
scall	ioprio_set		0xfffffffffffff0fb	globl
scall	ioprio_get		0xfffffffffffff0fc	globl
scall	sys_inotify_init	0xfffffffffffff0fd	globl # wicked # no wrapper
scall	sys_inotify_add_watch	0xfffffffffffff0fe	globl # no wrapper
scall	sys_inotify_rm_watch	0xfffffffffffff0ff	globl # no wrapper
scall	__sys_openat		0x1d41411f321cf101	globl hidden # Linux 2.6.16+ (c. 2007)
scall	sys_mkdirat		0x1cd13e1f021db102	globl hidden
scall	sys_fchownat		0x1d013b1eb21d4104	globl hidden # @asyncsignalsafe
scall	sys_utime		0xfffffffffffff084	globl hidden
scall	sys_utimes		0x1a404c08a208a0eb	globl hidden
scall	sys_futimesat		0xffffff1eeffff105	globl hidden # @asyncsignalsafe
scall	sys_futimes		0x1a704d0ce208bfff	globl hidden
scall	sys_futimens		0x1d8055222fffffff	globl hidden
scall	__sys_fstatat		0x1d202a22821d6106	globl hidden # a.k.a. newfstatat(); FreeBSD 12+; needs __stat2linux()
scall	sys_unlinkat		0x1d71451f721d8107	globl hidden
scall	sys_renameat		0x1ca1431f521d1108	globl hidden
scall	sys_linkat		0x1c913d1ef21d7109	globl hidden
scall	sys_symlinkat		0x1d61441f621da10a	globl hidden
scall	sys_readlinkat		0x1d51421f421d910b	globl hidden
scall	sys_fchmodat		0x1cf13a1ea21d310c	globl hidden
scall	sys_faccessat		0x1ce1391e921d210d	globl hidden
scall	sys_unshare		0xfffffffffffff110	globl # no wrapper
scall	sys_splice		0xfffffffffffff113	globl hidden # Linux 2.6.17+ (c. 2007)
scall	sys_tee			0xfffffffffffff114	globl        # Linux 2.6.17+; no wrapper
scall	sys_sync_file_range	0xfffffffffffff115	globl hidden # Linux 2.6.17+
scall	sys_vmsplice		0xfffffffffffff116	globl hidden
scall	sys_migrate_pages	0xfffffffffffff100	globl        # no wrapper; numa numa yay
scall	sys_move_pages		0xfffffffffffff117	globl        # no wrapper; NOTE: We view Red Hat versions as "epochs" for all distros.
#──────────────────────RHEL 5.0 LIMIT────────────────────────        # ←┬─ last distro with gplv2 licensed compiler c. 2007
scall	sys_preadv		0x12110b121221c127	globl hidden #  ├─ last distro with system v shell script init
scall	sys_pwritev		0x12210c122221d128	globl hidden #  ├─ rob landley unleashes busybox gpl lawsuits
scall	__sys_utimensat		0x1d3054223ffff118	globl hidden #  ├─ python modules need this due to pep513
scall	sys_fallocate		0xfffffffffffff11d	globl        #  ├─ end of life 2020-11-30 (extended)
scall	posix_fallocate		0x1dffff212fffffff	globl hidden #  └─ cosmopolitan supports rhel5+
scall	__sys_accept4		0xfff05d21dffff120	globl hidden # Linux 2.6.28+
scall	__sys_dup3		0x1c6066fffffff124	globl hidden # Linux 2.6.27+
scall	__sys_pipe2		0x1c506521effff125	globl hidden # Linux 2.6.27+
scall	sys_epoll_pwait		0xfffffffffffff119	globl # no wrapper
scall	sys_epoll_create1	0xfffffffffffff123	globl hidden
scall	sys_perf_event_open	0xfffffffffffff12a	globl # no wrapper
scall	sys_inotify_init1	0xfffffffffffff126	globl # no wrapper
scall	sys_rt_tgsigqueueinfo	0xfffffffffffff129	globl # no wrapper
scall	sys_signalfd		0xfffffffffffff11a	globl # won't polyfill; see INTON/INTOFF tutorial in examples/unbourne.c
scall	sys_signalfd4		0xfffffffffffff121	globl # won't polyfill; see INTON/INTOFF tutorial in examples/unbourne.c
scall	sys_eventfd		0xfffffffffffff11c	globl # won't polyfill; see INTON/INTOFF tutorial in examples/unbourne.c
scall	sys_eventfd2		0xfffffffffffff122	globl # won't polyfill; see INTON/INTOFF tutorial in examples/unbourne.c
scall	sys_timerfd_create	0xfffffffffffff11b	globl # won't polyfill; see INTON/INTOFF tutorial in examples/unbourne.c
scall	sys_timerfd_settime	0xfffffffffffff11e	globl # won't polyfill; see INTON/INTOFF tutorial in examples/unbourne.c
scall	sys_timerfd_gettime	0xfffffffffffff11f	globl # won't polyfill; see INTON/INTOFF tutorial in examples/unbourne.c
#──────────────────────RHEL 6.0 LIMIT──────────────────────── # ←┬─ modern glibc needs rhel6+ c. 2011
scall	sys_recvmmsg		0x1dbffffffffff12b	globl #  ├─ end of life 2024-06-30 (extended)
scall	sys_fanotify_init	0xfffffffffffff12c	globl #  ├─ last distro with the original gnome desktop
scall	sys_fanotify_mark	0xfffffffffffff12d	globl #  └─ apple and google condemn the gplv3/gccrtev3
scall	sys_prlimit		0xfffffffffffff12e	globl # a.k.a. prlimit64()
scall	sys_name_to_handle_at	0xfffffffffffff12f	globl
scall	sys_open_by_handle_at	0xfffffffffffff130	globl
scall	sys_clock_adjtime	0xfffffffffffff131	globl # no wrapper
scall	sys_syncfs		0xfffffffffffff132	globl # no wrapper
#scall	sendmmsg		0x1dcffffffffff133	globl
scall	sys_setns		0xfffffffffffff134	globl # no wrapper
scall	sys_getcpu		0xfffffffffffff135	globl # no wrapper
scall	sys_process_vm_readv	0xfffffffffffff136	globl # no wrapper
scall	sys_process_vm_writev	0xfffffffffffff137	globl # no wrapper
scall	sys_kcmp		0xfffffffffffff138	globl # no wrapper
scall	sys_finit_module	0xfffffffffffff139	globl # no wrapper
#──────────────────────RHEL 7.0 LIMIT──────────────────────── # ←┬─ anything that links or uses c++11 code needs rhel7+ c. 2014
scall	sys_sched_setattr	0xfffffffffffff13a	globl #  ├─ desktop replaced with tablet-first gui inspired by mac os x
scall	sys_sched_getattr	0xfffffffffffff13b	globl #  ├─ karen sandler requires systemd init and boot for tablet gui
scall	sys_renameat2		0xfffffffffffff13c	globl #  └─ debian founder ian murdock found strangled with vacuum cord
#scall	seccomp			0xfffffffffffff13d	globl # wrapped manually
scall	sys_getrandom		0xfff00723321f413e	globl hidden  # Linux 3.17+ and getentropy() on XNU/OpenBSD, coming to NetBSD in 9.2
scall	sys_memfd_create	0xfffffffffffff13f	globl hidden
scall	sys_kexec_file_load	0xfffffffffffff140	globl # no wrapper
scall	sys_bpf			0xfffffffffffff141	globl # no wrapper
scall	sys_execveat		0xfffffffffffff142	globl # no wrapper
scall	sys_userfaultfd		0xfffffffffffff143	globl # no wrapper; Linux 4.3+ (c. 2015)
scall	sys_membarrier		0xfffffffffffff144	globl # no wrapper; Linux 4.3+ (c. 2015)
scall	sys_mlock2		0xfffffffffffff145	globl # no wrapper; Linux 4.5+ (c. 2016)
scall	sys_copy_file_range	0xffffff239ffff146	globl hidden # Linux 4.5+ (c. 2016), FreeBSD 13+
scall	sys_preadv2		0xfffffffffffff147	globl # no wrapper
scall	sys_pwritev2		0xfffffffffffff148	globl # no wrapper
scall	sys_pkey_mprotect	0xfffffffffffff149	globl # no wrapper
scall	sys_pkey_alloc		0xfffffffffffff14a	globl # no wrapper
scall	sys_pkey_free		0xfffffffffffff14b	globl # no wrapper
scall	sys_statx		0xfffffffffffff14c	globl # no wrapper; lool https://lkml.org/lkml/2010/7/22/249
scall	sys_io_pgetevents	0xfffffffffffff14d	globl # no wrapper
scall	sys_rseq		0xfffffffffffff14e	globl # no wrapper; Linux 4.18+ (c. 2018)
#──────────────────────LINUX 4.18 LIMIT────────────────────── # ←┬─ last version of linux kernel buildable with only gplv2
scall	sys_pidfd_send_signal	0xfffffffffffff1a8	globl #  ├─ linux conferences ban linux founder linus torvalds
scall	sys_io_uring_setup	0xfffffffffffff1a9	globl #  └─ gnu founder richard stallman publicly disgraced
scall	sys_io_uring_enter	0xfffffffffffff1aa	globl
scall	sys_io_uring_register	0xfffffffffffff1ab	globl
#────────────────────────RHEL CLOUD────────────────────────── # ←──────┬─ red hat terminates community release of enterprise linux circa 2020
scall	sys_pledge		0xfff06cffffffffff	globl hidden # └─ online linux services ban the president of united states of america
scall	sys_msyscall		0xfff025ffffffffff	globl # no wrapper
scall	sys_bogus		0x5005005002500500	globl
scall	sys_open_tree		0xfffffffffffff1ac	globl # no wrapper
scall	sys_move_mount		0xfffffffffffff1ad	globl # no wrapper
scall	sys_fsopen		0xfffffffffffff1ae	globl # no wrapper
scall	sys_fsconfig		0xfffffffffffff1af	globl # no wrapper
scall	sys_fsmount		0xfffffffffffff1b0	globl # no wrapper
scall	sys_fspick		0xfffffffffffff1b1	globl # no wrapper
scall	sys_pidfd_open		0xfffffffffffff1b2	globl # no wrapper
scall	sys_clone3		0xfffffffffffff1b3	globl # no wrapper
scall	sys_close_range		0xffffff23fffff1b4	globl hidden # Linux 5.9
scall	sys_openat2		0xfffffffffffff1b5	globl hidden # Linux 5.6
scall	sys_pidfd_getfd		0xfffffffffffff1b6	globl # no wrapper
scall	sys_faccessat2		0xfffffffffffff1b7	globl hidden
scall	sys_process_madvise	0xfffffffffffff1b8	globl # no wrapper
scall	sys_epoll_pwait2	0xfffffffffffff1b9	globl # no wrapper
scall	sys_mount_setattr	0xfffffffffffff1ba	globl # no wrapper
scall	sys_quotactl_fd		0xfffffffffffff1bb	globl # no wrapper
scall	sys_landlock_create_ruleset 0xfffffffffffff1bc	globl hidden # Linux 5.13+
scall	sys_landlock_add_rule	0xfffffffffffff1bd	globl hidden
scall	sys_landlock_restrict_self 0xfffffffffffff1be	globl hidden
scall	sys_memfd_secret	0xfffffffffffff1bf	globl # no wrapper
scall	sys_process_mrelease	0xfffffffffffff1c0	globl # no wrapper
scall	sys_futex_waitv		0xfffffffffffff1c1	globl # no wrapper
scall	sys_set_mempolicy_home_node 0xfffffffffffff1c2	globl # no wrapper

#	The Fifth Bell System Interface, Community Edition
#	» besiyata dishmaya
#	                             GNU/Systemd┐
#	                             Mac OS X┐  │
#	                          FreeBSD┐   │  │
#	                       OpenBSD┐  │ ┌─│──│── XnuClass{1:Mach,2:Unix}
#	                     NetBSD┐  │  │ │ │  │
#	Symbol                    ┌┴┐┌┴┐┌┴┐│┬┴┐┌┴┐      Directives & Commentary
scall	sys_ktrace		0x02d02d02dfffffff	globl # no wrapper
scall	sys_kqueue		0x15810d16a216afff	globl # no wrapper
scall	sys_kevent		0x1b30482302171fff	globl # no wrapper
scall	sys_revoke		0x0380380382038fff	globl # no wrapper
scall	sys_setlogin		0xfff0320322032fff	globl # no wrapper
scall	sys_getfh		0x18b0a10a120a1fff	globl # no wrapper
scall	sys_chflags		0x0220220222022fff	globl # no wrapper
scall	sys_getfsstat		0xfff03e22d215bfff	globl # no wrapper
scall	sys_nfssvc		0x09b09b09b209bfff	globl # no wrapper
scall	sys_adjtime		0x1a508c08c208cfff	globl # no wrapper
scall	sys_fchflags		0x0230230232023fff	globl # no wrapper
scall	__bsd_seteuid		0xfff0b70b720b7fff	globl hidden # wrapped via setreuid()
scall	__bsd_setegid		0xfff0b60b620b6fff	globl hidden # wrapped via setregid()
scall	sys_fpathconf		0x0c00c00c020c0fff	globl # no wrapper
scall	sys_fhopen		0x18c10812a20f8fff	globl # no wrapper
scall	sys_issetugid		0xfff0fd0fd2147fff	globl hidden
scall	sys_minherit		0x1110fa0fa20fafff	globl # no wrapper
scall	sys_pathconf		0x0bf0bf0bf20bffff	globl # no wrapper
scall	sys_sysctl		0x0ca0ca0ca20cafff	globl # no wrapper
#───────────────────────XNU & FREEBSD────────────────────────
scall	sys_ntp_adjtime		0x0b0fff0b0220ffff	globl # no wrapper
scall	sys_ntp_gettime		0x1c0fff0f82210fff	globl # no wrapper
scall	sys_shm_unlink		0xffffff1e3210bfff	globl # no wrapper
scall	sys_shm_open		0xffffff1e2210afff	globl # no wrapper
scall	sys_aio_read		0x192fff13e213efff	globl # no wrapper
scall	sys_aio_suspend		0x1b6fff13b213bfff	globl # no wrapper
scall	sys_aio_cancel		0x18ffff13c213cfff	globl # no wrapper
scall	sys_aio_fsync		0x191fff1d12139fff	globl # no wrapper
scall	sys_aio_error		0x190fff13d213dfff	globl # no wrapper
scall	sys_aio_return		0x193fff13a213afff	globl # no wrapper
scall	sys_aio_write		0x195fff13f213ffff	globl # no wrapper
scall	sys_aio_waitcomplete	0xffffff167fffffff	globl # no wrapper
scall	sys_aio_suspend_nocancel 0xfffffffff21a5fff	globl # no wrapper
scall	sys_aio_mlock		0xffffff21ffffffff	globl # no wrapper
scall	sys_sigwait		0xffffff1ad214afff	globl # no wrapper
scall	sys_undelete		0x0cdfff0cd20cdfff	globl # no wrapper
scall	sys_getlogin		0x03108d0312031fff	globl hidden
scall	sys_getdtablesize	0xffffff0592059fff	globl # no wrapper
scall	sys_setauid		0xffffff1c02162fff	globl # no wrapper
scall	sys_audit		0xffffff1bd215efff	globl # no wrapper
scall	sys_auditctl		0xffffff1c52167fff	globl # no wrapper
scall	sys_getaudit_addr	0xffffff1c32165fff	globl # no wrapper
scall	sys_getdirentries	0xffffff22a20c4fff	globl # xnu getdirentries64 is 0x158
scall	sys_lio_listio		0x196fff1402140fff	globl # no wrapper
scall	sys_setaudit_addr	0xffffff1c42166fff	globl # no wrapper
scall	sys_getauid		0xffffff1bf2161fff	globl # no wrapper
scall	sys_semsys		0xffffff0a920fbfff	globl # no wrapper
scall	sys_auditon		0xffffff1be215ffff	globl # no wrapper
scall	sys_msgsys		0xffffff0aa20fcfff	globl # no wrapper
scall	sys_shmsys		0xffffff0ab20fdfff	globl # no wrapper
#─────────────────────FREEBSD & OPENBSD──────────────────────
scall	sys_fhstat		0x1c3126229fffffff	globl # no wrapper
scall	sys_chflagsat		0xfff06b21cfffffff	globl # no wrapper
scall	sys_profil		0x02c02c02cfffffff	globl # no wrapper
scall	sys_fhstatfs		0xfff04122efffffff	globl # no wrapper
scall	sys_utrace		0x1320d114ffffffff	globl # no wrapper
scall	sys_closefrom		0xfff11f1fdfffffff	globl hidden
#───────────────────────────XNU──────────────────────────────
#scall	__pthread_markcancel	0xfffffffff214cfff	globl
#scall	__pthread_kill		0xfffffffff2148fff	globl
#scall	__pthread_fchdir	0xfffffffff215dfff	globl
#scall	__pthread_sigmask	0xfffffffff2149fff	globl
#scall	__pthread_chdir		0xfffffffff215cfff	globl
#scall	__pthread_canceled	0xfffffffff214dfff	globl
#scall	__disable_threadsignal	0xfffffffff214bfff	globl
#scall	abort_with_payload	0xfffffffff2209fff	globl
#scall	accept_nocancel		0xfffffffff2194fff	globl
#scall	access_extended		0xfffffffff211cfff	globl
#scall	audit_session_join	0xfffffffff21adfff	globl
#scall	audit_session_port	0xfffffffff21b0fff	globl
#scall	audit_session_self	0xfffffffff21acfff	globl
scall	sys_bsdthread_create	0xfffffffff2168fff	globl hidden
#scall	bsdthread_ctl		0xfffffffff21defff	globl
scall	sys_bsdthread_register	0xfffffffff216efff	globl hidden
#scall	bsdthread_terminate	0xfffffffff2169fff	globl
#scall	change_fdguard_np	0xfffffffff21bcfff	globl
#scall	chmod_extended		0xfffffffff211afff	globl
#scall	clonefileat		0xfffffffff21cefff	globl
#scall	close_nocancel		0xfffffffff218ffff	globl
#scall	coalition		0xfffffffff21cafff	globl
#scall	coalition_info		0xfffffffff21cbfff	globl
#scall	connect_nocancel	0xfffffffff2199fff	globl
#scall	connectx		0xfffffffff21bffff	globl
#scall	copyfile		0xfffffffff20e3fff	globl
#scall	csops			0xfffffffff20a9fff	globl
#scall	csops_audittoken	0xfffffffff20aafff	globl
#scall	csrctl			0xfffffffff21e3fff	globl
#scall	delete			0xfffffffff20e2fff	globl
#scall	disconnectx		0xfffffffff21c0fff	globl
#scall	exchangedata		0xfffffffff20dffff	globl
#scall	fchmod_extended		0xfffffffff211bfff	globl
#scall	fclonefileat		0xfffffffff2205fff	globl
#scall	fcntl_nocancel		0xfffffffff2196fff	globl
#scall	ffsctl			0xfffffffff20f5fff	globl
#scall	fgetattrlist		0xfffffffff20e4fff	globl
#scall	fileport_makefd		0xfffffffff21affff	globl
#scall	fileport_makeport	0xfffffffff21aefff	globl
#scall	fmount			0xfffffffff220efff	globl
#scall	fs_snapshot		0xfffffffff2206fff	globl
#scall	fsctl			0xfffffffff20f2fff	globl
#scall	fsetattrlist		0xfffffffff20e5fff	globl
#scall	fstat_extended		0xfffffffff2119fff	globl
#scall	fsync_nocancel		0xfffffffff2198fff	globl
#scall	getattrlist		0xfffffffff20dcfff	globl
#scall	getattrlistat		0xfffffffff21dcfff	globl
#scall	getattrlistbulk		0xfffffffff21cdfff	globl
#scall	getdirentriesattr	0xfffffffff20defff	globl
#scall	gethostuuid		0xfffffffff208efff	globl
#scall	getsgroups		0xfffffffff2120fff	globl
#scall	getwgroups		0xfffffffff2122fff	globl
#scall	grab_pgo_data		0xfffffffff21edfff	globl
#scall	guarded_close_np	0xfffffffff21bafff	globl
#scall	guarded_kqueue_np	0xfffffffff21bbfff	globl
#scall	guarded_open_np		0xfffffffff21b9fff	globl
#scall	guarded_pwrite_np	0xfffffffff21e6fff	globl
#scall	guarded_write_np	0xfffffffff21e5fff	globl
#scall	guarded_writev_np	0xfffffffff21e7fff	globl
#scall	identitysvc		0xfffffffff2125fff	globl
#scall	initgroups		0xfffffffff20f3fff	globl
#scall	iopolicysys		0xfffffffff2142fff	globl
#scall	kas_info		0xfffffffff21b7fff	globl
#scall	kdebug_trace		0xfffffffff20b3fff	globl
#scall	kdebug_trace_string	0xfffffffff20b2fff	globl
#scall	kdebug_typefilter	0xfffffffff20b1fff	globl
#scall	kevent_id		0xfffffffff2177fff	globl
#scall	kevent_qos		0xfffffffff2176fff	globl
#scall	ledger			0xfffffffff2175fff	globl
#scall	lstat_extended		0xfffffffff2156fff	globl
#scall	memorystatus_control	0xfffffffff21b8fff	globl
#scall	memorystatus_get_level	0xfffffffff21c5fff	globl
#scall	microstackshot		0xfffffffff21ecfff	globl
#scall	mkdir_extended		0xfffffffff2124fff	globl
#scall	mkfifo_extended		0xfffffffff2123fff	globl
#scall	modwatch		0xfffffffff20e9fff	globl
#scall	mremap_encrypted	0xfffffffff21e9fff	globl
#scall	msgrcv_nocancel		0xfffffffff21a3fff	globl
#scall	msgsnd_nocancel		0xfffffffff21a2fff	globl
#scall	msync_nocancel		0xfffffffff2195fff	globl
#scall	necp_client_action	0xfffffffff21f6fff	globl
#scall	necp_match_policy	0xfffffffff21ccfff	globl
#scall	necp_open		0xfffffffff21f5fff	globl
#scall	necp_session_action	0xfffffffff220bfff	globl
#scall	necp_session_open	0xfffffffff220afff	globl
#scall	net_qos_guideline	0xfffffffff220dfff	globl
#scall	netagent_trigger	0xfffffffff21eafff	globl
#scall	nfsclnt			0xfffffffff20f7fff	globl
#scall	open_dprotected_np	0xfffffffff20d8fff	globl
#scall	open_extended		0xfffffffff2115fff	globl
#scall	open_nocancel		0xfffffffff218efff	globl
#scall	openat_nocancel		0xfffffffff21d0fff	globl
#scall	openbyid_np		0xfffffffff21dffff	globl
#scall	os_fault_with_payload	0xfffffffff2211fff	globl
#scall	peeloff			0xfffffffff21c1fff	globl
#scall	persona			0xfffffffff21eefff	globl
#scall	pid_hibernate		0xfffffffff21b3fff	globl
#scall	pid_resume		0xfffffffff21b2fff	globl
#scall	pid_shutdown_sockets	0xfffffffff21b4fff	globl
#scall	pid_suspend		0xfffffffff21b1fff	globl
#scall	poll_nocancel		0xfffffffff21a1fff	globl
#scall	pread_nocancel		0xfffffffff219efff	globl
#scall	proc_info		0xfffffffff2150fff	globl
#scall	proc_rlimit_control	0xfffffffff21befff	globl
#scall	proc_trace_log		0xfffffffff21ddfff	globl
#scall	proc_uuid_policy	0xfffffffff21c4fff	globl
#scall	process_policy		0xfffffffff2143fff	globl
#scall	pselect_nocancel	0xfffffffff218bfff	globl
#scall	psynch_cvbroad		0xfffffffff212ffff	globl
#scall	psynch_cvclrprepost	0xfffffffff2138fff	globl
#scall	psynch_cvsignal		0xfffffffff2130fff	globl
#scall	psynch_mutexdrop	0xfffffffff212efff	globl
#scall	psynch_mutexwait	0xfffffffff212dfff	globl
#scall	psynch_rw_downgrade	0xfffffffff212bfff	globl
#scall	psynch_rw_longrdlock	0xfffffffff2129fff	globl
#scall	psynch_rw_rdlock	0xfffffffff2132fff	globl
#scall	psynch_rw_unlock	0xfffffffff2134fff	globl
#scall	psynch_rw_unlock2	0xfffffffff2135fff	globl
#scall	psynch_rw_upgrade	0xfffffffff212cfff	globl
#scall	psynch_rw_wrlock	0xfffffffff2133fff	globl
#scall	psynch_rw_yieldwrlock	0xfffffffff212afff	globl
#scall	pwrite_nocancel		0xfffffffff219ffff	globl
#scall	read_nocancel		0xfffffffff218cfff	globl
#scall	readv_nocancel		0xfffffffff219bfff	globl
#scall	recvfrom_nocancel	0xfffffffff2193fff	globl
#scall	recvmsg_nocancel	0xfffffffff2191fff	globl
#scall	recvmsg_x		0xfffffffff21e0fff	globl
#scall	renameatx_np		0xfffffffff21e8fff	globl
#scall	searchfs		0xfffffffff20e1fff	globl
#scall	select_nocancel		0xfffffffff2197fff	globl
#scall	sem_close		0xfffffffff210dfff	globl
#scall	sem_open		0xfffffffff210cfff	globl
#scall	sem_post		0xfffffffff2111fff	globl
#scall	sem_trywait		0xfffffffff2110fff	globl
#scall	sem_unlink		0xfffffffff210efff	globl
#scall	sem_wait		0xfffffffff210ffff	globl
#scall	sem_wait_nocancel	0xfffffffff21a4fff	globl
#scall	sendmsg_nocancel	0xfffffffff2192fff	globl
#scall	sendmsg_x		0xfffffffff21e1fff	globl
#scall	sendto_nocancel		0xfffffffff219dfff	globl
#scall	setattrlist		0xfffffffff20ddfff	globl
#scall	setattrlistat		0xfffffffff220cfff	globl
#scall	setprivexec		0xfffffffff2098fff	globl
#scall	setsgroups		0xfffffffff211ffff	globl
#scall	settid			0xfffffffff211dfff	globl
#scall	settid_with_pid		0xfffffffff2137fff	globl
#scall	setwgroups		0xfffffffff2121fff	globl
#scall	sfi_ctl			0xfffffffff21c8fff	globl
#scall	sfi_pidctl		0xfffffffff21c9fff	globl
#scall	shared_region_check_np	0xfffffffff2126fff	globl
#scall	sigsuspend_nocancel	0xfffffffff219afff	globl
#scall	socket_delegate		0xfffffffff21c2fff	globl
#scall	stat_extended		0xfffffffff2155fff	globl
#scall	sysctlbyname		0xfffffffff2112fff	globl
#scall	system_override		0xfffffffff21c6fff	globl
#scall	telemetry		0xfffffffff21c3fff	globl
#scall	terminate_with_payload	0xfffffffff2208fff	globl
#scall	thread_selfcounts	0xfffffffff20bafff	globl
#scall	thread_selfid		0xfffffffff2174fff	globl
#scall	thread_selfusage	0xfffffffff21e2fff	globl
#scall	ulock_wait		0xfffffffff2203fff	globl
#scall	ulock_wake		0xfffffffff2204fff	globl
#scall	umask_extended		0xfffffffff2116fff	globl
#scall	usrctl			0xfffffffff21bdfff	globl
#scall	vfs_purge		0xfffffffff21c7fff	globl
#scall	vm_pressure_monitor	0xfffffffff2128fff	globl
#scall	wait4_nocancel		0xfffffffff2190fff	globl
#scall	waitevent		0xfffffffff20e8fff	globl
#scall	waitid_nocancel		0xfffffffff21a0fff	globl
#scall	watchevent		0xfffffffff20e7fff	globl
#scall	work_interval_ctl	0xfffffffff21f3fff	globl
#scall	workq_kernreturn	0xfffffffff2170fff	globl
#scall	workq_open		0xfffffffff216ffff	globl
#scall	write_nocancel		0xfffffffff218dfff	globl
#scall	writev_nocancel		0xfffffffff219cfff	globl
#──────────────────────────FREEBSD───────────────────────────
scall	sys_umtx_op		0xffffff1c6fffffff	globl
#scall	abort2			0xffffff1cffffffff	globl
#scall	afs3_syscall		0xffffff179fffffff	globl
#scall	bindat			0xffffff21afffffff	globl
#scall	cap_enter		0xffffff204fffffff	globl
#scall	cap_fcntls_get		0xffffff219fffffff	globl
#scall	cap_fcntls_limit	0xffffff218fffffff	globl
#scall	cap_getmode		0xffffff205fffffff	globl
#scall	cap_ioctls_get		0xffffff217fffffff	globl
#scall	cap_ioctls_limit	0xffffff216fffffff	globl
#scall	cap_rights_limit	0xffffff215fffffff	globl
#scall	clock_getcpuclockid2	0x1e2fff0f7fffffff	globl
#scall	connectat		0xffffff21bfffffff	globl
#scall	cpuset			0xffffff1e4fffffff	globl
#scall	cpuset_getdomain	0xffffff231fffffff	globl
#scall	cpuset_getid		0xffffff1e6fffffff	globl
#scall	cpuset_setdomain	0xffffff232fffffff	globl
#scall	cpuset_setid		0xffffff1e5fffffff	globl
#scall	eaccess			0xffffff178fffffff	globl
#scall	extattr_delete_fd	0x16efff175fffffff	globl
#scall	extattr_delete_file	0x16bfff166fffffff	globl
#scall	extattr_delete_link	0x171fff19efffffff	globl
#scall	extattr_get_fd		0x16dfff174fffffff	globl
#scall	extattr_get_file	0x16afff165fffffff	globl
#scall	extattr_get_link	0x170fff19dfffffff	globl
#scall	extattr_list_fd		0x172fff1b5fffffff	globl
#scall	extattr_list_file	0x173fff1b6fffffff	globl
#scall	extattr_list_link	0x174fff1b7fffffff	globl
#scall	extattr_set_fd		0x16cfff173fffffff	globl
#scall	extattr_set_file	0x169fff164fffffff	globl
#scall	extattr_set_link	0x16ffff19cfffffff	globl
#scall	extattrctl		0x168fff163fffffff	globl
scall	sys_fexecve		0xffffff1ecfffffff	globl hidden
#scall	ffclock_getcounter	0xffffff0f1fffffff	globl
#scall	ffclock_getestimate	0xffffff0f3fffffff	globl
#scall	ffclock_setestimate	0xffffff0f2fffffff	globl
#scall	fhlink			0xffffff235fffffff	globl
#scall	fhlinkat		0xffffff236fffffff	globl
#scall	fhreadlink		0xffffff237fffffff	globl
#scall	getaudit		0xffffff1c1fffffff	globl
scall	sys_getcontext		0x133fff1a5fffffff	globl hidden
#scall	getdomainname		0xffff00a2ffffffff	globl
#scall	getfhat			0xffffff234fffffff	globl
#scall	gethostid		0xffffff08efffffff	globl
#scall	gethostname		0xffff0057ffffffff	globl
#scall	getkerninfo		0xffffff03ffffffff	globl
#scall	getloginclass		0xffffff20bfffffff	globl
scall	getpagesize_freebsd	0xffffff040fffffff	globl hidden
#scall	gssd_syscall		0xffffff1f9fffffff	globl
#scall	jail			0xffffff152fffffff	globl
#scall	jail_attach		0xffffff1b4fffffff	globl
#scall	jail_get		0xffffff1fafffffff	globl
#scall	jail_remove		0xffffff1fcfffffff	globl
#scall	jail_set		0xffffff1fbfffffff	globl
#scall	kenv			0xffffff186fffffff	globl
#scall	kldfind			0xffffff132fffffff	globl
#scall	kldfirstmod		0xffffff135fffffff	globl
#scall	kldload			0xffffff130fffffff	globl
#scall	kldnext			0xffffff133fffffff	globl
#scall	kldstat			0xffffff134fffffff	globl
#scall	kldsym			0xffffff151fffffff	globl
#scall	kldunload		0xffffff131fffffff	globl
#scall	kldunloadf		0xffffff1bcfffffff	globl
#scall	kmq_notify		0xffffff1cdfffffff	globl
#scall	kmq_setattr		0xffffff1cafffffff	globl
#scall	kmq_timedreceive	0xffffff1cbfffffff	globl
#scall	kmq_timedsend		0xffffff1ccfffffff	globl
#scall	kmq_unlink		0xffffff1cefffffff	globl
#scall	ksem_close		0xffffff190fffffff	globl
#scall	ksem_destroy		0xffffff198fffffff	globl
#scall	ksem_getvalue		0xffffff197fffffff	globl
#scall	ksem_init		0xffffff194fffffff	globl
#scall	ksem_open		0xffffff195fffffff	globl
#scall	ksem_post		0xffffff191fffffff	globl
#scall	ksem_timedwait		0xffffff1b9fffffff	globl
#scall	ksem_trywait		0xffffff193fffffff	globl
#scall	ksem_unlink		0xffffff196fffffff	globl
#scall	ksem_wait		0xffffff192fffffff	globl
#scall	lchflags		0x130fff187fffffff	globl
#scall	lchmod			0x112fff112fffffff	globl
#scall	lgetfh			0xffffff0a0fffffff	globl
#scall	lpathconf		0x1f3fff201fffffff	globl
scall	sys_lutimes		0x1a8fff114fffffff	globl hidden
#scall	mac_syscall		0xffffff18afffffff	globl
#scall	modfind			0xffffff12ffffffff	globl
#scall	modfnext		0xffffff12efffffff	globl
#scall	modnext			0xffffff12cfffffff	globl
#scall	modstat			0xffffff12dfffffff	globl
#scall	nfstat			0xffffff117fffffff	globl
#scall	nlm_syscall		0xffffff09afffffff	globl
#scall	nlstat			0xffffff118fffffff	globl
#scall	nmount			0xffffff17afffffff	globl
#scall	nnpfs_syscall		0xffffff153fffffff	globl
#scall	nstat			0xffffff116fffffff	globl
#scall	pdfork			0xffffff206fffffff	globl
#scall	pdgetpid		0xffffff208fffffff	globl
#scall	pdkill			0xffffff207fffffff	globl
scall	sys_posix_openpt	0xffffff1f8fffffff	globl hidden
#scall	procctl			0xffffff220fffffff	globl
#scall	psynch_cvwait		0xfffffffff2131fff	globl
#scall	quota			0xffffff095fffffff	globl
#scall	rctl_add_rule		0xffffff210fffffff	globl
#scall	rctl_get_limits		0xffffff20ffffffff	globl
#scall	rctl_get_racct		0xffffff20dfffffff	globl
#scall	rctl_get_rules		0xffffff20efffffff	globl
#scall	rctl_remove_rule	0xffffff211fffffff	globl
#scall	recv			0xffffff066fffffff	globl
#scall	rfork			0xffffff0fbfffffff	globl
#scall	rtprio			0xffffff0a6fffffff	globl
scall	sys_rtprio_thread	0xffffff1d2fffffff	globl # no wrapper
#scall	send			0xffffff065fffffff	globl
#scall	setaudit		0xffffff1c2fffffff	globl
#scall	setcontext		0x134fff1a6fffffff	globl
#scall	setfib			0xffffff0affffffff	globl
#scall	sethostid		0xffffff08ffffffff	globl
#scall	setloginclass		0xffffff20cfffffff	globl
#scall	sigblock		0xffffff06dfffffff	globl
#scall	sigsetmask		0xffffff06efffffff	globl
#scall	sigstack		0xffffff070fffffff	globl
#scall	sigvec			0xffffff06cfffffff	globl
#scall	sigwaitinfo		0xffffff15afffffff	globl
#scall	sstk			0xffffff046fffffff	globl
#scall	swapcontext		0xffffff1a7fffffff	globl
#scall	thr_create		0xffffff1aefffffff	globl
#scall	thr_exit		0xffffff1affffffff	globl
#scall	thr_kill		0xffffff1b1fffffff	globl
#scall	thr_kill2		0xffffff1e1fffffff	globl
#scall	thr_new			0xffffff1c7fffffff	globl
#scall	thr_self		0xffffff1b0fffffff	globl
#scall	thr_set_name		0xffffff1d0fffffff	globl
#scall	thr_suspend		0xffffff1bafffffff	globl
#scall	thr_wake		0xffffff1bbfffffff	globl
#scall	uuidgen			0x163fff188fffffff	globl
#scall	vadvise			0xffffff048fffffff	globl
#scall	wait			0xffffff054fffffff	globl
#scall	wait6			0x1e1fff214fffffff	globl
#scall	yield			0xffffff141fffffff	globl
#──────────────────────────OPENBSD───────────────────────────
#scall	__thrsleep		0xfff05effffffffff	globl
#scall	__thrwakeup		0xfff12dffffffffff	globl
#scall	__threxit		0xfff12effffffffff	globl
#scall	__thrsigdivert		0xfff12fffffffffff	globl
#scall	__set_tcb		0xfff149ffffffffff	globl
#scall	__get_tcb		0xfff14affffffffff	globl
#scall	adjfreq			0xfff131ffffffffff	globl
#scall	getdtablecount		0xfff012ffffffffff	globl
#scall	getlogin_r		0xfff08dffffffffff	globl
#scall	getrtable		0xfff137ffffffffff	globl
#scall	getthrid		0xfff12bffffffffff	globl
#scall	kbind			0xfff056ffffffffff	globl
#scall	mquery			0xfff11effffffffff	globl # openbsd:pad
#scall	obreak			0x011011ffffffffff	globl
#scall	sendsyslog		0xfff070ffffffffff	globl
#scall	setrtable		0xfff136ffffffffff	globl
#scall	swapctl			0x10f0c1ffffffffff	globl
#scall	thrkill			0xfff077ffffffffff	globl
scall	sys_unveil		0xfff072ffffffffff	globl hidden
#──────────────────────────NETBSD────────────────────────────
#scall	_lwp_create		0x135fffffffffffff	globl # int _lwp_create(const struct ucontext_netbsd *ucp, uint64_t flags, int *new_lwp)
#scall	_lwp_exit		0x136fffffffffffff	globl # int _lwp_exit(void)
#scall	_lwp_self		0x137fffffffffffff	globl # int _lwp_self(void)
#scall	_lwp_wait		0x138fffffffffffff	globl # int _lwp_wait(int wait_for, int *departed)
#scall	_lwp_suspend		0x139fffffffffffff	globl # int _lwp_suspend(int target)
#scall	_lwp_continue		0x13afffffffffffff	globl # int _lwp_continue(int target)
#scall	_lwp_wakeup		0x13bfffffffffffff	globl # int _lwp_wakeup(int target)
#scall	_lwp_getprivate		0x13cfffffffffffff	globl # void *_lwp_getprivate(void)
#scall	_lwp_setprivate		0x13dfffffffffffff	globl # int _lwp_setprivate(void *ptr)
#scall	_lwp_kill		0x13efffffffffffff	globl # int _lwp_kill(int target, int signo)
#scall	_lwp_detach		0x13ffffffffffffff	globl # int _lwp_park(int clock_id, int flags, struct timespec *ts, int unpark, const void *hint, const void *unparkhint)
#scall	_lwp_park		0x1defffffffffffff	globl # int _lwp_park(int clock_id, int flags, struct timespec *ts, int unpark, const void *hint, const void *unparkhint)
#scall	_lwp_unpark		0x141fffffffffffff	globl # int _lwp_unpark_all(int target, const void *hint)
#scall	_lwp_unpark_all		0x142fffffffffffff	globl # int _lwp_unpark_all(const int *targets, size_t ntargets, const void *hint)
#scall	_lwp_setname		0x143fffffffffffff	globl # int _lwp_setname(int target, const char *name)
#scall	_lwp_getname		0x144fffffffffffff	globl # int _lwp_getname(int target, char *name, size_t len)
#scall	_lwp_ctl		0x145fffffffffffff	globl # int _lwp_ctl(int features, struct lwpctl **address)