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

Backport patches to 0.38 #1161

Merged
merged 3 commits into from
Sep 11, 2024
Merged

Backport patches to 0.38 #1161

merged 3 commits into from
Sep 11, 2024

Commits on Sep 11, 2024

  1. Configuration menu
    Copy the full SHA
    fc212b0 View commit details
    Browse the repository at this point in the history
  2. Fix recv_uninit to handle the TRUNC flag. (#1159)

    * Fix `recv_uninit` to handle the `TRUNC` flag.
    
    With the `TRUNC` flag, `recv` returns the untruncated length, which may
    be longer than the provided buffer. Fix `recv_uninit` and
    `recvfrom_uninit` to handle this case.
    
    This mean that `recv_uninit` and `recvfrom_uninit` are unable to return
    the full untruncated length returned by `recv` with the `TRUNC` flag,
    however it appears that fixing that may require API changes.
    
    Fixes #1153.
    
    * Add comments mentioning alternatives.
    sunfishcode committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    175935b View commit details
    Browse the repository at this point in the history
  3. Update POSIX reference URLs to 1003.1-2024. (#1160)

    * Update POSIX reference URLs to 1003.1-2024.
    
    Update POSIX reference URLs from pointing to Issue 7, 1003.1-2017, to
    now point to the new Issue 8, 1003.1-2024.
    
    * Move some unit tests into `mod tests`.
    
    This moves toward the popular idiom of putting tests in `mod tests`
    with `#[cfg(test)]`, and also works around Rust nightly warning about
    undocumented constants in the expansion of `#[test]`.
    sunfishcode committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    2f8338d View commit details
    Browse the repository at this point in the history