64-bit stat size, read entire executable in one go

This commit is contained in:
Jeremy Soller 2016-09-28 20:42:03 -06:00
parent 83ff36a4c3
commit 5e1d2f8c64
6 changed files with 12 additions and 24 deletions

View file

@ -55,17 +55,10 @@ impl DerefMut for Packet {
#[derive(Copy, Clone, Debug, Default)]
#[repr(packed)]
pub struct Stat {
pub st_dev: u16,
pub st_ino: u16,
pub st_mode: u16,
pub st_nlink: u16,
pub st_uid: u16,
pub st_gid: u16,
pub st_rdev: u16,
pub st_size: u32,
pub st_atime: u32,
pub st_mtime: u32,
pub st_ctime: u32
pub st_uid: u32,
pub st_gid: u32,
pub st_size: u64
}
impl Deref for Stat {