-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add ucontext for linux-musl. #255
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Given that musl certainly exports these methods
and |
I believe that while declared in MUSL the functions aren't actually defined. |
You are right: http://wiki.musl-libc.org/wiki/Open_Issues#ucontext.h . But It does provide the struct, so I removed just the functions declarations. |
@@ -1,3 +1,18 @@ | |||
pub const SYS_gettid: ::c_long = 186; | |||
|
|||
pub const SYS_perf_event_open: ::c_long = 298; | |||
|
|||
s! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently structs come before constants, but otherwise this looks good to me!
done |
Add ucontext for linux-musl. It just copy pasted from the linux-other version.
☀️ Test successful - status-appveyor, travis |
…st-lang#255) * sse: _mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps And mmx: _mm_cmpgt_pi8 _mm_cmpgt_pi16 _mm_unpackhi_pi16 _mm_unpacklo_pi8 _mm_unpacklo_pi16 * Fix: literal out of range
It just copy pasted from the linux-other version.