-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Access errno for system calls from Rust code #2269
Comments
It's important that we get functionality for this by either a keyword or a function in std or core. #553 cannot solve this because
Currently you can only use a getter-function defined in an external C library, but since most C-library wrapper crates will want to use this, it should be available in the default libraries. (I was told the cargo system doesn't handle additional C-library code, so providing such a wrapper with your crate is not a good solution. Even if cargo was to allow this, it's still an ugly one.) |
How about we add a |
This can be closed now. |
make a bunch of tests look more like how they did before rustfmt
There should be a way to get at errno from rust code.
The text was updated successfully, but these errors were encountered: