From abf5700a157c63f435806da4bfab00b814f5b616 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick <bradfitz@golang.org> Date: Wed, 27 Feb 2013 15:51:51 -0800 Subject: [PATCH] syscall: add MSG_FASTOPEN to Linux Update #4842 R=golang-dev, r CC=golang-dev https://golang.org/cl/7369060 --- src/pkg/syscall/mkerrors.sh | 4 ++++ src/pkg/syscall/zerrors_linux_386.go | 1 + src/pkg/syscall/zerrors_linux_amd64.go | 1 + src/pkg/syscall/zerrors_linux_arm.go | 1 + 4 files changed, 7 insertions(+) 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 <net/if_arp.h> #include <net/route.h> #include <netpacket/packet.h> + +#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 -- 2.30.9