summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-03-27 08:00:01 +0100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-27 19:06:21 +1100
commit6a5d8ba8595702dc0715d4aa67bc65dbb55f8f91 (patch)
tree48dcac72b604836e4e29a3b678ade94dfe2acc3c /vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
parent320e2a653646e86e8093fa9427f2229bca0b7523 (diff)
vendor: replace go-git package
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go')
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
index 697700831..4ea45bce5 100644
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
@@ -54,3 +54,9 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
}
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
+
+func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
+ ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
+ err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
+ return int(ioDesc.Len), err
+}