feat: Add FsCall.

This commit is contained in:
Ibuki Omatsu
2025-07-21 13:52:41 +00:00
committed by Jeremy Soller
parent 61f7b1bc31
commit 95f15d3a8f
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "redox_syscall"
version = "0.5.14"
version = "0.5.15"
description = "A Rust library to access raw Redox system calls"
license = "MIT"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
+15
View File
@@ -221,6 +221,21 @@ impl ProcSchemeVerb {
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(usize)]
#[non_exhaustive]
pub enum FsCall {
Connect = 0,
}
impl FsCall {
pub fn try_from_raw(raw: usize) -> Option<Self> {
Some(match raw {
0 => Self::Connect,
_ => return None,
})
}
}
bitflags! {
pub struct PtraceFlags: u64 {
/// Stop before a syscall is handled. Send PTRACE_FLAG_IGNORE to not