diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index bf6d90d20c967..ca6557eb51f6b 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -1181,6 +1181,7 @@ MSG_RST MSG_STAT MSG_SYN MSG_WAITFORONE +MSG_ZEROCOPY MS_ACTIVE MS_BIND MS_DIRSYNC diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index e74f1811cc2c2..946bf4a325264 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -775,6 +775,7 @@ pub const MSG_ERRQUEUE: ::c_int = 0x2000; pub const MSG_NOSIGNAL: ::c_int = 0x4000; pub const MSG_MORE: ::c_int = 0x8000; pub const MSG_WAITFORONE: ::c_int = 0x10000; +pub const MSG_ZEROCOPY: ::c_int = 0x4000000; pub const MSG_FASTOPEN: ::c_int = 0x20000000; pub const MSG_CMSG_CLOEXEC: ::c_int = 0x40000000; @@ -1178,6 +1179,17 @@ pub const PTRACE_EVENT_VFORK_DONE: ::c_int = 5; pub const PTRACE_EVENT_EXIT: ::c_int = 6; pub const PTRACE_EVENT_SECCOMP: ::c_int = 7; +// SO_MEMINFO offsets +pub const SK_MEMINFO_RMEM_ALLOC: ::c_int = 0; +pub const SK_MEMINFO_RCVBUF: ::c_int = 1; +pub const SK_MEMINFO_WMEM_ALLOC: ::c_int = 2; +pub const SK_MEMINFO_SNDBUF: ::c_int = 3; +pub const SK_MEMINFO_FWD_ALLOC: ::c_int = 4; +pub const SK_MEMINFO_WMEM_QUEUED: ::c_int = 5; +pub const SK_MEMINFO_OPTMEM: ::c_int = 6; +pub const SK_MEMINFO_BACKLOG: ::c_int = 7; +pub const SK_MEMINFO_DROPS: ::c_int = 8; + pub const __WNOTHREAD: ::c_int = 0x20000000; pub const __WALL: ::c_int = 0x40000000; pub const __WCLONE: ::c_int = 0x80000000;