Debian Codegraph @

debian/rust-vendor/rustix/src/backend/libc/fs/mod.rs

raw
1 #[cfg(all(feature = "alloc", not(any(target_os = "espidf", target_os = "redox"))))]
2 pub(crate) mod dir;
3 #[cfg(linux_kernel)]
4 pub mod inotify;
5 #[cfg(not(any(
6 target_os = "espidf",
7 target_os = "haiku",
8 target_os = "horizon",
9 target_os = "vita",
10 target_os = "wasi"
11 )))]
12 pub(crate) mod makedev;
13 #[cfg(not(windows))]
14 pub(crate) mod syscalls;
15 pub(crate) mod types;
16
17 // TODO: Fix linux-raw-sys to define ioctl codes for sparc.
18 #[cfg(all(linux_raw_dep, any(target_arch = "sparc", target_arch = "sparc64")))]
19 pub(crate) const EXT4_IOC_RESIZE_FS: crate::ioctl::Opcode = 0x8008_6610;
20
21 #[cfg(all(
22 linux_raw_dep,
23 not(any(target_arch = "sparc", target_arch = "sparc64"))
24 ))]
25 pub(crate) const EXT4_IOC_RESIZE_FS: crate::ioctl::Opcode =
26 linux_raw_sys::ioctl::EXT4_IOC_RESIZE_FS as crate::ioctl::Opcode;