Add mode to open operation
This commit is contained in:
parent
9f4c73ebea
commit
bcd0ac0303
@ -1,4 +1,4 @@
|
||||
use std::os::mikros::{ipc, syscalls, Errno};
|
||||
use std::os::mikros::{ipc, syscalls, Errno, FileOpenMode};
|
||||
|
||||
use parking_lot::Mutex;
|
||||
use uart::{
|
||||
@ -9,7 +9,7 @@ use uart::{
|
||||
struct 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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user