#[repr(C)]pub struct Dirent {
pub d_ino: usize,
pub d_off: isize,
pub d_reclen: u16,
pub d_type: u8,
pub d_name: [u8; 128],
}
Expand description
Native Linux directory entry structure.
Note
In theory, the d_name may NOT have a fixed size and d_name
may be arbitrarily lone.
Fields
d_ino: usize
Inode number
d_off: isize
Offset to next linux_dirent
d_reclen: u16
Length of this linux_dirent
d_type: u8
Type of the file
d_name: [u8; 128]
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Dirent
impl UnwindSafe for Dirent
Blanket Implementations
Mutably borrows from an owned value. Read more