-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
add missing error numbers for HermitOS #3858
Conversation
r? @JohnTitor rustbot has assigned @JohnTitor. Use |
@rustbot label +stable-nominated |
See also #3766 |
The numbers all looks correct to me. However, the linked source at https://github.com/hermit-os/hermit-rs/blob/5a4d7efe1ab5727cf4d5299943aa8deaa098a603/hermit-abi/src/errno.rs looks like it always uses Also, could you start a file @rustbot author |
I will do it |
Regardless of how the type aliases are defined, prefer being consistent with the relevant headers / source files over being consistent with other platforms. Doesn't really matter here since Looks like this is already done elsewhere, e.g. |
Ok, I thought about it. I will change it to i32. |
Thanks! Can you add |
I just added |
I only meant to include the API added here, the rest could come later. But even better that you did it all now I suppose :) Thanks! |
(backport <rust-lang#3858>) (cherry picked from commit d448050)
(backport <rust-lang#3858>) (cherry picked from commit 982e041)
(backport <rust-lang#3858>) (cherry picked from commit d448050)
(backport <rust-lang#3858>) (cherry picked from commit 982e041)
(backport <rust-lang#3858>) (cherry picked from commit d448050)
(backport <rust-lang#3858>) (cherry picked from commit 982e041)
HermitOS is a unikernel and its interface to the kernel is provided by https://crates.io/crates/hermit-abi. In the meantime parts of the interface is stabilized and we want to integrated it into libc. Unstable version will be still provided by hermit-abi.
Error numbers are missing in the
main
branch.