From 2fad35bcd7402bad56328338c5adfd3855e2ef3e Mon Sep 17 00:00:00 2001 From: pjht Date: Sat, 16 Nov 2024 11:53:48 -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 c0d2760..b869441 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use std::{ borrow::Cow, collections::HashMap, - os::mikros::{ipc, syscalls, Errno}, + os::mikros::{ipc, syscalls, Errno, FileOpenMode}, path::{Path, PathBuf}, sync::Arc, }; @@ -92,7 +92,7 @@ struct Serv { } impl dev_driver_rpc::Server for Serv { - fn open(&self, path: &Path) -> Result { + fn open(&self, path: &Path, _mode: FileOpenMode) -> Result { if path == Path::new("ptmx") { let pty = Pty::new(); let idx = self.ptys.write().insert(pty);