-
Notifications
You must be signed in to change notification settings - Fork 1k
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.
#2390
Move Linux's POLLRDHUP
into linux_like
and fix its type.
#2390
Conversation
r? @JohnTitor (rust-highfive has picked a reviewer for you, use r? to override) |
I'm not sure how many users are affected by this change but I'd like to follow our breaking change policy, just in case: https://github.com/rust-lang/libc/blob/master/CONTRIBUTING.md#breaking-change-policy |
84aae8c
to
3b9a06a
Compare
Sounds good. I've now changed the PR to just introduce |
`POLLRDHUP` erroneously has type `c_int`. To prepare for changing it to `c_short` (and also moving it to `src/unix/linux_like` so that it's available on Android as well), mark it as deprecated.
3b9a06a
to
5fb0c2e
Compare
Thanks! |
📌 Commit 5fb0c2e has been approved by |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13 |
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
…Titor Move Linux's `POLLRDHUP` into `linux_like` and fix its type. This was originally posted as #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 #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
This fixes two errors in #2247.
It moves the definitions of
POLLRDHUP
out oflinux_like/linux
and into
linux_like
, so that they're available on Android as well.It changes the type from
c_int
toc_short
to match the otherPOLL*
flags.This second change is a breaking change, and I'm fine reverting it and
leaving it as the old type if that's the right thing to do.