diff options
author | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
---|---|---|
committer | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
commit | 15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (patch) | |
tree | 255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/golang.org/x/sys/unix/zptracemips_linux.go | |
parent | 07971ca38143c5faf951d152fba370ddcbe26ad5 (diff) | |
download | terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.gz terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.zst terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.zip |
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
Updated via: go get github.com/hashicorp/terraform@sdk-v0.11-with-go-modules and go mod tidy
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zptracemips_linux.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zptracemips_linux.go | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/zptracemips_linux.go b/vendor/golang.org/x/sys/unix/zptracemips_linux.go new file mode 100644 index 0000000..c431131 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zptracemips_linux.go | |||
@@ -0,0 +1,50 @@ | |||
1 | // Code generated by linux/mkall.go generatePtracePair(mips, mips64). DO NOT EDIT. | ||
2 | |||
3 | // +build linux | ||
4 | // +build mips mips64 | ||
5 | |||
6 | package unix | ||
7 | |||
8 | import "unsafe" | ||
9 | |||
10 | // PtraceRegsMips is the registers used by mips binaries. | ||
11 | type PtraceRegsMips struct { | ||
12 | Regs [32]uint64 | ||
13 | Lo uint64 | ||
14 | Hi uint64 | ||
15 | Epc uint64 | ||
16 | Badvaddr uint64 | ||
17 | Status uint64 | ||
18 | Cause uint64 | ||
19 | } | ||
20 | |||
21 | // PtraceGetRegsMips fetches the registers used by mips binaries. | ||
22 | func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error { | ||
23 | return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) | ||
24 | } | ||
25 | |||
26 | // PtraceSetRegsMips sets the registers used by mips binaries. | ||
27 | func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error { | ||
28 | return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) | ||
29 | } | ||
30 | |||
31 | // PtraceRegsMips64 is the registers used by mips64 binaries. | ||
32 | type PtraceRegsMips64 struct { | ||
33 | Regs [32]uint64 | ||
34 | Lo uint64 | ||
35 | Hi uint64 | ||
36 | Epc uint64 | ||
37 | Badvaddr uint64 | ||
38 | Status uint64 | ||
39 | Cause uint64 | ||
40 | } | ||
41 | |||
42 | // PtraceGetRegsMips64 fetches the registers used by mips64 binaries. | ||
43 | func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error { | ||
44 | return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) | ||
45 | } | ||
46 | |||
47 | // PtraceSetRegsMips64 sets the registers used by mips64 binaries. | ||
48 | func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error { | ||
49 | return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) | ||
50 | } | ||