]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add MSG_ZEROCOPY from Linux 4.14 to bits/socket.h.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 15 Nov 2017 18:41:32 +0000 (18:41 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 15 Nov 2017 18:41:32 +0000 (18:41 +0000)
This patch adds the new MSG_ZEROCOPY constant from Linux 4.14 to the
Linux bits/socket.h.

Tested for x86_64.

* sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
constant and macro.

ChangeLog
sysdeps/unix/sysv/linux/bits/socket.h

index 6ebdeedc246c07cad9ffd2d39cbe985c24d361ae..f8f46ae45dec686c32b562f969cabf3202dc2242 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
+       constant and macro.
+
        * sysdeps/unix/sysv/linux/bits/mman-linux.h
        [__USE_MISC] (MADV_WIPEONFORK): New macro.
        [__USE_MISC] (MADV_KEEPONFORK): Likewise.
index a9d16e2bc8ff9e526b0f19404b3addea3a677bdc..168a8e5ccbab11d69f2a01b1729072bb892c505c 100644 (file)
@@ -237,6 +237,8 @@ enum
 #define MSG_WAITFORONE MSG_WAITFORONE
     MSG_BATCH          = 0x40000, /* sendmmsg: more messages coming.  */
 #define MSG_BATCH      MSG_BATCH
+    MSG_ZEROCOPY       = 0x4000000, /* Use user data in kernel path.  */
+#define MSG_ZEROCOPY   MSG_ZEROCOPY
     MSG_FASTOPEN       = 0x20000000, /* Send data in TCP SYN.  */
 #define MSG_FASTOPEN   MSG_FASTOPEN