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(mips, mips64). DO NOT EDIT.
|
|
|
|
// +build linux
|
|
// +build mips mips64
|
|
|
|
package unix
|
|
|
|
import "unsafe"
|
|
|
|
// PtraceRegsMips is the registers used by mips binaries.
|
|
type PtraceRegsMips struct {
|
|
Regs [32]uint64
|
|
Lo uint64
|
|
Hi uint64
|
|
Epc uint64
|
|
Badvaddr uint64
|
|
Status uint64
|
|
Cause uint64
|
|
}
|
|
|
|
// PtraceGetRegsMips fetches the registers used by mips binaries.
|
|
func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error {
|
|
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
}
|
|
|
|
// PtraceSetRegsMips sets the registers used by mips binaries.
|
|
func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error {
|
|
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
}
|
|
|
|
// PtraceRegsMips64 is the registers used by mips64 binaries.
|
|
type PtraceRegsMips64 struct {
|
|
Regs [32]uint64
|
|
Lo uint64
|
|
Hi uint64
|
|
Epc uint64
|
|
Badvaddr uint64
|
|
Status uint64
|
|
Cause uint64
|
|
}
|
|
|
|
// PtraceGetRegsMips64 fetches the registers used by mips64 binaries.
|
|
func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error {
|
|
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
}
|
|
|
|
// PtraceSetRegsMips64 sets the registers used by mips64 binaries.
|
|
func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error {
|
|
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
}
|