From c408266e2861513eac79d999f7553dc93992a965 Mon Sep 17 00:00:00 2001 From: Vladimir Stefanovic Date: Tue, 18 Oct 2016 23:50:59 +0200 Subject: [PATCH] internal/syscall/unix: add randomTrap const for GOARCH=mips{,le} Change-Id: I76c62a7b79ea526f59f281e933e4fd431539d2da Reviewed-on: https://go-review.googlesource.com/31486 Reviewed-by: Cherry Zhang --- src/internal/syscall/unix/getrandom_linux_mipsx.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/internal/syscall/unix/getrandom_linux_mipsx.go diff --git a/src/internal/syscall/unix/getrandom_linux_mipsx.go b/src/internal/syscall/unix/getrandom_linux_mipsx.go new file mode 100644 index 0000000000..af7b7229b1 --- /dev/null +++ b/src/internal/syscall/unix/getrandom_linux_mipsx.go @@ -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 mips mipsle + +package unix + +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +const randomTrap uintptr = 4353 -- 2.48.1