Skip to content

Commit 20a1dff

Browse files
committed
Define more ioctl codes on riscv32gc-unknown-linux-gnu
Define ioctl codes including `FICLONE` and `FS_IOC32_GETVERSION` on riscv32gc-unknown-linux-gnu.
1 parent 30f03b2 commit 20a1dff

File tree

1 file changed

+3
-1
lines changed
  • src/unix/linux_like/linux/arch/generic

1 file changed

+3
-1
lines changed

src/unix/linux_like/linux/arch/generic/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ cfg_if! {
164164
target_arch = "x86_64",
165165
target_arch = "arm",
166166
target_arch = "aarch64",
167+
target_arch = "riscv32",
167168
target_arch = "riscv64",
168169
target_arch = "s390x",
169170
target_arch = "csky",
@@ -303,7 +304,8 @@ cfg_if! {
303304
if #[cfg(any(
304305
target_arch = "x86",
305306
target_arch = "arm",
306-
target_arch = "csky"
307+
target_arch = "csky",
308+
target_arch = "riscv32"
307309
))] {
308310
pub const FS_IOC_GETFLAGS: Ioctl = 0x80046601;
309311
pub const FS_IOC_SETFLAGS: Ioctl = 0x40046602;

0 commit comments

Comments
 (0)