mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: add MSG_FASTOPEN to Linux
Update #4842 R=golang-dev, r CC=golang-dev https://golang.org/cl/7369060
This commit is contained in:
parent
9e19337de9
commit
abf5700a15
4 changed files with 7 additions and 0 deletions
|
|
@ -83,6 +83,10 @@ includes_Linux='
|
|||
#include <net/if_arp.h>
|
||||
#include <net/route.h>
|
||||
#include <netpacket/packet.h>
|
||||
|
||||
#ifndef MSG_FASTOPEN
|
||||
#define MSG_FASTOPEN 0x20000000
|
||||
#endif
|
||||
'
|
||||
|
||||
includes_NetBSD='
|
||||
|
|
|
|||
|
|
@ -528,6 +528,7 @@ const (
|
|||
MSG_DONTWAIT = 0x40
|
||||
MSG_EOR = 0x80
|
||||
MSG_ERRQUEUE = 0x2000
|
||||
MSG_FASTOPEN = 0x20000000
|
||||
MSG_FIN = 0x200
|
||||
MSG_MORE = 0x8000
|
||||
MSG_NOSIGNAL = 0x4000
|
||||
|
|
|
|||
|
|
@ -528,6 +528,7 @@ const (
|
|||
MSG_DONTWAIT = 0x40
|
||||
MSG_EOR = 0x80
|
||||
MSG_ERRQUEUE = 0x2000
|
||||
MSG_FASTOPEN = 0x20000000
|
||||
MSG_FIN = 0x200
|
||||
MSG_MORE = 0x8000
|
||||
MSG_NOSIGNAL = 0x4000
|
||||
|
|
|
|||
|
|
@ -523,6 +523,7 @@ const (
|
|||
MSG_DONTWAIT = 0x40
|
||||
MSG_EOR = 0x80
|
||||
MSG_ERRQUEUE = 0x2000
|
||||
MSG_FASTOPEN = 0x20000000
|
||||
MSG_FIN = 0x200
|
||||
MSG_MORE = 0x8000
|
||||
MSG_NOSIGNAL = 0x4000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue