* Add MSG_ZEROCOPY from Linux 4.14 to bits/socket.h
@ 2017-11-15 18:07 Joseph Myers
2017-11-15 18:39 ` Florian Weimer
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Myers @ 2017-11-15 18:07 UTC (permalink / raw)
To: libc-alpha
This patch adds the new MSG_ZEROCOPY constant from Linux 4.14 to the
Linux bits/socket.h.
Tested for x86_64.
2017-11-15 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
constant and macro.
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
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Add MSG_ZEROCOPY from Linux 4.14 to bits/socket.h
2017-11-15 18:07 Add MSG_ZEROCOPY from Linux 4.14 to bits/socket.h Joseph Myers
@ 2017-11-15 18:39 ` Florian Weimer
0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2017-11-15 18:39 UTC (permalink / raw)
To: Joseph Myers, libc-alpha
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-15 18:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-15 18:07 Add MSG_ZEROCOPY from Linux 4.14 to bits/socket.h Joseph Myers
2017-11-15 18:39 ` Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).