| // Copyright 2019 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| |
| package syscall |
| |
| import "unsafe" |
| |
| func (r *PtraceRegs) PC() uint64 { return r.Pc } |
| |
| func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc } |
| |
| func (iov *Iovec) SetLen(length int) { |
| iov.Len = uint64(length) |
| } |
| |
| func (msghdr *Msghdr) SetControllen(length int) { |
| msghdr.Controllen = uint64(length) |
| } |
| |
| func (cmsg *Cmsghdr) SetLen(length int) { |
| cmsg.Len = uint64(length) |
| } |