github.com/ebiten/purego@v0.0.0-20220525025155-0f6873f42222/runtime.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: 2022 The Ebiten Authors 3 4 //go:build darwin 5 // +build darwin 6 7 package purego 8 9 import ( 10 "unsafe" 11 ) 12 13 //go:linkname syscall_syscall6X syscall.syscall6X 14 func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) // from runtime/sys_darwin_64.s 15 16 //go:linkname runtime_libcCall runtime.libcCall 17 //go:linkname runtime_entersyscall runtime.entersyscall 18 //go:linkname runtime_exitsyscall runtime.exitsyscall 19 func runtime_libcCall(fn, arg unsafe.Pointer) int32 // from runtime/sys_libc.go 20 func runtime_entersyscall() // from runtime/proc.go 21 func runtime_exitsyscall() // from runtime/proc.go