diff options
Diffstat (limited to 'libgo/go/internal/syscall/unix/getrandom_dragonfly.go')
-rw-r--r-- | libgo/go/internal/syscall/unix/getrandom_dragonfly.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libgo/go/internal/syscall/unix/getrandom_dragonfly.go b/libgo/go/internal/syscall/unix/getrandom_dragonfly.go new file mode 100644 index 00000000000..fbf78f9de80 --- /dev/null +++ b/libgo/go/internal/syscall/unix/getrandom_dragonfly.go @@ -0,0 +1,16 @@ +// Copyright 2021 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. + +package unix + +// DragonFlyBSD getrandom system call number. +const getrandomTrap uintptr = 550 + +const ( + // GRND_RANDOM is only set for portability purpose, no-op on DragonFlyBSD. + GRND_RANDOM GetRandomFlag = 0x0001 + + // GRND_NONBLOCK means return EAGAIN rather than blocking. + GRND_NONBLOCK GetRandomFlag = 0x0002 +) |