-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement AsRawFd for Stdin, Stdout, Stderr, and RawFd #2074
Comments
This seems fine for Stdin/Stdout/Stderr, but RawFd is just a typedef for c_int, and it seems a bit weird to implement that trait for a number. |
Yeah, I'd also like this for Stdin/Stdout/Stderr. I don't think you'd need an RFC for it. |
My use case is for a function with the signature |
On |
Implement AsRawFd for Stdin, Stdout, and Stderr rust-lang/rfcs#2074
The implementation for |
implement `AsRawFd` for stdio locks cc rust-lang/rfcs#2074.
implement `AsRawFd` for stdio locks cc rust-lang/rfcs#2074.
Is there a reason this is not the case already, or is it just that it is unnecessary for the typical use case and hasn't been added? Would something like this require an RFC, or would a PR suffice?
The text was updated successfully, but these errors were encountered: