Skip to content

Commit a59c842

Browse files
committed
Auto merge of #2963 - devnexen:recvmsg_linux_fix, r=JohnTitor
linux fixes recvmmsg flags type for musl/emscripten. closes #2945
2 parents 0488a83 + 00204b0 commit a59c842

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

src/unix/linux_like/mod.rs

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,23 +759,95 @@ pub const PF_IEEE802154: ::c_int = AF_IEEE802154;
759759
pub const PF_CAIF: ::c_int = AF_CAIF;
760760
pub const PF_ALG: ::c_int = AF_ALG;
761761

762+
#[deprecated(
763+
since = "0.2.136",
764+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
765+
)]
762766
pub const MSG_OOB: ::c_int = 1;
767+
#[deprecated(
768+
since = "0.2.136",
769+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
770+
)]
763771
pub const MSG_PEEK: ::c_int = 2;
772+
#[deprecated(
773+
since = "0.2.136",
774+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
775+
)]
764776
pub const MSG_DONTROUTE: ::c_int = 4;
777+
#[deprecated(
778+
since = "0.2.136",
779+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
780+
)]
765781
pub const MSG_CTRUNC: ::c_int = 8;
782+
#[deprecated(
783+
since = "0.2.136",
784+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
785+
)]
766786
pub const MSG_TRUNC: ::c_int = 0x20;
787+
#[deprecated(
788+
since = "0.2.136",
789+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
790+
)]
767791
pub const MSG_DONTWAIT: ::c_int = 0x40;
792+
#[deprecated(
793+
since = "0.2.136",
794+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
795+
)]
768796
pub const MSG_EOR: ::c_int = 0x80;
797+
#[deprecated(
798+
since = "0.2.136",
799+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
800+
)]
769801
pub const MSG_WAITALL: ::c_int = 0x100;
802+
#[deprecated(
803+
since = "0.2.136",
804+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
805+
)]
770806
pub const MSG_FIN: ::c_int = 0x200;
807+
#[deprecated(
808+
since = "0.2.136",
809+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
810+
)]
771811
pub const MSG_SYN: ::c_int = 0x400;
812+
#[deprecated(
813+
since = "0.2.136",
814+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
815+
)]
772816
pub const MSG_CONFIRM: ::c_int = 0x800;
817+
#[deprecated(
818+
since = "0.2.136",
819+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
820+
)]
773821
pub const MSG_RST: ::c_int = 0x1000;
822+
#[deprecated(
823+
since = "0.2.136",
824+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
825+
)]
774826
pub const MSG_ERRQUEUE: ::c_int = 0x2000;
827+
#[deprecated(
828+
since = "0.2.136",
829+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
830+
)]
775831
pub const MSG_NOSIGNAL: ::c_int = 0x4000;
832+
#[deprecated(
833+
since = "0.2.136",
834+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
835+
)]
776836
pub const MSG_MORE: ::c_int = 0x8000;
837+
#[deprecated(
838+
since = "0.2.136",
839+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
840+
)]
777841
pub const MSG_WAITFORONE: ::c_int = 0x10000;
842+
#[deprecated(
843+
since = "0.2.136",
844+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
845+
)]
778846
pub const MSG_FASTOPEN: ::c_int = 0x20000000;
847+
#[deprecated(
848+
since = "0.2.136",
849+
note = "recvmmsg call expects an unsigned type on musl/emscripten"
850+
)]
779851
pub const MSG_CMSG_CLOEXEC: ::c_int = 0x40000000;
780852

781853
pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;

0 commit comments

Comments
 (0)