File tree Expand file tree Collapse file tree 4 files changed +24
-8
lines changed Expand file tree Collapse file tree 4 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -40,3 +40,11 @@ pub const POLLHUP: ::c_short = 0x10;
40
40
pub const POLLNVAL : :: c_short = 0x20 ;
41
41
42
42
pub const SOL_SOCKET : :: c_int = 65535 ;
43
+
44
+ pub const MSG_OOB : :: c_int = 1 ;
45
+ pub const MSG_PEEK : :: c_int = 2 ;
46
+ pub const MSG_DONTWAIT : :: c_int = 4 ;
47
+ pub const MSG_DONTROUTE : :: c_int = 0 ;
48
+ pub const MSG_WAITALL : :: c_int = 0 ;
49
+ pub const MSG_MORE : :: c_int = 0 ;
50
+ pub const MSG_NOSIGNAL : :: c_int = 0 ;
Original file line number Diff line number Diff line change @@ -42,3 +42,11 @@ pub const POLLOUT: ::c_short = 0x10;
42
42
pub const POLLNVAL : :: c_short = 0x20 ;
43
43
44
44
pub const SOL_SOCKET : :: c_int = 65535 ;
45
+
46
+ pub const MSG_OOB : :: c_int = 1 ;
47
+ pub const MSG_PEEK : :: c_int = 2 ;
48
+ pub const MSG_DONTWAIT : :: c_int = 4 ;
49
+ pub const MSG_DONTROUTE : :: c_int = 0 ;
50
+ pub const MSG_WAITALL : :: c_int = 0 ;
51
+ pub const MSG_MORE : :: c_int = 0 ;
52
+ pub const MSG_NOSIGNAL : :: c_int = 0 ;
Original file line number Diff line number Diff line change @@ -425,14 +425,6 @@ pub const CLOCK_BOOTTIME: ::clockid_t = 4;
425
425
pub const SOCK_STREAM : :: c_int = 1 ;
426
426
pub const SOCK_DGRAM : :: c_int = 2 ;
427
427
428
- pub const MSG_OOB : :: c_int = 1 ;
429
- pub const MSG_PEEK : :: c_int = 2 ;
430
- pub const MSG_DONTWAIT : :: c_int = 4 ;
431
- pub const MSG_DONTROUTE : :: c_int = 0 ;
432
- pub const MSG_WAITALL : :: c_int = 0 ;
433
- pub const MSG_MORE : :: c_int = 0 ;
434
- pub const MSG_NOSIGNAL : :: c_int = 0 ;
435
-
436
428
pub const SHUT_RD : :: c_int = 0 ;
437
429
pub const SHUT_WR : :: c_int = 1 ;
438
430
pub const SHUT_RDWR : :: c_int = 2 ;
Original file line number Diff line number Diff line change @@ -75,6 +75,14 @@ pub const POLLHUP: ::c_short = 1 << 6;
75
75
76
76
pub const SOL_SOCKET : :: c_int = 0xfff ;
77
77
78
+ pub const MSG_OOB : :: c_int = 0x04 ;
79
+ pub const MSG_PEEK : :: c_int = 0x01 ;
80
+ pub const MSG_DONTWAIT : :: c_int = 0x08 ;
81
+ pub const MSG_DONTROUTE : :: c_int = 0x4 ;
82
+ pub const MSG_WAITALL : :: c_int = 0x02 ;
83
+ pub const MSG_MORE : :: c_int = 0x10 ;
84
+ pub const MSG_NOSIGNAL : :: c_int = 0x20 ;
85
+
78
86
extern "C" {
79
87
pub fn sendmsg (
80
88
s : :: c_int ,
You can’t perform that action at this time.
0 commit comments