Skip to content

msghdr.msg_iovlen is inconsistently declared in gnu and musl #2971

Open
@praveen-pk

Description

@praveen-pk

While using socket API in cloud-hypervisor project, I noticed an inconsistency with msghdr struct between gnu and musl targets.

In gnu
msghdr.msg_iovlen is declared as size_t

pub msg_iovlen: ::size_t,

In musl
msghdr.msg_iovlen is declared as c_int

pub msg_iovlen: ::c_int,

cloud-hypervisor/cloud-hypervisor#4642 (comment) describes the error I encountered due to this inconsistency.

Is this expected? If not, could you please fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugE-mediumE-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate.O-gnubreakage-candidate

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions