mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
6d068bc25b
Update golang.org/x/sys to 95c6576299259db960f6c5b9b69ea52422860fce in order to get the unix.Utsname with byte array instead of int8/uint8 members. This allows to use simple byte slice to string conversions instead of using charsToString or its open-coded version. Also see golang/go#20753 for details. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
50 lines
1.4 KiB
Go
50 lines
1.4 KiB
Go
// Code generated by linux/mkall.go generatePtracePair(mipsle, mips64le). DO NOT EDIT.
|
|
|
|
// +build linux
|
|
// +build mipsle mips64le
|
|
|
|
package unix
|
|
|
|
import "unsafe"
|
|
|
|
// PtraceRegsMipsle is the registers used by mipsle binaries.
|
|
type PtraceRegsMipsle struct {
|
|
Regs [32]uint64
|
|
Lo uint64
|
|
Hi uint64
|
|
Epc uint64
|
|
Badvaddr uint64
|
|
Status uint64
|
|
Cause uint64
|
|
}
|
|
|
|
// PtraceGetRegsMipsle fetches the registers used by mipsle binaries.
|
|
func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error {
|
|
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
}
|
|
|
|
// PtraceSetRegsMipsle sets the registers used by mipsle binaries.
|
|
func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error {
|
|
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
}
|
|
|
|
// PtraceRegsMips64le is the registers used by mips64le binaries.
|
|
type PtraceRegsMips64le struct {
|
|
Regs [32]uint64
|
|
Lo uint64
|
|
Hi uint64
|
|
Epc uint64
|
|
Badvaddr uint64
|
|
Status uint64
|
|
Cause uint64
|
|
}
|
|
|
|
// PtraceGetRegsMips64le fetches the registers used by mips64le binaries.
|
|
func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error {
|
|
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
}
|
|
|
|
// PtraceSetRegsMips64le sets the registers used by mips64le binaries.
|
|
func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error {
|
|
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
}
|