Message ID | alpine.DEB.2.20.1711151807210.15924@digraph.polyomino.org.uk |
---|---|
State | New |
Headers | show |
Series | Add MSG_ZEROCOPY from Linux 4.14 to bits/socket.h | expand |
On 11/15/2017 07:07 PM, Joseph Myers wrote: > + MSG_ZEROCOPY = 0x4000000, /* Use user data in kernel path. */ > +#define MSG_ZEROCOPY MSG_ZEROCOPY The constant value is the same as in the kernel header, so this loks okay. Thanks, Florian
diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index a9d16e2..168a8e5 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