k3s/pkg/util
Kubernetes Submit Queue 5d24a2c199 Merge pull request #49300 from tklauser/syscall-to-x-sys-unix
Automatic merge from submit-queue

Switch from package syscall to golang.org/x/sys/unix

**What this PR does / why we need it**:

The syscall package is locked down and the comment in https://github.com/golang/go/blob/master/src/syscall/syscall.go#L21-L24 advises to switch code to use the corresponding package from golang.org/x/sys. This PR does so and replaces usage of package syscall with package golang.org/x/sys/unix where applicable. This will also allow to get updates and fixes
without having to use a new go version.

In order to get the latest functionality, golang.org/x/sys/ is re-vendored. This also allows to use Eventfd() from this package instead of calling the eventfd() C function.

**Special notes for your reviewer**:

This follows previous works in other Go projects, see e.g. moby/moby#33399, cilium/cilium#588

**Release note**:

```release-note
NONE
```
2017-08-03 04:02:12 -07:00
..
async
bandwidth update godep 2017-07-20 11:03:49 -07:00
config
configz
dbus
ebtables update godep 2017-07-20 11:03:49 -07:00
env
file Refactor: pkg/util into sub-pkgs 2017-07-18 14:34:08 +08:00
flock switch from package syscall to x/sys/unix 2017-07-21 12:14:42 +02:00
goroutinemap
hash
i18n remove unused codes in loadSystemLanguage 2017-06-29 12:18:11 +08:00
initsystem
interrupt
io Fix lint errors 2017-06-26 16:05:35 +02:00
ipconfig update godep 2017-07-20 11:03:49 -07:00
iptables Merge pull request #48517 from dims/fix-tests-on-osx 2017-08-02 12:46:50 -07:00
keymutex
labels
limitwriter
logs
maps
metrics
mount Merge pull request #49300 from tklauser/syscall-to-x-sys-unix 2017-08-03 04:02:12 -07:00
net Fix lint errors of pkg/util/net/sets/ipnet.go 2017-07-04 12:04:24 +08:00
netsh update godep 2017-07-20 11:03:49 -07:00
node Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
oom
parsers
pointer Refactor: pkg/util into sub-pkgs 2017-07-18 14:34:08 +08:00
procfs
reflector/prometheus add reflector metrics 2017-07-25 09:01:37 -04:00
removeall Fixes bind-mount teardown failure with non-mount point Local volumes 2017-07-11 17:19:58 -04:00
resourcecontainer
rlimit switch from package syscall to x/sys/unix 2017-07-21 12:14:42 +02:00
selinux
slice split util/slice 2017-06-30 23:04:18 -07:00
strings
sysctl
system run hack/update-all 2017-06-22 11:31:03 -07:00
tail
taints Build files generated 2017-07-19 18:36:12 -04:00
template Refactor: pkg/util into sub-pkgs 2017-07-18 14:34:08 +08:00
term fix cross build for windows 2017-07-05 12:42:41 -07:00
threading
tolerations
version
workqueue/prometheus
BUILD add reflector metrics 2017-07-25 09:01:37 -04:00