From 5851305a30c78125461f3a589f6b77645ede625c Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 27 Feb 2023 08:26:07 -0500 Subject: [PATCH] Move to golang 1.18 and later Github.com is reporting security issues on older versions of golang. Signed-off-by: Daniel J Walsh --- Makefile | 4 +- drivers/driver_solaris.go | 2 +- go.mod | 2 +- pkg/archive/archive_linux_test.go | 3 +- pkg/archive/copy_unix_test.go | 98 ++++++++------- pkg/archive/wrap.go | 4 +- pkg/devicemapper/devmapper_log.go | 1 + pkg/parsers/parsers.go | 15 +-- pkg/system/chtimes_unix.go | 6 +- pkg/system/chtimes_windows.go | 4 +- pkg/system/meminfo_freebsd.go | 3 +- pkg/system/meminfo_solaris.go | 3 +- pkg/system/meminfo_windows.go | 3 +- .../sequences.go | 1 + .../github.com/russross/blackfriday/doc.go | 2 +- .../vendor/github.com/sirupsen/logrus/doc.go | 26 ++-- .../github.com/sirupsen/logrus/formatter.go | 4 +- .../github.com/sirupsen/logrus/logger.go | 18 +-- .../logrus/terminal_check_appengine.go | 1 + .../sirupsen/logrus/terminal_check_bsd.go | 1 + .../sirupsen/logrus/terminal_check_js.go | 1 + .../logrus/terminal_check_notappengine.go | 1 + .../sirupsen/logrus/terminal_check_unix.go | 1 + .../sirupsen/logrus/terminal_check_windows.go | 1 + .../sirupsen/logrus/terminal_notwindows.go | 1 + .../sirupsen/logrus/terminal_windows.go | 1 + .../vbatts/git-validation/validate/rules.go | 1 - .../vendor/golang.org/x/sys/unix/aliases.go | 1 + .../golang.org/x/sys/unix/cap_freebsd.go | 1 + .../vendor/golang.org/x/sys/unix/constants.go | 1 + .../golang.org/x/sys/unix/dev_aix_ppc.go | 4 +- .../golang.org/x/sys/unix/dev_aix_ppc64.go | 4 +- .../vendor/golang.org/x/sys/unix/dirent.go | 1 + .../golang.org/x/sys/unix/endian_big.go | 1 + .../golang.org/x/sys/unix/endian_little.go | 1 + .../vendor/golang.org/x/sys/unix/env_unix.go | 1 + .../vendor/golang.org/x/sys/unix/fcntl.go | 1 + .../x/sys/unix/fcntl_linux_32bit.go | 1 + .../vendor/golang.org/x/sys/unix/gccgo.go | 4 +- .../x/sys/unix/gccgo_linux_amd64.go | 1 + .../vendor/golang.org/x/sys/unix/ioctl.go | 1 + .../golang.org/x/sys/unix/openbsd_pledge.go | 1 + .../golang.org/x/sys/unix/pagesize_unix.go | 1 + .../vendor/golang.org/x/sys/unix/race.go | 1 + .../vendor/golang.org/x/sys/unix/race0.go | 1 + .../golang.org/x/sys/unix/sockcmsg_unix.go | 1 + .../tools/vendor/golang.org/x/sys/unix/str.go | 1 + .../vendor/golang.org/x/sys/unix/syscall.go | 1 + .../golang.org/x/sys/unix/syscall_aix.go | 9 +- .../golang.org/x/sys/unix/syscall_aix_ppc.go | 4 +- .../x/sys/unix/syscall_aix_ppc64.go | 4 +- .../golang.org/x/sys/unix/syscall_bsd.go | 1 + .../golang.org/x/sys/unix/syscall_darwin.go | 2 +- .../x/sys/unix/syscall_darwin_386.go | 3 +- .../x/sys/unix/syscall_darwin_amd64.go | 3 +- .../x/sys/unix/syscall_darwin_arm.go | 2 +- .../x/sys/unix/syscall_darwin_arm64.go | 3 +- .../x/sys/unix/syscall_dragonfly.go | 4 +- .../x/sys/unix/syscall_dragonfly_amd64.go | 1 + .../x/sys/unix/syscall_freebsd_386.go | 1 + .../x/sys/unix/syscall_freebsd_amd64.go | 1 + .../x/sys/unix/syscall_freebsd_arm.go | 1 + .../golang.org/x/sys/unix/syscall_linux.go | 112 +++++++++--------- .../x/sys/unix/syscall_linux_386.go | 1 + .../x/sys/unix/syscall_linux_amd64.go | 1 + .../x/sys/unix/syscall_linux_amd64_gc.go | 4 +- .../x/sys/unix/syscall_linux_arm.go | 1 + .../x/sys/unix/syscall_linux_arm64.go | 1 + .../golang.org/x/sys/unix/syscall_linux_gc.go | 1 + .../x/sys/unix/syscall_linux_gc_386.go | 1 + .../x/sys/unix/syscall_linux_gccgo_386.go | 1 + .../x/sys/unix/syscall_linux_gccgo_arm.go | 1 + .../x/sys/unix/syscall_linux_mips64x.go | 1 + .../x/sys/unix/syscall_linux_mipsx.go | 1 + .../x/sys/unix/syscall_linux_ppc64x.go | 1 + .../x/sys/unix/syscall_linux_s390x.go | 1 + .../x/sys/unix/syscall_linux_sparc64.go | 1 + .../golang.org/x/sys/unix/syscall_netbsd.go | 4 +- .../x/sys/unix/syscall_netbsd_386.go | 1 + .../x/sys/unix/syscall_netbsd_amd64.go | 1 + .../x/sys/unix/syscall_netbsd_arm.go | 1 + .../golang.org/x/sys/unix/syscall_openbsd.go | 4 +- .../x/sys/unix/syscall_openbsd_386.go | 1 + .../x/sys/unix/syscall_openbsd_amd64.go | 1 + .../x/sys/unix/syscall_openbsd_arm.go | 1 + .../x/sys/unix/syscall_solaris_amd64.go | 1 + .../golang.org/x/sys/unix/syscall_unix.go | 1 + .../golang.org/x/sys/unix/syscall_unix_gc.go | 1 + .../golang.org/x/sys/unix/timestruct.go | 1 + .../vendor/golang.org/x/sys/unix/xattr_bsd.go | 1 + .../golang.org/x/sys/unix/zerrors_aix_ppc.go | 1 + .../x/sys/unix/zerrors_aix_ppc64.go | 1 + .../x/sys/unix/zerrors_darwin_386.go | 1 + .../x/sys/unix/zerrors_darwin_amd64.go | 1 + .../x/sys/unix/zerrors_darwin_arm.go | 1 + .../x/sys/unix/zerrors_darwin_arm64.go | 1 + .../x/sys/unix/zerrors_dragonfly_amd64.go | 1 + .../x/sys/unix/zerrors_freebsd_386.go | 1 + .../x/sys/unix/zerrors_freebsd_amd64.go | 1 + .../x/sys/unix/zerrors_freebsd_arm.go | 1 + .../x/sys/unix/zerrors_linux_386.go | 1 + .../x/sys/unix/zerrors_linux_amd64.go | 1 + .../x/sys/unix/zerrors_linux_arm.go | 1 + .../x/sys/unix/zerrors_linux_arm64.go | 1 + .../x/sys/unix/zerrors_linux_mips.go | 1 + .../x/sys/unix/zerrors_linux_mips64.go | 1 + .../x/sys/unix/zerrors_linux_mips64le.go | 1 + .../x/sys/unix/zerrors_linux_mipsle.go | 1 + .../x/sys/unix/zerrors_linux_ppc64.go | 1 + .../x/sys/unix/zerrors_linux_ppc64le.go | 1 + .../x/sys/unix/zerrors_linux_s390x.go | 1 + .../x/sys/unix/zerrors_linux_sparc64.go | 1 + .../x/sys/unix/zerrors_netbsd_386.go | 1 + .../x/sys/unix/zerrors_netbsd_amd64.go | 1 + .../x/sys/unix/zerrors_netbsd_arm.go | 1 + .../x/sys/unix/zerrors_openbsd_386.go | 1 + .../x/sys/unix/zerrors_openbsd_amd64.go | 1 + .../x/sys/unix/zerrors_openbsd_arm.go | 1 + .../x/sys/unix/zerrors_solaris_amd64.go | 1 + .../golang.org/x/sys/unix/zptrace386_linux.go | 1 + .../golang.org/x/sys/unix/zptracearm_linux.go | 1 + .../x/sys/unix/zptracemips_linux.go | 1 + .../x/sys/unix/zptracemipsle_linux.go | 1 + .../golang.org/x/sys/unix/zsyscall_aix_ppc.go | 1 + .../x/sys/unix/zsyscall_aix_ppc64.go | 1 + .../x/sys/unix/zsyscall_darwin_386.go | 1 + .../x/sys/unix/zsyscall_darwin_amd64.go | 1 + .../x/sys/unix/zsyscall_darwin_arm.go | 1 + .../x/sys/unix/zsyscall_darwin_arm64.go | 1 + .../x/sys/unix/zsyscall_dragonfly_amd64.go | 1 + .../x/sys/unix/zsyscall_freebsd_386.go | 1 + .../x/sys/unix/zsyscall_freebsd_amd64.go | 1 + .../x/sys/unix/zsyscall_freebsd_arm.go | 1 + .../x/sys/unix/zsyscall_linux_386.go | 1 + .../x/sys/unix/zsyscall_linux_amd64.go | 1 + .../x/sys/unix/zsyscall_linux_arm.go | 1 + .../x/sys/unix/zsyscall_linux_arm64.go | 1 + .../x/sys/unix/zsyscall_linux_mips.go | 1 + .../x/sys/unix/zsyscall_linux_mips64.go | 1 + .../x/sys/unix/zsyscall_linux_mips64le.go | 1 + .../x/sys/unix/zsyscall_linux_mipsle.go | 1 + .../x/sys/unix/zsyscall_linux_ppc64.go | 1 + .../x/sys/unix/zsyscall_linux_ppc64le.go | 1 + .../x/sys/unix/zsyscall_linux_s390x.go | 1 + .../x/sys/unix/zsyscall_linux_sparc64.go | 1 + .../x/sys/unix/zsyscall_netbsd_386.go | 1 + .../x/sys/unix/zsyscall_netbsd_amd64.go | 1 + .../x/sys/unix/zsyscall_netbsd_arm.go | 1 + .../x/sys/unix/zsyscall_openbsd_386.go | 1 + .../x/sys/unix/zsyscall_openbsd_amd64.go | 1 + .../x/sys/unix/zsyscall_openbsd_arm.go | 1 + .../x/sys/unix/zsyscall_solaris_amd64.go | 1 + .../x/sys/unix/zsysctl_openbsd_amd64.go | 1 + .../x/sys/unix/zsysnum_darwin_386.go | 1 + .../x/sys/unix/zsysnum_darwin_amd64.go | 1 + .../x/sys/unix/zsysnum_darwin_arm.go | 1 + .../x/sys/unix/zsysnum_darwin_arm64.go | 1 + .../x/sys/unix/zsysnum_dragonfly_amd64.go | 1 + .../x/sys/unix/zsysnum_freebsd_386.go | 1 + .../x/sys/unix/zsysnum_freebsd_amd64.go | 1 + .../x/sys/unix/zsysnum_freebsd_arm.go | 1 + .../x/sys/unix/zsysnum_linux_386.go | 1 + .../x/sys/unix/zsysnum_linux_amd64.go | 1 + .../x/sys/unix/zsysnum_linux_arm.go | 1 + .../x/sys/unix/zsysnum_linux_arm64.go | 1 + .../x/sys/unix/zsysnum_linux_mips.go | 1 + .../x/sys/unix/zsysnum_linux_mips64.go | 1 + .../x/sys/unix/zsysnum_linux_mips64le.go | 1 + .../x/sys/unix/zsysnum_linux_mipsle.go | 1 + .../x/sys/unix/zsysnum_linux_ppc64.go | 1 + .../x/sys/unix/zsysnum_linux_ppc64le.go | 1 + .../x/sys/unix/zsysnum_linux_s390x.go | 1 + .../x/sys/unix/zsysnum_linux_sparc64.go | 1 + .../x/sys/unix/zsysnum_netbsd_386.go | 1 + .../x/sys/unix/zsysnum_netbsd_amd64.go | 1 + .../x/sys/unix/zsysnum_netbsd_arm.go | 1 + .../x/sys/unix/zsysnum_openbsd_386.go | 1 + .../x/sys/unix/zsysnum_openbsd_amd64.go | 1 + .../x/sys/unix/zsysnum_openbsd_arm.go | 1 + .../golang.org/x/sys/unix/ztypes_aix_ppc.go | 1 + .../golang.org/x/sys/unix/ztypes_aix_ppc64.go | 1 + .../x/sys/unix/ztypes_darwin_386.go | 1 + .../x/sys/unix/ztypes_darwin_amd64.go | 1 + .../x/sys/unix/ztypes_darwin_arm.go | 1 + .../x/sys/unix/ztypes_darwin_arm64.go | 1 + .../x/sys/unix/ztypes_dragonfly_amd64.go | 1 + .../x/sys/unix/ztypes_freebsd_386.go | 1 + .../x/sys/unix/ztypes_freebsd_amd64.go | 1 + .../x/sys/unix/ztypes_freebsd_arm.go | 1 + .../golang.org/x/sys/unix/ztypes_linux_386.go | 1 + .../x/sys/unix/ztypes_linux_amd64.go | 1 + .../golang.org/x/sys/unix/ztypes_linux_arm.go | 1 + .../x/sys/unix/ztypes_linux_arm64.go | 1 + .../x/sys/unix/ztypes_linux_mips.go | 1 + .../x/sys/unix/ztypes_linux_mips64.go | 1 + .../x/sys/unix/ztypes_linux_mips64le.go | 1 + .../x/sys/unix/ztypes_linux_mipsle.go | 1 + .../x/sys/unix/ztypes_linux_ppc64.go | 1 + .../x/sys/unix/ztypes_linux_ppc64le.go | 1 + .../x/sys/unix/ztypes_linux_s390x.go | 1 + .../x/sys/unix/ztypes_linux_sparc64.go | 2 + .../x/sys/unix/ztypes_netbsd_386.go | 1 + .../x/sys/unix/ztypes_netbsd_amd64.go | 1 + .../x/sys/unix/ztypes_netbsd_arm.go | 1 + .../x/sys/unix/ztypes_openbsd_386.go | 1 + .../x/sys/unix/ztypes_openbsd_amd64.go | 1 + .../x/sys/unix/ztypes_openbsd_arm.go | 1 + .../x/sys/unix/ztypes_solaris_amd64.go | 1 + 208 files changed, 372 insertions(+), 172 deletions(-) diff --git a/Makefile b/Makefile index 69298ba520..dd10533e74 100644 --- a/Makefile +++ b/Makefile @@ -93,9 +93,9 @@ help: ## this help @awk 'BEGIN {FS = ":.*?## "} /^[a-z A-Z_-]+:.*?## / {gsub(" ",",",$$1);gsub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-21s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) vendor-in-container: - podman run --privileged --rm --env HOME=/root -v `pwd`:/src -w /src golang:1.17 make vendor + podman run --privileged --rm --env HOME=/root -v `pwd`:/src -w /src golang make vendor vendor: - $(GO) mod tidy -compat=1.17 + $(GO) mod tidy $(GO) mod vendor $(GO) mod verify diff --git a/drivers/driver_solaris.go b/drivers/driver_solaris.go index e329309166..962edd1763 100644 --- a/drivers/driver_solaris.go +++ b/drivers/driver_solaris.go @@ -78,7 +78,7 @@ func (c *defaultChecker) IsMounted(path string) bool { } // Mounted checks if the given path is mounted as the fs type -//Solaris supports only ZFS for now +// Solaris supports only ZFS for now func Mounted(fsType FsMagic, mountPath string) (bool, error) { cs := C.CString(filepath.Dir(mountPath)) diff --git a/go.mod b/go.mod index 86892a1013..d8ee9c43cb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -go 1.17 +go 1.18 module github.com/containers/storage diff --git a/pkg/archive/archive_linux_test.go b/pkg/archive/archive_linux_test.go index 81bcd3a30b..dbb43647d3 100644 --- a/pkg/archive/archive_linux_test.go +++ b/pkg/archive/archive_linux_test.go @@ -21,7 +21,8 @@ import ( // ├── d2 # opaque, 0750 // │   └── f1 # empty file, 0660 // └── d3 # 0700 -// └── f1 # whiteout, 0000 +// +// └── f1 # whiteout, 0000 func setupOverlayTestDir(t *testing.T, src string) { // Create opaque directory containing single file and permission 0700 err := os.Mkdir(filepath.Join(src, "d1"), 0700) diff --git a/pkg/archive/copy_unix_test.go b/pkg/archive/copy_unix_test.go index a860c004e4..62affd1824 100644 --- a/pkg/archive/copy_unix_test.go +++ b/pkg/archive/copy_unix_test.go @@ -256,8 +256,9 @@ func TestCopyErrDstNotDir(t *testing.T) { // // A. SRC specifies a file and DST (no trailing path separator) doesn't -// exist. This should create a file with the name DST and copy the -// contents of the source file into it. +// +// exist. This should create a file with the name DST and copy the +// contents of the source file into it. func TestCopyCaseA(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -297,8 +298,9 @@ func TestCopyCaseA(t *testing.T) { } // B. SRC specifies a file and DST (with trailing path separator) doesn't -// exist. This should cause an error because the copy operation cannot -// create a directory when copying a single file. +// +// exist. This should cause an error because the copy operation cannot +// create a directory when copying a single file. func TestCopyCaseB(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -330,7 +332,8 @@ func TestCopyCaseB(t *testing.T) { } // C. SRC specifies a file and DST exists as a file. This should overwrite -// the file at DST with the contents of the source file. +// +// the file at DST with the contents of the source file. func TestCopyCaseC(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -357,8 +360,9 @@ func TestCopyCaseC(t *testing.T) { } // C. Symbol link following version: -// SRC specifies a file and DST exists as a file. This should overwrite -// the file at DST with the contents of the source file. +// +// SRC specifies a file and DST exists as a file. This should overwrite +// the file at DST with the contents of the source file. func TestCopyCaseCFSym(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -393,8 +397,9 @@ func TestCopyCaseCFSym(t *testing.T) { } // D. SRC specifies a file and DST exists as a directory. This should place -// a copy of the source file inside it using the basename from SRC. Ensure -// this works whether DST has a trailing path separator or not. +// +// a copy of the source file inside it using the basename from SRC. Ensure +// this works whether DST has a trailing path separator or not. func TestCopyCaseD(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -441,9 +446,10 @@ func TestCopyCaseD(t *testing.T) { } // D. Symbol link following version: -// SRC specifies a file and DST exists as a directory. This should place -// a copy of the source file inside it using the basename from SRC. Ensure -// this works whether DST has a trailing path separator or not. +// +// SRC specifies a file and DST exists as a directory. This should place +// a copy of the source file inside it using the basename from SRC. Ensure +// this works whether DST has a trailing path separator or not. func TestCopyCaseDFSym(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -491,9 +497,10 @@ func TestCopyCaseDFSym(t *testing.T) { } // E. SRC specifies a directory and DST does not exist. This should create a -// directory at DST and copy the contents of the SRC directory into the DST -// directory. Ensure this works whether DST has a trailing path separator or -// not. +// +// directory at DST and copy the contents of the SRC directory into the DST +// directory. Ensure this works whether DST has a trailing path separator or +// not. func TestCopyCaseE(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -533,10 +540,11 @@ func TestCopyCaseE(t *testing.T) { } // E. Symbol link following version: -// SRC specifies a directory and DST does not exist. This should create a -// directory at DST and copy the contents of the SRC directory into the DST -// directory. Ensure this works whether DST has a trailing path separator or -// not. +// +// SRC specifies a directory and DST does not exist. This should create a +// directory at DST and copy the contents of the SRC directory into the DST +// directory. Ensure this works whether DST has a trailing path separator or +// not. func TestCopyCaseEFSym(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -577,7 +585,8 @@ func TestCopyCaseEFSym(t *testing.T) { } // F. SRC specifies a directory and DST exists as a file. This should cause an -// error as it is not possible to overwrite a file with a directory. +// +// error as it is not possible to overwrite a file with a directory. func TestCopyCaseF(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -610,8 +619,9 @@ func TestCopyCaseF(t *testing.T) { } // G. SRC specifies a directory and DST exists as a directory. This should copy -// the SRC directory and all its contents to the DST directory. Ensure this -// works whether DST has a trailing path separator or not. +// +// the SRC directory and all its contents to the DST directory. Ensure this +// works whether DST has a trailing path separator or not. func TestCopyCaseG(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -653,9 +663,10 @@ func TestCopyCaseG(t *testing.T) { } // G. Symbol link version: -// SRC specifies a directory and DST exists as a directory. This should copy -// the SRC directory and all its contents to the DST directory. Ensure this -// works whether DST has a trailing path separator or not. +// +// SRC specifies a directory and DST exists as a directory. This should copy +// the SRC directory and all its contents to the DST directory. Ensure this +// works whether DST has a trailing path separator or not. func TestCopyCaseGFSym(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -698,9 +709,10 @@ func TestCopyCaseGFSym(t *testing.T) { } // H. SRC specifies a directory's contents only and DST does not exist. This -// should create a directory at DST and copy the contents of the SRC -// directory (but not the directory itself) into the DST directory. Ensure -// this works whether DST has a trailing path separator or not. +// +// should create a directory at DST and copy the contents of the SRC +// directory (but not the directory itself) into the DST directory. Ensure +// this works whether DST has a trailing path separator or not. func TestCopyCaseH(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -744,10 +756,11 @@ func TestCopyCaseH(t *testing.T) { } // H. Symbol link following version: -// SRC specifies a directory's contents only and DST does not exist. This -// should create a directory at DST and copy the contents of the SRC -// directory (but not the directory itself) into the DST directory. Ensure -// this works whether DST has a trailing path separator or not. +// +// SRC specifies a directory's contents only and DST does not exist. This +// should create a directory at DST and copy the contents of the SRC +// directory (but not the directory itself) into the DST directory. Ensure +// this works whether DST has a trailing path separator or not. func TestCopyCaseHFSym(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -792,8 +805,9 @@ func TestCopyCaseHFSym(t *testing.T) { } // I. SRC specifies a directory's contents only and DST exists as a file. This -// should cause an error as it is not possible to overwrite a file with a -// directory. +// +// should cause an error as it is not possible to overwrite a file with a +// directory. func TestCopyCaseI(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -826,9 +840,10 @@ func TestCopyCaseI(t *testing.T) { } // J. SRC specifies a directory's contents only and DST exists as a directory. -// This should copy the contents of the SRC directory (but not the directory -// itself) into the DST directory. Ensure this works whether DST has a -// trailing path separator or not. +// +// This should copy the contents of the SRC directory (but not the directory +// itself) into the DST directory. Ensure this works whether DST has a +// trailing path separator or not. func TestCopyCaseJ(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) @@ -874,10 +889,11 @@ func TestCopyCaseJ(t *testing.T) { } // J. Symbol link following version: -// SRC specifies a directory's contents only and DST exists as a directory. -// This should copy the contents of the SRC directory (but not the directory -// itself) into the DST directory. Ensure this works whether DST has a -// trailing path separator or not. +// +// SRC specifies a directory's contents only and DST exists as a directory. +// This should copy the contents of the SRC directory (but not the directory +// itself) into the DST directory. Ensure this works whether DST has a +// trailing path separator or not. func TestCopyCaseJFSym(t *testing.T) { tmpDirA, tmpDirB := getTestTempDirs(t) diff --git a/pkg/archive/wrap.go b/pkg/archive/wrap.go index b39d12c878..903befd763 100644 --- a/pkg/archive/wrap.go +++ b/pkg/archive/wrap.go @@ -17,8 +17,8 @@ import ( // Generate("foo.txt", "hello world", "emptyfile") // // The above call will return an archive with 2 files: -// * ./foo.txt with content "hello world" -// * ./empty with empty content +// - ./foo.txt with content "hello world" +// - ./empty with empty content // // FIXME: stream content instead of buffering // FIXME: specify permissions and other archive metadata diff --git a/pkg/devicemapper/devmapper_log.go b/pkg/devicemapper/devmapper_log.go index ead15c1486..6cfef0a5bf 100644 --- a/pkg/devicemapper/devmapper_log.go +++ b/pkg/devicemapper/devmapper_log.go @@ -39,6 +39,7 @@ func LogInit(logger DevmapperLogger) { // because we are using callbacks, this function will be called for *every* log // in libdm (even debug ones because there's no way of setting the verbosity // level for an external logging callback). +// //export StorageDevmapperLogCallback func StorageDevmapperLogCallback(level C.int, file *C.char, line, dmErrnoOrClass C.int, message *C.char) { msg := C.GoString(message) diff --git a/pkg/parsers/parsers.go b/pkg/parsers/parsers.go index 85c23381d9..3fb0c36b88 100644 --- a/pkg/parsers/parsers.go +++ b/pkg/parsers/parsers.go @@ -24,13 +24,14 @@ func ParseKeyValueOpt(opt string) (string, string, error) { // input string. It returns a `map[int]bool` with available elements from `val` // set to `true`. // Supported formats: -// 7 -// 1-6 -// 0,3-4,7,8-10 -// 0-0,0,1-7 -// 03,1-3 <- this is gonna get parsed as [1,2,3] -// 3,2,1 -// 0-2,3,1 +// +// 7 +// 1-6 +// 0,3-4,7,8-10 +// 0-0,0,1-7 +// 03,1-3 <- this is gonna get parsed as [1,2,3] +// 3,2,1 +// 0-2,3,1 func ParseUintList(val string) (map[int]bool, error) { if val == "" { return map[int]bool{}, nil diff --git a/pkg/system/chtimes_unix.go b/pkg/system/chtimes_unix.go index a208a6b5ba..1ce4c0d6eb 100644 --- a/pkg/system/chtimes_unix.go +++ b/pkg/system/chtimes_unix.go @@ -7,9 +7,9 @@ import ( "time" ) -//setCTime will set the create time on a file. On Unix, the create -//time is updated as a side effect of setting the modified time, so -//no action is required. +// setCTime will set the create time on a file. On Unix, the create +// time is updated as a side effect of setting the modified time, so +// no action is required. func setCTime(path string, ctime time.Time) error { return nil } diff --git a/pkg/system/chtimes_windows.go b/pkg/system/chtimes_windows.go index bfb621dcc8..7a3d7937d6 100644 --- a/pkg/system/chtimes_windows.go +++ b/pkg/system/chtimes_windows.go @@ -9,8 +9,8 @@ import ( "golang.org/x/sys/windows" ) -//setCTime will set the create time on a file. On Windows, this requires -//calling SetFileTime and explicitly including the create time. +// setCTime will set the create time on a file. On Windows, this requires +// calling SetFileTime and explicitly including the create time. func setCTime(path string, ctime time.Time) error { ctimespec := windows.NsecToTimespec(ctime.UnixNano()) pathp, e := windows.UTF16PtrFromString(path) diff --git a/pkg/system/meminfo_freebsd.go b/pkg/system/meminfo_freebsd.go index 46cb40291f..37da93aa0b 100644 --- a/pkg/system/meminfo_freebsd.go +++ b/pkg/system/meminfo_freebsd.go @@ -59,7 +59,8 @@ func getSwapInfo() (int64, int64, error) { } // ReadMemInfo retrieves memory statistics of the host system and returns a -// MemInfo type. +// +// MemInfo type. func ReadMemInfo() (*MemInfo, error) { MemTotal, MemFree, err := getMemInfo() if err != nil { diff --git a/pkg/system/meminfo_solaris.go b/pkg/system/meminfo_solaris.go index d727b545c4..df53c40e21 100644 --- a/pkg/system/meminfo_solaris.go +++ b/pkg/system/meminfo_solaris.go @@ -81,7 +81,8 @@ func getFreeMem() int64 { } // ReadMemInfo retrieves memory statistics of the host system and returns a -// MemInfo type. +// +// MemInfo type. func ReadMemInfo() (*MemInfo, error) { ppKernel := C.getPpKernel() diff --git a/pkg/system/meminfo_windows.go b/pkg/system/meminfo_windows.go index 883944a4c5..c833f30f76 100644 --- a/pkg/system/meminfo_windows.go +++ b/pkg/system/meminfo_windows.go @@ -27,7 +27,8 @@ type memorystatusex struct { } // ReadMemInfo retrieves memory statistics of the host system and returns a -// MemInfo type. +// +// MemInfo type. func ReadMemInfo() (*MemInfo, error) { msi := &memorystatusex{ dwLength: 64, diff --git a/tests/tools/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go b/tests/tools/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go index ef18d8f978..953c5d9844 100644 --- a/tests/tools/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go +++ b/tests/tools/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package sequences diff --git a/tests/tools/vendor/github.com/russross/blackfriday/doc.go b/tests/tools/vendor/github.com/russross/blackfriday/doc.go index 9656c42a19..acc5f81b14 100644 --- a/tests/tools/vendor/github.com/russross/blackfriday/doc.go +++ b/tests/tools/vendor/github.com/russross/blackfriday/doc.go @@ -2,7 +2,7 @@ // // It translates plain text with simple formatting rules into HTML or LaTeX. // -// Sanitized Anchor Names +// # Sanitized Anchor Names // // Blackfriday includes an algorithm for creating sanitized anchor names // corresponding to a given input text. This algorithm is used to create diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/doc.go b/tests/tools/vendor/github.com/sirupsen/logrus/doc.go index da67aba06d..51392be8f6 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/doc.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/doc.go @@ -1,25 +1,25 @@ /* Package logrus is a structured logger for Go, completely API compatible with the standard library logger. - The simplest way to use Logrus is simply the package-level exported logger: - package main + package main - import ( - log "github.com/sirupsen/logrus" - ) + import ( + log "github.com/sirupsen/logrus" + ) - func main() { - log.WithFields(log.Fields{ - "animal": "walrus", - "number": 1, - "size": 10, - }).Info("A walrus appears") - } + func main() { + log.WithFields(log.Fields{ + "animal": "walrus", + "number": 1, + "size": 10, + }).Info("A walrus appears") + } Output: - time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 + + time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 For a full guide visit https://github.com/sirupsen/logrus */ diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/formatter.go b/tests/tools/vendor/github.com/sirupsen/logrus/formatter.go index 408883773e..8c76155154 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/formatter.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/formatter.go @@ -30,12 +30,12 @@ type Formatter interface { // This is to not silently overwrite `time`, `msg`, `func` and `level` fields when // dumping it. If this code wasn't there doing: // -// logrus.WithField("level", 1).Info("hello") +// logrus.WithField("level", 1).Info("hello") // // Would just silently drop the user provided level. Instead with this code // it'll logged as: // -// {"level": "info", "fields.level": 1, "msg": "hello", "time": "..."} +// {"level": "info", "fields.level": 1, "msg": "hello", "time": "..."} // // It's not exported because it's still using Data in an opinionated way. It's to // avoid code duplication between the two default formatters. diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/logger.go b/tests/tools/vendor/github.com/sirupsen/logrus/logger.go index c0c0b1e559..b067cf7e15 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/logger.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/logger.go @@ -68,12 +68,12 @@ func (mw *MutexWrap) Disable() { // `Out` and `Hooks` directly on the default logger instance. You can also just // instantiate your own: // -// var log = &Logger{ -// Out: os.Stderr, -// Formatter: new(JSONFormatter), -// Hooks: make(LevelHooks), -// Level: logrus.DebugLevel, -// } +// var log = &Logger{ +// Out: os.Stderr, +// Formatter: new(JSONFormatter), +// Hooks: make(LevelHooks), +// Level: logrus.DebugLevel, +// } // // It's recommended to make this a global instance called `log`. func New() *Logger { @@ -288,9 +288,9 @@ func (logger *Logger) Exit(code int) { logger.ExitFunc(code) } -//When file is opened with appending mode, it's safe to -//write concurrently to a file (within 4k message on Linux). -//In these cases user can choose to disable the lock. +// When file is opened with appending mode, it's safe to +// write concurrently to a file (within 4k message on Linux). +// In these cases user can choose to disable the lock. func (logger *Logger) SetNoLock() { logger.mu.Disable() } diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_appengine.go b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_appengine.go index 2403de9819..45de3e2b67 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_appengine.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_appengine.go @@ -1,3 +1,4 @@ +//go:build appengine // +build appengine package logrus diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go index ff6ff7b993..27a5ed862a 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_bsd.go @@ -1,3 +1,4 @@ +//go:build darwin || dragonfly || freebsd || netbsd || openbsd // +build darwin dragonfly freebsd netbsd openbsd package logrus diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_js.go b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_js.go index 0c209750a3..12f8617921 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_js.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_js.go @@ -1,3 +1,4 @@ +//go:build js // +build js package logrus diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go index 7be2d87c59..0692be07f7 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go @@ -1,3 +1,4 @@ +//go:build !appengine && !js && !windows // +build !appengine,!js,!windows package logrus diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_unix.go b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_unix.go index 163c468d54..3b86bb144c 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_unix.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_unix.go @@ -1,3 +1,4 @@ +//go:build linux || aix // +build linux aix package logrus diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_windows.go b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_windows.go index 3b9d2864ca..2e968988b7 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_windows.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_check_windows.go @@ -1,3 +1,4 @@ +//go:build !appengine && !js && windows // +build !appengine,!js,windows package logrus diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_notwindows.go b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_notwindows.go index 3dbd237203..303d4c4e0a 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_notwindows.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_notwindows.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package logrus diff --git a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_windows.go b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_windows.go index b4ef5286cd..84bbbafff7 100644 --- a/tests/tools/vendor/github.com/sirupsen/logrus/terminal_windows.go +++ b/tests/tools/vendor/github.com/sirupsen/logrus/terminal_windows.go @@ -1,3 +1,4 @@ +//go:build !appengine && !js && windows // +build !appengine,!js,windows package logrus diff --git a/tests/tools/vendor/github.com/vbatts/git-validation/validate/rules.go b/tests/tools/vendor/github.com/vbatts/git-validation/validate/rules.go index 38126a4f07..e0cb59e9c7 100644 --- a/tests/tools/vendor/github.com/vbatts/git-validation/validate/rules.go +++ b/tests/tools/vendor/github.com/vbatts/git-validation/validate/rules.go @@ -75,7 +75,6 @@ func SanitizeFilters(filtStr string) (filters []string) { // // Some `includes` rules have values assigned to them. // i.e. -run "dco,message_regexp='^JIRA-[0-9]+ [A-Z].*$'" -// func FilterRules(rules []Rule, includes []string) []Rule { ret := []Rule{} diff --git a/tests/tools/vendor/golang.org/x/sys/unix/aliases.go b/tests/tools/vendor/golang.org/x/sys/unix/aliases.go index 951fce4d0d..0d12dd663b 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/aliases.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/aliases.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && go1.9 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris // +build go1.9 diff --git a/tests/tools/vendor/golang.org/x/sys/unix/cap_freebsd.go b/tests/tools/vendor/golang.org/x/sys/unix/cap_freebsd.go index df52048773..0b7c6adb86 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/cap_freebsd.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/cap_freebsd.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build freebsd // +build freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/constants.go b/tests/tools/vendor/golang.org/x/sys/unix/constants.go index 3a6ac648dd..c0cd2ff904 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/constants.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/constants.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/dev_aix_ppc.go b/tests/tools/vendor/golang.org/x/sys/unix/dev_aix_ppc.go index 27f92c99db..f964a810cb 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/dev_aix_ppc.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/dev_aix_ppc.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix -// +build ppc +//go:build aix && ppc +// +build aix,ppc // Functions to access/create device major and minor numbers matching the // encoding used by the Linux kernel and glibc. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go b/tests/tools/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go index 65d93a6899..3b0803155c 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix -// +build ppc64 +//go:build aix && ppc64 +// +build aix,ppc64 // Functions to access/create device major and minor numbers matching the // encoding used by the Linux kernel and glibc. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/dirent.go b/tests/tools/vendor/golang.org/x/sys/unix/dirent.go index 4407c505a3..1d84a3c460 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/dirent.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/dirent.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || nacl || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/endian_big.go b/tests/tools/vendor/golang.org/x/sys/unix/endian_big.go index 5e9269063f..79806db9a4 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/endian_big.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/endian_big.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +//go:build ppc64 || s390x || mips || mips64 // +build ppc64 s390x mips mips64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/endian_little.go b/tests/tools/vendor/golang.org/x/sys/unix/endian_little.go index 085df2d8dd..d562bd36c7 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/endian_little.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/endian_little.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +//go:build 386 || amd64 || amd64p32 || arm || arm64 || ppc64le || mipsle || mips64le // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/env_unix.go b/tests/tools/vendor/golang.org/x/sys/unix/env_unix.go index 84178b0a13..cc210c7ea6 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/env_unix.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/env_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris // Unix environment variables. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/fcntl.go b/tests/tools/vendor/golang.org/x/sys/unix/fcntl.go index 9379ba9cef..7aa29c5167 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/fcntl.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/fcntl.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd // +build darwin dragonfly freebsd linux netbsd openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go b/tests/tools/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go index fc0e50e037..a31e0edc7f 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go @@ -1,3 +1,4 @@ +//go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) // +build linux,386 linux,arm linux,mips linux,mipsle // Copyright 2014 The Go Authors. All rights reserved. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/gccgo.go b/tests/tools/vendor/golang.org/x/sys/unix/gccgo.go index cd6f5a6133..411fe0f89a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/gccgo.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/gccgo.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build gccgo -// +build !aix +//go:build gccgo && !aix +// +build gccgo,!aix package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go index 251a977a81..e60e49a3d9 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build gccgo && linux && amd64 // +build gccgo,linux,amd64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ioctl.go b/tests/tools/vendor/golang.org/x/sys/unix/ioctl.go index 8c9aaeb273..c279845448 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ioctl.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ioctl.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/openbsd_pledge.go b/tests/tools/vendor/golang.org/x/sys/unix/openbsd_pledge.go index 11388e5d4b..4ce482ee85 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/openbsd_pledge.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/openbsd_pledge.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build openbsd && (386 || amd64 || arm) // +build openbsd // +build 386 amd64 arm diff --git a/tests/tools/vendor/golang.org/x/sys/unix/pagesize_unix.go b/tests/tools/vendor/golang.org/x/sys/unix/pagesize_unix.go index bc2f3629a7..53f1b4c5b8 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/pagesize_unix.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/pagesize_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris // For Unix, get the pagesize from the runtime. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/race.go b/tests/tools/vendor/golang.org/x/sys/unix/race.go index 61712b51c9..6f6c5fec5a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/race.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/race.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build (darwin && race) || (linux && race) || (freebsd && race) // +build darwin,race linux,race freebsd,race package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/race0.go b/tests/tools/vendor/golang.org/x/sys/unix/race0.go index ad026678c7..64a6198344 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/race0.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/race0.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/sockcmsg_unix.go b/tests/tools/vendor/golang.org/x/sys/unix/sockcmsg_unix.go index f153c0673d..a53e76f45c 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/sockcmsg_unix.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/sockcmsg_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris // Socket control messages diff --git a/tests/tools/vendor/golang.org/x/sys/unix/str.go b/tests/tools/vendor/golang.org/x/sys/unix/str.go index 17fb698683..8ba89ed869 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/str.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/str.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall.go index 0d4b1d7a20..dec475c335 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris // Package unix contains an interface to the low-level operating system diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix.go index 86d7c7bd01..b0e4066c8a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix // +build aix // Aix system calls. @@ -22,7 +23,7 @@ import ( * Wrapped */ -//sys utimes(path string, times *[2]Timeval) (err error) +// sys utimes(path string, times *[2]Timeval) (err error) func Utimes(path string, tv []Timeval) error { if len(tv) != 2 { return EINVAL @@ -30,7 +31,7 @@ func Utimes(path string, tv []Timeval) error { return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) } -//sys utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) +// sys utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) func UtimesNano(path string, ts []Timespec) error { if len(ts) != 2 { return EINVAL @@ -276,12 +277,12 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e return -1, ENOSYS } -//sys getdirent(fd int, buf []byte) (n int, err error) +// sys getdirent(fd int, buf []byte) (n int, err error) func ReadDirent(fd int, buf []byte) (n int, err error) { return getdirent(fd, buf) } -//sys wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error) +// sys wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error) func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { var status _C_int var r Pid_t diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go index c28af1f86e..3401957375 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix -// +build ppc +//go:build aix && ppc +// +build aix,ppc package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go index 881cacc6cc..780c728f2b 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix -// +build ppc64 +//go:build aix && ppc64 +// +build aix,ppc64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_bsd.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_bsd.go index 33c8b5f0db..7b92d2e3a4 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_bsd.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_bsd.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build darwin || dragonfly || freebsd || netbsd || openbsd // +build darwin dragonfly freebsd netbsd openbsd // BSD system call wrappers shared by *BSD based systems diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin.go index 1aabc560d7..23bb68144b 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin.go @@ -77,7 +77,7 @@ func nametomib(name string) (mib []_C_int, err error) { return buf[0 : n/siz], nil } -//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) +// sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) } func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) } diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_386.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_386.go index b3ac109a2f..41c10fc3f4 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_386.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build 386 && darwin // +build 386,darwin package unix @@ -19,7 +20,7 @@ func setTimeval(sec, usec int64) Timeval { return Timeval{Sec: int32(sec), Usec: int32(usec)} } -//sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error) +// sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error) func Gettimeofday(tv *Timeval) (err error) { // The tv passed to gettimeofday must be non-nil // but is otherwise unused. The answers come back diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go index 75219444a8..b828743c9a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build amd64 && darwin // +build amd64,darwin package unix @@ -19,7 +20,7 @@ func setTimeval(sec, usec int64) Timeval { return Timeval{Sec: sec, Usec: int32(usec)} } -//sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error) +// sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error) func Gettimeofday(tv *Timeval) (err error) { // The tv passed to gettimeofday must be non-nil // but is otherwise unused. The answers come back diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go index faae207a47..d63d8046de 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go @@ -17,7 +17,7 @@ func setTimeval(sec, usec int64) Timeval { return Timeval{Sec: int32(sec), Usec: int32(usec)} } -//sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error) +// sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error) func Gettimeofday(tv *Timeval) (err error) { // The tv passed to gettimeofday must be non-nil // but is otherwise unused. The answers come back diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go index d6d9628014..62cfd9d182 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build arm64 && darwin // +build arm64,darwin package unix @@ -19,7 +20,7 @@ func setTimeval(sec, usec int64) Timeval { return Timeval{Sec: sec, Usec: int32(usec)} } -//sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error) +// sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error) func Gettimeofday(tv *Timeval) (err error) { // The tv passed to gettimeofday must be non-nil // but is otherwise unused. The answers come back diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_dragonfly.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_dragonfly.go index 79d125b30e..1ddf141de7 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_dragonfly.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_dragonfly.go @@ -67,12 +67,12 @@ func Pipe(p []int) (err error) { return } -//sys extpread(fd int, p []byte, flags int, offset int64) (n int, err error) +// sys extpread(fd int, p []byte, flags int, offset int64) (n int, err error) func Pread(fd int, p []byte, offset int64) (n int, err error) { return extpread(fd, p, 0, offset) } -//sys extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) +// sys extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) func Pwrite(fd int, p []byte, offset int64) (n int, err error) { return extpwrite(fd, p, 0, offset) } diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go index 9babb31ea7..87e6b50d73 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build amd64 && dragonfly // +build amd64,dragonfly package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go index 21e03958cd..49b059d799 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build 386 && freebsd // +build 386,freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go index 9c945a6579..d5b63c3b8e 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build amd64 && freebsd // +build amd64,freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go index 5cd6243f2a..4e49a52896 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build arm && freebsd // +build arm,freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux.go index eb6335402e..8f20d95591 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux.go @@ -494,24 +494,24 @@ func (sa *SockaddrL2) sockaddr() (unsafe.Pointer, _Socklen, error) { // // Server example: // -// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) -// _ = unix.Bind(fd, &unix.SockaddrRFCOMM{ -// Channel: 1, -// Addr: [6]uint8{0, 0, 0, 0, 0, 0}, // BDADDR_ANY or 00:00:00:00:00:00 -// }) -// _ = Listen(fd, 1) -// nfd, sa, _ := Accept(fd) -// fmt.Printf("conn addr=%v fd=%d", sa.(*unix.SockaddrRFCOMM).Addr, nfd) -// Read(nfd, buf) +// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) +// _ = unix.Bind(fd, &unix.SockaddrRFCOMM{ +// Channel: 1, +// Addr: [6]uint8{0, 0, 0, 0, 0, 0}, // BDADDR_ANY or 00:00:00:00:00:00 +// }) +// _ = Listen(fd, 1) +// nfd, sa, _ := Accept(fd) +// fmt.Printf("conn addr=%v fd=%d", sa.(*unix.SockaddrRFCOMM).Addr, nfd) +// Read(nfd, buf) // // Client example: // -// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) -// _ = Connect(fd, &SockaddrRFCOMM{ -// Channel: 1, -// Addr: [6]byte{0x11, 0x22, 0x33, 0xaa, 0xbb, 0xcc}, // CC:BB:AA:33:22:11 -// }) -// Write(fd, []byte(`hello`)) +// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) +// _ = Connect(fd, &SockaddrRFCOMM{ +// Channel: 1, +// Addr: [6]byte{0x11, 0x22, 0x33, 0xaa, 0xbb, 0xcc}, // CC:BB:AA:33:22:11 +// }) +// Write(fd, []byte(`hello`)) type SockaddrRFCOMM struct { // Addr represents a bluetooth address, byte ordering is little-endian. Addr [6]uint8 @@ -538,12 +538,12 @@ func (sa *SockaddrRFCOMM) sockaddr() (unsafe.Pointer, _Socklen, error) { // The SockaddrCAN struct must be bound to the socket file descriptor // using Bind before the CAN socket can be used. // -// // Read one raw CAN frame -// fd, _ := Socket(AF_CAN, SOCK_RAW, CAN_RAW) -// addr := &SockaddrCAN{Ifindex: index} -// Bind(fd, addr) -// frame := make([]byte, 16) -// Read(fd, frame) +// // Read one raw CAN frame +// fd, _ := Socket(AF_CAN, SOCK_RAW, CAN_RAW) +// addr := &SockaddrCAN{Ifindex: index} +// Bind(fd, addr) +// frame := make([]byte, 16) +// Read(fd, frame) // // The full SocketCAN documentation can be found in the linux kernel // archives at: https://www.kernel.org/doc/Documentation/networking/can.txt @@ -584,13 +584,13 @@ func (sa *SockaddrCAN) sockaddr() (unsafe.Pointer, _Socklen, error) { // Here is an example of using an AF_ALG socket with SHA1 hashing. // The initial socket setup process is as follows: // -// // Open a socket to perform SHA1 hashing. -// fd, _ := unix.Socket(unix.AF_ALG, unix.SOCK_SEQPACKET, 0) -// addr := &unix.SockaddrALG{Type: "hash", Name: "sha1"} -// unix.Bind(fd, addr) -// // Note: unix.Accept does not work at this time; must invoke accept() -// // manually using unix.Syscall. -// hashfd, _, _ := unix.Syscall(unix.SYS_ACCEPT, uintptr(fd), 0, 0) +// // Open a socket to perform SHA1 hashing. +// fd, _ := unix.Socket(unix.AF_ALG, unix.SOCK_SEQPACKET, 0) +// addr := &unix.SockaddrALG{Type: "hash", Name: "sha1"} +// unix.Bind(fd, addr) +// // Note: unix.Accept does not work at this time; must invoke accept() +// // manually using unix.Syscall. +// hashfd, _, _ := unix.Syscall(unix.SYS_ACCEPT, uintptr(fd), 0, 0) // // Once a file descriptor has been returned from Accept, it may be used to // perform SHA1 hashing. The descriptor is not safe for concurrent use, but @@ -599,39 +599,39 @@ func (sa *SockaddrCAN) sockaddr() (unsafe.Pointer, _Socklen, error) { // When hashing a small byte slice or string, a single Write and Read may // be used: // -// // Assume hashfd is already configured using the setup process. -// hash := os.NewFile(hashfd, "sha1") -// // Hash an input string and read the results. Each Write discards -// // previous hash state. Read always reads the current state. -// b := make([]byte, 20) -// for i := 0; i < 2; i++ { -// io.WriteString(hash, "Hello, world.") -// hash.Read(b) -// fmt.Println(hex.EncodeToString(b)) -// } -// // Output: -// // 2ae01472317d1935a84797ec1983ae243fc6aa28 -// // 2ae01472317d1935a84797ec1983ae243fc6aa28 +// // Assume hashfd is already configured using the setup process. +// hash := os.NewFile(hashfd, "sha1") +// // Hash an input string and read the results. Each Write discards +// // previous hash state. Read always reads the current state. +// b := make([]byte, 20) +// for i := 0; i < 2; i++ { +// io.WriteString(hash, "Hello, world.") +// hash.Read(b) +// fmt.Println(hex.EncodeToString(b)) +// } +// // Output: +// // 2ae01472317d1935a84797ec1983ae243fc6aa28 +// // 2ae01472317d1935a84797ec1983ae243fc6aa28 // // For hashing larger byte slices, or byte streams such as those read from // a file or socket, use Sendto with MSG_MORE to instruct the kernel to update // the hash digest instead of creating a new one for a given chunk and finalizing it. // -// // Assume hashfd and addr are already configured using the setup process. -// hash := os.NewFile(hashfd, "sha1") -// // Hash the contents of a file. -// f, _ := os.Open("/tmp/linux-4.10-rc7.tar.xz") -// b := make([]byte, 4096) -// for { -// n, err := f.Read(b) -// if err == io.EOF { -// break -// } -// unix.Sendto(hashfd, b[:n], unix.MSG_MORE, addr) -// } -// hash.Read(b) -// fmt.Println(hex.EncodeToString(b)) -// // Output: 85cdcad0c06eef66f805ecce353bec9accbeecc5 +// // Assume hashfd and addr are already configured using the setup process. +// hash := os.NewFile(hashfd, "sha1") +// // Hash the contents of a file. +// f, _ := os.Open("/tmp/linux-4.10-rc7.tar.xz") +// b := make([]byte, 4096) +// for { +// n, err := f.Read(b) +// if err == io.EOF { +// break +// } +// unix.Sendto(hashfd, b[:n], unix.MSG_MORE, addr) +// } +// hash.Read(b) +// fmt.Println(hex.EncodeToString(b)) +// // Output: 85cdcad0c06eef66f805ecce353bec9accbeecc5 // // For more information, see: http://www.chronox.de/crypto-API/crypto/userspace-if.html. type SockaddrALG struct { diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_386.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_386.go index 74bc098ce1..920d7c62ac 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_386.go @@ -5,6 +5,7 @@ // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // so that go vet can check that they are correct. +//go:build 386 && linux // +build 386,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go index 5f9b2454ad..3e3fc659af 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build amd64 && linux // +build amd64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go index 21a4946ba5..975e4b1997 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go @@ -2,8 +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 -// +build !gccgo +//go:build amd64 && linux && !gccgo +// +build amd64,linux,!gccgo package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_arm.go index 3ec7a9329d..2eaf7ed624 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_arm.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build arm && linux // +build arm,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go index 646f295ade..c7bde44a00 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build arm64 && linux // +build arm64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gc.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gc.go index c26e6ec231..04e68a85df 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gc.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gc.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && !gccgo // +build linux,!gccgo package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go index 070bd38994..010ab36705 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && !gccgo && 386 // +build linux,!gccgo,386 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go index 308eb7aecf..7740af2428 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && gccgo && 386 // +build linux,gccgo,386 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go index aa7fc9e199..e16a12299a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && gccgo && arm // +build linux,gccgo,arm package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go index ad991031c7..e33e5002bf 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && (mips64 || mips64le) // +build linux // +build mips64 mips64le diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go index 99e0e999a1..547d256ddb 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && (mips || mipsle) // +build linux // +build mips mipsle diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go index 6a38dfd5b1..8499125b9a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux && (ppc64 || ppc64le) // +build linux // +build ppc64 ppc64le diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go index 6e4ee0cf2a..76786a4c6b 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build s390x && linux // +build s390x,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go index 72e64187de..bfd31b5b7e 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build sparc64 && linux // +build sparc64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd.go index 6f8ebde3a4..e1e1a7106f 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd.go @@ -93,7 +93,7 @@ func nametomib(name string) (mib []_C_int, err error) { return mib, nil } -//sysnb pipe() (fd1 int, fd2 int, err error) +// sysnb pipe() (fd1 int, fd2 int, err error) func Pipe(p []int) (err error) { if len(p) != 2 { return EINVAL @@ -102,7 +102,7 @@ func Pipe(p []int) (err error) { return } -//sys getdents(fd int, buf []byte) (n int, err error) +// sys getdents(fd int, buf []byte) (n int, err error) func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { return getdents(fd, buf) } diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go index 24f74e58ce..d744a59108 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build 386 && netbsd // +build 386,netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go index 6878bf7ff9..91c6f690d4 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build amd64 && netbsd // +build amd64,netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go index dbbfcf71db..9e9ba0963e 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build arm && netbsd // +build arm,netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd.go index 07e6669cab..4044fe03d9 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd.go @@ -43,7 +43,7 @@ func nametomib(name string) (mib []_C_int, err error) { return nil, EINVAL } -//sysnb pipe(p *[2]_C_int) (err error) +// sysnb pipe(p *[2]_C_int) (err error) func Pipe(p []int) (err error) { if len(p) != 2 { return EINVAL @@ -55,7 +55,7 @@ func Pipe(p []int) (err error) { return } -//sys getdents(fd int, buf []byte) (n int, err error) +// sys getdents(fd int, buf []byte) (n int, err error) func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { return getdents(fd, buf) } diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go index 994964a916..7038b8548b 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build 386 && openbsd // +build 386,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go index 9a35334cba..2379bcd251 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build amd64 && openbsd // +build amd64,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go index 59844f5041..0b5be6844f 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build arm && openbsd // +build arm,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go index 91c32ddf02..daf28a8fb0 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build amd64 && solaris // +build amd64,solaris package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_unix.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_unix.go index 13956b7954..bbc0548829 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_unix.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/syscall_unix_gc.go b/tests/tools/vendor/golang.org/x/sys/unix/syscall_unix_gc.go index 4cb8e8edf1..23ff23cb93 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/syscall_unix_gc.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/syscall_unix_gc.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && !gccgo // +build darwin dragonfly freebsd linux netbsd openbsd solaris // +build !gccgo diff --git a/tests/tools/vendor/golang.org/x/sys/unix/timestruct.go b/tests/tools/vendor/golang.org/x/sys/unix/timestruct.go index 4a672f5694..938c2403ed 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/timestruct.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/timestruct.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/xattr_bsd.go b/tests/tools/vendor/golang.org/x/sys/unix/xattr_bsd.go index 930499324f..e5867fb015 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/xattr_bsd.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/xattr_bsd.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build freebsd || netbsd // +build freebsd netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go index 17c1537f26..22f00709e4 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go @@ -1,6 +1,7 @@ // mkerrors.sh -maix32 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc && aix // +build ppc,aix // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go index fdfd25ccde..4d6e6a69bf 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go @@ -1,6 +1,7 @@ // mkerrors.sh -maix64 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc64 && aix // +build ppc64,aix // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go index 3b39d7408a..0796cf9a38 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go @@ -1,6 +1,7 @@ // mkerrors.sh -m32 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && darwin // +build 386,darwin // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go index 8fe5547775..8e44837147 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go @@ -1,6 +1,7 @@ // mkerrors.sh -m64 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && darwin // +build amd64,darwin // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go index 7a977770d0..e80c5f2c67 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go @@ -1,6 +1,7 @@ // mkerrors.sh // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && darwin // +build arm,darwin // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go index 6d56d8a059..99b20d3890 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go @@ -1,6 +1,7 @@ // mkerrors.sh -m64 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm64 && darwin // +build arm64,darwin // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go index 1de6998946..77b2d911ff 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go @@ -1,6 +1,7 @@ // mkerrors.sh -m64 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && dragonfly // +build amd64,dragonfly // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go index d2bbaabc87..c5c1b5e78d 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go @@ -1,6 +1,7 @@ // mkerrors.sh -m32 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && freebsd // +build 386,freebsd // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go index 4f8db783d3..e4bbbef17f 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go @@ -1,6 +1,7 @@ // mkerrors.sh -m64 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && freebsd // +build amd64,freebsd // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go index 53e5de6051..5a4b557efc 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go @@ -1,6 +1,7 @@ // mkerrors.sh // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && freebsd // +build arm,freebsd // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_386.go index f33613ee9e..de319a25e6 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include -m32 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && linux // +build 386,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go index ccdbebf6ba..adf55b5029 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include -m64 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && linux // +build amd64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go index 770d4c7358..7cb948c9eb 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && linux // +build arm,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go index c3e311dbb0..abbf4e2aa4 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm64 && linux // +build arm64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go index 9fee271de9..d15fef2bb1 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mips && linux // +build mips,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go index d022427bec..51bde878a2 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mips64 && linux // +build mips64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go index 509faae72e..d4856cc764 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mips64le && linux // +build mips64le,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go index 340f78afcc..4d29e1eb93 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mipsle && linux // +build mipsle,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go index 4e80d6aafc..b88366c09e 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc64 && linux // +build ppc64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go index f22c0d68c0..0e8a3c3242 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc64le && linux // +build ppc64le,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go index 5a057da42b..48629eabdc 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -1,6 +1,7 @@ // mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build s390x && linux // +build s390x,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go index 7fdc85b172..85157f7083 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -1,6 +1,7 @@ // mkerrors.sh -m64 // Code generated by the command above; DO NOT EDIT. +//go:build sparc64 && linux // +build sparc64,linux // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go index 19316b1d09..0134541efe 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go @@ -1,6 +1,7 @@ // mkerrors.sh -m32 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && netbsd // +build 386,netbsd // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go index f2cf500f50..84ff1f5e5d 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go @@ -1,6 +1,7 @@ // mkerrors.sh -m64 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && netbsd // +build amd64,netbsd // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go index 858e29998d..abc71d03b1 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go @@ -1,6 +1,7 @@ // mkerrors.sh -marm // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && netbsd // +build arm,netbsd // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go index 7d92f2c53f..9dd443d0e3 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go @@ -1,6 +1,7 @@ // mkerrors.sh -m32 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && openbsd // +build 386,openbsd // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go index b0a7ebafcc..f156a5e718 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go @@ -1,6 +1,7 @@ // mkerrors.sh -m64 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && openbsd // +build amd64,openbsd // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go index 50c1d9f35d..457e5535da 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go @@ -4,6 +4,7 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- _const.go +//go:build arm && openbsd // +build arm,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go index 22569db31d..52e7d88351 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go @@ -1,6 +1,7 @@ // mkerrors.sh -m64 // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && solaris // +build amd64,solaris // Created by cgo -godefs - DO NOT EDIT diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zptrace386_linux.go b/tests/tools/vendor/golang.org/x/sys/unix/zptrace386_linux.go index 2d21c49e12..fbdb47d3b9 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zptrace386_linux.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zptrace386_linux.go @@ -1,5 +1,6 @@ // Code generated by linux/mkall.go generatePtracePair(386, amd64). DO NOT EDIT. +//go:build linux && (386 || amd64) // +build linux // +build 386 amd64 diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zptracearm_linux.go b/tests/tools/vendor/golang.org/x/sys/unix/zptracearm_linux.go index faf23bbed9..7a6c40fd68 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zptracearm_linux.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zptracearm_linux.go @@ -1,5 +1,6 @@ // Code generated by linux/mkall.go generatePtracePair(arm, arm64). DO NOT EDIT. +//go:build linux && (arm || arm64) // +build linux // +build arm arm64 diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zptracemips_linux.go b/tests/tools/vendor/golang.org/x/sys/unix/zptracemips_linux.go index c431131e63..d7525de43c 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zptracemips_linux.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zptracemips_linux.go @@ -1,5 +1,6 @@ // Code generated by linux/mkall.go generatePtracePair(mips, mips64). DO NOT EDIT. +//go:build linux && (mips || mips64) // +build linux // +build mips mips64 diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zptracemipsle_linux.go b/tests/tools/vendor/golang.org/x/sys/unix/zptracemipsle_linux.go index dc3d6d3732..61f2c040fa 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zptracemipsle_linux.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zptracemipsle_linux.go @@ -1,5 +1,6 @@ // Code generated by linux/mkall.go generatePtracePair(mipsle, mips64le). DO NOT EDIT. +//go:build linux && (mipsle || mips64le) // +build linux // +build mipsle mips64le diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go index 46d0652fb2..7dd7c4a7e3 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go @@ -1,6 +1,7 @@ // mksyscall_aix.pl -aix -tags aix,ppc syscall_aix.go syscall_aix_ppc.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build aix && ppc // +build aix,ppc package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go index b33f9eccfc..ba2732f35d 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go @@ -1,6 +1,7 @@ // mksyscall_aix.pl -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build aix && ppc64 // +build aix,ppc64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go index 9ce06df6e8..55ac8ed033 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -tags darwin,386 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build darwin && 386 // +build darwin,386 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go index de99270491..4bda008d24 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build darwin && amd64 // +build darwin,amd64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go index 81c4f09355..f0f2278a45 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -tags darwin,arm syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build darwin && arm // +build darwin,arm package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go index 338c32d409..06bf20aadf 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build darwin && arm64 // +build darwin,arm64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go index 91f36e9ec3..9d5e19b9c2 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go @@ -1,6 +1,7 @@ // mksyscall.pl -dragonfly -tags dragonfly,amd64 syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_amd64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build dragonfly && amd64 // +build dragonfly,amd64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go index ad77882b85..d295bb6a7e 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -tags freebsd,386 syscall_bsd.go syscall_freebsd.go syscall_freebsd_386.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build freebsd && 386 // +build freebsd,386 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go index d3ba6c46f2..95d8a1bb6b 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags freebsd,amd64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_amd64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build freebsd && amd64 // +build freebsd,amd64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go index 9dfd77b620..1404db7851 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -arm -tags freebsd,arm syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build freebsd && arm // +build freebsd,arm package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go index 8e8d427d6c..f7b8e67222 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -tags linux,386 syscall_linux.go syscall_linux_386.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && 386 // +build linux,386 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go index 2f60780ca3..6a477f9058 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags linux,amd64 syscall_linux.go syscall_linux_amd64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && amd64 // +build linux,amd64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go index d29a11c946..a75869adc9 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -arm -tags linux,arm syscall_linux.go syscall_linux_arm.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && arm // +build linux,arm package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go index d03eb29681..e3a8d37bfc 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags linux,arm64 syscall_linux.go syscall_linux_arm64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && arm64 // +build linux,arm64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go index dea09328b5..0675b312c0 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go @@ -1,6 +1,7 @@ // mksyscall.pl -b32 -arm -tags linux,mips syscall_linux.go syscall_linux_mipsx.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && mips // +build linux,mips package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go index 31bbcff446..77a4d8ce60 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags linux,mips64 syscall_linux.go syscall_linux_mips64x.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && mips64 // +build linux,mips64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go index e025a33aad..a4039e31dd 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags linux,mips64le syscall_linux.go syscall_linux_mips64x.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && mips64le // +build linux,mips64le package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go index 57d7d931d8..f6bb923cc2 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -arm -tags linux,mipsle syscall_linux.go syscall_linux_mipsx.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && mipsle // +build linux,mipsle package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go index f3fae1d144..c38e91ef6c 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags linux,ppc64 syscall_linux.go syscall_linux_ppc64x.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && ppc64 // +build linux,ppc64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go index 011b0a53b9..7d28169f84 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags linux,ppc64le syscall_linux.go syscall_linux_ppc64x.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && ppc64le // +build linux,ppc64le package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go index c637da95f7..b336b1c495 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags linux,s390x syscall_linux.go syscall_linux_s390x.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && s390x // +build linux,s390x package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go index b26aee9579..78729a2d94 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go @@ -1,6 +1,7 @@ // mksyscall.pl -tags linux,sparc64 syscall_linux.go syscall_linux_sparc64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build linux && sparc64 // +build linux,sparc64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go index f1874d5a13..52676b0d22 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -netbsd -tags netbsd,386 syscall_bsd.go syscall_netbsd.go syscall_netbsd_386.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build netbsd && 386 // +build netbsd,386 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go index eb80283971..5cf783529a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go @@ -1,6 +1,7 @@ // mksyscall.pl -netbsd -tags netbsd,amd64 syscall_bsd.go syscall_netbsd.go syscall_netbsd_amd64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build netbsd && amd64 // +build netbsd,amd64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go index 7b36499d5c..3aa98dd0ac 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -netbsd -arm -tags netbsd,arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build netbsd && arm // +build netbsd,arm package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go index 1942049b0f..9f90dc5ff3 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -openbsd -tags openbsd,386 syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build openbsd && 386 // +build openbsd,386 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go index d351c72cb7..63f601d7cb 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go @@ -1,6 +1,7 @@ // mksyscall.pl -openbsd -tags openbsd,amd64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build openbsd && amd64 // +build openbsd,amd64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go index 617d47f0f3..f9921bc993 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go @@ -1,6 +1,7 @@ // mksyscall.pl -l32 -openbsd -arm -tags openbsd,arm syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build openbsd && arm // +build openbsd,arm package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go index e2e5fc5e0a..6e2dd3a30a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go @@ -1,6 +1,7 @@ // mksyscall_solaris.pl -tags solaris,amd64 syscall_solaris.go syscall_solaris_amd64.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build solaris && amd64 // +build solaris,amd64 package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go index 90c95c2c75..1c060ebd26 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go @@ -1,6 +1,7 @@ // mksysctl_openbsd.pl // Code generated by the command above; DO NOT EDIT. +//go:build amd64 && openbsd // +build amd64,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go index d1d36da3f5..96551634f4 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go @@ -1,6 +1,7 @@ // mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/syscall.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && darwin // +build 386,darwin package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go index e35de4145e..ed2fd17b68 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go @@ -1,6 +1,7 @@ // mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/syscall.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && darwin // +build amd64,darwin package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go index f2df27db2c..8d72b33b60 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go @@ -1,6 +1,7 @@ // mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && darwin // +build arm,darwin package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go index 9694630232..08f6054af8 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go @@ -1,6 +1,7 @@ // mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm64 && darwin // +build arm64,darwin package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go index b2c9ef81b8..94b29e4305 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go @@ -1,6 +1,7 @@ // mksysnum_dragonfly.pl // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && dragonfly // +build amd64,dragonfly package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go index 1ab8780c3b..d3beeaaedb 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go @@ -1,6 +1,7 @@ // mksysnum_freebsd.pl // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && freebsd // +build 386,freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go index b66f900dff..bb1b711115 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go @@ -1,6 +1,7 @@ // mksysnum_freebsd.pl // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && freebsd // +build amd64,freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go index d61941ba7e..15f91ec286 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go @@ -1,6 +1,7 @@ // mksysnum_freebsd.pl // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && freebsd // +build arm,freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go index 8f33ece7c3..89514c7416 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include -m32 /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && linux // +build 386,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go index 70c1a2c120..16445ba90f 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include -m64 /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && linux // +build amd64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go index a1db143f82..426743b1dc 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && linux // +build arm,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go index 2e4cee70d8..1debcd52fb 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include -fsigned-char /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm64 && linux // +build arm64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go index 16714491a7..2ce60848e2 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mips && linux // +build mips,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go index 1270a1c90b..e563c3637b 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mips64 && linux // +build mips64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go index 93980be13b..004339d812 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mips64le && linux // +build mips64le,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go index 0fc7726195..5b7a6bd2b9 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mipsle && linux // +build mipsle,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go index a5c5f3def5..9aee5cf2e0 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc64 && linux // +build ppc64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go index 5470eadbf8..dbd8a505b2 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc64le && linux // +build ppc64le,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go index de0245a925..54d8444f57 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -1,6 +1,7 @@ // linux/mksysnum.pl -Wall -Werror -static -I/tmp/include -fsigned-char /tmp/include/asm/unistd.h // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build s390x && linux // +build s390x,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go index 2d09936721..20d737d732 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -1,6 +1,7 @@ // mksysnum_linux.pl -Ilinux/usr/include -m64 -D__arch64__ linux/usr/include/asm/unistd.h // Code generated by the command above; DO NOT EDIT. +//go:build sparc64 && linux // +build sparc64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go index f0daa05a9c..3dfc515a9e 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go @@ -1,6 +1,7 @@ // mksysnum_netbsd.pl // Code generated by the command above; DO NOT EDIT. +//go:build 386 && netbsd // +build 386,netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go index ddb25b94f3..d7a0a9428e 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go @@ -1,6 +1,7 @@ // mksysnum_netbsd.pl // Code generated by the command above; DO NOT EDIT. +//go:build amd64 && netbsd // +build amd64,netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go index 315bd63f89..edaae22aef 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go @@ -1,6 +1,7 @@ // mksysnum_netbsd.pl // Code generated by the command above; DO NOT EDIT. +//go:build arm && netbsd // +build arm,netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go index 07787301f0..8d792ef2ca 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go @@ -1,6 +1,7 @@ // mksysnum_openbsd.pl // Code generated by the command above; DO NOT EDIT. +//go:build 386 && openbsd // +build 386,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go index bc7fa57956..68730a0aa0 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go @@ -1,6 +1,7 @@ // mksysnum_openbsd.pl // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && openbsd // +build amd64,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go index 7a1693acbc..1092a3def5 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go @@ -1,6 +1,7 @@ // mksysnum_openbsd.pl // Code generated by the command above; DO NOT EDIT. +//go:build arm && openbsd // +build arm,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go index ee455365f3..49d6df0ac2 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go @@ -1,6 +1,7 @@ // cgo -godefs types_aix.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc && aix // +build ppc,aix package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go index cdb1699d56..816c85de76 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go @@ -1,6 +1,7 @@ // cgo -godefs types_aix.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc64 && aix // +build ppc64,aix package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go index 327af5fba1..c05776fe1c 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go @@ -1,6 +1,7 @@ // cgo -godefs types_darwin.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && darwin // +build 386,darwin package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go index 116e6e0757..0083799bd9 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go @@ -1,6 +1,7 @@ // cgo -godefs types_darwin.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && darwin // +build amd64,darwin package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go index 2750ad7607..f9b6ee7dcc 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go @@ -2,6 +2,7 @@ // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_darwin.go +//go:build arm && darwin // +build arm,darwin package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go index 8cead0996c..4f72cae650 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go @@ -1,6 +1,7 @@ // cgo -godefs types_darwin.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm64 && darwin // +build arm64,darwin package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go index c01ae67016..a37d4bec00 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go @@ -1,6 +1,7 @@ // cgo -godefs types_dragonfly.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && dragonfly // +build amd64,dragonfly package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go index 8006c5638e..554862b636 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go @@ -1,6 +1,7 @@ // cgo -godefs types_freebsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && freebsd // +build 386,freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go index 716774ded0..f9d3e07b3b 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go @@ -1,6 +1,7 @@ // cgo -godefs types_freebsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && freebsd // +build amd64,freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go index 92e07b00f5..3c05345b6f 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go @@ -1,6 +1,7 @@ // cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && freebsd // +build arm,freebsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_386.go index cb3729eabb..29fee028ac 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_386.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && linux // +build 386,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go index 0f3c0fb545..db2c0f019d 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && linux // +build amd64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go index bd534da877..8e1d155515 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && linux // +build arm,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go index 3a72fd9f10..bcec74c048 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm64 && linux // +build arm64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go index cd360b2709..df766ee9c9 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mips && linux // +build mips,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go index d35ec60227..84a8413d39 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mips64 && linux // +build mips64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go index 0f4993024b..c6814f0a36 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mips64le && linux // +build mips64le,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go index 55f97c5cc4..6053e132a1 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build mipsle && linux // +build mipsle,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go index f1d4264453..c7687765f9 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc64 && linux // +build ppc64,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go index 90ab1f7afe..6ce05bd551 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build ppc64le && linux // +build ppc64le,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go index 898ac45140..bd489d65f0 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go @@ -1,6 +1,7 @@ // cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build s390x && linux // +build s390x,linux package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go index 8e7384b89c..b5707c007d 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go @@ -1,4 +1,6 @@ +//go:build sparc64 && linux // +build sparc64,linux + // Created by cgo -godefs - DO NOT EDIT // cgo -godefs types_linux.go | go run mkpost.go diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go index 4b86fb2b33..f43749039c 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go @@ -1,6 +1,7 @@ // cgo -godefs types_netbsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && netbsd // +build 386,netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go index 9048a509d0..08bfc6245a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go @@ -1,6 +1,7 @@ // cgo -godefs types_netbsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && netbsd // +build amd64,netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go index 00525e7b02..5dd158c26a 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go @@ -1,6 +1,7 @@ // cgo -godefs types_netbsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && netbsd // +build arm,netbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go index 231f4e8ef3..0072d725ed 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go @@ -1,6 +1,7 @@ // cgo -godefs types_openbsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build 386 && openbsd // +build 386,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go index bb2c44886e..808926febe 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go @@ -1,6 +1,7 @@ // cgo -godefs types_openbsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && openbsd // +build amd64,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go index 941367cab8..9f0a6f06c3 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go @@ -1,6 +1,7 @@ // cgo -godefs types_openbsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build arm && openbsd // +build arm,openbsd package unix diff --git a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go index 0543e1a49a..4d1919c55c 100644 --- a/tests/tools/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go +++ b/tests/tools/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go @@ -1,6 +1,7 @@ // cgo -godefs types_solaris.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. +//go:build amd64 && solaris // +build amd64,solaris package unix