| // Copyright 2017 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. |
| //go:build amd64 && solaris |
| func (h *msghdr) pack(vs []iovec, bs [][]byte, oob []byte, sa []byte) { |
| h.Iovlen = int32(len(vs)) |
| h.Accrights = (*int8)(unsafe.Pointer(&oob[0])) |
| h.Accrightslen = int32(len(oob)) |
| h.Name = (*byte)(unsafe.Pointer(&sa[0])) |
| h.Namelen = uint32(len(sa)) |
| func (h *msghdr) controllen() int { |
| return int(h.Accrightslen) |
| func (h *msghdr) flags() int { |
| return int(NativeEndian.Uint32(h.Pad_cgo_2[:])) |