Skip to content

Commit

Permalink
follow-up on rust-lang#2963, changing MSG* constant types for musl/em…
Browse files Browse the repository at this point in the history
…scripten.
  • Loading branch information
devnexen committed Oct 25, 2022
1 parent 09ad0b3 commit 1a5f49f
Showing 1 changed file with 1 addition and 91 deletions.
92 changes: 1 addition & 91 deletions src/unix/linux_like/mod.rs
Expand Up @@ -759,97 +759,6 @@ pub const PF_IEEE802154: ::c_int = AF_IEEE802154;
pub const PF_CAIF: ::c_int = AF_CAIF;
pub const PF_ALG: ::c_int = AF_ALG;

#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_OOB: ::c_int = 1;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_PEEK: ::c_int = 2;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_DONTROUTE: ::c_int = 4;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_CTRUNC: ::c_int = 8;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_TRUNC: ::c_int = 0x20;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_DONTWAIT: ::c_int = 0x40;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_EOR: ::c_int = 0x80;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_WAITALL: ::c_int = 0x100;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_FIN: ::c_int = 0x200;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_SYN: ::c_int = 0x400;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_CONFIRM: ::c_int = 0x800;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_RST: ::c_int = 0x1000;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_ERRQUEUE: ::c_int = 0x2000;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_NOSIGNAL: ::c_int = 0x4000;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_MORE: ::c_int = 0x8000;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_WAITFORONE: ::c_int = 0x10000;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_FASTOPEN: ::c_int = 0x20000000;
#[deprecated(
since = "0.2.136",
note = "recvmmsg call expects an unsigned type on musl/emscripten"
)]
pub const MSG_CMSG_CLOEXEC: ::c_int = 0x40000000;

pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;

pub const SOCK_RAW: ::c_int = 3;
Expand All @@ -859,6 +768,7 @@ pub const IP_TTL: ::c_int = 2;
pub const IP_HDRINCL: ::c_int = 3;
pub const IP_OPTIONS: ::c_int = 4;
pub const IP_ROUTER_ALERT: ::c_int = 5;

pub const IP_RECVOPTS: ::c_int = 6;
pub const IP_RETOPTS: ::c_int = 7;
pub const IP_PKTINFO: ::c_int = 8;
Expand Down

0 comments on commit 1a5f49f

Please sign in to comment.