4 ms·
For those of you playing along at home, Rust currently manually interoperates with C structures. This[1] is one of the struct stat structures:
by mcguire 13y ago
For those of you playing along at home, Rust currently manually interoperates with C structures. This[1] is one of the struct stat structures:
pub struct stat {
st_dev: dev_t,
__pad1: c_short,
st_ino: ino_t,
st_mode: mode_t,
st_nlink: nlink_t,
st_uid: uid_t,
st_gid: gid_t,
st_rdev: dev_t,
__pad2: c_short,
st_size: off_t,
Note the __pad elements.
[1] https://github.com/mozilla/rust/blob/master/src/libstd/libc.rs#L369-L390 https://github.com/mozilla/rust/blob/master/src/libstd/libc....