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

Add a try_clone() function to OwnedFd. #88794

Merged
merged 6 commits into from
Jan 25, 2022

Commits on Sep 9, 2021

  1. Add a try_clone() function to OwnedFd.

    As suggested in rust-lang#88564. This adds a `try_clone()` to `OwnedFd` by
    refactoring the code out of the existing `File`/`Socket` code.
    sunfishcode committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    18c14ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    622dfcc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c986c6b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2d6a4c8 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2021

  1. Configuration menu
    Copy the full SHA
    53e072f View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. Use the correct cvt for converting socket errors on Windows.

    `WSADuplicateSocketW` returns 0 on success, which differs from
    handle-oriented functions which return 0 on error. Use `sys::net::cvt`
    to handle its return value, which handles the socket convention of
    returning 0 on success, rather than `sys::cvt`, which handles the
    handle-oriented convention of returning 0 on failure.
    sunfishcode committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    83aebf8 View commit details
    Browse the repository at this point in the history