VSYSCALL_STAT -> HostStat
VSYSCALL_STATCLUS -> HostStatByClus (this is a stupid API that adds a lot of pain, but the assumption of having physical clusters is rooted too deep in the kernel)
VSYSCALL_MKDIR, OPENDIR, READDIR, CLOSEDIR -> HostMkdir, Opendir, Readdir, Closedir
VSYSCALL_FGET -> HostGetFileContents or remove altogether (reimplement through Fread)
VSYSCALL_FPUT -> HostPutFileContents or remove altogether (reimplement through Fwrite)
Long-term plan:
VSYSCALL_STAT -> HostStat VSYSCALL_STATCLUS -> HostStatByClus (this is a stupid API that adds a lot of pain, but the assumption of having physical clusters is rooted too deep in the kernel) VSYSCALL_MKDIR, OPENDIR, READDIR, CLOSEDIR -> HostMkdir, Opendir, Readdir, Closedir
add HostFopen add HostFread add HostFwrite add HostFclose
VSYSCALL_FGET -> HostGetFileContents or remove altogether (reimplement through Fread) VSYSCALL_FPUT -> HostPutFileContents or remove altogether (reimplement through Fwrite)