mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08:00
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.
This commit is contained in:
parent
fa680dc614
commit
78cde19f62
@ -1,5 +1,8 @@
|
|||||||
2017-11-15 Joseph Myers <joseph@codesourcery.com>
|
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
|
* sysdeps/unix/sysv/linux/bits/mman-linux.h
|
||||||
[__USE_MISC] (MADV_WIPEONFORK): New macro.
|
[__USE_MISC] (MADV_WIPEONFORK): New macro.
|
||||||
[__USE_MISC] (MADV_KEEPONFORK): Likewise.
|
[__USE_MISC] (MADV_KEEPONFORK): Likewise.
|
||||||
|
@ -237,6 +237,8 @@ enum
|
|||||||
#define MSG_WAITFORONE MSG_WAITFORONE
|
#define MSG_WAITFORONE MSG_WAITFORONE
|
||||||
MSG_BATCH = 0x40000, /* sendmmsg: more messages coming. */
|
MSG_BATCH = 0x40000, /* sendmmsg: more messages coming. */
|
||||||
#define MSG_BATCH MSG_BATCH
|
#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. */
|
MSG_FASTOPEN = 0x20000000, /* Send data in TCP SYN. */
|
||||||
#define MSG_FASTOPEN MSG_FASTOPEN
|
#define MSG_FASTOPEN MSG_FASTOPEN
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user