Skip to content

Incorrect alignment of types on x86_64-apple-darwin #914

Closed
@gnzlbg

Description

@gnzlbg

The types:

  • kevent
  • shmid_ds

should have 4-byte alignment, but on 64-bit macosx they have 8-byte alignment.

This means that:

  • the size of these structs is wrong
  • the offset of some fields within the struct is wrong

I tried to use #[repr(align(4))] on these to enforce the alignment, but this did not change anything.

See https://github.com/rust-lang/libc/pull/912/files#diff-747c41e91bd79d9208c2953b72047176R418

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions