-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fill in signatures for pthread_cond* #43
Conversation
Very cool!
The libc crate has libc-compatible declarations of all the types, including the pthread_* types. Currently mustang is emulating a --linux-gnu target. I think that means |
Is there a particular reason the padding in c-scape uses usize's rather than an array of u8? |
No particular reason; it could use either. |
69cb59d
to
1f7177f
Compare
I now copied sizes & alignment over from libc, adapted a bit based on the assumption that For |
Ah, missed riscv64 in the condattr_t cfg list. Fixed now. |
Fixed libc-specific error. I thought I tested with that before, but maybe sth. changed when rebasing. |
Looks good! For assumptions about |
This wasn't easy to figure out, but I think now I'm at a point where it wouldn't take me that long to fill in most of the remaining signatures of functions with a commented-out
libc!
.The padding bytes are most likely only correct for x86_64. What would I have to do to figure out the right padding for x86?