From 379497e3ff861dc22e08500165379758f158e879 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sat, 16 May 2015 21:52:17 -0400 Subject: [PATCH] unix: add explicit build tags Change-Id: I62774b8ee0c1a7cc1a3b7009ca860e3fd64a6564 Signed-off-by: Shenghou Ma Reviewed-on: https://go-review.googlesource.com/10182 Reviewed-by: Rob Pike --- unix/asm_linux_arm64.s | 1 + unix/syscall_darwin_386.go | 2 ++ unix/syscall_darwin_amd64.go | 2 ++ unix/syscall_dragonfly_386.go | 2 ++ unix/syscall_dragonfly_amd64.go | 2 ++ unix/syscall_freebsd_386.go | 2 ++ unix/syscall_freebsd_amd64.go | 2 ++ unix/syscall_freebsd_arm.go | 2 ++ unix/syscall_linux_386.go | 2 ++ unix/syscall_linux_amd64.go | 2 ++ unix/syscall_linux_arm.go | 2 ++ unix/syscall_linux_arm64.go | 2 +- unix/syscall_netbsd_386.go | 2 ++ unix/syscall_netbsd_amd64.go | 2 ++ unix/syscall_netbsd_arm.go | 2 ++ unix/syscall_openbsd_386.go | 2 ++ unix/syscall_openbsd_amd64.go | 2 ++ unix/syscall_solaris_amd64.go | 2 ++ unix/zerrors_darwin_386.go | 2 ++ unix/zerrors_darwin_amd64.go | 2 ++ unix/zerrors_dragonfly_386.go | 2 ++ unix/zerrors_dragonfly_amd64.go | 2 ++ unix/zerrors_freebsd_386.go | 2 ++ unix/zerrors_freebsd_amd64.go | 2 ++ unix/zerrors_freebsd_arm.go | 2 ++ unix/zerrors_linux_386.go | 2 ++ unix/zerrors_linux_amd64.go | 2 ++ unix/zerrors_linux_arm.go | 2 ++ unix/zerrors_linux_arm64.go | 4 ++-- unix/zerrors_linux_ppc64.go | 4 ++-- unix/zerrors_linux_ppc64le.go | 4 ++-- unix/zerrors_netbsd_386.go | 2 ++ unix/zerrors_netbsd_amd64.go | 2 ++ unix/zerrors_netbsd_arm.go | 2 ++ unix/zerrors_openbsd_386.go | 2 ++ unix/zerrors_openbsd_amd64.go | 2 ++ unix/zerrors_solaris_amd64.go | 2 ++ unix/zsyscall_darwin_386.go | 2 ++ unix/zsyscall_darwin_amd64.go | 2 ++ unix/zsyscall_dragonfly_386.go | 2 ++ unix/zsyscall_dragonfly_amd64.go | 2 ++ unix/zsyscall_freebsd_386.go | 2 ++ unix/zsyscall_freebsd_amd64.go | 2 ++ unix/zsyscall_freebsd_arm.go | 2 ++ unix/zsyscall_linux_386.go | 2 ++ unix/zsyscall_linux_amd64.go | 2 ++ unix/zsyscall_linux_arm.go | 2 ++ unix/zsyscall_linux_arm64.go | 2 +- unix/zsyscall_linux_ppc64le.go | 2 +- unix/zsyscall_netbsd_386.go | 2 ++ unix/zsyscall_netbsd_amd64.go | 2 ++ unix/zsyscall_netbsd_arm.go | 2 ++ unix/zsyscall_openbsd_386.go | 2 ++ unix/zsyscall_openbsd_amd64.go | 2 ++ unix/zsyscall_solaris_amd64.go | 2 ++ unix/zsysnum_darwin_386.go | 2 ++ unix/zsysnum_darwin_amd64.go | 2 ++ unix/zsysnum_dragonfly_386.go | 2 ++ unix/zsysnum_dragonfly_amd64.go | 2 ++ unix/zsysnum_freebsd_386.go | 2 ++ unix/zsysnum_freebsd_amd64.go | 2 ++ unix/zsysnum_freebsd_arm.go | 2 ++ unix/zsysnum_linux_386.go | 2 ++ unix/zsysnum_linux_amd64.go | 2 ++ unix/zsysnum_linux_arm.go | 2 ++ unix/zsysnum_linux_arm64.go | 2 +- unix/zsysnum_linux_ppc64le.go | 2 +- unix/zsysnum_netbsd_386.go | 2 ++ unix/zsysnum_netbsd_amd64.go | 2 ++ unix/zsysnum_netbsd_arm.go | 2 ++ unix/zsysnum_openbsd_386.go | 2 ++ unix/zsysnum_openbsd_amd64.go | 2 ++ unix/zsysnum_solaris_amd64.go | 2 ++ unix/ztypes_darwin_386.go | 2 ++ unix/ztypes_darwin_amd64.go | 2 ++ unix/ztypes_dragonfly_386.go | 2 ++ unix/ztypes_dragonfly_amd64.go | 2 ++ unix/ztypes_freebsd_386.go | 2 ++ unix/ztypes_freebsd_amd64.go | 2 ++ unix/ztypes_freebsd_arm.go | 2 ++ unix/ztypes_linux_386.go | 2 ++ unix/ztypes_linux_amd64.go | 2 ++ unix/ztypes_linux_arm.go | 2 ++ unix/ztypes_linux_arm64.go | 2 +- unix/ztypes_linux_ppc64le.go | 2 +- unix/ztypes_netbsd_386.go | 2 ++ unix/ztypes_netbsd_amd64.go | 2 ++ unix/ztypes_netbsd_arm.go | 2 ++ unix/ztypes_openbsd_386.go | 2 ++ unix/ztypes_openbsd_amd64.go | 2 ++ unix/ztypes_solaris_amd64.go | 2 ++ 91 files changed, 174 insertions(+), 13 deletions(-) diff --git a/unix/asm_linux_arm64.s b/unix/asm_linux_arm64.s index 5570d65b..4be9bfed 100644 --- a/unix/asm_linux_arm64.s +++ b/unix/asm_linux_arm64.s @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux // +build arm64 // +build !gccgo diff --git a/unix/syscall_darwin_386.go b/unix/syscall_darwin_386.go index 40bef13c..97407857 100644 --- a/unix/syscall_darwin_386.go +++ b/unix/syscall_darwin_386.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build 386,darwin + package unix import ( diff --git a/unix/syscall_darwin_amd64.go b/unix/syscall_darwin_amd64.go index 57bd1903..7b0cb07e 100644 --- a/unix/syscall_darwin_amd64.go +++ b/unix/syscall_darwin_amd64.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build amd64,darwin + package unix import ( diff --git a/unix/syscall_dragonfly_386.go b/unix/syscall_dragonfly_386.go index b3b02d4d..41c2e697 100644 --- a/unix/syscall_dragonfly_386.go +++ b/unix/syscall_dragonfly_386.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build 386,dragonfly + package unix import ( diff --git a/unix/syscall_dragonfly_amd64.go b/unix/syscall_dragonfly_amd64.go index 568ada11..2ed92590 100644 --- a/unix/syscall_dragonfly_amd64.go +++ b/unix/syscall_dragonfly_amd64.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build amd64,dragonfly + package unix import ( diff --git a/unix/syscall_freebsd_386.go b/unix/syscall_freebsd_386.go index b3b02d4d..6255d40f 100644 --- a/unix/syscall_freebsd_386.go +++ b/unix/syscall_freebsd_386.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build 386,freebsd + package unix import ( diff --git a/unix/syscall_freebsd_amd64.go b/unix/syscall_freebsd_amd64.go index 568ada11..8b395d59 100644 --- a/unix/syscall_freebsd_amd64.go +++ b/unix/syscall_freebsd_amd64.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build amd64,freebsd + package unix import ( diff --git a/unix/syscall_freebsd_arm.go b/unix/syscall_freebsd_arm.go index 4cf79fb4..4e72d46a 100644 --- a/unix/syscall_freebsd_arm.go +++ b/unix/syscall_freebsd_arm.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build arm,freebsd + package unix import ( diff --git a/unix/syscall_linux_386.go b/unix/syscall_linux_386.go index bd551995..7171219a 100644 --- a/unix/syscall_linux_386.go +++ b/unix/syscall_linux_386.go @@ -5,6 +5,8 @@ // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // so that go vet can check that they are correct. +// +build 386,linux + package unix import ( diff --git a/unix/syscall_linux_amd64.go b/unix/syscall_linux_amd64.go index dbf57d2e..ae70c2af 100644 --- a/unix/syscall_linux_amd64.go +++ b/unix/syscall_linux_amd64.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build amd64,linux + package unix import "syscall" diff --git a/unix/syscall_linux_arm.go b/unix/syscall_linux_arm.go index 805c10ab..abc41c3e 100644 --- a/unix/syscall_linux_arm.go +++ b/unix/syscall_linux_arm.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build arm,linux + package unix import ( diff --git a/unix/syscall_linux_arm64.go b/unix/syscall_linux_arm64.go index ac8b7af5..fa1228e3 100644 --- a/unix/syscall_linux_arm64.go +++ b/unix/syscall_linux_arm64.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build arm64 +// +build arm64,linux package unix diff --git a/unix/syscall_netbsd_386.go b/unix/syscall_netbsd_386.go index bf73fff2..1b0e1af1 100644 --- a/unix/syscall_netbsd_386.go +++ b/unix/syscall_netbsd_386.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build 386,netbsd + package unix func Getpagesize() int { return 4096 } diff --git a/unix/syscall_netbsd_amd64.go b/unix/syscall_netbsd_amd64.go index 474a092c..1b6dcbe3 100644 --- a/unix/syscall_netbsd_amd64.go +++ b/unix/syscall_netbsd_amd64.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build amd64,netbsd + package unix func Getpagesize() int { return 4096 } diff --git a/unix/syscall_netbsd_arm.go b/unix/syscall_netbsd_arm.go index 3c6755b3..87d1d6fe 100644 --- a/unix/syscall_netbsd_arm.go +++ b/unix/syscall_netbsd_arm.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build arm,netbsd + package unix func Getpagesize() int { return 4096 } diff --git a/unix/syscall_openbsd_386.go b/unix/syscall_openbsd_386.go index 23b665c0..9529b20e 100644 --- a/unix/syscall_openbsd_386.go +++ b/unix/syscall_openbsd_386.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build 386,openbsd + package unix func Getpagesize() int { return 4096 } diff --git a/unix/syscall_openbsd_amd64.go b/unix/syscall_openbsd_amd64.go index e5513534..fc640294 100644 --- a/unix/syscall_openbsd_amd64.go +++ b/unix/syscall_openbsd_amd64.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build amd64,openbsd + package unix func Getpagesize() int { return 4096 } diff --git a/unix/syscall_solaris_amd64.go b/unix/syscall_solaris_amd64.go index 4795f524..9c173cd5 100644 --- a/unix/syscall_solaris_amd64.go +++ b/unix/syscall_solaris_amd64.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build amd64,solaris + package unix func Getpagesize() int { return 4096 } diff --git a/unix/zerrors_darwin_386.go b/unix/zerrors_darwin_386.go index 15204b9c..0bff296c 100644 --- a/unix/zerrors_darwin_386.go +++ b/unix/zerrors_darwin_386.go @@ -1,6 +1,8 @@ // mkerrors.sh -m32 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,darwin + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m32 _const.go diff --git a/unix/zerrors_darwin_amd64.go b/unix/zerrors_darwin_amd64.go index 095b6f3a..1f41dc08 100644 --- a/unix/zerrors_darwin_amd64.go +++ b/unix/zerrors_darwin_amd64.go @@ -1,6 +1,8 @@ // mkerrors.sh -m64 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,darwin + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go diff --git a/unix/zerrors_dragonfly_386.go b/unix/zerrors_dragonfly_386.go index 85988c0e..2a329f06 100644 --- a/unix/zerrors_dragonfly_386.go +++ b/unix/zerrors_dragonfly_386.go @@ -1,6 +1,8 @@ // mkerrors.sh -m32 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,dragonfly + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m32 _const.go diff --git a/unix/zerrors_dragonfly_amd64.go b/unix/zerrors_dragonfly_amd64.go index 914fa96a..0feceee1 100644 --- a/unix/zerrors_dragonfly_amd64.go +++ b/unix/zerrors_dragonfly_amd64.go @@ -1,6 +1,8 @@ // mkerrors.sh -m64 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,dragonfly + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go diff --git a/unix/zerrors_freebsd_386.go b/unix/zerrors_freebsd_386.go index 199c63fe..3c2a5bfc 100644 --- a/unix/zerrors_freebsd_386.go +++ b/unix/zerrors_freebsd_386.go @@ -1,6 +1,8 @@ // mkerrors.sh -m32 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,freebsd + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m32 _const.go diff --git a/unix/zerrors_freebsd_amd64.go b/unix/zerrors_freebsd_amd64.go index f3ca90af..3b3f7a9d 100644 --- a/unix/zerrors_freebsd_amd64.go +++ b/unix/zerrors_freebsd_amd64.go @@ -1,6 +1,8 @@ // mkerrors.sh -m64 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,freebsd + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go diff --git a/unix/zerrors_freebsd_arm.go b/unix/zerrors_freebsd_arm.go index 2d9d5e22..2afbe2d5 100644 --- a/unix/zerrors_freebsd_arm.go +++ b/unix/zerrors_freebsd_arm.go @@ -1,6 +1,8 @@ // mkerrors.sh // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build arm,freebsd + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- _const.go diff --git a/unix/zerrors_linux_386.go b/unix/zerrors_linux_386.go index fcee4fce..6fbef752 100644 --- a/unix/zerrors_linux_386.go +++ b/unix/zerrors_linux_386.go @@ -1,6 +1,8 @@ // mkerrors.sh -m32 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,linux + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m32 _const.go diff --git a/unix/zerrors_linux_amd64.go b/unix/zerrors_linux_amd64.go index 52d05b12..b40ccb8d 100644 --- a/unix/zerrors_linux_amd64.go +++ b/unix/zerrors_linux_amd64.go @@ -1,6 +1,8 @@ // mkerrors.sh -m64 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,linux + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go diff --git a/unix/zerrors_linux_arm.go b/unix/zerrors_linux_arm.go index 7f57070a..4535b78b 100644 --- a/unix/zerrors_linux_arm.go +++ b/unix/zerrors_linux_arm.go @@ -1,6 +1,8 @@ // mkerrors.sh // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build arm,linux + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- _const.go diff --git a/unix/zerrors_linux_arm64.go b/unix/zerrors_linux_arm64.go index de958605..165073f1 100644 --- a/unix/zerrors_linux_arm64.go +++ b/unix/zerrors_linux_arm64.go @@ -1,11 +1,11 @@ // mkerrors.sh // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build arm64,linux + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- _const.go -// +build arm64 - package unix import "syscall" diff --git a/unix/zerrors_linux_ppc64.go b/unix/zerrors_linux_ppc64.go index 21e00464..9d908d71 100644 --- a/unix/zerrors_linux_ppc64.go +++ b/unix/zerrors_linux_ppc64.go @@ -1,11 +1,11 @@ // mkerrors.sh -m64 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build ppc64,linux + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go -// +build ppc64,linux - package unix import "syscall" diff --git a/unix/zerrors_linux_ppc64le.go b/unix/zerrors_linux_ppc64le.go index d9d0b1f8..ccf05a27 100644 --- a/unix/zerrors_linux_ppc64le.go +++ b/unix/zerrors_linux_ppc64le.go @@ -1,11 +1,11 @@ // mkerrors.sh -m64 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build ppc64le,linux + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go -// +build ppc64le - package unix import "syscall" diff --git a/unix/zerrors_netbsd_386.go b/unix/zerrors_netbsd_386.go index 147bcd3d..b4338d5f 100644 --- a/unix/zerrors_netbsd_386.go +++ b/unix/zerrors_netbsd_386.go @@ -1,6 +1,8 @@ // mkerrors.sh -m32 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,netbsd + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m32 _const.go diff --git a/unix/zerrors_netbsd_amd64.go b/unix/zerrors_netbsd_amd64.go index cae48d1e..4994437b 100644 --- a/unix/zerrors_netbsd_amd64.go +++ b/unix/zerrors_netbsd_amd64.go @@ -1,6 +1,8 @@ // mkerrors.sh -m64 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,netbsd + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go diff --git a/unix/zerrors_netbsd_arm.go b/unix/zerrors_netbsd_arm.go index 95a0a251..ac85ca64 100644 --- a/unix/zerrors_netbsd_arm.go +++ b/unix/zerrors_netbsd_arm.go @@ -1,6 +1,8 @@ // mkerrors.sh -marm // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build arm,netbsd + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -marm _const.go diff --git a/unix/zerrors_openbsd_386.go b/unix/zerrors_openbsd_386.go index 8558737b..3322e998 100644 --- a/unix/zerrors_openbsd_386.go +++ b/unix/zerrors_openbsd_386.go @@ -1,6 +1,8 @@ // mkerrors.sh -m32 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,openbsd + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m32 _const.go diff --git a/unix/zerrors_openbsd_amd64.go b/unix/zerrors_openbsd_amd64.go index c1d382a4..1758ecca 100644 --- a/unix/zerrors_openbsd_amd64.go +++ b/unix/zerrors_openbsd_amd64.go @@ -1,6 +1,8 @@ // mkerrors.sh -m64 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,openbsd + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go diff --git a/unix/zerrors_solaris_amd64.go b/unix/zerrors_solaris_amd64.go index f60e1f83..afdf7c56 100644 --- a/unix/zerrors_solaris_amd64.go +++ b/unix/zerrors_solaris_amd64.go @@ -1,6 +1,8 @@ // mkerrors.sh -m64 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,solaris + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -m64 _const.go diff --git a/unix/zsyscall_darwin_386.go b/unix/zsyscall_darwin_386.go index a6bcbed3..a15aaf12 100644 --- a/unix/zsyscall_darwin_386.go +++ b/unix/zsyscall_darwin_386.go @@ -1,6 +1,8 @@ // mksyscall.pl -l32 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,darwin + package unix import ( diff --git a/unix/zsyscall_darwin_amd64.go b/unix/zsyscall_darwin_amd64.go index 14b367b9..e28b044e 100644 --- a/unix/zsyscall_darwin_amd64.go +++ b/unix/zsyscall_darwin_amd64.go @@ -1,6 +1,8 @@ // mksyscall.pl syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,darwin + package unix import ( diff --git a/unix/zsyscall_dragonfly_386.go b/unix/zsyscall_dragonfly_386.go index 8c20019c..32e46af6 100644 --- a/unix/zsyscall_dragonfly_386.go +++ b/unix/zsyscall_dragonfly_386.go @@ -1,6 +1,8 @@ // mksyscall.pl -l32 -dragonfly syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_386.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,dragonfly + package unix import ( diff --git a/unix/zsyscall_dragonfly_amd64.go b/unix/zsyscall_dragonfly_amd64.go index 2ae6f6a6..3fa6ff79 100644 --- a/unix/zsyscall_dragonfly_amd64.go +++ b/unix/zsyscall_dragonfly_amd64.go @@ -1,6 +1,8 @@ // mksyscall.pl -dragonfly syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_amd64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,dragonfly + package unix import ( diff --git a/unix/zsyscall_freebsd_386.go b/unix/zsyscall_freebsd_386.go index eef8eca6..1a0e528c 100644 --- a/unix/zsyscall_freebsd_386.go +++ b/unix/zsyscall_freebsd_386.go @@ -1,6 +1,8 @@ // mksyscall.pl -l32 syscall_bsd.go syscall_freebsd.go syscall_freebsd_386.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,freebsd + package unix import ( diff --git a/unix/zsyscall_freebsd_amd64.go b/unix/zsyscall_freebsd_amd64.go index 507166bc..6e4cf145 100644 --- a/unix/zsyscall_freebsd_amd64.go +++ b/unix/zsyscall_freebsd_amd64.go @@ -1,6 +1,8 @@ // mksyscall.pl syscall_bsd.go syscall_freebsd.go syscall_freebsd_amd64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,freebsd + package unix import ( diff --git a/unix/zsyscall_freebsd_arm.go b/unix/zsyscall_freebsd_arm.go index 0b7a34eb..1872d323 100644 --- a/unix/zsyscall_freebsd_arm.go +++ b/unix/zsyscall_freebsd_arm.go @@ -1,6 +1,8 @@ // mksyscall.pl -l32 -arm syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build arm,freebsd + package unix import ( diff --git a/unix/zsyscall_linux_386.go b/unix/zsyscall_linux_386.go index 7de13339..81ae498a 100644 --- a/unix/zsyscall_linux_386.go +++ b/unix/zsyscall_linux_386.go @@ -1,6 +1,8 @@ // mksyscall.pl -l32 syscall_linux.go syscall_linux_386.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,linux + package unix import ( diff --git a/unix/zsyscall_linux_amd64.go b/unix/zsyscall_linux_amd64.go index eb7a9418..2adb9284 100644 --- a/unix/zsyscall_linux_amd64.go +++ b/unix/zsyscall_linux_amd64.go @@ -1,6 +1,8 @@ // mksyscall.pl syscall_linux.go syscall_linux_amd64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,linux + package unix import ( diff --git a/unix/zsyscall_linux_arm.go b/unix/zsyscall_linux_arm.go index 84e6ffb6..ca00ed3d 100644 --- a/unix/zsyscall_linux_arm.go +++ b/unix/zsyscall_linux_arm.go @@ -1,6 +1,8 @@ // mksyscall.pl -l32 -arm syscall_linux.go syscall_linux_arm.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build arm,linux + package unix import ( diff --git a/unix/zsyscall_linux_arm64.go b/unix/zsyscall_linux_arm64.go index 2ec05f71..9b14ee5c 100644 --- a/unix/zsyscall_linux_arm64.go +++ b/unix/zsyscall_linux_arm64.go @@ -1,7 +1,7 @@ // mksyscall.pl syscall_linux.go syscall_linux_arm64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -// +build arm64 +// +build arm64,linux package unix diff --git a/unix/zsyscall_linux_ppc64le.go b/unix/zsyscall_linux_ppc64le.go index a4d333b7..d91f763a 100644 --- a/unix/zsyscall_linux_ppc64le.go +++ b/unix/zsyscall_linux_ppc64le.go @@ -1,7 +1,7 @@ // mksyscall.pl syscall_linux.go syscall_linux_ppc64x.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -// +build ppc64le +// +build ppc64le,linux package unix diff --git a/unix/zsyscall_netbsd_386.go b/unix/zsyscall_netbsd_386.go index 2dde52ae..00ca1f9c 100644 --- a/unix/zsyscall_netbsd_386.go +++ b/unix/zsyscall_netbsd_386.go @@ -1,6 +1,8 @@ // mksyscall.pl -l32 -netbsd syscall_bsd.go syscall_netbsd.go syscall_netbsd_386.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,netbsd + package unix import ( diff --git a/unix/zsyscall_netbsd_amd64.go b/unix/zsyscall_netbsd_amd64.go index b16c66ce..03f31b97 100644 --- a/unix/zsyscall_netbsd_amd64.go +++ b/unix/zsyscall_netbsd_amd64.go @@ -1,6 +1,8 @@ // mksyscall.pl -netbsd syscall_bsd.go syscall_netbsd.go syscall_netbsd_amd64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,netbsd + package unix import ( diff --git a/unix/zsyscall_netbsd_arm.go b/unix/zsyscall_netbsd_arm.go index cae18cab..84dc61cf 100644 --- a/unix/zsyscall_netbsd_arm.go +++ b/unix/zsyscall_netbsd_arm.go @@ -1,6 +1,8 @@ // mksyscall.pl -l32 -arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build arm,netbsd + package unix import ( diff --git a/unix/zsyscall_openbsd_386.go b/unix/zsyscall_openbsd_386.go index e9ec1174..02b3528a 100644 --- a/unix/zsyscall_openbsd_386.go +++ b/unix/zsyscall_openbsd_386.go @@ -1,6 +1,8 @@ // mksyscall.pl -l32 -openbsd syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build 386,openbsd + package unix import ( diff --git a/unix/zsyscall_openbsd_amd64.go b/unix/zsyscall_openbsd_amd64.go index 3c8535f4..7dc2b7ea 100644 --- a/unix/zsyscall_openbsd_amd64.go +++ b/unix/zsyscall_openbsd_amd64.go @@ -1,6 +1,8 @@ // mksyscall.pl -openbsd syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,openbsd + package unix import ( diff --git a/unix/zsyscall_solaris_amd64.go b/unix/zsyscall_solaris_amd64.go index 9ee51e3e..4c2f8bf3 100644 --- a/unix/zsyscall_solaris_amd64.go +++ b/unix/zsyscall_solaris_amd64.go @@ -1,6 +1,8 @@ // mksyscall_solaris.pl syscall_solaris.go syscall_solaris_amd64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +// +build amd64,solaris + package unix import "unsafe" diff --git a/unix/zsysnum_darwin_386.go b/unix/zsysnum_darwin_386.go index 645426a8..e32e90d9 100644 --- a/unix/zsysnum_darwin_386.go +++ b/unix/zsysnum_darwin_386.go @@ -1,6 +1,8 @@ // mksysnum_darwin.pl /usr/include/sys/unix.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build 386,darwin + package unix const ( diff --git a/unix/zsysnum_darwin_amd64.go b/unix/zsysnum_darwin_amd64.go index 645426a8..42792d71 100644 --- a/unix/zsysnum_darwin_amd64.go +++ b/unix/zsysnum_darwin_amd64.go @@ -1,6 +1,8 @@ // mksysnum_darwin.pl /usr/include/sys/unix.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build amd64,darwin + package unix const ( diff --git a/unix/zsysnum_dragonfly_386.go b/unix/zsysnum_dragonfly_386.go index 09c35158..785240a7 100644 --- a/unix/zsysnum_dragonfly_386.go +++ b/unix/zsysnum_dragonfly_386.go @@ -1,6 +1,8 @@ // mksysnum_dragonfly.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build 386,dragonfly + package unix const ( diff --git a/unix/zsysnum_dragonfly_amd64.go b/unix/zsysnum_dragonfly_amd64.go index 09c35158..d6038fa9 100644 --- a/unix/zsysnum_dragonfly_amd64.go +++ b/unix/zsysnum_dragonfly_amd64.go @@ -1,6 +1,8 @@ // mksysnum_dragonfly.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build amd64,dragonfly + package unix const ( diff --git a/unix/zsysnum_freebsd_386.go b/unix/zsysnum_freebsd_386.go index 782eb917..262a8453 100644 --- a/unix/zsysnum_freebsd_386.go +++ b/unix/zsysnum_freebsd_386.go @@ -1,6 +1,8 @@ // mksysnum_freebsd.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build 386,freebsd + package unix const ( diff --git a/unix/zsysnum_freebsd_amd64.go b/unix/zsysnum_freebsd_amd64.go index 782eb917..57a60ea1 100644 --- a/unix/zsysnum_freebsd_amd64.go +++ b/unix/zsysnum_freebsd_amd64.go @@ -1,6 +1,8 @@ // mksysnum_freebsd.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build amd64,freebsd + package unix const ( diff --git a/unix/zsysnum_freebsd_arm.go b/unix/zsysnum_freebsd_arm.go index 782eb917..206b9f61 100644 --- a/unix/zsysnum_freebsd_arm.go +++ b/unix/zsysnum_freebsd_arm.go @@ -1,6 +1,8 @@ // mksysnum_freebsd.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build arm,freebsd + package unix const ( diff --git a/unix/zsysnum_linux_386.go b/unix/zsysnum_linux_386.go index b6f993f7..ba952c67 100644 --- a/unix/zsysnum_linux_386.go +++ b/unix/zsysnum_linux_386.go @@ -1,6 +1,8 @@ // mksysnum_linux.pl /usr/include/asm/unistd_32.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build 386,linux + package unix const ( diff --git a/unix/zsysnum_linux_amd64.go b/unix/zsysnum_linux_amd64.go index c2da210c..ddac31f5 100644 --- a/unix/zsysnum_linux_amd64.go +++ b/unix/zsysnum_linux_amd64.go @@ -1,6 +1,8 @@ // mksysnum_linux.pl /usr/include/asm/unistd_64.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build amd64,linux + package unix const ( diff --git a/unix/zsysnum_linux_arm.go b/unix/zsysnum_linux_arm.go index e2b7d19d..45ced17f 100644 --- a/unix/zsysnum_linux_arm.go +++ b/unix/zsysnum_linux_arm.go @@ -1,6 +1,8 @@ // mksysnum_linux.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build arm,linux + package unix const ( diff --git a/unix/zsysnum_linux_arm64.go b/unix/zsysnum_linux_arm64.go index 42d7ab19..2e9514f2 100644 --- a/unix/zsysnum_linux_arm64.go +++ b/unix/zsysnum_linux_arm64.go @@ -1,7 +1,7 @@ // mksysnum_linux.pl /usr/include/asm-generic/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT -// +build arm64 +// +build arm64,linux package unix diff --git a/unix/zsysnum_linux_ppc64le.go b/unix/zsysnum_linux_ppc64le.go index d87daab9..45e63f51 100644 --- a/unix/zsysnum_linux_ppc64le.go +++ b/unix/zsysnum_linux_ppc64le.go @@ -1,7 +1,7 @@ // mksysnum_linux.pl /usr/include/powerpc64le-linux-gnu/asm/unistd.h // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT -// +build ppc64le +// +build ppc64le,linux package unix diff --git a/unix/zsysnum_netbsd_386.go b/unix/zsysnum_netbsd_386.go index bf00385b..f60d8f98 100644 --- a/unix/zsysnum_netbsd_386.go +++ b/unix/zsysnum_netbsd_386.go @@ -1,6 +1,8 @@ // mksysnum_netbsd.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build 386,netbsd + package unix const ( diff --git a/unix/zsysnum_netbsd_amd64.go b/unix/zsysnum_netbsd_amd64.go index bf00385b..48a91d46 100644 --- a/unix/zsysnum_netbsd_amd64.go +++ b/unix/zsysnum_netbsd_amd64.go @@ -1,6 +1,8 @@ // mksysnum_netbsd.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build amd64,netbsd + package unix const ( diff --git a/unix/zsysnum_netbsd_arm.go b/unix/zsysnum_netbsd_arm.go index bf00385b..612ba662 100644 --- a/unix/zsysnum_netbsd_arm.go +++ b/unix/zsysnum_netbsd_arm.go @@ -1,6 +1,8 @@ // mksysnum_netbsd.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build arm,netbsd + package unix const ( diff --git a/unix/zsysnum_openbsd_386.go b/unix/zsysnum_openbsd_386.go index a3cae505..3e8ce2a1 100644 --- a/unix/zsysnum_openbsd_386.go +++ b/unix/zsysnum_openbsd_386.go @@ -1,6 +1,8 @@ // mksysnum_openbsd.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build 386,openbsd + package unix const ( diff --git a/unix/zsysnum_openbsd_amd64.go b/unix/zsysnum_openbsd_amd64.go index a3cae505..bd28146d 100644 --- a/unix/zsysnum_openbsd_amd64.go +++ b/unix/zsysnum_openbsd_amd64.go @@ -1,6 +1,8 @@ // mksysnum_openbsd.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT +// +build amd64,openbsd + package unix const ( diff --git a/unix/zsysnum_solaris_amd64.go b/unix/zsysnum_solaris_amd64.go index da00f9ee..c7086598 100644 --- a/unix/zsysnum_solaris_amd64.go +++ b/unix/zsysnum_solaris_amd64.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build amd64,solaris + package unix // TODO(aram): remove these before Go 1.3. diff --git a/unix/ztypes_darwin_386.go b/unix/ztypes_darwin_386.go index 75dc532c..7b1c2c19 100644 --- a/unix/ztypes_darwin_386.go +++ b/unix/ztypes_darwin_386.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_darwin.go +// +build 386,darwin + package unix const ( diff --git a/unix/ztypes_darwin_amd64.go b/unix/ztypes_darwin_amd64.go index 93d6d286..9d07ef6e 100644 --- a/unix/ztypes_darwin_amd64.go +++ b/unix/ztypes_darwin_amd64.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_darwin.go +// +build amd64,darwin + package unix const ( diff --git a/unix/ztypes_dragonfly_386.go b/unix/ztypes_dragonfly_386.go index e1b97ffd..b7e7ff08 100644 --- a/unix/ztypes_dragonfly_386.go +++ b/unix/ztypes_dragonfly_386.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_dragonfly.go +// +build 386,dragonfly + package unix const ( diff --git a/unix/ztypes_dragonfly_amd64.go b/unix/ztypes_dragonfly_amd64.go index b94a4ff0..8a6f4e1c 100644 --- a/unix/ztypes_dragonfly_amd64.go +++ b/unix/ztypes_dragonfly_amd64.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_dragonfly.go +// +build amd64,dragonfly + package unix const ( diff --git a/unix/ztypes_freebsd_386.go b/unix/ztypes_freebsd_386.go index d9d5ce46..330c0e63 100644 --- a/unix/ztypes_freebsd_386.go +++ b/unix/ztypes_freebsd_386.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_freebsd.go +// +build 386,freebsd + package unix const ( diff --git a/unix/ztypes_freebsd_amd64.go b/unix/ztypes_freebsd_amd64.go index 80c6b812..93395924 100644 --- a/unix/ztypes_freebsd_amd64.go +++ b/unix/ztypes_freebsd_amd64.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_freebsd.go +// +build amd64,freebsd + package unix const ( diff --git a/unix/ztypes_freebsd_arm.go b/unix/ztypes_freebsd_arm.go index bd971b56..5472b542 100644 --- a/unix/ztypes_freebsd_arm.go +++ b/unix/ztypes_freebsd_arm.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -fsigned-char types_freebsd.go +// +build arm,freebsd + package unix const ( diff --git a/unix/ztypes_linux_386.go b/unix/ztypes_linux_386.go index 3b1dcc65..9a58381b 100644 --- a/unix/ztypes_linux_386.go +++ b/unix/ztypes_linux_386.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_linux.go +// +build 386,linux + package unix const ( diff --git a/unix/ztypes_linux_amd64.go b/unix/ztypes_linux_amd64.go index 8e6bd61e..f1937a62 100644 --- a/unix/ztypes_linux_amd64.go +++ b/unix/ztypes_linux_amd64.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_linux.go +// +build amd64,linux + package unix const ( diff --git a/unix/ztypes_linux_arm.go b/unix/ztypes_linux_arm.go index 7a8e0394..c8a0de45 100644 --- a/unix/ztypes_linux_arm.go +++ b/unix/ztypes_linux_arm.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_linux.go +// +build arm,linux + package unix const ( diff --git a/unix/ztypes_linux_arm64.go b/unix/ztypes_linux_arm64.go index 931e0a37..f989a360 100644 --- a/unix/ztypes_linux_arm64.go +++ b/unix/ztypes_linux_arm64.go @@ -1,7 +1,7 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -fsigned-char types_linux.go -// +build arm64 +// +build arm64,linux package unix diff --git a/unix/ztypes_linux_ppc64le.go b/unix/ztypes_linux_ppc64le.go index 31196b77..d4a689fa 100644 --- a/unix/ztypes_linux_ppc64le.go +++ b/unix/ztypes_linux_ppc64le.go @@ -1,7 +1,7 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_linux.go -// +build ppc64le +// +build ppc64le,linux package unix diff --git a/unix/ztypes_netbsd_386.go b/unix/ztypes_netbsd_386.go index 345bf23b..caf755fb 100644 --- a/unix/ztypes_netbsd_386.go +++ b/unix/ztypes_netbsd_386.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_netbsd.go +// +build 386,netbsd + package unix const ( diff --git a/unix/ztypes_netbsd_amd64.go b/unix/ztypes_netbsd_amd64.go index 5559f022..91b4a530 100644 --- a/unix/ztypes_netbsd_amd64.go +++ b/unix/ztypes_netbsd_amd64.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_netbsd.go +// +build amd64,netbsd + package unix const ( diff --git a/unix/ztypes_netbsd_arm.go b/unix/ztypes_netbsd_arm.go index 5618909c..c0758f9d 100644 --- a/unix/ztypes_netbsd_arm.go +++ b/unix/ztypes_netbsd_arm.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_netbsd.go +// +build arm,netbsd + package unix const ( diff --git a/unix/ztypes_openbsd_386.go b/unix/ztypes_openbsd_386.go index be07f6e5..860a4697 100644 --- a/unix/ztypes_openbsd_386.go +++ b/unix/ztypes_openbsd_386.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_openbsd.go +// +build 386,openbsd + package unix const ( diff --git a/unix/ztypes_openbsd_amd64.go b/unix/ztypes_openbsd_amd64.go index d553c2f0..23c52727 100644 --- a/unix/ztypes_openbsd_amd64.go +++ b/unix/ztypes_openbsd_amd64.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_openbsd.go +// +build amd64,openbsd + package unix const ( diff --git a/unix/ztypes_solaris_amd64.go b/unix/ztypes_solaris_amd64.go index 9d8d0e5f..45e9f422 100644 --- a/unix/ztypes_solaris_amd64.go +++ b/unix/ztypes_solaris_amd64.go @@ -1,6 +1,8 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_solaris.go +// +build amd64,solaris + package unix const (