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`.
Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tgross35 tgross35 added this pull request to the merge queue Jan 3, 2026
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Jan 3, 2026
Merged via the queue into rust-lang:main with commit 86dbfd4 Jan 3, 2026
51 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jan 3, 2026
… 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`.

(backport <rust-lang#4902>)
(cherry picked from commit 86dbfd4)
@tgross35 tgross35 mentioned this pull request Jan 3, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jan 3, 2026
… 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`.

(backport <rust-lang#4902>)
(cherry picked from commit 86dbfd4)
github-merge-queue bot pushed a commit that referenced this pull request Jan 3, 2026
… 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`.

(backport <#4902>)
(cherry picked from commit 86dbfd4)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants