|
|
@ -160,7 +160,7 @@ pub struct PollStatus {
|
|
|
|
#[derive(Debug, Eq, PartialEq)]
|
|
|
|
#[derive(Debug, Eq, PartialEq)]
|
|
|
|
pub struct Metadata {
|
|
|
|
pub struct Metadata {
|
|
|
|
/// Device ID
|
|
|
|
/// Device ID
|
|
|
|
pub dev: usize,
|
|
|
|
pub dev: usize, // (major << 8) | minor
|
|
|
|
/// Inode number
|
|
|
|
/// Inode number
|
|
|
|
pub inode: usize,
|
|
|
|
pub inode: usize,
|
|
|
|
/// Size in bytes
|
|
|
|
/// Size in bytes
|
|
|
@ -192,6 +192,9 @@ pub struct Metadata {
|
|
|
|
pub uid: usize,
|
|
|
|
pub uid: usize,
|
|
|
|
/// Group ID
|
|
|
|
/// Group ID
|
|
|
|
pub gid: usize,
|
|
|
|
pub gid: usize,
|
|
|
|
|
|
|
|
/// Raw device id
|
|
|
|
|
|
|
|
/// e.g. /dev/null: makedev(0x1, 0x3)
|
|
|
|
|
|
|
|
pub rdev: usize, // (major << 8) | minor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
|
|
|
|
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
|
|
|
|