summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/syscall_freebsd_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/syscall/syscall_freebsd_amd64.go')
-rw-r--r--src/pkg/syscall/syscall_freebsd_amd64.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pkg/syscall/syscall_freebsd_amd64.go b/src/pkg/syscall/syscall_freebsd_amd64.go
index ef5aff6ef..8c1ddf6db 100644
--- a/src/pkg/syscall/syscall_freebsd_amd64.go
+++ b/src/pkg/syscall/syscall_freebsd_amd64.go
@@ -28,3 +28,15 @@ func SetKevent(k *Kevent_t, fd, mode, flags int) {
k.Filter = int16(mode)
k.Flags = uint16(flags)
}
+
+func (iov *Iovec) SetLen(length int) {
+ iov.Len = uint64(length)
+}
+
+func (msghdr *Msghdr) SetControllen(length int) {
+ msghdr.Controllen = uint32(length)
+}
+
+func (cmsg *Cmsghdr) SetLen(length int) {
+ cmsg.Len = uint32(length)
+}