Switch to repr(C) for syscall structs

This commit is contained in:
Jeremy Soller 2017-06-02 20:30:20 -06:00
parent bb907adbbd
commit f3286fd439

View file

@ -12,7 +12,7 @@ use core::ops::{Deref, DerefMut};
use core::{mem, slice};
#[derive(Copy, Clone, Debug, Default)]
#[repr(packed)]
#[repr(C)]
pub struct Stat {
pub st_dev: u64,
pub st_ino: u64,
@ -51,7 +51,7 @@ impl DerefMut for Stat {
}
#[derive(Copy, Clone, Debug, Default)]
#[repr(packed)]
#[repr(C)]
pub struct StatVfs {
pub f_bsize: u32,
pub f_blocks: u64,
@ -79,7 +79,7 @@ impl DerefMut for StatVfs {
}
#[derive(Copy, Clone, Debug, Default)]
#[repr(packed)]
#[repr(C)]
pub struct TimeSpec {
pub tv_sec: i64,
pub tv_nsec: i32,