]>
git.proxmox.com Git - rustc.git/blob - vendor/rustix/src/imp/libc/net/send_recv.rs
2 use bitflags
::bitflags
;
6 pub struct SendFlags
: i32 {
10 target_os
= "dragonfly",
11 target_os
= "freebsd",
12 target_os
= "illumos",
16 target_os
= "openbsd",
18 const CONFIRM
= c
::MSG_CONFIRM
;
20 const DONTROUTE
= c
::MSG_DONTROUTE
;
23 const DONTWAIT
= c
::MSG_DONTWAIT
;
26 const EOT
= c
::MSG_EOR
;
30 target_os
= "dragonfly",
31 target_os
= "freebsd",
32 target_os
= "illumos",
36 target_os
= "openbsd",
38 const MORE
= c
::MSG_MORE
;
39 #[cfg(not(any(windows, target_os = "ios", target_os = "macos")))]
41 const NOSIGNAL
= c
::MSG_NOSIGNAL
;
43 const OOB
= c
::MSG_OOB
;
49 pub struct RecvFlags
: i32 {
50 #[cfg(not(any(windows, target_os = "illumos", target_os = "ios", target_os = "macos")))]
51 /// `MSG_CMSG_CLOEXEC`
52 const CMSG_CLOEXEC
= c
::MSG_CMSG_CLOEXEC
;
55 const DONTWAIT
= c
::MSG_DONTWAIT
;
59 target_os
= "dragonfly",
60 target_os
= "freebsd",
61 target_os
= "illumos",
65 target_os
= "openbsd",
67 const ERRQUEUE
= c
::MSG_ERRQUEUE
;
69 const OOB
= c
::MSG_OOB
;
71 const PEEK
= c
::MSG_PEEK
;
73 const TRUNC
= c
::MSG_TRUNC
as c
::c_int
;
75 const WAITALL
= c
::MSG_WAITALL
;