-
Notifications
You must be signed in to change notification settings - Fork 68
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 support for HermitOS #194
Conversation
Looks good from my side! However, we have an issue |
Could you elaborate? What error is being returned? |
In |
@stlankes I've fixed it to use |
HermitOS is a microkernel target aiming to provide a simple OS for virtualized applications. It recently added support for the poll() and eventfd() system calls, which means we can target it with our poll() based backend. Hermit does not have a traditional libc; instead it uses hermit-abi. However rustix does not support using hermit-abi as its underlying layer yet. So we have to build a shim layer until it does. Closes #177 cc bytecodealliance/rustix#1012 Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
According to @stlankes this causes strange errors in Hermit proper. Signed-off-by: John Nunley <[email protected]>
Check 'x < 0' instead of 'x == -1' Signed-off-by: John Nunley <[email protected]>
HermitOS is a microkernel target aiming to provide a simple OS for
virtualized applications. It recently added support for the poll() and
eventfd() system calls, which means we can target it with our poll()
based backend.
Hermit does not have a traditional libc; instead it uses hermit-abi.
However rustix does not support using hermit-abi as its underlying
layer yet. So we have to build a shim layer until it does.
Closes #177
cc bytecodealliance/rustix#1012
cc @stlankes