From bcd0ac0303596f3d6eae371f61695882d5c388c5 Mon Sep 17 00:00:00 2001 From: pjht Date: Sat, 16 Nov 2024 11:54:45 -0600 Subject: [PATCH] Add mode to open operation --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1bb7f48..d5dd268 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 { + fn open(&self, _path: &std::path::Path, _mode: FileOpenMode) -> Result { Ok(0) } }