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

Move Linux's POLLRDHUP into linux_like and fix its type. #2483

Merged
merged 1 commit into from Oct 30, 2021

Commits on Oct 27, 2021

  1. Move Linux's POLLRDHUP into linux_like and fix its type.

    This was originally posted as rust-lang#2390, but since it was a breaking change,
    that PR instead just added `deprecated` warnings. There haven't been any
    concerns for a while, so this is now a PR to do the change actually, per
    the [breaking-change-policy].
    
    This fixes two errors in rust-lang#2247.
    
     - It moves the definitions of `POLLRDHUP` out of `linux_like/linux`
       and into `linux_like`, so that they're available on Android as well.
    
     - It changes the type from `c_int` to `c_short` to match the other
       `POLL*` flags.
    
    [breaking-change-policy]: https://github.com/rust-lang/libc/blob/master/CONTRIBUTING.md#breaking-change-policy
    sunfishcode committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    1f657fc View commit details
    Browse the repository at this point in the history