diff options
| author | Joseph Richey <joerichey@google.com> | 2019-10-25 17:15:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-25 17:15:27 -0700 |
| commit | b24e4ccd245861f7537f17c3e01be2cbefb1b29e (patch) | |
| tree | 41270d37811b1410b7d1cad9bc9fa9e2cdfd3447 /vendor/golang.org/x/sys/unix/dev_netbsd.go | |
| parent | 5d888ac2c654a3ac00cd4b608cba0ca1dce47678 (diff) | |
Delete vendored code and update CI to Go 1.13 (#158)
As the Go community transitions to using the modules ecosystem,
we want to only support one way of managing dependencies.
So this change moves to only using Go modules for dependency management.
This means that our effective minimum Go version increases to Go 1.11.
To account for this, we also update:
- the documentation
- Makefile
- CI scripts
Diffstat (limited to 'vendor/golang.org/x/sys/unix/dev_netbsd.go')
| -rw-r--r-- | vendor/golang.org/x/sys/unix/dev_netbsd.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/vendor/golang.org/x/sys/unix/dev_netbsd.go b/vendor/golang.org/x/sys/unix/dev_netbsd.go deleted file mode 100644 index b4a203d..0000000 --- a/vendor/golang.org/x/sys/unix/dev_netbsd.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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. - -// Functions to access/create device major and minor numbers matching the -// encoding used in NetBSD's sys/types.h header. - -package unix - -// Major returns the major component of a NetBSD device number. -func Major(dev uint64) uint32 { - return uint32((dev & 0x000fff00) >> 8) -} - -// Minor returns the minor component of a NetBSD device number. -func Minor(dev uint64) uint32 { - minor := uint32((dev & 0x000000ff) >> 0) - minor |= uint32((dev & 0xfff00000) >> 12) - return minor -} - -// Mkdev returns a NetBSD device number generated from the given major and minor -// components. -func Mkdev(major, minor uint32) uint64 { - dev := (uint64(major) << 8) & 0x000fff00 - dev |= (uint64(minor) << 12) & 0xfff00000 - dev |= (uint64(minor) << 0) & 0x000000ff - return dev -} |