File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2820,6 +2820,7 @@ fn test_linux(target: &str) {
2820
2820
"linux/sched.h" ,
2821
2821
"linux/seccomp.h" ,
2822
2822
"linux/sched.h" ,
2823
+ "linux/sock_diag.h" ,
2823
2824
"linux/sockios.h" ,
2824
2825
"linux/uinput.h" ,
2825
2826
"linux/vm_sockets.h" ,
Original file line number Diff line number Diff line change @@ -1181,6 +1181,7 @@ MSG_RST
1181
1181
MSG_STAT
1182
1182
MSG_SYN
1183
1183
MSG_WAITFORONE
1184
+ MSG_ZEROCOPY
1184
1185
MS_ACTIVE
1185
1186
MS_BIND
1186
1187
MS_DIRSYNC
Original file line number Diff line number Diff line change @@ -1565,6 +1565,7 @@ pub const MSG_INFO: ::c_int = 12;
1565
1565
1566
1566
pub const MSG_NOERROR : :: c_int = 0o10000 ;
1567
1567
pub const MSG_EXCEPT : :: c_int = 0o20000 ;
1568
+ pub const MSG_ZEROCOPY : :: c_int = 0x4000000 ;
1568
1569
1569
1570
pub const SHM_R : :: c_int = 0o400 ;
1570
1571
pub const SHM_W : :: c_int = 0o200 ;
@@ -1841,6 +1842,17 @@ pub const IPV6_FLOWINFO_PRIORITY: ::c_int = 0x0ff00000;
1841
1842
pub const IPV6_RTHDR_LOOSE : :: c_int = 0 ;
1842
1843
pub const IPV6_RTHDR_STRICT : :: c_int = 1 ;
1843
1844
1845
+ // SO_MEMINFO offsets
1846
+ pub const SK_MEMINFO_RMEM_ALLOC : :: c_int = 0 ;
1847
+ pub const SK_MEMINFO_RCVBUF : :: c_int = 1 ;
1848
+ pub const SK_MEMINFO_WMEM_ALLOC : :: c_int = 2 ;
1849
+ pub const SK_MEMINFO_SNDBUF : :: c_int = 3 ;
1850
+ pub const SK_MEMINFO_FWD_ALLOC : :: c_int = 4 ;
1851
+ pub const SK_MEMINFO_WMEM_QUEUED : :: c_int = 5 ;
1852
+ pub const SK_MEMINFO_OPTMEM : :: c_int = 6 ;
1853
+ pub const SK_MEMINFO_BACKLOG : :: c_int = 7 ;
1854
+ pub const SK_MEMINFO_DROPS : :: c_int = 8 ;
1855
+
1844
1856
pub const IUTF8 : :: tcflag_t = 0x00004000 ;
1845
1857
#[ cfg( not( all( target_env = "uclibc" , target_arch = "mips" ) ) ) ]
1846
1858
pub const CMSPAR : :: tcflag_t = 0o10000000000 ;
You can’t perform that action at this time.
0 commit comments