diff options
author | baude <bbaude@redhat.com> | 2019-09-17 12:58:08 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-09-17 13:02:05 -0500 |
commit | 71399a972c12fb3adeac8990ba2ba0afbd5ae3bc (patch) | |
tree | d2d1249d4f98611022141b335e988acd794aa2c9 /vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go | |
parent | 0fae0bb06923ce3b2b6b7900dc00cfaaad3838fd (diff) |
origin dnsname commit
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go new file mode 100644 index 0000000..25a0ac8 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go @@ -0,0 +1,37 @@ +// Copyright 2009 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. + +// +build amd64,netbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = uint32(mode) + k.Flags = uint32(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} |