interface: fs: replace ifc definition with xpcg

This commit is contained in:
2026-03-10 19:13:24 +00:00
parent 5931642cc2
commit 79af171384
3 changed files with 11 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
file(GLOB if_files *.if) file(GLOB if_files *.xpc)
foreach (file ${if_files}) foreach (file ${if_files})
get_filename_component(name ${file} NAME_WLE) get_filename_component(name ${file} NAME_WLE)

View File

@@ -1,3 +1,4 @@
interface fs { interface fs {
msg open(string path, int flags) -> (int err); msg open(string path, int flags) -> (int err);
msg read(size count) -> (int err, bytebuf data);
} }

9
interface/fs.xpc Normal file
View File

@@ -0,0 +1,9 @@
interface fs 6400;
func open[0](path: string, flags: int) -> (err: int);
func close[1]() -> (err: int);
func read[2](count: size) -> (err: int, nr_read: size, data: buffer);
func write[3](data: buffer) -> (err: int, nr_written: size);
func map[4](prot: int, flags: int) -> (vmo: handle);