From 6deaf4c51e1ccda461f321c1802e5b12c7417197 Mon Sep 17 00:00:00 2001 From: James Matlik Date: Thu, 26 Jun 2025 19:54:22 -0400 Subject: [PATCH] Minor dependency cleanup Fully use libredox instead of libc for all constants --- Cargo.toml | 1 - src/bin/passwd.rs | 3 ++- src/bin/su.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f0a9817d14..0878415de8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,7 +58,6 @@ orbclient = "0.3.47" plain = "0.2.3" redox-daemon = "0.1.3" redox_liner = "0.5.2" -libc = "0.2.171" libredox = "0.1.3" redox_termios = "0.1.3" redox_event = "0.4" diff --git a/src/bin/passwd.rs b/src/bin/passwd.rs index b2102e7929..cacb4d09bf 100644 --- a/src/bin/passwd.rs +++ b/src/bin/passwd.rs @@ -6,7 +6,8 @@ use std::io::Write; use std::process::exit; use extra::option::OptionalExt; -use libc::{EPERM, O_CLOEXEC}; +use libredox::flag::O_CLOEXEC; +use libredox::errno::EPERM; use redox_users::{All, AllUsers, Config, get_uid}; use termion::input::TermRead; diff --git a/src/bin/su.rs b/src/bin/su.rs index cbf939e12d..49c3496706 100644 --- a/src/bin/su.rs +++ b/src/bin/su.rs @@ -6,7 +6,7 @@ use std::process::exit; use std::str; use extra::option::OptionalExt; -use libc::O_CLOEXEC; +use libredox::flag::O_CLOEXEC; use redox_users::{All, AllUsers, Config, get_uid}; use syscall::EPERM; use termion::input::TermRead;