public static extern int sethostname(byte *name, size_t len);
public static extern size_t confstr(int name, byte *buf, size_t len);
public static extern void *sbrk(size_t increment);
public static extern void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
public static extern int mprotect(void *addr, size_t len, int prot);
public static extern ssize_t read(int fd, void *buf, size_t count);
public static extern ssize_t readlink(byte *pathname, byte *buf, size_t bufsize);
public static extern int madvise(void *addr, size_t length, int advice);
public static extern int mincore(void *addr, size_t length, byte *vec);
public static extern void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, void *new_address);
public static extern int remap_file_pages(void *addr, size_t size, int prot, size_t pgoff, int flags);
public static extern int munlock(void *addr, size_t len);
public static extern int mlock2(void *addr, size_t len, int flags);
public static extern int msync(void *addr, size_t len, int flags);
public static extern int setdomainname(byte *name, size_t len);
public static extern int munmap(void *addr, size_t length);
public static extern int setgroups(size_t size, gid_t *list);
public static extern byte *getcwd(byte *buf, size_t size);
public static extern ssize_t write(int fd, void *buf, size_t count);
public static extern int ttyname_r(int fd, byte *but, size_t buflen);
public static extern ssize_t readlinkat(int dirfd, byte *pathname, byte *buf, size_t bufsize);
public static extern int getlogin_r(byte *buf, size_t bufsize);
private unsafe syscall_arg(size_t value) => __value = *(ssize_t *)&value;
public static extern int sched_setaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *mask);