]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: add MSG_FASTOPEN to Linux
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Feb 2013 23:51:51 +0000 (15:51 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Feb 2013 23:51:51 +0000 (15:51 -0800)
Update #4842

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7369060

src/pkg/syscall/mkerrors.sh
src/pkg/syscall/zerrors_linux_386.go
src/pkg/syscall/zerrors_linux_amd64.go
src/pkg/syscall/zerrors_linux_arm.go

index ef9cdf6582f8916979af1886553776a81fb8239a..e8abb6774597855cb7b95da743ef3163dc3e4195 100755 (executable)
@@ -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='
index 065da8f4535701ec4c8487a9ba5c5685ea735540..a689942b872dbc33ef8161ba8ef2b6c2a6652cb0 100644 (file)
@@ -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
index 4e4918452b8405a415e9dac6e3a9475bab8fe942..a1ac1773b2fa2e3a9e7717ca497d0e79ac5f8172 100644 (file)
@@ -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
index 9b99cf83f1f146b44cb68254ac2cf9625b597713..0730f2140d2f9f72150c471dfda70b6b244cbec9 100644 (file)
@@ -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