From a9880ccf50d093e662f3b31c1aa13f0951cc2b4d Mon Sep 17 00:00:00 2001 From: Ibuki Omatsu Date: Sun, 27 Jul 2025 13:10:36 +0000 Subject: [PATCH] feat: Add UPPER_FDTBL_TAG --- Cargo.toml | 2 +- src/flag.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 18788a02ff..8b224f2c3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "redox_syscall" -version = "0.5.16" +version = "0.5.17" 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 70b94a35a6..4098d96f10 100644 --- a/src/flag.rs +++ b/src/flag.rs @@ -401,3 +401,6 @@ bitflags! { const FD_UPPER = 1 << 14; } } + +/// The tag for the fd number in the upper file descriptor table. +pub const UPPER_FDTBL_TAG: usize = 1 << (usize::BITS - 2);