remove annotations

This commit is contained in:
David Carlier 2018-06-20 17:23:42 +01:00
parent 66e1b34659
commit fc0171881a
9 changed files with 3 additions and 17 deletions

View File

@ -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)

View File

@ -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.

View File

@ -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 (

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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