feat: Enable StdFsCallKinds except for unlinkat

This commit is contained in:
Ibuki.O
2026-02-26 14:19:56 +09:00
parent 548f9b0197
commit 68b511f7a0
2 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -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 <jackpot51@gmail.com>"]
+3 -6
View File
@@ -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,