diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-01-30 04:48:55 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-01-30 04:48:55 +0000 |
commit | 546375fa99d73b71f8f22d317afe3513917eee57 (patch) | |
tree | ddf983e622d5585cda0fcdb353d0015b809ee387 /libgo | |
parent | 0feba8ce47150fa0b80a57078860aa6a01ff3bde (diff) |
internal/syscall/unix: add randomTrap for sh/shbe
CL 84555 added support for the SuperH architecture, but didn't add the
randomTrap definition to be used for the getrandom syscall on Linux.
Add it now.
Reviewed-on: https://go-review.googlesource.com/90535
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257171 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/internal/syscall/unix/getrandom_linux_shx.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_shx.go b/libgo/go/internal/syscall/unix/getrandom_linux_shx.go new file mode 100644 index 00000000000..e0e3521a704 --- /dev/null +++ b/libgo/go/internal/syscall/unix/getrandom_linux_shx.go @@ -0,0 +1,11 @@ +// Copyright 2018 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 sh shbe + +package unix + +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +const randomTrap uintptr = 373 |