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:
Brad Fitzpatrick 2013-02-27 15:51:51 -08:00
parent 9e19337de9
commit abf5700a15
4 changed files with 7 additions and 0 deletions

View file

@ -83,6 +83,10 @@ includes_Linux='
#include <net/if_arp.h> #include <net/if_arp.h>
#include <net/route.h> #include <net/route.h>
#include <netpacket/packet.h> #include <netpacket/packet.h>
#ifndef MSG_FASTOPEN
#define MSG_FASTOPEN 0x20000000
#endif
' '
includes_NetBSD=' includes_NetBSD='

View file

@ -528,6 +528,7 @@ const (
MSG_DONTWAIT = 0x40 MSG_DONTWAIT = 0x40
MSG_EOR = 0x80 MSG_EOR = 0x80
MSG_ERRQUEUE = 0x2000 MSG_ERRQUEUE = 0x2000
MSG_FASTOPEN = 0x20000000
MSG_FIN = 0x200 MSG_FIN = 0x200
MSG_MORE = 0x8000 MSG_MORE = 0x8000
MSG_NOSIGNAL = 0x4000 MSG_NOSIGNAL = 0x4000

View file

@ -528,6 +528,7 @@ const (
MSG_DONTWAIT = 0x40 MSG_DONTWAIT = 0x40
MSG_EOR = 0x80 MSG_EOR = 0x80
MSG_ERRQUEUE = 0x2000 MSG_ERRQUEUE = 0x2000
MSG_FASTOPEN = 0x20000000
MSG_FIN = 0x200 MSG_FIN = 0x200
MSG_MORE = 0x8000 MSG_MORE = 0x8000
MSG_NOSIGNAL = 0x4000 MSG_NOSIGNAL = 0x4000

View file

@ -523,6 +523,7 @@ const (
MSG_DONTWAIT = 0x40 MSG_DONTWAIT = 0x40
MSG_EOR = 0x80 MSG_EOR = 0x80
MSG_ERRQUEUE = 0x2000 MSG_ERRQUEUE = 0x2000
MSG_FASTOPEN = 0x20000000
MSG_FIN = 0x200 MSG_FIN = 0x200
MSG_MORE = 0x8000 MSG_MORE = 0x8000
MSG_NOSIGNAL = 0x4000 MSG_NOSIGNAL = 0x4000