correct siginfo_t and add other signal related items for redox - #5436
correct siginfo_t and add other signal related items for redox#5436auronandace wants to merge 2 commits into
Conversation
|
Let me try if bors could squash here, |
|
Seems not, @auronandace could you squash commits into one? |
|
I don't understand how to squash. I tried following this: https://www.geeksforgeeks.org/git/git-squash/ I can tell you my main branch of my libc now has just the one commit which seems to have this redox-signal branch commit squashed into one. |
|
The usual sequence would be:
You could have the first two steps completed already but might just need to do the third. If you get stuck, we can also do it for you. |
8191c4a to
457e93b
Compare
|
CI seems to be saying |
|
Try the same thing without |
457e93b to
bf1026c
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
4bfd31b to
980ea12
Compare
|
CI seems to be showing the same error. |
980ea12 to
2754988
Compare
|
I'm not sure what the protocol is regarding marking conversations as resolved. Is that something I should do or the reviewer? |
Corrected `siginfo_t` to match relibc: - [siginfo struct](https://gitlab.redox-os.org/redox-os/relibc/-/blob/f1772c4bb829e02742275e655d349dda02b27cec/src/header/signal/mod.rs#L152) (siginfo_t struct in libc) - [siginfo_t pub type pointing to siginfo](https://gitlab.redox-os.org/redox-os/relibc/-/blob/f1772c4bb829e02742275e655d349dda02b27cec/src/header/signal/mod.rs#L185) Added the following items: - [sigaltstack struct](https://gitlab.redox-os.org/redox-os/relibc/-/blob/f1772c4bb829e02742275e655d349dda02b27cec/src/header/signal/mod.rs#L99) (stack_t struct in libc) - [stack_t pub type pointing to sigaltstack struct](https://gitlab.redox-os.org/redox-os/relibc/-/blob/f1772c4bb829e02742275e655d349dda02b27cec/src/header/signal/mod.rs#L188) - [sigaltstack function](https://gitlab.redox-os.org/redox-os/relibc/-/blob/f1772c4bb829e02742275e655d349dda02b27cec/src/header/signal/mod.rs#L346) - [SS_ONSTACK constant](https://gitlab.redox-os.org/redox-os/relibc/-/blob/f1772c4bb829e02742275e655d349dda02b27cec/src/header/signal/constants.rs#L131) - [SS_DISABLE constant](https://gitlab.redox-os.org/redox-os/relibc/-/blob/f1772c4bb829e02742275e655d349dda02b27cec/src/header/signal/constants.rs#L133) - [pid_t type](https://gitlab.redox-os.org/redox-os/relibc/-/blob/f1772c4bb829e02742275e655d349dda02b27cec/src/header/bits_pid-t/mod.rs#L5) These changes, when released in a stable 0.2.x release, will allow us to use upstream libc for compiling wasmtime natively on Redox. Edited to add the following: - [ucontext struct](https://gitlab.redox-os.org/redox-os/relibc/-/blob/e596d08aeaf43f90b18b961c1155d1c1e3eea416/src/header/signal/redox.rs#L48) - [ucontext_t pub type pointing to ucontext](https://gitlab.redox-os.org/redox-os/relibc/-/blob/e596d08aeaf43f90b18b961c1155d1c1e3eea416/src/header/signal/redox.rs#L42) - [mcontext struct x86_64](https://gitlab.redox-os.org/redox-os/relibc/-/blob/e596d08aeaf43f90b18b961c1155d1c1e3eea416/src/header/signal/redox.rs#L82) - [mcontext struct x86](https://gitlab.redox-os.org/redox-os/relibc/-/blob/e596d08aeaf43f90b18b961c1155d1c1e3eea416/src/header/signal/redox.rs#L74) - [mcontext struct aarch64](https://gitlab.redox-os.org/redox-os/relibc/-/blob/e596d08aeaf43f90b18b961c1155d1c1e3eea416/src/header/signal/redox.rs#L107) - [mcontext struct riscv64](https://gitlab.redox-os.org/redox-os/relibc/-/blob/e596d08aeaf43f90b18b961c1155d1c1e3eea416/src/header/signal/redox.rs#L113) - [mcontext_t pub type pointing to mcontext struct](https://gitlab.redox-os.org/redox-os/relibc/-/blob/e596d08aeaf43f90b18b961c1155d1c1e3eea416/src/header/signal/redox.rs#L44)
There was a problem hiding this comment.
Thanks! I added a commit fixing the spacing for this and a few existing structs.
I'm not sure what the protocol is regarding marking conversations as resolved. Is that something I should do or the reviewer?
Different reviewers have different preferences but I prefer to resolve them myself, so I have a list of what I need to look at.
Corrected
siginfo_tto match relibc:Added the following items:
These changes, when released in a stable 0.2.x release, will allow us to use upstream libc for compiling wasmtime natively on Redox.
Edited to add the following: