Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some structs in core.sys.posix.sys.types should be union instead of struct #17215

Open
dlangBugzillaToGithub opened this issue Jun 9, 2024 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Tim reported this on 2024-06-09T14:23:18Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=24593

Description

The types pthread_rwlock_t, pthread_rwlockattr_t, pthread_barrier_t, pthread_barrierattr_t are unions in the glibc headers, but structs in druntime. As a result they are bigger in druntime.

Found by comparing type sizes in druntime with type sizes found with ImportC: https://github.com/dlang/dmd/pull/16571
@thewilsonator thewilsonator added Druntime Specific to druntime and removed Arch:x86_64 Issues specific to x86_64 labels Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants