15 lines
484 B
Plaintext
15 lines
484 B
Plaintext
interface fs 6400;
|
|
|
|
func open[0](path: string, flags: int) -> (err: int);
|
|
func close[1]() -> (err: int);
|
|
|
|
func read[2](count: size) -> (err: int, data: buffer);
|
|
func write[3](data: buffer) -> (err: int, nr_written: size);
|
|
|
|
func seek[4](offset: offset, origin: int) -> (err: int, new_pos: offset);
|
|
|
|
func map[5](prot: int, flags: int) -> (err: int, vmo: handle);
|
|
|
|
func getdents[6]() -> (err: int, dents: buffer);
|
|
func mount[7](path: string, nd: int, pid: int, chid: int) -> (err: int);
|