-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add signalfd and related to android #671
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
3ddf00d
to
ce09fc8
Compare
Note that this is now only available for Linux as support is missing in libc for Android (see rust-lang/libc#671).
Looks like CI is failing? |
@alexcrichton Yes, 64-bit android builds are failing because the 64-bit fields within |
Note that this is now only available for Linux as support is missing in libc for Android (see rust-lang/libc#671).
Note that this is now only available for Linux as support is missing in libc for Android (see rust-lang/libc#671). As part of this work the SIGUSR2 signal mutex was altered to be a general signal mutex. This is because all signal handling is shared across all threads in the Rust test harness, so if you alter one signal, depending on whether it's additive or may overwrite the mask for other signals, it could break the other ones. Instead of putting this on the user, just broaden the scope of the mutex so that any altering of signal handling needs to use it.
Note that this is now only available for Linux as support is missing in libc for Android (see rust-lang/libc#671). As part of this work the SIGUSR2 signal mutex was altered to be a general signal mutex. This is because all signal handling is shared across all threads in the Rust test harness, so if you alter one signal, depending on whether it's additive or may overwrite the mask for other signals, it could break the other ones. Instead of putting this on the user, just broaden the scope of the mutex so that any altering of signal handling needs to use it.
@ndusart You updated the Android NDK version recently, so I'm wondering if you have any familiarity with Android APIs here. As far as I can see when searching the same headers I find that |
The problem here is that
and you should use |
So @alexcrichton This brings up a good point though with typedefs, what should I be using for datatypes here? |
BTW @ndusart Thanks for looking at this! |
Explicit types will not work either as I didn't look if
No, |
@Susurrus I'd only require a type with the same size/align/sign, other than that I don't think it's necessary to strive to have the same exact type as C, there's no way that we're "correct" in all other structs. |
ce09fc8
to
ba5a2dd
Compare
Ahh, I think I got it! While the bit-width is the same the types are different and the compiler complains. Makes sense.
Alright, I did it the minimally-invasive way, using |
ba5a2dd
to
5c0e865
Compare
Looks like CI is still red? |
5c0e865
to
83ab9a3
Compare
@alexcrichton Fixed. |
@bors: r+ |
📌 Commit 83ab9a3 has been approved by |
Add signalfd and related to android
☀️ Test successful - status-appveyor, status-travis |
No description provided.