From 8fbe8bee6c82f9c1a346eab78a1babfb2bb86d54 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 30 Mar 2010 14:32:59 -0700 Subject: [PATCH] syscall: add IPV6 constants R=r CC=golang-dev https://golang.org/cl/848041 --- src/pkg/syscall/mkerrors.sh | 4 +- src/pkg/syscall/mksysnum_linux.sh | 3 - src/pkg/syscall/zerrors_darwin_386.go | 1089 ++++++++++++----------- src/pkg/syscall/zerrors_darwin_amd64.go | 1089 ++++++++++++----------- src/pkg/syscall/zerrors_linux_386.go | 89 +- src/pkg/syscall/zerrors_linux_amd64.go | 89 +- 6 files changed, 1255 insertions(+), 1108 deletions(-) diff --git a/src/pkg/syscall/mkerrors.sh b/src/pkg/syscall/mkerrors.sh index 593700efa80..84f1e59a1dc 100755 --- a/src/pkg/syscall/mkerrors.sh +++ b/src/pkg/syscall/mkerrors.sh @@ -53,6 +53,8 @@ includes=' #include #include #include +#include +#include #include #include #include @@ -76,7 +78,7 @@ includes=' $2 ~ /^E[A-Z0-9_]+$/ || $2 ~ /^SIG[^_]/ || - $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|TCP|EVFILT|EV|SHUT|PROT|MAP)_/ || + $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|EVFILT|EV|SHUT|PROT|MAP)_/ || $2 == "SOMAXCONN" || $2 == "NAME_MAX" || $2 ~ /^(O|F|FD|NAME|S|PTRACE)_/ || diff --git a/src/pkg/syscall/mksysnum_linux.sh b/src/pkg/syscall/mksysnum_linux.sh index 5f10b61fbce..74a1931bb78 100755 --- a/src/pkg/syscall/mksysnum_linux.sh +++ b/src/pkg/syscall/mksysnum_linux.sh @@ -25,7 +25,4 @@ while(<>){ print <