From d6fa513ca7c46e0d2d83ad0f397ec4e937d22b5f Mon Sep 17 00:00:00 2001 From: vasilito Date: Sun, 5 Jul 2026 23:57:27 +0300 Subject: [PATCH] fix: protocol constants and local path deps --- Cargo.toml | 5 ++++- src/lib.rs | 11 +++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 73a44f62ce..49c86ee64b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,9 @@ libc = { version = "0.2", optional = true } # in Rust code it is imported as `syscall`, NOT `redox_syscall`. # This dep is optional and gated by the `redox_syscall` feature # above. Matching upstream `libredox 0.1.18` structure. -redox_syscall = { path = "../syscall", version = "0.9.0+rb0.2.5", optional = true } +redox_syscall = { path = "../syscall", optional = true } ioslice = { version = "0.6", optional = true } plain = { version = "0.2", optional = true } + +[patch.crates-io] +redox_syscall = { path = "../syscall" } diff --git a/src/lib.rs b/src/lib.rs index 8633d21235..0d7f255b0d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1090,12 +1090,12 @@ pub mod protocol { pub const SIGALRM: usize = 14; pub const SIGTERM: usize = 15; pub const SIGSTKFLT: usize = 16; - pub const SIGCHLD: usize = syscall::SIGCHLD; + pub const SIGCHLD: usize = 17; pub const SIGCONT: usize = 18; pub const SIGSTOP: usize = 19; - pub const SIGTSTP: usize = syscall::SIGTSTP; - pub const SIGTTIN: usize = syscall::SIGTTIN; - pub const SIGTTOU: usize = syscall::SIGTTOU; + pub const SIGTSTP: usize = 20; + pub const SIGTTIN: usize = 21; + pub const SIGTTOU: usize = 22; pub const SIGURG: usize = 23; pub const SIGXCPU: usize = 24; pub const SIGXFSZ: usize = 25; @@ -1137,4 +1137,7 @@ pub mod protocol { }) } } + + pub const O_CLOEXEC: usize = 0x0100_0000; + pub const F_DUPFD_CLOEXEC: usize = 5; }