diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go index d6d9628..52dcd88 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go | |||
@@ -8,7 +8,6 @@ package unix | |||
8 | 8 | ||
9 | import ( | 9 | import ( |
10 | "syscall" | 10 | "syscall" |
11 | "unsafe" | ||
12 | ) | 11 | ) |
13 | 12 | ||
14 | func setTimespec(sec, nsec int64) Timespec { | 13 | func setTimespec(sec, nsec int64) Timespec { |
@@ -48,21 +47,20 @@ func (cmsg *Cmsghdr) SetLen(length int) { | |||
48 | cmsg.Len = uint32(length) | 47 | cmsg.Len = uint32(length) |
49 | } | 48 | } |
50 | 49 | ||
51 | func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { | ||
52 | var length = uint64(count) | ||
53 | |||
54 | _, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe.Pointer(&length)), 0, 0) | ||
55 | |||
56 | written = int(length) | ||
57 | |||
58 | if e1 != 0 { | ||
59 | err = e1 | ||
60 | } | ||
61 | return | ||
62 | } | ||
63 | |||
64 | func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic | 50 | func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic |
65 | 51 | ||
66 | // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions | 52 | // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions |
67 | // of darwin/arm64 the syscall is called sysctl instead of __sysctl. | 53 | // of darwin/arm64 the syscall is called sysctl instead of __sysctl. |
68 | const SYS___SYSCTL = SYS_SYSCTL | 54 | const SYS___SYSCTL = SYS_SYSCTL |
55 | |||
56 | //sys Fstat(fd int, stat *Stat_t) (err error) | ||
57 | //sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) | ||
58 | //sys Fstatfs(fd int, stat *Statfs_t) (err error) | ||
59 | //sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT | ||
60 | //sys Lstat(path string, stat *Stat_t) (err error) | ||
61 | //sys Stat(path string, stat *Stat_t) (err error) | ||
62 | //sys Statfs(path string, stat *Statfs_t) (err error) | ||
63 | |||
64 | func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { | ||
65 | return 0, ENOSYS | ||
66 | } | ||