Skip to content

Conversation

@he32
Copy link
Contributor

@he32 he32 commented Dec 29, 2025

Description

This fixes the following errors from cd libc-test; cargo test:

    bad `if_msghdr` size: rust: 148 != c 152
    bad `if_msghdr` align: rust: 4 != c 8
and
    size of `struct if_msghdr` is 152 in C and 148 in Rust

as verified natively on NetBSD/i386 10.0 with rust 1.92.0.

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

… hosts:

This fixes the following errors from `cd libc-test; cargo test`:

    bad `if_msghdr` size: rust: 148 != c 152
    bad `if_msghdr` align: rust: 4 != c 8
and
    size of `struct if_msghdr` is 152 in C and 148 in Rust

as verified natively on NetBSD/i386 10.0 with rust 1.92.0.

Ref. https://nxr.netbsd.org/xref/src/sys/net/if.h#790 for the
original C definition of `struct if_msghdr`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants