interface: fs: replace ifc definition with xpcg
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
file(GLOB if_files *.if)
|
||||
file(GLOB if_files *.xpc)
|
||||
|
||||
foreach (file ${if_files})
|
||||
get_filename_component(name ${file} NAME_WLE)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
interface fs {
|
||||
msg open(string path, int flags) -> (int err);
|
||||
msg read(size count) -> (int err, bytebuf data);
|
||||
}
|
||||
|
||||
9
interface/fs.xpc
Normal file
9
interface/fs.xpc
Normal 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);
|
||||
Reference in New Issue
Block a user