mirror of
https://github.com/cheat/cheat.git
synced 2024-09-19 18:11:30 +02:00
55b18b4897
commit 95479c8ad744db48386a5c78e54ef8da80e9120b Author: Chris Lane <chris@chris-allen-lane.com> Date: Wed Apr 28 12:26:32 2021 -0400 chore(version): bump version to 4.2.1 commit6956f51cae
Author: Chris Lane <chris@chris-allen-lane.com> Date: Wed Apr 28 12:24:21 2021 -0400 fix(Makefile): `vendor-update` Update the `vendor-update` build target to run `go mod vendor` after updating dependencies. commit0aca411279
Author: Chris Lane <chris@chris-allen-lane.com> Date: Wed Apr 28 12:23:24 2021 -0400 chore(deps): update dependencies commite847956b02
Author: Chris Lane <chris@chris-allen-lane.com> Date: Wed Apr 28 08:26:51 2021 -0400 chore(deps): build updates - Upgrade `go` to `1.16.3` - Attempt to fix build errors regarding dependencies
35 lines
1.4 KiB
Go
35 lines
1.4 KiB
Go
// Copyright 2018 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 darwin && go1.12
|
|
// +build darwin,go1.12
|
|
|
|
package unix
|
|
|
|
import "unsafe"
|
|
|
|
// Implemented in the runtime package (runtime/sys_darwin.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_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
|
func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) // 32-bit only
|
|
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)
|
|
func syscall_syscallPtr(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
|
|
|
//go:linkname syscall_syscall syscall.syscall
|
|
//go:linkname syscall_syscall6 syscall.syscall6
|
|
//go:linkname syscall_syscall6X syscall.syscall6X
|
|
//go:linkname syscall_syscall9 syscall.syscall9
|
|
//go:linkname syscall_rawSyscall syscall.rawSyscall
|
|
//go:linkname syscall_rawSyscall6 syscall.rawSyscall6
|
|
//go:linkname syscall_syscallPtr syscall.syscallPtr
|
|
|
|
// Find the entry point for f. See comments in runtime/proc.go for the
|
|
// function of the same name.
|
|
//go:nosplit
|
|
func funcPC(f func()) uintptr {
|
|
return **(**uintptr)(unsafe.Pointer(&f))
|
|
}
|