host_syscall
long host_syscall(int number, ...);
return host_syscall(SYS_mount, src, target, type, flags, data);
return host_syscall(SYS_munmap, (uintptr_t)addr, len);
return host_syscall(SYS_openat, HOST_AT_FDCWD, (uintptr_t)path, flags, mode);
return host_syscall(SYS_read, fd, (uintptr_t)buf, nbyte);
return host_syscall(SYS_reboot, magic1, magic2, cmd, arg);
return host_syscall(SYS_pselect6, nfds, (uintptr_t)readfds, (uintptr_t)writefds,
return host_syscall(SYS_newfstatat, HOST_AT_FDCWD, (uintptr_t)path, (uintptr_t)sb, 0);
return host_syscall(SYS_symlinkat, HOST_AT_FDCWD, path1, path2);
return host_syscall(SYS_uname, (uintptr_t)uts);
return host_syscall(SYS_write, fd, (uintptr_t)buf, nbyte);
return host_syscall(SYS_close, fd);
return host_syscall(SYS_dup, fd);
return host_syscall(SYS_exit, code);
return host_syscall(SYS_newfstat, fd, (uintptr_t)sb);
return host_syscall(SYS_fstat, fd, (uintptr_t)sb);
return host_syscall(SYS_getdents64, fd, (uintptr_t)dirp, count);
return host_syscall(SYS_getpid);
return host_syscall(SYS_gettimeofday, (uintptr_t)a, (uintptr_t)b);
return host_syscall(SYS_ioctl, fd, request, arg);
return host_syscall(SYS_llseek, fd, offset_high, offset_lo, (uintptr_t)result, whence);
int64_t rv = host_syscall(SYS_lseek, fd,
return host_syscall(SYS_kexec_load, entry, nsegs, segs, flags);
return host_syscall(SYS_mkdirat, HOST_AT_FDCWD, (uintptr_t)path, mode);
return (void *)host_syscall(SYS_mmap, (uintptr_t)addr, len, prot, flags, fd, off);