From: Brad Fitzpatrick Date: Wed, 27 Feb 2013 23:51:51 +0000 (-0800) Subject: syscall: add MSG_FASTOPEN to Linux X-Git-Tag: go1.1rc2~796 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=abf5700a157c63f435806da4bfab00b814f5b616;p=gostls13.git syscall: add MSG_FASTOPEN to Linux Update #4842 R=golang-dev, r CC=golang-dev https://golang.org/cl/7369060 --- diff --git a/src/pkg/syscall/mkerrors.sh b/src/pkg/syscall/mkerrors.sh index ef9cdf6582..e8abb67745 100755 --- a/src/pkg/syscall/mkerrors.sh +++ b/src/pkg/syscall/mkerrors.sh @@ -83,6 +83,10 @@ includes_Linux=' #include #include #include + +#ifndef MSG_FASTOPEN +#define MSG_FASTOPEN 0x20000000 +#endif ' includes_NetBSD=' diff --git a/src/pkg/syscall/zerrors_linux_386.go b/src/pkg/syscall/zerrors_linux_386.go index 065da8f453..a689942b87 100644 --- a/src/pkg/syscall/zerrors_linux_386.go +++ b/src/pkg/syscall/zerrors_linux_386.go @@ -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 diff --git a/src/pkg/syscall/zerrors_linux_amd64.go b/src/pkg/syscall/zerrors_linux_amd64.go index 4e4918452b..a1ac1773b2 100644 --- a/src/pkg/syscall/zerrors_linux_amd64.go +++ b/src/pkg/syscall/zerrors_linux_amd64.go @@ -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 diff --git a/src/pkg/syscall/zerrors_linux_arm.go b/src/pkg/syscall/zerrors_linux_arm.go index 9b99cf83f1..0730f2140d 100644 --- a/src/pkg/syscall/zerrors_linux_arm.go +++ b/src/pkg/syscall/zerrors_linux_arm.go @@ -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