mirror of https://github.com/golang/go.git
remove annotations
This commit is contained in:
parent
66e1b34659
commit
fc0171881a
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue