Skip to content
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

fcntl: change (vm)splice, tee using AsFd instead. #2387

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

devnexen
Copy link
Contributor

No description provided.

src/fcntl.rs Outdated
pub fn tee(
fd_in: RawFd,
fd_out: RawFd,
pub fn tee<F: AsFd>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this syscall, even though it requests the 2 fd arguments are all pipes, but technically they still can be different Rust types, so maybe we should use 2 generic types here? Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense yes.

@devnexen devnexen marked this pull request as ready for review April 27, 2024 11:10
Copy link
Member

@SteveLauC SteveLauC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SteveLauC SteveLauC added this pull request to the merge queue Apr 27, 2024
Merged via the queue into nix-rust:master with commit e99e74c Apr 27, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants