feat: Use libredox instead of redox_syscall.
This commit is contained in:
parent
ed46dd031d
commit
0370cadd67
3 changed files with 5 additions and 3 deletions
|
|
@ -80,7 +80,8 @@ xkbcommon-dl = "0.4.2"
|
||||||
|
|
||||||
# Orbital dependencies.
|
# Orbital dependencies.
|
||||||
orbclient = { version = "0.3.47", default-features = false }
|
orbclient = { version = "0.3.47", default-features = false }
|
||||||
redox_syscall = "0.5.7"
|
redox_syscall = "0.7"
|
||||||
|
libredox = "0.1.12"
|
||||||
|
|
||||||
# Web dependencies.
|
# Web dependencies.
|
||||||
atomic-waker = "1"
|
atomic-waker = "1"
|
||||||
|
|
|
||||||
|
|
@ -23,3 +23,4 @@ winit-core.workspace = true
|
||||||
# Platform-specific
|
# Platform-specific
|
||||||
orbclient.workspace = true
|
orbclient.workspace = true
|
||||||
redox_syscall.workspace = true
|
redox_syscall.workspace = true
|
||||||
|
libredox.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ impl RedoxSocket {
|
||||||
// example, the seek would change in a potentially unpredictable way if either read or write
|
// example, the seek would change in a potentially unpredictable way if either read or write
|
||||||
// were called at the same time by multiple threads.
|
// were called at the same time by multiple threads.
|
||||||
fn open_raw(path: &str) -> syscall::Result<Self> {
|
fn open_raw(path: &str) -> syscall::Result<Self> {
|
||||||
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 })
|
Ok(Self { fd })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -97,7 +97,7 @@ struct WindowProperties<'a> {
|
||||||
|
|
||||||
impl<'a> WindowProperties<'a> {
|
impl<'a> WindowProperties<'a> {
|
||||||
fn new(path: &'a str) -> Self {
|
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 mut parts = path.splitn(6, '/');
|
||||||
let flags = parts.next().unwrap_or("");
|
let flags = parts.next().unwrap_or("");
|
||||||
let x = parts.next().map_or(0, |part| part.parse::<i32>().unwrap_or(0));
|
let x = parts.next().map_or(0, |part| part.parse::<i32>().unwrap_or(0));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue