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 33a533665b
commit 837430e604
+3 -10
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 {