diff options
author | Dan Gohman <dev@sunfishcode.online> | 2021-09-05 16:00:49 -0700 |
---|---|---|
committer | Dan Gohman <dev@sunfishcode.online> | 2021-09-12 13:48:40 -0700 |
commit | 5fb0c2e4ec7a27f5c102fcb7df6ecc6089f79471 (patch) | |
tree | f5b65fd3e423a647db5aa4bc10727f4b74341e4f | |
parent | 5fefaf60adedda5eeb9e5896cc43fb02eb96a6c9 (diff) | |
download | rust-libc-5fb0c2e4ec7a27f5c102fcb7df6ecc6089f79471.tar.gz |
Deprecate Linux's `POLLRDHUP`.
`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.
-rw-r--r-- | src/unix/linux_like/linux/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index ab7d4b9a18..20cb9ae6e2 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -3037,8 +3037,16 @@ pub const SOL_CAN_BASE: ::c_int = 100; pub const CAN_INV_FILTER: canid_t = 0x20000000; pub const CAN_RAW_FILTER_MAX: ::c_int = 512; +#[deprecated( + since = "0.2.102", + note = "Errnoeously uses c_int; should use c_short." +)] #[cfg(not(any(target_arch = "sparc", target_arch = "sparc64")))] pub const POLLRDHUP: ::c_int = 0x2000; +#[deprecated( + since = "0.2.102", + note = "Errnoeously uses c_int; should use c_short." +)] #[cfg(any(target_arch = "sparc", target_arch = "sparc64"))] pub const POLLRDHUP: ::c_int = 0x800; |