From 68b511f7a08471ee25e11019c4002924178c4f80 Mon Sep 17 00:00:00 2001 From: "Ibuki.O" Date: Thu, 26 Feb 2026 14:19:56 +0900 Subject: [PATCH] feat: Enable StdFsCallKinds except for unlinkat --- Cargo.toml | 2 +- src/flag.rs | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ba2e671676..366af49b41 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "redox_syscall" -version = "0.7.2" +version = "0.7.3" description = "A Rust library to access raw Redox system calls" license = "MIT" authors = ["Jeremy Soller "] diff --git a/src/flag.rs b/src/flag.rs index ca21773e66..3073471cd2 100644 --- a/src/flag.rs +++ b/src/flag.rs @@ -411,7 +411,7 @@ bitflags! { #[repr(u8)] #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)] pub enum StdFsCallKind { - /*TODO: remove old syscalls + // TODO: remove old syscalls Fchmod = 1, Fchown = 2, Getdents = 3, @@ -421,8 +421,7 @@ pub enum StdFsCallKind { Ftruncate = 7, Futimens = 8, // 9 reserved in fscall RFC - Unlinkat = 10, - */ + // Unlinkat = 10, Realpathat = 11, Lock = 12, Unlock = 13, @@ -435,7 +434,6 @@ impl StdFsCallKind { // TODO: Use a library where this match can be automated. Some(match raw { - /* 1 => Fchmod, 2 => Fchown, 3 => Getdents, @@ -445,8 +443,7 @@ impl StdFsCallKind { 7 => Ftruncate, 8 => Futimens, // 9 reserved in fscall RFC - 10 => Unlinkat, - */ + // 10 => Unlinkat, 11 => Realpathat, 12 => Lock, 13 => Unlock,