diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-11-15 18:41:32 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-11-15 18:41:32 +0000 |
commit | 78cde19f622cab74e3953c3d0139d51e1076108e (patch) | |
tree | 586d1dd536106fc4b7a5e700e716876cfe46e70e /sysdeps/unix | |
parent | fa680dc61455acdf8779d82c6f4bba5b48935c08 (diff) | |
download | glibc-78cde19f622cab74e3953c3d0139d51e1076108e.tar glibc-78cde19f622cab74e3953c3d0139d51e1076108e.tar.gz glibc-78cde19f622cab74e3953c3d0139d51e1076108e.tar.bz2 glibc-78cde19f622cab74e3953c3d0139d51e1076108e.zip |
Add MSG_ZEROCOPY from Linux 4.14 to bits/socket.h.
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.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index a9d16e2bc8..168a8e5ccb 100644 --- a/sysdeps/unix/sysv/linux/bits/socket.h +++ b/sysdeps/unix/sysv/linux/bits/socket.h @@ -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 |