Add mode to open operation
This commit is contained in:
parent
8ca9295d57
commit
38bb932cc9
@ -2,7 +2,7 @@ mod controller;
|
|||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
collections::VecDeque,
|
collections::VecDeque,
|
||||||
os::mikros::{ipc, syscalls, Errno},
|
os::mikros::{ipc, syscalls, Errno, FileOpenMode},
|
||||||
sync::OnceLock,
|
sync::OnceLock,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ static KEYPRESS_BUF: Mutex<VecDeque<char>> = Mutex::new(VecDeque::new());
|
|||||||
struct DevServ;
|
struct DevServ;
|
||||||
|
|
||||||
impl dev_driver_rpc::Server for DevServ {
|
impl dev_driver_rpc::Server for DevServ {
|
||||||
fn open(&self, _path: &std::path::Path) -> Result<u64, Errno> {
|
fn open(&self, _path: &std::path::Path, _mode: FileOpenMode) -> Result<u64, Errno> {
|
||||||
Ok(0)
|
Ok(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user