minexew / templeos-loader

User-space loader for TempleOS
4 stars 6 forks source link

File + I/O APIs #10

Open minexew opened 4 years ago

minexew commented 4 years ago

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)