diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-05-02 14:43:35 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-05-02 14:43:35 +0000 |
commit | 34efdaf078b01a7387007c4e6bde6db86384c4b7 (patch) | |
tree | d503eaf41d085669d1481bb46ec038bc866fece6 /libgo/go/internal/syscall/unix/getrandom_linux_generic.go | |
parent | f733cf303bcdc952c92b81dd62199a40a1f555ec (diff) | |
download | gcc-tarball-master.tar.gz |
gcc-7.1.0gcc-7.1.0
Diffstat (limited to 'libgo/go/internal/syscall/unix/getrandom_linux_generic.go')
-rw-r--r-- | libgo/go/internal/syscall/unix/getrandom_linux_generic.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_generic.go b/libgo/go/internal/syscall/unix/getrandom_linux_generic.go index 0e632dc27a..8425800b6d 100644 --- a/libgo/go/internal/syscall/unix/getrandom_linux_generic.go +++ b/libgo/go/internal/syscall/unix/getrandom_linux_generic.go @@ -1,4 +1,4 @@ -// Copyright 2014 The Go Authors. All rights reserved. +// Copyright 2014 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. @@ -6,4 +6,11 @@ package unix +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +// +// This file is named "generic" because at a certain point Linux +// started standardizing on system call numbers across +// architectures. So far this means only arm64 uses the standard +// numbers. const randomTrap uintptr = 278 |