-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add stdin, stdout, stderr globals #1073
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
How do I test this? |
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
(On Linux with glibc, it seems to work.) |
Hm unfortunately I don't think |
Done: https://github.com/alexcrichton/ctest/issues/36. The new tests pass on Linux with glibc. |
Want to update the dependency here and see if it passes CI? |
Summarizing the failures: |
Since it's only required to be a value by the C standard, maybe declaring it as a static is not the right way. Would you consider adding it as functions It seems we don't have bindings for |
The |
Maybe this could be part of a module, (It would be a function like
or on NetBSD
doing the same as the macro.) |
I don't really have a preference on how this is bound, but it cannot be done through in-crate shims |
So, if there were any change to this policy of not including macros like |
Yes I believe we'd need an RFC to change the policy of this crate |
It seems like NetBSD is the only place where this needs a shim. The other places where macros are used (freebsd/darwin), it can be done with Given that the libc crate already doesn't expose everything availiable on every OS, it seems plausibly okay to leave that out for NetBSD (and I guess any other OS like this). Would a patch that did that have a shot of being accepted? |
CC #7.