Skip to content

Incorrect type of stable std::os::raw pthread_t type on musl targets #61425

@gnzlbg

Description

@gnzlbg

POSIX's pthread_t is defined in sys/types.h and is an opaque type that identifies a thread.

On glibc it is a c_ulong, on musl it is a *mut __thread_handle, etc.

However, libstd's pthread_t is a type alias to libc::c_ulong, which is incorrect on musl. AFAICT, fixing this would be a backwards incompatible change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-muslTarget: The musl libcT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions