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:
parent
4a8d4422b0
commit
6465652c87
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue