mirror of
https://github.com/golang/sys.git
synced 2026-02-08 19:56:04 +03:00
Rather than listing OpenBSD architectures that are using libc, list the one that is still blocked on direct system calls. This will simplify the addition of new OpenBSD ports. Updates golang/go#36435 Change-Id: I8d1d16a033245af436d955b5fa6ceeaa1f2a9f6b Reviewed-on: https://go-review.googlesource.com/c/sys/+/439975 Run-TryBot: Joel Sing <joel@sing.id.au> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
28 lines
1.1 KiB
Go
28 lines
1.1 KiB
Go
// Copyright 2022 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.
|
|
|
|
//go:build openbsd && !mips64
|
|
// +build openbsd,!mips64
|
|
|
|
package unix
|
|
|
|
import _ "unsafe"
|
|
|
|
// Implemented in the runtime package (runtime/sys_openbsd3.go)
|
|
func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
|
func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
|
func syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2 uintptr, err Errno)
|
|
func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
|
func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
|
|
|
//go:linkname syscall_syscall syscall.syscall
|
|
//go:linkname syscall_syscall6 syscall.syscall6
|
|
//go:linkname syscall_syscall10 syscall.syscall10
|
|
//go:linkname syscall_rawSyscall syscall.rawSyscall
|
|
//go:linkname syscall_rawSyscall6 syscall.rawSyscall6
|
|
|
|
func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) {
|
|
return syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, 0)
|
|
}
|