syscall_unix_gc_ppc64x.go 798 B

123456789101112131415161718192021222324
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build linux
  5. // +build ppc64le ppc64
  6. // +build !gccgo
  7. package unix
  8. import "syscall"
  9. func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
  10. return syscall.Syscall(trap, a1, a2, a3)
  11. }
  12. func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
  13. return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6)
  14. }
  15. func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
  16. return syscall.RawSyscall(trap, a1, a2, a3)
  17. }
  18. func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
  19. return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6)
  20. }