Rust libc use repr(packed) as shown here for struct which will be then passed to system libc. For example, utsname is repr(packed) and then used in fn
repr(packed)