-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add pthread_sigqueue
to linux/other
#991
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Thanks! Looks like there's some style errors on CI though? |
Yeah, there's something off here.
It looks like it complaints about the pub struct sigval {
// Actually a union of an int and a void*
pub sival_ptr: *mut ::c_void
} although its use seems fine in other contexts, like pub struct sigevent {
pub sigev_value: ::sigval,
pub sigev_signo: ::c_int, According to the man pages I found online (and for sigevent), the types should be the same: |
I think that error is because in C the signature is different, maybe sigval is taken by a pointer? |
Both are supposed to be union sigval {
int sival_int;
void *sival_ptr;
}; The current |
Looks like on CI the signature may still not match? Especially with signals I've found that the documented standard and the actual headers tend to differ a bit... |
I'm gonna close this now due to inactivity, but it can of course be resubmitted! |
Add pthread_sigqueue. This resurrects #991. Should be a pretty straightforward addition of pthread_sigqueue.
I'm not too sure about where to put this, as it seems to be a GNU extension, but other pthread functions that were also GNU extensions, like
pthread_rwlockattr_setkind_np
was in the same file, so I just put it directly above.