Skip to content

Add a couple pthread function definitions, get_sched and backtrace for musl #860

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

Closed
wants to merge 1 commit into from

Conversation

mwanner
Copy link
Contributor

@mwanner mwanner commented Nov 28, 2017

trying to compile a binary statically using x86_64-unknown-linux-musl, I figured the pthread_{g,s}etaffinity functions were missing. I added these - and a couple others found in the vicinity - from linux/other/mod.rs.

I'm also wondering if that really is the right approach, since there seems to be quite a lot of duplication between all of the linux/*/mod.rs files...

@alexcrichton
Copy link
Member

Thanks! Looks like CI may be failing though?

@tamird
Copy link
Contributor

tamird commented Apr 9, 2018

@mwanner are you sure musl implements these functions? I can't find backtrace, pthread_attr_{get,set}affinity_np, or pthread_rwlockattr_{get,set}kind_np in the musl sources.

@bors
Copy link
Contributor

bors commented Jun 28, 2018

☔ The latest upstream changes (presumably #1023) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton
Copy link
Member

I'm gonna close this now due to inactivity, but it can of course be resubmitted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants