mirror of
https://github.com/rwinkhart/sys.git
synced 2026-10-27 19:59:59 -04:00
unix: drop support for pre-1.12 direct syscalls on darwin
Go 1.12 and newer are using libSystem for syscalls on darwin. Go 1.11 is the last release to use direct syscalls. It hasn't been supported since the release of Go 1.13 in September 2019, so drop support for direct syscalls. Change-Id: I2baf6f3d1031de8e474dc770369a25147e5efe2a Reviewed-on: https://go-review.googlesource.com/c/sys/+/250437 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
1 parent
f9321e4c35
commit
6fcdbc0bbc
17 files changed
-8990
No files matched your search
@@ -46,10 +46,6 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
|
||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
||||
|
||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||
// of darwin/arm64 the syscall is called sysctl instead of __sysctl.
|
||||
const SYS___SYSCTL = SYS_SYSCTL
|
||||
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||
|
||||
Reference in new issue
Block a user