From fc0171881a76f28c5bdd642e437dc2a86f0a8c88 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 20 Jun 2018 17:23:42 +0100 Subject: [PATCH] remove annotations --- src/internal/syscall/unix/getrandom_freebsd.go | 4 ---- src/internal/syscall/unix/getrandom_freebsd_generic.go | 2 -- src/internal/syscall/unix/getrandom_linux.go | 2 -- src/internal/syscall/unix/getrandom_linux_386.go | 2 -- src/internal/syscall/unix/getrandom_linux_amd64.go | 2 -- src/internal/syscall/unix/getrandom_linux_arm.go | 2 -- src/internal/syscall/unix/getrandom_linux_mips64x.go | 2 +- src/internal/syscall/unix/getrandom_linux_mipsx.go | 2 +- src/internal/syscall/unix/getrandom_linux_ppc64x.go | 2 +- 9 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/internal/syscall/unix/getrandom_freebsd.go b/src/internal/syscall/unix/getrandom_freebsd.go index 332c639ee1..178e4d4a34 100644 --- a/src/internal/syscall/unix/getrandom_freebsd.go +++ b/src/internal/syscall/unix/getrandom_freebsd.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build freebsd - package unix import ( @@ -28,7 +26,6 @@ const ( // GetRandom calls the Linux getrandom system call. // See https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895 func GetRandom(p []byte, flags GetRandomFlag) (n int, err error) { - print("AAAAAA\n") if randomTrap == 0 { return 0, syscall.ENOSYS } @@ -42,7 +39,6 @@ func GetRandom(p []byte, flags GetRandomFlag) (n int, err error) { uintptr(unsafe.Pointer(&p[0])), uintptr(len(p)), uintptr(flags)) - print("BBBBBB\n") if errno != 0 { if errno == syscall.ENOSYS { atomic.StoreInt32(&randomUnsupported, 1) diff --git a/src/internal/syscall/unix/getrandom_freebsd_generic.go b/src/internal/syscall/unix/getrandom_freebsd_generic.go index 681549d0e3..88fe98ecad 100644 --- a/src/internal/syscall/unix/getrandom_freebsd_generic.go +++ b/src/internal/syscall/unix/getrandom_freebsd_generic.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build freebsd - package unix // FreeBSD getrandom system call number. diff --git a/src/internal/syscall/unix/getrandom_linux.go b/src/internal/syscall/unix/getrandom_linux.go index 7e2c106e4d..0d0d4f115c 100644 --- a/src/internal/syscall/unix/getrandom_linux.go +++ b/src/internal/syscall/unix/getrandom_linux.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build linux - package unix import ( diff --git a/src/internal/syscall/unix/getrandom_linux_386.go b/src/internal/syscall/unix/getrandom_linux_386.go index 70186a78b5..a583896e68 100644 --- a/src/internal/syscall/unix/getrandom_linux_386.go +++ b/src/internal/syscall/unix/getrandom_linux_386.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build linux,i386 - package unix // Linux getrandom system call number. diff --git a/src/internal/syscall/unix/getrandom_linux_amd64.go b/src/internal/syscall/unix/getrandom_linux_amd64.go index 220f7b9626..cff0eb6f05 100644 --- a/src/internal/syscall/unix/getrandom_linux_amd64.go +++ b/src/internal/syscall/unix/getrandom_linux_amd64.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build linux,amd64 - package unix // Linux getrandom system call number. diff --git a/src/internal/syscall/unix/getrandom_linux_arm.go b/src/internal/syscall/unix/getrandom_linux_arm.go index 2c03251f66..92e2492cd0 100644 --- a/src/internal/syscall/unix/getrandom_linux_arm.go +++ b/src/internal/syscall/unix/getrandom_linux_arm.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// build: linux - package unix // Linux getrandom system call number. diff --git a/src/internal/syscall/unix/getrandom_linux_mips64x.go b/src/internal/syscall/unix/getrandom_linux_mips64x.go index 4132fd0a7e..b328b8f1f0 100644 --- a/src/internal/syscall/unix/getrandom_linux_mips64x.go +++ b/src/internal/syscall/unix/getrandom_linux_mips64x.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build linux,mips64 mips64le +// +build mips64 mips64le package unix diff --git a/src/internal/syscall/unix/getrandom_linux_mipsx.go b/src/internal/syscall/unix/getrandom_linux_mipsx.go index 534f54317c..af7b7229b1 100644 --- a/src/internal/syscall/unix/getrandom_linux_mipsx.go +++ b/src/internal/syscall/unix/getrandom_linux_mipsx.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build linux,mips mipsle +// +build mips mipsle package unix diff --git a/src/internal/syscall/unix/getrandom_linux_ppc64x.go b/src/internal/syscall/unix/getrandom_linux_ppc64x.go index 048cd9f62d..9b6e9722be 100644 --- a/src/internal/syscall/unix/getrandom_linux_ppc64x.go +++ b/src/internal/syscall/unix/getrandom_linux_ppc64x.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build linux,ppc64 ppc64le +// +build ppc64 ppc64le package unix