diff options
author | Ben Kochie <bjk@gitlab.com> | 2019-09-11 13:35:21 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-09-11 13:35:21 +0300 |
commit | a1f6c8645f84251e75472324eaf48e74bec0ea46 (patch) | |
tree | af78da3daa0e59c3e2fa6712f4e770437fd518d1 /vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go | |
parent | 731d804c14158e5676e74214af8b7a29b544dea4 (diff) |
Convert vendoring to go modules.
Apply a minimal upgrade to Go modules.
* Fix various tests.
* Drop vendoring.
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 | 33 |
1 files changed, 0 insertions, 33 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 deleted file mode 100644 index 6878bf7f..00000000 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go +++ /dev/null @@ -1,33 +0,0 @@ -// 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 (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} |