diff --git a/Cargo.toml b/Cargo.toml index 362b9da2..1dde01de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -80,7 +80,8 @@ xkbcommon-dl = "0.4.2" # Orbital dependencies. orbclient = { version = "0.3.47", default-features = false } -redox_syscall = "0.5.7" +redox_syscall = "0.7" +libredox = "0.1.12" # Web dependencies. atomic-waker = "1" diff --git a/winit-orbital/Cargo.toml b/winit-orbital/Cargo.toml index 1d1e20a8..330bd520 100644 --- a/winit-orbital/Cargo.toml +++ b/winit-orbital/Cargo.toml @@ -23,3 +23,4 @@ winit-core.workspace = true # Platform-specific orbclient.workspace = true redox_syscall.workspace = true +libredox.workspace = true diff --git a/winit-orbital/src/lib.rs b/winit-orbital/src/lib.rs index 71efc821..0a41dd0e 100644 --- a/winit-orbital/src/lib.rs +++ b/winit-orbital/src/lib.rs @@ -33,7 +33,7 @@ impl RedoxSocket { // example, the seek would change in a potentially unpredictable way if either read or write // were called at the same time by multiple threads. fn open_raw(path: &str) -> syscall::Result { - let fd = syscall::open(path, syscall::O_RDWR | syscall::O_CLOEXEC)?; + let fd = libredox::call::open(path, libredox::flag::O_RDWR | libredox::flag::O_CLOEXEC, 0)?; Ok(Self { fd }) } @@ -97,7 +97,7 @@ struct WindowProperties<'a> { impl<'a> WindowProperties<'a> { fn new(path: &'a str) -> Self { - // orbital:flags/x/y/w/h/t + // /scheme/orbital/flags/x/y/w/h/t let mut parts = path.splitn(6, '/'); let flags = parts.next().unwrap_or(""); let x = parts.next().map_or(0, |part| part.parse::().unwrap_or(0));