github.com/gidoBOSSftw5731/go/src@v0.0.0-20210226122457-d24b0edbf019/syscall/syscall_aix_ppc64.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package syscall 6 7 func (iov *Iovec) SetLen(length int) { 8 iov.Len = uint64(length) 9 } 10 11 func (msghdr *Msghdr) SetControllen(length int) { 12 msghdr.Controllen = uint32(length) 13 } 14 15 func (cmsg *Cmsghdr) SetLen(length int) { 16 cmsg.Len = uint32(length) 17 }