diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-01-30 04:48:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-01-30 04:48:55 +0000 |
commit | 111c8b4ce9f4267fd39d846d1bb20144a10154d2 (patch) | |
tree | ddf983e622d5585cda0fcdb353d0015b809ee387 /libgo/go/internal/syscall/unix/getrandom_linux_shx.go | |
parent | a8e4cea41c3e81c33b243ba75de772a5426b82bf (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
From-SVN: r257171
Diffstat (limited to 'libgo/go/internal/syscall/unix/getrandom_linux_shx.go')
-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 |