internal/syscall/unix: add getrandom syscall for MIPS and SPARC

Reviewed-on: https://go-review.googlesource.com/29678

From-SVN: r240457
This commit is contained in:
Ian Lance Taylor 2016-09-23 21:00:43 +00:00
parent 4a8d4422b0
commit 6465652c87
5 changed files with 35 additions and 2 deletions

View File

@ -1,4 +1,4 @@
57bf3f21005c4508003f65207282c057e3526ec0
28b79f1d5a3a8924329128999a21d0693e08a603
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.

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 mips64 mips64le
// +build mips64 mips64le mipsn64 mipso64
package unix

View File

@ -0,0 +1,11 @@
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build mipsn32
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 6317

View File

@ -0,0 +1,11 @@
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build mipso32
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 4353

View File

@ -0,0 +1,11 @@
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build sparc sparc64
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 347