aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:22 -0500
committerAlex Pilon <apilon@hashicorp.com>2019-02-22 18:24:22 -0500
commit07971ca38143c5faf951d152fba370ddcbe26ad5 (patch)
tree09af1ef91c782de921efc83113907184c8adecee
parent9b6f05970a001f683b9c886c652de81f00cd5f00 (diff)
downloadterraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.gz
terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.tar.zst
terraform-provider-statuscake-07971ca38143c5faf951d152fba370ddcbe26ad5.zip
deps: use go modules for dep mgmt
run go mod tidy remove govendor from makefile and travis config set appropriate env vars for go modules
-rw-r--r--.travis.yml4
-rw-r--r--GNUmakefile4
-rw-r--r--go.mod34
-rw-r--r--go.sum71
-rw-r--r--vendor/github.com/apparentlymart/go-rundeck-api/LICENSE21
-rw-r--r--vendor/github.com/apparentlymart/go-rundeck-api/README.md9
-rw-r--r--vendor/github.com/aws/aws-sdk-go/LICENSE.txt (renamed from vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/LICENSE.code)17
-rw-r--r--vendor/github.com/aws/aws-sdk-go/NOTICE.txt3
-rw-r--r--vendor/github.com/blang/semver/.travis.yml21
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/AUTHORS136
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/DOCKER-LICENSE6
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/LICENSE22
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/Makefile57
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/README.markdown106
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/auth.go158
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/cancelable.go17
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go19
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/change.go43
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/client.go995
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/container.go1325
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/env.go168
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/event.go379
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/exec.go202
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/CHANGELOG.md55
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/LICENSE21
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/README.md365
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/doc.go26
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/entry.go264
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/exported.go193
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/formatter.go48
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/hooks.go34
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/json_formatter.go41
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/logger.go212
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/logrus.go98
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_bsd.go9
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_linux.go12
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go21
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_solaris.go15
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_windows.go27
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/text_formatter.go161
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/writer.go31
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/envfile.go67
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts.go146
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_unix.go8
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_windows.go6
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/ip.go42
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts.go252
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts_unix.go6
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts_windows.go56
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/README.md1
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive.go1049
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive_unix.go112
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive_windows.go70
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes.go416
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_linux.go285
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_other.go97
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_unix.go36
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_windows.go30
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy.go458
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_unix.go11
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_windows.go9
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/diff.go279
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go16
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_unsupported.go16
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/whiteouts.go23
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/wrap.go59
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils.go279
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_unix.go22
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_windows.go7
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/homedir/homedir.go39
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools.go195
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_unix.go60
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_windows.go18
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/usergroupadd_linux.go155
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/usergroupadd_unsupported.go12
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/bytespipe.go152
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/fmt.go22
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/multireader.go226
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/readers.go154
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler.go6
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler_gccgo.go13
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_unix.go10
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_windows.go18
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/writeflusher.go92
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/writers.go66
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/longpath/longpath.go26
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/pools/pools.go119
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/promise/promise.go11
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/stdcopy/stdcopy.go175
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes.go47
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes_unix.go14
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes_windows.go27
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/errors.go10
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/events_windows.go83
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/filesys.go19
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/filesys_windows.go82
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go19
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat_windows.go25
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo.go17
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_linux.go66
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_unsupported.go8
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_windows.go44
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/mknod.go22
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/mknod_windows.go13
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_unix.go8
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_windows.go7
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat.go53
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_freebsd.go27
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_linux.go33
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_openbsd.go15
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_solaris.go17
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_unsupported.go17
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_windows.go43
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/syscall_unix.go11
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/syscall_windows.go36
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask.go13
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask_windows.go9
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_darwin.go8
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_freebsd.go22
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_linux.go26
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_unsupported.go10
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/xattrs_linux.go63
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/xattrs_unsupported.go13
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/CONTRIBUTING.md67
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/LICENSE.docs425
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/MAINTAINERS27
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/README.md18
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/circle.yml11
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/duration.go33
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/size.go95
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/ulimit.go118
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/LICENSE27
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/README.md7
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/context.go143
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/doc.go82
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/LICENSE27
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/README.md240
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/doc.go206
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/mux.go481
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/regexp.go317
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/route.go595
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/LICENSE363
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/README.md30
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/cleanhttp.go40
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/MAINTAINERS2
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup.go108
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unix.go30
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unsupported.go21
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/user.go418
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/net/context/context.go447
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm.s10
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_386.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_amd64.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_arm.s30
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_arm64.s30
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_dragonfly_386.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_dragonfly_amd64.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_386.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_amd64.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_arm.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_386.s35
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_amd64.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_arm.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_arm64.s24
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_ppc64x.s28
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_386.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_amd64.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_arm.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_openbsd_386.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_openbsd_amd64.s29
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_solaris_amd64.s17
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/constants.go13
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unix.go27
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unset.go14
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/flock.go24
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/flock_linux_32bit.go13
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo.go46
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo_c.c41
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo_linux_amd64.go20
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mkall.sh274
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mkerrors.sh476
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksyscall.pl323
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksyscall_solaris.pl294
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysctl_openbsd.pl264
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_darwin.pl39
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_dragonfly.pl50
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_freebsd.pl63
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_linux.pl58
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_netbsd.pl58
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_openbsd.pl50
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/race.go30
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/race0.go25
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/sockcmsg_linux.go36
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/sockcmsg_unix.go103
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/str.go26
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall.go74
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_bsd.go628
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin.go509
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_386.go79
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_amd64.go81
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_arm.go73
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_arm64.go79
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly.go411
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly_386.go63
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly_amd64.go63
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd.go682
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_386.go63
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_amd64.go63
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_arm.go63
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux.go1086
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_386.go388
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_amd64.go146
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_arm.go233
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_arm64.go150
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_ppc64x.go96
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd.go492
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_386.go44
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_amd64.go44
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_arm.go44
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_no_getwd.go11
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd.go303
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd_386.go44
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd_amd64.go44
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_solaris.go713
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_solaris_amd64.go37
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_unix.go297
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_386.go1576
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_amd64.go1576
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_arm.go1293
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_arm64.go1576
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_dragonfly_386.go1530
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go1530
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_386.go1743
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_amd64.go1748
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_arm.go1729
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_386.go1817
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_amd64.go1818
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_arm.go1742
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_arm64.go1896
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_ppc64.go1969
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_ppc64le.go1968
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_386.go1712
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_amd64.go1702
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_arm.go1688
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_openbsd_386.go1584
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_openbsd_amd64.go1583
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_solaris_amd64.go1436
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_386.go1426
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_amd64.go1442
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_arm.go1426
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_arm64.go1426
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_dragonfly_386.go1412
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go1412
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_386.go1664
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go1664
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_arm.go1664
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_386.go1628
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_amd64.go1822
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_arm.go1756
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_arm64.go1750
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_ppc64.go1792
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go1792
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_386.go1326
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go1326
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_arm.go1326
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_openbsd_386.go1386
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go1386
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_solaris_amd64.go1559
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysctl_openbsd.go270
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_386.go398
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_amd64.go398
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_arm.go358
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_arm64.go398
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_dragonfly_386.go304
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go304
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_386.go351
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go351
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_arm.go351
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_386.go355
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_amd64.go321
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_arm.go356
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_arm64.go272
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_ppc64.go360
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go353
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_386.go273
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go273
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_arm.go273
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_openbsd_386.go207
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go207
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_solaris_amd64.go13
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_386.go447
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_amd64.go462
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_arm.go449
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_arm64.go457
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_dragonfly_386.go437
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go443
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_386.go502
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_amd64.go505
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_arm.go497
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_386.go590
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_amd64.go608
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_arm.go579
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_arm64.go595
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_ppc64.go605
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_ppc64le.go605
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_386.go396
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_amd64.go403
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_arm.go401
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_openbsd_386.go441
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_openbsd_amd64.go448
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_solaris_amd64.go422
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/image.go642
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/misc.go124
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/network.go273
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/signal.go49
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/tar.go117
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/Dockerfile15
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/barfile0
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/ca.pem18
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/cert.pem18
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/container.tarbin2048 -> 0 bytes
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/dockerfile.tarbin2560 -> 0 bytes
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/foofile0
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/key.pem27
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/server.pem18
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/data/serverkey.pem27
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/testing/server.go1334
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/tls.go118
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/travis-scripts/install.bash17
-rwxr-xr-xvendor/github.com/fsouza/go-dockerclient/travis-scripts/run-tests.bash15
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/volume.go128
-rw-r--r--vendor/github.com/go-ini/ini/.gitignore5
-rw-r--r--vendor/github.com/go-ini/ini/.travis.yml16
-rw-r--r--vendor/github.com/hashicorp/go-getter/.travis.yml17
-rw-r--r--vendor/github.com/hashicorp/go-plugin/.gitignore1
-rw-r--r--vendor/github.com/hashicorp/go-version/.travis.yml11
-rw-r--r--vendor/github.com/hashicorp/hcl/.gitignore9
-rw-r--r--vendor/github.com/hashicorp/hcl/.travis.yml12
-rw-r--r--vendor/github.com/hashicorp/hil/.gitignore3
-rw-r--r--vendor/github.com/hashicorp/hil/.travis.yml3
-rw-r--r--vendor/github.com/hashicorp/logutils/.gitignore22
-rw-r--r--vendor/github.com/hashicorp/yamux/.gitignore23
-rw-r--r--vendor/github.com/jmespath/go-jmespath/.gitignore4
-rw-r--r--vendor/github.com/jmespath/go-jmespath/.travis.yml9
-rw-r--r--vendor/github.com/mitchellh/copystructure/.travis.yml12
-rw-r--r--vendor/github.com/mitchellh/mapstructure/.travis.yml7
-rw-r--r--vendor/github.com/mitchellh/reflectwalk/.travis.yml1
-rw-r--r--vendor/github.com/rancher/go-rancher/Dockerfile.dapper30
-rw-r--r--vendor/github.com/rancher/go-rancher/LICENSE177
-rw-r--r--vendor/github.com/rancher/go-rancher/Makefile23
-rw-r--r--vendor/github.com/rancher/go-rancher/README.md55
-rw-r--r--vendor/github.com/rancher/go-rancher/main.go10
-rw-r--r--vendor/github.com/rancher/go-rancher/trash.conf6
-rw-r--r--vendor/github.com/satori/go.uuid/.travis.yml21
-rw-r--r--vendor/golang.org/x/crypto/AUTHORS3
-rw-r--r--vendor/golang.org/x/crypto/CONTRIBUTORS3
-rw-r--r--vendor/golang.org/x/crypto/bcrypt/bcrypt.go7
-rw-r--r--vendor/golang.org/x/crypto/blowfish/cipher.go2
-rw-r--r--vendor/golang.org/x/crypto/blowfish/const.go2
-rw-r--r--vendor/golang.org/x/net/AUTHORS3
-rw-r--r--vendor/golang.org/x/net/CONTRIBUTORS3
-rw-r--r--vendor/golang.org/x/net/html/atom/gen.go648
-rw-r--r--vendor/modules.txt116
-rw-r--r--vendor/vendor.json640
364 files changed, 1104 insertions, 114611 deletions
diff --git a/.travis.yml b/.travis.yml
index e85a5f2..ab7522f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,11 +12,9 @@ install:
12# packages that live there. 12# packages that live there.
13# See: https://github.com/golang/go/issues/12933 13# See: https://github.com/golang/go/issues/12933
14- bash scripts/gogetcookie.sh 14- bash scripts/gogetcookie.sh
15- go get github.com/kardianos/govendor
16 15
17script: 16script:
18- make test 17- make test
19- make vendor-status
20- make vet 18- make vet
21- make website-test 19- make website-test
22 20
@@ -27,3 +25,5 @@ matrix:
27 fast_finish: true 25 fast_finish: true
28 allow_failures: 26 allow_failures:
29 - go: tip 27 - go: tip
28env:
29 - GOFLAGS=-mod=vendor GO111MODULE=on
diff --git a/GNUmakefile b/GNUmakefile
index 98a0985..53139eb 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -34,8 +34,6 @@ fmtcheck:
34errcheck: 34errcheck:
35 @sh -c "'$(CURDIR)/scripts/errcheck.sh'" 35 @sh -c "'$(CURDIR)/scripts/errcheck.sh'"
36 36
37vendor-status:
38 @govendor status
39 37
40test-compile: 38test-compile:
41 @if [ "$(TEST)" = "./..." ]; then \ 39 @if [ "$(TEST)" = "./..." ]; then \
@@ -59,5 +57,5 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
59endif 57endif
60 @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME) 58 @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
61 59
62.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile website website-test 60.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website website-test
63 61
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..df127cb
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,34 @@
1module github.com/terraform-providers/terraform-provider-statuscake
2
3require (
4 github.com/DreamItGetIT/statuscake v0.0.0-20180728152938-85edefcbdaa3
5 github.com/apparentlymart/go-cidr v0.0.0-20170418151526-7e4b007599d4 // indirect
6 github.com/aws/aws-sdk-go v1.8.34 // indirect
7 github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
8 github.com/blang/semver v3.5.1+incompatible // indirect
9 github.com/go-ini/ini v1.23.1 // indirect
10 github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce // indirect
11 github.com/hashicorp/go-cleanhttp v0.0.0-20170211013415-3573b8b52aa7 // indirect
12 github.com/hashicorp/go-getter v0.0.0-20170207215532-c3d66e76678d // indirect
13 github.com/hashicorp/go-multierror v0.0.0-20150916205742-d30f09973e19 // indirect
14 github.com/hashicorp/go-plugin v0.0.0-20170217162722-f72692aebca2 // indirect
15 github.com/hashicorp/go-uuid v0.0.0-20160120003506-36289988d83c // indirect
16 github.com/hashicorp/go-version v0.0.0-20161031182605-e96d38404026 // indirect
17 github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f // indirect
18 github.com/hashicorp/hil v0.0.0-20170512213305-fac2259da677 // indirect
19 github.com/hashicorp/logutils v0.0.0-20150609070431-0dc08b1671f3 // indirect
20 github.com/hashicorp/terraform v0.10.0
21 github.com/hashicorp/yamux v0.0.0-20160720233140-d1caa6c97c9f // indirect
22 github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7 // indirect
23 github.com/mitchellh/copystructure v0.0.0-20161013195342-5af94aef99f5 // indirect
24 github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747 // indirect
25 github.com/mitchellh/hashstructure v0.0.0-20160209213820-6b17d669fac5 // indirect
26 github.com/mitchellh/mapstructure v0.0.0-20170307201123-53818660ed49 // indirect
27 github.com/mitchellh/reflectwalk v0.0.0-20161003174516-92573fe8d000 // indirect
28 github.com/satori/go.uuid v0.0.0-20160927100844-b061729afc07 // indirect
29 github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa // indirect
30 github.com/stretchr/testify v1.3.0 // indirect
31 golang.org/x/crypto v0.0.0-20170808112155-b176d7def5d7 // indirect
32 golang.org/x/net v0.0.0-20170809000501-1c05540f6879 // indirect
33 golang.org/x/text v0.3.0 // indirect
34)
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..3fef0bf
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,71 @@
1github.com/DreamItGetIT/statuscake v0.0.0-20180728152938-85edefcbdaa3 h1:BmnYSwnNifByVfy5Yp3AxiEWAS4EkzK0Cu6/Rh/7mu4=
2github.com/DreamItGetIT/statuscake v0.0.0-20180728152938-85edefcbdaa3/go.mod h1:OclNh7ZacJo61GDJablmsOZ7l8/AVtzGqP8G7baOdAs=
3github.com/apparentlymart/go-cidr v0.0.0-20170418151526-7e4b007599d4 h1:bpmA3CCh0K829XIR5kfcV+YDt+Gwi7SEYPCcYEVKWUo=
4github.com/apparentlymart/go-cidr v0.0.0-20170418151526-7e4b007599d4/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc=
5github.com/aws/aws-sdk-go v1.8.34 h1:zDNBtR25rYYUi7aEh2HRa2f2WTm6LSHWSAMCNY2WdXA=
6github.com/aws/aws-sdk-go v1.8.34/go.mod h1:ZRmQr0FajVIyZ4ZzBYKG5P3ZqPz9IHG41ZoMu1ADI3k=
7github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas=
8github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4=
9github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=
10github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
11github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
12github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
13github.com/go-ini/ini v1.23.1 h1:amNPHl+tCb4BolL2NAIQaKLY+ZiL1Ju7OqZ9Fx6PTBQ=
14github.com/go-ini/ini v1.23.1/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
15github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
16github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
17github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce h1:prjrVgOk2Yg6w+PflHoszQNLTUh4kaByUcEWM/9uin4=
18github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
19github.com/hashicorp/go-cleanhttp v0.0.0-20170211013415-3573b8b52aa7 h1:67fHcS+inUoiIqWCKIqeDuq2AlPHNHPiTqp97LdQ+bc=
20github.com/hashicorp/go-cleanhttp v0.0.0-20170211013415-3573b8b52aa7/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
21github.com/hashicorp/go-getter v0.0.0-20170207215532-c3d66e76678d h1:gYDVHhIS6JMuuWr/k6SYGR3//pr5IOiNRzM/Hr4UKjk=
22github.com/hashicorp/go-getter v0.0.0-20170207215532-c3d66e76678d/go.mod h1:6rdJFnhkXnzGOJbvkrdv4t9nLwKcVA+tmbQeUlkIzrU=
23github.com/hashicorp/go-multierror v0.0.0-20150916205742-d30f09973e19 h1:gb61U/o4ZJ6TRYvZqJUKYidIhJOEAvNyVMesryROxAY=
24github.com/hashicorp/go-multierror v0.0.0-20150916205742-d30f09973e19/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I=
25github.com/hashicorp/go-plugin v0.0.0-20170217162722-f72692aebca2 h1:C979il8uGAI9k9qFbaDE355/0UXqPZ8gyrwZDXSlTRk=
26github.com/hashicorp/go-plugin v0.0.0-20170217162722-f72692aebca2/go.mod h1:JSqWYsict+jzcj0+xElxyrBQRPNoiWQuddnxArJ7XHQ=
27github.com/hashicorp/go-uuid v0.0.0-20160120003506-36289988d83c h1:74JBd5YKJzNH8YVYfXI2LVmLdRj2udNzzysg9Y0x2dw=
28github.com/hashicorp/go-uuid v0.0.0-20160120003506-36289988d83c/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
29github.com/hashicorp/go-version v0.0.0-20161031182605-e96d38404026 h1:qWx/DcC6l4ZzuS+JBAzI5XjtLFDCc08zYeZ0kLnaH2g=
30github.com/hashicorp/go-version v0.0.0-20161031182605-e96d38404026/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
31github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f h1:UdxlrJz4JOnY8W+DbLISwf2B8WXEolNRA8BGCwI9jws=
32github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w=
33github.com/hashicorp/hil v0.0.0-20170512213305-fac2259da677 h1:Yj0RcrbLT/5z2k1UdRW+2r0nDUgrKjUNLQiXzMU4a5k=
34github.com/hashicorp/hil v0.0.0-20170512213305-fac2259da677/go.mod h1:KHvg/R2/dPtaePb16oW4qIyzkMxXOL38xjRN64adsts=
35github.com/hashicorp/logutils v0.0.0-20150609070431-0dc08b1671f3 h1:oD64EFjELI9RY9yoWlfua58r+etdnoIC871z+rr6lkA=
36github.com/hashicorp/logutils v0.0.0-20150609070431-0dc08b1671f3/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
37github.com/hashicorp/terraform v0.10.0 h1:qDay454qAPcAThGMoWfO7snCwbtsr6O2DwJiFqfbMSM=
38github.com/hashicorp/terraform v0.10.0/go.mod h1:uN1KUiT7Wdg61fPwsGXQwK3c8PmpIVZrt5Vcb1VrSoM=
39github.com/hashicorp/yamux v0.0.0-20160720233140-d1caa6c97c9f h1:K4RDeor/qhbs5ETM85SN8xekXkk+KkOBclNXXM8+UR0=
40github.com/hashicorp/yamux v0.0.0-20160720233140-d1caa6c97c9f/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
41github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7 h1:SMvOWPJCES2GdFracYbBQh93GXac8fq7HeN6JnpduB8=
42github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
43github.com/jtolds/gls v4.2.1+incompatible h1:fSuqC+Gmlu6l/ZYAoZzx2pyucC8Xza35fpRVWLVmUEE=
44github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
45github.com/mitchellh/copystructure v0.0.0-20161013195342-5af94aef99f5 h1:zpaRAYp00glucts07iugR0W6zvhvLPp+9oR20M8ULM0=
46github.com/mitchellh/copystructure v0.0.0-20161013195342-5af94aef99f5/go.mod h1:eOsF2yLPlBBJPvD+nhl5QMTBSOBbOph6N7j/IDUw7PY=
47github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747 h1:eQox4Rh4ewJF+mqYPxCkmBAirRnPaHEB26UkNuPyjlk=
48github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
49github.com/mitchellh/hashstructure v0.0.0-20160209213820-6b17d669fac5 h1:h+4fp6yIoLPf/K2egDK3kvYM2zqb28gJIWWMiDzBdKM=
50github.com/mitchellh/hashstructure v0.0.0-20160209213820-6b17d669fac5/go.mod h1:QjSHrPWS+BGUVBYkbTZWEnOh3G1DutKwClXU/ABz6AQ=
51github.com/mitchellh/mapstructure v0.0.0-20170307201123-53818660ed49 h1:kaWdlw4YogwkDl8CG+/VxhXkrL9uz3n1D9QBC2pEGLE=
52github.com/mitchellh/mapstructure v0.0.0-20170307201123-53818660ed49/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
53github.com/mitchellh/reflectwalk v0.0.0-20161003174516-92573fe8d000 h1:ajR9C+BMu/Q7NN8pmQQAchGkMwlLivNVWFC06dH+K/4=
54github.com/mitchellh/reflectwalk v0.0.0-20161003174516-92573fe8d000/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
55github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
56github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
57github.com/satori/go.uuid v0.0.0-20160927100844-b061729afc07 h1:DEZDfcCVq3xDJrjqdCgyN/dHYVoqR92MCsdqCdxmnhM=
58github.com/satori/go.uuid v0.0.0-20160927100844-b061729afc07/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
59github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
60github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
61github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa h1:E+gaaifzi2xF65PbDmuKI3PhLWY6G5opMLniFq8vmXA=
62github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa/go.mod h1:2RVY1rIf+2J2o/IM9+vPq9RzmHDSseB7FoXiSNIUsoU=
63github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
64github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
65github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
66golang.org/x/crypto v0.0.0-20170808112155-b176d7def5d7 h1:pTltqCK8DaN/bs+trgnSNPnBjRpKt+K5GyiIyUWyAw0=
67golang.org/x/crypto v0.0.0-20170808112155-b176d7def5d7/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
68golang.org/x/net v0.0.0-20170809000501-1c05540f6879 h1:0rFa7EaCGdQPmZVbo9F7MNF65b8dyzS6EUnXjs9Cllk=
69golang.org/x/net v0.0.0-20170809000501-1c05540f6879/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
70golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
71golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
diff --git a/vendor/github.com/apparentlymart/go-rundeck-api/LICENSE b/vendor/github.com/apparentlymart/go-rundeck-api/LICENSE
deleted file mode 100644
index 3568778..0000000
--- a/vendor/github.com/apparentlymart/go-rundeck-api/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
1The MIT License (MIT)
2
3Copyright (c) 2015 Martin Atkins
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
diff --git a/vendor/github.com/apparentlymart/go-rundeck-api/README.md b/vendor/github.com/apparentlymart/go-rundeck-api/README.md
deleted file mode 100644
index 18abfb3..0000000
--- a/vendor/github.com/apparentlymart/go-rundeck-api/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
1# go-rundeck-api
2
3This is a Go client for the Rundeck HTTP API. It was primarily developed to back the Rundeck provider in [Terraform](https://terraform.io), but can be used standalone too.
4
5It should ``go install`` just like any other Go package:
6
7* ``go install github.com/apparentlymart/go-rundeck-api/rundeck``
8
9For reference documentation, see [godoc](https://godoc.org/github.com/apparentlymart/go-rundeck-api/rundeck).
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/LICENSE.code b/vendor/github.com/aws/aws-sdk-go/LICENSE.txt
index b55b37b..d645695 100644
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/LICENSE.code
+++ b/vendor/github.com/aws/aws-sdk-go/LICENSE.txt
@@ -1,7 +1,7 @@
1 1
2 Apache License 2 Apache License
3 Version 2.0, January 2004 3 Version 2.0, January 2004
4 https://www.apache.org/licenses/ 4 http://www.apache.org/licenses/
5 5
6 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7 7
@@ -176,13 +176,24 @@
176 176
177 END OF TERMS AND CONDITIONS 177 END OF TERMS AND CONDITIONS
178 178
179 Copyright 2015 Docker, Inc. 179 APPENDIX: How to apply the Apache License to your work.
180
181 To apply the Apache License to your work, attach the following
182 boilerplate notice, with the fields enclosed by brackets "[]"
183 replaced with your own identifying information. (Don't include
184 the brackets!) The text should be enclosed in the appropriate
185 comment syntax for the file format. We also recommend that a
186 file or class name and description of purpose be included on the
187 same "printed page" as the copyright notice for easier
188 identification within third-party archives.
189
190 Copyright [yyyy] [name of copyright owner]
180 191
181 Licensed under the Apache License, Version 2.0 (the "License"); 192 Licensed under the Apache License, Version 2.0 (the "License");
182 you may not use this file except in compliance with the License. 193 you may not use this file except in compliance with the License.
183 You may obtain a copy of the License at 194 You may obtain a copy of the License at
184 195
185 https://www.apache.org/licenses/LICENSE-2.0 196 http://www.apache.org/licenses/LICENSE-2.0
186 197
187 Unless required by applicable law or agreed to in writing, software 198 Unless required by applicable law or agreed to in writing, software
188 distributed under the License is distributed on an "AS IS" BASIS, 199 distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/vendor/github.com/aws/aws-sdk-go/NOTICE.txt b/vendor/github.com/aws/aws-sdk-go/NOTICE.txt
new file mode 100644
index 0000000..5f14d11
--- /dev/null
+++ b/vendor/github.com/aws/aws-sdk-go/NOTICE.txt
@@ -0,0 +1,3 @@
1AWS SDK for Go
2Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3Copyright 2014-2015 Stripe, Inc.
diff --git a/vendor/github.com/blang/semver/.travis.yml b/vendor/github.com/blang/semver/.travis.yml
new file mode 100644
index 0000000..102fb9a
--- /dev/null
+++ b/vendor/github.com/blang/semver/.travis.yml
@@ -0,0 +1,21 @@
1language: go
2matrix:
3 include:
4 - go: 1.4.3
5 - go: 1.5.4
6 - go: 1.6.3
7 - go: 1.7
8 - go: tip
9 allow_failures:
10 - go: tip
11install:
12- go get golang.org/x/tools/cmd/cover
13- go get github.com/mattn/goveralls
14script:
15- echo "Test and track coverage" ; $HOME/gopath/bin/goveralls -package "." -service=travis-ci
16 -repotoken $COVERALLS_TOKEN
17- echo "Build examples" ; cd examples && go build
18- echo "Check if gofmt'd" ; diff -u <(echo -n) <(gofmt -d -s .)
19env:
20 global:
21 secure: HroGEAUQpVq9zX1b1VIkraLiywhGbzvNnTZq2TMxgK7JHP8xqNplAeF1izrR2i4QLL9nsY+9WtYss4QuPvEtZcVHUobw6XnL6radF7jS1LgfYZ9Y7oF+zogZ2I5QUMRLGA7rcxQ05s7mKq3XZQfeqaNts4bms/eZRefWuaFZbkw=
diff --git a/vendor/github.com/fsouza/go-dockerclient/AUTHORS b/vendor/github.com/fsouza/go-dockerclient/AUTHORS
deleted file mode 100644
index d27226e..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/AUTHORS
+++ /dev/null
@@ -1,136 +0,0 @@
1# This is the official list of go-dockerclient authors for copyright purposes.
2
3Abhishek Chanda <abhishek.becs@gmail.com>
4Adam Bell-Hanssen <adamb@aller.no>
5Adrien Kohlbecker <adrien.kohlbecker@gmail.com>
6Aldrin Leal <aldrin@leal.eng.br>
7Andreas Jaekle <andreas@jaekle.net>
8Andrews Medina <andrewsmedina@gmail.com>
9Andrey Sibiryov <kobolog@uber.com>
10Andy Goldstein <andy.goldstein@redhat.com>
11Antonio Murdaca <runcom@redhat.com>
12Artem Sidorenko <artem@2realities.com>
13Ben Marini <ben@remind101.com>
14Ben McCann <benmccann.com>
15Ben Parees <bparees@redhat.com>
16Benno van den Berg <bennovandenberg@gmail.com>
17Bradley Cicenas <bradley.cicenas@gmail.com>
18Brendan Fosberry <brendan@codeship.com>
19Brian Lalor <blalor@bravo5.org>
20Brian P. Hamachek <brian@brianhama.com>
21Brian Palmer <brianp@instructure.com>
22Bryan Boreham <bjboreham@gmail.com>
23Burke Libbey <burke@libbey.me>
24Carlos Diaz-Padron <cpadron@mozilla.com>
25Cesar Wong <cewong@redhat.com>
26Cezar Sa Espinola <cezar.sa@corp.globo.com>
27Cheah Chu Yeow <chuyeow@gmail.com>
28cheneydeng <cheneydeng@qq.com>
29Chris Bednarski <banzaimonkey@gmail.com>
30CMGS <ilskdw@gmail.com>
31Colin Hebert <hebert.colin@gmail.com>
32Craig Jellick <craig@rancher.com>
33Dan Williams <dcbw@redhat.com>
34Daniel, Dao Quang Minh <dqminh89@gmail.com>
35Daniel Garcia <daniel@danielgarcia.info>
36Daniel Hiltgen <daniel.hiltgen@docker.com>
37Darren Shepherd <darren@rancher.com>
38Dave Choi <dave.choi@daumkakao.com>
39David Huie <dahuie@gmail.com>
40Dawn Chen <dawnchen@google.com>
41Dinesh Subhraveti <dinesh@gemini-systems.net>
42Drew Wells <drew.wells00@gmail.com>
43Ed <edrocksit@gmail.com>
44Elias G. Schneevoigt <eliasgs@gmail.com>
45Erez Horev <erez.horev@elastifile.com>
46Eric Anderson <anderson@copperegg.com>
47Ewout Prangsma <ewout@prangsma.net>
48Fabio Rehm <fgrehm@gmail.com>
49Fatih Arslan <ftharsln@gmail.com>
50Flavia Missi <flaviamissi@gmail.com>
51Francisco Souza <f@souza.cc>
52Frank Groeneveld <frank@frankgroeneveld.nl>
53George Moura <gwmoura@gmail.com>
54Grégoire Delattre <gregoire.delattre@gmail.com>
55Guillermo Álvarez Fernández <guillermo@cientifico.net>
56Harry Zhang <harryzhang@zju.edu.cn>
57He Simei <hesimei@zju.edu.cn>
58Ivan Mikushin <i.mikushin@gmail.com>
59James Bardin <jbardin@litl.com>
60James Nugent <james@jen20.com>
61Jari Kolehmainen <jari.kolehmainen@digia.com>
62Jason Wilder <jwilder@litl.com>
63Jawher Moussa <jawher.moussa@gmail.com>
64Jean-Baptiste Dalido <jeanbaptiste@appgratis.com>
65Jeff Mitchell <jeffrey.mitchell@gmail.com>
66Jeffrey Hulten <jhulten@gmail.com>
67Jen Andre <jandre@gmail.com>
68Jérôme Laurens <jeromelaurens@gmail.com>
69Johan Euphrosine <proppy@google.com>
70John Hughes <hughesj@visa.com>
71Kamil Domanski <kamil@domanski.co>
72Karan Misra <kidoman@gmail.com>
73Ken Herner <chosenken@gmail.com>
74Kim, Hirokuni <hirokuni.kim@kvh.co.jp>
75Kyle Allan <kallan357@gmail.com>
76Liron Levin <levinlir@gmail.com>
77Lior Yankovich <lior@twistlock.com>
78Liu Peng <vslene@gmail.com>
79Lorenz Leutgeb <lorenz.leutgeb@gmail.com>
80Lucas Clemente <lucas@clemente.io>
81Lucas Weiblen <lucasweiblen@gmail.com>
82Lyon Hill <lyondhill@gmail.com>
83Mantas Matelis <mmatelis@coursera.org>
84Martin Sweeney <martin@sweeney.io>
85Máximo Cuadros Ortiz <mcuadros@gmail.com>
86Michael Schmatz <michaelschmatz@gmail.com>
87Michal Fojtik <mfojtik@redhat.com>
88Mike Dillon <mike.dillon@synctree.com>
89Mrunal Patel <mrunalp@gmail.com>
90Nate Jones <nate@endot.org>
91Nguyen Sy Thanh Son <sonnst@sigma-solutions.eu>
92Nicholas Van Wiggeren <nvanwiggeren@digitalocean.com>
93Nick Ethier <ncethier@gmail.com>
94Omeid Matten <public@omeid.me>
95Orivej Desh <orivej@gmx.fr>
96Paul Bellamy <paul.a.bellamy@gmail.com>
97Paul Morie <pmorie@gmail.com>
98Paul Weil <pweil@redhat.com>
99Peter Edge <peter.edge@gmail.com>
100Peter Jihoon Kim <raingrove@gmail.com>
101Phil Lu <lu@stackengine.com>
102Philippe Lafoucrière <philippe.lafoucriere@tech-angels.com>
103Rafe Colton <rafael.colton@gmail.com>
104Raphaël Pinson <raphael.pinson@camptocamp.com>
105Rob Miller <rob@kalistra.com>
106Robbert Klarenbeek <robbertkl@renbeek.nl>
107Robert Williamson <williamson.robert@gmail.com>
108Roman Khlystik <roman.khlystik@gmail.com>
109Salvador Gironès <salvadorgirones@gmail.com>
110Sam Rijs <srijs@airpost.net>
111Sami Wagiaalla <swagiaal@redhat.com>
112Samuel Archambault <sarchambault@lapresse.ca>
113Samuel Karp <skarp@amazon.com>
114Seth Jennings <sjenning@redhat.com>
115Silas Sewell <silas@sewell.org>
116Simon Eskildsen <sirup@sirupsen.com>
117Simon Menke <simon.menke@gmail.com>
118Skolos <skolos@gopherlab.com>
119Soulou <leo@unbekandt.eu>
120Sridhar Ratnakumar <sridharr@activestate.com>
121Summer Mousa <smousa@zenoss.com>
122Sunjin Lee <styner32@gmail.com>
123Tarsis Azevedo <tarsis@corp.globo.com>
124Tim Schindler <tim@catalyst-zero.com>
125Timothy St. Clair <tstclair@redhat.com>
126Tobi Knaup <tobi@mesosphere.io>
127Tom Wilkie <tom.wilkie@gmail.com>
128Tonic <tonicbupt@gmail.com>
129ttyh061 <ttyh061@gmail.com>
130Victor Marmol <vmarmol@google.com>
131Vincenzo Prignano <vincenzo.prignano@gmail.com>
132Vlad Alexandru Ionescu <vlad.alexandru.ionescu@gmail.com>
133Wiliam Souza <wiliamsouza83@gmail.com>
134Ye Yin <eyniy@qq.com>
135Yu, Zou <zouyu7@huawei.com>
136Yuriy Bogdanov <chinsay@gmail.com>
diff --git a/vendor/github.com/fsouza/go-dockerclient/DOCKER-LICENSE b/vendor/github.com/fsouza/go-dockerclient/DOCKER-LICENSE
deleted file mode 100644
index 7066344..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/DOCKER-LICENSE
+++ /dev/null
@@ -1,6 +0,0 @@
1 Apache License
2 Version 2.0, January 2004
3 http://www.apache.org/licenses/
4
5You can find the Docker license at the following link:
6https://raw.githubusercontent.com/docker/docker/master/LICENSE
diff --git a/vendor/github.com/fsouza/go-dockerclient/LICENSE b/vendor/github.com/fsouza/go-dockerclient/LICENSE
deleted file mode 100644
index b1cdd4c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
1Copyright (c) 2016, go-dockerclient authors
2All rights reserved.
3
4Redistribution and use in source and binary forms, with or without
5modification, are permitted provided that the following conditions are met:
6
7 * Redistributions of source code must retain the above copyright notice,
8this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright notice,
10this list of conditions and the following disclaimer in the documentation
11and/or other materials provided with the distribution.
12
13THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
17FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
20CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/fsouza/go-dockerclient/Makefile b/vendor/github.com/fsouza/go-dockerclient/Makefile
deleted file mode 100644
index 2d6a5cf..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/Makefile
+++ /dev/null
@@ -1,57 +0,0 @@
1.PHONY: \
2 all \
3 vendor \
4 lint \
5 vet \
6 fmt \
7 fmtcheck \
8 pretest \
9 test \
10 integration \
11 cov \
12 clean
13
14PKGS = . ./testing
15
16all: test
17
18vendor:
19 @ go get -v github.com/mjibson/party
20 party -d external -c -u
21
22lint:
23 @ go get -v github.com/golang/lint/golint
24 @for file in $$(git ls-files '*.go' | grep -v 'external/'); do \
25 export output="$$(golint $${file} | grep -v 'type name will be used as docker.DockerInfo')"; \
26 [ -n "$${output}" ] && echo "$${output}" && export status=1; \
27 done; \
28 exit $${status:-0}
29
30vet:
31 go vet $(PKGS)
32
33fmt:
34 gofmt -s -w $(PKGS)
35
36fmtcheck:
37 @ export output=$$(gofmt -s -d $(PKGS)); \
38 [ -n "$${output}" ] && echo "$${output}" && export status=1; \
39 exit $${status:-0}
40
41pretest: lint vet fmtcheck
42
43gotest:
44 go test $(GO_TEST_FLAGS) $(PKGS)
45
46test: pretest gotest
47
48integration:
49 go test -tags docker_integration -run TestIntegration -v
50
51cov:
52 @ go get -v github.com/axw/gocov/gocov
53 @ go get golang.org/x/tools/cmd/cover
54 gocov test | gocov report
55
56clean:
57 go clean $(PKGS)
diff --git a/vendor/github.com/fsouza/go-dockerclient/README.markdown b/vendor/github.com/fsouza/go-dockerclient/README.markdown
deleted file mode 100644
index 234b9e4..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/README.markdown
+++ /dev/null
@@ -1,106 +0,0 @@
1# go-dockerclient
2
3[![Travis](https://img.shields.io/travis/fsouza/go-dockerclient/master.svg?style=flat-square)](https://travis-ci.org/fsouza/go-dockerclient)
4[![GoDoc](https://img.shields.io/badge/api-Godoc-blue.svg?style=flat-square)](https://godoc.org/github.com/fsouza/go-dockerclient)
5
6This package presents a client for the Docker remote API. It also provides
7support for the extensions in the [Swarm API](https://docs.docker.com/swarm/swarm-api/).
8It currently supports the Docker API up to version 1.23.
9
10This package also provides support for docker's network API, which is a simple
11passthrough to the libnetwork remote API. Note that docker's network API is
12only available in docker 1.8 and above, and only enabled in docker if
13DOCKER_EXPERIMENTAL is defined during the docker build process.
14
15For more details, check the [remote API documentation](http://docs.docker.com/engine/reference/api/docker_remote_api/).
16
17## Vendoring
18
19If you are having issues with Go 1.5 and have `GO15VENDOREXPERIMENT` set with an application that has go-dockerclient vendored,
20please update your vendoring of go-dockerclient :) We recently moved the `vendor` directory to `external` so that go-dockerclient
21is compatible with this configuration. See [338](https://github.com/fsouza/go-dockerclient/issues/338) and [339](https://github.com/fsouza/go-dockerclient/pull/339)
22for details.
23
24## Example
25
26```go
27package main
28
29import (
30 "fmt"
31
32 "github.com/fsouza/go-dockerclient"
33)
34
35func main() {
36 endpoint := "unix:///var/run/docker.sock"
37 client, _ := docker.NewClient(endpoint)
38 imgs, _ := client.ListImages(docker.ListImagesOptions{All: false})
39 for _, img := range imgs {
40 fmt.Println("ID: ", img.ID)
41 fmt.Println("RepoTags: ", img.RepoTags)
42 fmt.Println("Created: ", img.Created)
43 fmt.Println("Size: ", img.Size)
44 fmt.Println("VirtualSize: ", img.VirtualSize)
45 fmt.Println("ParentId: ", img.ParentID)
46 }
47}
48```
49
50## Using with TLS
51
52In order to instantiate the client for a TLS-enabled daemon, you should use NewTLSClient, passing the endpoint and path for key and certificates as parameters.
53
54```go
55package main
56
57import (
58 "fmt"
59
60 "github.com/fsouza/go-dockerclient"
61)
62
63func main() {
64 endpoint := "tcp://[ip]:[port]"
65 path := os.Getenv("DOCKER_CERT_PATH")
66 ca := fmt.Sprintf("%s/ca.pem", path)
67 cert := fmt.Sprintf("%s/cert.pem", path)
68 key := fmt.Sprintf("%s/key.pem", path)
69 client, _ := docker.NewTLSClient(endpoint, cert, key, ca)
70 // use client
71}
72```
73
74If using [docker-machine](https://docs.docker.com/machine/), or another application that exports environment variables
75`DOCKER_HOST, DOCKER_TLS_VERIFY, DOCKER_CERT_PATH`, you can use NewClientFromEnv.
76
77
78```go
79package main
80
81import (
82 "fmt"
83
84 "github.com/fsouza/go-dockerclient"
85)
86
87func main() {
88 client, _ := docker.NewClientFromEnv()
89 // use client
90}
91```
92
93See the documentation for more details.
94
95## Developing
96
97All development commands can be seen in the [Makefile](Makefile).
98
99Commited code must pass:
100
101* [golint](https://github.com/golang/lint)
102* [go vet](https://godoc.org/golang.org/x/tools/cmd/vet)
103* [gofmt](https://golang.org/cmd/gofmt)
104* [go test](https://golang.org/cmd/go/#hdr-Test_packages)
105
106Running `make test` will check all of these. If your editor does not automatically call gofmt, `make fmt` will format all go files in this repository.
diff --git a/vendor/github.com/fsouza/go-dockerclient/auth.go b/vendor/github.com/fsouza/go-dockerclient/auth.go
deleted file mode 100644
index 95596d7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/auth.go
+++ /dev/null
@@ -1,158 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import (
8 "bytes"
9 "encoding/base64"
10 "encoding/json"
11 "errors"
12 "fmt"
13 "io"
14 "io/ioutil"
15 "os"
16 "path"
17 "strings"
18)
19
20// ErrCannotParseDockercfg is the error returned by NewAuthConfigurations when the dockercfg cannot be parsed.
21var ErrCannotParseDockercfg = errors.New("Failed to read authentication from dockercfg")
22
23// AuthConfiguration represents authentication options to use in the PushImage
24// method. It represents the authentication in the Docker index server.
25type AuthConfiguration struct {
26 Username string `json:"username,omitempty"`
27 Password string `json:"password,omitempty"`
28 Email string `json:"email,omitempty"`
29 ServerAddress string `json:"serveraddress,omitempty"`
30}
31
32// AuthConfigurations represents authentication options to use for the
33// PushImage method accommodating the new X-Registry-Config header
34type AuthConfigurations struct {
35 Configs map[string]AuthConfiguration `json:"configs"`
36}
37
38// AuthConfigurations119 is used to serialize a set of AuthConfigurations
39// for Docker API >= 1.19.
40type AuthConfigurations119 map[string]AuthConfiguration
41
42// dockerConfig represents a registry authentation configuration from the
43// .dockercfg file.
44type dockerConfig struct {
45 Auth string `json:"auth"`
46 Email string `json:"email"`
47}
48
49// NewAuthConfigurationsFromDockerCfg returns AuthConfigurations from the
50// ~/.dockercfg file.
51func NewAuthConfigurationsFromDockerCfg() (*AuthConfigurations, error) {
52 var r io.Reader
53 var err error
54 p := path.Join(os.Getenv("HOME"), ".docker", "config.json")
55 r, err = os.Open(p)
56 if err != nil {
57 p := path.Join(os.Getenv("HOME"), ".dockercfg")
58 r, err = os.Open(p)
59 if err != nil {
60 return nil, err
61 }
62 }
63 return NewAuthConfigurations(r)
64}
65
66// NewAuthConfigurations returns AuthConfigurations from a JSON encoded string in the
67// same format as the .dockercfg file.
68func NewAuthConfigurations(r io.Reader) (*AuthConfigurations, error) {
69 var auth *AuthConfigurations
70 confs, err := parseDockerConfig(r)
71 if err != nil {
72 return nil, err
73 }
74 auth, err = authConfigs(confs)
75 if err != nil {
76 return nil, err
77 }
78 return auth, nil
79}
80
81func parseDockerConfig(r io.Reader) (map[string]dockerConfig, error) {
82 buf := new(bytes.Buffer)
83 buf.ReadFrom(r)
84 byteData := buf.Bytes()
85
86 confsWrapper := struct {
87 Auths map[string]dockerConfig `json:"auths"`
88 }{}
89 if err := json.Unmarshal(byteData, &confsWrapper); err == nil {
90 if len(confsWrapper.Auths) > 0 {
91 return confsWrapper.Auths, nil
92 }
93 }
94
95 var confs map[string]dockerConfig
96 if err := json.Unmarshal(byteData, &confs); err != nil {
97 return nil, err
98 }
99 return confs, nil
100}
101
102// authConfigs converts a dockerConfigs map to a AuthConfigurations object.
103func authConfigs(confs map[string]dockerConfig) (*AuthConfigurations, error) {
104 c := &AuthConfigurations{
105 Configs: make(map[string]AuthConfiguration),
106 }
107 for reg, conf := range confs {
108 data, err := base64.StdEncoding.DecodeString(conf.Auth)
109 if err != nil {
110 return nil, err
111 }
112 userpass := strings.SplitN(string(data), ":", 2)
113 if len(userpass) != 2 {
114 return nil, ErrCannotParseDockercfg
115 }
116 c.Configs[reg] = AuthConfiguration{
117 Email: conf.Email,
118 Username: userpass[0],
119 Password: userpass[1],
120 ServerAddress: reg,
121 }
122 }
123 return c, nil
124}
125
126// AuthStatus returns the authentication status for Docker API versions >= 1.23.
127type AuthStatus struct {
128 Status string `json:"Status,omitempty" yaml:"Status,omitempty"`
129 IdentityToken string `json:"IdentityToken,omitempty" yaml:"IdentityToken,omitempty"`
130}
131
132// AuthCheck validates the given credentials. It returns nil if successful.
133//
134// For Docker API versions >= 1.23, the AuthStatus struct will be populated, otherwise it will be empty.`
135//
136// See https://goo.gl/6nsZkH for more details.
137func (c *Client) AuthCheck(conf *AuthConfiguration) (AuthStatus, error) {
138 var authStatus AuthStatus
139 if conf == nil {
140 return authStatus, fmt.Errorf("conf is nil")
141 }
142 resp, err := c.do("POST", "/auth", doOptions{data: conf})
143 if err != nil {
144 return authStatus, err
145 }
146 defer resp.Body.Close()
147 data, err := ioutil.ReadAll(resp.Body)
148 if err != nil {
149 return authStatus, err
150 }
151 if len(data) == 0 {
152 return authStatus, nil
153 }
154 if err := json.Unmarshal(data, &authStatus); err != nil {
155 return authStatus, err
156 }
157 return authStatus, nil
158}
diff --git a/vendor/github.com/fsouza/go-dockerclient/cancelable.go b/vendor/github.com/fsouza/go-dockerclient/cancelable.go
deleted file mode 100644
index 375fbd1..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/cancelable.go
+++ /dev/null
@@ -1,17 +0,0 @@
1// Copyright 2016 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build go1.5
6
7package docker
8
9import "net/http"
10
11func cancelable(client *http.Client, req *http.Request) func() {
12 ch := make(chan struct{})
13 req.Cancel = ch
14 return func() {
15 close(ch)
16 }
17}
diff --git a/vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go b/vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go
deleted file mode 100644
index 3c20398..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go
+++ /dev/null
@@ -1,19 +0,0 @@
1// Copyright 2016 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !go1.5
6
7package docker
8
9import "net/http"
10
11func cancelable(client *http.Client, req *http.Request) func() {
12 return func() {
13 if rc, ok := client.Transport.(interface {
14 CancelRequest(*http.Request)
15 }); ok {
16 rc.CancelRequest(req)
17 }
18 }
19}
diff --git a/vendor/github.com/fsouza/go-dockerclient/change.go b/vendor/github.com/fsouza/go-dockerclient/change.go
deleted file mode 100644
index d133594..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/change.go
+++ /dev/null
@@ -1,43 +0,0 @@
1// Copyright 2014 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import "fmt"
8
9// ChangeType is a type for constants indicating the type of change
10// in a container
11type ChangeType int
12
13const (
14 // ChangeModify is the ChangeType for container modifications
15 ChangeModify ChangeType = iota
16
17 // ChangeAdd is the ChangeType for additions to a container
18 ChangeAdd
19
20 // ChangeDelete is the ChangeType for deletions from a container
21 ChangeDelete
22)
23
24// Change represents a change in a container.
25//
26// See https://goo.gl/9GsTIF for more details.
27type Change struct {
28 Path string
29 Kind ChangeType
30}
31
32func (change *Change) String() string {
33 var kind string
34 switch change.Kind {
35 case ChangeModify:
36 kind = "C"
37 case ChangeAdd:
38 kind = "A"
39 case ChangeDelete:
40 kind = "D"
41 }
42 return fmt.Sprintf("%s %s", kind, change.Path)
43}
diff --git a/vendor/github.com/fsouza/go-dockerclient/client.go b/vendor/github.com/fsouza/go-dockerclient/client.go
deleted file mode 100644
index a3f09cd..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/client.go
+++ /dev/null
@@ -1,995 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Package docker provides a client for the Docker remote API.
6//
7// See https://goo.gl/G3plxW for more details on the remote API.
8package docker
9
10import (
11 "bufio"
12 "bytes"
13 "crypto/tls"
14 "crypto/x509"
15 "encoding/json"
16 "errors"
17 "fmt"
18 "io"
19 "io/ioutil"
20 "net"
21 "net/http"
22 "net/http/httputil"
23 "net/url"
24 "os"
25 "path/filepath"
26 "reflect"
27 "runtime"
28 "strconv"
29 "strings"
30 "sync/atomic"
31 "time"
32
33 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts"
34 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/homedir"
35 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/stdcopy"
36 "github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp"
37)
38
39const userAgent = "go-dockerclient"
40
41var (
42 // ErrInvalidEndpoint is returned when the endpoint is not a valid HTTP URL.
43 ErrInvalidEndpoint = errors.New("invalid endpoint")
44
45 // ErrConnectionRefused is returned when the client cannot connect to the given endpoint.
46 ErrConnectionRefused = errors.New("cannot connect to Docker endpoint")
47
48 // ErrInactivityTimeout is returned when a streamable call has been inactive for some time.
49 ErrInactivityTimeout = errors.New("inactivity time exceeded timeout")
50
51 apiVersion112, _ = NewAPIVersion("1.12")
52
53 apiVersion119, _ = NewAPIVersion("1.19")
54)
55
56// APIVersion is an internal representation of a version of the Remote API.
57type APIVersion []int
58
59// NewAPIVersion returns an instance of APIVersion for the given string.
60//
61// The given string must be in the form <major>.<minor>.<patch>, where <major>,
62// <minor> and <patch> are integer numbers.
63func NewAPIVersion(input string) (APIVersion, error) {
64 if !strings.Contains(input, ".") {
65 return nil, fmt.Errorf("Unable to parse version %q", input)
66 }
67 raw := strings.Split(input, "-")
68 arr := strings.Split(raw[0], ".")
69 ret := make(APIVersion, len(arr))
70 var err error
71 for i, val := range arr {
72 ret[i], err = strconv.Atoi(val)
73 if err != nil {
74 return nil, fmt.Errorf("Unable to parse version %q: %q is not an integer", input, val)
75 }
76 }
77 return ret, nil
78}
79
80func (version APIVersion) String() string {
81 var str string
82 for i, val := range version {
83 str += strconv.Itoa(val)
84 if i < len(version)-1 {
85 str += "."
86 }
87 }
88 return str
89}
90
91// LessThan is a function for comparing APIVersion structs
92func (version APIVersion) LessThan(other APIVersion) bool {
93 return version.compare(other) < 0
94}
95
96// LessThanOrEqualTo is a function for comparing APIVersion structs
97func (version APIVersion) LessThanOrEqualTo(other APIVersion) bool {
98 return version.compare(other) <= 0
99}
100
101// GreaterThan is a function for comparing APIVersion structs
102func (version APIVersion) GreaterThan(other APIVersion) bool {
103 return version.compare(other) > 0
104}
105
106// GreaterThanOrEqualTo is a function for comparing APIVersion structs
107func (version APIVersion) GreaterThanOrEqualTo(other APIVersion) bool {
108 return version.compare(other) >= 0
109}
110
111func (version APIVersion) compare(other APIVersion) int {
112 for i, v := range version {
113 if i <= len(other)-1 {
114 otherVersion := other[i]
115
116 if v < otherVersion {
117 return -1
118 } else if v > otherVersion {
119 return 1
120 }
121 }
122 }
123 if len(version) > len(other) {
124 return 1
125 }
126 if len(version) < len(other) {
127 return -1
128 }
129 return 0
130}
131
132// Client is the basic type of this package. It provides methods for
133// interaction with the API.
134type Client struct {
135 SkipServerVersionCheck bool
136 HTTPClient *http.Client
137 TLSConfig *tls.Config
138 Dialer *net.Dialer
139
140 endpoint string
141 endpointURL *url.URL
142 eventMonitor *eventMonitoringState
143 requestedAPIVersion APIVersion
144 serverAPIVersion APIVersion
145 expectedAPIVersion APIVersion
146 unixHTTPClient *http.Client
147}
148
149// NewClient returns a Client instance ready for communication with the given
150// server endpoint. It will use the latest remote API version available in the
151// server.
152func NewClient(endpoint string) (*Client, error) {
153 client, err := NewVersionedClient(endpoint, "")
154 if err != nil {
155 return nil, err
156 }
157 client.SkipServerVersionCheck = true
158 return client, nil
159}
160
161// NewTLSClient returns a Client instance ready for TLS communications with the givens
162// server endpoint, key and certificates . It will use the latest remote API version
163// available in the server.
164func NewTLSClient(endpoint string, cert, key, ca string) (*Client, error) {
165 client, err := NewVersionedTLSClient(endpoint, cert, key, ca, "")
166 if err != nil {
167 return nil, err
168 }
169 client.SkipServerVersionCheck = true
170 return client, nil
171}
172
173// NewTLSClientFromBytes returns a Client instance ready for TLS communications with the givens
174// server endpoint, key and certificates (passed inline to the function as opposed to being
175// read from a local file). It will use the latest remote API version available in the server.
176func NewTLSClientFromBytes(endpoint string, certPEMBlock, keyPEMBlock, caPEMCert []byte) (*Client, error) {
177 client, err := NewVersionedTLSClientFromBytes(endpoint, certPEMBlock, keyPEMBlock, caPEMCert, "")
178 if err != nil {
179 return nil, err
180 }
181 client.SkipServerVersionCheck = true
182 return client, nil
183}
184
185// NewVersionedClient returns a Client instance ready for communication with
186// the given server endpoint, using a specific remote API version.
187func NewVersionedClient(endpoint string, apiVersionString string) (*Client, error) {
188 u, err := parseEndpoint(endpoint, false)
189 if err != nil {
190 return nil, err
191 }
192 var requestedAPIVersion APIVersion
193 if strings.Contains(apiVersionString, ".") {
194 requestedAPIVersion, err = NewAPIVersion(apiVersionString)
195 if err != nil {
196 return nil, err
197 }
198 }
199 return &Client{
200 HTTPClient: cleanhttp.DefaultClient(),
201 Dialer: &net.Dialer{},
202 endpoint: endpoint,
203 endpointURL: u,
204 eventMonitor: new(eventMonitoringState),
205 requestedAPIVersion: requestedAPIVersion,
206 }, nil
207}
208
209// NewVersionnedTLSClient has been DEPRECATED, please use NewVersionedTLSClient.
210func NewVersionnedTLSClient(endpoint string, cert, key, ca, apiVersionString string) (*Client, error) {
211 return NewVersionedTLSClient(endpoint, cert, key, ca, apiVersionString)
212}
213
214// NewVersionedTLSClient returns a Client instance ready for TLS communications with the givens
215// server endpoint, key and certificates, using a specific remote API version.
216func NewVersionedTLSClient(endpoint string, cert, key, ca, apiVersionString string) (*Client, error) {
217 certPEMBlock, err := ioutil.ReadFile(cert)
218 if err != nil {
219 return nil, err
220 }
221 keyPEMBlock, err := ioutil.ReadFile(key)
222 if err != nil {
223 return nil, err
224 }
225 caPEMCert, err := ioutil.ReadFile(ca)
226 if err != nil {
227 return nil, err
228 }
229 return NewVersionedTLSClientFromBytes(endpoint, certPEMBlock, keyPEMBlock, caPEMCert, apiVersionString)
230}
231
232// NewClientFromEnv returns a Client instance ready for communication created from
233// Docker's default logic for the environment variables DOCKER_HOST, DOCKER_TLS_VERIFY, and DOCKER_CERT_PATH.
234//
235// See https://github.com/docker/docker/blob/1f963af697e8df3a78217f6fdbf67b8123a7db94/docker/docker.go#L68.
236// See https://github.com/docker/compose/blob/81707ef1ad94403789166d2fe042c8a718a4c748/compose/cli/docker_client.py#L7.
237func NewClientFromEnv() (*Client, error) {
238 client, err := NewVersionedClientFromEnv("")
239 if err != nil {
240 return nil, err
241 }
242 client.SkipServerVersionCheck = true
243 return client, nil
244}
245
246// NewVersionedClientFromEnv returns a Client instance ready for TLS communications created from
247// Docker's default logic for the environment variables DOCKER_HOST, DOCKER_TLS_VERIFY, and DOCKER_CERT_PATH,
248// and using a specific remote API version.
249//
250// See https://github.com/docker/docker/blob/1f963af697e8df3a78217f6fdbf67b8123a7db94/docker/docker.go#L68.
251// See https://github.com/docker/compose/blob/81707ef1ad94403789166d2fe042c8a718a4c748/compose/cli/docker_client.py#L7.
252func NewVersionedClientFromEnv(apiVersionString string) (*Client, error) {
253 dockerEnv, err := getDockerEnv()
254 if err != nil {
255 return nil, err
256 }
257 dockerHost := dockerEnv.dockerHost
258 if dockerEnv.dockerTLSVerify {
259 parts := strings.SplitN(dockerEnv.dockerHost, "://", 2)
260 if len(parts) != 2 {
261 return nil, fmt.Errorf("could not split %s into two parts by ://", dockerHost)
262 }
263 cert := filepath.Join(dockerEnv.dockerCertPath, "cert.pem")
264 key := filepath.Join(dockerEnv.dockerCertPath, "key.pem")
265 ca := filepath.Join(dockerEnv.dockerCertPath, "ca.pem")
266 return NewVersionedTLSClient(dockerEnv.dockerHost, cert, key, ca, apiVersionString)
267 }
268 return NewVersionedClient(dockerEnv.dockerHost, apiVersionString)
269}
270
271// NewVersionedTLSClientFromBytes returns a Client instance ready for TLS communications with the givens
272// server endpoint, key and certificates (passed inline to the function as opposed to being
273// read from a local file), using a specific remote API version.
274func NewVersionedTLSClientFromBytes(endpoint string, certPEMBlock, keyPEMBlock, caPEMCert []byte, apiVersionString string) (*Client, error) {
275 u, err := parseEndpoint(endpoint, true)
276 if err != nil {
277 return nil, err
278 }
279 var requestedAPIVersion APIVersion
280 if strings.Contains(apiVersionString, ".") {
281 requestedAPIVersion, err = NewAPIVersion(apiVersionString)
282 if err != nil {
283 return nil, err
284 }
285 }
286 if certPEMBlock == nil || keyPEMBlock == nil {
287 return nil, errors.New("Both cert and key are required")
288 }
289 tlsCert, err := tls.X509KeyPair(certPEMBlock, keyPEMBlock)
290 if err != nil {
291 return nil, err
292 }
293 tlsConfig := &tls.Config{Certificates: []tls.Certificate{tlsCert}}
294 if caPEMCert == nil {
295 tlsConfig.InsecureSkipVerify = true
296 } else {
297 caPool := x509.NewCertPool()
298 if !caPool.AppendCertsFromPEM(caPEMCert) {
299 return nil, errors.New("Could not add RootCA pem")
300 }
301 tlsConfig.RootCAs = caPool
302 }
303 tr := cleanhttp.DefaultTransport()
304 tr.TLSClientConfig = tlsConfig
305 if err != nil {
306 return nil, err
307 }
308 return &Client{
309 HTTPClient: &http.Client{Transport: tr},
310 TLSConfig: tlsConfig,
311 Dialer: &net.Dialer{},
312 endpoint: endpoint,
313 endpointURL: u,
314 eventMonitor: new(eventMonitoringState),
315 requestedAPIVersion: requestedAPIVersion,
316 }, nil
317}
318
319func (c *Client) checkAPIVersion() error {
320 serverAPIVersionString, err := c.getServerAPIVersionString()
321 if err != nil {
322 return err
323 }
324 c.serverAPIVersion, err = NewAPIVersion(serverAPIVersionString)
325 if err != nil {
326 return err
327 }
328 if c.requestedAPIVersion == nil {
329 c.expectedAPIVersion = c.serverAPIVersion
330 } else {
331 c.expectedAPIVersion = c.requestedAPIVersion
332 }
333 return nil
334}
335
336// Endpoint returns the current endpoint. It's useful for getting the endpoint
337// when using functions that get this data from the environment (like
338// NewClientFromEnv.
339func (c *Client) Endpoint() string {
340 return c.endpoint
341}
342
343// Ping pings the docker server
344//
345// See https://goo.gl/kQCfJj for more details.
346func (c *Client) Ping() error {
347 path := "/_ping"
348 resp, err := c.do("GET", path, doOptions{})
349 if err != nil {
350 return err
351 }
352 if resp.StatusCode != http.StatusOK {
353 return newError(resp)
354 }
355 resp.Body.Close()
356 return nil
357}
358
359func (c *Client) getServerAPIVersionString() (version string, err error) {
360 resp, err := c.do("GET", "/version", doOptions{})
361 if err != nil {
362 return "", err
363 }
364 defer resp.Body.Close()
365 if resp.StatusCode != http.StatusOK {
366 return "", fmt.Errorf("Received unexpected status %d while trying to retrieve the server version", resp.StatusCode)
367 }
368 var versionResponse map[string]interface{}
369 if err := json.NewDecoder(resp.Body).Decode(&versionResponse); err != nil {
370 return "", err
371 }
372 if version, ok := (versionResponse["ApiVersion"]).(string); ok {
373 return version, nil
374 }
375 return "", nil
376}
377
378type doOptions struct {
379 data interface{}
380 forceJSON bool
381 headers map[string]string
382}
383
384func (c *Client) do(method, path string, doOptions doOptions) (*http.Response, error) {
385 var params io.Reader
386 if doOptions.data != nil || doOptions.forceJSON {
387 buf, err := json.Marshal(doOptions.data)
388 if err != nil {
389 return nil, err
390 }
391 params = bytes.NewBuffer(buf)
392 }
393 if path != "/version" && !c.SkipServerVersionCheck && c.expectedAPIVersion == nil {
394 err := c.checkAPIVersion()
395 if err != nil {
396 return nil, err
397 }
398 }
399 httpClient := c.HTTPClient
400 protocol := c.endpointURL.Scheme
401 var u string
402 if protocol == "unix" {
403 httpClient = c.unixClient()
404 u = c.getFakeUnixURL(path)
405 } else {
406 u = c.getURL(path)
407 }
408 req, err := http.NewRequest(method, u, params)
409 if err != nil {
410 return nil, err
411 }
412 req.Header.Set("User-Agent", userAgent)
413 if doOptions.data != nil {
414 req.Header.Set("Content-Type", "application/json")
415 } else if method == "POST" {
416 req.Header.Set("Content-Type", "plain/text")
417 }
418
419 for k, v := range doOptions.headers {
420 req.Header.Set(k, v)
421 }
422 resp, err := httpClient.Do(req)
423 if err != nil {
424 if strings.Contains(err.Error(), "connection refused") {
425 return nil, ErrConnectionRefused
426 }
427 return nil, err
428 }
429 if resp.StatusCode < 200 || resp.StatusCode >= 400 {
430 return nil, newError(resp)
431 }
432 return resp, nil
433}
434
435type streamOptions struct {
436 setRawTerminal bool
437 rawJSONStream bool
438 useJSONDecoder bool
439 headers map[string]string
440 in io.Reader
441 stdout io.Writer
442 stderr io.Writer
443 // timeout is the initial connection timeout
444 timeout time.Duration
445 // Timeout with no data is received, it's reset every time new data
446 // arrives
447 inactivityTimeout time.Duration
448}
449
450func (c *Client) stream(method, path string, streamOptions streamOptions) error {
451 if (method == "POST" || method == "PUT") && streamOptions.in == nil {
452 streamOptions.in = bytes.NewReader(nil)
453 }
454 if path != "/version" && !c.SkipServerVersionCheck && c.expectedAPIVersion == nil {
455 err := c.checkAPIVersion()
456 if err != nil {
457 return err
458 }
459 }
460 req, err := http.NewRequest(method, c.getURL(path), streamOptions.in)
461 if err != nil {
462 return err
463 }
464 req.Header.Set("User-Agent", userAgent)
465 if method == "POST" {
466 req.Header.Set("Content-Type", "plain/text")
467 }
468 for key, val := range streamOptions.headers {
469 req.Header.Set(key, val)
470 }
471 var resp *http.Response
472 protocol := c.endpointURL.Scheme
473 address := c.endpointURL.Path
474 if streamOptions.stdout == nil {
475 streamOptions.stdout = ioutil.Discard
476 }
477 if streamOptions.stderr == nil {
478 streamOptions.stderr = ioutil.Discard
479 }
480 cancelRequest := cancelable(c.HTTPClient, req)
481 if protocol == "unix" {
482 dial, err := c.Dialer.Dial(protocol, address)
483 if err != nil {
484 return err
485 }
486 cancelRequest = func() { dial.Close() }
487 defer dial.Close()
488 breader := bufio.NewReader(dial)
489 err = req.Write(dial)
490 if err != nil {
491 return err
492 }
493
494 // ReadResponse may hang if server does not replay
495 if streamOptions.timeout > 0 {
496 dial.SetDeadline(time.Now().Add(streamOptions.timeout))
497 }
498
499 if resp, err = http.ReadResponse(breader, req); err != nil {
500 // Cancel timeout for future I/O operations
501 if streamOptions.timeout > 0 {
502 dial.SetDeadline(time.Time{})
503 }
504 if strings.Contains(err.Error(), "connection refused") {
505 return ErrConnectionRefused
506 }
507 return err
508 }
509 } else {
510 if resp, err = c.HTTPClient.Do(req); err != nil {
511 if strings.Contains(err.Error(), "connection refused") {
512 return ErrConnectionRefused
513 }
514 return err
515 }
516 }
517 defer resp.Body.Close()
518 if resp.StatusCode < 200 || resp.StatusCode >= 400 {
519 return newError(resp)
520 }
521 var canceled uint32
522 if streamOptions.inactivityTimeout > 0 {
523 ch := handleInactivityTimeout(&streamOptions, cancelRequest, &canceled)
524 defer close(ch)
525 }
526 err = handleStreamResponse(resp, &streamOptions)
527 if err != nil {
528 if atomic.LoadUint32(&canceled) != 0 {
529 return ErrInactivityTimeout
530 }
531 return err
532 }
533 return nil
534}
535
536func handleStreamResponse(resp *http.Response, streamOptions *streamOptions) error {
537 var err error
538 if !streamOptions.useJSONDecoder && resp.Header.Get("Content-Type") != "application/json" {
539 if streamOptions.setRawTerminal {
540 _, err = io.Copy(streamOptions.stdout, resp.Body)
541 } else {
542 _, err = stdcopy.StdCopy(streamOptions.stdout, streamOptions.stderr, resp.Body)
543 }
544 return err
545 }
546 // if we want to get raw json stream, just copy it back to output
547 // without decoding it
548 if streamOptions.rawJSONStream {
549 _, err = io.Copy(streamOptions.stdout, resp.Body)
550 return err
551 }
552 dec := json.NewDecoder(resp.Body)
553 for {
554 var m jsonMessage
555 if err := dec.Decode(&m); err == io.EOF {
556 break
557 } else if err != nil {
558 return err
559 }
560 if m.Stream != "" {
561 fmt.Fprint(streamOptions.stdout, m.Stream)
562 } else if m.Progress != "" {
563 fmt.Fprintf(streamOptions.stdout, "%s %s\r", m.Status, m.Progress)
564 } else if m.Error != "" {
565 return errors.New(m.Error)
566 }
567 if m.Status != "" {
568 fmt.Fprintln(streamOptions.stdout, m.Status)
569 }
570 }
571 return nil
572}
573
574type proxyWriter struct {
575 io.Writer
576 calls uint64
577}
578
579func (p *proxyWriter) callCount() uint64 {
580 return atomic.LoadUint64(&p.calls)
581}
582
583func (p *proxyWriter) Write(data []byte) (int, error) {
584 atomic.AddUint64(&p.calls, 1)
585 return p.Writer.Write(data)
586}
587
588func handleInactivityTimeout(options *streamOptions, cancelRequest func(), canceled *uint32) chan<- struct{} {
589 done := make(chan struct{})
590 proxyStdout := &proxyWriter{Writer: options.stdout}
591 proxyStderr := &proxyWriter{Writer: options.stderr}
592 options.stdout = proxyStdout
593 options.stderr = proxyStderr
594 go func() {
595 var lastCallCount uint64
596 for {
597 select {
598 case <-time.After(options.inactivityTimeout):
599 case <-done:
600 return
601 }
602 curCallCount := proxyStdout.callCount() + proxyStderr.callCount()
603 if curCallCount == lastCallCount {
604 atomic.AddUint32(canceled, 1)
605 cancelRequest()
606 return
607 }
608 lastCallCount = curCallCount
609 }
610 }()
611 return done
612}
613
614type hijackOptions struct {
615 success chan struct{}
616 setRawTerminal bool
617 in io.Reader
618 stdout io.Writer
619 stderr io.Writer
620 data interface{}
621}
622
623// CloseWaiter is an interface with methods for closing the underlying resource
624// and then waiting for it to finish processing.
625type CloseWaiter interface {
626 io.Closer
627 Wait() error
628}
629
630type waiterFunc func() error
631
632func (w waiterFunc) Wait() error { return w() }
633
634type closerFunc func() error
635
636func (c closerFunc) Close() error { return c() }
637
638func (c *Client) hijack(method, path string, hijackOptions hijackOptions) (CloseWaiter, error) {
639 if path != "/version" && !c.SkipServerVersionCheck && c.expectedAPIVersion == nil {
640 err := c.checkAPIVersion()
641 if err != nil {
642 return nil, err
643 }
644 }
645 var params io.Reader
646 if hijackOptions.data != nil {
647 buf, err := json.Marshal(hijackOptions.data)
648 if err != nil {
649 return nil, err
650 }
651 params = bytes.NewBuffer(buf)
652 }
653 req, err := http.NewRequest(method, c.getURL(path), params)
654 if err != nil {
655 return nil, err
656 }
657 req.Header.Set("Content-Type", "application/json")
658 req.Header.Set("Connection", "Upgrade")
659 req.Header.Set("Upgrade", "tcp")
660 protocol := c.endpointURL.Scheme
661 address := c.endpointURL.Path
662 if protocol != "unix" {
663 protocol = "tcp"
664 address = c.endpointURL.Host
665 }
666 var dial net.Conn
667 if c.TLSConfig != nil && protocol != "unix" {
668 dial, err = tlsDialWithDialer(c.Dialer, protocol, address, c.TLSConfig)
669 if err != nil {
670 return nil, err
671 }
672 } else {
673 dial, err = c.Dialer.Dial(protocol, address)
674 if err != nil {
675 return nil, err
676 }
677 }
678
679 errs := make(chan error)
680 quit := make(chan struct{})
681 go func() {
682 clientconn := httputil.NewClientConn(dial, nil)
683 defer clientconn.Close()
684 clientconn.Do(req)
685 if hijackOptions.success != nil {
686 hijackOptions.success <- struct{}{}
687 <-hijackOptions.success
688 }
689 rwc, br := clientconn.Hijack()
690 defer rwc.Close()
691
692 errChanOut := make(chan error, 1)
693 errChanIn := make(chan error, 1)
694 if hijackOptions.stdout == nil && hijackOptions.stderr == nil {
695 close(errChanOut)
696 } else {
697 // Only copy if hijackOptions.stdout and/or hijackOptions.stderr is actually set.
698 // Otherwise, if the only stream you care about is stdin, your attach session
699 // will "hang" until the container terminates, even though you're not reading
700 // stdout/stderr
701 if hijackOptions.stdout == nil {
702 hijackOptions.stdout = ioutil.Discard
703 }
704 if hijackOptions.stderr == nil {
705 hijackOptions.stderr = ioutil.Discard
706 }
707
708 go func() {
709 defer func() {
710 if hijackOptions.in != nil {
711 if closer, ok := hijackOptions.in.(io.Closer); ok {
712 closer.Close()
713 }
714 errChanIn <- nil
715 }
716 }()
717
718 var err error
719 if hijackOptions.setRawTerminal {
720 _, err = io.Copy(hijackOptions.stdout, br)
721 } else {
722 _, err = stdcopy.StdCopy(hijackOptions.stdout, hijackOptions.stderr, br)
723 }
724 errChanOut <- err
725 }()
726 }
727
728 go func() {
729 var err error
730 if hijackOptions.in != nil {
731 _, err = io.Copy(rwc, hijackOptions.in)
732 }
733 errChanIn <- err
734 rwc.(interface {
735 CloseWrite() error
736 }).CloseWrite()
737 }()
738
739 var errIn error
740 select {
741 case errIn = <-errChanIn:
742 case <-quit:
743 return
744 }
745
746 var errOut error
747 select {
748 case errOut = <-errChanOut:
749 case <-quit:
750 return
751 }
752
753 if errIn != nil {
754 errs <- errIn
755 } else {
756 errs <- errOut
757 }
758 }()
759
760 return struct {
761 closerFunc
762 waiterFunc
763 }{
764 closerFunc(func() error { close(quit); return nil }),
765 waiterFunc(func() error { return <-errs }),
766 }, nil
767}
768
769func (c *Client) getURL(path string) string {
770 urlStr := strings.TrimRight(c.endpointURL.String(), "/")
771 if c.endpointURL.Scheme == "unix" {
772 urlStr = ""
773 }
774 if c.requestedAPIVersion != nil {
775 return fmt.Sprintf("%s/v%s%s", urlStr, c.requestedAPIVersion, path)
776 }
777 return fmt.Sprintf("%s%s", urlStr, path)
778}
779
780// getFakeUnixURL returns the URL needed to make an HTTP request over a UNIX
781// domain socket to the given path.
782func (c *Client) getFakeUnixURL(path string) string {
783 u := *c.endpointURL // Copy.
784
785 // Override URL so that net/http will not complain.
786 u.Scheme = "http"
787 u.Host = "unix.sock" // Doesn't matter what this is - it's not used.
788 u.Path = ""
789 urlStr := strings.TrimRight(u.String(), "/")
790 if c.requestedAPIVersion != nil {
791 return fmt.Sprintf("%s/v%s%s", urlStr, c.requestedAPIVersion, path)
792 }
793 return fmt.Sprintf("%s%s", urlStr, path)
794}
795
796func (c *Client) unixClient() *http.Client {
797 if c.unixHTTPClient != nil {
798 return c.unixHTTPClient
799 }
800 socketPath := c.endpointURL.Path
801 tr := &http.Transport{
802 Dial: func(network, addr string) (net.Conn, error) {
803 return c.Dialer.Dial("unix", socketPath)
804 },
805 }
806 cleanhttp.SetTransportFinalizer(tr)
807 c.unixHTTPClient = &http.Client{Transport: tr}
808 return c.unixHTTPClient
809}
810
811type jsonMessage struct {
812 Status string `json:"status,omitempty"`
813 Progress string `json:"progress,omitempty"`
814 Error string `json:"error,omitempty"`
815 Stream string `json:"stream,omitempty"`
816}
817
818func queryString(opts interface{}) string {
819 if opts == nil {
820 return ""
821 }
822 value := reflect.ValueOf(opts)
823 if value.Kind() == reflect.Ptr {
824 value = value.Elem()
825 }
826 if value.Kind() != reflect.Struct {
827 return ""
828 }
829 items := url.Values(map[string][]string{})
830 for i := 0; i < value.NumField(); i++ {
831 field := value.Type().Field(i)
832 if field.PkgPath != "" {
833 continue
834 }
835 key := field.Tag.Get("qs")
836 if key == "" {
837 key = strings.ToLower(field.Name)
838 } else if key == "-" {
839 continue
840 }
841 addQueryStringValue(items, key, value.Field(i))
842 }
843 return items.Encode()
844}
845
846func addQueryStringValue(items url.Values, key string, v reflect.Value) {
847 switch v.Kind() {
848 case reflect.Bool:
849 if v.Bool() {
850 items.Add(key, "1")
851 }
852 case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
853 if v.Int() > 0 {
854 items.Add(key, strconv.FormatInt(v.Int(), 10))
855 }
856 case reflect.Float32, reflect.Float64:
857 if v.Float() > 0 {
858 items.Add(key, strconv.FormatFloat(v.Float(), 'f', -1, 64))
859 }
860 case reflect.String:
861 if v.String() != "" {
862 items.Add(key, v.String())
863 }
864 case reflect.Ptr:
865 if !v.IsNil() {
866 if b, err := json.Marshal(v.Interface()); err == nil {
867 items.Add(key, string(b))
868 }
869 }
870 case reflect.Map:
871 if len(v.MapKeys()) > 0 {
872 if b, err := json.Marshal(v.Interface()); err == nil {
873 items.Add(key, string(b))
874 }
875 }
876 case reflect.Array, reflect.Slice:
877 vLen := v.Len()
878 if vLen > 0 {
879 for i := 0; i < vLen; i++ {
880 addQueryStringValue(items, key, v.Index(i))
881 }
882 }
883 }
884}
885
886// Error represents failures in the API. It represents a failure from the API.
887type Error struct {
888 Status int
889 Message string
890}
891
892func newError(resp *http.Response) *Error {
893 defer resp.Body.Close()
894 data, err := ioutil.ReadAll(resp.Body)
895 if err != nil {
896 return &Error{Status: resp.StatusCode, Message: fmt.Sprintf("cannot read body, err: %v", err)}
897 }
898 return &Error{Status: resp.StatusCode, Message: string(data)}
899}
900
901func (e *Error) Error() string {
902 return fmt.Sprintf("API error (%d): %s", e.Status, e.Message)
903}
904
905func parseEndpoint(endpoint string, tls bool) (*url.URL, error) {
906 if endpoint != "" && !strings.Contains(endpoint, "://") {
907 endpoint = "tcp://" + endpoint
908 }
909 u, err := url.Parse(endpoint)
910 if err != nil {
911 return nil, ErrInvalidEndpoint
912 }
913 if tls {
914 u.Scheme = "https"
915 }
916 switch u.Scheme {
917 case "unix":
918 return u, nil
919 case "http", "https", "tcp":
920 _, port, err := net.SplitHostPort(u.Host)
921 if err != nil {
922 if e, ok := err.(*net.AddrError); ok {
923 if e.Err == "missing port in address" {
924 return u, nil
925 }
926 }
927 return nil, ErrInvalidEndpoint
928 }
929 number, err := strconv.ParseInt(port, 10, 64)
930 if err == nil && number > 0 && number < 65536 {
931 if u.Scheme == "tcp" {
932 if tls {
933 u.Scheme = "https"
934 } else {
935 u.Scheme = "http"
936 }
937 }
938 return u, nil
939 }
940 return nil, ErrInvalidEndpoint
941 default:
942 return nil, ErrInvalidEndpoint
943 }
944}
945
946type dockerEnv struct {
947 dockerHost string
948 dockerTLSVerify bool
949 dockerCertPath string
950}
951
952func getDockerEnv() (*dockerEnv, error) {
953 dockerHost := os.Getenv("DOCKER_HOST")
954 var err error
955 if dockerHost == "" {
956 dockerHost, err = DefaultDockerHost()
957 if err != nil {
958 return nil, err
959 }
960 }
961 dockerTLSVerify := os.Getenv("DOCKER_TLS_VERIFY") != ""
962 var dockerCertPath string
963 if dockerTLSVerify {
964 dockerCertPath = os.Getenv("DOCKER_CERT_PATH")
965 if dockerCertPath == "" {
966 home := homedir.Get()
967 if home == "" {
968 return nil, errors.New("environment variable HOME must be set if DOCKER_CERT_PATH is not set")
969 }
970 dockerCertPath = filepath.Join(home, ".docker")
971 dockerCertPath, err = filepath.Abs(dockerCertPath)
972 if err != nil {
973 return nil, err
974 }
975 }
976 }
977 return &dockerEnv{
978 dockerHost: dockerHost,
979 dockerTLSVerify: dockerTLSVerify,
980 dockerCertPath: dockerCertPath,
981 }, nil
982}
983
984// DefaultDockerHost returns the default docker socket for the current OS
985func DefaultDockerHost() (string, error) {
986 var defaultHost string
987 if runtime.GOOS == "windows" {
988 // If we do not have a host, default to TCP socket on Windows
989 defaultHost = fmt.Sprintf("tcp://%s:%d", opts.DefaultHTTPHost, opts.DefaultHTTPPort)
990 } else {
991 // If we do not have a host, default to unix socket
992 defaultHost = fmt.Sprintf("unix://%s", opts.DefaultUnixSocket)
993 }
994 return opts.ValidateHost(defaultHost)
995}
diff --git a/vendor/github.com/fsouza/go-dockerclient/container.go b/vendor/github.com/fsouza/go-dockerclient/container.go
deleted file mode 100644
index f7ed5f5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/container.go
+++ /dev/null
@@ -1,1325 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import (
8 "encoding/json"
9 "errors"
10 "fmt"
11 "io"
12 "net/http"
13 "net/url"
14 "strconv"
15 "strings"
16 "time"
17
18 "github.com/fsouza/go-dockerclient/external/github.com/docker/go-units"
19)
20
21// ErrContainerAlreadyExists is the error returned by CreateContainer when the
22// container already exists.
23var ErrContainerAlreadyExists = errors.New("container already exists")
24
25// ListContainersOptions specify parameters to the ListContainers function.
26//
27// See https://goo.gl/47a6tO for more details.
28type ListContainersOptions struct {
29 All bool
30 Size bool
31 Limit int
32 Since string
33 Before string
34 Filters map[string][]string
35}
36
37// APIPort is a type that represents a port mapping returned by the Docker API
38type APIPort struct {
39 PrivatePort int64 `json:"PrivatePort,omitempty" yaml:"PrivatePort,omitempty"`
40 PublicPort int64 `json:"PublicPort,omitempty" yaml:"PublicPort,omitempty"`
41 Type string `json:"Type,omitempty" yaml:"Type,omitempty"`
42 IP string `json:"IP,omitempty" yaml:"IP,omitempty"`
43}
44
45// APIMount represents a mount point for a container.
46type APIMount struct {
47 Name string `json:"Name,omitempty" yaml:"Name,omitempty"`
48 Source string `json:"Source,omitempty" yaml:"Source,omitempty"`
49 Destination string `json:"Destination,omitempty" yaml:"Destination,omitempty"`
50 Driver string `json:"Driver,omitempty" yaml:"Driver,omitempty"`
51 Mode string `json:"Mode,omitempty" yaml:"Mode,omitempty"`
52 RW bool `json:"RW,omitempty" yaml:"RW,omitempty"`
53 Propogation string `json:"Propogation,omitempty" yaml:"Propogation,omitempty"`
54}
55
56// APIContainers represents each container in the list returned by
57// ListContainers.
58type APIContainers struct {
59 ID string `json:"Id" yaml:"Id"`
60 Image string `json:"Image,omitempty" yaml:"Image,omitempty"`
61 Command string `json:"Command,omitempty" yaml:"Command,omitempty"`
62 Created int64 `json:"Created,omitempty" yaml:"Created,omitempty"`
63 State string `json:"State,omitempty" yaml:"State,omitempty"`
64 Status string `json:"Status,omitempty" yaml:"Status,omitempty"`
65 Ports []APIPort `json:"Ports,omitempty" yaml:"Ports,omitempty"`
66 SizeRw int64 `json:"SizeRw,omitempty" yaml:"SizeRw,omitempty"`
67 SizeRootFs int64 `json:"SizeRootFs,omitempty" yaml:"SizeRootFs,omitempty"`
68 Names []string `json:"Names,omitempty" yaml:"Names,omitempty"`
69 Labels map[string]string `json:"Labels,omitempty" yaml:"Labels,omitempty"`
70 Networks NetworkList `json:"NetworkSettings,omitempty" yaml:"NetworkSettings,omitempty"`
71 Mounts []APIMount `json:"Mounts,omitempty" yaml:"Mounts,omitempty"`
72}
73
74// NetworkList encapsulates a map of networks, as returned by the Docker API in
75// ListContainers.
76type NetworkList struct {
77 Networks map[string]ContainerNetwork `json:"Networks" yaml:"Networks,omitempty"`
78}
79
80// ListContainers returns a slice of containers matching the given criteria.
81//
82// See https://goo.gl/47a6tO for more details.
83func (c *Client) ListContainers(opts ListContainersOptions) ([]APIContainers, error) {
84 path := "/containers/json?" + queryString(opts)
85 resp, err := c.do("GET", path, doOptions{})
86 if err != nil {
87 return nil, err
88 }
89 defer resp.Body.Close()
90 var containers []APIContainers
91 if err := json.NewDecoder(resp.Body).Decode(&containers); err != nil {
92 return nil, err
93 }
94 return containers, nil
95}
96
97// Port represents the port number and the protocol, in the form
98// <number>/<protocol>. For example: 80/tcp.
99type Port string
100
101// Port returns the number of the port.
102func (p Port) Port() string {
103 return strings.Split(string(p), "/")[0]
104}
105
106// Proto returns the name of the protocol.
107func (p Port) Proto() string {
108 parts := strings.Split(string(p), "/")
109 if len(parts) == 1 {
110 return "tcp"
111 }
112 return parts[1]
113}
114
115// State represents the state of a container.
116type State struct {
117 Status string `json:"Status,omitempty" yaml:"Status,omitempty"`
118 Running bool `json:"Running,omitempty" yaml:"Running,omitempty"`
119 Paused bool `json:"Paused,omitempty" yaml:"Paused,omitempty"`
120 Restarting bool `json:"Restarting,omitempty" yaml:"Restarting,omitempty"`
121 OOMKilled bool `json:"OOMKilled,omitempty" yaml:"OOMKilled,omitempty"`
122 RemovalInProgress bool `json:"RemovalInProgress,omitempty" yaml:"RemovalInProgress,omitempty"`
123 Dead bool `json:"Dead,omitempty" yaml:"Dead,omitempty"`
124 Pid int `json:"Pid,omitempty" yaml:"Pid,omitempty"`
125 ExitCode int `json:"ExitCode,omitempty" yaml:"ExitCode,omitempty"`
126 Error string `json:"Error,omitempty" yaml:"Error,omitempty"`
127 StartedAt time.Time `json:"StartedAt,omitempty" yaml:"StartedAt,omitempty"`
128 FinishedAt time.Time `json:"FinishedAt,omitempty" yaml:"FinishedAt,omitempty"`
129}
130
131// String returns a human-readable description of the state
132func (s *State) String() string {
133 if s.Running {
134 if s.Paused {
135 return fmt.Sprintf("Up %s (Paused)", units.HumanDuration(time.Now().UTC().Sub(s.StartedAt)))
136 }
137 if s.Restarting {
138 return fmt.Sprintf("Restarting (%d) %s ago", s.ExitCode, units.HumanDuration(time.Now().UTC().Sub(s.FinishedAt)))
139 }
140
141 return fmt.Sprintf("Up %s", units.HumanDuration(time.Now().UTC().Sub(s.StartedAt)))
142 }
143
144 if s.RemovalInProgress {
145 return "Removal In Progress"
146 }
147
148 if s.Dead {
149 return "Dead"
150 }
151
152 if s.StartedAt.IsZero() {
153 return "Created"
154 }
155
156 if s.FinishedAt.IsZero() {
157 return ""
158 }
159
160 return fmt.Sprintf("Exited (%d) %s ago", s.ExitCode, units.HumanDuration(time.Now().UTC().Sub(s.FinishedAt)))
161}
162
163// StateString returns a single string to describe state
164func (s *State) StateString() string {
165 if s.Running {
166 if s.Paused {
167 return "paused"
168 }
169 if s.Restarting {
170 return "restarting"
171 }
172 return "running"
173 }
174
175 if s.Dead {
176 return "dead"
177 }
178
179 if s.StartedAt.IsZero() {
180 return "created"
181 }
182
183 return "exited"
184}
185
186// PortBinding represents the host/container port mapping as returned in the
187// `docker inspect` json
188type PortBinding struct {
189 HostIP string `json:"HostIP,omitempty" yaml:"HostIP,omitempty"`
190 HostPort string `json:"HostPort,omitempty" yaml:"HostPort,omitempty"`
191}
192
193// PortMapping represents a deprecated field in the `docker inspect` output,
194// and its value as found in NetworkSettings should always be nil
195type PortMapping map[string]string
196
197// ContainerNetwork represents the networking settings of a container per network.
198type ContainerNetwork struct {
199 MacAddress string `json:"MacAddress,omitempty" yaml:"MacAddress,omitempty"`
200 GlobalIPv6PrefixLen int `json:"GlobalIPv6PrefixLen,omitempty" yaml:"GlobalIPv6PrefixLen,omitempty"`
201 GlobalIPv6Address string `json:"GlobalIPv6Address,omitempty" yaml:"GlobalIPv6Address,omitempty"`
202 IPv6Gateway string `json:"IPv6Gateway,omitempty" yaml:"IPv6Gateway,omitempty"`
203 IPPrefixLen int `json:"IPPrefixLen,omitempty" yaml:"IPPrefixLen,omitempty"`
204 IPAddress string `json:"IPAddress,omitempty" yaml:"IPAddress,omitempty"`
205 Gateway string `json:"Gateway,omitempty" yaml:"Gateway,omitempty"`
206 EndpointID string `json:"EndpointID,omitempty" yaml:"EndpointID,omitempty"`
207 NetworkID string `json:"NetworkID,omitempty" yaml:"NetworkID,omitempty"`
208}
209
210// NetworkSettings contains network-related information about a container
211type NetworkSettings struct {
212 Networks map[string]ContainerNetwork `json:"Networks,omitempty" yaml:"Networks,omitempty"`
213 IPAddress string `json:"IPAddress,omitempty" yaml:"IPAddress,omitempty"`
214 IPPrefixLen int `json:"IPPrefixLen,omitempty" yaml:"IPPrefixLen,omitempty"`
215 MacAddress string `json:"MacAddress,omitempty" yaml:"MacAddress,omitempty"`
216 Gateway string `json:"Gateway,omitempty" yaml:"Gateway,omitempty"`
217 Bridge string `json:"Bridge,omitempty" yaml:"Bridge,omitempty"`
218 PortMapping map[string]PortMapping `json:"PortMapping,omitempty" yaml:"PortMapping,omitempty"`
219 Ports map[Port][]PortBinding `json:"Ports,omitempty" yaml:"Ports,omitempty"`
220 NetworkID string `json:"NetworkID,omitempty" yaml:"NetworkID,omitempty"`
221 EndpointID string `json:"EndpointID,omitempty" yaml:"EndpointID,omitempty"`
222 SandboxKey string `json:"SandboxKey,omitempty" yaml:"SandboxKey,omitempty"`
223 GlobalIPv6Address string `json:"GlobalIPv6Address,omitempty" yaml:"GlobalIPv6Address,omitempty"`
224 GlobalIPv6PrefixLen int `json:"GlobalIPv6PrefixLen,omitempty" yaml:"GlobalIPv6PrefixLen,omitempty"`
225 IPv6Gateway string `json:"IPv6Gateway,omitempty" yaml:"IPv6Gateway,omitempty"`
226 LinkLocalIPv6Address string `json:"LinkLocalIPv6Address,omitempty" yaml:"LinkLocalIPv6Address,omitempty"`
227 LinkLocalIPv6PrefixLen int `json:"LinkLocalIPv6PrefixLen,omitempty" yaml:"LinkLocalIPv6PrefixLen,omitempty"`
228 SecondaryIPAddresses []string `json:"SecondaryIPAddresses,omitempty" yaml:"SecondaryIPAddresses,omitempty"`
229 SecondaryIPv6Addresses []string `json:"SecondaryIPv6Addresses,omitempty" yaml:"SecondaryIPv6Addresses,omitempty"`
230}
231
232// PortMappingAPI translates the port mappings as contained in NetworkSettings
233// into the format in which they would appear when returned by the API
234func (settings *NetworkSettings) PortMappingAPI() []APIPort {
235 var mapping []APIPort
236 for port, bindings := range settings.Ports {
237 p, _ := parsePort(port.Port())
238 if len(bindings) == 0 {
239 mapping = append(mapping, APIPort{
240 PrivatePort: int64(p),
241 Type: port.Proto(),
242 })
243 continue
244 }
245 for _, binding := range bindings {
246 p, _ := parsePort(port.Port())
247 h, _ := parsePort(binding.HostPort)
248 mapping = append(mapping, APIPort{
249 PrivatePort: int64(p),
250 PublicPort: int64(h),
251 Type: port.Proto(),
252 IP: binding.HostIP,
253 })
254 }
255 }
256 return mapping
257}
258
259func parsePort(rawPort string) (int, error) {
260 port, err := strconv.ParseUint(rawPort, 10, 16)
261 if err != nil {
262 return 0, err
263 }
264 return int(port), nil
265}
266
267// Config is the list of configuration options used when creating a container.
268// Config does not contain the options that are specific to starting a container on a
269// given host. Those are contained in HostConfig
270type Config struct {
271 Hostname string `json:"Hostname,omitempty" yaml:"Hostname,omitempty"`
272 Domainname string `json:"Domainname,omitempty" yaml:"Domainname,omitempty"`
273 User string `json:"User,omitempty" yaml:"User,omitempty"`
274 Memory int64 `json:"Memory,omitempty" yaml:"Memory,omitempty"`
275 MemorySwap int64 `json:"MemorySwap,omitempty" yaml:"MemorySwap,omitempty"`
276 MemoryReservation int64 `json:"MemoryReservation,omitempty" yaml:"MemoryReservation,omitempty"`
277 KernelMemory int64 `json:"KernelMemory,omitempty" yaml:"KernelMemory,omitempty"`
278 PidsLimit int64 `json:"PidsLimit,omitempty" yaml:"PidsLimit,omitempty"`
279 CPUShares int64 `json:"CpuShares,omitempty" yaml:"CpuShares,omitempty"`
280 CPUSet string `json:"Cpuset,omitempty" yaml:"Cpuset,omitempty"`
281 AttachStdin bool `json:"AttachStdin,omitempty" yaml:"AttachStdin,omitempty"`
282 AttachStdout bool `json:"AttachStdout,omitempty" yaml:"AttachStdout,omitempty"`
283 AttachStderr bool `json:"AttachStderr,omitempty" yaml:"AttachStderr,omitempty"`
284 PortSpecs []string `json:"PortSpecs,omitempty" yaml:"PortSpecs,omitempty"`
285 ExposedPorts map[Port]struct{} `json:"ExposedPorts,omitempty" yaml:"ExposedPorts,omitempty"`
286 StopSignal string `json:"StopSignal,omitempty" yaml:"StopSignal,omitempty"`
287 Tty bool `json:"Tty,omitempty" yaml:"Tty,omitempty"`
288 OpenStdin bool `json:"OpenStdin,omitempty" yaml:"OpenStdin,omitempty"`
289 StdinOnce bool `json:"StdinOnce,omitempty" yaml:"StdinOnce,omitempty"`
290 Env []string `json:"Env,omitempty" yaml:"Env,omitempty"`
291 Cmd []string `json:"Cmd" yaml:"Cmd"`
292 DNS []string `json:"Dns,omitempty" yaml:"Dns,omitempty"` // For Docker API v1.9 and below only
293 Image string `json:"Image,omitempty" yaml:"Image,omitempty"`
294 Volumes map[string]struct{} `json:"Volumes,omitempty" yaml:"Volumes,omitempty"`
295 VolumeDriver string `json:"VolumeDriver,omitempty" yaml:"VolumeDriver,omitempty"`
296 VolumesFrom string `json:"VolumesFrom,omitempty" yaml:"VolumesFrom,omitempty"`
297 WorkingDir string `json:"WorkingDir,omitempty" yaml:"WorkingDir,omitempty"`
298 MacAddress string `json:"MacAddress,omitempty" yaml:"MacAddress,omitempty"`
299 Entrypoint []string `json:"Entrypoint" yaml:"Entrypoint"`
300 NetworkDisabled bool `json:"NetworkDisabled,omitempty" yaml:"NetworkDisabled,omitempty"`
301 SecurityOpts []string `json:"SecurityOpts,omitempty" yaml:"SecurityOpts,omitempty"`
302 OnBuild []string `json:"OnBuild,omitempty" yaml:"OnBuild,omitempty"`
303 Mounts []Mount `json:"Mounts,omitempty" yaml:"Mounts,omitempty"`
304 Labels map[string]string `json:"Labels,omitempty" yaml:"Labels,omitempty"`
305}
306
307// Mount represents a mount point in the container.
308//
309// It has been added in the version 1.20 of the Docker API, available since
310// Docker 1.8.
311type Mount struct {
312 Name string
313 Source string
314 Destination string
315 Driver string
316 Mode string
317 RW bool
318}
319
320// LogConfig defines the log driver type and the configuration for it.
321type LogConfig struct {
322 Type string `json:"Type,omitempty" yaml:"Type,omitempty"`
323 Config map[string]string `json:"Config,omitempty" yaml:"Config,omitempty"`
324}
325
326// ULimit defines system-wide resource limitations
327// This can help a lot in system administration, e.g. when a user starts too many processes and therefore makes the system unresponsive for other users.
328type ULimit struct {
329 Name string `json:"Name,omitempty" yaml:"Name,omitempty"`
330 Soft int64 `json:"Soft,omitempty" yaml:"Soft,omitempty"`
331 Hard int64 `json:"Hard,omitempty" yaml:"Hard,omitempty"`
332}
333
334// SwarmNode containers information about which Swarm node the container is on
335type SwarmNode struct {
336 ID string `json:"ID,omitempty" yaml:"ID,omitempty"`
337 IP string `json:"IP,omitempty" yaml:"IP,omitempty"`
338 Addr string `json:"Addr,omitempty" yaml:"Addr,omitempty"`
339 Name string `json:"Name,omitempty" yaml:"Name,omitempty"`
340 CPUs int64 `json:"CPUs,omitempty" yaml:"CPUs,omitempty"`
341 Memory int64 `json:"Memory,omitempty" yaml:"Memory,omitempty"`
342 Labels map[string]string `json:"Labels,omitempty" yaml:"Labels,omitempty"`
343}
344
345// GraphDriver contains information about the GraphDriver used by the container
346type GraphDriver struct {
347 Name string `json:"Name,omitempty" yaml:"Name,omitempty"`
348 Data map[string]string `json:"Data,omitempty" yaml:"Data,omitempty"`
349}
350
351// Container is the type encompasing everything about a container - its config,
352// hostconfig, etc.
353type Container struct {
354 ID string `json:"Id" yaml:"Id"`
355
356 Created time.Time `json:"Created,omitempty" yaml:"Created,omitempty"`
357
358 Path string `json:"Path,omitempty" yaml:"Path,omitempty"`
359 Args []string `json:"Args,omitempty" yaml:"Args,omitempty"`
360
361 Config *Config `json:"Config,omitempty" yaml:"Config,omitempty"`
362 State State `json:"State,omitempty" yaml:"State,omitempty"`
363 Image string `json:"Image,omitempty" yaml:"Image,omitempty"`
364
365 Node *SwarmNode `json:"Node,omitempty" yaml:"Node,omitempty"`
366
367 NetworkSettings *NetworkSettings `json:"NetworkSettings,omitempty" yaml:"NetworkSettings,omitempty"`
368
369 SysInitPath string `json:"SysInitPath,omitempty" yaml:"SysInitPath,omitempty"`
370 ResolvConfPath string `json:"ResolvConfPath,omitempty" yaml:"ResolvConfPath,omitempty"`
371 HostnamePath string `json:"HostnamePath,omitempty" yaml:"HostnamePath,omitempty"`
372 HostsPath string `json:"HostsPath,omitempty" yaml:"HostsPath,omitempty"`
373 LogPath string `json:"LogPath,omitempty" yaml:"LogPath,omitempty"`
374 Name string `json:"Name,omitempty" yaml:"Name,omitempty"`
375 Driver string `json:"Driver,omitempty" yaml:"Driver,omitempty"`
376 Mounts []Mount `json:"Mounts,omitempty" yaml:"Mounts,omitempty"`
377
378 Volumes map[string]string `json:"Volumes,omitempty" yaml:"Volumes,omitempty"`
379 VolumesRW map[string]bool `json:"VolumesRW,omitempty" yaml:"VolumesRW,omitempty"`
380 HostConfig *HostConfig `json:"HostConfig,omitempty" yaml:"HostConfig,omitempty"`
381 ExecIDs []string `json:"ExecIDs,omitempty" yaml:"ExecIDs,omitempty"`
382 GraphDriver *GraphDriver `json:"GraphDriver,omitempty" yaml:"GraphDriver,omitempty"`
383
384 RestartCount int `json:"RestartCount,omitempty" yaml:"RestartCount,omitempty"`
385
386 AppArmorProfile string `json:"AppArmorProfile,omitempty" yaml:"AppArmorProfile,omitempty"`
387}
388
389// UpdateContainerOptions specify parameters to the UpdateContainer function.
390//
391// See https://goo.gl/Y6fXUy for more details.
392type UpdateContainerOptions struct {
393 BlkioWeight int `json:"BlkioWeight"`
394 CPUShares int `json:"CpuShares"`
395 CPUPeriod int `json:"CpuPeriod"`
396 CPUQuota int `json:"CpuQuota"`
397 CpusetCpus string `json:"CpusetCpus"`
398 CpusetMems string `json:"CpusetMems"`
399 Memory int `json:"Memory"`
400 MemorySwap int `json:"MemorySwap"`
401 MemoryReservation int `json:"MemoryReservation"`
402 KernelMemory int `json:"KernelMemory"`
403 RestartPolicy RestartPolicy `json:"RestartPolicy,omitempty"`
404}
405
406// UpdateContainer updates the container at ID with the options
407//
408// See https://goo.gl/Y6fXUy for more details.
409func (c *Client) UpdateContainer(id string, opts UpdateContainerOptions) error {
410 resp, err := c.do("POST", fmt.Sprintf("/containers/"+id+"/update"), doOptions{data: opts, forceJSON: true})
411 if err != nil {
412 return err
413 }
414 defer resp.Body.Close()
415 return nil
416}
417
418// RenameContainerOptions specify parameters to the RenameContainer function.
419//
420// See https://goo.gl/laSOIy for more details.
421type RenameContainerOptions struct {
422 // ID of container to rename
423 ID string `qs:"-"`
424
425 // New name
426 Name string `json:"name,omitempty" yaml:"name,omitempty"`
427}
428
429// RenameContainer updates and existing containers name
430//
431// See https://goo.gl/laSOIy for more details.
432func (c *Client) RenameContainer(opts RenameContainerOptions) error {
433 resp, err := c.do("POST", fmt.Sprintf("/containers/"+opts.ID+"/rename?%s", queryString(opts)), doOptions{})
434 if err != nil {
435 return err
436 }
437 resp.Body.Close()
438 return nil
439}
440
441// InspectContainer returns information about a container by its ID.
442//
443// See https://goo.gl/RdIq0b for more details.
444func (c *Client) InspectContainer(id string) (*Container, error) {
445 path := "/containers/" + id + "/json"
446 resp, err := c.do("GET", path, doOptions{})
447 if err != nil {
448 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
449 return nil, &NoSuchContainer{ID: id}
450 }
451 return nil, err
452 }
453 defer resp.Body.Close()
454 var container Container
455 if err := json.NewDecoder(resp.Body).Decode(&container); err != nil {
456 return nil, err
457 }
458 return &container, nil
459}
460
461// ContainerChanges returns changes in the filesystem of the given container.
462//
463// See https://goo.gl/9GsTIF for more details.
464func (c *Client) ContainerChanges(id string) ([]Change, error) {
465 path := "/containers/" + id + "/changes"
466 resp, err := c.do("GET", path, doOptions{})
467 if err != nil {
468 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
469 return nil, &NoSuchContainer{ID: id}
470 }
471 return nil, err
472 }
473 defer resp.Body.Close()
474 var changes []Change
475 if err := json.NewDecoder(resp.Body).Decode(&changes); err != nil {
476 return nil, err
477 }
478 return changes, nil
479}
480
481// CreateContainerOptions specify parameters to the CreateContainer function.
482//
483// See https://goo.gl/WxQzrr for more details.
484type CreateContainerOptions struct {
485 Name string
486 Config *Config `qs:"-"`
487 HostConfig *HostConfig `qs:"-"`
488}
489
490// CreateContainer creates a new container, returning the container instance,
491// or an error in case of failure.
492//
493// See https://goo.gl/WxQzrr for more details.
494func (c *Client) CreateContainer(opts CreateContainerOptions) (*Container, error) {
495 path := "/containers/create?" + queryString(opts)
496 resp, err := c.do(
497 "POST",
498 path,
499 doOptions{
500 data: struct {
501 *Config
502 HostConfig *HostConfig `json:"HostConfig,omitempty" yaml:"HostConfig,omitempty"`
503 }{
504 opts.Config,
505 opts.HostConfig,
506 },
507 },
508 )
509
510 if e, ok := err.(*Error); ok {
511 if e.Status == http.StatusNotFound {
512 return nil, ErrNoSuchImage
513 }
514 if e.Status == http.StatusConflict {
515 return nil, ErrContainerAlreadyExists
516 }
517 }
518
519 if err != nil {
520 return nil, err
521 }
522 defer resp.Body.Close()
523 var container Container
524 if err := json.NewDecoder(resp.Body).Decode(&container); err != nil {
525 return nil, err
526 }
527
528 container.Name = opts.Name
529
530 return &container, nil
531}
532
533// KeyValuePair is a type for generic key/value pairs as used in the Lxc
534// configuration
535type KeyValuePair struct {
536 Key string `json:"Key,omitempty" yaml:"Key,omitempty"`
537 Value string `json:"Value,omitempty" yaml:"Value,omitempty"`
538}
539
540// RestartPolicy represents the policy for automatically restarting a container.
541//
542// Possible values are:
543//
544// - always: the docker daemon will always restart the container
545// - on-failure: the docker daemon will restart the container on failures, at
546// most MaximumRetryCount times
547// - no: the docker daemon will not restart the container automatically
548type RestartPolicy struct {
549 Name string `json:"Name,omitempty" yaml:"Name,omitempty"`
550 MaximumRetryCount int `json:"MaximumRetryCount,omitempty" yaml:"MaximumRetryCount,omitempty"`
551}
552
553// AlwaysRestart returns a restart policy that tells the Docker daemon to
554// always restart the container.
555func AlwaysRestart() RestartPolicy {
556 return RestartPolicy{Name: "always"}
557}
558
559// RestartOnFailure returns a restart policy that tells the Docker daemon to
560// restart the container on failures, trying at most maxRetry times.
561func RestartOnFailure(maxRetry int) RestartPolicy {
562 return RestartPolicy{Name: "on-failure", MaximumRetryCount: maxRetry}
563}
564
565// NeverRestart returns a restart policy that tells the Docker daemon to never
566// restart the container on failures.
567func NeverRestart() RestartPolicy {
568 return RestartPolicy{Name: "no"}
569}
570
571// Device represents a device mapping between the Docker host and the
572// container.
573type Device struct {
574 PathOnHost string `json:"PathOnHost,omitempty" yaml:"PathOnHost,omitempty"`
575 PathInContainer string `json:"PathInContainer,omitempty" yaml:"PathInContainer,omitempty"`
576 CgroupPermissions string `json:"CgroupPermissions,omitempty" yaml:"CgroupPermissions,omitempty"`
577}
578
579// BlockWeight represents a relative device weight for an individual device inside
580// of a container
581//
582// See https://goo.gl/FSdP0H for more details.
583type BlockWeight struct {
584 Path string `json:"Path,omitempty"`
585 Weight string `json:"Weight,omitempty"`
586}
587
588// BlockLimit represents a read/write limit in IOPS or Bandwidth for a device
589// inside of a container
590//
591// See https://goo.gl/FSdP0H for more details.
592type BlockLimit struct {
593 Path string `json:"Path,omitempty"`
594 Rate string `json:"Rate,omitempty"`
595}
596
597// HostConfig contains the container options related to starting a container on
598// a given host
599type HostConfig struct {
600 Binds []string `json:"Binds,omitempty" yaml:"Binds,omitempty"`
601 CapAdd []string `json:"CapAdd,omitempty" yaml:"CapAdd,omitempty"`
602 CapDrop []string `json:"CapDrop,omitempty" yaml:"CapDrop,omitempty"`
603 GroupAdd []string `json:"GroupAdd,omitempty" yaml:"GroupAdd,omitempty"`
604 ContainerIDFile string `json:"ContainerIDFile,omitempty" yaml:"ContainerIDFile,omitempty"`
605 LxcConf []KeyValuePair `json:"LxcConf,omitempty" yaml:"LxcConf,omitempty"`
606 Privileged bool `json:"Privileged,omitempty" yaml:"Privileged,omitempty"`
607 PortBindings map[Port][]PortBinding `json:"PortBindings,omitempty" yaml:"PortBindings,omitempty"`
608 Links []string `json:"Links,omitempty" yaml:"Links,omitempty"`
609 PublishAllPorts bool `json:"PublishAllPorts,omitempty" yaml:"PublishAllPorts,omitempty"`
610 DNS []string `json:"Dns,omitempty" yaml:"Dns,omitempty"` // For Docker API v1.10 and above only
611 DNSOptions []string `json:"DnsOptions,omitempty" yaml:"DnsOptions,omitempty"`
612 DNSSearch []string `json:"DnsSearch,omitempty" yaml:"DnsSearch,omitempty"`
613 ExtraHosts []string `json:"ExtraHosts,omitempty" yaml:"ExtraHosts,omitempty"`
614 VolumesFrom []string `json:"VolumesFrom,omitempty" yaml:"VolumesFrom,omitempty"`
615 UsernsMode string `json:"UsernsMode,omitempty" yaml:"UsernsMode,omitempty"`
616 NetworkMode string `json:"NetworkMode,omitempty" yaml:"NetworkMode,omitempty"`
617 IpcMode string `json:"IpcMode,omitempty" yaml:"IpcMode,omitempty"`
618 PidMode string `json:"PidMode,omitempty" yaml:"PidMode,omitempty"`
619 UTSMode string `json:"UTSMode,omitempty" yaml:"UTSMode,omitempty"`
620 RestartPolicy RestartPolicy `json:"RestartPolicy,omitempty" yaml:"RestartPolicy,omitempty"`
621 Devices []Device `json:"Devices,omitempty" yaml:"Devices,omitempty"`
622 LogConfig LogConfig `json:"LogConfig,omitempty" yaml:"LogConfig,omitempty"`
623 ReadonlyRootfs bool `json:"ReadonlyRootfs,omitempty" yaml:"ReadonlyRootfs,omitempty"`
624 SecurityOpt []string `json:"SecurityOpt,omitempty" yaml:"SecurityOpt,omitempty"`
625 CgroupParent string `json:"CgroupParent,omitempty" yaml:"CgroupParent,omitempty"`
626 Memory int64 `json:"Memory,omitempty" yaml:"Memory,omitempty"`
627 MemorySwap int64 `json:"MemorySwap,omitempty" yaml:"MemorySwap,omitempty"`
628 MemorySwappiness int64 `json:"MemorySwappiness,omitempty" yaml:"MemorySwappiness,omitempty"`
629 OOMKillDisable bool `json:"OomKillDisable,omitempty" yaml:"OomKillDisable"`
630 CPUShares int64 `json:"CpuShares,omitempty" yaml:"CpuShares,omitempty"`
631 CPUSet string `json:"Cpuset,omitempty" yaml:"Cpuset,omitempty"`
632 CPUSetCPUs string `json:"CpusetCpus,omitempty" yaml:"CpusetCpus,omitempty"`
633 CPUSetMEMs string `json:"CpusetMems,omitempty" yaml:"CpusetMems,omitempty"`
634 CPUQuota int64 `json:"CpuQuota,omitempty" yaml:"CpuQuota,omitempty"`
635 CPUPeriod int64 `json:"CpuPeriod,omitempty" yaml:"CpuPeriod,omitempty"`
636 BlkioWeight int64 `json:"BlkioWeight,omitempty" yaml:"BlkioWeight"`
637 BlkioWeightDevice []BlockWeight `json:"BlkioWeightDevice,omitempty" yaml:"BlkioWeightDevice"`
638 BlkioDeviceReadBps []BlockLimit `json:"BlkioDeviceReadBps,omitempty" yaml:"BlkioDeviceReadBps"`
639 BlkioDeviceReadIOps []BlockLimit `json:"BlkioDeviceReadIOps,omitempty" yaml:"BlkioDeviceReadIOps"`
640 BlkioDeviceWriteBps []BlockLimit `json:"BlkioDeviceWriteBps,omitempty" yaml:"BlkioDeviceWriteBps"`
641 BlkioDeviceWriteIOps []BlockLimit `json:"BlkioDeviceWriteIOps,omitempty" yaml:"BlkioDeviceWriteIOps"`
642 Ulimits []ULimit `json:"Ulimits,omitempty" yaml:"Ulimits,omitempty"`
643 VolumeDriver string `json:"VolumeDriver,omitempty" yaml:"VolumeDriver,omitempty"`
644 OomScoreAdj int `json:"OomScoreAdj,omitempty" yaml:"OomScoreAdj,omitempty"`
645 ShmSize int64 `json:"ShmSize,omitempty" yaml:"ShmSize,omitempty"`
646}
647
648// StartContainer starts a container, returning an error in case of failure.
649//
650// See https://goo.gl/MrBAJv for more details.
651func (c *Client) StartContainer(id string, hostConfig *HostConfig) error {
652 path := "/containers/" + id + "/start"
653 resp, err := c.do("POST", path, doOptions{data: hostConfig, forceJSON: true})
654 if err != nil {
655 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
656 return &NoSuchContainer{ID: id, Err: err}
657 }
658 return err
659 }
660 if resp.StatusCode == http.StatusNotModified {
661 return &ContainerAlreadyRunning{ID: id}
662 }
663 resp.Body.Close()
664 return nil
665}
666
667// StopContainer stops a container, killing it after the given timeout (in
668// seconds).
669//
670// See https://goo.gl/USqsFt for more details.
671func (c *Client) StopContainer(id string, timeout uint) error {
672 path := fmt.Sprintf("/containers/%s/stop?t=%d", id, timeout)
673 resp, err := c.do("POST", path, doOptions{})
674 if err != nil {
675 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
676 return &NoSuchContainer{ID: id}
677 }
678 return err
679 }
680 if resp.StatusCode == http.StatusNotModified {
681 return &ContainerNotRunning{ID: id}
682 }
683 resp.Body.Close()
684 return nil
685}
686
687// RestartContainer stops a container, killing it after the given timeout (in
688// seconds), during the stop process.
689//
690// See https://goo.gl/QzsDnz for more details.
691func (c *Client) RestartContainer(id string, timeout uint) error {
692 path := fmt.Sprintf("/containers/%s/restart?t=%d", id, timeout)
693 resp, err := c.do("POST", path, doOptions{})
694 if err != nil {
695 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
696 return &NoSuchContainer{ID: id}
697 }
698 return err
699 }
700 resp.Body.Close()
701 return nil
702}
703
704// PauseContainer pauses the given container.
705//
706// See https://goo.gl/OF7W9X for more details.
707func (c *Client) PauseContainer(id string) error {
708 path := fmt.Sprintf("/containers/%s/pause", id)
709 resp, err := c.do("POST", path, doOptions{})
710 if err != nil {
711 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
712 return &NoSuchContainer{ID: id}
713 }
714 return err
715 }
716 resp.Body.Close()
717 return nil
718}
719
720// UnpauseContainer unpauses the given container.
721//
722// See https://goo.gl/7dwyPA for more details.
723func (c *Client) UnpauseContainer(id string) error {
724 path := fmt.Sprintf("/containers/%s/unpause", id)
725 resp, err := c.do("POST", path, doOptions{})
726 if err != nil {
727 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
728 return &NoSuchContainer{ID: id}
729 }
730 return err
731 }
732 resp.Body.Close()
733 return nil
734}
735
736// TopResult represents the list of processes running in a container, as
737// returned by /containers/<id>/top.
738//
739// See https://goo.gl/Rb46aY for more details.
740type TopResult struct {
741 Titles []string
742 Processes [][]string
743}
744
745// TopContainer returns processes running inside a container
746//
747// See https://goo.gl/Rb46aY for more details.
748func (c *Client) TopContainer(id string, psArgs string) (TopResult, error) {
749 var args string
750 var result TopResult
751 if psArgs != "" {
752 args = fmt.Sprintf("?ps_args=%s", psArgs)
753 }
754 path := fmt.Sprintf("/containers/%s/top%s", id, args)
755 resp, err := c.do("GET", path, doOptions{})
756 if err != nil {
757 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
758 return result, &NoSuchContainer{ID: id}
759 }
760 return result, err
761 }
762 defer resp.Body.Close()
763 if err := json.NewDecoder(resp.Body).Decode(&result); err != nil {
764 return result, err
765 }
766 return result, nil
767}
768
769// Stats represents container statistics, returned by /containers/<id>/stats.
770//
771// See https://goo.gl/GNmLHb for more details.
772type Stats struct {
773 Read time.Time `json:"read,omitempty" yaml:"read,omitempty"`
774 PidsStats struct {
775 Current uint64 `json:"current,omitempty" yaml:"current,omitempty"`
776 } `json:"pids_stats,omitempty" yaml:"pids_stats,omitempty"`
777 Network NetworkStats `json:"network,omitempty" yaml:"network,omitempty"`
778 Networks map[string]NetworkStats `json:"networks,omitempty" yaml:"networks,omitempty"`
779 MemoryStats struct {
780 Stats struct {
781 TotalPgmafault uint64 `json:"total_pgmafault,omitempty" yaml:"total_pgmafault,omitempty"`
782 Cache uint64 `json:"cache,omitempty" yaml:"cache,omitempty"`
783 MappedFile uint64 `json:"mapped_file,omitempty" yaml:"mapped_file,omitempty"`
784 TotalInactiveFile uint64 `json:"total_inactive_file,omitempty" yaml:"total_inactive_file,omitempty"`
785 Pgpgout uint64 `json:"pgpgout,omitempty" yaml:"pgpgout,omitempty"`
786 Rss uint64 `json:"rss,omitempty" yaml:"rss,omitempty"`
787 TotalMappedFile uint64 `json:"total_mapped_file,omitempty" yaml:"total_mapped_file,omitempty"`
788 Writeback uint64 `json:"writeback,omitempty" yaml:"writeback,omitempty"`
789 Unevictable uint64 `json:"unevictable,omitempty" yaml:"unevictable,omitempty"`
790 Pgpgin uint64 `json:"pgpgin,omitempty" yaml:"pgpgin,omitempty"`
791 TotalUnevictable uint64 `json:"total_unevictable,omitempty" yaml:"total_unevictable,omitempty"`
792 Pgmajfault uint64 `json:"pgmajfault,omitempty" yaml:"pgmajfault,omitempty"`
793 TotalRss uint64 `json:"total_rss,omitempty" yaml:"total_rss,omitempty"`
794 TotalRssHuge uint64 `json:"total_rss_huge,omitempty" yaml:"total_rss_huge,omitempty"`
795 TotalWriteback uint64 `json:"total_writeback,omitempty" yaml:"total_writeback,omitempty"`
796 TotalInactiveAnon uint64 `json:"total_inactive_anon,omitempty" yaml:"total_inactive_anon,omitempty"`
797 RssHuge uint64 `json:"rss_huge,omitempty" yaml:"rss_huge,omitempty"`
798 HierarchicalMemoryLimit uint64 `json:"hierarchical_memory_limit,omitempty" yaml:"hierarchical_memory_limit,omitempty"`
799 TotalPgfault uint64 `json:"total_pgfault,omitempty" yaml:"total_pgfault,omitempty"`
800 TotalActiveFile uint64 `json:"total_active_file,omitempty" yaml:"total_active_file,omitempty"`
801 ActiveAnon uint64 `json:"active_anon,omitempty" yaml:"active_anon,omitempty"`
802 TotalActiveAnon uint64 `json:"total_active_anon,omitempty" yaml:"total_active_anon,omitempty"`
803 TotalPgpgout uint64 `json:"total_pgpgout,omitempty" yaml:"total_pgpgout,omitempty"`
804 TotalCache uint64 `json:"total_cache,omitempty" yaml:"total_cache,omitempty"`
805 InactiveAnon uint64 `json:"inactive_anon,omitempty" yaml:"inactive_anon,omitempty"`
806 ActiveFile uint64 `json:"active_file,omitempty" yaml:"active_file,omitempty"`
807 Pgfault uint64 `json:"pgfault,omitempty" yaml:"pgfault,omitempty"`
808 InactiveFile uint64 `json:"inactive_file,omitempty" yaml:"inactive_file,omitempty"`
809 TotalPgpgin uint64 `json:"total_pgpgin,omitempty" yaml:"total_pgpgin,omitempty"`
810 HierarchicalMemswLimit uint64 `json:"hierarchical_memsw_limit,omitempty" yaml:"hierarchical_memsw_limit,omitempty"`
811 Swap uint64 `json:"swap,omitempty" yaml:"swap,omitempty"`
812 } `json:"stats,omitempty" yaml:"stats,omitempty"`
813 MaxUsage uint64 `json:"max_usage,omitempty" yaml:"max_usage,omitempty"`
814 Usage uint64 `json:"usage,omitempty" yaml:"usage,omitempty"`
815 Failcnt uint64 `json:"failcnt,omitempty" yaml:"failcnt,omitempty"`
816 Limit uint64 `json:"limit,omitempty" yaml:"limit,omitempty"`
817 } `json:"memory_stats,omitempty" yaml:"memory_stats,omitempty"`
818 BlkioStats struct {
819 IOServiceBytesRecursive []BlkioStatsEntry `json:"io_service_bytes_recursive,omitempty" yaml:"io_service_bytes_recursive,omitempty"`
820 IOServicedRecursive []BlkioStatsEntry `json:"io_serviced_recursive,omitempty" yaml:"io_serviced_recursive,omitempty"`
821 IOQueueRecursive []BlkioStatsEntry `json:"io_queue_recursive,omitempty" yaml:"io_queue_recursive,omitempty"`
822 IOServiceTimeRecursive []BlkioStatsEntry `json:"io_service_time_recursive,omitempty" yaml:"io_service_time_recursive,omitempty"`
823 IOWaitTimeRecursive []BlkioStatsEntry `json:"io_wait_time_recursive,omitempty" yaml:"io_wait_time_recursive,omitempty"`
824 IOMergedRecursive []BlkioStatsEntry `json:"io_merged_recursive,omitempty" yaml:"io_merged_recursive,omitempty"`
825 IOTimeRecursive []BlkioStatsEntry `json:"io_time_recursive,omitempty" yaml:"io_time_recursive,omitempty"`
826 SectorsRecursive []BlkioStatsEntry `json:"sectors_recursive,omitempty" yaml:"sectors_recursive,omitempty"`
827 } `json:"blkio_stats,omitempty" yaml:"blkio_stats,omitempty"`
828 CPUStats CPUStats `json:"cpu_stats,omitempty" yaml:"cpu_stats,omitempty"`
829 PreCPUStats CPUStats `json:"precpu_stats,omitempty"`
830}
831
832// NetworkStats is a stats entry for network stats
833type NetworkStats struct {
834 RxDropped uint64 `json:"rx_dropped,omitempty" yaml:"rx_dropped,omitempty"`
835 RxBytes uint64 `json:"rx_bytes,omitempty" yaml:"rx_bytes,omitempty"`
836 RxErrors uint64 `json:"rx_errors,omitempty" yaml:"rx_errors,omitempty"`
837 TxPackets uint64 `json:"tx_packets,omitempty" yaml:"tx_packets,omitempty"`
838 TxDropped uint64 `json:"tx_dropped,omitempty" yaml:"tx_dropped,omitempty"`
839 RxPackets uint64 `json:"rx_packets,omitempty" yaml:"rx_packets,omitempty"`
840 TxErrors uint64 `json:"tx_errors,omitempty" yaml:"tx_errors,omitempty"`
841 TxBytes uint64 `json:"tx_bytes,omitempty" yaml:"tx_bytes,omitempty"`
842}
843
844// CPUStats is a stats entry for cpu stats
845type CPUStats struct {
846 CPUUsage struct {
847 PercpuUsage []uint64 `json:"percpu_usage,omitempty" yaml:"percpu_usage,omitempty"`
848 UsageInUsermode uint64 `json:"usage_in_usermode,omitempty" yaml:"usage_in_usermode,omitempty"`
849 TotalUsage uint64 `json:"total_usage,omitempty" yaml:"total_usage,omitempty"`
850 UsageInKernelmode uint64 `json:"usage_in_kernelmode,omitempty" yaml:"usage_in_kernelmode,omitempty"`
851 } `json:"cpu_usage,omitempty" yaml:"cpu_usage,omitempty"`
852 SystemCPUUsage uint64 `json:"system_cpu_usage,omitempty" yaml:"system_cpu_usage,omitempty"`
853 ThrottlingData struct {
854 Periods uint64 `json:"periods,omitempty"`
855 ThrottledPeriods uint64 `json:"throttled_periods,omitempty"`
856 ThrottledTime uint64 `json:"throttled_time,omitempty"`
857 } `json:"throttling_data,omitempty" yaml:"throttling_data,omitempty"`
858}
859
860// BlkioStatsEntry is a stats entry for blkio_stats
861type BlkioStatsEntry struct {
862 Major uint64 `json:"major,omitempty" yaml:"major,omitempty"`
863 Minor uint64 `json:"minor,omitempty" yaml:"minor,omitempty"`
864 Op string `json:"op,omitempty" yaml:"op,omitempty"`
865 Value uint64 `json:"value,omitempty" yaml:"value,omitempty"`
866}
867
868// StatsOptions specify parameters to the Stats function.
869//
870// See https://goo.gl/GNmLHb for more details.
871type StatsOptions struct {
872 ID string
873 Stats chan<- *Stats
874 Stream bool
875 // A flag that enables stopping the stats operation
876 Done <-chan bool
877 // Initial connection timeout
878 Timeout time.Duration
879 // Timeout with no data is received, it's reset every time new data
880 // arrives
881 InactivityTimeout time.Duration `qs:"-"`
882}
883
884// Stats sends container statistics for the given container to the given channel.
885//
886// This function is blocking, similar to a streaming call for logs, and should be run
887// on a separate goroutine from the caller. Note that this function will block until
888// the given container is removed, not just exited. When finished, this function
889// will close the given channel. Alternatively, function can be stopped by
890// signaling on the Done channel.
891//
892// See https://goo.gl/GNmLHb for more details.
893func (c *Client) Stats(opts StatsOptions) (retErr error) {
894 errC := make(chan error, 1)
895 readCloser, writeCloser := io.Pipe()
896
897 defer func() {
898 close(opts.Stats)
899
900 select {
901 case err := <-errC:
902 if err != nil && retErr == nil {
903 retErr = err
904 }
905 default:
906 // No errors
907 }
908
909 if err := readCloser.Close(); err != nil && retErr == nil {
910 retErr = err
911 }
912 }()
913
914 go func() {
915 err := c.stream("GET", fmt.Sprintf("/containers/%s/stats?stream=%v", opts.ID, opts.Stream), streamOptions{
916 rawJSONStream: true,
917 useJSONDecoder: true,
918 stdout: writeCloser,
919 timeout: opts.Timeout,
920 inactivityTimeout: opts.InactivityTimeout,
921 })
922 if err != nil {
923 dockerError, ok := err.(*Error)
924 if ok {
925 if dockerError.Status == http.StatusNotFound {
926 err = &NoSuchContainer{ID: opts.ID}
927 }
928 }
929 }
930 if closeErr := writeCloser.Close(); closeErr != nil && err == nil {
931 err = closeErr
932 }
933 errC <- err
934 close(errC)
935 }()
936
937 quit := make(chan struct{})
938 defer close(quit)
939 go func() {
940 // block here waiting for the signal to stop function
941 select {
942 case <-opts.Done:
943 readCloser.Close()
944 case <-quit:
945 return
946 }
947 }()
948
949 decoder := json.NewDecoder(readCloser)
950 stats := new(Stats)
951 for err := decoder.Decode(stats); err != io.EOF; err = decoder.Decode(stats) {
952 if err != nil {
953 return err
954 }
955 opts.Stats <- stats
956 stats = new(Stats)
957 }
958 return nil
959}
960
961// KillContainerOptions represents the set of options that can be used in a
962// call to KillContainer.
963//
964// See https://goo.gl/hkS9i8 for more details.
965type KillContainerOptions struct {
966 // The ID of the container.
967 ID string `qs:"-"`
968
969 // The signal to send to the container. When omitted, Docker server
970 // will assume SIGKILL.
971 Signal Signal
972}
973
974// KillContainer sends a signal to a container, returning an error in case of
975// failure.
976//
977// See https://goo.gl/hkS9i8 for more details.
978func (c *Client) KillContainer(opts KillContainerOptions) error {
979 path := "/containers/" + opts.ID + "/kill" + "?" + queryString(opts)
980 resp, err := c.do("POST", path, doOptions{})
981 if err != nil {
982 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
983 return &NoSuchContainer{ID: opts.ID}
984 }
985 return err
986 }
987 resp.Body.Close()
988 return nil
989}
990
991// RemoveContainerOptions encapsulates options to remove a container.
992//
993// See https://goo.gl/RQyX62 for more details.
994type RemoveContainerOptions struct {
995 // The ID of the container.
996 ID string `qs:"-"`
997
998 // A flag that indicates whether Docker should remove the volumes
999 // associated to the container.
1000 RemoveVolumes bool `qs:"v"`
1001
1002 // A flag that indicates whether Docker should remove the container
1003 // even if it is currently running.
1004 Force bool
1005}
1006
1007// RemoveContainer removes a container, returning an error in case of failure.
1008//
1009// See https://goo.gl/RQyX62 for more details.
1010func (c *Client) RemoveContainer(opts RemoveContainerOptions) error {
1011 path := "/containers/" + opts.ID + "?" + queryString(opts)
1012 resp, err := c.do("DELETE", path, doOptions{})
1013 if err != nil {
1014 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
1015 return &NoSuchContainer{ID: opts.ID}
1016 }
1017 return err
1018 }
1019 resp.Body.Close()
1020 return nil
1021}
1022
1023// UploadToContainerOptions is the set of options that can be used when
1024// uploading an archive into a container.
1025//
1026// See https://goo.gl/Ss97HW for more details.
1027type UploadToContainerOptions struct {
1028 InputStream io.Reader `json:"-" qs:"-"`
1029 Path string `qs:"path"`
1030 NoOverwriteDirNonDir bool `qs:"noOverwriteDirNonDir"`
1031}
1032
1033// UploadToContainer uploads a tar archive to be extracted to a path in the
1034// filesystem of the container.
1035//
1036// See https://goo.gl/Ss97HW for more details.
1037func (c *Client) UploadToContainer(id string, opts UploadToContainerOptions) error {
1038 url := fmt.Sprintf("/containers/%s/archive?", id) + queryString(opts)
1039
1040 return c.stream("PUT", url, streamOptions{
1041 in: opts.InputStream,
1042 })
1043}
1044
1045// DownloadFromContainerOptions is the set of options that can be used when
1046// downloading resources from a container.
1047//
1048// See https://goo.gl/KnZJDX for more details.
1049type DownloadFromContainerOptions struct {
1050 OutputStream io.Writer `json:"-" qs:"-"`
1051 Path string `qs:"path"`
1052 InactivityTimeout time.Duration `qs:"-"`
1053}
1054
1055// DownloadFromContainer downloads a tar archive of files or folders in a container.
1056//
1057// See https://goo.gl/KnZJDX for more details.
1058func (c *Client) DownloadFromContainer(id string, opts DownloadFromContainerOptions) error {
1059 url := fmt.Sprintf("/containers/%s/archive?", id) + queryString(opts)
1060
1061 return c.stream("GET", url, streamOptions{
1062 setRawTerminal: true,
1063 stdout: opts.OutputStream,
1064 inactivityTimeout: opts.InactivityTimeout,
1065 })
1066}
1067
1068// CopyFromContainerOptions has been DEPRECATED, please use DownloadFromContainerOptions along with DownloadFromContainer.
1069//
1070// See https://goo.gl/R2jevW for more details.
1071type CopyFromContainerOptions struct {
1072 OutputStream io.Writer `json:"-"`
1073 Container string `json:"-"`
1074 Resource string
1075}
1076
1077// CopyFromContainer has been DEPRECATED, please use DownloadFromContainerOptions along with DownloadFromContainer.
1078//
1079// See https://goo.gl/R2jevW for more details.
1080func (c *Client) CopyFromContainer(opts CopyFromContainerOptions) error {
1081 if opts.Container == "" {
1082 return &NoSuchContainer{ID: opts.Container}
1083 }
1084 url := fmt.Sprintf("/containers/%s/copy", opts.Container)
1085 resp, err := c.do("POST", url, doOptions{data: opts})
1086 if err != nil {
1087 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
1088 return &NoSuchContainer{ID: opts.Container}
1089 }
1090 return err
1091 }
1092 defer resp.Body.Close()
1093 _, err = io.Copy(opts.OutputStream, resp.Body)
1094 return err
1095}
1096
1097// WaitContainer blocks until the given container stops, return the exit code
1098// of the container status.
1099//
1100// See https://goo.gl/Gc1rge for more details.
1101func (c *Client) WaitContainer(id string) (int, error) {
1102 resp, err := c.do("POST", "/containers/"+id+"/wait", doOptions{})
1103 if err != nil {
1104 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
1105 return 0, &NoSuchContainer{ID: id}
1106 }
1107 return 0, err
1108 }
1109 defer resp.Body.Close()
1110 var r struct{ StatusCode int }
1111 if err := json.NewDecoder(resp.Body).Decode(&r); err != nil {
1112 return 0, err
1113 }
1114 return r.StatusCode, nil
1115}
1116
1117// CommitContainerOptions aggregates parameters to the CommitContainer method.
1118//
1119// See https://goo.gl/mqfoCw for more details.
1120type CommitContainerOptions struct {
1121 Container string
1122 Repository string `qs:"repo"`
1123 Tag string
1124 Message string `qs:"comment"`
1125 Author string
1126 Run *Config `qs:"-"`
1127}
1128
1129// CommitContainer creates a new image from a container's changes.
1130//
1131// See https://goo.gl/mqfoCw for more details.
1132func (c *Client) CommitContainer(opts CommitContainerOptions) (*Image, error) {
1133 path := "/commit?" + queryString(opts)
1134 resp, err := c.do("POST", path, doOptions{data: opts.Run})
1135 if err != nil {
1136 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
1137 return nil, &NoSuchContainer{ID: opts.Container}
1138 }
1139 return nil, err
1140 }
1141 defer resp.Body.Close()
1142 var image Image
1143 if err := json.NewDecoder(resp.Body).Decode(&image); err != nil {
1144 return nil, err
1145 }
1146 return &image, nil
1147}
1148
1149// AttachToContainerOptions is the set of options that can be used when
1150// attaching to a container.
1151//
1152// See https://goo.gl/NKpkFk for more details.
1153type AttachToContainerOptions struct {
1154 Container string `qs:"-"`
1155 InputStream io.Reader `qs:"-"`
1156 OutputStream io.Writer `qs:"-"`
1157 ErrorStream io.Writer `qs:"-"`
1158
1159 // Get container logs, sending it to OutputStream.
1160 Logs bool
1161
1162 // Stream the response?
1163 Stream bool
1164
1165 // Attach to stdin, and use InputStream.
1166 Stdin bool
1167
1168 // Attach to stdout, and use OutputStream.
1169 Stdout bool
1170
1171 // Attach to stderr, and use ErrorStream.
1172 Stderr bool
1173
1174 // If set, after a successful connect, a sentinel will be sent and then the
1175 // client will block on receive before continuing.
1176 //
1177 // It must be an unbuffered channel. Using a buffered channel can lead
1178 // to unexpected behavior.
1179 Success chan struct{}
1180
1181 // Use raw terminal? Usually true when the container contains a TTY.
1182 RawTerminal bool `qs:"-"`
1183}
1184
1185// AttachToContainer attaches to a container, using the given options.
1186//
1187// See https://goo.gl/NKpkFk for more details.
1188func (c *Client) AttachToContainer(opts AttachToContainerOptions) error {
1189 cw, err := c.AttachToContainerNonBlocking(opts)
1190 if err != nil {
1191 return err
1192 }
1193 return cw.Wait()
1194}
1195
1196// AttachToContainerNonBlocking attaches to a container, using the given options.
1197// This function does not block.
1198//
1199// See https://goo.gl/NKpkFk for more details.
1200func (c *Client) AttachToContainerNonBlocking(opts AttachToContainerOptions) (CloseWaiter, error) {
1201 if opts.Container == "" {
1202 return nil, &NoSuchContainer{ID: opts.Container}
1203 }
1204 path := "/containers/" + opts.Container + "/attach?" + queryString(opts)
1205 return c.hijack("POST", path, hijackOptions{
1206 success: opts.Success,
1207 setRawTerminal: opts.RawTerminal,
1208 in: opts.InputStream,
1209 stdout: opts.OutputStream,
1210 stderr: opts.ErrorStream,
1211 })
1212}
1213
1214// LogsOptions represents the set of options used when getting logs from a
1215// container.
1216//
1217// See https://goo.gl/yl8PGm for more details.
1218type LogsOptions struct {
1219 Container string `qs:"-"`
1220 OutputStream io.Writer `qs:"-"`
1221 ErrorStream io.Writer `qs:"-"`
1222 InactivityTimeout time.Duration `qs:"-"`
1223 Follow bool
1224 Stdout bool
1225 Stderr bool
1226 Since int64
1227 Timestamps bool
1228 Tail string
1229
1230 // Use raw terminal? Usually true when the container contains a TTY.
1231 RawTerminal bool `qs:"-"`
1232}
1233
1234// Logs gets stdout and stderr logs from the specified container.
1235//
1236// See https://goo.gl/yl8PGm for more details.
1237func (c *Client) Logs(opts LogsOptions) error {
1238 if opts.Container == "" {
1239 return &NoSuchContainer{ID: opts.Container}
1240 }
1241 if opts.Tail == "" {
1242 opts.Tail = "all"
1243 }
1244 path := "/containers/" + opts.Container + "/logs?" + queryString(opts)
1245 return c.stream("GET", path, streamOptions{
1246 setRawTerminal: opts.RawTerminal,
1247 stdout: opts.OutputStream,
1248 stderr: opts.ErrorStream,
1249 inactivityTimeout: opts.InactivityTimeout,
1250 })
1251}
1252
1253// ResizeContainerTTY resizes the terminal to the given height and width.
1254//
1255// See https://goo.gl/xERhCc for more details.
1256func (c *Client) ResizeContainerTTY(id string, height, width int) error {
1257 params := make(url.Values)
1258 params.Set("h", strconv.Itoa(height))
1259 params.Set("w", strconv.Itoa(width))
1260 resp, err := c.do("POST", "/containers/"+id+"/resize?"+params.Encode(), doOptions{})
1261 if err != nil {
1262 return err
1263 }
1264 resp.Body.Close()
1265 return nil
1266}
1267
1268// ExportContainerOptions is the set of parameters to the ExportContainer
1269// method.
1270//
1271// See https://goo.gl/dOkTyk for more details.
1272type ExportContainerOptions struct {
1273 ID string
1274 OutputStream io.Writer
1275 InactivityTimeout time.Duration `qs:"-"`
1276}
1277
1278// ExportContainer export the contents of container id as tar archive
1279// and prints the exported contents to stdout.
1280//
1281// See https://goo.gl/dOkTyk for more details.
1282func (c *Client) ExportContainer(opts ExportContainerOptions) error {
1283 if opts.ID == "" {
1284 return &NoSuchContainer{ID: opts.ID}
1285 }
1286 url := fmt.Sprintf("/containers/%s/export", opts.ID)
1287 return c.stream("GET", url, streamOptions{
1288 setRawTerminal: true,
1289 stdout: opts.OutputStream,
1290 inactivityTimeout: opts.InactivityTimeout,
1291 })
1292}
1293
1294// NoSuchContainer is the error returned when a given container does not exist.
1295type NoSuchContainer struct {
1296 ID string
1297 Err error
1298}
1299
1300func (err *NoSuchContainer) Error() string {
1301 if err.Err != nil {
1302 return err.Err.Error()
1303 }
1304 return "No such container: " + err.ID
1305}
1306
1307// ContainerAlreadyRunning is the error returned when a given container is
1308// already running.
1309type ContainerAlreadyRunning struct {
1310 ID string
1311}
1312
1313func (err *ContainerAlreadyRunning) Error() string {
1314 return "Container already running: " + err.ID
1315}
1316
1317// ContainerNotRunning is the error returned when a given container is not
1318// running.
1319type ContainerNotRunning struct {
1320 ID string
1321}
1322
1323func (err *ContainerNotRunning) Error() string {
1324 return "Container not running: " + err.ID
1325}
diff --git a/vendor/github.com/fsouza/go-dockerclient/env.go b/vendor/github.com/fsouza/go-dockerclient/env.go
deleted file mode 100644
index c54b0b0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/env.go
+++ /dev/null
@@ -1,168 +0,0 @@
1// Copyright 2014 Docker authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the DOCKER-LICENSE file.
4
5package docker
6
7import (
8 "encoding/json"
9 "fmt"
10 "io"
11 "strconv"
12 "strings"
13)
14
15// Env represents a list of key-pair represented in the form KEY=VALUE.
16type Env []string
17
18// Get returns the string value of the given key.
19func (env *Env) Get(key string) (value string) {
20 return env.Map()[key]
21}
22
23// Exists checks whether the given key is defined in the internal Env
24// representation.
25func (env *Env) Exists(key string) bool {
26 _, exists := env.Map()[key]
27 return exists
28}
29
30// GetBool returns a boolean representation of the given key. The key is false
31// whenever its value if 0, no, false, none or an empty string. Any other value
32// will be interpreted as true.
33func (env *Env) GetBool(key string) (value bool) {
34 s := strings.ToLower(strings.Trim(env.Get(key), " \t"))
35 if s == "" || s == "0" || s == "no" || s == "false" || s == "none" {
36 return false
37 }
38 return true
39}
40
41// SetBool defines a boolean value to the given key.
42func (env *Env) SetBool(key string, value bool) {
43 if value {
44 env.Set(key, "1")
45 } else {
46 env.Set(key, "0")
47 }
48}
49
50// GetInt returns the value of the provided key, converted to int.
51//
52// It the value cannot be represented as an integer, it returns -1.
53func (env *Env) GetInt(key string) int {
54 return int(env.GetInt64(key))
55}
56
57// SetInt defines an integer value to the given key.
58func (env *Env) SetInt(key string, value int) {
59 env.Set(key, strconv.Itoa(value))
60}
61
62// GetInt64 returns the value of the provided key, converted to int64.
63//
64// It the value cannot be represented as an integer, it returns -1.
65func (env *Env) GetInt64(key string) int64 {
66 s := strings.Trim(env.Get(key), " \t")
67 val, err := strconv.ParseInt(s, 10, 64)
68 if err != nil {
69 return -1
70 }
71 return val
72}
73
74// SetInt64 defines an integer (64-bit wide) value to the given key.
75func (env *Env) SetInt64(key string, value int64) {
76 env.Set(key, strconv.FormatInt(value, 10))
77}
78
79// GetJSON unmarshals the value of the provided key in the provided iface.
80//
81// iface is a value that can be provided to the json.Unmarshal function.
82func (env *Env) GetJSON(key string, iface interface{}) error {
83 sval := env.Get(key)
84 if sval == "" {
85 return nil
86 }
87 return json.Unmarshal([]byte(sval), iface)
88}
89
90// SetJSON marshals the given value to JSON format and stores it using the
91// provided key.
92func (env *Env) SetJSON(key string, value interface{}) error {
93 sval, err := json.Marshal(value)
94 if err != nil {
95 return err
96 }
97 env.Set(key, string(sval))
98 return nil
99}
100
101// GetList returns a list of strings matching the provided key. It handles the
102// list as a JSON representation of a list of strings.
103//
104// If the given key matches to a single string, it will return a list
105// containing only the value that matches the key.
106func (env *Env) GetList(key string) []string {
107 sval := env.Get(key)
108 if sval == "" {
109 return nil
110 }
111 var l []string
112 if err := json.Unmarshal([]byte(sval), &l); err != nil {
113 l = append(l, sval)
114 }
115 return l
116}
117
118// SetList stores the given list in the provided key, after serializing it to
119// JSON format.
120func (env *Env) SetList(key string, value []string) error {
121 return env.SetJSON(key, value)
122}
123
124// Set defines the value of a key to the given string.
125func (env *Env) Set(key, value string) {
126 *env = append(*env, key+"="+value)
127}
128
129// Decode decodes `src` as a json dictionary, and adds each decoded key-value
130// pair to the environment.
131//
132// If `src` cannot be decoded as a json dictionary, an error is returned.
133func (env *Env) Decode(src io.Reader) error {
134 m := make(map[string]interface{})
135 if err := json.NewDecoder(src).Decode(&m); err != nil {
136 return err
137 }
138 for k, v := range m {
139 env.SetAuto(k, v)
140 }
141 return nil
142}
143
144// SetAuto will try to define the Set* method to call based on the given value.
145func (env *Env) SetAuto(key string, value interface{}) {
146 if fval, ok := value.(float64); ok {
147 env.SetInt64(key, int64(fval))
148 } else if sval, ok := value.(string); ok {
149 env.Set(key, sval)
150 } else if val, err := json.Marshal(value); err == nil {
151 env.Set(key, string(val))
152 } else {
153 env.Set(key, fmt.Sprintf("%v", value))
154 }
155}
156
157// Map returns the map representation of the env.
158func (env *Env) Map() map[string]string {
159 if len(*env) == 0 {
160 return nil
161 }
162 m := make(map[string]string)
163 for _, kv := range *env {
164 parts := strings.SplitN(kv, "=", 2)
165 m[parts[0]] = parts[1]
166 }
167 return m
168}
diff --git a/vendor/github.com/fsouza/go-dockerclient/event.go b/vendor/github.com/fsouza/go-dockerclient/event.go
deleted file mode 100644
index 120cdc9..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/event.go
+++ /dev/null
@@ -1,379 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import (
8 "encoding/json"
9 "errors"
10 "fmt"
11 "io"
12 "math"
13 "net"
14 "net/http"
15 "net/http/httputil"
16 "sync"
17 "sync/atomic"
18 "time"
19)
20
21// APIEvents represents events coming from the Docker API
22// The fields in the Docker API changed in API version 1.22, and
23// events for more than images and containers are now fired off.
24// To maintain forward and backward compatibility, go-dockerclient
25// replicates the event in both the new and old format as faithfully as possible.
26//
27// For events that only exist in 1.22 in later, `Status` is filled in as
28// `"Type:Action"` instead of just `Action` to allow for older clients to
29// differentiate and not break if they rely on the pre-1.22 Status types.
30//
31// The transformEvent method can be consulted for more information about how
32// events are translated from new/old API formats
33type APIEvents struct {
34 // New API Fields in 1.22
35 Action string `json:"action,omitempty"`
36 Type string `json:"type,omitempty"`
37 Actor APIActor `json:"actor,omitempty"`
38
39 // Old API fields for < 1.22
40 Status string `json:"status,omitempty"`
41 ID string `json:"id,omitempty"`
42 From string `json:"from,omitempty"`
43
44 // Fields in both
45 Time int64 `json:"time,omitempty"`
46 TimeNano int64 `json:"timeNano,omitempty"`
47}
48
49// APIActor represents an actor that accomplishes something for an event
50type APIActor struct {
51 ID string `json:"id,omitempty"`
52 Attributes map[string]string `json:"attributes,omitempty"`
53}
54
55type eventMonitoringState struct {
56 sync.RWMutex
57 sync.WaitGroup
58 enabled bool
59 lastSeen int64
60 C chan *APIEvents
61 errC chan error
62 listeners []chan<- *APIEvents
63}
64
65const (
66 maxMonitorConnRetries = 5
67 retryInitialWaitTime = 10.
68)
69
70var (
71 // ErrNoListeners is the error returned when no listeners are available
72 // to receive an event.
73 ErrNoListeners = errors.New("no listeners present to receive event")
74
75 // ErrListenerAlreadyExists is the error returned when the listerner already
76 // exists.
77 ErrListenerAlreadyExists = errors.New("listener already exists for docker events")
78
79 // EOFEvent is sent when the event listener receives an EOF error.
80 EOFEvent = &APIEvents{
81 Type: "EOF",
82 Status: "EOF",
83 }
84)
85
86// AddEventListener adds a new listener to container events in the Docker API.
87//
88// The parameter is a channel through which events will be sent.
89func (c *Client) AddEventListener(listener chan<- *APIEvents) error {
90 var err error
91 if !c.eventMonitor.isEnabled() {
92 err = c.eventMonitor.enableEventMonitoring(c)
93 if err != nil {
94 return err
95 }
96 }
97 err = c.eventMonitor.addListener(listener)
98 if err != nil {
99 return err
100 }
101 return nil
102}
103
104// RemoveEventListener removes a listener from the monitor.
105func (c *Client) RemoveEventListener(listener chan *APIEvents) error {
106 err := c.eventMonitor.removeListener(listener)
107 if err != nil {
108 return err
109 }
110 if len(c.eventMonitor.listeners) == 0 {
111 c.eventMonitor.disableEventMonitoring()
112 }
113 return nil
114}
115
116func (eventState *eventMonitoringState) addListener(listener chan<- *APIEvents) error {
117 eventState.Lock()
118 defer eventState.Unlock()
119 if listenerExists(listener, &eventState.listeners) {
120 return ErrListenerAlreadyExists
121 }
122 eventState.Add(1)
123 eventState.listeners = append(eventState.listeners, listener)
124 return nil
125}
126
127func (eventState *eventMonitoringState) removeListener(listener chan<- *APIEvents) error {
128 eventState.Lock()
129 defer eventState.Unlock()
130 if listenerExists(listener, &eventState.listeners) {
131 var newListeners []chan<- *APIEvents
132 for _, l := range eventState.listeners {
133 if l != listener {
134 newListeners = append(newListeners, l)
135 }
136 }
137 eventState.listeners = newListeners
138 eventState.Add(-1)
139 }
140 return nil
141}
142
143func (eventState *eventMonitoringState) closeListeners() {
144 for _, l := range eventState.listeners {
145 close(l)
146 eventState.Add(-1)
147 }
148 eventState.listeners = nil
149}
150
151func listenerExists(a chan<- *APIEvents, list *[]chan<- *APIEvents) bool {
152 for _, b := range *list {
153 if b == a {
154 return true
155 }
156 }
157 return false
158}
159
160func (eventState *eventMonitoringState) enableEventMonitoring(c *Client) error {
161 eventState.Lock()
162 defer eventState.Unlock()
163 if !eventState.enabled {
164 eventState.enabled = true
165 atomic.StoreInt64(&eventState.lastSeen, 0)
166 eventState.C = make(chan *APIEvents, 100)
167 eventState.errC = make(chan error, 1)
168 go eventState.monitorEvents(c)
169 }
170 return nil
171}
172
173func (eventState *eventMonitoringState) disableEventMonitoring() error {
174 eventState.Lock()
175 defer eventState.Unlock()
176
177 eventState.closeListeners()
178
179 eventState.Wait()
180
181 if eventState.enabled {
182 eventState.enabled = false
183 close(eventState.C)
184 close(eventState.errC)
185 }
186 return nil
187}
188
189func (eventState *eventMonitoringState) monitorEvents(c *Client) {
190 var err error
191 for eventState.noListeners() {
192 time.Sleep(10 * time.Millisecond)
193 }
194 if err = eventState.connectWithRetry(c); err != nil {
195 // terminate if connect failed
196 eventState.disableEventMonitoring()
197 return
198 }
199 for eventState.isEnabled() {
200 timeout := time.After(100 * time.Millisecond)
201 select {
202 case ev, ok := <-eventState.C:
203 if !ok {
204 return
205 }
206 if ev == EOFEvent {
207 eventState.disableEventMonitoring()
208 return
209 }
210 eventState.updateLastSeen(ev)
211 go eventState.sendEvent(ev)
212 case err = <-eventState.errC:
213 if err == ErrNoListeners {
214 eventState.disableEventMonitoring()
215 return
216 } else if err != nil {
217 defer func() { go eventState.monitorEvents(c) }()
218 return
219 }
220 case <-timeout:
221 continue
222 }
223 }
224}
225
226func (eventState *eventMonitoringState) connectWithRetry(c *Client) error {
227 var retries int
228 eventState.RLock()
229 eventChan := eventState.C
230 errChan := eventState.errC
231 eventState.RUnlock()
232 err := c.eventHijack(atomic.LoadInt64(&eventState.lastSeen), eventChan, errChan)
233 for ; err != nil && retries < maxMonitorConnRetries; retries++ {
234 waitTime := int64(retryInitialWaitTime * math.Pow(2, float64(retries)))
235 time.Sleep(time.Duration(waitTime) * time.Millisecond)
236 eventState.RLock()
237 eventChan = eventState.C
238 errChan = eventState.errC
239 eventState.RUnlock()
240 err = c.eventHijack(atomic.LoadInt64(&eventState.lastSeen), eventChan, errChan)
241 }
242 return err
243}
244
245func (eventState *eventMonitoringState) noListeners() bool {
246 eventState.RLock()
247 defer eventState.RUnlock()
248 return len(eventState.listeners) == 0
249}
250
251func (eventState *eventMonitoringState) isEnabled() bool {
252 eventState.RLock()
253 defer eventState.RUnlock()
254 return eventState.enabled
255}
256
257func (eventState *eventMonitoringState) sendEvent(event *APIEvents) {
258 eventState.RLock()
259 defer eventState.RUnlock()
260 eventState.Add(1)
261 defer eventState.Done()
262 if eventState.enabled {
263 if len(eventState.listeners) == 0 {
264 eventState.errC <- ErrNoListeners
265 return
266 }
267
268 for _, listener := range eventState.listeners {
269 listener <- event
270 }
271 }
272}
273
274func (eventState *eventMonitoringState) updateLastSeen(e *APIEvents) {
275 eventState.Lock()
276 defer eventState.Unlock()
277 if atomic.LoadInt64(&eventState.lastSeen) < e.Time {
278 atomic.StoreInt64(&eventState.lastSeen, e.Time)
279 }
280}
281
282func (c *Client) eventHijack(startTime int64, eventChan chan *APIEvents, errChan chan error) error {
283 uri := "/events"
284 if startTime != 0 {
285 uri += fmt.Sprintf("?since=%d", startTime)
286 }
287 protocol := c.endpointURL.Scheme
288 address := c.endpointURL.Path
289 if protocol != "unix" {
290 protocol = "tcp"
291 address = c.endpointURL.Host
292 }
293 var dial net.Conn
294 var err error
295 if c.TLSConfig == nil {
296 dial, err = c.Dialer.Dial(protocol, address)
297 } else {
298 dial, err = tlsDialWithDialer(c.Dialer, protocol, address, c.TLSConfig)
299 }
300 if err != nil {
301 return err
302 }
303 conn := httputil.NewClientConn(dial, nil)
304 req, err := http.NewRequest("GET", uri, nil)
305 if err != nil {
306 return err
307 }
308 res, err := conn.Do(req)
309 if err != nil {
310 return err
311 }
312 go func(res *http.Response, conn *httputil.ClientConn) {
313 defer conn.Close()
314 defer res.Body.Close()
315 decoder := json.NewDecoder(res.Body)
316 for {
317 var event APIEvents
318 if err = decoder.Decode(&event); err != nil {
319 if err == io.EOF || err == io.ErrUnexpectedEOF {
320 c.eventMonitor.RLock()
321 if c.eventMonitor.enabled && c.eventMonitor.C == eventChan {
322 // Signal that we're exiting.
323 eventChan <- EOFEvent
324 }
325 c.eventMonitor.RUnlock()
326 break
327 }
328 errChan <- err
329 }
330 if event.Time == 0 {
331 continue
332 }
333 if !c.eventMonitor.isEnabled() || c.eventMonitor.C != eventChan {
334 return
335 }
336 transformEvent(&event)
337 eventChan <- &event
338 }
339 }(res, conn)
340 return nil
341}
342
343// transformEvent takes an event and determines what version it is from
344// then populates both versions of the event
345func transformEvent(event *APIEvents) {
346 // if event version is <= 1.21 there will be no Action and no Type
347 if event.Action == "" && event.Type == "" {
348 event.Action = event.Status
349 event.Actor.ID = event.ID
350 event.Actor.Attributes = map[string]string{}
351 switch event.Status {
352 case "delete", "import", "pull", "push", "tag", "untag":
353 event.Type = "image"
354 default:
355 event.Type = "container"
356 if event.From != "" {
357 event.Actor.Attributes["image"] = event.From
358 }
359 }
360 } else {
361 if event.Status == "" {
362 if event.Type == "image" || event.Type == "container" {
363 event.Status = event.Action
364 } else {
365 // Because just the Status has been overloaded with different Types
366 // if an event is not for an image or a container, we prepend the type
367 // to avoid problems for people relying on actions being only for
368 // images and containers
369 event.Status = event.Type + ":" + event.Action
370 }
371 }
372 if event.ID == "" {
373 event.ID = event.Actor.ID
374 }
375 if event.From == "" {
376 event.From = event.Actor.Attributes["image"]
377 }
378 }
379}
diff --git a/vendor/github.com/fsouza/go-dockerclient/exec.go b/vendor/github.com/fsouza/go-dockerclient/exec.go
deleted file mode 100644
index 1a16da9..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/exec.go
+++ /dev/null
@@ -1,202 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import (
8 "encoding/json"
9 "fmt"
10 "io"
11 "net/http"
12 "net/url"
13 "strconv"
14)
15
16// Exec is the type representing a `docker exec` instance and containing the
17// instance ID
18type Exec struct {
19 ID string `json:"Id,omitempty" yaml:"Id,omitempty"`
20}
21
22// CreateExecOptions specify parameters to the CreateExecContainer function.
23//
24// See https://goo.gl/1KSIb7 for more details
25type CreateExecOptions struct {
26 AttachStdin bool `json:"AttachStdin,omitempty" yaml:"AttachStdin,omitempty"`
27 AttachStdout bool `json:"AttachStdout,omitempty" yaml:"AttachStdout,omitempty"`
28 AttachStderr bool `json:"AttachStderr,omitempty" yaml:"AttachStderr,omitempty"`
29 Tty bool `json:"Tty,omitempty" yaml:"Tty,omitempty"`
30 Cmd []string `json:"Cmd,omitempty" yaml:"Cmd,omitempty"`
31 Container string `json:"Container,omitempty" yaml:"Container,omitempty"`
32 User string `json:"User,omitempty" yaml:"User,omitempty"`
33}
34
35// CreateExec sets up an exec instance in a running container `id`, returning the exec
36// instance, or an error in case of failure.
37//
38// See https://goo.gl/1KSIb7 for more details
39func (c *Client) CreateExec(opts CreateExecOptions) (*Exec, error) {
40 path := fmt.Sprintf("/containers/%s/exec", opts.Container)
41 resp, err := c.do("POST", path, doOptions{data: opts})
42 if err != nil {
43 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
44 return nil, &NoSuchContainer{ID: opts.Container}
45 }
46 return nil, err
47 }
48 defer resp.Body.Close()
49 var exec Exec
50 if err := json.NewDecoder(resp.Body).Decode(&exec); err != nil {
51 return nil, err
52 }
53
54 return &exec, nil
55}
56
57// StartExecOptions specify parameters to the StartExecContainer function.
58//
59// See https://goo.gl/iQCnto for more details
60type StartExecOptions struct {
61 Detach bool `json:"Detach,omitempty" yaml:"Detach,omitempty"`
62
63 Tty bool `json:"Tty,omitempty" yaml:"Tty,omitempty"`
64
65 InputStream io.Reader `qs:"-"`
66 OutputStream io.Writer `qs:"-"`
67 ErrorStream io.Writer `qs:"-"`
68
69 // Use raw terminal? Usually true when the container contains a TTY.
70 RawTerminal bool `qs:"-"`
71
72 // If set, after a successful connect, a sentinel will be sent and then the
73 // client will block on receive before continuing.
74 //
75 // It must be an unbuffered channel. Using a buffered channel can lead
76 // to unexpected behavior.
77 Success chan struct{} `json:"-"`
78}
79
80// StartExec starts a previously set up exec instance id. If opts.Detach is
81// true, it returns after starting the exec command. Otherwise, it sets up an
82// interactive session with the exec command.
83//
84// See https://goo.gl/iQCnto for more details
85func (c *Client) StartExec(id string, opts StartExecOptions) error {
86 cw, err := c.StartExecNonBlocking(id, opts)
87 if err != nil {
88 return err
89 }
90 if cw != nil {
91 return cw.Wait()
92 }
93 return nil
94}
95
96// StartExecNonBlocking starts a previously set up exec instance id. If opts.Detach is
97// true, it returns after starting the exec command. Otherwise, it sets up an
98// interactive session with the exec command.
99//
100// See https://goo.gl/iQCnto for more details
101func (c *Client) StartExecNonBlocking(id string, opts StartExecOptions) (CloseWaiter, error) {
102 if id == "" {
103 return nil, &NoSuchExec{ID: id}
104 }
105
106 path := fmt.Sprintf("/exec/%s/start", id)
107
108 if opts.Detach {
109 resp, err := c.do("POST", path, doOptions{data: opts})
110 if err != nil {
111 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
112 return nil, &NoSuchExec{ID: id}
113 }
114 return nil, err
115 }
116 defer resp.Body.Close()
117 return nil, nil
118 }
119
120 return c.hijack("POST", path, hijackOptions{
121 success: opts.Success,
122 setRawTerminal: opts.RawTerminal,
123 in: opts.InputStream,
124 stdout: opts.OutputStream,
125 stderr: opts.ErrorStream,
126 data: opts,
127 })
128}
129
130// ResizeExecTTY resizes the tty session used by the exec command id. This API
131// is valid only if Tty was specified as part of creating and starting the exec
132// command.
133//
134// See https://goo.gl/e1JpsA for more details
135func (c *Client) ResizeExecTTY(id string, height, width int) error {
136 params := make(url.Values)
137 params.Set("h", strconv.Itoa(height))
138 params.Set("w", strconv.Itoa(width))
139
140 path := fmt.Sprintf("/exec/%s/resize?%s", id, params.Encode())
141 resp, err := c.do("POST", path, doOptions{})
142 if err != nil {
143 return err
144 }
145 resp.Body.Close()
146 return nil
147}
148
149// ExecProcessConfig is a type describing the command associated to a Exec
150// instance. It's used in the ExecInspect type.
151type ExecProcessConfig struct {
152 Privileged bool `json:"privileged,omitempty" yaml:"privileged,omitempty"`
153 User string `json:"user,omitempty" yaml:"user,omitempty"`
154 Tty bool `json:"tty,omitempty" yaml:"tty,omitempty"`
155 EntryPoint string `json:"entrypoint,omitempty" yaml:"entrypoint,omitempty"`
156 Arguments []string `json:"arguments,omitempty" yaml:"arguments,omitempty"`
157}
158
159// ExecInspect is a type with details about a exec instance, including the
160// exit code if the command has finished running. It's returned by a api
161// call to /exec/(id)/json
162//
163// See https://goo.gl/gPtX9R for more details
164type ExecInspect struct {
165 ID string `json:"ID,omitempty" yaml:"ID,omitempty"`
166 Running bool `json:"Running,omitempty" yaml:"Running,omitempty"`
167 ExitCode int `json:"ExitCode,omitempty" yaml:"ExitCode,omitempty"`
168 OpenStdin bool `json:"OpenStdin,omitempty" yaml:"OpenStdin,omitempty"`
169 OpenStderr bool `json:"OpenStderr,omitempty" yaml:"OpenStderr,omitempty"`
170 OpenStdout bool `json:"OpenStdout,omitempty" yaml:"OpenStdout,omitempty"`
171 ProcessConfig ExecProcessConfig `json:"ProcessConfig,omitempty" yaml:"ProcessConfig,omitempty"`
172 Container Container `json:"Container,omitempty" yaml:"Container,omitempty"`
173}
174
175// InspectExec returns low-level information about the exec command id.
176//
177// See https://goo.gl/gPtX9R for more details
178func (c *Client) InspectExec(id string) (*ExecInspect, error) {
179 path := fmt.Sprintf("/exec/%s/json", id)
180 resp, err := c.do("GET", path, doOptions{})
181 if err != nil {
182 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
183 return nil, &NoSuchExec{ID: id}
184 }
185 return nil, err
186 }
187 defer resp.Body.Close()
188 var exec ExecInspect
189 if err := json.NewDecoder(resp.Body).Decode(&exec); err != nil {
190 return nil, err
191 }
192 return &exec, nil
193}
194
195// NoSuchExec is the error returned when a given exec instance does not exist.
196type NoSuchExec struct {
197 ID string
198}
199
200func (err *NoSuchExec) Error() string {
201 return "No such exec instance: " + err.ID
202}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/CHANGELOG.md b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/CHANGELOG.md
deleted file mode 100644
index ecc8432..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/CHANGELOG.md
+++ /dev/null
@@ -1,55 +0,0 @@
1# 0.9.0 (Unreleased)
2
3* logrus/text_formatter: don't emit empty msg
4* logrus/hooks/airbrake: move out of main repository
5* logrus/hooks/sentry: move out of main repository
6* logrus/hooks/papertrail: move out of main repository
7* logrus/hooks/bugsnag: move out of main repository
8
9# 0.8.7
10
11* logrus/core: fix possible race (#216)
12* logrus/doc: small typo fixes and doc improvements
13
14
15# 0.8.6
16
17* hooks/raven: allow passing an initialized client
18
19# 0.8.5
20
21* logrus/core: revert #208
22
23# 0.8.4
24
25* formatter/text: fix data race (#218)
26
27# 0.8.3
28
29* logrus/core: fix entry log level (#208)
30* logrus/core: improve performance of text formatter by 40%
31* logrus/core: expose `LevelHooks` type
32* logrus/core: add support for DragonflyBSD and NetBSD
33* formatter/text: print structs more verbosely
34
35# 0.8.2
36
37* logrus: fix more Fatal family functions
38
39# 0.8.1
40
41* logrus: fix not exiting on `Fatalf` and `Fatalln`
42
43# 0.8.0
44
45* logrus: defaults to stderr instead of stdout
46* hooks/sentry: add special field for `*http.Request`
47* formatter/text: ignore Windows for colors
48
49# 0.7.3
50
51* formatter/\*: allow configuration of timestamp layout
52
53# 0.7.2
54
55* formatter/text: Add configuration option for time format (#158)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/LICENSE b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/LICENSE
deleted file mode 100644
index f090cb4..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
1The MIT License (MIT)
2
3Copyright (c) 2014 Simon Eskildsen
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21THE SOFTWARE.
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/README.md b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/README.md
deleted file mode 100644
index 55d3a8d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/README.md
+++ /dev/null
@@ -1,365 +0,0 @@
1# Logrus <img src="http://i.imgur.com/hTeVwmJ.png" width="40" height="40" alt=":walrus:" class="emoji" title=":walrus:"/>&nbsp;[![Build Status](https://travis-ci.org/Sirupsen/logrus.svg?branch=master)](https://travis-ci.org/Sirupsen/logrus)&nbsp;[![godoc reference](https://godoc.org/github.com/Sirupsen/logrus?status.png)][godoc]
2
3Logrus is a structured logger for Go (golang), completely API compatible with
4the standard library logger. [Godoc][godoc]. **Please note the Logrus API is not
5yet stable (pre 1.0). Logrus itself is completely stable and has been used in
6many large deployments. The core API is unlikely to change much but please
7version control your Logrus to make sure you aren't fetching latest `master` on
8every build.**
9
10Nicely color-coded in development (when a TTY is attached, otherwise just
11plain text):
12
13![Colored](http://i.imgur.com/PY7qMwd.png)
14
15With `log.Formatter = new(logrus.JSONFormatter)`, for easy parsing by logstash
16or Splunk:
17
18```json
19{"animal":"walrus","level":"info","msg":"A group of walrus emerges from the
20ocean","size":10,"time":"2014-03-10 19:57:38.562264131 -0400 EDT"}
21
22{"level":"warning","msg":"The group's number increased tremendously!",
23"number":122,"omg":true,"time":"2014-03-10 19:57:38.562471297 -0400 EDT"}
24
25{"animal":"walrus","level":"info","msg":"A giant walrus appears!",
26"size":10,"time":"2014-03-10 19:57:38.562500591 -0400 EDT"}
27
28{"animal":"walrus","level":"info","msg":"Tremendously sized cow enters the ocean.",
29"size":9,"time":"2014-03-10 19:57:38.562527896 -0400 EDT"}
30
31{"level":"fatal","msg":"The ice breaks!","number":100,"omg":true,
32"time":"2014-03-10 19:57:38.562543128 -0400 EDT"}
33```
34
35With the default `log.Formatter = new(&log.TextFormatter{})` when a TTY is not
36attached, the output is compatible with the
37[logfmt](http://godoc.org/github.com/kr/logfmt) format:
38
39```text
40time="2015-03-26T01:27:38-04:00" level=debug msg="Started observing beach" animal=walrus number=8
41time="2015-03-26T01:27:38-04:00" level=info msg="A group of walrus emerges from the ocean" animal=walrus size=10
42time="2015-03-26T01:27:38-04:00" level=warning msg="The group's number increased tremendously!" number=122 omg=true
43time="2015-03-26T01:27:38-04:00" level=debug msg="Temperature changes" temperature=-4
44time="2015-03-26T01:27:38-04:00" level=panic msg="It's over 9000!" animal=orca size=9009
45time="2015-03-26T01:27:38-04:00" level=fatal msg="The ice breaks!" err=&{0x2082280c0 map[animal:orca size:9009] 2015-03-26 01:27:38.441574009 -0400 EDT panic It's over 9000!} number=100 omg=true
46exit status 1
47```
48
49#### Example
50
51The simplest way to use Logrus is simply the package-level exported logger:
52
53```go
54package main
55
56import (
57 log "github.com/Sirupsen/logrus"
58)
59
60func main() {
61 log.WithFields(log.Fields{
62 "animal": "walrus",
63 }).Info("A walrus appears")
64}
65```
66
67Note that it's completely api-compatible with the stdlib logger, so you can
68replace your `log` imports everywhere with `log "github.com/Sirupsen/logrus"`
69and you'll now have the flexibility of Logrus. You can customize it all you
70want:
71
72```go
73package main
74
75import (
76 "os"
77 log "github.com/Sirupsen/logrus"
78)
79
80func init() {
81 // Log as JSON instead of the default ASCII formatter.
82 log.SetFormatter(&log.JSONFormatter{})
83
84 // Output to stderr instead of stdout, could also be a file.
85 log.SetOutput(os.Stderr)
86
87 // Only log the warning severity or above.
88 log.SetLevel(log.WarnLevel)
89}
90
91func main() {
92 log.WithFields(log.Fields{
93 "animal": "walrus",
94 "size": 10,
95 }).Info("A group of walrus emerges from the ocean")
96
97 log.WithFields(log.Fields{
98 "omg": true,
99 "number": 122,
100 }).Warn("The group's number increased tremendously!")
101
102 log.WithFields(log.Fields{
103 "omg": true,
104 "number": 100,
105 }).Fatal("The ice breaks!")
106
107 // A common pattern is to re-use fields between logging statements by re-using
108 // the logrus.Entry returned from WithFields()
109 contextLogger := log.WithFields(log.Fields{
110 "common": "this is a common field",
111 "other": "I also should be logged always",
112 })
113
114 contextLogger.Info("I'll be logged with common and other field")
115 contextLogger.Info("Me too")
116}
117```
118
119For more advanced usage such as logging to multiple locations from the same
120application, you can also create an instance of the `logrus` Logger:
121
122```go
123package main
124
125import (
126 "github.com/Sirupsen/logrus"
127)
128
129// Create a new instance of the logger. You can have any number of instances.
130var log = logrus.New()
131
132func main() {
133 // The API for setting attributes is a little different than the package level
134 // exported logger. See Godoc.
135 log.Out = os.Stderr
136
137 log.WithFields(logrus.Fields{
138 "animal": "walrus",
139 "size": 10,
140 }).Info("A group of walrus emerges from the ocean")
141}
142```
143
144#### Fields
145
146Logrus encourages careful, structured logging though logging fields instead of
147long, unparseable error messages. For example, instead of: `log.Fatalf("Failed
148to send event %s to topic %s with key %d")`, you should log the much more
149discoverable:
150
151```go
152log.WithFields(log.Fields{
153 "event": event,
154 "topic": topic,
155 "key": key,
156}).Fatal("Failed to send event")
157```
158
159We've found this API forces you to think about logging in a way that produces
160much more useful logging messages. We've been in countless situations where just
161a single added field to a log statement that was already there would've saved us
162hours. The `WithFields` call is optional.
163
164In general, with Logrus using any of the `printf`-family functions should be
165seen as a hint you should add a field, however, you can still use the
166`printf`-family functions with Logrus.
167
168#### Hooks
169
170You can add hooks for logging levels. For example to send errors to an exception
171tracking service on `Error`, `Fatal` and `Panic`, info to StatsD or log to
172multiple places simultaneously, e.g. syslog.
173
174Logrus comes with [built-in hooks](hooks/). Add those, or your custom hook, in
175`init`:
176
177```go
178import (
179 log "github.com/Sirupsen/logrus"
180 "gopkg.in/gemnasium/logrus-airbrake-hook.v2" // the package is named "aibrake"
181 logrus_syslog "github.com/Sirupsen/logrus/hooks/syslog"
182 "log/syslog"
183)
184
185func init() {
186
187 // Use the Airbrake hook to report errors that have Error severity or above to
188 // an exception tracker. You can create custom hooks, see the Hooks section.
189 log.AddHook(airbrake.NewHook(123, "xyz", "production"))
190
191 hook, err := logrus_syslog.NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "")
192 if err != nil {
193 log.Error("Unable to connect to local syslog daemon")
194 } else {
195 log.AddHook(hook)
196 }
197}
198```
199Note: Syslog hook also support connecting to local syslog (Ex. "/dev/log" or "/var/run/syslog" or "/var/run/log"). For the detail, please check the [syslog hook README](hooks/syslog/README.md).
200
201| Hook | Description |
202| ----- | ----------- |
203| [Airbrake](https://github.com/gemnasium/logrus-airbrake-hook) | Send errors to the Airbrake API V3. Uses the official [`gobrake`](https://github.com/airbrake/gobrake) behind the scenes. |
204| [Airbrake "legacy"](https://github.com/gemnasium/logrus-airbrake-legacy-hook) | Send errors to an exception tracking service compatible with the Airbrake API V2. Uses [`airbrake-go`](https://github.com/tobi/airbrake-go) behind the scenes. |
205| [Papertrail](https://github.com/polds/logrus-papertrail-hook) | Send errors to the [Papertrail](https://papertrailapp.com) hosted logging service via UDP. |
206| [Syslog](https://github.com/Sirupsen/logrus/blob/master/hooks/syslog/syslog.go) | Send errors to remote syslog server. Uses standard library `log/syslog` behind the scenes. |
207| [Bugsnag](https://github.com/Shopify/logrus-bugsnag/blob/master/bugsnag.go) | Send errors to the Bugsnag exception tracking service. |
208| [Sentry](https://github.com/evalphobia/logrus_sentry) | Send errors to the Sentry error logging and aggregation service. |
209| [Hiprus](https://github.com/nubo/hiprus) | Send errors to a channel in hipchat. |
210| [Logrusly](https://github.com/sebest/logrusly) | Send logs to [Loggly](https://www.loggly.com/) |
211| [Slackrus](https://github.com/johntdyer/slackrus) | Hook for Slack chat. |
212| [Journalhook](https://github.com/wercker/journalhook) | Hook for logging to `systemd-journald` |
213| [Graylog](https://github.com/gemnasium/logrus-graylog-hook) | Hook for logging to [Graylog](http://graylog2.org/) |
214| [Raygun](https://github.com/squirkle/logrus-raygun-hook) | Hook for logging to [Raygun.io](http://raygun.io/) |
215| [LFShook](https://github.com/rifflock/lfshook) | Hook for logging to the local filesystem |
216| [Honeybadger](https://github.com/agonzalezro/logrus_honeybadger) | Hook for sending exceptions to Honeybadger |
217| [Mail](https://github.com/zbindenren/logrus_mail) | Hook for sending exceptions via mail |
218| [Rollrus](https://github.com/heroku/rollrus) | Hook for sending errors to rollbar |
219| [Fluentd](https://github.com/evalphobia/logrus_fluent) | Hook for logging to fluentd |
220| [Mongodb](https://github.com/weekface/mgorus) | Hook for logging to mongodb |
221| [InfluxDB](https://github.com/Abramovic/logrus_influxdb) | Hook for logging to influxdb |
222| [Octokit](https://github.com/dorajistyle/logrus-octokit-hook) | Hook for logging to github via octokit |
223| [DeferPanic](https://github.com/deferpanic/dp-logrus) | Hook for logging to DeferPanic |
224
225#### Level logging
226
227Logrus has six logging levels: Debug, Info, Warning, Error, Fatal and Panic.
228
229```go
230log.Debug("Useful debugging information.")
231log.Info("Something noteworthy happened!")
232log.Warn("You should probably take a look at this.")
233log.Error("Something failed but I'm not quitting.")
234// Calls os.Exit(1) after logging
235log.Fatal("Bye.")
236// Calls panic() after logging
237log.Panic("I'm bailing.")
238```
239
240You can set the logging level on a `Logger`, then it will only log entries with
241that severity or anything above it:
242
243```go
244// Will log anything that is info or above (warn, error, fatal, panic). Default.
245log.SetLevel(log.InfoLevel)
246```
247
248It may be useful to set `log.Level = logrus.DebugLevel` in a debug or verbose
249environment if your application has that.
250
251#### Entries
252
253Besides the fields added with `WithField` or `WithFields` some fields are
254automatically added to all logging events:
255
2561. `time`. The timestamp when the entry was created.
2572. `msg`. The logging message passed to `{Info,Warn,Error,Fatal,Panic}` after
258 the `AddFields` call. E.g. `Failed to send event.`
2593. `level`. The logging level. E.g. `info`.
260
261#### Environments
262
263Logrus has no notion of environment.
264
265If you wish for hooks and formatters to only be used in specific environments,
266you should handle that yourself. For example, if your application has a global
267variable `Environment`, which is a string representation of the environment you
268could do:
269
270```go
271import (
272 log "github.com/Sirupsen/logrus"
273)
274
275init() {
276 // do something here to set environment depending on an environment variable
277 // or command-line flag
278 if Environment == "production" {
279 log.SetFormatter(&log.JSONFormatter{})
280 } else {
281 // The TextFormatter is default, you don't actually have to do this.
282 log.SetFormatter(&log.TextFormatter{})
283 }
284}
285```
286
287This configuration is how `logrus` was intended to be used, but JSON in
288production is mostly only useful if you do log aggregation with tools like
289Splunk or Logstash.
290
291#### Formatters
292
293The built-in logging formatters are:
294
295* `logrus.TextFormatter`. Logs the event in colors if stdout is a tty, otherwise
296 without colors.
297 * *Note:* to force colored output when there is no TTY, set the `ForceColors`
298 field to `true`. To force no colored output even if there is a TTY set the
299 `DisableColors` field to `true`
300* `logrus.JSONFormatter`. Logs fields as JSON.
301* `logrus/formatters/logstash.LogstashFormatter`. Logs fields as [Logstash](http://logstash.net) Events.
302
303 ```go
304 logrus.SetFormatter(&logstash.LogstashFormatter{Type: "application_name"})
305 ```
306
307Third party logging formatters:
308
309* [`prefixed`](https://github.com/x-cray/logrus-prefixed-formatter). Displays log entry source along with alternative layout.
310* [`zalgo`](https://github.com/aybabtme/logzalgo). Invoking the P͉̫o̳̼̊w̖͈̰͎e̬͔̭͂r͚̼̹̲ ̫͓͉̳͈ō̠͕͖̚f̝͍̠ ͕̲̞͖͑Z̖̫̤̫ͪa͉̬͈̗l͖͎g̳̥o̰̥̅!̣͔̲̻͊̄ ̙̘̦̹̦.
311
312You can define your formatter by implementing the `Formatter` interface,
313requiring a `Format` method. `Format` takes an `*Entry`. `entry.Data` is a
314`Fields` type (`map[string]interface{}`) with all your fields as well as the
315default ones (see Entries section above):
316
317```go
318type MyJSONFormatter struct {
319}
320
321log.SetFormatter(new(MyJSONFormatter))
322
323func (f *MyJSONFormatter) Format(entry *Entry) ([]byte, error) {
324 // Note this doesn't include Time, Level and Message which are available on
325 // the Entry. Consult `godoc` on information about those fields or read the
326 // source of the official loggers.
327 serialized, err := json.Marshal(entry.Data)
328 if err != nil {
329 return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
330 }
331 return append(serialized, '\n'), nil
332}
333```
334
335#### Logger as an `io.Writer`
336
337Logrus can be transformed into an `io.Writer`. That writer is the end of an `io.Pipe` and it is your responsibility to close it.
338
339```go
340w := logger.Writer()
341defer w.Close()
342
343srv := http.Server{
344 // create a stdlib log.Logger that writes to
345 // logrus.Logger.
346 ErrorLog: log.New(w, "", 0),
347}
348```
349
350Each line written to that writer will be printed the usual way, using formatters
351and hooks. The level for those entries is `info`.
352
353#### Rotation
354
355Log rotation is not provided with Logrus. Log rotation should be done by an
356external program (like `logrotate(8)`) that can compress and delete old log
357entries. It should not be a feature of the application-level logger.
358
359#### Tools
360
361| Tool | Description |
362| ---- | ----------- |
363|[Logrus Mate](https://github.com/gogap/logrus_mate)|Logrus mate is a tool for Logrus to manage loggers, you can initial logger's level, hook and formatter by config file, the logger will generated with different config at different environment.|
364
365[godoc]: https://godoc.org/github.com/Sirupsen/logrus
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/doc.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/doc.go
deleted file mode 100644
index dddd5f8..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/doc.go
+++ /dev/null
@@ -1,26 +0,0 @@
1/*
2Package logrus is a structured logger for Go, completely API compatible with the standard library logger.
3
4
5The simplest way to use Logrus is simply the package-level exported logger:
6
7 package main
8
9 import (
10 log "github.com/Sirupsen/logrus"
11 )
12
13 func main() {
14 log.WithFields(log.Fields{
15 "animal": "walrus",
16 "number": 1,
17 "size": 10,
18 }).Info("A walrus appears")
19 }
20
21Output:
22 time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10
23
24For a full guide visit https://github.com/Sirupsen/logrus
25*/
26package logrus
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/entry.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/entry.go
deleted file mode 100644
index 9ae900b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/entry.go
+++ /dev/null
@@ -1,264 +0,0 @@
1package logrus
2
3import (
4 "bytes"
5 "fmt"
6 "io"
7 "os"
8 "time"
9)
10
11// Defines the key when adding errors using WithError.
12var ErrorKey = "error"
13
14// An entry is the final or intermediate Logrus logging entry. It contains all
15// the fields passed with WithField{,s}. It's finally logged when Debug, Info,
16// Warn, Error, Fatal or Panic is called on it. These objects can be reused and
17// passed around as much as you wish to avoid field duplication.
18type Entry struct {
19 Logger *Logger
20
21 // Contains all the fields set by the user.
22 Data Fields
23
24 // Time at which the log entry was created
25 Time time.Time
26
27 // Level the log entry was logged at: Debug, Info, Warn, Error, Fatal or Panic
28 Level Level
29
30 // Message passed to Debug, Info, Warn, Error, Fatal or Panic
31 Message string
32}
33
34func NewEntry(logger *Logger) *Entry {
35 return &Entry{
36 Logger: logger,
37 // Default is three fields, give a little extra room
38 Data: make(Fields, 5),
39 }
40}
41
42// Returns a reader for the entry, which is a proxy to the formatter.
43func (entry *Entry) Reader() (*bytes.Buffer, error) {
44 serialized, err := entry.Logger.Formatter.Format(entry)
45 return bytes.NewBuffer(serialized), err
46}
47
48// Returns the string representation from the reader and ultimately the
49// formatter.
50func (entry *Entry) String() (string, error) {
51 reader, err := entry.Reader()
52 if err != nil {
53 return "", err
54 }
55
56 return reader.String(), err
57}
58
59// Add an error as single field (using the key defined in ErrorKey) to the Entry.
60func (entry *Entry) WithError(err error) *Entry {
61 return entry.WithField(ErrorKey, err)
62}
63
64// Add a single field to the Entry.
65func (entry *Entry) WithField(key string, value interface{}) *Entry {
66 return entry.WithFields(Fields{key: value})
67}
68
69// Add a map of fields to the Entry.
70func (entry *Entry) WithFields(fields Fields) *Entry {
71 data := Fields{}
72 for k, v := range entry.Data {
73 data[k] = v
74 }
75 for k, v := range fields {
76 data[k] = v
77 }
78 return &Entry{Logger: entry.Logger, Data: data}
79}
80
81// This function is not declared with a pointer value because otherwise
82// race conditions will occur when using multiple goroutines
83func (entry Entry) log(level Level, msg string) {
84 entry.Time = time.Now()
85 entry.Level = level
86 entry.Message = msg
87
88 if err := entry.Logger.Hooks.Fire(level, &entry); err != nil {
89 entry.Logger.mu.Lock()
90 fmt.Fprintf(os.Stderr, "Failed to fire hook: %v\n", err)
91 entry.Logger.mu.Unlock()
92 }
93
94 reader, err := entry.Reader()
95 if err != nil {
96 entry.Logger.mu.Lock()
97 fmt.Fprintf(os.Stderr, "Failed to obtain reader, %v\n", err)
98 entry.Logger.mu.Unlock()
99 }
100
101 entry.Logger.mu.Lock()
102 defer entry.Logger.mu.Unlock()
103
104 _, err = io.Copy(entry.Logger.Out, reader)
105 if err != nil {
106 fmt.Fprintf(os.Stderr, "Failed to write to log, %v\n", err)
107 }
108
109 // To avoid Entry#log() returning a value that only would make sense for
110 // panic() to use in Entry#Panic(), we avoid the allocation by checking
111 // directly here.
112 if level <= PanicLevel {
113 panic(&entry)
114 }
115}
116
117func (entry *Entry) Debug(args ...interface{}) {
118 if entry.Logger.Level >= DebugLevel {
119 entry.log(DebugLevel, fmt.Sprint(args...))
120 }
121}
122
123func (entry *Entry) Print(args ...interface{}) {
124 entry.Info(args...)
125}
126
127func (entry *Entry) Info(args ...interface{}) {
128 if entry.Logger.Level >= InfoLevel {
129 entry.log(InfoLevel, fmt.Sprint(args...))
130 }
131}
132
133func (entry *Entry) Warn(args ...interface{}) {
134 if entry.Logger.Level >= WarnLevel {
135 entry.log(WarnLevel, fmt.Sprint(args...))
136 }
137}
138
139func (entry *Entry) Warning(args ...interface{}) {
140 entry.Warn(args...)
141}
142
143func (entry *Entry) Error(args ...interface{}) {
144 if entry.Logger.Level >= ErrorLevel {
145 entry.log(ErrorLevel, fmt.Sprint(args...))
146 }
147}
148
149func (entry *Entry) Fatal(args ...interface{}) {
150 if entry.Logger.Level >= FatalLevel {
151 entry.log(FatalLevel, fmt.Sprint(args...))
152 }
153 os.Exit(1)
154}
155
156func (entry *Entry) Panic(args ...interface{}) {
157 if entry.Logger.Level >= PanicLevel {
158 entry.log(PanicLevel, fmt.Sprint(args...))
159 }
160 panic(fmt.Sprint(args...))
161}
162
163// Entry Printf family functions
164
165func (entry *Entry) Debugf(format string, args ...interface{}) {
166 if entry.Logger.Level >= DebugLevel {
167 entry.Debug(fmt.Sprintf(format, args...))
168 }
169}
170
171func (entry *Entry) Infof(format string, args ...interface{}) {
172 if entry.Logger.Level >= InfoLevel {
173 entry.Info(fmt.Sprintf(format, args...))
174 }
175}
176
177func (entry *Entry) Printf(format string, args ...interface{}) {
178 entry.Infof(format, args...)
179}
180
181func (entry *Entry) Warnf(format string, args ...interface{}) {
182 if entry.Logger.Level >= WarnLevel {
183 entry.Warn(fmt.Sprintf(format, args...))
184 }
185}
186
187func (entry *Entry) Warningf(format string, args ...interface{}) {
188 entry.Warnf(format, args...)
189}
190
191func (entry *Entry) Errorf(format string, args ...interface{}) {
192 if entry.Logger.Level >= ErrorLevel {
193 entry.Error(fmt.Sprintf(format, args...))
194 }
195}
196
197func (entry *Entry) Fatalf(format string, args ...interface{}) {
198 if entry.Logger.Level >= FatalLevel {
199 entry.Fatal(fmt.Sprintf(format, args...))
200 }
201 os.Exit(1)
202}
203
204func (entry *Entry) Panicf(format string, args ...interface{}) {
205 if entry.Logger.Level >= PanicLevel {
206 entry.Panic(fmt.Sprintf(format, args...))
207 }
208}
209
210// Entry Println family functions
211
212func (entry *Entry) Debugln(args ...interface{}) {
213 if entry.Logger.Level >= DebugLevel {
214 entry.Debug(entry.sprintlnn(args...))
215 }
216}
217
218func (entry *Entry) Infoln(args ...interface{}) {
219 if entry.Logger.Level >= InfoLevel {
220 entry.Info(entry.sprintlnn(args...))
221 }
222}
223
224func (entry *Entry) Println(args ...interface{}) {
225 entry.Infoln(args...)
226}
227
228func (entry *Entry) Warnln(args ...interface{}) {
229 if entry.Logger.Level >= WarnLevel {
230 entry.Warn(entry.sprintlnn(args...))
231 }
232}
233
234func (entry *Entry) Warningln(args ...interface{}) {
235 entry.Warnln(args...)
236}
237
238func (entry *Entry) Errorln(args ...interface{}) {
239 if entry.Logger.Level >= ErrorLevel {
240 entry.Error(entry.sprintlnn(args...))
241 }
242}
243
244func (entry *Entry) Fatalln(args ...interface{}) {
245 if entry.Logger.Level >= FatalLevel {
246 entry.Fatal(entry.sprintlnn(args...))
247 }
248 os.Exit(1)
249}
250
251func (entry *Entry) Panicln(args ...interface{}) {
252 if entry.Logger.Level >= PanicLevel {
253 entry.Panic(entry.sprintlnn(args...))
254 }
255}
256
257// Sprintlnn => Sprint no newline. This is to get the behavior of how
258// fmt.Sprintln where spaces are always added between operands, regardless of
259// their type. Instead of vendoring the Sprintln implementation to spare a
260// string allocation, we do the simplest thing.
261func (entry *Entry) sprintlnn(args ...interface{}) string {
262 msg := fmt.Sprintln(args...)
263 return msg[:len(msg)-1]
264}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/exported.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/exported.go
deleted file mode 100644
index 9a0120a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/exported.go
+++ /dev/null
@@ -1,193 +0,0 @@
1package logrus
2
3import (
4 "io"
5)
6
7var (
8 // std is the name of the standard logger in stdlib `log`
9 std = New()
10)
11
12func StandardLogger() *Logger {
13 return std
14}
15
16// SetOutput sets the standard logger output.
17func SetOutput(out io.Writer) {
18 std.mu.Lock()
19 defer std.mu.Unlock()
20 std.Out = out
21}
22
23// SetFormatter sets the standard logger formatter.
24func SetFormatter(formatter Formatter) {
25 std.mu.Lock()
26 defer std.mu.Unlock()
27 std.Formatter = formatter
28}
29
30// SetLevel sets the standard logger level.
31func SetLevel(level Level) {
32 std.mu.Lock()
33 defer std.mu.Unlock()
34 std.Level = level
35}
36
37// GetLevel returns the standard logger level.
38func GetLevel() Level {
39 std.mu.Lock()
40 defer std.mu.Unlock()
41 return std.Level
42}
43
44// AddHook adds a hook to the standard logger hooks.
45func AddHook(hook Hook) {
46 std.mu.Lock()
47 defer std.mu.Unlock()
48 std.Hooks.Add(hook)
49}
50
51// WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.
52func WithError(err error) *Entry {
53 return std.WithField(ErrorKey, err)
54}
55
56// WithField creates an entry from the standard logger and adds a field to
57// it. If you want multiple fields, use `WithFields`.
58//
59// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal
60// or Panic on the Entry it returns.
61func WithField(key string, value interface{}) *Entry {
62 return std.WithField(key, value)
63}
64
65// WithFields creates an entry from the standard logger and adds multiple
66// fields to it. This is simply a helper for `WithField`, invoking it
67// once for each field.
68//
69// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal
70// or Panic on the Entry it returns.
71func WithFields(fields Fields) *Entry {
72 return std.WithFields(fields)
73}
74
75// Debug logs a message at level Debug on the standard logger.
76func Debug(args ...interface{}) {
77 std.Debug(args...)
78}
79
80// Print logs a message at level Info on the standard logger.
81func Print(args ...interface{}) {
82 std.Print(args...)
83}
84
85// Info logs a message at level Info on the standard logger.
86func Info(args ...interface{}) {
87 std.Info(args...)
88}
89
90// Warn logs a message at level Warn on the standard logger.
91func Warn(args ...interface{}) {
92 std.Warn(args...)
93}
94
95// Warning logs a message at level Warn on the standard logger.
96func Warning(args ...interface{}) {
97 std.Warning(args...)
98}
99
100// Error logs a message at level Error on the standard logger.
101func Error(args ...interface{}) {
102 std.Error(args...)
103}
104
105// Panic logs a message at level Panic on the standard logger.
106func Panic(args ...interface{}) {
107 std.Panic(args...)
108}
109
110// Fatal logs a message at level Fatal on the standard logger.
111func Fatal(args ...interface{}) {
112 std.Fatal(args...)
113}
114
115// Debugf logs a message at level Debug on the standard logger.
116func Debugf(format string, args ...interface{}) {
117 std.Debugf(format, args...)
118}
119
120// Printf logs a message at level Info on the standard logger.
121func Printf(format string, args ...interface{}) {
122 std.Printf(format, args...)
123}
124
125// Infof logs a message at level Info on the standard logger.
126func Infof(format string, args ...interface{}) {
127 std.Infof(format, args...)
128}
129
130// Warnf logs a message at level Warn on the standard logger.
131func Warnf(format string, args ...interface{}) {
132 std.Warnf(format, args...)
133}
134
135// Warningf logs a message at level Warn on the standard logger.
136func Warningf(format string, args ...interface{}) {
137 std.Warningf(format, args...)
138}
139
140// Errorf logs a message at level Error on the standard logger.
141func Errorf(format string, args ...interface{}) {
142 std.Errorf(format, args...)
143}
144
145// Panicf logs a message at level Panic on the standard logger.
146func Panicf(format string, args ...interface{}) {
147 std.Panicf(format, args...)
148}
149
150// Fatalf logs a message at level Fatal on the standard logger.
151func Fatalf(format string, args ...interface{}) {
152 std.Fatalf(format, args...)
153}
154
155// Debugln logs a message at level Debug on the standard logger.
156func Debugln(args ...interface{}) {
157 std.Debugln(args...)
158}
159
160// Println logs a message at level Info on the standard logger.
161func Println(args ...interface{}) {
162 std.Println(args...)
163}
164
165// Infoln logs a message at level Info on the standard logger.
166func Infoln(args ...interface{}) {
167 std.Infoln(args...)
168}
169
170// Warnln logs a message at level Warn on the standard logger.
171func Warnln(args ...interface{}) {
172 std.Warnln(args...)
173}
174
175// Warningln logs a message at level Warn on the standard logger.
176func Warningln(args ...interface{}) {
177 std.Warningln(args...)
178}
179
180// Errorln logs a message at level Error on the standard logger.
181func Errorln(args ...interface{}) {
182 std.Errorln(args...)
183}
184
185// Panicln logs a message at level Panic on the standard logger.
186func Panicln(args ...interface{}) {
187 std.Panicln(args...)
188}
189
190// Fatalln logs a message at level Fatal on the standard logger.
191func Fatalln(args ...interface{}) {
192 std.Fatalln(args...)
193}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/formatter.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/formatter.go
deleted file mode 100644
index 104d689..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/formatter.go
+++ /dev/null
@@ -1,48 +0,0 @@
1package logrus
2
3import "time"
4
5const DefaultTimestampFormat = time.RFC3339
6
7// The Formatter interface is used to implement a custom Formatter. It takes an
8// `Entry`. It exposes all the fields, including the default ones:
9//
10// * `entry.Data["msg"]`. The message passed from Info, Warn, Error ..
11// * `entry.Data["time"]`. The timestamp.
12// * `entry.Data["level"]. The level the entry was logged at.
13//
14// Any additional fields added with `WithField` or `WithFields` are also in
15// `entry.Data`. Format is expected to return an array of bytes which are then
16// logged to `logger.Out`.
17type Formatter interface {
18 Format(*Entry) ([]byte, error)
19}
20
21// This is to not silently overwrite `time`, `msg` and `level` fields when
22// dumping it. If this code wasn't there doing:
23//
24// logrus.WithField("level", 1).Info("hello")
25//
26// Would just silently drop the user provided level. Instead with this code
27// it'll logged as:
28//
29// {"level": "info", "fields.level": 1, "msg": "hello", "time": "..."}
30//
31// It's not exported because it's still using Data in an opinionated way. It's to
32// avoid code duplication between the two default formatters.
33func prefixFieldClashes(data Fields) {
34 _, ok := data["time"]
35 if ok {
36 data["fields.time"] = data["time"]
37 }
38
39 _, ok = data["msg"]
40 if ok {
41 data["fields.msg"] = data["msg"]
42 }
43
44 _, ok = data["level"]
45 if ok {
46 data["fields.level"] = data["level"]
47 }
48}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/hooks.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/hooks.go
deleted file mode 100644
index 3f151cd..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/hooks.go
+++ /dev/null
@@ -1,34 +0,0 @@
1package logrus
2
3// A hook to be fired when logging on the logging levels returned from
4// `Levels()` on your implementation of the interface. Note that this is not
5// fired in a goroutine or a channel with workers, you should handle such
6// functionality yourself if your call is non-blocking and you don't wish for
7// the logging calls for levels returned from `Levels()` to block.
8type Hook interface {
9 Levels() []Level
10 Fire(*Entry) error
11}
12
13// Internal type for storing the hooks on a logger instance.
14type LevelHooks map[Level][]Hook
15
16// Add a hook to an instance of logger. This is called with
17// `log.Hooks.Add(new(MyHook))` where `MyHook` implements the `Hook` interface.
18func (hooks LevelHooks) Add(hook Hook) {
19 for _, level := range hook.Levels() {
20 hooks[level] = append(hooks[level], hook)
21 }
22}
23
24// Fire all the hooks for the passed level. Used by `entry.log` to fire
25// appropriate hooks for a log entry.
26func (hooks LevelHooks) Fire(level Level, entry *Entry) error {
27 for _, hook := range hooks[level] {
28 if err := hook.Fire(entry); err != nil {
29 return err
30 }
31 }
32
33 return nil
34}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/json_formatter.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/json_formatter.go
deleted file mode 100644
index 2ad6dc5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/json_formatter.go
+++ /dev/null
@@ -1,41 +0,0 @@
1package logrus
2
3import (
4 "encoding/json"
5 "fmt"
6)
7
8type JSONFormatter struct {
9 // TimestampFormat sets the format used for marshaling timestamps.
10 TimestampFormat string
11}
12
13func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
14 data := make(Fields, len(entry.Data)+3)
15 for k, v := range entry.Data {
16 switch v := v.(type) {
17 case error:
18 // Otherwise errors are ignored by `encoding/json`
19 // https://github.com/Sirupsen/logrus/issues/137
20 data[k] = v.Error()
21 default:
22 data[k] = v
23 }
24 }
25 prefixFieldClashes(data)
26
27 timestampFormat := f.TimestampFormat
28 if timestampFormat == "" {
29 timestampFormat = DefaultTimestampFormat
30 }
31
32 data["time"] = entry.Time.Format(timestampFormat)
33 data["msg"] = entry.Message
34 data["level"] = entry.Level.String()
35
36 serialized, err := json.Marshal(data)
37 if err != nil {
38 return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
39 }
40 return append(serialized, '\n'), nil
41}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/logger.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/logger.go
deleted file mode 100644
index 2fdb231..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/logger.go
+++ /dev/null
@@ -1,212 +0,0 @@
1package logrus
2
3import (
4 "io"
5 "os"
6 "sync"
7)
8
9type Logger struct {
10 // The logs are `io.Copy`'d to this in a mutex. It's common to set this to a
11 // file, or leave it default which is `os.Stderr`. You can also set this to
12 // something more adventorous, such as logging to Kafka.
13 Out io.Writer
14 // Hooks for the logger instance. These allow firing events based on logging
15 // levels and log entries. For example, to send errors to an error tracking
16 // service, log to StatsD or dump the core on fatal errors.
17 Hooks LevelHooks
18 // All log entries pass through the formatter before logged to Out. The
19 // included formatters are `TextFormatter` and `JSONFormatter` for which
20 // TextFormatter is the default. In development (when a TTY is attached) it
21 // logs with colors, but to a file it wouldn't. You can easily implement your
22 // own that implements the `Formatter` interface, see the `README` or included
23 // formatters for examples.
24 Formatter Formatter
25 // The logging level the logger should log at. This is typically (and defaults
26 // to) `logrus.Info`, which allows Info(), Warn(), Error() and Fatal() to be
27 // logged. `logrus.Debug` is useful in
28 Level Level
29 // Used to sync writing to the log.
30 mu sync.Mutex
31}
32
33// Creates a new logger. Configuration should be set by changing `Formatter`,
34// `Out` and `Hooks` directly on the default logger instance. You can also just
35// instantiate your own:
36//
37// var log = &Logger{
38// Out: os.Stderr,
39// Formatter: new(JSONFormatter),
40// Hooks: make(LevelHooks),
41// Level: logrus.DebugLevel,
42// }
43//
44// It's recommended to make this a global instance called `log`.
45func New() *Logger {
46 return &Logger{
47 Out: os.Stderr,
48 Formatter: new(TextFormatter),
49 Hooks: make(LevelHooks),
50 Level: InfoLevel,
51 }
52}
53
54// Adds a field to the log entry, note that you it doesn't log until you call
55// Debug, Print, Info, Warn, Fatal or Panic. It only creates a log entry.
56// If you want multiple fields, use `WithFields`.
57func (logger *Logger) WithField(key string, value interface{}) *Entry {
58 return NewEntry(logger).WithField(key, value)
59}
60
61// Adds a struct of fields to the log entry. All it does is call `WithField` for
62// each `Field`.
63func (logger *Logger) WithFields(fields Fields) *Entry {
64 return NewEntry(logger).WithFields(fields)
65}
66
67// Add an error as single field to the log entry. All it does is call
68// `WithError` for the given `error`.
69func (logger *Logger) WithError(err error) *Entry {
70 return NewEntry(logger).WithError(err)
71}
72
73func (logger *Logger) Debugf(format string, args ...interface{}) {
74 if logger.Level >= DebugLevel {
75 NewEntry(logger).Debugf(format, args...)
76 }
77}
78
79func (logger *Logger) Infof(format string, args ...interface{}) {
80 if logger.Level >= InfoLevel {
81 NewEntry(logger).Infof(format, args...)
82 }
83}
84
85func (logger *Logger) Printf(format string, args ...interface{}) {
86 NewEntry(logger).Printf(format, args...)
87}
88
89func (logger *Logger) Warnf(format string, args ...interface{}) {
90 if logger.Level >= WarnLevel {
91 NewEntry(logger).Warnf(format, args...)
92 }
93}
94
95func (logger *Logger) Warningf(format string, args ...interface{}) {
96 if logger.Level >= WarnLevel {
97 NewEntry(logger).Warnf(format, args...)
98 }
99}
100
101func (logger *Logger) Errorf(format string, args ...interface{}) {
102 if logger.Level >= ErrorLevel {
103 NewEntry(logger).Errorf(format, args...)
104 }
105}
106
107func (logger *Logger) Fatalf(format string, args ...interface{}) {
108 if logger.Level >= FatalLevel {
109 NewEntry(logger).Fatalf(format, args...)
110 }
111 os.Exit(1)
112}
113
114func (logger *Logger) Panicf(format string, args ...interface{}) {
115 if logger.Level >= PanicLevel {
116 NewEntry(logger).Panicf(format, args...)
117 }
118}
119
120func (logger *Logger) Debug(args ...interface{}) {
121 if logger.Level >= DebugLevel {
122 NewEntry(logger).Debug(args...)
123 }
124}
125
126func (logger *Logger) Info(args ...interface{}) {
127 if logger.Level >= InfoLevel {
128 NewEntry(logger).Info(args...)
129 }
130}
131
132func (logger *Logger) Print(args ...interface{}) {
133 NewEntry(logger).Info(args...)
134}
135
136func (logger *Logger) Warn(args ...interface{}) {
137 if logger.Level >= WarnLevel {
138 NewEntry(logger).Warn(args...)
139 }
140}
141
142func (logger *Logger) Warning(args ...interface{}) {
143 if logger.Level >= WarnLevel {
144 NewEntry(logger).Warn(args...)
145 }
146}
147
148func (logger *Logger) Error(args ...interface{}) {
149 if logger.Level >= ErrorLevel {
150 NewEntry(logger).Error(args...)
151 }
152}
153
154func (logger *Logger) Fatal(args ...interface{}) {
155 if logger.Level >= FatalLevel {
156 NewEntry(logger).Fatal(args...)
157 }
158 os.Exit(1)
159}
160
161func (logger *Logger) Panic(args ...interface{}) {
162 if logger.Level >= PanicLevel {
163 NewEntry(logger).Panic(args...)
164 }
165}
166
167func (logger *Logger) Debugln(args ...interface{}) {
168 if logger.Level >= DebugLevel {
169 NewEntry(logger).Debugln(args...)
170 }
171}
172
173func (logger *Logger) Infoln(args ...interface{}) {
174 if logger.Level >= InfoLevel {
175 NewEntry(logger).Infoln(args...)
176 }
177}
178
179func (logger *Logger) Println(args ...interface{}) {
180 NewEntry(logger).Println(args...)
181}
182
183func (logger *Logger) Warnln(args ...interface{}) {
184 if logger.Level >= WarnLevel {
185 NewEntry(logger).Warnln(args...)
186 }
187}
188
189func (logger *Logger) Warningln(args ...interface{}) {
190 if logger.Level >= WarnLevel {
191 NewEntry(logger).Warnln(args...)
192 }
193}
194
195func (logger *Logger) Errorln(args ...interface{}) {
196 if logger.Level >= ErrorLevel {
197 NewEntry(logger).Errorln(args...)
198 }
199}
200
201func (logger *Logger) Fatalln(args ...interface{}) {
202 if logger.Level >= FatalLevel {
203 NewEntry(logger).Fatalln(args...)
204 }
205 os.Exit(1)
206}
207
208func (logger *Logger) Panicln(args ...interface{}) {
209 if logger.Level >= PanicLevel {
210 NewEntry(logger).Panicln(args...)
211 }
212}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/logrus.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/logrus.go
deleted file mode 100644
index 0c09fbc..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/logrus.go
+++ /dev/null
@@ -1,98 +0,0 @@
1package logrus
2
3import (
4 "fmt"
5 "log"
6)
7
8// Fields type, used to pass to `WithFields`.
9type Fields map[string]interface{}
10
11// Level type
12type Level uint8
13
14// Convert the Level to a string. E.g. PanicLevel becomes "panic".
15func (level Level) String() string {
16 switch level {
17 case DebugLevel:
18 return "debug"
19 case InfoLevel:
20 return "info"
21 case WarnLevel:
22 return "warning"
23 case ErrorLevel:
24 return "error"
25 case FatalLevel:
26 return "fatal"
27 case PanicLevel:
28 return "panic"
29 }
30
31 return "unknown"
32}
33
34// ParseLevel takes a string level and returns the Logrus log level constant.
35func ParseLevel(lvl string) (Level, error) {
36 switch lvl {
37 case "panic":
38 return PanicLevel, nil
39 case "fatal":
40 return FatalLevel, nil
41 case "error":
42 return ErrorLevel, nil
43 case "warn", "warning":
44 return WarnLevel, nil
45 case "info":
46 return InfoLevel, nil
47 case "debug":
48 return DebugLevel, nil
49 }
50
51 var l Level
52 return l, fmt.Errorf("not a valid logrus Level: %q", lvl)
53}
54
55// These are the different logging levels. You can set the logging level to log
56// on your instance of logger, obtained with `logrus.New()`.
57const (
58 // PanicLevel level, highest level of severity. Logs and then calls panic with the
59 // message passed to Debug, Info, ...
60 PanicLevel Level = iota
61 // FatalLevel level. Logs and then calls `os.Exit(1)`. It will exit even if the
62 // logging level is set to Panic.
63 FatalLevel
64 // ErrorLevel level. Logs. Used for errors that should definitely be noted.
65 // Commonly used for hooks to send errors to an error tracking service.
66 ErrorLevel
67 // WarnLevel level. Non-critical entries that deserve eyes.
68 WarnLevel
69 // InfoLevel level. General operational entries about what's going on inside the
70 // application.
71 InfoLevel
72 // DebugLevel level. Usually only enabled when debugging. Very verbose logging.
73 DebugLevel
74)
75
76// Won't compile if StdLogger can't be realized by a log.Logger
77var (
78 _ StdLogger = &log.Logger{}
79 _ StdLogger = &Entry{}
80 _ StdLogger = &Logger{}
81)
82
83// StdLogger is what your logrus-enabled library should take, that way
84// it'll accept a stdlib logger and a logrus logger. There's no standard
85// interface, this is the closest we get, unfortunately.
86type StdLogger interface {
87 Print(...interface{})
88 Printf(string, ...interface{})
89 Println(...interface{})
90
91 Fatal(...interface{})
92 Fatalf(string, ...interface{})
93 Fatalln(...interface{})
94
95 Panic(...interface{})
96 Panicf(string, ...interface{})
97 Panicln(...interface{})
98}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_bsd.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_bsd.go
deleted file mode 100644
index 71f8d67..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_bsd.go
+++ /dev/null
@@ -1,9 +0,0 @@
1// +build darwin freebsd openbsd netbsd dragonfly
2
3package logrus
4
5import "syscall"
6
7const ioctlReadTermios = syscall.TIOCGETA
8
9type Termios syscall.Termios
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_linux.go
deleted file mode 100644
index a2c0b40..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_linux.go
+++ /dev/null
@@ -1,12 +0,0 @@
1// Based on ssh/terminal:
2// Copyright 2013 The Go Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file.
5
6package logrus
7
8import "syscall"
9
10const ioctlReadTermios = syscall.TCGETS
11
12type Termios syscall.Termios
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go
deleted file mode 100644
index b343b3a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go
+++ /dev/null
@@ -1,21 +0,0 @@
1// Based on ssh/terminal:
2// Copyright 2011 The Go Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file.
5
6// +build linux darwin freebsd openbsd netbsd dragonfly
7
8package logrus
9
10import (
11 "syscall"
12 "unsafe"
13)
14
15// IsTerminal returns true if stderr's file descriptor is a terminal.
16func IsTerminal() bool {
17 fd := syscall.Stderr
18 var termios Termios
19 _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
20 return err == 0
21}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_solaris.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_solaris.go
deleted file mode 100644
index 743df45..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_solaris.go
+++ /dev/null
@@ -1,15 +0,0 @@
1// +build solaris
2
3package logrus
4
5import (
6 "os"
7
8 "github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix"
9)
10
11// IsTerminal returns true if the given file descriptor is a terminal.
12func IsTerminal() bool {
13 _, err := unix.IoctlGetTermios(int(os.Stdout.Fd()), unix.TCGETA)
14 return err == nil
15}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_windows.go
deleted file mode 100644
index 0146845..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_windows.go
+++ /dev/null
@@ -1,27 +0,0 @@
1// Based on ssh/terminal:
2// Copyright 2011 The Go Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file.
5
6// +build windows
7
8package logrus
9
10import (
11 "syscall"
12 "unsafe"
13)
14
15var kernel32 = syscall.NewLazyDLL("kernel32.dll")
16
17var (
18 procGetConsoleMode = kernel32.NewProc("GetConsoleMode")
19)
20
21// IsTerminal returns true if stderr's file descriptor is a terminal.
22func IsTerminal() bool {
23 fd := syscall.Stderr
24 var st uint32
25 r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, uintptr(fd), uintptr(unsafe.Pointer(&st)), 0)
26 return r != 0 && e == 0
27}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/text_formatter.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/text_formatter.go
deleted file mode 100644
index 06ef202..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/text_formatter.go
+++ /dev/null
@@ -1,161 +0,0 @@
1package logrus
2
3import (
4 "bytes"
5 "fmt"
6 "runtime"
7 "sort"
8 "strings"
9 "time"
10)
11
12const (
13 nocolor = 0
14 red = 31
15 green = 32
16 yellow = 33
17 blue = 34
18 gray = 37
19)
20
21var (
22 baseTimestamp time.Time
23 isTerminal bool
24)
25
26func init() {
27 baseTimestamp = time.Now()
28 isTerminal = IsTerminal()
29}
30
31func miniTS() int {
32 return int(time.Since(baseTimestamp) / time.Second)
33}
34
35type TextFormatter struct {
36 // Set to true to bypass checking for a TTY before outputting colors.
37 ForceColors bool
38
39 // Force disabling colors.
40 DisableColors bool
41
42 // Disable timestamp logging. useful when output is redirected to logging
43 // system that already adds timestamps.
44 DisableTimestamp bool
45
46 // Enable logging the full timestamp when a TTY is attached instead of just
47 // the time passed since beginning of execution.
48 FullTimestamp bool
49
50 // TimestampFormat to use for display when a full timestamp is printed
51 TimestampFormat string
52
53 // The fields are sorted by default for a consistent output. For applications
54 // that log extremely frequently and don't use the JSON formatter this may not
55 // be desired.
56 DisableSorting bool
57}
58
59func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
60 var keys []string = make([]string, 0, len(entry.Data))
61 for k := range entry.Data {
62 keys = append(keys, k)
63 }
64
65 if !f.DisableSorting {
66 sort.Strings(keys)
67 }
68
69 b := &bytes.Buffer{}
70
71 prefixFieldClashes(entry.Data)
72
73 isColorTerminal := isTerminal && (runtime.GOOS != "windows")
74 isColored := (f.ForceColors || isColorTerminal) && !f.DisableColors
75
76 timestampFormat := f.TimestampFormat
77 if timestampFormat == "" {
78 timestampFormat = DefaultTimestampFormat
79 }
80 if isColored {
81 f.printColored(b, entry, keys, timestampFormat)
82 } else {
83 if !f.DisableTimestamp {
84 f.appendKeyValue(b, "time", entry.Time.Format(timestampFormat))
85 }
86 f.appendKeyValue(b, "level", entry.Level.String())
87 if entry.Message != "" {
88 f.appendKeyValue(b, "msg", entry.Message)
89 }
90 for _, key := range keys {
91 f.appendKeyValue(b, key, entry.Data[key])
92 }
93 }
94
95 b.WriteByte('\n')
96 return b.Bytes(), nil
97}
98
99func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []string, timestampFormat string) {
100 var levelColor int
101 switch entry.Level {
102 case DebugLevel:
103 levelColor = gray
104 case WarnLevel:
105 levelColor = yellow
106 case ErrorLevel, FatalLevel, PanicLevel:
107 levelColor = red
108 default:
109 levelColor = blue
110 }
111
112 levelText := strings.ToUpper(entry.Level.String())[0:4]
113
114 if !f.FullTimestamp {
115 fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%04d] %-44s ", levelColor, levelText, miniTS(), entry.Message)
116 } else {
117 fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%s] %-44s ", levelColor, levelText, entry.Time.Format(timestampFormat), entry.Message)
118 }
119 for _, k := range keys {
120 v := entry.Data[k]
121 fmt.Fprintf(b, " \x1b[%dm%s\x1b[0m=%+v", levelColor, k, v)
122 }
123}
124
125func needsQuoting(text string) bool {
126 for _, ch := range text {
127 if !((ch >= 'a' && ch <= 'z') ||
128 (ch >= 'A' && ch <= 'Z') ||
129 (ch >= '0' && ch <= '9') ||
130 ch == '-' || ch == '.') {
131 return false
132 }
133 }
134 return true
135}
136
137func (f *TextFormatter) appendKeyValue(b *bytes.Buffer, key string, value interface{}) {
138
139 b.WriteString(key)
140 b.WriteByte('=')
141
142 switch value := value.(type) {
143 case string:
144 if needsQuoting(value) {
145 b.WriteString(value)
146 } else {
147 fmt.Fprintf(b, "%q", value)
148 }
149 case error:
150 errmsg := value.Error()
151 if needsQuoting(errmsg) {
152 b.WriteString(errmsg)
153 } else {
154 fmt.Fprintf(b, "%q", value)
155 }
156 default:
157 fmt.Fprint(b, value)
158 }
159
160 b.WriteByte(' ')
161}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/writer.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/writer.go
deleted file mode 100644
index 1e30b1c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/writer.go
+++ /dev/null
@@ -1,31 +0,0 @@
1package logrus
2
3import (
4 "bufio"
5 "io"
6 "runtime"
7)
8
9func (logger *Logger) Writer() *io.PipeWriter {
10 reader, writer := io.Pipe()
11
12 go logger.writerScanner(reader)
13 runtime.SetFinalizer(writer, writerFinalizer)
14
15 return writer
16}
17
18func (logger *Logger) writerScanner(reader *io.PipeReader) {
19 scanner := bufio.NewScanner(reader)
20 for scanner.Scan() {
21 logger.Print(scanner.Text())
22 }
23 if err := scanner.Err(); err != nil {
24 logger.Errorf("Error while reading from Writer: %s", err)
25 }
26 reader.Close()
27}
28
29func writerFinalizer(writer *io.PipeWriter) {
30 writer.Close()
31}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/envfile.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/envfile.go
deleted file mode 100644
index ba8b4f2..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/envfile.go
+++ /dev/null
@@ -1,67 +0,0 @@
1package opts
2
3import (
4 "bufio"
5 "fmt"
6 "os"
7 "strings"
8)
9
10// ParseEnvFile reads a file with environment variables enumerated by lines
11//
12// ``Environment variable names used by the utilities in the Shell and
13// Utilities volume of IEEE Std 1003.1-2001 consist solely of uppercase
14// letters, digits, and the '_' (underscore) from the characters defined in
15// Portable Character Set and do not begin with a digit. *But*, other
16// characters may be permitted by an implementation; applications shall
17// tolerate the presence of such names.''
18// -- http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
19//
20// As of #16585, it's up to application inside docker to validate or not
21// environment variables, that's why we just strip leading whitespace and
22// nothing more.
23func ParseEnvFile(filename string) ([]string, error) {
24 fh, err := os.Open(filename)
25 if err != nil {
26 return []string{}, err
27 }
28 defer fh.Close()
29
30 lines := []string{}
31 scanner := bufio.NewScanner(fh)
32 for scanner.Scan() {
33 // trim the line from all leading whitespace first
34 line := strings.TrimLeft(scanner.Text(), whiteSpaces)
35 // line is not empty, and not starting with '#'
36 if len(line) > 0 && !strings.HasPrefix(line, "#") {
37 data := strings.SplitN(line, "=", 2)
38
39 // trim the front of a variable, but nothing else
40 variable := strings.TrimLeft(data[0], whiteSpaces)
41 if strings.ContainsAny(variable, whiteSpaces) {
42 return []string{}, ErrBadEnvVariable{fmt.Sprintf("variable '%s' has white spaces", variable)}
43 }
44
45 if len(data) > 1 {
46
47 // pass the value through, no trimming
48 lines = append(lines, fmt.Sprintf("%s=%s", variable, data[1]))
49 } else {
50 // if only a pass-through variable is given, clean it up.
51 lines = append(lines, fmt.Sprintf("%s=%s", strings.TrimSpace(line), os.Getenv(line)))
52 }
53 }
54 }
55 return lines, scanner.Err()
56}
57
58var whiteSpaces = " \t"
59
60// ErrBadEnvVariable typed error for bad environment variable
61type ErrBadEnvVariable struct {
62 msg string
63}
64
65func (e ErrBadEnvVariable) Error() string {
66 return fmt.Sprintf("poorly formatted environment: %s", e.msg)
67}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts.go
deleted file mode 100644
index d1b6985..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts.go
+++ /dev/null
@@ -1,146 +0,0 @@
1package opts
2
3import (
4 "fmt"
5 "net"
6 "net/url"
7 "runtime"
8 "strconv"
9 "strings"
10)
11
12var (
13 // DefaultHTTPPort Default HTTP Port used if only the protocol is provided to -H flag e.g. docker daemon -H tcp://
14 // TODO Windows. DefaultHTTPPort is only used on Windows if a -H parameter
15 // is not supplied. A better longer term solution would be to use a named
16 // pipe as the default on the Windows daemon.
17 // These are the IANA registered port numbers for use with Docker
18 // see http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=docker
19 DefaultHTTPPort = 2375 // Default HTTP Port
20 // DefaultTLSHTTPPort Default HTTP Port used when TLS enabled
21 DefaultTLSHTTPPort = 2376 // Default TLS encrypted HTTP Port
22 // DefaultUnixSocket Path for the unix socket.
23 // Docker daemon by default always listens on the default unix socket
24 DefaultUnixSocket = "/var/run/docker.sock"
25 // DefaultTCPHost constant defines the default host string used by docker on Windows
26 DefaultTCPHost = fmt.Sprintf("tcp://%s:%d", DefaultHTTPHost, DefaultHTTPPort)
27 // DefaultTLSHost constant defines the default host string used by docker for TLS sockets
28 DefaultTLSHost = fmt.Sprintf("tcp://%s:%d", DefaultHTTPHost, DefaultTLSHTTPPort)
29)
30
31// ValidateHost validates that the specified string is a valid host and returns it.
32func ValidateHost(val string) (string, error) {
33 _, err := parseDockerDaemonHost(DefaultTCPHost, DefaultTLSHost, DefaultUnixSocket, "", val)
34 if err != nil {
35 return val, err
36 }
37 // Note: unlike most flag validators, we don't return the mutated value here
38 // we need to know what the user entered later (using ParseHost) to adjust for tls
39 return val, nil
40}
41
42// ParseHost and set defaults for a Daemon host string
43func ParseHost(defaultHost, val string) (string, error) {
44 host, err := parseDockerDaemonHost(DefaultTCPHost, DefaultTLSHost, DefaultUnixSocket, defaultHost, val)
45 if err != nil {
46 return val, err
47 }
48 return host, nil
49}
50
51// parseDockerDaemonHost parses the specified address and returns an address that will be used as the host.
52// Depending of the address specified, will use the defaultTCPAddr or defaultUnixAddr
53// defaultUnixAddr must be a absolute file path (no `unix://` prefix)
54// defaultTCPAddr must be the full `tcp://host:port` form
55func parseDockerDaemonHost(defaultTCPAddr, defaultTLSHost, defaultUnixAddr, defaultAddr, addr string) (string, error) {
56 addr = strings.TrimSpace(addr)
57 if addr == "" {
58 if defaultAddr == defaultTLSHost {
59 return defaultTLSHost, nil
60 }
61 if runtime.GOOS != "windows" {
62 return fmt.Sprintf("unix://%s", defaultUnixAddr), nil
63 }
64 return defaultTCPAddr, nil
65 }
66 addrParts := strings.Split(addr, "://")
67 if len(addrParts) == 1 {
68 addrParts = []string{"tcp", addrParts[0]}
69 }
70
71 switch addrParts[0] {
72 case "tcp":
73 return parseTCPAddr(addrParts[1], defaultTCPAddr)
74 case "unix":
75 return parseUnixAddr(addrParts[1], defaultUnixAddr)
76 case "fd":
77 return addr, nil
78 default:
79 return "", fmt.Errorf("Invalid bind address format: %s", addr)
80 }
81}
82
83// parseUnixAddr parses and validates that the specified address is a valid UNIX
84// socket address. It returns a formatted UNIX socket address, either using the
85// address parsed from addr, or the contents of defaultAddr if addr is a blank
86// string.
87func parseUnixAddr(addr string, defaultAddr string) (string, error) {
88 addr = strings.TrimPrefix(addr, "unix://")
89 if strings.Contains(addr, "://") {
90 return "", fmt.Errorf("Invalid proto, expected unix: %s", addr)
91 }
92 if addr == "" {
93 addr = defaultAddr
94 }
95 return fmt.Sprintf("unix://%s", addr), nil
96}
97
98// parseTCPAddr parses and validates that the specified address is a valid TCP
99// address. It returns a formatted TCP address, either using the address parsed
100// from tryAddr, or the contents of defaultAddr if tryAddr is a blank string.
101// tryAddr is expected to have already been Trim()'d
102// defaultAddr must be in the full `tcp://host:port` form
103func parseTCPAddr(tryAddr string, defaultAddr string) (string, error) {
104 if tryAddr == "" || tryAddr == "tcp://" {
105 return defaultAddr, nil
106 }
107 addr := strings.TrimPrefix(tryAddr, "tcp://")
108 if strings.Contains(addr, "://") || addr == "" {
109 return "", fmt.Errorf("Invalid proto, expected tcp: %s", tryAddr)
110 }
111
112 defaultAddr = strings.TrimPrefix(defaultAddr, "tcp://")
113 defaultHost, defaultPort, err := net.SplitHostPort(defaultAddr)
114 if err != nil {
115 return "", err
116 }
117 // url.Parse fails for trailing colon on IPv6 brackets on Go 1.5, but
118 // not 1.4. See https://github.com/golang/go/issues/12200 and
119 // https://github.com/golang/go/issues/6530.
120 if strings.HasSuffix(addr, "]:") {
121 addr += defaultPort
122 }
123
124 u, err := url.Parse("tcp://" + addr)
125 if err != nil {
126 return "", err
127 }
128
129 host, port, err := net.SplitHostPort(u.Host)
130 if err != nil {
131 return "", fmt.Errorf("Invalid bind address format: %s", tryAddr)
132 }
133
134 if host == "" {
135 host = defaultHost
136 }
137 if port == "" {
138 port = defaultPort
139 }
140 p, err := strconv.Atoi(port)
141 if err != nil && p == 0 {
142 return "", fmt.Errorf("Invalid bind address format: %s", tryAddr)
143 }
144
145 return fmt.Sprintf("tcp://%s%s", net.JoinHostPort(host, port), u.Path), nil
146}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_unix.go
deleted file mode 100644
index 611407a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_unix.go
+++ /dev/null
@@ -1,8 +0,0 @@
1// +build !windows
2
3package opts
4
5import "fmt"
6
7// DefaultHost constant defines the default host string used by docker on other hosts than Windows
8var DefaultHost = fmt.Sprintf("unix://%s", DefaultUnixSocket)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_windows.go
deleted file mode 100644
index ec52e9a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_windows.go
+++ /dev/null
@@ -1,6 +0,0 @@
1// +build windows
2
3package opts
4
5// DefaultHost constant defines the default host string used by docker on Windows
6var DefaultHost = DefaultTCPHost
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/ip.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/ip.go
deleted file mode 100644
index c7b0dc9..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/ip.go
+++ /dev/null
@@ -1,42 +0,0 @@
1package opts
2
3import (
4 "fmt"
5 "net"
6)
7
8// IPOpt holds an IP. It is used to store values from CLI flags.
9type IPOpt struct {
10 *net.IP
11}
12
13// NewIPOpt creates a new IPOpt from a reference net.IP and a
14// string representation of an IP. If the string is not a valid
15// IP it will fallback to the specified reference.
16func NewIPOpt(ref *net.IP, defaultVal string) *IPOpt {
17 o := &IPOpt{
18 IP: ref,
19 }
20 o.Set(defaultVal)
21 return o
22}
23
24// Set sets an IPv4 or IPv6 address from a given string. If the given
25// string is not parseable as an IP address it returns an error.
26func (o *IPOpt) Set(val string) error {
27 ip := net.ParseIP(val)
28 if ip == nil {
29 return fmt.Errorf("%s is not an ip address", val)
30 }
31 *o.IP = ip
32 return nil
33}
34
35// String returns the IP address stored in the IPOpt. If stored IP is a
36// nil pointer, it returns an empty string.
37func (o *IPOpt) String() string {
38 if *o.IP == nil {
39 return ""
40 }
41 return o.IP.String()
42}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts.go
deleted file mode 100644
index b244f5a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts.go
+++ /dev/null
@@ -1,252 +0,0 @@
1package opts
2
3import (
4 "fmt"
5 "net"
6 "os"
7 "regexp"
8 "strings"
9)
10
11var (
12 alphaRegexp = regexp.MustCompile(`[a-zA-Z]`)
13 domainRegexp = regexp.MustCompile(`^(:?(:?[a-zA-Z0-9]|(:?[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]))(:?\.(:?[a-zA-Z0-9]|(:?[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])))*)\.?\s*$`)
14)
15
16// ListOpts holds a list of values and a validation function.
17type ListOpts struct {
18 values *[]string
19 validator ValidatorFctType
20}
21
22// NewListOpts creates a new ListOpts with the specified validator.
23func NewListOpts(validator ValidatorFctType) ListOpts {
24 var values []string
25 return *NewListOptsRef(&values, validator)
26}
27
28// NewListOptsRef creates a new ListOpts with the specified values and validator.
29func NewListOptsRef(values *[]string, validator ValidatorFctType) *ListOpts {
30 return &ListOpts{
31 values: values,
32 validator: validator,
33 }
34}
35
36func (opts *ListOpts) String() string {
37 return fmt.Sprintf("%v", []string((*opts.values)))
38}
39
40// Set validates if needed the input value and add it to the
41// internal slice.
42func (opts *ListOpts) Set(value string) error {
43 if opts.validator != nil {
44 v, err := opts.validator(value)
45 if err != nil {
46 return err
47 }
48 value = v
49 }
50 (*opts.values) = append((*opts.values), value)
51 return nil
52}
53
54// Delete removes the specified element from the slice.
55func (opts *ListOpts) Delete(key string) {
56 for i, k := range *opts.values {
57 if k == key {
58 (*opts.values) = append((*opts.values)[:i], (*opts.values)[i+1:]...)
59 return
60 }
61 }
62}
63
64// GetMap returns the content of values in a map in order to avoid
65// duplicates.
66func (opts *ListOpts) GetMap() map[string]struct{} {
67 ret := make(map[string]struct{})
68 for _, k := range *opts.values {
69 ret[k] = struct{}{}
70 }
71 return ret
72}
73
74// GetAll returns the values of slice.
75func (opts *ListOpts) GetAll() []string {
76 return (*opts.values)
77}
78
79// GetAllOrEmpty returns the values of the slice
80// or an empty slice when there are no values.
81func (opts *ListOpts) GetAllOrEmpty() []string {
82 v := *opts.values
83 if v == nil {
84 return make([]string, 0)
85 }
86 return v
87}
88
89// Get checks the existence of the specified key.
90func (opts *ListOpts) Get(key string) bool {
91 for _, k := range *opts.values {
92 if k == key {
93 return true
94 }
95 }
96 return false
97}
98
99// Len returns the amount of element in the slice.
100func (opts *ListOpts) Len() int {
101 return len((*opts.values))
102}
103
104//MapOpts holds a map of values and a validation function.
105type MapOpts struct {
106 values map[string]string
107 validator ValidatorFctType
108}
109
110// Set validates if needed the input value and add it to the
111// internal map, by splitting on '='.
112func (opts *MapOpts) Set(value string) error {
113 if opts.validator != nil {
114 v, err := opts.validator(value)
115 if err != nil {
116 return err
117 }
118 value = v
119 }
120 vals := strings.SplitN(value, "=", 2)
121 if len(vals) == 1 {
122 (opts.values)[vals[0]] = ""
123 } else {
124 (opts.values)[vals[0]] = vals[1]
125 }
126 return nil
127}
128
129// GetAll returns the values of MapOpts as a map.
130func (opts *MapOpts) GetAll() map[string]string {
131 return opts.values
132}
133
134func (opts *MapOpts) String() string {
135 return fmt.Sprintf("%v", map[string]string((opts.values)))
136}
137
138// NewMapOpts creates a new MapOpts with the specified map of values and a validator.
139func NewMapOpts(values map[string]string, validator ValidatorFctType) *MapOpts {
140 if values == nil {
141 values = make(map[string]string)
142 }
143 return &MapOpts{
144 values: values,
145 validator: validator,
146 }
147}
148
149// ValidatorFctType defines a validator function that returns a validated string and/or an error.
150type ValidatorFctType func(val string) (string, error)
151
152// ValidatorFctListType defines a validator function that returns a validated list of string and/or an error
153type ValidatorFctListType func(val string) ([]string, error)
154
155// ValidateAttach validates that the specified string is a valid attach option.
156func ValidateAttach(val string) (string, error) {
157 s := strings.ToLower(val)
158 for _, str := range []string{"stdin", "stdout", "stderr"} {
159 if s == str {
160 return s, nil
161 }
162 }
163 return val, fmt.Errorf("valid streams are STDIN, STDOUT and STDERR")
164}
165
166// ValidateEnv validates an environment variable and returns it.
167// If no value is specified, it returns the current value using os.Getenv.
168//
169// As on ParseEnvFile and related to #16585, environment variable names
170// are not validate what so ever, it's up to application inside docker
171// to validate them or not.
172func ValidateEnv(val string) (string, error) {
173 arr := strings.Split(val, "=")
174 if len(arr) > 1 {
175 return val, nil
176 }
177 if !doesEnvExist(val) {
178 return val, nil
179 }
180 return fmt.Sprintf("%s=%s", val, os.Getenv(val)), nil
181}
182
183// ValidateIPAddress validates an Ip address.
184func ValidateIPAddress(val string) (string, error) {
185 var ip = net.ParseIP(strings.TrimSpace(val))
186 if ip != nil {
187 return ip.String(), nil
188 }
189 return "", fmt.Errorf("%s is not an ip address", val)
190}
191
192// ValidateMACAddress validates a MAC address.
193func ValidateMACAddress(val string) (string, error) {
194 _, err := net.ParseMAC(strings.TrimSpace(val))
195 if err != nil {
196 return "", err
197 }
198 return val, nil
199}
200
201// ValidateDNSSearch validates domain for resolvconf search configuration.
202// A zero length domain is represented by a dot (.).
203func ValidateDNSSearch(val string) (string, error) {
204 if val = strings.Trim(val, " "); val == "." {
205 return val, nil
206 }
207 return validateDomain(val)
208}
209
210func validateDomain(val string) (string, error) {
211 if alphaRegexp.FindString(val) == "" {
212 return "", fmt.Errorf("%s is not a valid domain", val)
213 }
214 ns := domainRegexp.FindSubmatch([]byte(val))
215 if len(ns) > 0 && len(ns[1]) < 255 {
216 return string(ns[1]), nil
217 }
218 return "", fmt.Errorf("%s is not a valid domain", val)
219}
220
221// ValidateExtraHost validates that the specified string is a valid extrahost and returns it.
222// ExtraHost are in the form of name:ip where the ip has to be a valid ip (ipv4 or ipv6).
223func ValidateExtraHost(val string) (string, error) {
224 // allow for IPv6 addresses in extra hosts by only splitting on first ":"
225 arr := strings.SplitN(val, ":", 2)
226 if len(arr) != 2 || len(arr[0]) == 0 {
227 return "", fmt.Errorf("bad format for add-host: %q", val)
228 }
229 if _, err := ValidateIPAddress(arr[1]); err != nil {
230 return "", fmt.Errorf("invalid IP address in add-host: %q", arr[1])
231 }
232 return val, nil
233}
234
235// ValidateLabel validates that the specified string is a valid label, and returns it.
236// Labels are in the form on key=value.
237func ValidateLabel(val string) (string, error) {
238 if strings.Count(val, "=") < 1 {
239 return "", fmt.Errorf("bad attribute format: %s", val)
240 }
241 return val, nil
242}
243
244func doesEnvExist(name string) bool {
245 for _, entry := range os.Environ() {
246 parts := strings.SplitN(entry, "=", 2)
247 if parts[0] == name {
248 return true
249 }
250 }
251 return false
252}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts_unix.go
deleted file mode 100644
index f1ce844..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts_unix.go
+++ /dev/null
@@ -1,6 +0,0 @@
1// +build !windows
2
3package opts
4
5// DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. docker daemon -H tcp://:8080
6const DefaultHTTPHost = "localhost"
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts_windows.go
deleted file mode 100644
index 2a9e2be..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts_windows.go
+++ /dev/null
@@ -1,56 +0,0 @@
1package opts
2
3// TODO Windows. Identify bug in GOLang 1.5.1 and/or Windows Server 2016 TP4.
4// @jhowardmsft, @swernli.
5//
6// On Windows, this mitigates a problem with the default options of running
7// a docker client against a local docker daemon on TP4.
8//
9// What was found that if the default host is "localhost", even if the client
10// (and daemon as this is local) is not physically on a network, and the DNS
11// cache is flushed (ipconfig /flushdns), then the client will pause for
12// exactly one second when connecting to the daemon for calls. For example
13// using docker run windowsservercore cmd, the CLI will send a create followed
14// by an attach. You see the delay between the attach finishing and the attach
15// being seen by the daemon.
16//
17// Here's some daemon debug logs with additional debug spew put in. The
18// AfterWriteJSON log is the very last thing the daemon does as part of the
19// create call. The POST /attach is the second CLI call. Notice the second
20// time gap.
21//
22// time="2015-11-06T13:38:37.259627400-08:00" level=debug msg="After createRootfs"
23// time="2015-11-06T13:38:37.263626300-08:00" level=debug msg="After setHostConfig"
24// time="2015-11-06T13:38:37.267631200-08:00" level=debug msg="before createContainerPl...."
25// time="2015-11-06T13:38:37.271629500-08:00" level=debug msg=ToDiskLocking....
26// time="2015-11-06T13:38:37.275643200-08:00" level=debug msg="loggin event...."
27// time="2015-11-06T13:38:37.277627600-08:00" level=debug msg="logged event...."
28// time="2015-11-06T13:38:37.279631800-08:00" level=debug msg="In defer func"
29// time="2015-11-06T13:38:37.282628100-08:00" level=debug msg="After daemon.create"
30// time="2015-11-06T13:38:37.286651700-08:00" level=debug msg="return 2"
31// time="2015-11-06T13:38:37.289629500-08:00" level=debug msg="Returned from daemon.ContainerCreate"
32// time="2015-11-06T13:38:37.311629100-08:00" level=debug msg="After WriteJSON"
33// ... 1 second gap here....
34// time="2015-11-06T13:38:38.317866200-08:00" level=debug msg="Calling POST /v1.22/containers/984758282b842f779e805664b2c95d563adc9a979c8a3973e68c807843ee4757/attach"
35// time="2015-11-06T13:38:38.326882500-08:00" level=info msg="POST /v1.22/containers/984758282b842f779e805664b2c95d563adc9a979c8a3973e68c807843ee4757/attach?stderr=1&stdin=1&stdout=1&stream=1"
36//
37// We suspect this is either a bug introduced in GOLang 1.5.1, or that a change
38// in GOLang 1.5.1 (from 1.4.3) is exposing a bug in Windows TP4. In theory,
39// the Windows networking stack is supposed to resolve "localhost" internally,
40// without hitting DNS, or even reading the hosts file (which is why localhost
41// is commented out in the hosts file on Windows).
42//
43// We have validated that working around this using the actual IPv4 localhost
44// address does not cause the delay.
45//
46// This does not occur with the docker client built with 1.4.3 on the same
47// Windows TP4 build, regardless of whether the daemon is built using 1.5.1
48// or 1.4.3. It does not occur on Linux. We also verified we see the same thing
49// on a cross-compiled Windows binary (from Linux).
50//
51// Final note: This is a mitigation, not a 'real' fix. It is still susceptible
52// to the delay in TP4 if a user were to do 'docker run -H=tcp://localhost:2375...'
53// explicitly.
54
55// DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. docker daemon -H tcp://:8080
56const DefaultHTTPHost = "127.0.0.1"
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/README.md b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/README.md
deleted file mode 100644
index 7307d96..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/README.md
+++ /dev/null
@@ -1 +0,0 @@
1This code provides helper functions for dealing with archive files.
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive.go
deleted file mode 100644
index ce84347..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive.go
+++ /dev/null
@@ -1,1049 +0,0 @@
1package archive
2
3import (
4 "archive/tar"
5 "bufio"
6 "bytes"
7 "compress/bzip2"
8 "compress/gzip"
9 "errors"
10 "fmt"
11 "io"
12 "io/ioutil"
13 "os"
14 "os/exec"
15 "path/filepath"
16 "runtime"
17 "strings"
18 "syscall"
19
20 "github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus"
21 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils"
22 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools"
23 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils"
24 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/pools"
25 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/promise"
26 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
27)
28
29type (
30 // Archive is a type of io.ReadCloser which has two interfaces Read and Closer.
31 Archive io.ReadCloser
32 // Reader is a type of io.Reader.
33 Reader io.Reader
34 // Compression is the state represents if compressed or not.
35 Compression int
36 // TarChownOptions wraps the chown options UID and GID.
37 TarChownOptions struct {
38 UID, GID int
39 }
40 // TarOptions wraps the tar options.
41 TarOptions struct {
42 IncludeFiles []string
43 ExcludePatterns []string
44 Compression Compression
45 NoLchown bool
46 UIDMaps []idtools.IDMap
47 GIDMaps []idtools.IDMap
48 ChownOpts *TarChownOptions
49 IncludeSourceDir bool
50 // When unpacking, specifies whether overwriting a directory with a
51 // non-directory is allowed and vice versa.
52 NoOverwriteDirNonDir bool
53 // For each include when creating an archive, the included name will be
54 // replaced with the matching name from this map.
55 RebaseNames map[string]string
56 }
57
58 // Archiver allows the reuse of most utility functions of this package
59 // with a pluggable Untar function. Also, to facilitate the passing of
60 // specific id mappings for untar, an archiver can be created with maps
61 // which will then be passed to Untar operations
62 Archiver struct {
63 Untar func(io.Reader, string, *TarOptions) error
64 UIDMaps []idtools.IDMap
65 GIDMaps []idtools.IDMap
66 }
67
68 // breakoutError is used to differentiate errors related to breaking out
69 // When testing archive breakout in the unit tests, this error is expected
70 // in order for the test to pass.
71 breakoutError error
72)
73
74var (
75 // ErrNotImplemented is the error message of function not implemented.
76 ErrNotImplemented = errors.New("Function not implemented")
77 defaultArchiver = &Archiver{Untar: Untar, UIDMaps: nil, GIDMaps: nil}
78)
79
80const (
81 // HeaderSize is the size in bytes of a tar header
82 HeaderSize = 512
83)
84
85const (
86 // Uncompressed represents the uncompressed.
87 Uncompressed Compression = iota
88 // Bzip2 is bzip2 compression algorithm.
89 Bzip2
90 // Gzip is gzip compression algorithm.
91 Gzip
92 // Xz is xz compression algorithm.
93 Xz
94)
95
96// IsArchive checks for the magic bytes of a tar or any supported compression
97// algorithm.
98func IsArchive(header []byte) bool {
99 compression := DetectCompression(header)
100 if compression != Uncompressed {
101 return true
102 }
103 r := tar.NewReader(bytes.NewBuffer(header))
104 _, err := r.Next()
105 return err == nil
106}
107
108// IsArchivePath checks if the (possibly compressed) file at the given path
109// starts with a tar file header.
110func IsArchivePath(path string) bool {
111 file, err := os.Open(path)
112 if err != nil {
113 return false
114 }
115 defer file.Close()
116 rdr, err := DecompressStream(file)
117 if err != nil {
118 return false
119 }
120 r := tar.NewReader(rdr)
121 _, err = r.Next()
122 return err == nil
123}
124
125// DetectCompression detects the compression algorithm of the source.
126func DetectCompression(source []byte) Compression {
127 for compression, m := range map[Compression][]byte{
128 Bzip2: {0x42, 0x5A, 0x68},
129 Gzip: {0x1F, 0x8B, 0x08},
130 Xz: {0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00},
131 } {
132 if len(source) < len(m) {
133 logrus.Debugf("Len too short")
134 continue
135 }
136 if bytes.Compare(m, source[:len(m)]) == 0 {
137 return compression
138 }
139 }
140 return Uncompressed
141}
142
143func xzDecompress(archive io.Reader) (io.ReadCloser, <-chan struct{}, error) {
144 args := []string{"xz", "-d", "-c", "-q"}
145
146 return cmdStream(exec.Command(args[0], args[1:]...), archive)
147}
148
149// DecompressStream decompress the archive and returns a ReaderCloser with the decompressed archive.
150func DecompressStream(archive io.Reader) (io.ReadCloser, error) {
151 p := pools.BufioReader32KPool
152 buf := p.Get(archive)
153 bs, err := buf.Peek(10)
154 if err != nil && err != io.EOF {
155 // Note: we'll ignore any io.EOF error because there are some odd
156 // cases where the layer.tar file will be empty (zero bytes) and
157 // that results in an io.EOF from the Peek() call. So, in those
158 // cases we'll just treat it as a non-compressed stream and
159 // that means just create an empty layer.
160 // See Issue 18170
161 return nil, err
162 }
163
164 compression := DetectCompression(bs)
165 switch compression {
166 case Uncompressed:
167 readBufWrapper := p.NewReadCloserWrapper(buf, buf)
168 return readBufWrapper, nil
169 case Gzip:
170 gzReader, err := gzip.NewReader(buf)
171 if err != nil {
172 return nil, err
173 }
174 readBufWrapper := p.NewReadCloserWrapper(buf, gzReader)
175 return readBufWrapper, nil
176 case Bzip2:
177 bz2Reader := bzip2.NewReader(buf)
178 readBufWrapper := p.NewReadCloserWrapper(buf, bz2Reader)
179 return readBufWrapper, nil
180 case Xz:
181 xzReader, chdone, err := xzDecompress(buf)
182 if err != nil {
183 return nil, err
184 }
185 readBufWrapper := p.NewReadCloserWrapper(buf, xzReader)
186 return ioutils.NewReadCloserWrapper(readBufWrapper, func() error {
187 <-chdone
188 return readBufWrapper.Close()
189 }), nil
190 default:
191 return nil, fmt.Errorf("Unsupported compression format %s", (&compression).Extension())
192 }
193}
194
195// CompressStream compresses the dest with specified compression algorithm.
196func CompressStream(dest io.WriteCloser, compression Compression) (io.WriteCloser, error) {
197 p := pools.BufioWriter32KPool
198 buf := p.Get(dest)
199 switch compression {
200 case Uncompressed:
201 writeBufWrapper := p.NewWriteCloserWrapper(buf, buf)
202 return writeBufWrapper, nil
203 case Gzip:
204 gzWriter := gzip.NewWriter(dest)
205 writeBufWrapper := p.NewWriteCloserWrapper(buf, gzWriter)
206 return writeBufWrapper, nil
207 case Bzip2, Xz:
208 // archive/bzip2 does not support writing, and there is no xz support at all
209 // However, this is not a problem as docker only currently generates gzipped tars
210 return nil, fmt.Errorf("Unsupported compression format %s", (&compression).Extension())
211 default:
212 return nil, fmt.Errorf("Unsupported compression format %s", (&compression).Extension())
213 }
214}
215
216// Extension returns the extension of a file that uses the specified compression algorithm.
217func (compression *Compression) Extension() string {
218 switch *compression {
219 case Uncompressed:
220 return "tar"
221 case Bzip2:
222 return "tar.bz2"
223 case Gzip:
224 return "tar.gz"
225 case Xz:
226 return "tar.xz"
227 }
228 return ""
229}
230
231type tarAppender struct {
232 TarWriter *tar.Writer
233 Buffer *bufio.Writer
234
235 // for hardlink mapping
236 SeenFiles map[uint64]string
237 UIDMaps []idtools.IDMap
238 GIDMaps []idtools.IDMap
239}
240
241// canonicalTarName provides a platform-independent and consistent posix-style
242//path for files and directories to be archived regardless of the platform.
243func canonicalTarName(name string, isDir bool) (string, error) {
244 name, err := CanonicalTarNameForPath(name)
245 if err != nil {
246 return "", err
247 }
248
249 // suffix with '/' for directories
250 if isDir && !strings.HasSuffix(name, "/") {
251 name += "/"
252 }
253 return name, nil
254}
255
256func (ta *tarAppender) addTarFile(path, name string) error {
257 fi, err := os.Lstat(path)
258 if err != nil {
259 return err
260 }
261
262 link := ""
263 if fi.Mode()&os.ModeSymlink != 0 {
264 if link, err = os.Readlink(path); err != nil {
265 return err
266 }
267 }
268
269 hdr, err := tar.FileInfoHeader(fi, link)
270 if err != nil {
271 return err
272 }
273 hdr.Mode = int64(chmodTarEntry(os.FileMode(hdr.Mode)))
274
275 name, err = canonicalTarName(name, fi.IsDir())
276 if err != nil {
277 return fmt.Errorf("tar: cannot canonicalize path: %v", err)
278 }
279 hdr.Name = name
280
281 inode, err := setHeaderForSpecialDevice(hdr, ta, name, fi.Sys())
282 if err != nil {
283 return err
284 }
285
286 // if it's not a directory and has more than 1 link,
287 // it's hardlinked, so set the type flag accordingly
288 if !fi.IsDir() && hasHardlinks(fi) {
289 // a link should have a name that it links too
290 // and that linked name should be first in the tar archive
291 if oldpath, ok := ta.SeenFiles[inode]; ok {
292 hdr.Typeflag = tar.TypeLink
293 hdr.Linkname = oldpath
294 hdr.Size = 0 // This Must be here for the writer math to add up!
295 } else {
296 ta.SeenFiles[inode] = name
297 }
298 }
299
300 capability, _ := system.Lgetxattr(path, "security.capability")
301 if capability != nil {
302 hdr.Xattrs = make(map[string]string)
303 hdr.Xattrs["security.capability"] = string(capability)
304 }
305
306 //handle re-mapping container ID mappings back to host ID mappings before
307 //writing tar headers/files. We skip whiteout files because they were written
308 //by the kernel and already have proper ownership relative to the host
309 if !strings.HasPrefix(filepath.Base(hdr.Name), WhiteoutPrefix) && (ta.UIDMaps != nil || ta.GIDMaps != nil) {
310 uid, gid, err := getFileUIDGID(fi.Sys())
311 if err != nil {
312 return err
313 }
314 xUID, err := idtools.ToContainer(uid, ta.UIDMaps)
315 if err != nil {
316 return err
317 }
318 xGID, err := idtools.ToContainer(gid, ta.GIDMaps)
319 if err != nil {
320 return err
321 }
322 hdr.Uid = xUID
323 hdr.Gid = xGID
324 }
325
326 if err := ta.TarWriter.WriteHeader(hdr); err != nil {
327 return err
328 }
329
330 if hdr.Typeflag == tar.TypeReg {
331 file, err := os.Open(path)
332 if err != nil {
333 return err
334 }
335
336 ta.Buffer.Reset(ta.TarWriter)
337 defer ta.Buffer.Reset(nil)
338 _, err = io.Copy(ta.Buffer, file)
339 file.Close()
340 if err != nil {
341 return err
342 }
343 err = ta.Buffer.Flush()
344 if err != nil {
345 return err
346 }
347 }
348
349 return nil
350}
351
352func createTarFile(path, extractDir string, hdr *tar.Header, reader io.Reader, Lchown bool, chownOpts *TarChownOptions) error {
353 // hdr.Mode is in linux format, which we can use for sycalls,
354 // but for os.Foo() calls we need the mode converted to os.FileMode,
355 // so use hdrInfo.Mode() (they differ for e.g. setuid bits)
356 hdrInfo := hdr.FileInfo()
357
358 switch hdr.Typeflag {
359 case tar.TypeDir:
360 // Create directory unless it exists as a directory already.
361 // In that case we just want to merge the two
362 if fi, err := os.Lstat(path); !(err == nil && fi.IsDir()) {
363 if err := os.Mkdir(path, hdrInfo.Mode()); err != nil {
364 return err
365 }
366 }
367
368 case tar.TypeReg, tar.TypeRegA:
369 // Source is regular file
370 file, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY, hdrInfo.Mode())
371 if err != nil {
372 return err
373 }
374 if _, err := io.Copy(file, reader); err != nil {
375 file.Close()
376 return err
377 }
378 file.Close()
379
380 case tar.TypeBlock, tar.TypeChar, tar.TypeFifo:
381 // Handle this is an OS-specific way
382 if err := handleTarTypeBlockCharFifo(hdr, path); err != nil {
383 return err
384 }
385
386 case tar.TypeLink:
387 targetPath := filepath.Join(extractDir, hdr.Linkname)
388 // check for hardlink breakout
389 if !strings.HasPrefix(targetPath, extractDir) {
390 return breakoutError(fmt.Errorf("invalid hardlink %q -> %q", targetPath, hdr.Linkname))
391 }
392 if err := os.Link(targetPath, path); err != nil {
393 return err
394 }
395
396 case tar.TypeSymlink:
397 // path -> hdr.Linkname = targetPath
398 // e.g. /extractDir/path/to/symlink -> ../2/file = /extractDir/path/2/file
399 targetPath := filepath.Join(filepath.Dir(path), hdr.Linkname)
400
401 // the reason we don't need to check symlinks in the path (with FollowSymlinkInScope) is because
402 // that symlink would first have to be created, which would be caught earlier, at this very check:
403 if !strings.HasPrefix(targetPath, extractDir) {
404 return breakoutError(fmt.Errorf("invalid symlink %q -> %q", path, hdr.Linkname))
405 }
406 if err := os.Symlink(hdr.Linkname, path); err != nil {
407 return err
408 }
409
410 case tar.TypeXGlobalHeader:
411 logrus.Debugf("PAX Global Extended Headers found and ignored")
412 return nil
413
414 default:
415 return fmt.Errorf("Unhandled tar header type %d\n", hdr.Typeflag)
416 }
417
418 // Lchown is not supported on Windows.
419 if Lchown && runtime.GOOS != "windows" {
420 if chownOpts == nil {
421 chownOpts = &TarChownOptions{UID: hdr.Uid, GID: hdr.Gid}
422 }
423 if err := os.Lchown(path, chownOpts.UID, chownOpts.GID); err != nil {
424 return err
425 }
426 }
427
428 for key, value := range hdr.Xattrs {
429 if err := system.Lsetxattr(path, key, []byte(value), 0); err != nil {
430 return err
431 }
432 }
433
434 // There is no LChmod, so ignore mode for symlink. Also, this
435 // must happen after chown, as that can modify the file mode
436 if err := handleLChmod(hdr, path, hdrInfo); err != nil {
437 return err
438 }
439
440 aTime := hdr.AccessTime
441 if aTime.Before(hdr.ModTime) {
442 // Last access time should never be before last modified time.
443 aTime = hdr.ModTime
444 }
445
446 // system.Chtimes doesn't support a NOFOLLOW flag atm
447 if hdr.Typeflag == tar.TypeLink {
448 if fi, err := os.Lstat(hdr.Linkname); err == nil && (fi.Mode()&os.ModeSymlink == 0) {
449 if err := system.Chtimes(path, aTime, hdr.ModTime); err != nil {
450 return err
451 }
452 }
453 } else if hdr.Typeflag != tar.TypeSymlink {
454 if err := system.Chtimes(path, aTime, hdr.ModTime); err != nil {
455 return err
456 }
457 } else {
458 ts := []syscall.Timespec{timeToTimespec(aTime), timeToTimespec(hdr.ModTime)}
459 if err := system.LUtimesNano(path, ts); err != nil && err != system.ErrNotSupportedPlatform {
460 return err
461 }
462 }
463 return nil
464}
465
466// Tar creates an archive from the directory at `path`, and returns it as a
467// stream of bytes.
468func Tar(path string, compression Compression) (io.ReadCloser, error) {
469 return TarWithOptions(path, &TarOptions{Compression: compression})
470}
471
472// TarWithOptions creates an archive from the directory at `path`, only including files whose relative
473// paths are included in `options.IncludeFiles` (if non-nil) or not in `options.ExcludePatterns`.
474func TarWithOptions(srcPath string, options *TarOptions) (io.ReadCloser, error) {
475
476 // Fix the source path to work with long path names. This is a no-op
477 // on platforms other than Windows.
478 srcPath = fixVolumePathPrefix(srcPath)
479
480 patterns, patDirs, exceptions, err := fileutils.CleanPatterns(options.ExcludePatterns)
481
482 if err != nil {
483 return nil, err
484 }
485
486 pipeReader, pipeWriter := io.Pipe()
487
488 compressWriter, err := CompressStream(pipeWriter, options.Compression)
489 if err != nil {
490 return nil, err
491 }
492
493 go func() {
494 ta := &tarAppender{
495 TarWriter: tar.NewWriter(compressWriter),
496 Buffer: pools.BufioWriter32KPool.Get(nil),
497 SeenFiles: make(map[uint64]string),
498 UIDMaps: options.UIDMaps,
499 GIDMaps: options.GIDMaps,
500 }
501
502 defer func() {
503 // Make sure to check the error on Close.
504 if err := ta.TarWriter.Close(); err != nil {
505 logrus.Debugf("Can't close tar writer: %s", err)
506 }
507 if err := compressWriter.Close(); err != nil {
508 logrus.Debugf("Can't close compress writer: %s", err)
509 }
510 if err := pipeWriter.Close(); err != nil {
511 logrus.Debugf("Can't close pipe writer: %s", err)
512 }
513 }()
514
515 // this buffer is needed for the duration of this piped stream
516 defer pools.BufioWriter32KPool.Put(ta.Buffer)
517
518 // In general we log errors here but ignore them because
519 // during e.g. a diff operation the container can continue
520 // mutating the filesystem and we can see transient errors
521 // from this
522
523 stat, err := os.Lstat(srcPath)
524 if err != nil {
525 return
526 }
527
528 if !stat.IsDir() {
529 // We can't later join a non-dir with any includes because the
530 // 'walk' will error if "file/." is stat-ed and "file" is not a
531 // directory. So, we must split the source path and use the
532 // basename as the include.
533 if len(options.IncludeFiles) > 0 {
534 logrus.Warn("Tar: Can't archive a file with includes")
535 }
536
537 dir, base := SplitPathDirEntry(srcPath)
538 srcPath = dir
539 options.IncludeFiles = []string{base}
540 }
541
542 if len(options.IncludeFiles) == 0 {
543 options.IncludeFiles = []string{"."}
544 }
545
546 seen := make(map[string]bool)
547
548 for _, include := range options.IncludeFiles {
549 rebaseName := options.RebaseNames[include]
550
551 walkRoot := getWalkRoot(srcPath, include)
552 filepath.Walk(walkRoot, func(filePath string, f os.FileInfo, err error) error {
553 if err != nil {
554 logrus.Debugf("Tar: Can't stat file %s to tar: %s", srcPath, err)
555 return nil
556 }
557
558 relFilePath, err := filepath.Rel(srcPath, filePath)
559 if err != nil || (!options.IncludeSourceDir && relFilePath == "." && f.IsDir()) {
560 // Error getting relative path OR we are looking
561 // at the source directory path. Skip in both situations.
562 return nil
563 }
564
565 if options.IncludeSourceDir && include == "." && relFilePath != "." {
566 relFilePath = strings.Join([]string{".", relFilePath}, string(filepath.Separator))
567 }
568
569 skip := false
570
571 // If "include" is an exact match for the current file
572 // then even if there's an "excludePatterns" pattern that
573 // matches it, don't skip it. IOW, assume an explicit 'include'
574 // is asking for that file no matter what - which is true
575 // for some files, like .dockerignore and Dockerfile (sometimes)
576 if include != relFilePath {
577 skip, err = fileutils.OptimizedMatches(relFilePath, patterns, patDirs)
578 if err != nil {
579 logrus.Debugf("Error matching %s: %v", relFilePath, err)
580 return err
581 }
582 }
583
584 if skip {
585 if !exceptions && f.IsDir() {
586 return filepath.SkipDir
587 }
588 return nil
589 }
590
591 if seen[relFilePath] {
592 return nil
593 }
594 seen[relFilePath] = true
595
596 // Rename the base resource.
597 if rebaseName != "" {
598 var replacement string
599 if rebaseName != string(filepath.Separator) {
600 // Special case the root directory to replace with an
601 // empty string instead so that we don't end up with
602 // double slashes in the paths.
603 replacement = rebaseName
604 }
605
606 relFilePath = strings.Replace(relFilePath, include, replacement, 1)
607 }
608
609 if err := ta.addTarFile(filePath, relFilePath); err != nil {
610 logrus.Debugf("Can't add file %s to tar: %s", filePath, err)
611 }
612 return nil
613 })
614 }
615 }()
616
617 return pipeReader, nil
618}
619
620// Unpack unpacks the decompressedArchive to dest with options.
621func Unpack(decompressedArchive io.Reader, dest string, options *TarOptions) error {
622 tr := tar.NewReader(decompressedArchive)
623 trBuf := pools.BufioReader32KPool.Get(nil)
624 defer pools.BufioReader32KPool.Put(trBuf)
625
626 var dirs []*tar.Header
627 remappedRootUID, remappedRootGID, err := idtools.GetRootUIDGID(options.UIDMaps, options.GIDMaps)
628 if err != nil {
629 return err
630 }
631
632 // Iterate through the files in the archive.
633loop:
634 for {
635 hdr, err := tr.Next()
636 if err == io.EOF {
637 // end of tar archive
638 break
639 }
640 if err != nil {
641 return err
642 }
643
644 // Normalize name, for safety and for a simple is-root check
645 // This keeps "../" as-is, but normalizes "/../" to "/". Or Windows:
646 // This keeps "..\" as-is, but normalizes "\..\" to "\".
647 hdr.Name = filepath.Clean(hdr.Name)
648
649 for _, exclude := range options.ExcludePatterns {
650 if strings.HasPrefix(hdr.Name, exclude) {
651 continue loop
652 }
653 }
654
655 // After calling filepath.Clean(hdr.Name) above, hdr.Name will now be in
656 // the filepath format for the OS on which the daemon is running. Hence
657 // the check for a slash-suffix MUST be done in an OS-agnostic way.
658 if !strings.HasSuffix(hdr.Name, string(os.PathSeparator)) {
659 // Not the root directory, ensure that the parent directory exists
660 parent := filepath.Dir(hdr.Name)
661 parentPath := filepath.Join(dest, parent)
662 if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
663 err = system.MkdirAll(parentPath, 0777)
664 if err != nil {
665 return err
666 }
667 }
668 }
669
670 path := filepath.Join(dest, hdr.Name)
671 rel, err := filepath.Rel(dest, path)
672 if err != nil {
673 return err
674 }
675 if strings.HasPrefix(rel, ".."+string(os.PathSeparator)) {
676 return breakoutError(fmt.Errorf("%q is outside of %q", hdr.Name, dest))
677 }
678
679 // If path exits we almost always just want to remove and replace it
680 // The only exception is when it is a directory *and* the file from
681 // the layer is also a directory. Then we want to merge them (i.e.
682 // just apply the metadata from the layer).
683 if fi, err := os.Lstat(path); err == nil {
684 if options.NoOverwriteDirNonDir && fi.IsDir() && hdr.Typeflag != tar.TypeDir {
685 // If NoOverwriteDirNonDir is true then we cannot replace
686 // an existing directory with a non-directory from the archive.
687 return fmt.Errorf("cannot overwrite directory %q with non-directory %q", path, dest)
688 }
689
690 if options.NoOverwriteDirNonDir && !fi.IsDir() && hdr.Typeflag == tar.TypeDir {
691 // If NoOverwriteDirNonDir is true then we cannot replace
692 // an existing non-directory with a directory from the archive.
693 return fmt.Errorf("cannot overwrite non-directory %q with directory %q", path, dest)
694 }
695
696 if fi.IsDir() && hdr.Name == "." {
697 continue
698 }
699
700 if !(fi.IsDir() && hdr.Typeflag == tar.TypeDir) {
701 if err := os.RemoveAll(path); err != nil {
702 return err
703 }
704 }
705 }
706 trBuf.Reset(tr)
707
708 // if the options contain a uid & gid maps, convert header uid/gid
709 // entries using the maps such that lchown sets the proper mapped
710 // uid/gid after writing the file. We only perform this mapping if
711 // the file isn't already owned by the remapped root UID or GID, as
712 // that specific uid/gid has no mapping from container -> host, and
713 // those files already have the proper ownership for inside the
714 // container.
715 if hdr.Uid != remappedRootUID {
716 xUID, err := idtools.ToHost(hdr.Uid, options.UIDMaps)
717 if err != nil {
718 return err
719 }
720 hdr.Uid = xUID
721 }
722 if hdr.Gid != remappedRootGID {
723 xGID, err := idtools.ToHost(hdr.Gid, options.GIDMaps)
724 if err != nil {
725 return err
726 }
727 hdr.Gid = xGID
728 }
729
730 if err := createTarFile(path, dest, hdr, trBuf, !options.NoLchown, options.ChownOpts); err != nil {
731 return err
732 }
733
734 // Directory mtimes must be handled at the end to avoid further
735 // file creation in them to modify the directory mtime
736 if hdr.Typeflag == tar.TypeDir {
737 dirs = append(dirs, hdr)
738 }
739 }
740
741 for _, hdr := range dirs {
742 path := filepath.Join(dest, hdr.Name)
743
744 if err := system.Chtimes(path, hdr.AccessTime, hdr.ModTime); err != nil {
745 return err
746 }
747 }
748 return nil
749}
750
751// Untar reads a stream of bytes from `archive`, parses it as a tar archive,
752// and unpacks it into the directory at `dest`.
753// The archive may be compressed with one of the following algorithms:
754// identity (uncompressed), gzip, bzip2, xz.
755// FIXME: specify behavior when target path exists vs. doesn't exist.
756func Untar(tarArchive io.Reader, dest string, options *TarOptions) error {
757 return untarHandler(tarArchive, dest, options, true)
758}
759
760// UntarUncompressed reads a stream of bytes from `archive`, parses it as a tar archive,
761// and unpacks it into the directory at `dest`.
762// The archive must be an uncompressed stream.
763func UntarUncompressed(tarArchive io.Reader, dest string, options *TarOptions) error {
764 return untarHandler(tarArchive, dest, options, false)
765}
766
767// Handler for teasing out the automatic decompression
768func untarHandler(tarArchive io.Reader, dest string, options *TarOptions, decompress bool) error {
769 if tarArchive == nil {
770 return fmt.Errorf("Empty archive")
771 }
772 dest = filepath.Clean(dest)
773 if options == nil {
774 options = &TarOptions{}
775 }
776 if options.ExcludePatterns == nil {
777 options.ExcludePatterns = []string{}
778 }
779
780 r := tarArchive
781 if decompress {
782 decompressedArchive, err := DecompressStream(tarArchive)
783 if err != nil {
784 return err
785 }
786 defer decompressedArchive.Close()
787 r = decompressedArchive
788 }
789
790 return Unpack(r, dest, options)
791}
792
793// TarUntar is a convenience function which calls Tar and Untar, with the output of one piped into the other.
794// If either Tar or Untar fails, TarUntar aborts and returns the error.
795func (archiver *Archiver) TarUntar(src, dst string) error {
796 logrus.Debugf("TarUntar(%s %s)", src, dst)
797 archive, err := TarWithOptions(src, &TarOptions{Compression: Uncompressed})
798 if err != nil {
799 return err
800 }
801 defer archive.Close()
802
803 var options *TarOptions
804 if archiver.UIDMaps != nil || archiver.GIDMaps != nil {
805 options = &TarOptions{
806 UIDMaps: archiver.UIDMaps,
807 GIDMaps: archiver.GIDMaps,
808 }
809 }
810 return archiver.Untar(archive, dst, options)
811}
812
813// TarUntar is a convenience function which calls Tar and Untar, with the output of one piped into the other.
814// If either Tar or Untar fails, TarUntar aborts and returns the error.
815func TarUntar(src, dst string) error {
816 return defaultArchiver.TarUntar(src, dst)
817}
818
819// UntarPath untar a file from path to a destination, src is the source tar file path.
820func (archiver *Archiver) UntarPath(src, dst string) error {
821 archive, err := os.Open(src)
822 if err != nil {
823 return err
824 }
825 defer archive.Close()
826 var options *TarOptions
827 if archiver.UIDMaps != nil || archiver.GIDMaps != nil {
828 options = &TarOptions{
829 UIDMaps: archiver.UIDMaps,
830 GIDMaps: archiver.GIDMaps,
831 }
832 }
833 return archiver.Untar(archive, dst, options)
834}
835
836// UntarPath is a convenience function which looks for an archive
837// at filesystem path `src`, and unpacks it at `dst`.
838func UntarPath(src, dst string) error {
839 return defaultArchiver.UntarPath(src, dst)
840}
841
842// CopyWithTar creates a tar archive of filesystem path `src`, and
843// unpacks it at filesystem path `dst`.
844// The archive is streamed directly with fixed buffering and no
845// intermediary disk IO.
846func (archiver *Archiver) CopyWithTar(src, dst string) error {
847 srcSt, err := os.Stat(src)
848 if err != nil {
849 return err
850 }
851 if !srcSt.IsDir() {
852 return archiver.CopyFileWithTar(src, dst)
853 }
854 // Create dst, copy src's content into it
855 logrus.Debugf("Creating dest directory: %s", dst)
856 if err := system.MkdirAll(dst, 0755); err != nil {
857 return err
858 }
859 logrus.Debugf("Calling TarUntar(%s, %s)", src, dst)
860 return archiver.TarUntar(src, dst)
861}
862
863// CopyWithTar creates a tar archive of filesystem path `src`, and
864// unpacks it at filesystem path `dst`.
865// The archive is streamed directly with fixed buffering and no
866// intermediary disk IO.
867func CopyWithTar(src, dst string) error {
868 return defaultArchiver.CopyWithTar(src, dst)
869}
870
871// CopyFileWithTar emulates the behavior of the 'cp' command-line
872// for a single file. It copies a regular file from path `src` to
873// path `dst`, and preserves all its metadata.
874func (archiver *Archiver) CopyFileWithTar(src, dst string) (err error) {
875 logrus.Debugf("CopyFileWithTar(%s, %s)", src, dst)
876 srcSt, err := os.Stat(src)
877 if err != nil {
878 return err
879 }
880
881 if srcSt.IsDir() {
882 return fmt.Errorf("Can't copy a directory")
883 }
884
885 // Clean up the trailing slash. This must be done in an operating
886 // system specific manner.
887 if dst[len(dst)-1] == os.PathSeparator {
888 dst = filepath.Join(dst, filepath.Base(src))
889 }
890 // Create the holding directory if necessary
891 if err := system.MkdirAll(filepath.Dir(dst), 0700); err != nil {
892 return err
893 }
894
895 r, w := io.Pipe()
896 errC := promise.Go(func() error {
897 defer w.Close()
898
899 srcF, err := os.Open(src)
900 if err != nil {
901 return err
902 }
903 defer srcF.Close()
904
905 hdr, err := tar.FileInfoHeader(srcSt, "")
906 if err != nil {
907 return err
908 }
909 hdr.Name = filepath.Base(dst)
910 hdr.Mode = int64(chmodTarEntry(os.FileMode(hdr.Mode)))
911
912 remappedRootUID, remappedRootGID, err := idtools.GetRootUIDGID(archiver.UIDMaps, archiver.GIDMaps)
913 if err != nil {
914 return err
915 }
916
917 // only perform mapping if the file being copied isn't already owned by the
918 // uid or gid of the remapped root in the container
919 if remappedRootUID != hdr.Uid {
920 xUID, err := idtools.ToHost(hdr.Uid, archiver.UIDMaps)
921 if err != nil {
922 return err
923 }
924 hdr.Uid = xUID
925 }
926 if remappedRootGID != hdr.Gid {
927 xGID, err := idtools.ToHost(hdr.Gid, archiver.GIDMaps)
928 if err != nil {
929 return err
930 }
931 hdr.Gid = xGID
932 }
933
934 tw := tar.NewWriter(w)
935 defer tw.Close()
936 if err := tw.WriteHeader(hdr); err != nil {
937 return err
938 }
939 if _, err := io.Copy(tw, srcF); err != nil {
940 return err
941 }
942 return nil
943 })
944 defer func() {
945 if er := <-errC; err != nil {
946 err = er
947 }
948 }()
949
950 err = archiver.Untar(r, filepath.Dir(dst), nil)
951 if err != nil {
952 r.CloseWithError(err)
953 }
954 return err
955}
956
957// CopyFileWithTar emulates the behavior of the 'cp' command-line
958// for a single file. It copies a regular file from path `src` to
959// path `dst`, and preserves all its metadata.
960//
961// Destination handling is in an operating specific manner depending
962// where the daemon is running. If `dst` ends with a trailing slash
963// the final destination path will be `dst/base(src)` (Linux) or
964// `dst\base(src)` (Windows).
965func CopyFileWithTar(src, dst string) (err error) {
966 return defaultArchiver.CopyFileWithTar(src, dst)
967}
968
969// cmdStream executes a command, and returns its stdout as a stream.
970// If the command fails to run or doesn't complete successfully, an error
971// will be returned, including anything written on stderr.
972func cmdStream(cmd *exec.Cmd, input io.Reader) (io.ReadCloser, <-chan struct{}, error) {
973 chdone := make(chan struct{})
974 cmd.Stdin = input
975 pipeR, pipeW := io.Pipe()
976 cmd.Stdout = pipeW
977 var errBuf bytes.Buffer
978 cmd.Stderr = &errBuf
979
980 // Run the command and return the pipe
981 if err := cmd.Start(); err != nil {
982 return nil, nil, err
983 }
984
985 // Copy stdout to the returned pipe
986 go func() {
987 if err := cmd.Wait(); err != nil {
988 pipeW.CloseWithError(fmt.Errorf("%s: %s", err, errBuf.String()))
989 } else {
990 pipeW.Close()
991 }
992 close(chdone)
993 }()
994
995 return pipeR, chdone, nil
996}
997
998// NewTempArchive reads the content of src into a temporary file, and returns the contents
999// of that file as an archive. The archive can only be read once - as soon as reading completes,
1000// the file will be deleted.
1001func NewTempArchive(src Archive, dir string) (*TempArchive, error) {
1002 f, err := ioutil.TempFile(dir, "")
1003 if err != nil {
1004 return nil, err
1005 }
1006 if _, err := io.Copy(f, src); err != nil {
1007 return nil, err
1008 }
1009 if _, err := f.Seek(0, 0); err != nil {
1010 return nil, err
1011 }
1012 st, err := f.Stat()
1013 if err != nil {
1014 return nil, err
1015 }
1016 size := st.Size()
1017 return &TempArchive{File: f, Size: size}, nil
1018}
1019
1020// TempArchive is a temporary archive. The archive can only be read once - as soon as reading completes,
1021// the file will be deleted.
1022type TempArchive struct {
1023 *os.File
1024 Size int64 // Pre-computed from Stat().Size() as a convenience
1025 read int64
1026 closed bool
1027}
1028
1029// Close closes the underlying file if it's still open, or does a no-op
1030// to allow callers to try to close the TempArchive multiple times safely.
1031func (archive *TempArchive) Close() error {
1032 if archive.closed {
1033 return nil
1034 }
1035
1036 archive.closed = true
1037
1038 return archive.File.Close()
1039}
1040
1041func (archive *TempArchive) Read(data []byte) (int, error) {
1042 n, err := archive.File.Read(data)
1043 archive.read += int64(n)
1044 if err != nil || archive.read == archive.Size {
1045 archive.Close()
1046 os.Remove(archive.File.Name())
1047 }
1048 return n, err
1049}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive_unix.go
deleted file mode 100644
index 86c6888..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive_unix.go
+++ /dev/null
@@ -1,112 +0,0 @@
1// +build !windows
2
3package archive
4
5import (
6 "archive/tar"
7 "errors"
8 "os"
9 "path/filepath"
10 "syscall"
11
12 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
13)
14
15// fixVolumePathPrefix does platform specific processing to ensure that if
16// the path being passed in is not in a volume path format, convert it to one.
17func fixVolumePathPrefix(srcPath string) string {
18 return srcPath
19}
20
21// getWalkRoot calculates the root path when performing a TarWithOptions.
22// We use a separate function as this is platform specific. On Linux, we
23// can't use filepath.Join(srcPath,include) because this will clean away
24// a trailing "." or "/" which may be important.
25func getWalkRoot(srcPath string, include string) string {
26 return srcPath + string(filepath.Separator) + include
27}
28
29// CanonicalTarNameForPath returns platform-specific filepath
30// to canonical posix-style path for tar archival. p is relative
31// path.
32func CanonicalTarNameForPath(p string) (string, error) {
33 return p, nil // already unix-style
34}
35
36// chmodTarEntry is used to adjust the file permissions used in tar header based
37// on the platform the archival is done.
38
39func chmodTarEntry(perm os.FileMode) os.FileMode {
40 return perm // noop for unix as golang APIs provide perm bits correctly
41}
42
43func setHeaderForSpecialDevice(hdr *tar.Header, ta *tarAppender, name string, stat interface{}) (inode uint64, err error) {
44 s, ok := stat.(*syscall.Stat_t)
45
46 if !ok {
47 err = errors.New("cannot convert stat value to syscall.Stat_t")
48 return
49 }
50
51 inode = uint64(s.Ino)
52
53 // Currently go does not fill in the major/minors
54 if s.Mode&syscall.S_IFBLK != 0 ||
55 s.Mode&syscall.S_IFCHR != 0 {
56 hdr.Devmajor = int64(major(uint64(s.Rdev)))
57 hdr.Devminor = int64(minor(uint64(s.Rdev)))
58 }
59
60 return
61}
62
63func getFileUIDGID(stat interface{}) (int, int, error) {
64 s, ok := stat.(*syscall.Stat_t)
65
66 if !ok {
67 return -1, -1, errors.New("cannot convert stat value to syscall.Stat_t")
68 }
69 return int(s.Uid), int(s.Gid), nil
70}
71
72func major(device uint64) uint64 {
73 return (device >> 8) & 0xfff
74}
75
76func minor(device uint64) uint64 {
77 return (device & 0xff) | ((device >> 12) & 0xfff00)
78}
79
80// handleTarTypeBlockCharFifo is an OS-specific helper function used by
81// createTarFile to handle the following types of header: Block; Char; Fifo
82func handleTarTypeBlockCharFifo(hdr *tar.Header, path string) error {
83 mode := uint32(hdr.Mode & 07777)
84 switch hdr.Typeflag {
85 case tar.TypeBlock:
86 mode |= syscall.S_IFBLK
87 case tar.TypeChar:
88 mode |= syscall.S_IFCHR
89 case tar.TypeFifo:
90 mode |= syscall.S_IFIFO
91 }
92
93 if err := system.Mknod(path, mode, int(system.Mkdev(hdr.Devmajor, hdr.Devminor))); err != nil {
94 return err
95 }
96 return nil
97}
98
99func handleLChmod(hdr *tar.Header, path string, hdrInfo os.FileInfo) error {
100 if hdr.Typeflag == tar.TypeLink {
101 if fi, err := os.Lstat(hdr.Linkname); err == nil && (fi.Mode()&os.ModeSymlink == 0) {
102 if err := os.Chmod(path, hdrInfo.Mode()); err != nil {
103 return err
104 }
105 }
106 } else if hdr.Typeflag != tar.TypeSymlink {
107 if err := os.Chmod(path, hdrInfo.Mode()); err != nil {
108 return err
109 }
110 }
111 return nil
112}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive_windows.go
deleted file mode 100644
index 23d60aa..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive_windows.go
+++ /dev/null
@@ -1,70 +0,0 @@
1// +build windows
2
3package archive
4
5import (
6 "archive/tar"
7 "fmt"
8 "os"
9 "path/filepath"
10 "strings"
11
12 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/longpath"
13)
14
15// fixVolumePathPrefix does platform specific processing to ensure that if
16// the path being passed in is not in a volume path format, convert it to one.
17func fixVolumePathPrefix(srcPath string) string {
18 return longpath.AddPrefix(srcPath)
19}
20
21// getWalkRoot calculates the root path when performing a TarWithOptions.
22// We use a separate function as this is platform specific.
23func getWalkRoot(srcPath string, include string) string {
24 return filepath.Join(srcPath, include)
25}
26
27// CanonicalTarNameForPath returns platform-specific filepath
28// to canonical posix-style path for tar archival. p is relative
29// path.
30func CanonicalTarNameForPath(p string) (string, error) {
31 // windows: convert windows style relative path with backslashes
32 // into forward slashes. Since windows does not allow '/' or '\'
33 // in file names, it is mostly safe to replace however we must
34 // check just in case
35 if strings.Contains(p, "/") {
36 return "", fmt.Errorf("Windows path contains forward slash: %s", p)
37 }
38 return strings.Replace(p, string(os.PathSeparator), "/", -1), nil
39
40}
41
42// chmodTarEntry is used to adjust the file permissions used in tar header based
43// on the platform the archival is done.
44func chmodTarEntry(perm os.FileMode) os.FileMode {
45 perm &= 0755
46 // Add the x bit: make everything +x from windows
47 perm |= 0111
48
49 return perm
50}
51
52func setHeaderForSpecialDevice(hdr *tar.Header, ta *tarAppender, name string, stat interface{}) (inode uint64, err error) {
53 // do nothing. no notion of Rdev, Inode, Nlink in stat on Windows
54 return
55}
56
57// handleTarTypeBlockCharFifo is an OS-specific helper function used by
58// createTarFile to handle the following types of header: Block; Char; Fifo
59func handleTarTypeBlockCharFifo(hdr *tar.Header, path string) error {
60 return nil
61}
62
63func handleLChmod(hdr *tar.Header, path string, hdrInfo os.FileInfo) error {
64 return nil
65}
66
67func getFileUIDGID(stat interface{}) (int, int, error) {
68 // no notion of file ownership mapping yet on Windows
69 return 0, 0, nil
70}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes.go
deleted file mode 100644
index a2a1dc3..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes.go
+++ /dev/null
@@ -1,416 +0,0 @@
1package archive
2
3import (
4 "archive/tar"
5 "bytes"
6 "fmt"
7 "io"
8 "io/ioutil"
9 "os"
10 "path/filepath"
11 "sort"
12 "strings"
13 "syscall"
14 "time"
15
16 "github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus"
17 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools"
18 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/pools"
19 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
20)
21
22// ChangeType represents the change type.
23type ChangeType int
24
25const (
26 // ChangeModify represents the modify operation.
27 ChangeModify = iota
28 // ChangeAdd represents the add operation.
29 ChangeAdd
30 // ChangeDelete represents the delete operation.
31 ChangeDelete
32)
33
34func (c ChangeType) String() string {
35 switch c {
36 case ChangeModify:
37 return "C"
38 case ChangeAdd:
39 return "A"
40 case ChangeDelete:
41 return "D"
42 }
43 return ""
44}
45
46// Change represents a change, it wraps the change type and path.
47// It describes changes of the files in the path respect to the
48// parent layers. The change could be modify, add, delete.
49// This is used for layer diff.
50type Change struct {
51 Path string
52 Kind ChangeType
53}
54
55func (change *Change) String() string {
56 return fmt.Sprintf("%s %s", change.Kind, change.Path)
57}
58
59// for sort.Sort
60type changesByPath []Change
61
62func (c changesByPath) Less(i, j int) bool { return c[i].Path < c[j].Path }
63func (c changesByPath) Len() int { return len(c) }
64func (c changesByPath) Swap(i, j int) { c[j], c[i] = c[i], c[j] }
65
66// Gnu tar and the go tar writer don't have sub-second mtime
67// precision, which is problematic when we apply changes via tar
68// files, we handle this by comparing for exact times, *or* same
69// second count and either a or b having exactly 0 nanoseconds
70func sameFsTime(a, b time.Time) bool {
71 return a == b ||
72 (a.Unix() == b.Unix() &&
73 (a.Nanosecond() == 0 || b.Nanosecond() == 0))
74}
75
76func sameFsTimeSpec(a, b syscall.Timespec) bool {
77 return a.Sec == b.Sec &&
78 (a.Nsec == b.Nsec || a.Nsec == 0 || b.Nsec == 0)
79}
80
81// Changes walks the path rw and determines changes for the files in the path,
82// with respect to the parent layers
83func Changes(layers []string, rw string) ([]Change, error) {
84 var (
85 changes []Change
86 changedDirs = make(map[string]struct{})
87 )
88
89 err := filepath.Walk(rw, func(path string, f os.FileInfo, err error) error {
90 if err != nil {
91 return err
92 }
93
94 // Rebase path
95 path, err = filepath.Rel(rw, path)
96 if err != nil {
97 return err
98 }
99
100 // As this runs on the daemon side, file paths are OS specific.
101 path = filepath.Join(string(os.PathSeparator), path)
102
103 // Skip root
104 if path == string(os.PathSeparator) {
105 return nil
106 }
107
108 // Skip AUFS metadata
109 if matched, err := filepath.Match(string(os.PathSeparator)+WhiteoutMetaPrefix+"*", path); err != nil || matched {
110 return err
111 }
112
113 change := Change{
114 Path: path,
115 }
116
117 // Find out what kind of modification happened
118 file := filepath.Base(path)
119 // If there is a whiteout, then the file was removed
120 if strings.HasPrefix(file, WhiteoutPrefix) {
121 originalFile := file[len(WhiteoutPrefix):]
122 change.Path = filepath.Join(filepath.Dir(path), originalFile)
123 change.Kind = ChangeDelete
124 } else {
125 // Otherwise, the file was added
126 change.Kind = ChangeAdd
127
128 // ...Unless it already existed in a top layer, in which case, it's a modification
129 for _, layer := range layers {
130 stat, err := os.Stat(filepath.Join(layer, path))
131 if err != nil && !os.IsNotExist(err) {
132 return err
133 }
134 if err == nil {
135 // The file existed in the top layer, so that's a modification
136
137 // However, if it's a directory, maybe it wasn't actually modified.
138 // If you modify /foo/bar/baz, then /foo will be part of the changed files only because it's the parent of bar
139 if stat.IsDir() && f.IsDir() {
140 if f.Size() == stat.Size() && f.Mode() == stat.Mode() && sameFsTime(f.ModTime(), stat.ModTime()) {
141 // Both directories are the same, don't record the change
142 return nil
143 }
144 }
145 change.Kind = ChangeModify
146 break
147 }
148 }
149 }
150
151 // If /foo/bar/file.txt is modified, then /foo/bar must be part of the changed files.
152 // This block is here to ensure the change is recorded even if the
153 // modify time, mode and size of the parent directory in the rw and ro layers are all equal.
154 // Check https://github.com/docker/docker/pull/13590 for details.
155 if f.IsDir() {
156 changedDirs[path] = struct{}{}
157 }
158 if change.Kind == ChangeAdd || change.Kind == ChangeDelete {
159 parent := filepath.Dir(path)
160 if _, ok := changedDirs[parent]; !ok && parent != "/" {
161 changes = append(changes, Change{Path: parent, Kind: ChangeModify})
162 changedDirs[parent] = struct{}{}
163 }
164 }
165
166 // Record change
167 changes = append(changes, change)
168 return nil
169 })
170 if err != nil && !os.IsNotExist(err) {
171 return nil, err
172 }
173 return changes, nil
174}
175
176// FileInfo describes the information of a file.
177type FileInfo struct {
178 parent *FileInfo
179 name string
180 stat *system.StatT
181 children map[string]*FileInfo
182 capability []byte
183 added bool
184}
185
186// LookUp looks up the file information of a file.
187func (info *FileInfo) LookUp(path string) *FileInfo {
188 // As this runs on the daemon side, file paths are OS specific.
189 parent := info
190 if path == string(os.PathSeparator) {
191 return info
192 }
193
194 pathElements := strings.Split(path, string(os.PathSeparator))
195 for _, elem := range pathElements {
196 if elem != "" {
197 child := parent.children[elem]
198 if child == nil {
199 return nil
200 }
201 parent = child
202 }
203 }
204 return parent
205}
206
207func (info *FileInfo) path() string {
208 if info.parent == nil {
209 // As this runs on the daemon side, file paths are OS specific.
210 return string(os.PathSeparator)
211 }
212 return filepath.Join(info.parent.path(), info.name)
213}
214
215func (info *FileInfo) addChanges(oldInfo *FileInfo, changes *[]Change) {
216
217 sizeAtEntry := len(*changes)
218
219 if oldInfo == nil {
220 // add
221 change := Change{
222 Path: info.path(),
223 Kind: ChangeAdd,
224 }
225 *changes = append(*changes, change)
226 info.added = true
227 }
228
229 // We make a copy so we can modify it to detect additions
230 // also, we only recurse on the old dir if the new info is a directory
231 // otherwise any previous delete/change is considered recursive
232 oldChildren := make(map[string]*FileInfo)
233 if oldInfo != nil && info.isDir() {
234 for k, v := range oldInfo.children {
235 oldChildren[k] = v
236 }
237 }
238
239 for name, newChild := range info.children {
240 oldChild, _ := oldChildren[name]
241 if oldChild != nil {
242 // change?
243 oldStat := oldChild.stat
244 newStat := newChild.stat
245 // Note: We can't compare inode or ctime or blocksize here, because these change
246 // when copying a file into a container. However, that is not generally a problem
247 // because any content change will change mtime, and any status change should
248 // be visible when actually comparing the stat fields. The only time this
249 // breaks down is if some code intentionally hides a change by setting
250 // back mtime
251 if statDifferent(oldStat, newStat) ||
252 bytes.Compare(oldChild.capability, newChild.capability) != 0 {
253 change := Change{
254 Path: newChild.path(),
255 Kind: ChangeModify,
256 }
257 *changes = append(*changes, change)
258 newChild.added = true
259 }
260
261 // Remove from copy so we can detect deletions
262 delete(oldChildren, name)
263 }
264
265 newChild.addChanges(oldChild, changes)
266 }
267 for _, oldChild := range oldChildren {
268 // delete
269 change := Change{
270 Path: oldChild.path(),
271 Kind: ChangeDelete,
272 }
273 *changes = append(*changes, change)
274 }
275
276 // If there were changes inside this directory, we need to add it, even if the directory
277 // itself wasn't changed. This is needed to properly save and restore filesystem permissions.
278 // As this runs on the daemon side, file paths are OS specific.
279 if len(*changes) > sizeAtEntry && info.isDir() && !info.added && info.path() != string(os.PathSeparator) {
280 change := Change{
281 Path: info.path(),
282 Kind: ChangeModify,
283 }
284 // Let's insert the directory entry before the recently added entries located inside this dir
285 *changes = append(*changes, change) // just to resize the slice, will be overwritten
286 copy((*changes)[sizeAtEntry+1:], (*changes)[sizeAtEntry:])
287 (*changes)[sizeAtEntry] = change
288 }
289
290}
291
292// Changes add changes to file information.
293func (info *FileInfo) Changes(oldInfo *FileInfo) []Change {
294 var changes []Change
295
296 info.addChanges(oldInfo, &changes)
297
298 return changes
299}
300
301func newRootFileInfo() *FileInfo {
302 // As this runs on the daemon side, file paths are OS specific.
303 root := &FileInfo{
304 name: string(os.PathSeparator),
305 children: make(map[string]*FileInfo),
306 }
307 return root
308}
309
310// ChangesDirs compares two directories and generates an array of Change objects describing the changes.
311// If oldDir is "", then all files in newDir will be Add-Changes.
312func ChangesDirs(newDir, oldDir string) ([]Change, error) {
313 var (
314 oldRoot, newRoot *FileInfo
315 )
316 if oldDir == "" {
317 emptyDir, err := ioutil.TempDir("", "empty")
318 if err != nil {
319 return nil, err
320 }
321 defer os.Remove(emptyDir)
322 oldDir = emptyDir
323 }
324 oldRoot, newRoot, err := collectFileInfoForChanges(oldDir, newDir)
325 if err != nil {
326 return nil, err
327 }
328
329 return newRoot.Changes(oldRoot), nil
330}
331
332// ChangesSize calculates the size in bytes of the provided changes, based on newDir.
333func ChangesSize(newDir string, changes []Change) int64 {
334 var (
335 size int64
336 sf = make(map[uint64]struct{})
337 )
338 for _, change := range changes {
339 if change.Kind == ChangeModify || change.Kind == ChangeAdd {
340 file := filepath.Join(newDir, change.Path)
341 fileInfo, err := os.Lstat(file)
342 if err != nil {
343 logrus.Errorf("Can not stat %q: %s", file, err)
344 continue
345 }
346
347 if fileInfo != nil && !fileInfo.IsDir() {
348 if hasHardlinks(fileInfo) {
349 inode := getIno(fileInfo)
350 if _, ok := sf[inode]; !ok {
351 size += fileInfo.Size()
352 sf[inode] = struct{}{}
353 }
354 } else {
355 size += fileInfo.Size()
356 }
357 }
358 }
359 }
360 return size
361}
362
363// ExportChanges produces an Archive from the provided changes, relative to dir.
364func ExportChanges(dir string, changes []Change, uidMaps, gidMaps []idtools.IDMap) (Archive, error) {
365 reader, writer := io.Pipe()
366 go func() {
367 ta := &tarAppender{
368 TarWriter: tar.NewWriter(writer),
369 Buffer: pools.BufioWriter32KPool.Get(nil),
370 SeenFiles: make(map[uint64]string),
371 UIDMaps: uidMaps,
372 GIDMaps: gidMaps,
373 }
374 // this buffer is needed for the duration of this piped stream
375 defer pools.BufioWriter32KPool.Put(ta.Buffer)
376
377 sort.Sort(changesByPath(changes))
378
379 // In general we log errors here but ignore them because
380 // during e.g. a diff operation the container can continue
381 // mutating the filesystem and we can see transient errors
382 // from this
383 for _, change := range changes {
384 if change.Kind == ChangeDelete {
385 whiteOutDir := filepath.Dir(change.Path)
386 whiteOutBase := filepath.Base(change.Path)
387 whiteOut := filepath.Join(whiteOutDir, WhiteoutPrefix+whiteOutBase)
388 timestamp := time.Now()
389 hdr := &tar.Header{
390 Name: whiteOut[1:],
391 Size: 0,
392 ModTime: timestamp,
393 AccessTime: timestamp,
394 ChangeTime: timestamp,
395 }
396 if err := ta.TarWriter.WriteHeader(hdr); err != nil {
397 logrus.Debugf("Can't write whiteout header: %s", err)
398 }
399 } else {
400 path := filepath.Join(dir, change.Path)
401 if err := ta.addTarFile(path, change.Path[1:]); err != nil {
402 logrus.Debugf("Can't add file %s to tar: %s", path, err)
403 }
404 }
405 }
406
407 // Make sure to check the error on Close.
408 if err := ta.TarWriter.Close(); err != nil {
409 logrus.Debugf("Can't close layer: %s", err)
410 }
411 if err := writer.Close(); err != nil {
412 logrus.Debugf("failed close Changes writer: %s", err)
413 }
414 }()
415 return reader, nil
416}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_linux.go
deleted file mode 100644
index 378cc09..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_linux.go
+++ /dev/null
@@ -1,285 +0,0 @@
1package archive
2
3import (
4 "bytes"
5 "fmt"
6 "os"
7 "path/filepath"
8 "sort"
9 "syscall"
10 "unsafe"
11
12 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
13)
14
15// walker is used to implement collectFileInfoForChanges on linux. Where this
16// method in general returns the entire contents of two directory trees, we
17// optimize some FS calls out on linux. In particular, we take advantage of the
18// fact that getdents(2) returns the inode of each file in the directory being
19// walked, which, when walking two trees in parallel to generate a list of
20// changes, can be used to prune subtrees without ever having to lstat(2) them
21// directly. Eliminating stat calls in this way can save up to seconds on large
22// images.
23type walker struct {
24 dir1 string
25 dir2 string
26 root1 *FileInfo
27 root2 *FileInfo
28}
29
30// collectFileInfoForChanges returns a complete representation of the trees
31// rooted at dir1 and dir2, with one important exception: any subtree or
32// leaf where the inode and device numbers are an exact match between dir1
33// and dir2 will be pruned from the results. This method is *only* to be used
34// to generating a list of changes between the two directories, as it does not
35// reflect the full contents.
36func collectFileInfoForChanges(dir1, dir2 string) (*FileInfo, *FileInfo, error) {
37 w := &walker{
38 dir1: dir1,
39 dir2: dir2,
40 root1: newRootFileInfo(),
41 root2: newRootFileInfo(),
42 }
43
44 i1, err := os.Lstat(w.dir1)
45 if err != nil {
46 return nil, nil, err
47 }
48 i2, err := os.Lstat(w.dir2)
49 if err != nil {
50 return nil, nil, err
51 }
52
53 if err := w.walk("/", i1, i2); err != nil {
54 return nil, nil, err
55 }
56
57 return w.root1, w.root2, nil
58}
59
60// Given a FileInfo, its path info, and a reference to the root of the tree
61// being constructed, register this file with the tree.
62func walkchunk(path string, fi os.FileInfo, dir string, root *FileInfo) error {
63 if fi == nil {
64 return nil
65 }
66 parent := root.LookUp(filepath.Dir(path))
67 if parent == nil {
68 return fmt.Errorf("collectFileInfoForChanges: Unexpectedly no parent for %s", path)
69 }
70 info := &FileInfo{
71 name: filepath.Base(path),
72 children: make(map[string]*FileInfo),
73 parent: parent,
74 }
75 cpath := filepath.Join(dir, path)
76 stat, err := system.FromStatT(fi.Sys().(*syscall.Stat_t))
77 if err != nil {
78 return err
79 }
80 info.stat = stat
81 info.capability, _ = system.Lgetxattr(cpath, "security.capability") // lgetxattr(2): fs access
82 parent.children[info.name] = info
83 return nil
84}
85
86// Walk a subtree rooted at the same path in both trees being iterated. For
87// example, /docker/overlay/1234/a/b/c/d and /docker/overlay/8888/a/b/c/d
88func (w *walker) walk(path string, i1, i2 os.FileInfo) (err error) {
89 // Register these nodes with the return trees, unless we're still at the
90 // (already-created) roots:
91 if path != "/" {
92 if err := walkchunk(path, i1, w.dir1, w.root1); err != nil {
93 return err
94 }
95 if err := walkchunk(path, i2, w.dir2, w.root2); err != nil {
96 return err
97 }
98 }
99
100 is1Dir := i1 != nil && i1.IsDir()
101 is2Dir := i2 != nil && i2.IsDir()
102
103 sameDevice := false
104 if i1 != nil && i2 != nil {
105 si1 := i1.Sys().(*syscall.Stat_t)
106 si2 := i2.Sys().(*syscall.Stat_t)
107 if si1.Dev == si2.Dev {
108 sameDevice = true
109 }
110 }
111
112 // If these files are both non-existent, or leaves (non-dirs), we are done.
113 if !is1Dir && !is2Dir {
114 return nil
115 }
116
117 // Fetch the names of all the files contained in both directories being walked:
118 var names1, names2 []nameIno
119 if is1Dir {
120 names1, err = readdirnames(filepath.Join(w.dir1, path)) // getdents(2): fs access
121 if err != nil {
122 return err
123 }
124 }
125 if is2Dir {
126 names2, err = readdirnames(filepath.Join(w.dir2, path)) // getdents(2): fs access
127 if err != nil {
128 return err
129 }
130 }
131
132 // We have lists of the files contained in both parallel directories, sorted
133 // in the same order. Walk them in parallel, generating a unique merged list
134 // of all items present in either or both directories.
135 var names []string
136 ix1 := 0
137 ix2 := 0
138
139 for {
140 if ix1 >= len(names1) {
141 break
142 }
143 if ix2 >= len(names2) {
144 break
145 }
146
147 ni1 := names1[ix1]
148 ni2 := names2[ix2]
149
150 switch bytes.Compare([]byte(ni1.name), []byte(ni2.name)) {
151 case -1: // ni1 < ni2 -- advance ni1
152 // we will not encounter ni1 in names2
153 names = append(names, ni1.name)
154 ix1++
155 case 0: // ni1 == ni2
156 if ni1.ino != ni2.ino || !sameDevice {
157 names = append(names, ni1.name)
158 }
159 ix1++
160 ix2++
161 case 1: // ni1 > ni2 -- advance ni2
162 // we will not encounter ni2 in names1
163 names = append(names, ni2.name)
164 ix2++
165 }
166 }
167 for ix1 < len(names1) {
168 names = append(names, names1[ix1].name)
169 ix1++
170 }
171 for ix2 < len(names2) {
172 names = append(names, names2[ix2].name)
173 ix2++
174 }
175
176 // For each of the names present in either or both of the directories being
177 // iterated, stat the name under each root, and recurse the pair of them:
178 for _, name := range names {
179 fname := filepath.Join(path, name)
180 var cInfo1, cInfo2 os.FileInfo
181 if is1Dir {
182 cInfo1, err = os.Lstat(filepath.Join(w.dir1, fname)) // lstat(2): fs access
183 if err != nil && !os.IsNotExist(err) {
184 return err
185 }
186 }
187 if is2Dir {
188 cInfo2, err = os.Lstat(filepath.Join(w.dir2, fname)) // lstat(2): fs access
189 if err != nil && !os.IsNotExist(err) {
190 return err
191 }
192 }
193 if err = w.walk(fname, cInfo1, cInfo2); err != nil {
194 return err
195 }
196 }
197 return nil
198}
199
200// {name,inode} pairs used to support the early-pruning logic of the walker type
201type nameIno struct {
202 name string
203 ino uint64
204}
205
206type nameInoSlice []nameIno
207
208func (s nameInoSlice) Len() int { return len(s) }
209func (s nameInoSlice) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
210func (s nameInoSlice) Less(i, j int) bool { return s[i].name < s[j].name }
211
212// readdirnames is a hacked-apart version of the Go stdlib code, exposing inode
213// numbers further up the stack when reading directory contents. Unlike
214// os.Readdirnames, which returns a list of filenames, this function returns a
215// list of {filename,inode} pairs.
216func readdirnames(dirname string) (names []nameIno, err error) {
217 var (
218 size = 100
219 buf = make([]byte, 4096)
220 nbuf int
221 bufp int
222 nb int
223 )
224
225 f, err := os.Open(dirname)
226 if err != nil {
227 return nil, err
228 }
229 defer f.Close()
230
231 names = make([]nameIno, 0, size) // Empty with room to grow.
232 for {
233 // Refill the buffer if necessary
234 if bufp >= nbuf {
235 bufp = 0
236 nbuf, err = syscall.ReadDirent(int(f.Fd()), buf) // getdents on linux
237 if nbuf < 0 {
238 nbuf = 0
239 }
240 if err != nil {
241 return nil, os.NewSyscallError("readdirent", err)
242 }
243 if nbuf <= 0 {
244 break // EOF
245 }
246 }
247
248 // Drain the buffer
249 nb, names = parseDirent(buf[bufp:nbuf], names)
250 bufp += nb
251 }
252
253 sl := nameInoSlice(names)
254 sort.Sort(sl)
255 return sl, nil
256}
257
258// parseDirent is a minor modification of syscall.ParseDirent (linux version)
259// which returns {name,inode} pairs instead of just names.
260func parseDirent(buf []byte, names []nameIno) (consumed int, newnames []nameIno) {
261 origlen := len(buf)
262 for len(buf) > 0 {
263 dirent := (*syscall.Dirent)(unsafe.Pointer(&buf[0]))
264 buf = buf[dirent.Reclen:]
265 if dirent.Ino == 0 { // File absent in directory.
266 continue
267 }
268 bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
269 var name = string(bytes[0:clen(bytes[:])])
270 if name == "." || name == ".." { // Useless names
271 continue
272 }
273 names = append(names, nameIno{name, dirent.Ino})
274 }
275 return origlen - len(buf), names
276}
277
278func clen(n []byte) int {
279 for i := 0; i < len(n); i++ {
280 if n[i] == 0 {
281 return i
282 }
283 }
284 return len(n)
285}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_other.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_other.go
deleted file mode 100644
index 35832f0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_other.go
+++ /dev/null
@@ -1,97 +0,0 @@
1// +build !linux
2
3package archive
4
5import (
6 "fmt"
7 "os"
8 "path/filepath"
9 "runtime"
10 "strings"
11
12 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
13)
14
15func collectFileInfoForChanges(oldDir, newDir string) (*FileInfo, *FileInfo, error) {
16 var (
17 oldRoot, newRoot *FileInfo
18 err1, err2 error
19 errs = make(chan error, 2)
20 )
21 go func() {
22 oldRoot, err1 = collectFileInfo(oldDir)
23 errs <- err1
24 }()
25 go func() {
26 newRoot, err2 = collectFileInfo(newDir)
27 errs <- err2
28 }()
29
30 // block until both routines have returned
31 for i := 0; i < 2; i++ {
32 if err := <-errs; err != nil {
33 return nil, nil, err
34 }
35 }
36
37 return oldRoot, newRoot, nil
38}
39
40func collectFileInfo(sourceDir string) (*FileInfo, error) {
41 root := newRootFileInfo()
42
43 err := filepath.Walk(sourceDir, func(path string, f os.FileInfo, err error) error {
44 if err != nil {
45 return err
46 }
47
48 // Rebase path
49 relPath, err := filepath.Rel(sourceDir, path)
50 if err != nil {
51 return err
52 }
53
54 // As this runs on the daemon side, file paths are OS specific.
55 relPath = filepath.Join(string(os.PathSeparator), relPath)
56
57 // See https://github.com/golang/go/issues/9168 - bug in filepath.Join.
58 // Temporary workaround. If the returned path starts with two backslashes,
59 // trim it down to a single backslash. Only relevant on Windows.
60 if runtime.GOOS == "windows" {
61 if strings.HasPrefix(relPath, `\\`) {
62 relPath = relPath[1:]
63 }
64 }
65
66 if relPath == string(os.PathSeparator) {
67 return nil
68 }
69
70 parent := root.LookUp(filepath.Dir(relPath))
71 if parent == nil {
72 return fmt.Errorf("collectFileInfo: Unexpectedly no parent for %s", relPath)
73 }
74
75 info := &FileInfo{
76 name: filepath.Base(relPath),
77 children: make(map[string]*FileInfo),
78 parent: parent,
79 }
80
81 s, err := system.Lstat(path)
82 if err != nil {
83 return err
84 }
85 info.stat = s
86
87 info.capability, _ = system.Lgetxattr(path, "security.capability")
88
89 parent.children[info.name] = info
90
91 return nil
92 })
93 if err != nil {
94 return nil, err
95 }
96 return root, nil
97}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_unix.go
deleted file mode 100644
index 6646b4d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_unix.go
+++ /dev/null
@@ -1,36 +0,0 @@
1// +build !windows
2
3package archive
4
5import (
6 "os"
7 "syscall"
8
9 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
10)
11
12func statDifferent(oldStat *system.StatT, newStat *system.StatT) bool {
13 // Don't look at size for dirs, its not a good measure of change
14 if oldStat.Mode() != newStat.Mode() ||
15 oldStat.UID() != newStat.UID() ||
16 oldStat.GID() != newStat.GID() ||
17 oldStat.Rdev() != newStat.Rdev() ||
18 // Don't look at size for dirs, its not a good measure of change
19 (oldStat.Mode()&syscall.S_IFDIR != syscall.S_IFDIR &&
20 (!sameFsTimeSpec(oldStat.Mtim(), newStat.Mtim()) || (oldStat.Size() != newStat.Size()))) {
21 return true
22 }
23 return false
24}
25
26func (info *FileInfo) isDir() bool {
27 return info.parent == nil || info.stat.Mode()&syscall.S_IFDIR != 0
28}
29
30func getIno(fi os.FileInfo) uint64 {
31 return uint64(fi.Sys().(*syscall.Stat_t).Ino)
32}
33
34func hasHardlinks(fi os.FileInfo) bool {
35 return fi.Sys().(*syscall.Stat_t).Nlink > 1
36}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_windows.go
deleted file mode 100644
index 2d8708d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/changes_windows.go
+++ /dev/null
@@ -1,30 +0,0 @@
1package archive
2
3import (
4 "os"
5
6 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
7)
8
9func statDifferent(oldStat *system.StatT, newStat *system.StatT) bool {
10
11 // Don't look at size for dirs, its not a good measure of change
12 if oldStat.ModTime() != newStat.ModTime() ||
13 oldStat.Mode() != newStat.Mode() ||
14 oldStat.Size() != newStat.Size() && !oldStat.IsDir() {
15 return true
16 }
17 return false
18}
19
20func (info *FileInfo) isDir() bool {
21 return info.parent == nil || info.stat.IsDir()
22}
23
24func getIno(fi os.FileInfo) (inode uint64) {
25 return
26}
27
28func hasHardlinks(fi os.FileInfo) bool {
29 return false
30}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy.go
deleted file mode 100644
index e950912..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy.go
+++ /dev/null
@@ -1,458 +0,0 @@
1package archive
2
3import (
4 "archive/tar"
5 "errors"
6 "io"
7 "io/ioutil"
8 "os"
9 "path/filepath"
10 "strings"
11
12 "github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus"
13 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
14)
15
16// Errors used or returned by this file.
17var (
18 ErrNotDirectory = errors.New("not a directory")
19 ErrDirNotExists = errors.New("no such directory")
20 ErrCannotCopyDir = errors.New("cannot copy directory")
21 ErrInvalidCopySource = errors.New("invalid copy source content")
22)
23
24// PreserveTrailingDotOrSeparator returns the given cleaned path (after
25// processing using any utility functions from the path or filepath stdlib
26// packages) and appends a trailing `/.` or `/` if its corresponding original
27// path (from before being processed by utility functions from the path or
28// filepath stdlib packages) ends with a trailing `/.` or `/`. If the cleaned
29// path already ends in a `.` path segment, then another is not added. If the
30// clean path already ends in a path separator, then another is not added.
31func PreserveTrailingDotOrSeparator(cleanedPath, originalPath string) string {
32 // Ensure paths are in platform semantics
33 cleanedPath = normalizePath(cleanedPath)
34 originalPath = normalizePath(originalPath)
35
36 if !specifiesCurrentDir(cleanedPath) && specifiesCurrentDir(originalPath) {
37 if !hasTrailingPathSeparator(cleanedPath) {
38 // Add a separator if it doesn't already end with one (a cleaned
39 // path would only end in a separator if it is the root).
40 cleanedPath += string(filepath.Separator)
41 }
42 cleanedPath += "."
43 }
44
45 if !hasTrailingPathSeparator(cleanedPath) && hasTrailingPathSeparator(originalPath) {
46 cleanedPath += string(filepath.Separator)
47 }
48
49 return cleanedPath
50}
51
52// assertsDirectory returns whether the given path is
53// asserted to be a directory, i.e., the path ends with
54// a trailing '/' or `/.`, assuming a path separator of `/`.
55func assertsDirectory(path string) bool {
56 return hasTrailingPathSeparator(path) || specifiesCurrentDir(path)
57}
58
59// hasTrailingPathSeparator returns whether the given
60// path ends with the system's path separator character.
61func hasTrailingPathSeparator(path string) bool {
62 return len(path) > 0 && os.IsPathSeparator(path[len(path)-1])
63}
64
65// specifiesCurrentDir returns whether the given path specifies
66// a "current directory", i.e., the last path segment is `.`.
67func specifiesCurrentDir(path string) bool {
68 return filepath.Base(path) == "."
69}
70
71// SplitPathDirEntry splits the given path between its directory name and its
72// basename by first cleaning the path but preserves a trailing "." if the
73// original path specified the current directory.
74func SplitPathDirEntry(path string) (dir, base string) {
75 cleanedPath := filepath.Clean(normalizePath(path))
76
77 if specifiesCurrentDir(path) {
78 cleanedPath += string(filepath.Separator) + "."
79 }
80
81 return filepath.Dir(cleanedPath), filepath.Base(cleanedPath)
82}
83
84// TarResource archives the resource described by the given CopyInfo to a Tar
85// archive. A non-nil error is returned if sourcePath does not exist or is
86// asserted to be a directory but exists as another type of file.
87//
88// This function acts as a convenient wrapper around TarWithOptions, which
89// requires a directory as the source path. TarResource accepts either a
90// directory or a file path and correctly sets the Tar options.
91func TarResource(sourceInfo CopyInfo) (content Archive, err error) {
92 return TarResourceRebase(sourceInfo.Path, sourceInfo.RebaseName)
93}
94
95// TarResourceRebase is like TarResource but renames the first path element of
96// items in the resulting tar archive to match the given rebaseName if not "".
97func TarResourceRebase(sourcePath, rebaseName string) (content Archive, err error) {
98 sourcePath = normalizePath(sourcePath)
99 if _, err = os.Lstat(sourcePath); err != nil {
100 // Catches the case where the source does not exist or is not a
101 // directory if asserted to be a directory, as this also causes an
102 // error.
103 return
104 }
105
106 // Separate the source path between it's directory and
107 // the entry in that directory which we are archiving.
108 sourceDir, sourceBase := SplitPathDirEntry(sourcePath)
109
110 filter := []string{sourceBase}
111
112 logrus.Debugf("copying %q from %q", sourceBase, sourceDir)
113
114 return TarWithOptions(sourceDir, &TarOptions{
115 Compression: Uncompressed,
116 IncludeFiles: filter,
117 IncludeSourceDir: true,
118 RebaseNames: map[string]string{
119 sourceBase: rebaseName,
120 },
121 })
122}
123
124// CopyInfo holds basic info about the source
125// or destination path of a copy operation.
126type CopyInfo struct {
127 Path string
128 Exists bool
129 IsDir bool
130 RebaseName string
131}
132
133// CopyInfoSourcePath stats the given path to create a CopyInfo
134// struct representing that resource for the source of an archive copy
135// operation. The given path should be an absolute local path. A source path
136// has all symlinks evaluated that appear before the last path separator ("/"
137// on Unix). As it is to be a copy source, the path must exist.
138func CopyInfoSourcePath(path string, followLink bool) (CopyInfo, error) {
139 // normalize the file path and then evaluate the symbol link
140 // we will use the target file instead of the symbol link if
141 // followLink is set
142 path = normalizePath(path)
143
144 resolvedPath, rebaseName, err := ResolveHostSourcePath(path, followLink)
145 if err != nil {
146 return CopyInfo{}, err
147 }
148
149 stat, err := os.Lstat(resolvedPath)
150 if err != nil {
151 return CopyInfo{}, err
152 }
153
154 return CopyInfo{
155 Path: resolvedPath,
156 Exists: true,
157 IsDir: stat.IsDir(),
158 RebaseName: rebaseName,
159 }, nil
160}
161
162// CopyInfoDestinationPath stats the given path to create a CopyInfo
163// struct representing that resource for the destination of an archive copy
164// operation. The given path should be an absolute local path.
165func CopyInfoDestinationPath(path string) (info CopyInfo, err error) {
166 maxSymlinkIter := 10 // filepath.EvalSymlinks uses 255, but 10 already seems like a lot.
167 path = normalizePath(path)
168 originalPath := path
169
170 stat, err := os.Lstat(path)
171
172 if err == nil && stat.Mode()&os.ModeSymlink == 0 {
173 // The path exists and is not a symlink.
174 return CopyInfo{
175 Path: path,
176 Exists: true,
177 IsDir: stat.IsDir(),
178 }, nil
179 }
180
181 // While the path is a symlink.
182 for n := 0; err == nil && stat.Mode()&os.ModeSymlink != 0; n++ {
183 if n > maxSymlinkIter {
184 // Don't follow symlinks more than this arbitrary number of times.
185 return CopyInfo{}, errors.New("too many symlinks in " + originalPath)
186 }
187
188 // The path is a symbolic link. We need to evaluate it so that the
189 // destination of the copy operation is the link target and not the
190 // link itself. This is notably different than CopyInfoSourcePath which
191 // only evaluates symlinks before the last appearing path separator.
192 // Also note that it is okay if the last path element is a broken
193 // symlink as the copy operation should create the target.
194 var linkTarget string
195
196 linkTarget, err = os.Readlink(path)
197 if err != nil {
198 return CopyInfo{}, err
199 }
200
201 if !system.IsAbs(linkTarget) {
202 // Join with the parent directory.
203 dstParent, _ := SplitPathDirEntry(path)
204 linkTarget = filepath.Join(dstParent, linkTarget)
205 }
206
207 path = linkTarget
208 stat, err = os.Lstat(path)
209 }
210
211 if err != nil {
212 // It's okay if the destination path doesn't exist. We can still
213 // continue the copy operation if the parent directory exists.
214 if !os.IsNotExist(err) {
215 return CopyInfo{}, err
216 }
217
218 // Ensure destination parent dir exists.
219 dstParent, _ := SplitPathDirEntry(path)
220
221 parentDirStat, err := os.Lstat(dstParent)
222 if err != nil {
223 return CopyInfo{}, err
224 }
225 if !parentDirStat.IsDir() {
226 return CopyInfo{}, ErrNotDirectory
227 }
228
229 return CopyInfo{Path: path}, nil
230 }
231
232 // The path exists after resolving symlinks.
233 return CopyInfo{
234 Path: path,
235 Exists: true,
236 IsDir: stat.IsDir(),
237 }, nil
238}
239
240// PrepareArchiveCopy prepares the given srcContent archive, which should
241// contain the archived resource described by srcInfo, to the destination
242// described by dstInfo. Returns the possibly modified content archive along
243// with the path to the destination directory which it should be extracted to.
244func PrepareArchiveCopy(srcContent Reader, srcInfo, dstInfo CopyInfo) (dstDir string, content Archive, err error) {
245 // Ensure in platform semantics
246 srcInfo.Path = normalizePath(srcInfo.Path)
247 dstInfo.Path = normalizePath(dstInfo.Path)
248
249 // Separate the destination path between its directory and base
250 // components in case the source archive contents need to be rebased.
251 dstDir, dstBase := SplitPathDirEntry(dstInfo.Path)
252 _, srcBase := SplitPathDirEntry(srcInfo.Path)
253
254 switch {
255 case dstInfo.Exists && dstInfo.IsDir:
256 // The destination exists as a directory. No alteration
257 // to srcContent is needed as its contents can be
258 // simply extracted to the destination directory.
259 return dstInfo.Path, ioutil.NopCloser(srcContent), nil
260 case dstInfo.Exists && srcInfo.IsDir:
261 // The destination exists as some type of file and the source
262 // content is a directory. This is an error condition since
263 // you cannot copy a directory to an existing file location.
264 return "", nil, ErrCannotCopyDir
265 case dstInfo.Exists:
266 // The destination exists as some type of file and the source content
267 // is also a file. The source content entry will have to be renamed to
268 // have a basename which matches the destination path's basename.
269 if len(srcInfo.RebaseName) != 0 {
270 srcBase = srcInfo.RebaseName
271 }
272 return dstDir, RebaseArchiveEntries(srcContent, srcBase, dstBase), nil
273 case srcInfo.IsDir:
274 // The destination does not exist and the source content is an archive
275 // of a directory. The archive should be extracted to the parent of
276 // the destination path instead, and when it is, the directory that is
277 // created as a result should take the name of the destination path.
278 // The source content entries will have to be renamed to have a
279 // basename which matches the destination path's basename.
280 if len(srcInfo.RebaseName) != 0 {
281 srcBase = srcInfo.RebaseName
282 }
283 return dstDir, RebaseArchiveEntries(srcContent, srcBase, dstBase), nil
284 case assertsDirectory(dstInfo.Path):
285 // The destination does not exist and is asserted to be created as a
286 // directory, but the source content is not a directory. This is an
287 // error condition since you cannot create a directory from a file
288 // source.
289 return "", nil, ErrDirNotExists
290 default:
291 // The last remaining case is when the destination does not exist, is
292 // not asserted to be a directory, and the source content is not an
293 // archive of a directory. It this case, the destination file will need
294 // to be created when the archive is extracted and the source content
295 // entry will have to be renamed to have a basename which matches the
296 // destination path's basename.
297 if len(srcInfo.RebaseName) != 0 {
298 srcBase = srcInfo.RebaseName
299 }
300 return dstDir, RebaseArchiveEntries(srcContent, srcBase, dstBase), nil
301 }
302
303}
304
305// RebaseArchiveEntries rewrites the given srcContent archive replacing
306// an occurrence of oldBase with newBase at the beginning of entry names.
307func RebaseArchiveEntries(srcContent Reader, oldBase, newBase string) Archive {
308 if oldBase == string(os.PathSeparator) {
309 // If oldBase specifies the root directory, use an empty string as
310 // oldBase instead so that newBase doesn't replace the path separator
311 // that all paths will start with.
312 oldBase = ""
313 }
314
315 rebased, w := io.Pipe()
316
317 go func() {
318 srcTar := tar.NewReader(srcContent)
319 rebasedTar := tar.NewWriter(w)
320
321 for {
322 hdr, err := srcTar.Next()
323 if err == io.EOF {
324 // Signals end of archive.
325 rebasedTar.Close()
326 w.Close()
327 return
328 }
329 if err != nil {
330 w.CloseWithError(err)
331 return
332 }
333
334 hdr.Name = strings.Replace(hdr.Name, oldBase, newBase, 1)
335
336 if err = rebasedTar.WriteHeader(hdr); err != nil {
337 w.CloseWithError(err)
338 return
339 }
340
341 if _, err = io.Copy(rebasedTar, srcTar); err != nil {
342 w.CloseWithError(err)
343 return
344 }
345 }
346 }()
347
348 return rebased
349}
350
351// CopyResource performs an archive copy from the given source path to the
352// given destination path. The source path MUST exist and the destination
353// path's parent directory must exist.
354func CopyResource(srcPath, dstPath string, followLink bool) error {
355 var (
356 srcInfo CopyInfo
357 err error
358 )
359
360 // Ensure in platform semantics
361 srcPath = normalizePath(srcPath)
362 dstPath = normalizePath(dstPath)
363
364 // Clean the source and destination paths.
365 srcPath = PreserveTrailingDotOrSeparator(filepath.Clean(srcPath), srcPath)
366 dstPath = PreserveTrailingDotOrSeparator(filepath.Clean(dstPath), dstPath)
367
368 if srcInfo, err = CopyInfoSourcePath(srcPath, followLink); err != nil {
369 return err
370 }
371
372 content, err := TarResource(srcInfo)
373 if err != nil {
374 return err
375 }
376 defer content.Close()
377
378 return CopyTo(content, srcInfo, dstPath)
379}
380
381// CopyTo handles extracting the given content whose
382// entries should be sourced from srcInfo to dstPath.
383func CopyTo(content Reader, srcInfo CopyInfo, dstPath string) error {
384 // The destination path need not exist, but CopyInfoDestinationPath will
385 // ensure that at least the parent directory exists.
386 dstInfo, err := CopyInfoDestinationPath(normalizePath(dstPath))
387 if err != nil {
388 return err
389 }
390
391 dstDir, copyArchive, err := PrepareArchiveCopy(content, srcInfo, dstInfo)
392 if err != nil {
393 return err
394 }
395 defer copyArchive.Close()
396
397 options := &TarOptions{
398 NoLchown: true,
399 NoOverwriteDirNonDir: true,
400 }
401
402 return Untar(copyArchive, dstDir, options)
403}
404
405// ResolveHostSourcePath decides real path need to be copied with parameters such as
406// whether to follow symbol link or not, if followLink is true, resolvedPath will return
407// link target of any symbol link file, else it will only resolve symlink of directory
408// but return symbol link file itself without resolving.
409func ResolveHostSourcePath(path string, followLink bool) (resolvedPath, rebaseName string, err error) {
410 if followLink {
411 resolvedPath, err = filepath.EvalSymlinks(path)
412 if err != nil {
413 return
414 }
415
416 resolvedPath, rebaseName = GetRebaseName(path, resolvedPath)
417 } else {
418 dirPath, basePath := filepath.Split(path)
419
420 // if not follow symbol link, then resolve symbol link of parent dir
421 var resolvedDirPath string
422 resolvedDirPath, err = filepath.EvalSymlinks(dirPath)
423 if err != nil {
424 return
425 }
426 // resolvedDirPath will have been cleaned (no trailing path separators) so
427 // we can manually join it with the base path element.
428 resolvedPath = resolvedDirPath + string(filepath.Separator) + basePath
429 if hasTrailingPathSeparator(path) && filepath.Base(path) != filepath.Base(resolvedPath) {
430 rebaseName = filepath.Base(path)
431 }
432 }
433 return resolvedPath, rebaseName, nil
434}
435
436// GetRebaseName normalizes and compares path and resolvedPath,
437// return completed resolved path and rebased file name
438func GetRebaseName(path, resolvedPath string) (string, string) {
439 // linkTarget will have been cleaned (no trailing path separators and dot) so
440 // we can manually join it with them
441 var rebaseName string
442 if specifiesCurrentDir(path) && !specifiesCurrentDir(resolvedPath) {
443 resolvedPath += string(filepath.Separator) + "."
444 }
445
446 if hasTrailingPathSeparator(path) && !hasTrailingPathSeparator(resolvedPath) {
447 resolvedPath += string(filepath.Separator)
448 }
449
450 if filepath.Base(path) != filepath.Base(resolvedPath) {
451 // In the case where the path had a trailing separator and a symlink
452 // evaluation has changed the last path component, we will need to
453 // rebase the name in the archive that is being copied to match the
454 // originally requested name.
455 rebaseName = filepath.Base(path)
456 }
457 return resolvedPath, rebaseName
458}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_unix.go
deleted file mode 100644
index e305b5e..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_unix.go
+++ /dev/null
@@ -1,11 +0,0 @@
1// +build !windows
2
3package archive
4
5import (
6 "path/filepath"
7)
8
9func normalizePath(path string) string {
10 return filepath.ToSlash(path)
11}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_windows.go
deleted file mode 100644
index 2b775b4..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_windows.go
+++ /dev/null
@@ -1,9 +0,0 @@
1package archive
2
3import (
4 "path/filepath"
5)
6
7func normalizePath(path string) string {
8 return filepath.FromSlash(path)
9}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/diff.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/diff.go
deleted file mode 100644
index 887dd54..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/diff.go
+++ /dev/null
@@ -1,279 +0,0 @@
1package archive
2
3import (
4 "archive/tar"
5 "fmt"
6 "io"
7 "io/ioutil"
8 "os"
9 "path/filepath"
10 "runtime"
11 "strings"
12
13 "github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus"
14 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools"
15 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/pools"
16 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
17)
18
19// UnpackLayer unpack `layer` to a `dest`. The stream `layer` can be
20// compressed or uncompressed.
21// Returns the size in bytes of the contents of the layer.
22func UnpackLayer(dest string, layer Reader, options *TarOptions) (size int64, err error) {
23 tr := tar.NewReader(layer)
24 trBuf := pools.BufioReader32KPool.Get(tr)
25 defer pools.BufioReader32KPool.Put(trBuf)
26
27 var dirs []*tar.Header
28 unpackedPaths := make(map[string]struct{})
29
30 if options == nil {
31 options = &TarOptions{}
32 }
33 if options.ExcludePatterns == nil {
34 options.ExcludePatterns = []string{}
35 }
36 remappedRootUID, remappedRootGID, err := idtools.GetRootUIDGID(options.UIDMaps, options.GIDMaps)
37 if err != nil {
38 return 0, err
39 }
40
41 aufsTempdir := ""
42 aufsHardlinks := make(map[string]*tar.Header)
43
44 if options == nil {
45 options = &TarOptions{}
46 }
47 // Iterate through the files in the archive.
48 for {
49 hdr, err := tr.Next()
50 if err == io.EOF {
51 // end of tar archive
52 break
53 }
54 if err != nil {
55 return 0, err
56 }
57
58 size += hdr.Size
59
60 // Normalize name, for safety and for a simple is-root check
61 hdr.Name = filepath.Clean(hdr.Name)
62
63 // Windows does not support filenames with colons in them. Ignore
64 // these files. This is not a problem though (although it might
65 // appear that it is). Let's suppose a client is running docker pull.
66 // The daemon it points to is Windows. Would it make sense for the
67 // client to be doing a docker pull Ubuntu for example (which has files
68 // with colons in the name under /usr/share/man/man3)? No, absolutely
69 // not as it would really only make sense that they were pulling a
70 // Windows image. However, for development, it is necessary to be able
71 // to pull Linux images which are in the repository.
72 //
73 // TODO Windows. Once the registry is aware of what images are Windows-
74 // specific or Linux-specific, this warning should be changed to an error
75 // to cater for the situation where someone does manage to upload a Linux
76 // image but have it tagged as Windows inadvertently.
77 if runtime.GOOS == "windows" {
78 if strings.Contains(hdr.Name, ":") {
79 logrus.Warnf("Windows: Ignoring %s (is this a Linux image?)", hdr.Name)
80 continue
81 }
82 }
83
84 // Note as these operations are platform specific, so must the slash be.
85 if !strings.HasSuffix(hdr.Name, string(os.PathSeparator)) {
86 // Not the root directory, ensure that the parent directory exists.
87 // This happened in some tests where an image had a tarfile without any
88 // parent directories.
89 parent := filepath.Dir(hdr.Name)
90 parentPath := filepath.Join(dest, parent)
91
92 if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
93 err = system.MkdirAll(parentPath, 0600)
94 if err != nil {
95 return 0, err
96 }
97 }
98 }
99
100 // Skip AUFS metadata dirs
101 if strings.HasPrefix(hdr.Name, WhiteoutMetaPrefix) {
102 // Regular files inside /.wh..wh.plnk can be used as hardlink targets
103 // We don't want this directory, but we need the files in them so that
104 // such hardlinks can be resolved.
105 if strings.HasPrefix(hdr.Name, WhiteoutLinkDir) && hdr.Typeflag == tar.TypeReg {
106 basename := filepath.Base(hdr.Name)
107 aufsHardlinks[basename] = hdr
108 if aufsTempdir == "" {
109 if aufsTempdir, err = ioutil.TempDir("", "dockerplnk"); err != nil {
110 return 0, err
111 }
112 defer os.RemoveAll(aufsTempdir)
113 }
114 if err := createTarFile(filepath.Join(aufsTempdir, basename), dest, hdr, tr, true, nil); err != nil {
115 return 0, err
116 }
117 }
118
119 if hdr.Name != WhiteoutOpaqueDir {
120 continue
121 }
122 }
123 path := filepath.Join(dest, hdr.Name)
124 rel, err := filepath.Rel(dest, path)
125 if err != nil {
126 return 0, err
127 }
128
129 // Note as these operations are platform specific, so must the slash be.
130 if strings.HasPrefix(rel, ".."+string(os.PathSeparator)) {
131 return 0, breakoutError(fmt.Errorf("%q is outside of %q", hdr.Name, dest))
132 }
133 base := filepath.Base(path)
134
135 if strings.HasPrefix(base, WhiteoutPrefix) {
136 dir := filepath.Dir(path)
137 if base == WhiteoutOpaqueDir {
138 _, err := os.Lstat(dir)
139 if err != nil {
140 return 0, err
141 }
142 err = filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
143 if err != nil {
144 if os.IsNotExist(err) {
145 err = nil // parent was deleted
146 }
147 return err
148 }
149 if path == dir {
150 return nil
151 }
152 if _, exists := unpackedPaths[path]; !exists {
153 err := os.RemoveAll(path)
154 return err
155 }
156 return nil
157 })
158 if err != nil {
159 return 0, err
160 }
161 } else {
162 originalBase := base[len(WhiteoutPrefix):]
163 originalPath := filepath.Join(dir, originalBase)
164 if err := os.RemoveAll(originalPath); err != nil {
165 return 0, err
166 }
167 }
168 } else {
169 // If path exits we almost always just want to remove and replace it.
170 // The only exception is when it is a directory *and* the file from
171 // the layer is also a directory. Then we want to merge them (i.e.
172 // just apply the metadata from the layer).
173 if fi, err := os.Lstat(path); err == nil {
174 if !(fi.IsDir() && hdr.Typeflag == tar.TypeDir) {
175 if err := os.RemoveAll(path); err != nil {
176 return 0, err
177 }
178 }
179 }
180
181 trBuf.Reset(tr)
182 srcData := io.Reader(trBuf)
183 srcHdr := hdr
184
185 // Hard links into /.wh..wh.plnk don't work, as we don't extract that directory, so
186 // we manually retarget these into the temporary files we extracted them into
187 if hdr.Typeflag == tar.TypeLink && strings.HasPrefix(filepath.Clean(hdr.Linkname), WhiteoutLinkDir) {
188 linkBasename := filepath.Base(hdr.Linkname)
189 srcHdr = aufsHardlinks[linkBasename]
190 if srcHdr == nil {
191 return 0, fmt.Errorf("Invalid aufs hardlink")
192 }
193 tmpFile, err := os.Open(filepath.Join(aufsTempdir, linkBasename))
194 if err != nil {
195 return 0, err
196 }
197 defer tmpFile.Close()
198 srcData = tmpFile
199 }
200
201 // if the options contain a uid & gid maps, convert header uid/gid
202 // entries using the maps such that lchown sets the proper mapped
203 // uid/gid after writing the file. We only perform this mapping if
204 // the file isn't already owned by the remapped root UID or GID, as
205 // that specific uid/gid has no mapping from container -> host, and
206 // those files already have the proper ownership for inside the
207 // container.
208 if srcHdr.Uid != remappedRootUID {
209 xUID, err := idtools.ToHost(srcHdr.Uid, options.UIDMaps)
210 if err != nil {
211 return 0, err
212 }
213 srcHdr.Uid = xUID
214 }
215 if srcHdr.Gid != remappedRootGID {
216 xGID, err := idtools.ToHost(srcHdr.Gid, options.GIDMaps)
217 if err != nil {
218 return 0, err
219 }
220 srcHdr.Gid = xGID
221 }
222 if err := createTarFile(path, dest, srcHdr, srcData, true, nil); err != nil {
223 return 0, err
224 }
225
226 // Directory mtimes must be handled at the end to avoid further
227 // file creation in them to modify the directory mtime
228 if hdr.Typeflag == tar.TypeDir {
229 dirs = append(dirs, hdr)
230 }
231 unpackedPaths[path] = struct{}{}
232 }
233 }
234
235 for _, hdr := range dirs {
236 path := filepath.Join(dest, hdr.Name)
237 if err := system.Chtimes(path, hdr.AccessTime, hdr.ModTime); err != nil {
238 return 0, err
239 }
240 }
241
242 return size, nil
243}
244
245// ApplyLayer parses a diff in the standard layer format from `layer`,
246// and applies it to the directory `dest`. The stream `layer` can be
247// compressed or uncompressed.
248// Returns the size in bytes of the contents of the layer.
249func ApplyLayer(dest string, layer Reader) (int64, error) {
250 return applyLayerHandler(dest, layer, &TarOptions{}, true)
251}
252
253// ApplyUncompressedLayer parses a diff in the standard layer format from
254// `layer`, and applies it to the directory `dest`. The stream `layer`
255// can only be uncompressed.
256// Returns the size in bytes of the contents of the layer.
257func ApplyUncompressedLayer(dest string, layer Reader, options *TarOptions) (int64, error) {
258 return applyLayerHandler(dest, layer, options, false)
259}
260
261// do the bulk load of ApplyLayer, but allow for not calling DecompressStream
262func applyLayerHandler(dest string, layer Reader, options *TarOptions, decompress bool) (int64, error) {
263 dest = filepath.Clean(dest)
264
265 // We need to be able to set any perms
266 oldmask, err := system.Umask(0)
267 if err != nil {
268 return 0, err
269 }
270 defer system.Umask(oldmask) // ignore err, ErrNotSupportedPlatform
271
272 if decompress {
273 layer, err = DecompressStream(layer)
274 if err != nil {
275 return 0, err
276 }
277 }
278 return UnpackLayer(dest, layer, options)
279}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go
deleted file mode 100644
index 3448569..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go
+++ /dev/null
@@ -1,16 +0,0 @@
1package archive
2
3import (
4 "syscall"
5 "time"
6)
7
8func timeToTimespec(time time.Time) (ts syscall.Timespec) {
9 if time.IsZero() {
10 // Return UTIME_OMIT special value
11 ts.Sec = 0
12 ts.Nsec = ((1 << 30) - 2)
13 return
14 }
15 return syscall.NsecToTimespec(time.UnixNano())
16}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_unsupported.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_unsupported.go
deleted file mode 100644
index e85aac0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_unsupported.go
+++ /dev/null
@@ -1,16 +0,0 @@
1// +build !linux
2
3package archive
4
5import (
6 "syscall"
7 "time"
8)
9
10func timeToTimespec(time time.Time) (ts syscall.Timespec) {
11 nsec := int64(0)
12 if !time.IsZero() {
13 nsec = time.UnixNano()
14 }
15 return syscall.NsecToTimespec(nsec)
16}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/whiteouts.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/whiteouts.go
deleted file mode 100644
index d20478a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/whiteouts.go
+++ /dev/null
@@ -1,23 +0,0 @@
1package archive
2
3// Whiteouts are files with a special meaning for the layered filesystem.
4// Docker uses AUFS whiteout files inside exported archives. In other
5// filesystems these files are generated/handled on tar creation/extraction.
6
7// WhiteoutPrefix prefix means file is a whiteout. If this is followed by a
8// filename this means that file has been removed from the base layer.
9const WhiteoutPrefix = ".wh."
10
11// WhiteoutMetaPrefix prefix means whiteout has a special meaning and is not
12// for removing an actual file. Normally these files are excluded from exported
13// archives.
14const WhiteoutMetaPrefix = WhiteoutPrefix + WhiteoutPrefix
15
16// WhiteoutLinkDir is a directory AUFS uses for storing hardlink links to other
17// layers. Normally these should not go into exported archives and all changed
18// hardlinks should be copied to the top layer.
19const WhiteoutLinkDir = WhiteoutMetaPrefix + "plnk"
20
21// WhiteoutOpaqueDir file means directory has been made opaque - meaning
22// readdir calls to this directory do not follow to lower layers.
23const WhiteoutOpaqueDir = WhiteoutMetaPrefix + ".opq"
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/wrap.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/wrap.go
deleted file mode 100644
index dfb335c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/wrap.go
+++ /dev/null
@@ -1,59 +0,0 @@
1package archive
2
3import (
4 "archive/tar"
5 "bytes"
6 "io/ioutil"
7)
8
9// Generate generates a new archive from the content provided
10// as input.
11//
12// `files` is a sequence of path/content pairs. A new file is
13// added to the archive for each pair.
14// If the last pair is incomplete, the file is created with an
15// empty content. For example:
16//
17// Generate("foo.txt", "hello world", "emptyfile")
18//
19// The above call will return an archive with 2 files:
20// * ./foo.txt with content "hello world"
21// * ./empty with empty content
22//
23// FIXME: stream content instead of buffering
24// FIXME: specify permissions and other archive metadata
25func Generate(input ...string) (Archive, error) {
26 files := parseStringPairs(input...)
27 buf := new(bytes.Buffer)
28 tw := tar.NewWriter(buf)
29 for _, file := range files {
30 name, content := file[0], file[1]
31 hdr := &tar.Header{
32 Name: name,
33 Size: int64(len(content)),
34 }
35 if err := tw.WriteHeader(hdr); err != nil {
36 return nil, err
37 }
38 if _, err := tw.Write([]byte(content)); err != nil {
39 return nil, err
40 }
41 }
42 if err := tw.Close(); err != nil {
43 return nil, err
44 }
45 return ioutil.NopCloser(buf), nil
46}
47
48func parseStringPairs(input ...string) (output [][2]string) {
49 output = make([][2]string, 0, len(input)/2+1)
50 for i := 0; i < len(input); i += 2 {
51 var pair [2]string
52 pair[0] = input[i]
53 if i+1 < len(input) {
54 pair[1] = input[i+1]
55 }
56 output = append(output, pair)
57 }
58 return
59}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils.go
deleted file mode 100644
index a15cf4b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils.go
+++ /dev/null
@@ -1,279 +0,0 @@
1package fileutils
2
3import (
4 "errors"
5 "fmt"
6 "io"
7 "os"
8 "path/filepath"
9 "regexp"
10 "strings"
11 "text/scanner"
12
13 "github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus"
14)
15
16// exclusion return true if the specified pattern is an exclusion
17func exclusion(pattern string) bool {
18 return pattern[0] == '!'
19}
20
21// empty return true if the specified pattern is empty
22func empty(pattern string) bool {
23 return pattern == ""
24}
25
26// CleanPatterns takes a slice of patterns returns a new
27// slice of patterns cleaned with filepath.Clean, stripped
28// of any empty patterns and lets the caller know whether the
29// slice contains any exception patterns (prefixed with !).
30func CleanPatterns(patterns []string) ([]string, [][]string, bool, error) {
31 // Loop over exclusion patterns and:
32 // 1. Clean them up.
33 // 2. Indicate whether we are dealing with any exception rules.
34 // 3. Error if we see a single exclusion marker on it's own (!).
35 cleanedPatterns := []string{}
36 patternDirs := [][]string{}
37 exceptions := false
38 for _, pattern := range patterns {
39 // Eliminate leading and trailing whitespace.
40 pattern = strings.TrimSpace(pattern)
41 if empty(pattern) {
42 continue
43 }
44 if exclusion(pattern) {
45 if len(pattern) == 1 {
46 return nil, nil, false, errors.New("Illegal exclusion pattern: !")
47 }
48 exceptions = true
49 }
50 pattern = filepath.Clean(pattern)
51 cleanedPatterns = append(cleanedPatterns, pattern)
52 if exclusion(pattern) {
53 pattern = pattern[1:]
54 }
55 patternDirs = append(patternDirs, strings.Split(pattern, "/"))
56 }
57
58 return cleanedPatterns, patternDirs, exceptions, nil
59}
60
61// Matches returns true if file matches any of the patterns
62// and isn't excluded by any of the subsequent patterns.
63func Matches(file string, patterns []string) (bool, error) {
64 file = filepath.Clean(file)
65
66 if file == "." {
67 // Don't let them exclude everything, kind of silly.
68 return false, nil
69 }
70
71 patterns, patDirs, _, err := CleanPatterns(patterns)
72 if err != nil {
73 return false, err
74 }
75
76 return OptimizedMatches(file, patterns, patDirs)
77}
78
79// OptimizedMatches is basically the same as fileutils.Matches() but optimized for archive.go.
80// It will assume that the inputs have been preprocessed and therefore the function
81// doesn't need to do as much error checking and clean-up. This was done to avoid
82// repeating these steps on each file being checked during the archive process.
83// The more generic fileutils.Matches() can't make these assumptions.
84func OptimizedMatches(file string, patterns []string, patDirs [][]string) (bool, error) {
85 matched := false
86 parentPath := filepath.Dir(file)
87 parentPathDirs := strings.Split(parentPath, "/")
88
89 for i, pattern := range patterns {
90 negative := false
91
92 if exclusion(pattern) {
93 negative = true
94 pattern = pattern[1:]
95 }
96
97 match, err := regexpMatch(pattern, file)
98 if err != nil {
99 return false, fmt.Errorf("Error in pattern (%s): %s", pattern, err)
100 }
101
102 if !match && parentPath != "." {
103 // Check to see if the pattern matches one of our parent dirs.
104 if len(patDirs[i]) <= len(parentPathDirs) {
105 match, _ = regexpMatch(strings.Join(patDirs[i], "/"),
106 strings.Join(parentPathDirs[:len(patDirs[i])], "/"))
107 }
108 }
109
110 if match {
111 matched = !negative
112 }
113 }
114
115 if matched {
116 logrus.Debugf("Skipping excluded path: %s", file)
117 }
118
119 return matched, nil
120}
121
122// regexpMatch tries to match the logic of filepath.Match but
123// does so using regexp logic. We do this so that we can expand the
124// wildcard set to include other things, like "**" to mean any number
125// of directories. This means that we should be backwards compatible
126// with filepath.Match(). We'll end up supporting more stuff, due to
127// the fact that we're using regexp, but that's ok - it does no harm.
128func regexpMatch(pattern, path string) (bool, error) {
129 regStr := "^"
130
131 // Do some syntax checking on the pattern.
132 // filepath's Match() has some really weird rules that are inconsistent
133 // so instead of trying to dup their logic, just call Match() for its
134 // error state and if there is an error in the pattern return it.
135 // If this becomes an issue we can remove this since its really only
136 // needed in the error (syntax) case - which isn't really critical.
137 if _, err := filepath.Match(pattern, path); err != nil {
138 return false, err
139 }
140
141 // Go through the pattern and convert it to a regexp.
142 // We use a scanner so we can support utf-8 chars.
143 var scan scanner.Scanner
144 scan.Init(strings.NewReader(pattern))
145
146 sl := string(os.PathSeparator)
147 escSL := sl
148 if sl == `\` {
149 escSL += `\`
150 }
151
152 for scan.Peek() != scanner.EOF {
153 ch := scan.Next()
154
155 if ch == '*' {
156 if scan.Peek() == '*' {
157 // is some flavor of "**"
158 scan.Next()
159
160 if scan.Peek() == scanner.EOF {
161 // is "**EOF" - to align with .gitignore just accept all
162 regStr += ".*"
163 } else {
164 // is "**"
165 regStr += "((.*" + escSL + ")|([^" + escSL + "]*))"
166 }
167
168 // Treat **/ as ** so eat the "/"
169 if string(scan.Peek()) == sl {
170 scan.Next()
171 }
172 } else {
173 // is "*" so map it to anything but "/"
174 regStr += "[^" + escSL + "]*"
175 }
176 } else if ch == '?' {
177 // "?" is any char except "/"
178 regStr += "[^" + escSL + "]"
179 } else if strings.Index(".$", string(ch)) != -1 {
180 // Escape some regexp special chars that have no meaning
181 // in golang's filepath.Match
182 regStr += `\` + string(ch)
183 } else if ch == '\\' {
184 // escape next char. Note that a trailing \ in the pattern
185 // will be left alone (but need to escape it)
186 if sl == `\` {
187 // On windows map "\" to "\\", meaning an escaped backslash,
188 // and then just continue because filepath.Match on
189 // Windows doesn't allow escaping at all
190 regStr += escSL
191 continue
192 }
193 if scan.Peek() != scanner.EOF {
194 regStr += `\` + string(scan.Next())
195 } else {
196 regStr += `\`
197 }
198 } else {
199 regStr += string(ch)
200 }
201 }
202
203 regStr += "$"
204
205 res, err := regexp.MatchString(regStr, path)
206
207 // Map regexp's error to filepath's so no one knows we're not using filepath
208 if err != nil {
209 err = filepath.ErrBadPattern
210 }
211
212 return res, err
213}
214
215// CopyFile copies from src to dst until either EOF is reached
216// on src or an error occurs. It verifies src exists and remove
217// the dst if it exists.
218func CopyFile(src, dst string) (int64, error) {
219 cleanSrc := filepath.Clean(src)
220 cleanDst := filepath.Clean(dst)
221 if cleanSrc == cleanDst {
222 return 0, nil
223 }
224 sf, err := os.Open(cleanSrc)
225 if err != nil {
226 return 0, err
227 }
228 defer sf.Close()
229 if err := os.Remove(cleanDst); err != nil && !os.IsNotExist(err) {
230 return 0, err
231 }
232 df, err := os.Create(cleanDst)
233 if err != nil {
234 return 0, err
235 }
236 defer df.Close()
237 return io.Copy(df, sf)
238}
239
240// ReadSymlinkedDirectory returns the target directory of a symlink.
241// The target of the symbolic link may not be a file.
242func ReadSymlinkedDirectory(path string) (string, error) {
243 var realPath string
244 var err error
245 if realPath, err = filepath.Abs(path); err != nil {
246 return "", fmt.Errorf("unable to get absolute path for %s: %s", path, err)
247 }
248 if realPath, err = filepath.EvalSymlinks(realPath); err != nil {
249 return "", fmt.Errorf("failed to canonicalise path for %s: %s", path, err)
250 }
251 realPathInfo, err := os.Stat(realPath)
252 if err != nil {
253 return "", fmt.Errorf("failed to stat target '%s' of '%s': %s", realPath, path, err)
254 }
255 if !realPathInfo.Mode().IsDir() {
256 return "", fmt.Errorf("canonical path points to a file '%s'", realPath)
257 }
258 return realPath, nil
259}
260
261// CreateIfNotExists creates a file or a directory only if it does not already exist.
262func CreateIfNotExists(path string, isDir bool) error {
263 if _, err := os.Stat(path); err != nil {
264 if os.IsNotExist(err) {
265 if isDir {
266 return os.MkdirAll(path, 0755)
267 }
268 if err := os.MkdirAll(filepath.Dir(path), 0755); err != nil {
269 return err
270 }
271 f, err := os.OpenFile(path, os.O_CREATE, 0755)
272 if err != nil {
273 return err
274 }
275 f.Close()
276 }
277 }
278 return nil
279}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_unix.go
deleted file mode 100644
index 7e00802..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_unix.go
+++ /dev/null
@@ -1,22 +0,0 @@
1// +build linux freebsd
2
3package fileutils
4
5import (
6 "fmt"
7 "io/ioutil"
8 "os"
9
10 "github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus"
11)
12
13// GetTotalUsedFds Returns the number of used File Descriptors by
14// reading it via /proc filesystem.
15func GetTotalUsedFds() int {
16 if fds, err := ioutil.ReadDir(fmt.Sprintf("/proc/%d/fd", os.Getpid())); err != nil {
17 logrus.Errorf("Error opening /proc/%d/fd: %s", os.Getpid(), err)
18 } else {
19 return len(fds)
20 }
21 return -1
22}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_windows.go
deleted file mode 100644
index 5ec21ca..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_windows.go
+++ /dev/null
@@ -1,7 +0,0 @@
1package fileutils
2
3// GetTotalUsedFds Returns the number of used File Descriptors. Not supported
4// on Windows.
5func GetTotalUsedFds() int {
6 return -1
7}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/homedir/homedir.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/homedir/homedir.go
deleted file mode 100644
index dcae178..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/homedir/homedir.go
+++ /dev/null
@@ -1,39 +0,0 @@
1package homedir
2
3import (
4 "os"
5 "runtime"
6
7 "github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user"
8)
9
10// Key returns the env var name for the user's home dir based on
11// the platform being run on
12func Key() string {
13 if runtime.GOOS == "windows" {
14 return "USERPROFILE"
15 }
16 return "HOME"
17}
18
19// Get returns the home directory of the current user with the help of
20// environment variables depending on the target operating system.
21// Returned path should be used with "path/filepath" to form new paths.
22func Get() string {
23 home := os.Getenv(Key())
24 if home == "" && runtime.GOOS != "windows" {
25 if u, err := user.CurrentUser(); err == nil {
26 return u.Home
27 }
28 }
29 return home
30}
31
32// GetShortcutString returns the string that is shortcut to user's home directory
33// in the native shell of the platform running on.
34func GetShortcutString() string {
35 if runtime.GOOS == "windows" {
36 return "%USERPROFILE%" // be careful while using in format functions
37 }
38 return "~"
39}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools.go
deleted file mode 100644
index a1301ee..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools.go
+++ /dev/null
@@ -1,195 +0,0 @@
1package idtools
2
3import (
4 "bufio"
5 "fmt"
6 "os"
7 "sort"
8 "strconv"
9 "strings"
10)
11
12// IDMap contains a single entry for user namespace range remapping. An array
13// of IDMap entries represents the structure that will be provided to the Linux
14// kernel for creating a user namespace.
15type IDMap struct {
16 ContainerID int `json:"container_id"`
17 HostID int `json:"host_id"`
18 Size int `json:"size"`
19}
20
21type subIDRange struct {
22 Start int
23 Length int
24}
25
26type ranges []subIDRange
27
28func (e ranges) Len() int { return len(e) }
29func (e ranges) Swap(i, j int) { e[i], e[j] = e[j], e[i] }
30func (e ranges) Less(i, j int) bool { return e[i].Start < e[j].Start }
31
32const (
33 subuidFileName string = "/etc/subuid"
34 subgidFileName string = "/etc/subgid"
35)
36
37// MkdirAllAs creates a directory (include any along the path) and then modifies
38// ownership to the requested uid/gid. If the directory already exists, this
39// function will still change ownership to the requested uid/gid pair.
40func MkdirAllAs(path string, mode os.FileMode, ownerUID, ownerGID int) error {
41 return mkdirAs(path, mode, ownerUID, ownerGID, true, true)
42}
43
44// MkdirAllNewAs creates a directory (include any along the path) and then modifies
45// ownership ONLY of newly created directories to the requested uid/gid. If the
46// directories along the path exist, no change of ownership will be performed
47func MkdirAllNewAs(path string, mode os.FileMode, ownerUID, ownerGID int) error {
48 return mkdirAs(path, mode, ownerUID, ownerGID, true, false)
49}
50
51// MkdirAs creates a directory and then modifies ownership to the requested uid/gid.
52// If the directory already exists, this function still changes ownership
53func MkdirAs(path string, mode os.FileMode, ownerUID, ownerGID int) error {
54 return mkdirAs(path, mode, ownerUID, ownerGID, false, true)
55}
56
57// GetRootUIDGID retrieves the remapped root uid/gid pair from the set of maps.
58// If the maps are empty, then the root uid/gid will default to "real" 0/0
59func GetRootUIDGID(uidMap, gidMap []IDMap) (int, int, error) {
60 var uid, gid int
61
62 if uidMap != nil {
63 xUID, err := ToHost(0, uidMap)
64 if err != nil {
65 return -1, -1, err
66 }
67 uid = xUID
68 }
69 if gidMap != nil {
70 xGID, err := ToHost(0, gidMap)
71 if err != nil {
72 return -1, -1, err
73 }
74 gid = xGID
75 }
76 return uid, gid, nil
77}
78
79// ToContainer takes an id mapping, and uses it to translate a
80// host ID to the remapped ID. If no map is provided, then the translation
81// assumes a 1-to-1 mapping and returns the passed in id
82func ToContainer(hostID int, idMap []IDMap) (int, error) {
83 if idMap == nil {
84 return hostID, nil
85 }
86 for _, m := range idMap {
87 if (hostID >= m.HostID) && (hostID <= (m.HostID + m.Size - 1)) {
88 contID := m.ContainerID + (hostID - m.HostID)
89 return contID, nil
90 }
91 }
92 return -1, fmt.Errorf("Host ID %d cannot be mapped to a container ID", hostID)
93}
94
95// ToHost takes an id mapping and a remapped ID, and translates the
96// ID to the mapped host ID. If no map is provided, then the translation
97// assumes a 1-to-1 mapping and returns the passed in id #
98func ToHost(contID int, idMap []IDMap) (int, error) {
99 if idMap == nil {
100 return contID, nil
101 }
102 for _, m := range idMap {
103 if (contID >= m.ContainerID) && (contID <= (m.ContainerID + m.Size - 1)) {
104 hostID := m.HostID + (contID - m.ContainerID)
105 return hostID, nil
106 }
107 }
108 return -1, fmt.Errorf("Container ID %d cannot be mapped to a host ID", contID)
109}
110
111// CreateIDMappings takes a requested user and group name and
112// using the data from /etc/sub{uid,gid} ranges, creates the
113// proper uid and gid remapping ranges for that user/group pair
114func CreateIDMappings(username, groupname string) ([]IDMap, []IDMap, error) {
115 subuidRanges, err := parseSubuid(username)
116 if err != nil {
117 return nil, nil, err
118 }
119 subgidRanges, err := parseSubgid(groupname)
120 if err != nil {
121 return nil, nil, err
122 }
123 if len(subuidRanges) == 0 {
124 return nil, nil, fmt.Errorf("No subuid ranges found for user %q", username)
125 }
126 if len(subgidRanges) == 0 {
127 return nil, nil, fmt.Errorf("No subgid ranges found for group %q", groupname)
128 }
129
130 return createIDMap(subuidRanges), createIDMap(subgidRanges), nil
131}
132
133func createIDMap(subidRanges ranges) []IDMap {
134 idMap := []IDMap{}
135
136 // sort the ranges by lowest ID first
137 sort.Sort(subidRanges)
138 containerID := 0
139 for _, idrange := range subidRanges {
140 idMap = append(idMap, IDMap{
141 ContainerID: containerID,
142 HostID: idrange.Start,
143 Size: idrange.Length,
144 })
145 containerID = containerID + idrange.Length
146 }
147 return idMap
148}
149
150func parseSubuid(username string) (ranges, error) {
151 return parseSubidFile(subuidFileName, username)
152}
153
154func parseSubgid(username string) (ranges, error) {
155 return parseSubidFile(subgidFileName, username)
156}
157
158func parseSubidFile(path, username string) (ranges, error) {
159 var rangeList ranges
160
161 subidFile, err := os.Open(path)
162 if err != nil {
163 return rangeList, err
164 }
165 defer subidFile.Close()
166
167 s := bufio.NewScanner(subidFile)
168 for s.Scan() {
169 if err := s.Err(); err != nil {
170 return rangeList, err
171 }
172
173 text := strings.TrimSpace(s.Text())
174 if text == "" {
175 continue
176 }
177 parts := strings.Split(text, ":")
178 if len(parts) != 3 {
179 return rangeList, fmt.Errorf("Cannot parse subuid/gid information: Format not correct for %s file", path)
180 }
181 if parts[0] == username {
182 // return the first entry for a user; ignores potential for multiple ranges per user
183 startid, err := strconv.Atoi(parts[1])
184 if err != nil {
185 return rangeList, fmt.Errorf("String to int conversion failed during subuid/gid parsing of %s: %v", path, err)
186 }
187 length, err := strconv.Atoi(parts[2])
188 if err != nil {
189 return rangeList, fmt.Errorf("String to int conversion failed during subuid/gid parsing of %s: %v", path, err)
190 }
191 rangeList = append(rangeList, subIDRange{startid, length})
192 }
193 }
194 return rangeList, nil
195}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_unix.go
deleted file mode 100644
index 0444307..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_unix.go
+++ /dev/null
@@ -1,60 +0,0 @@
1// +build !windows
2
3package idtools
4
5import (
6 "os"
7 "path/filepath"
8
9 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
10)
11
12func mkdirAs(path string, mode os.FileMode, ownerUID, ownerGID int, mkAll, chownExisting bool) error {
13 // make an array containing the original path asked for, plus (for mkAll == true)
14 // all path components leading up to the complete path that don't exist before we MkdirAll
15 // so that we can chown all of them properly at the end. If chownExisting is false, we won't
16 // chown the full directory path if it exists
17 var paths []string
18 if _, err := os.Stat(path); err != nil && os.IsNotExist(err) {
19 paths = []string{path}
20 } else if err == nil && chownExisting {
21 if err := os.Chown(path, ownerUID, ownerGID); err != nil {
22 return err
23 }
24 // short-circuit--we were called with an existing directory and chown was requested
25 return nil
26 } else if err == nil {
27 // nothing to do; directory path fully exists already and chown was NOT requested
28 return nil
29 }
30
31 if mkAll {
32 // walk back to "/" looking for directories which do not exist
33 // and add them to the paths array for chown after creation
34 dirPath := path
35 for {
36 dirPath = filepath.Dir(dirPath)
37 if dirPath == "/" {
38 break
39 }
40 if _, err := os.Stat(dirPath); err != nil && os.IsNotExist(err) {
41 paths = append(paths, dirPath)
42 }
43 }
44 if err := system.MkdirAll(path, mode); err != nil && !os.IsExist(err) {
45 return err
46 }
47 } else {
48 if err := os.Mkdir(path, mode); err != nil && !os.IsExist(err) {
49 return err
50 }
51 }
52 // even if it existed, we will chown the requested path + any subpaths that
53 // didn't exist when we called MkdirAll
54 for _, pathComponent := range paths {
55 if err := os.Chown(pathComponent, ownerUID, ownerGID); err != nil {
56 return err
57 }
58 }
59 return nil
60}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_windows.go
deleted file mode 100644
index d5ec992..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_windows.go
+++ /dev/null
@@ -1,18 +0,0 @@
1// +build windows
2
3package idtools
4
5import (
6 "os"
7
8 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system"
9)
10
11// Platforms such as Windows do not support the UID/GID concept. So make this
12// just a wrapper around system.MkdirAll.
13func mkdirAs(path string, mode os.FileMode, ownerUID, ownerGID int, mkAll, chownExisting bool) error {
14 if err := system.MkdirAll(path, mode); err != nil && !os.IsExist(err) {
15 return err
16 }
17 return nil
18}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/usergroupadd_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/usergroupadd_linux.go
deleted file mode 100644
index c1eedff..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/usergroupadd_linux.go
+++ /dev/null
@@ -1,155 +0,0 @@
1package idtools
2
3import (
4 "fmt"
5 "os/exec"
6 "path/filepath"
7 "strings"
8 "syscall"
9)
10
11// add a user and/or group to Linux /etc/passwd, /etc/group using standard
12// Linux distribution commands:
13// adduser --uid <id> --shell /bin/login --no-create-home --disabled-login --ingroup <groupname> <username>
14// useradd -M -u <id> -s /bin/nologin -N -g <groupname> <username>
15// addgroup --gid <id> <groupname>
16// groupadd -g <id> <groupname>
17
18const baseUID int = 10000
19const baseGID int = 10000
20const idMAX int = 65534
21
22var (
23 userCommand string
24 groupCommand string
25
26 cmdTemplates = map[string]string{
27 "adduser": "--uid %d --shell /bin/false --no-create-home --disabled-login --ingroup %s %s",
28 "useradd": "-M -u %d -s /bin/false -N -g %s %s",
29 "addgroup": "--gid %d %s",
30 "groupadd": "-g %d %s",
31 }
32)
33
34func init() {
35 // set up which commands are used for adding users/groups dependent on distro
36 if _, err := resolveBinary("adduser"); err == nil {
37 userCommand = "adduser"
38 } else if _, err := resolveBinary("useradd"); err == nil {
39 userCommand = "useradd"
40 }
41 if _, err := resolveBinary("addgroup"); err == nil {
42 groupCommand = "addgroup"
43 } else if _, err := resolveBinary("groupadd"); err == nil {
44 groupCommand = "groupadd"
45 }
46}
47
48func resolveBinary(binname string) (string, error) {
49 binaryPath, err := exec.LookPath(binname)
50 if err != nil {
51 return "", err
52 }
53 resolvedPath, err := filepath.EvalSymlinks(binaryPath)
54 if err != nil {
55 return "", err
56 }
57 //only return no error if the final resolved binary basename
58 //matches what was searched for
59 if filepath.Base(resolvedPath) == binname {
60 return resolvedPath, nil
61 }
62 return "", fmt.Errorf("Binary %q does not resolve to a binary of that name in $PATH (%q)", binname, resolvedPath)
63}
64
65// AddNamespaceRangesUser takes a name and finds an unused uid, gid pair
66// and calls the appropriate helper function to add the group and then
67// the user to the group in /etc/group and /etc/passwd respectively.
68// This new user's /etc/sub{uid,gid} ranges will be used for user namespace
69// mapping ranges in containers.
70func AddNamespaceRangesUser(name string) (int, int, error) {
71 // Find unused uid, gid pair
72 uid, err := findUnusedUID(baseUID)
73 if err != nil {
74 return -1, -1, fmt.Errorf("Unable to find unused UID: %v", err)
75 }
76 gid, err := findUnusedGID(baseGID)
77 if err != nil {
78 return -1, -1, fmt.Errorf("Unable to find unused GID: %v", err)
79 }
80
81 // First add the group that we will use
82 if err := addGroup(name, gid); err != nil {
83 return -1, -1, fmt.Errorf("Error adding group %q: %v", name, err)
84 }
85 // Add the user as a member of the group
86 if err := addUser(name, uid, name); err != nil {
87 return -1, -1, fmt.Errorf("Error adding user %q: %v", name, err)
88 }
89 return uid, gid, nil
90}
91
92func addUser(userName string, uid int, groupName string) error {
93
94 if userCommand == "" {
95 return fmt.Errorf("Cannot add user; no useradd/adduser binary found")
96 }
97 args := fmt.Sprintf(cmdTemplates[userCommand], uid, groupName, userName)
98 return execAddCmd(userCommand, args)
99}
100
101func addGroup(groupName string, gid int) error {
102
103 if groupCommand == "" {
104 return fmt.Errorf("Cannot add group; no groupadd/addgroup binary found")
105 }
106 args := fmt.Sprintf(cmdTemplates[groupCommand], gid, groupName)
107 // only error out if the error isn't that the group already exists
108 // if the group exists then our needs are already met
109 if err := execAddCmd(groupCommand, args); err != nil && !strings.Contains(err.Error(), "already exists") {
110 return err
111 }
112 return nil
113}
114
115func execAddCmd(cmd, args string) error {
116 execCmd := exec.Command(cmd, strings.Split(args, " ")...)
117 out, err := execCmd.CombinedOutput()
118 if err != nil {
119 return fmt.Errorf("Failed to add user/group with error: %v; output: %q", err, string(out))
120 }
121 return nil
122}
123
124func findUnusedUID(startUID int) (int, error) {
125 return findUnused("passwd", startUID)
126}
127
128func findUnusedGID(startGID int) (int, error) {
129 return findUnused("group", startGID)
130}
131
132func findUnused(file string, id int) (int, error) {
133 for {
134 cmdStr := fmt.Sprintf("cat /etc/%s | cut -d: -f3 | grep '^%d$'", file, id)
135 cmd := exec.Command("sh", "-c", cmdStr)
136 if err := cmd.Run(); err != nil {
137 // if a non-zero return code occurs, then we know the ID was not found
138 // and is usable
139 if exiterr, ok := err.(*exec.ExitError); ok {
140 // The program has exited with an exit code != 0
141 if status, ok := exiterr.Sys().(syscall.WaitStatus); ok {
142 if status.ExitStatus() == 1 {
143 //no match, we can use this ID
144 return id, nil
145 }
146 }
147 }
148 return -1, fmt.Errorf("Error looking in /etc/%s for unused ID: %v", file, err)
149 }
150 id++
151 if id > idMAX {
152 return -1, fmt.Errorf("Maximum id in %q reached with finding unused numeric ID", file)
153 }
154 }
155}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/usergroupadd_unsupported.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/usergroupadd_unsupported.go
deleted file mode 100644
index d98b354..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/usergroupadd_unsupported.go
+++ /dev/null
@@ -1,12 +0,0 @@
1// +build !linux
2
3package idtools
4
5import "fmt"
6
7// AddNamespaceRangesUser takes a name and finds an unused uid, gid pair
8// and calls the appropriate helper function to add the group and then
9// the user to the group in /etc/group and /etc/passwd respectively.
10func AddNamespaceRangesUser(name string) (int, int, error) {
11 return -1, -1, fmt.Errorf("No support for adding users or groups on this OS")
12}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/bytespipe.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/bytespipe.go
deleted file mode 100644
index e263c28..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/bytespipe.go
+++ /dev/null
@@ -1,152 +0,0 @@
1package ioutils
2
3import (
4 "errors"
5 "io"
6 "sync"
7)
8
9// maxCap is the highest capacity to use in byte slices that buffer data.
10const maxCap = 1e6
11
12// blockThreshold is the minimum number of bytes in the buffer which will cause
13// a write to BytesPipe to block when allocating a new slice.
14const blockThreshold = 1e6
15
16// ErrClosed is returned when Write is called on a closed BytesPipe.
17var ErrClosed = errors.New("write to closed BytesPipe")
18
19// BytesPipe is io.ReadWriteCloser which works similarly to pipe(queue).
20// All written data may be read at most once. Also, BytesPipe allocates
21// and releases new byte slices to adjust to current needs, so the buffer
22// won't be overgrown after peak loads.
23type BytesPipe struct {
24 mu sync.Mutex
25 wait *sync.Cond
26 buf [][]byte // slice of byte-slices of buffered data
27 lastRead int // index in the first slice to a read point
28 bufLen int // length of data buffered over the slices
29 closeErr error // error to return from next Read. set to nil if not closed.
30}
31
32// NewBytesPipe creates new BytesPipe, initialized by specified slice.
33// If buf is nil, then it will be initialized with slice which cap is 64.
34// buf will be adjusted in a way that len(buf) == 0, cap(buf) == cap(buf).
35func NewBytesPipe(buf []byte) *BytesPipe {
36 if cap(buf) == 0 {
37 buf = make([]byte, 0, 64)
38 }
39 bp := &BytesPipe{
40 buf: [][]byte{buf[:0]},
41 }
42 bp.wait = sync.NewCond(&bp.mu)
43 return bp
44}
45
46// Write writes p to BytesPipe.
47// It can allocate new []byte slices in a process of writing.
48func (bp *BytesPipe) Write(p []byte) (int, error) {
49 bp.mu.Lock()
50 defer bp.mu.Unlock()
51 written := 0
52 for {
53 if bp.closeErr != nil {
54 return written, ErrClosed
55 }
56 // write data to the last buffer
57 b := bp.buf[len(bp.buf)-1]
58 // copy data to the current empty allocated area
59 n := copy(b[len(b):cap(b)], p)
60 // increment buffered data length
61 bp.bufLen += n
62 // include written data in last buffer
63 bp.buf[len(bp.buf)-1] = b[:len(b)+n]
64
65 written += n
66
67 // if there was enough room to write all then break
68 if len(p) == n {
69 break
70 }
71
72 // more data: write to the next slice
73 p = p[n:]
74
75 // block if too much data is still in the buffer
76 for bp.bufLen >= blockThreshold {
77 bp.wait.Wait()
78 }
79
80 // allocate slice that has twice the size of the last unless maximum reached
81 nextCap := 2 * cap(bp.buf[len(bp.buf)-1])
82 if nextCap > maxCap {
83 nextCap = maxCap
84 }
85 // add new byte slice to the buffers slice and continue writing
86 bp.buf = append(bp.buf, make([]byte, 0, nextCap))
87 }
88 bp.wait.Broadcast()
89 return written, nil
90}
91
92// CloseWithError causes further reads from a BytesPipe to return immediately.
93func (bp *BytesPipe) CloseWithError(err error) error {
94 bp.mu.Lock()
95 if err != nil {
96 bp.closeErr = err
97 } else {
98 bp.closeErr = io.EOF
99 }
100 bp.wait.Broadcast()
101 bp.mu.Unlock()
102 return nil
103}
104
105// Close causes further reads from a BytesPipe to return immediately.
106func (bp *BytesPipe) Close() error {
107 return bp.CloseWithError(nil)
108}
109
110func (bp *BytesPipe) len() int {
111 return bp.bufLen - bp.lastRead
112}
113
114// Read reads bytes from BytesPipe.
115// Data could be read only once.
116func (bp *BytesPipe) Read(p []byte) (n int, err error) {
117 bp.mu.Lock()
118 defer bp.mu.Unlock()
119 if bp.len() == 0 {
120 if bp.closeErr != nil {
121 return 0, bp.closeErr
122 }
123 bp.wait.Wait()
124 if bp.len() == 0 && bp.closeErr != nil {
125 return 0, bp.closeErr
126 }
127 }
128 for {
129 read := copy(p, bp.buf[0][bp.lastRead:])
130 n += read
131 bp.lastRead += read
132 if bp.len() == 0 {
133 // we have read everything. reset to the beginning.
134 bp.lastRead = 0
135 bp.bufLen -= len(bp.buf[0])
136 bp.buf[0] = bp.buf[0][:0]
137 break
138 }
139 // break if everything was read
140 if len(p) == read {
141 break
142 }
143 // more buffered data and more asked. read from next slice.
144 p = p[read:]
145 bp.lastRead = 0
146 bp.bufLen -= len(bp.buf[0])
147 bp.buf[0] = nil // throw away old slice
148 bp.buf = bp.buf[1:] // switch to next
149 }
150 bp.wait.Broadcast()
151 return
152}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/fmt.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/fmt.go
deleted file mode 100644
index 0b04b0b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/fmt.go
+++ /dev/null
@@ -1,22 +0,0 @@
1package ioutils
2
3import (
4 "fmt"
5 "io"
6)
7
8// FprintfIfNotEmpty prints the string value if it's not empty
9func FprintfIfNotEmpty(w io.Writer, format, value string) (int, error) {
10 if value != "" {
11 return fmt.Fprintf(w, format, value)
12 }
13 return 0, nil
14}
15
16// FprintfIfTrue prints the boolean value if it's true
17func FprintfIfTrue(w io.Writer, format string, ok bool) (int, error) {
18 if ok {
19 return fmt.Fprintf(w, format, ok)
20 }
21 return 0, nil
22}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/multireader.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/multireader.go
deleted file mode 100644
index 0d2d76b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/multireader.go
+++ /dev/null
@@ -1,226 +0,0 @@
1package ioutils
2
3import (
4 "bytes"
5 "fmt"
6 "io"
7 "os"
8)
9
10type pos struct {
11 idx int
12 offset int64
13}
14
15type multiReadSeeker struct {
16 readers []io.ReadSeeker
17 pos *pos
18 posIdx map[io.ReadSeeker]int
19}
20
21func (r *multiReadSeeker) Seek(offset int64, whence int) (int64, error) {
22 var tmpOffset int64
23 switch whence {
24 case os.SEEK_SET:
25 for i, rdr := range r.readers {
26 // get size of the current reader
27 s, err := rdr.Seek(0, os.SEEK_END)
28 if err != nil {
29 return -1, err
30 }
31
32 if offset > tmpOffset+s {
33 if i == len(r.readers)-1 {
34 rdrOffset := s + (offset - tmpOffset)
35 if _, err := rdr.Seek(rdrOffset, os.SEEK_SET); err != nil {
36 return -1, err
37 }
38 r.pos = &pos{i, rdrOffset}
39 return offset, nil
40 }
41
42 tmpOffset += s
43 continue
44 }
45
46 rdrOffset := offset - tmpOffset
47 idx := i
48
49 rdr.Seek(rdrOffset, os.SEEK_SET)
50 // make sure all following readers are at 0
51 for _, rdr := range r.readers[i+1:] {
52 rdr.Seek(0, os.SEEK_SET)
53 }
54
55 if rdrOffset == s && i != len(r.readers)-1 {
56 idx++
57 rdrOffset = 0
58 }
59 r.pos = &pos{idx, rdrOffset}
60 return offset, nil
61 }
62 case os.SEEK_END:
63 for _, rdr := range r.readers {
64 s, err := rdr.Seek(0, os.SEEK_END)
65 if err != nil {
66 return -1, err
67 }
68 tmpOffset += s
69 }
70 r.Seek(tmpOffset+offset, os.SEEK_SET)
71 return tmpOffset + offset, nil
72 case os.SEEK_CUR:
73 if r.pos == nil {
74 return r.Seek(offset, os.SEEK_SET)
75 }
76 // Just return the current offset
77 if offset == 0 {
78 return r.getCurOffset()
79 }
80
81 curOffset, err := r.getCurOffset()
82 if err != nil {
83 return -1, err
84 }
85 rdr, rdrOffset, err := r.getReaderForOffset(curOffset + offset)
86 if err != nil {
87 return -1, err
88 }
89
90 r.pos = &pos{r.posIdx[rdr], rdrOffset}
91 return curOffset + offset, nil
92 default:
93 return -1, fmt.Errorf("Invalid whence: %d", whence)
94 }
95
96 return -1, fmt.Errorf("Error seeking for whence: %d, offset: %d", whence, offset)
97}
98
99func (r *multiReadSeeker) getReaderForOffset(offset int64) (io.ReadSeeker, int64, error) {
100 var rdr io.ReadSeeker
101 var rdrOffset int64
102
103 for i, rdr := range r.readers {
104 offsetTo, err := r.getOffsetToReader(rdr)
105 if err != nil {
106 return nil, -1, err
107 }
108 if offsetTo > offset {
109 rdr = r.readers[i-1]
110 rdrOffset = offsetTo - offset
111 break
112 }
113
114 if rdr == r.readers[len(r.readers)-1] {
115 rdrOffset = offsetTo + offset
116 break
117 }
118 }
119
120 return rdr, rdrOffset, nil
121}
122
123func (r *multiReadSeeker) getCurOffset() (int64, error) {
124 var totalSize int64
125 for _, rdr := range r.readers[:r.pos.idx+1] {
126 if r.posIdx[rdr] == r.pos.idx {
127 totalSize += r.pos.offset
128 break
129 }
130
131 size, err := getReadSeekerSize(rdr)
132 if err != nil {
133 return -1, fmt.Errorf("error getting seeker size: %v", err)
134 }
135 totalSize += size
136 }
137 return totalSize, nil
138}
139
140func (r *multiReadSeeker) getOffsetToReader(rdr io.ReadSeeker) (int64, error) {
141 var offset int64
142 for _, r := range r.readers {
143 if r == rdr {
144 break
145 }
146
147 size, err := getReadSeekerSize(rdr)
148 if err != nil {
149 return -1, err
150 }
151 offset += size
152 }
153 return offset, nil
154}
155
156func (r *multiReadSeeker) Read(b []byte) (int, error) {
157 if r.pos == nil {
158 r.pos = &pos{0, 0}
159 }
160
161 bCap := int64(cap(b))
162 buf := bytes.NewBuffer(nil)
163 var rdr io.ReadSeeker
164
165 for _, rdr = range r.readers[r.pos.idx:] {
166 readBytes, err := io.CopyN(buf, rdr, bCap)
167 if err != nil && err != io.EOF {
168 return -1, err
169 }
170 bCap -= readBytes
171
172 if bCap == 0 {
173 break
174 }
175 }
176
177 rdrPos, err := rdr.Seek(0, os.SEEK_CUR)
178 if err != nil {
179 return -1, err
180 }
181 r.pos = &pos{r.posIdx[rdr], rdrPos}
182 return buf.Read(b)
183}
184
185func getReadSeekerSize(rdr io.ReadSeeker) (int64, error) {
186 // save the current position
187 pos, err := rdr.Seek(0, os.SEEK_CUR)
188 if err != nil {
189 return -1, err
190 }
191
192 // get the size
193 size, err := rdr.Seek(0, os.SEEK_END)
194 if err != nil {
195 return -1, err
196 }
197
198 // reset the position
199 if _, err := rdr.Seek(pos, os.SEEK_SET); err != nil {
200 return -1, err
201 }
202 return size, nil
203}
204
205// MultiReadSeeker returns a ReadSeeker that's the logical concatenation of the provided
206// input readseekers. After calling this method the initial position is set to the
207// beginning of the first ReadSeeker. At the end of a ReadSeeker, Read always advances
208// to the beginning of the next ReadSeeker and returns EOF at the end of the last ReadSeeker.
209// Seek can be used over the sum of lengths of all readseekers.
210//
211// When a MultiReadSeeker is used, no Read and Seek operations should be made on
212// its ReadSeeker components. Also, users should make no assumption on the state
213// of individual readseekers while the MultiReadSeeker is used.
214func MultiReadSeeker(readers ...io.ReadSeeker) io.ReadSeeker {
215 if len(readers) == 1 {
216 return readers[0]
217 }
218 idx := make(map[io.ReadSeeker]int)
219 for i, rdr := range readers {
220 idx[rdr] = i
221 }
222 return &multiReadSeeker{
223 readers: readers,
224 posIdx: idx,
225 }
226}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/readers.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/readers.go
deleted file mode 100644
index a891955..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/readers.go
+++ /dev/null
@@ -1,154 +0,0 @@
1package ioutils
2
3import (
4 "crypto/sha256"
5 "encoding/hex"
6 "io"
7
8 "github.com/fsouza/go-dockerclient/external/golang.org/x/net/context"
9)
10
11type readCloserWrapper struct {
12 io.Reader
13 closer func() error
14}
15
16func (r *readCloserWrapper) Close() error {
17 return r.closer()
18}
19
20// NewReadCloserWrapper returns a new io.ReadCloser.
21func NewReadCloserWrapper(r io.Reader, closer func() error) io.ReadCloser {
22 return &readCloserWrapper{
23 Reader: r,
24 closer: closer,
25 }
26}
27
28type readerErrWrapper struct {
29 reader io.Reader
30 closer func()
31}
32
33func (r *readerErrWrapper) Read(p []byte) (int, error) {
34 n, err := r.reader.Read(p)
35 if err != nil {
36 r.closer()
37 }
38 return n, err
39}
40
41// NewReaderErrWrapper returns a new io.Reader.
42func NewReaderErrWrapper(r io.Reader, closer func()) io.Reader {
43 return &readerErrWrapper{
44 reader: r,
45 closer: closer,
46 }
47}
48
49// HashData returns the sha256 sum of src.
50func HashData(src io.Reader) (string, error) {
51 h := sha256.New()
52 if _, err := io.Copy(h, src); err != nil {
53 return "", err
54 }
55 return "sha256:" + hex.EncodeToString(h.Sum(nil)), nil
56}
57
58// OnEOFReader wraps a io.ReadCloser and a function
59// the function will run at the end of file or close the file.
60type OnEOFReader struct {
61 Rc io.ReadCloser
62 Fn func()
63}
64
65func (r *OnEOFReader) Read(p []byte) (n int, err error) {
66 n, err = r.Rc.Read(p)
67 if err == io.EOF {
68 r.runFunc()
69 }
70 return
71}
72
73// Close closes the file and run the function.
74func (r *OnEOFReader) Close() error {
75 err := r.Rc.Close()
76 r.runFunc()
77 return err
78}
79
80func (r *OnEOFReader) runFunc() {
81 if fn := r.Fn; fn != nil {
82 fn()
83 r.Fn = nil
84 }
85}
86
87// cancelReadCloser wraps an io.ReadCloser with a context for cancelling read
88// operations.
89type cancelReadCloser struct {
90 cancel func()
91 pR *io.PipeReader // Stream to read from
92 pW *io.PipeWriter
93}
94
95// NewCancelReadCloser creates a wrapper that closes the ReadCloser when the
96// context is cancelled. The returned io.ReadCloser must be closed when it is
97// no longer needed.
98func NewCancelReadCloser(ctx context.Context, in io.ReadCloser) io.ReadCloser {
99 pR, pW := io.Pipe()
100
101 // Create a context used to signal when the pipe is closed
102 doneCtx, cancel := context.WithCancel(context.Background())
103
104 p := &cancelReadCloser{
105 cancel: cancel,
106 pR: pR,
107 pW: pW,
108 }
109
110 go func() {
111 _, err := io.Copy(pW, in)
112 select {
113 case <-ctx.Done():
114 // If the context was closed, p.closeWithError
115 // was already called. Calling it again would
116 // change the error that Read returns.
117 default:
118 p.closeWithError(err)
119 }
120 in.Close()
121 }()
122 go func() {
123 for {
124 select {
125 case <-ctx.Done():
126 p.closeWithError(ctx.Err())
127 case <-doneCtx.Done():
128 return
129 }
130 }
131 }()
132
133 return p
134}
135
136// Read wraps the Read method of the pipe that provides data from the wrapped
137// ReadCloser.
138func (p *cancelReadCloser) Read(buf []byte) (n int, err error) {
139 return p.pR.Read(buf)
140}
141
142// closeWithError closes the wrapper and its underlying reader. It will
143// cause future calls to Read to return err.
144func (p *cancelReadCloser) closeWithError(err error) {
145 p.pW.CloseWithError(err)
146 p.cancel()
147}
148
149// Close closes the wrapper its underlying reader. It will cause
150// future calls to Read to return io.EOF.
151func (p *cancelReadCloser) Close() error {
152 p.closeWithError(io.EOF)
153 return nil
154}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler.go
deleted file mode 100644
index 3c88f29..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler.go
+++ /dev/null
@@ -1,6 +0,0 @@
1// +build !gccgo
2
3package ioutils
4
5func callSchedulerIfNecessary() {
6}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler_gccgo.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler_gccgo.go
deleted file mode 100644
index c11d02b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler_gccgo.go
+++ /dev/null
@@ -1,13 +0,0 @@
1// +build gccgo
2
3package ioutils
4
5import (
6 "runtime"
7)
8
9func callSchedulerIfNecessary() {
10 //allow or force Go scheduler to switch context, without explicitly
11 //forcing this will make it hang when using gccgo implementation
12 runtime.Gosched()
13}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_unix.go
deleted file mode 100644
index 1539ad2..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_unix.go
+++ /dev/null
@@ -1,10 +0,0 @@
1// +build !windows
2
3package ioutils
4
5import "io/ioutil"
6
7// TempDir on Unix systems is equivalent to ioutil.TempDir.
8func TempDir(dir, prefix string) (string, error) {
9 return ioutil.TempDir(dir, prefix)
10}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_windows.go
deleted file mode 100644
index 72c0bc5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_windows.go
+++ /dev/null
@@ -1,18 +0,0 @@
1// +build windows
2
3package ioutils
4
5import (
6 "io/ioutil"
7
8 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/longpath"
9)
10
11// TempDir is the equivalent of ioutil.TempDir, except that the result is in Windows longpath format.
12func TempDir(dir, prefix string) (string, error) {
13 tempDir, err := ioutil.TempDir(dir, prefix)
14 if err != nil {
15 return "", err
16 }
17 return longpath.AddPrefix(tempDir), nil
18}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/writeflusher.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/writeflusher.go
deleted file mode 100644
index 2b35a26..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/writeflusher.go
+++ /dev/null
@@ -1,92 +0,0 @@
1package ioutils
2
3import (
4 "errors"
5 "io"
6 "net/http"
7 "sync"
8)
9
10// WriteFlusher wraps the Write and Flush operation ensuring that every write
11// is a flush. In addition, the Close method can be called to intercept
12// Read/Write calls if the targets lifecycle has already ended.
13type WriteFlusher struct {
14 mu sync.Mutex
15 w io.Writer
16 flusher http.Flusher
17 flushed bool
18 closed error
19
20 // TODO(stevvooe): Use channel for closed instead, remove mutex. Using a
21 // channel will allow one to properly order the operations.
22}
23
24var errWriteFlusherClosed = errors.New("writeflusher: closed")
25
26func (wf *WriteFlusher) Write(b []byte) (n int, err error) {
27 wf.mu.Lock()
28 defer wf.mu.Unlock()
29 if wf.closed != nil {
30 return 0, wf.closed
31 }
32
33 n, err = wf.w.Write(b)
34 wf.flush() // every write is a flush.
35 return n, err
36}
37
38// Flush the stream immediately.
39func (wf *WriteFlusher) Flush() {
40 wf.mu.Lock()
41 defer wf.mu.Unlock()
42
43 wf.flush()
44}
45
46// flush the stream immediately without taking a lock. Used internally.
47func (wf *WriteFlusher) flush() {
48 if wf.closed != nil {
49 return
50 }
51
52 wf.flushed = true
53 wf.flusher.Flush()
54}
55
56// Flushed returns the state of flushed.
57// If it's flushed, return true, or else it return false.
58func (wf *WriteFlusher) Flushed() bool {
59 // BUG(stevvooe): Remove this method. Its use is inherently racy. Seems to
60 // be used to detect whether or a response code has been issued or not.
61 // Another hook should be used instead.
62 wf.mu.Lock()
63 defer wf.mu.Unlock()
64
65 return wf.flushed
66}
67
68// Close closes the write flusher, disallowing any further writes to the
69// target. After the flusher is closed, all calls to write or flush will
70// result in an error.
71func (wf *WriteFlusher) Close() error {
72 wf.mu.Lock()
73 defer wf.mu.Unlock()
74
75 if wf.closed != nil {
76 return wf.closed
77 }
78
79 wf.closed = errWriteFlusherClosed
80 return nil
81}
82
83// NewWriteFlusher returns a new WriteFlusher.
84func NewWriteFlusher(w io.Writer) *WriteFlusher {
85 var flusher http.Flusher
86 if f, ok := w.(http.Flusher); ok {
87 flusher = f
88 } else {
89 flusher = &NopFlusher{}
90 }
91 return &WriteFlusher{w: w, flusher: flusher}
92}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/writers.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/writers.go
deleted file mode 100644
index ccc7f9c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/writers.go
+++ /dev/null
@@ -1,66 +0,0 @@
1package ioutils
2
3import "io"
4
5// NopWriter represents a type which write operation is nop.
6type NopWriter struct{}
7
8func (*NopWriter) Write(buf []byte) (int, error) {
9 return len(buf), nil
10}
11
12type nopWriteCloser struct {
13 io.Writer
14}
15
16func (w *nopWriteCloser) Close() error { return nil }
17
18// NopWriteCloser returns a nopWriteCloser.
19func NopWriteCloser(w io.Writer) io.WriteCloser {
20 return &nopWriteCloser{w}
21}
22
23// NopFlusher represents a type which flush operation is nop.
24type NopFlusher struct{}
25
26// Flush is a nop operation.
27func (f *NopFlusher) Flush() {}
28
29type writeCloserWrapper struct {
30 io.Writer
31 closer func() error
32}
33
34func (r *writeCloserWrapper) Close() error {
35 return r.closer()
36}
37
38// NewWriteCloserWrapper returns a new io.WriteCloser.
39func NewWriteCloserWrapper(r io.Writer, closer func() error) io.WriteCloser {
40 return &writeCloserWrapper{
41 Writer: r,
42 closer: closer,
43 }
44}
45
46// WriteCounter wraps a concrete io.Writer and hold a count of the number
47// of bytes written to the writer during a "session".
48// This can be convenient when write return is masked
49// (e.g., json.Encoder.Encode())
50type WriteCounter struct {
51 Count int64
52 Writer io.Writer
53}
54
55// NewWriteCounter returns a new WriteCounter.
56func NewWriteCounter(w io.Writer) *WriteCounter {
57 return &WriteCounter{
58 Writer: w,
59 }
60}
61
62func (wc *WriteCounter) Write(p []byte) (count int, err error) {
63 count, err = wc.Writer.Write(p)
64 wc.Count += int64(count)
65 return
66}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/longpath/longpath.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/longpath/longpath.go
deleted file mode 100644
index 9b15bff..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/longpath/longpath.go
+++ /dev/null
@@ -1,26 +0,0 @@
1// longpath introduces some constants and helper functions for handling long paths
2// in Windows, which are expected to be prepended with `\\?\` and followed by either
3// a drive letter, a UNC server\share, or a volume identifier.
4
5package longpath
6
7import (
8 "strings"
9)
10
11// Prefix is the longpath prefix for Windows file paths.
12const Prefix = `\\?\`
13
14// AddPrefix will add the Windows long path prefix to the path provided if
15// it does not already have it.
16func AddPrefix(path string) string {
17 if !strings.HasPrefix(path, Prefix) {
18 if strings.HasPrefix(path, `\\`) {
19 // This is a UNC path, so we need to add 'UNC' to the path as well.
20 path = Prefix + `UNC` + path[1:]
21 } else {
22 path = Prefix + path
23 }
24 }
25 return path
26}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/pools/pools.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/pools/pools.go
deleted file mode 100644
index 515fb4d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/pools/pools.go
+++ /dev/null
@@ -1,119 +0,0 @@
1// Package pools provides a collection of pools which provide various
2// data types with buffers. These can be used to lower the number of
3// memory allocations and reuse buffers.
4//
5// New pools should be added to this package to allow them to be
6// shared across packages.
7//
8// Utility functions which operate on pools should be added to this
9// package to allow them to be reused.
10package pools
11
12import (
13 "bufio"
14 "io"
15 "sync"
16
17 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils"
18)
19
20var (
21 // BufioReader32KPool is a pool which returns bufio.Reader with a 32K buffer.
22 BufioReader32KPool *BufioReaderPool
23 // BufioWriter32KPool is a pool which returns bufio.Writer with a 32K buffer.
24 BufioWriter32KPool *BufioWriterPool
25)
26
27const buffer32K = 32 * 1024
28
29// BufioReaderPool is a bufio reader that uses sync.Pool.
30type BufioReaderPool struct {
31 pool sync.Pool
32}
33
34func init() {
35 BufioReader32KPool = newBufioReaderPoolWithSize(buffer32K)
36 BufioWriter32KPool = newBufioWriterPoolWithSize(buffer32K)
37}
38
39// newBufioReaderPoolWithSize is unexported because new pools should be
40// added here to be shared where required.
41func newBufioReaderPoolWithSize(size int) *BufioReaderPool {
42 pool := sync.Pool{
43 New: func() interface{} { return bufio.NewReaderSize(nil, size) },
44 }
45 return &BufioReaderPool{pool: pool}
46}
47
48// Get returns a bufio.Reader which reads from r. The buffer size is that of the pool.
49func (bufPool *BufioReaderPool) Get(r io.Reader) *bufio.Reader {
50 buf := bufPool.pool.Get().(*bufio.Reader)
51 buf.Reset(r)
52 return buf
53}
54
55// Put puts the bufio.Reader back into the pool.
56func (bufPool *BufioReaderPool) Put(b *bufio.Reader) {
57 b.Reset(nil)
58 bufPool.pool.Put(b)
59}
60
61// Copy is a convenience wrapper which uses a buffer to avoid allocation in io.Copy.
62func Copy(dst io.Writer, src io.Reader) (written int64, err error) {
63 buf := BufioReader32KPool.Get(src)
64 written, err = io.Copy(dst, buf)
65 BufioReader32KPool.Put(buf)
66 return
67}
68
69// NewReadCloserWrapper returns a wrapper which puts the bufio.Reader back
70// into the pool and closes the reader if it's an io.ReadCloser.
71func (bufPool *BufioReaderPool) NewReadCloserWrapper(buf *bufio.Reader, r io.Reader) io.ReadCloser {
72 return ioutils.NewReadCloserWrapper(r, func() error {
73 if readCloser, ok := r.(io.ReadCloser); ok {
74 readCloser.Close()
75 }
76 bufPool.Put(buf)
77 return nil
78 })
79}
80
81// BufioWriterPool is a bufio writer that uses sync.Pool.
82type BufioWriterPool struct {
83 pool sync.Pool
84}
85
86// newBufioWriterPoolWithSize is unexported because new pools should be
87// added here to be shared where required.
88func newBufioWriterPoolWithSize(size int) *BufioWriterPool {
89 pool := sync.Pool{
90 New: func() interface{} { return bufio.NewWriterSize(nil, size) },
91 }
92 return &BufioWriterPool{pool: pool}
93}
94
95// Get returns a bufio.Writer which writes to w. The buffer size is that of the pool.
96func (bufPool *BufioWriterPool) Get(w io.Writer) *bufio.Writer {
97 buf := bufPool.pool.Get().(*bufio.Writer)
98 buf.Reset(w)
99 return buf
100}
101
102// Put puts the bufio.Writer back into the pool.
103func (bufPool *BufioWriterPool) Put(b *bufio.Writer) {
104 b.Reset(nil)
105 bufPool.pool.Put(b)
106}
107
108// NewWriteCloserWrapper returns a wrapper which puts the bufio.Writer back
109// into the pool and closes the writer if it's an io.Writecloser.
110func (bufPool *BufioWriterPool) NewWriteCloserWrapper(buf *bufio.Writer, w io.Writer) io.WriteCloser {
111 return ioutils.NewWriteCloserWrapper(w, func() error {
112 buf.Flush()
113 if writeCloser, ok := w.(io.WriteCloser); ok {
114 writeCloser.Close()
115 }
116 bufPool.Put(buf)
117 return nil
118 })
119}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/promise/promise.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/promise/promise.go
deleted file mode 100644
index dd52b90..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/promise/promise.go
+++ /dev/null
@@ -1,11 +0,0 @@
1package promise
2
3// Go is a basic promise implementation: it wraps calls a function in a goroutine,
4// and returns a channel which will later return the function's return value.
5func Go(f func() error) chan error {
6 ch := make(chan error, 1)
7 go func() {
8 ch <- f()
9 }()
10 return ch
11}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/stdcopy/stdcopy.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/stdcopy/stdcopy.go
deleted file mode 100644
index b2c6004..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/stdcopy/stdcopy.go
+++ /dev/null
@@ -1,175 +0,0 @@
1package stdcopy
2
3import (
4 "encoding/binary"
5 "errors"
6 "io"
7
8 "github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus"
9)
10
11const (
12 stdWriterPrefixLen = 8
13 stdWriterFdIndex = 0
14 stdWriterSizeIndex = 4
15
16 startingBufLen = 32*1024 + stdWriterPrefixLen + 1
17)
18
19// StdType prefixes type and length to standard stream.
20type StdType [stdWriterPrefixLen]byte
21
22var (
23 // Stdin represents standard input stream type.
24 Stdin = StdType{0: 0}
25 // Stdout represents standard output stream type.
26 Stdout = StdType{0: 1}
27 // Stderr represents standard error steam type.
28 Stderr = StdType{0: 2}
29)
30
31// StdWriter is wrapper of io.Writer with extra customized info.
32type StdWriter struct {
33 io.Writer
34 prefix StdType
35 sizeBuf []byte
36}
37
38func (w *StdWriter) Write(buf []byte) (n int, err error) {
39 var n1, n2 int
40 if w == nil || w.Writer == nil {
41 return 0, errors.New("Writer not instantiated")
42 }
43 binary.BigEndian.PutUint32(w.prefix[4:], uint32(len(buf)))
44 n1, err = w.Writer.Write(w.prefix[:])
45 if err != nil {
46 n = n1 - stdWriterPrefixLen
47 } else {
48 n2, err = w.Writer.Write(buf)
49 n = n1 + n2 - stdWriterPrefixLen
50 }
51 if n < 0 {
52 n = 0
53 }
54 return
55}
56
57// NewStdWriter instantiates a new Writer.
58// Everything written to it will be encapsulated using a custom format,
59// and written to the underlying `w` stream.
60// This allows multiple write streams (e.g. stdout and stderr) to be muxed into a single connection.
61// `t` indicates the id of the stream to encapsulate.
62// It can be stdcopy.Stdin, stdcopy.Stdout, stdcopy.Stderr.
63func NewStdWriter(w io.Writer, t StdType) *StdWriter {
64 return &StdWriter{
65 Writer: w,
66 prefix: t,
67 sizeBuf: make([]byte, 4),
68 }
69}
70
71var errInvalidStdHeader = errors.New("Unrecognized input header")
72
73// StdCopy is a modified version of io.Copy.
74//
75// StdCopy will demultiplex `src`, assuming that it contains two streams,
76// previously multiplexed together using a StdWriter instance.
77// As it reads from `src`, StdCopy will write to `dstout` and `dsterr`.
78//
79// StdCopy will read until it hits EOF on `src`. It will then return a nil error.
80// In other words: if `err` is non nil, it indicates a real underlying error.
81//
82// `written` will hold the total number of bytes written to `dstout` and `dsterr`.
83func StdCopy(dstout, dsterr io.Writer, src io.Reader) (written int64, err error) {
84 var (
85 buf = make([]byte, startingBufLen)
86 bufLen = len(buf)
87 nr, nw int
88 er, ew error
89 out io.Writer
90 frameSize int
91 )
92
93 for {
94 // Make sure we have at least a full header
95 for nr < stdWriterPrefixLen {
96 var nr2 int
97 nr2, er = src.Read(buf[nr:])
98 nr += nr2
99 if er == io.EOF {
100 if nr < stdWriterPrefixLen {
101 logrus.Debugf("Corrupted prefix: %v", buf[:nr])
102 return written, nil
103 }
104 break
105 }
106 if er != nil {
107 logrus.Debugf("Error reading header: %s", er)
108 return 0, er
109 }
110 }
111
112 // Check the first byte to know where to write
113 switch buf[stdWriterFdIndex] {
114 case 0:
115 fallthrough
116 case 1:
117 // Write on stdout
118 out = dstout
119 case 2:
120 // Write on stderr
121 out = dsterr
122 default:
123 logrus.Debugf("Error selecting output fd: (%d)", buf[stdWriterFdIndex])
124 return 0, errInvalidStdHeader
125 }
126
127 // Retrieve the size of the frame
128 frameSize = int(binary.BigEndian.Uint32(buf[stdWriterSizeIndex : stdWriterSizeIndex+4]))
129 logrus.Debugf("framesize: %d", frameSize)
130
131 // Check if the buffer is big enough to read the frame.
132 // Extend it if necessary.
133 if frameSize+stdWriterPrefixLen > bufLen {
134 logrus.Debugf("Extending buffer cap by %d (was %d)", frameSize+stdWriterPrefixLen-bufLen+1, len(buf))
135 buf = append(buf, make([]byte, frameSize+stdWriterPrefixLen-bufLen+1)...)
136 bufLen = len(buf)
137 }
138
139 // While the amount of bytes read is less than the size of the frame + header, we keep reading
140 for nr < frameSize+stdWriterPrefixLen {
141 var nr2 int
142 nr2, er = src.Read(buf[nr:])
143 nr += nr2
144 if er == io.EOF {
145 if nr < frameSize+stdWriterPrefixLen {
146 logrus.Debugf("Corrupted frame: %v", buf[stdWriterPrefixLen:nr])
147 return written, nil
148 }
149 break
150 }
151 if er != nil {
152 logrus.Debugf("Error reading frame: %s", er)
153 return 0, er
154 }
155 }
156
157 // Write the retrieved frame (without header)
158 nw, ew = out.Write(buf[stdWriterPrefixLen : frameSize+stdWriterPrefixLen])
159 if ew != nil {
160 logrus.Debugf("Error writing frame: %s", ew)
161 return 0, ew
162 }
163 // If the frame has not been fully written: error
164 if nw != frameSize {
165 logrus.Debugf("Error Short Write: (%d on %d)", nw, frameSize)
166 return 0, io.ErrShortWrite
167 }
168 written += int64(nw)
169
170 // Move the rest of the buffer to the beginning
171 copy(buf, buf[frameSize+stdWriterPrefixLen:])
172 // Move the index
173 nr -= frameSize + stdWriterPrefixLen
174 }
175}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes.go
deleted file mode 100644
index acf3f56..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes.go
+++ /dev/null
@@ -1,47 +0,0 @@
1package system
2
3import (
4 "os"
5 "syscall"
6 "time"
7 "unsafe"
8)
9
10var (
11 maxTime time.Time
12)
13
14func init() {
15 if unsafe.Sizeof(syscall.Timespec{}.Nsec) == 8 {
16 // This is a 64 bit timespec
17 // os.Chtimes limits time to the following
18 maxTime = time.Unix(0, 1<<63-1)
19 } else {
20 // This is a 32 bit timespec
21 maxTime = time.Unix(1<<31-1, 0)
22 }
23}
24
25// Chtimes changes the access time and modified time of a file at the given path
26func Chtimes(name string, atime time.Time, mtime time.Time) error {
27 unixMinTime := time.Unix(0, 0)
28 unixMaxTime := maxTime
29
30 // If the modified time is prior to the Unix Epoch, or after the
31 // end of Unix Time, os.Chtimes has undefined behavior
32 // default to Unix Epoch in this case, just in case
33
34 if atime.Before(unixMinTime) || atime.After(unixMaxTime) {
35 atime = unixMinTime
36 }
37
38 if mtime.Before(unixMinTime) || mtime.After(unixMaxTime) {
39 mtime = unixMinTime
40 }
41
42 if err := os.Chtimes(name, atime, mtime); err != nil {
43 return err
44 }
45
46 return nil
47}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes_unix.go
deleted file mode 100644
index 09d58bc..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes_unix.go
+++ /dev/null
@@ -1,14 +0,0 @@
1// +build !windows
2
3package system
4
5import (
6 "time"
7)
8
9//setCTime will set the create time on a file. On Unix, the create
10//time is updated as a side effect of setting the modified time, so
11//no action is required.
12func setCTime(path string, ctime time.Time) error {
13 return nil
14}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes_windows.go
deleted file mode 100644
index 2945868..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes_windows.go
+++ /dev/null
@@ -1,27 +0,0 @@
1// +build windows
2
3package system
4
5import (
6 "syscall"
7 "time"
8)
9
10//setCTime will set the create time on a file. On Windows, this requires
11//calling SetFileTime and explicitly including the create time.
12func setCTime(path string, ctime time.Time) error {
13 ctimespec := syscall.NsecToTimespec(ctime.UnixNano())
14 pathp, e := syscall.UTF16PtrFromString(path)
15 if e != nil {
16 return e
17 }
18 h, e := syscall.CreateFile(pathp,
19 syscall.FILE_WRITE_ATTRIBUTES, syscall.FILE_SHARE_WRITE, nil,
20 syscall.OPEN_EXISTING, syscall.FILE_FLAG_BACKUP_SEMANTICS, 0)
21 if e != nil {
22 return e
23 }
24 defer syscall.Close(h)
25 c := syscall.NsecToFiletime(syscall.TimespecToNsec(ctimespec))
26 return syscall.SetFileTime(h, &c, nil, nil)
27}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/errors.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/errors.go
deleted file mode 100644
index 2883189..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/errors.go
+++ /dev/null
@@ -1,10 +0,0 @@
1package system
2
3import (
4 "errors"
5)
6
7var (
8 // ErrNotSupportedPlatform means the platform is not supported.
9 ErrNotSupportedPlatform = errors.New("platform and architecture is not supported")
10)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/events_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/events_windows.go
deleted file mode 100644
index 04e2de7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/events_windows.go
+++ /dev/null
@@ -1,83 +0,0 @@
1package system
2
3// This file implements syscalls for Win32 events which are not implemented
4// in golang.
5
6import (
7 "syscall"
8 "unsafe"
9)
10
11var (
12 procCreateEvent = modkernel32.NewProc("CreateEventW")
13 procOpenEvent = modkernel32.NewProc("OpenEventW")
14 procSetEvent = modkernel32.NewProc("SetEvent")
15 procResetEvent = modkernel32.NewProc("ResetEvent")
16 procPulseEvent = modkernel32.NewProc("PulseEvent")
17)
18
19// CreateEvent implements win32 CreateEventW func in golang. It will create an event object.
20func CreateEvent(eventAttributes *syscall.SecurityAttributes, manualReset bool, initialState bool, name string) (handle syscall.Handle, err error) {
21 namep, _ := syscall.UTF16PtrFromString(name)
22 var _p1 uint32
23 if manualReset {
24 _p1 = 1
25 }
26 var _p2 uint32
27 if initialState {
28 _p2 = 1
29 }
30 r0, _, e1 := procCreateEvent.Call(uintptr(unsafe.Pointer(eventAttributes)), uintptr(_p1), uintptr(_p2), uintptr(unsafe.Pointer(namep)))
31 use(unsafe.Pointer(namep))
32 handle = syscall.Handle(r0)
33 if handle == syscall.InvalidHandle {
34 err = e1
35 }
36 return
37}
38
39// OpenEvent implements win32 OpenEventW func in golang. It opens an event object.
40func OpenEvent(desiredAccess uint32, inheritHandle bool, name string) (handle syscall.Handle, err error) {
41 namep, _ := syscall.UTF16PtrFromString(name)
42 var _p1 uint32
43 if inheritHandle {
44 _p1 = 1
45 }
46 r0, _, e1 := procOpenEvent.Call(uintptr(desiredAccess), uintptr(_p1), uintptr(unsafe.Pointer(namep)))
47 use(unsafe.Pointer(namep))
48 handle = syscall.Handle(r0)
49 if handle == syscall.InvalidHandle {
50 err = e1
51 }
52 return
53}
54
55// SetEvent implements win32 SetEvent func in golang.
56func SetEvent(handle syscall.Handle) (err error) {
57 return setResetPulse(handle, procSetEvent)
58}
59
60// ResetEvent implements win32 ResetEvent func in golang.
61func ResetEvent(handle syscall.Handle) (err error) {
62 return setResetPulse(handle, procResetEvent)
63}
64
65// PulseEvent implements win32 PulseEvent func in golang.
66func PulseEvent(handle syscall.Handle) (err error) {
67 return setResetPulse(handle, procPulseEvent)
68}
69
70func setResetPulse(handle syscall.Handle, proc *syscall.LazyProc) (err error) {
71 r0, _, _ := proc.Call(uintptr(handle))
72 if r0 != 0 {
73 err = syscall.Errno(r0)
74 }
75 return
76}
77
78var temp unsafe.Pointer
79
80// use ensures a variable is kept alive without the GC freeing while still needed
81func use(p unsafe.Pointer) {
82 temp = p
83}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/filesys.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/filesys.go
deleted file mode 100644
index c14feb8..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/filesys.go
+++ /dev/null
@@ -1,19 +0,0 @@
1// +build !windows
2
3package system
4
5import (
6 "os"
7 "path/filepath"
8)
9
10// MkdirAll creates a directory named path along with any necessary parents,
11// with permission specified by attribute perm for all dir created.
12func MkdirAll(path string, perm os.FileMode) error {
13 return os.MkdirAll(path, perm)
14}
15
16// IsAbs is a platform-specific wrapper for filepath.IsAbs.
17func IsAbs(path string) bool {
18 return filepath.IsAbs(path)
19}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/filesys_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/filesys_windows.go
deleted file mode 100644
index 16823d5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/filesys_windows.go
+++ /dev/null
@@ -1,82 +0,0 @@
1// +build windows
2
3package system
4
5import (
6 "os"
7 "path/filepath"
8 "regexp"
9 "strings"
10 "syscall"
11)
12
13// MkdirAll implementation that is volume path aware for Windows.
14func MkdirAll(path string, perm os.FileMode) error {
15 if re := regexp.MustCompile(`^\\\\\?\\Volume{[a-z0-9-]+}$`); re.MatchString(path) {
16 return nil
17 }
18
19 // The rest of this method is copied from os.MkdirAll and should be kept
20 // as-is to ensure compatibility.
21
22 // Fast path: if we can tell whether path is a directory or file, stop with success or error.
23 dir, err := os.Stat(path)
24 if err == nil {
25 if dir.IsDir() {
26 return nil
27 }
28 return &os.PathError{
29 Op: "mkdir",
30 Path: path,
31 Err: syscall.ENOTDIR,
32 }
33 }
34
35 // Slow path: make sure parent exists and then call Mkdir for path.
36 i := len(path)
37 for i > 0 && os.IsPathSeparator(path[i-1]) { // Skip trailing path separator.
38 i--
39 }
40
41 j := i
42 for j > 0 && !os.IsPathSeparator(path[j-1]) { // Scan backward over element.
43 j--
44 }
45
46 if j > 1 {
47 // Create parent
48 err = MkdirAll(path[0:j-1], perm)
49 if err != nil {
50 return err
51 }
52 }
53
54 // Parent now exists; invoke Mkdir and use its result.
55 err = os.Mkdir(path, perm)
56 if err != nil {
57 // Handle arguments like "foo/." by
58 // double-checking that directory doesn't exist.
59 dir, err1 := os.Lstat(path)
60 if err1 == nil && dir.IsDir() {
61 return nil
62 }
63 return err
64 }
65 return nil
66}
67
68// IsAbs is a platform-specific wrapper for filepath.IsAbs. On Windows,
69// golang filepath.IsAbs does not consider a path \windows\system32 as absolute
70// as it doesn't start with a drive-letter/colon combination. However, in
71// docker we need to verify things such as WORKDIR /windows/system32 in
72// a Dockerfile (which gets translated to \windows\system32 when being processed
73// by the daemon. This SHOULD be treated as absolute from a docker processing
74// perspective.
75func IsAbs(path string) bool {
76 if !filepath.IsAbs(path) {
77 if !strings.HasPrefix(path, string(os.PathSeparator)) {
78 return false
79 }
80 }
81 return true
82}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go
deleted file mode 100644
index bd23c4d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go
+++ /dev/null
@@ -1,19 +0,0 @@
1// +build !windows
2
3package system
4
5import (
6 "syscall"
7)
8
9// Lstat takes a path to a file and returns
10// a system.StatT type pertaining to that file.
11//
12// Throws an error if the file does not exist
13func Lstat(path string) (*StatT, error) {
14 s := &syscall.Stat_t{}
15 if err := syscall.Lstat(path, s); err != nil {
16 return nil, err
17 }
18 return fromStatT(s)
19}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat_windows.go
deleted file mode 100644
index 49e87eb..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat_windows.go
+++ /dev/null
@@ -1,25 +0,0 @@
1// +build windows
2
3package system
4
5import (
6 "os"
7)
8
9// Lstat calls os.Lstat to get a fileinfo interface back.
10// This is then copied into our own locally defined structure.
11// Note the Linux version uses fromStatT to do the copy back,
12// but that not strictly necessary when already in an OS specific module.
13func Lstat(path string) (*StatT, error) {
14 fi, err := os.Lstat(path)
15 if err != nil {
16 return nil, err
17 }
18
19 return &StatT{
20 name: fi.Name(),
21 size: fi.Size(),
22 mode: fi.Mode(),
23 modTime: fi.ModTime(),
24 isDir: fi.IsDir()}, nil
25}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo.go
deleted file mode 100644
index 3b6e947..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo.go
+++ /dev/null
@@ -1,17 +0,0 @@
1package system
2
3// MemInfo contains memory statistics of the host system.
4type MemInfo struct {
5 // Total usable RAM (i.e. physical RAM minus a few reserved bits and the
6 // kernel binary code).
7 MemTotal int64
8
9 // Amount of free memory.
10 MemFree int64
11
12 // Total amount of swap space available.
13 SwapTotal int64
14
15 // Amount of swap space that is currently unused.
16 SwapFree int64
17}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_linux.go
deleted file mode 100644
index c14dbf3..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_linux.go
+++ /dev/null
@@ -1,66 +0,0 @@
1package system
2
3import (
4 "bufio"
5 "io"
6 "os"
7 "strconv"
8 "strings"
9
10 "github.com/fsouza/go-dockerclient/external/github.com/docker/go-units"
11)
12
13// ReadMemInfo retrieves memory statistics of the host system and returns a
14// MemInfo type.
15func ReadMemInfo() (*MemInfo, error) {
16 file, err := os.Open("/proc/meminfo")
17 if err != nil {
18 return nil, err
19 }
20 defer file.Close()
21 return parseMemInfo(file)
22}
23
24// parseMemInfo parses the /proc/meminfo file into
25// a MemInfo object given a io.Reader to the file.
26//
27// Throws error if there are problems reading from the file
28func parseMemInfo(reader io.Reader) (*MemInfo, error) {
29 meminfo := &MemInfo{}
30 scanner := bufio.NewScanner(reader)
31 for scanner.Scan() {
32 // Expected format: ["MemTotal:", "1234", "kB"]
33 parts := strings.Fields(scanner.Text())
34
35 // Sanity checks: Skip malformed entries.
36 if len(parts) < 3 || parts[2] != "kB" {
37 continue
38 }
39
40 // Convert to bytes.
41 size, err := strconv.Atoi(parts[1])
42 if err != nil {
43 continue
44 }
45 bytes := int64(size) * units.KiB
46
47 switch parts[0] {
48 case "MemTotal:":
49 meminfo.MemTotal = bytes
50 case "MemFree:":
51 meminfo.MemFree = bytes
52 case "SwapTotal:":
53 meminfo.SwapTotal = bytes
54 case "SwapFree:":
55 meminfo.SwapFree = bytes
56 }
57
58 }
59
60 // Handle errors that may have occurred during the reading of the file.
61 if err := scanner.Err(); err != nil {
62 return nil, err
63 }
64
65 return meminfo, nil
66}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_unsupported.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_unsupported.go
deleted file mode 100644
index 82ddd30..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_unsupported.go
+++ /dev/null
@@ -1,8 +0,0 @@
1// +build !linux,!windows
2
3package system
4
5// ReadMemInfo is not supported on platforms other than linux and windows.
6func ReadMemInfo() (*MemInfo, error) {
7 return nil, ErrNotSupportedPlatform
8}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_windows.go
deleted file mode 100644
index d466425..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_windows.go
+++ /dev/null
@@ -1,44 +0,0 @@
1package system
2
3import (
4 "syscall"
5 "unsafe"
6)
7
8var (
9 modkernel32 = syscall.NewLazyDLL("kernel32.dll")
10
11 procGlobalMemoryStatusEx = modkernel32.NewProc("GlobalMemoryStatusEx")
12)
13
14// https://msdn.microsoft.com/en-us/library/windows/desktop/aa366589(v=vs.85).aspx
15// https://msdn.microsoft.com/en-us/library/windows/desktop/aa366770(v=vs.85).aspx
16type memorystatusex struct {
17 dwLength uint32
18 dwMemoryLoad uint32
19 ullTotalPhys uint64
20 ullAvailPhys uint64
21 ullTotalPageFile uint64
22 ullAvailPageFile uint64
23 ullTotalVirtual uint64
24 ullAvailVirtual uint64
25 ullAvailExtendedVirtual uint64
26}
27
28// ReadMemInfo retrieves memory statistics of the host system and returns a
29// MemInfo type.
30func ReadMemInfo() (*MemInfo, error) {
31 msi := &memorystatusex{
32 dwLength: 64,
33 }
34 r1, _, _ := procGlobalMemoryStatusEx.Call(uintptr(unsafe.Pointer(msi)))
35 if r1 == 0 {
36 return &MemInfo{}, nil
37 }
38 return &MemInfo{
39 MemTotal: int64(msi.ullTotalPhys),
40 MemFree: int64(msi.ullAvailPhys),
41 SwapTotal: int64(msi.ullTotalPageFile),
42 SwapFree: int64(msi.ullAvailPageFile),
43 }, nil
44}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/mknod.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/mknod.go
deleted file mode 100644
index 7395818..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/mknod.go
+++ /dev/null
@@ -1,22 +0,0 @@
1// +build !windows
2
3package system
4
5import (
6 "syscall"
7)
8
9// Mknod creates a filesystem node (file, device special file or named pipe) named path
10// with attributes specified by mode and dev.
11func Mknod(path string, mode uint32, dev int) error {
12 return syscall.Mknod(path, mode, dev)
13}
14
15// Mkdev is used to build the value of linux devices (in /dev/) which specifies major
16// and minor number of the newly created device special file.
17// Linux device nodes are a bit weird due to backwards compat with 16 bit device nodes.
18// They are, from low to high: the lower 8 bits of the minor, then 12 bits of the major,
19// then the top 12 bits of the minor.
20func Mkdev(major int64, minor int64) uint32 {
21 return uint32(((minor & 0xfff00) << 12) | ((major & 0xfff) << 8) | (minor & 0xff))
22}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/mknod_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/mknod_windows.go
deleted file mode 100644
index 2e863c0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/mknod_windows.go
+++ /dev/null
@@ -1,13 +0,0 @@
1// +build windows
2
3package system
4
5// Mknod is not implemented on Windows.
6func Mknod(path string, mode uint32, dev int) error {
7 return ErrNotSupportedPlatform
8}
9
10// Mkdev is not implemented on Windows.
11func Mkdev(major int64, minor int64) uint32 {
12 panic("Mkdev not implemented on Windows.")
13}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_unix.go
deleted file mode 100644
index 1b6cc9c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_unix.go
+++ /dev/null
@@ -1,8 +0,0 @@
1// +build !windows
2
3package system
4
5// DefaultPathEnv is unix style list of directories to search for
6// executables. Each directory is separated from the next by a colon
7// ':' character .
8const DefaultPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_windows.go
deleted file mode 100644
index 09e7f89..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_windows.go
+++ /dev/null
@@ -1,7 +0,0 @@
1// +build windows
2
3package system
4
5// DefaultPathEnv is deliberately empty on Windows as the default path will be set by
6// the container. Docker has no context of what the default path should be.
7const DefaultPathEnv = ""
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat.go
deleted file mode 100644
index 087034c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat.go
+++ /dev/null
@@ -1,53 +0,0 @@
1// +build !windows
2
3package system
4
5import (
6 "syscall"
7)
8
9// StatT type contains status of a file. It contains metadata
10// like permission, owner, group, size, etc about a file.
11type StatT struct {
12 mode uint32
13 uid uint32
14 gid uint32
15 rdev uint64
16 size int64
17 mtim syscall.Timespec
18}
19
20// Mode returns file's permission mode.
21func (s StatT) Mode() uint32 {
22 return s.mode
23}
24
25// UID returns file's user id of owner.
26func (s StatT) UID() uint32 {
27 return s.uid
28}
29
30// GID returns file's group id of owner.
31func (s StatT) GID() uint32 {
32 return s.gid
33}
34
35// Rdev returns file's device ID (if it's special file).
36func (s StatT) Rdev() uint64 {
37 return s.rdev
38}
39
40// Size returns file's size.
41func (s StatT) Size() int64 {
42 return s.size
43}
44
45// Mtim returns file's last modification time.
46func (s StatT) Mtim() syscall.Timespec {
47 return s.mtim
48}
49
50// GetLastModification returns file's last modification time.
51func (s StatT) GetLastModification() syscall.Timespec {
52 return s.Mtim()
53}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_freebsd.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_freebsd.go
deleted file mode 100644
index d0fb6f1..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_freebsd.go
+++ /dev/null
@@ -1,27 +0,0 @@
1package system
2
3import (
4 "syscall"
5)
6
7// fromStatT converts a syscall.Stat_t type to a system.Stat_t type
8func fromStatT(s *syscall.Stat_t) (*StatT, error) {
9 return &StatT{size: s.Size,
10 mode: uint32(s.Mode),
11 uid: s.Uid,
12 gid: s.Gid,
13 rdev: uint64(s.Rdev),
14 mtim: s.Mtimespec}, nil
15}
16
17// Stat takes a path to a file and returns
18// a system.Stat_t type pertaining to that file.
19//
20// Throws an error if the file does not exist
21func Stat(path string) (*StatT, error) {
22 s := &syscall.Stat_t{}
23 if err := syscall.Stat(path, s); err != nil {
24 return nil, err
25 }
26 return fromStatT(s)
27}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_linux.go
deleted file mode 100644
index 8b1eded..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_linux.go
+++ /dev/null
@@ -1,33 +0,0 @@
1package system
2
3import (
4 "syscall"
5)
6
7// fromStatT converts a syscall.Stat_t type to a system.Stat_t type
8func fromStatT(s *syscall.Stat_t) (*StatT, error) {
9 return &StatT{size: s.Size,
10 mode: s.Mode,
11 uid: s.Uid,
12 gid: s.Gid,
13 rdev: s.Rdev,
14 mtim: s.Mtim}, nil
15}
16
17// FromStatT exists only on linux, and loads a system.StatT from a
18// syscal.Stat_t.
19func FromStatT(s *syscall.Stat_t) (*StatT, error) {
20 return fromStatT(s)
21}
22
23// Stat takes a path to a file and returns
24// a system.StatT type pertaining to that file.
25//
26// Throws an error if the file does not exist
27func Stat(path string) (*StatT, error) {
28 s := &syscall.Stat_t{}
29 if err := syscall.Stat(path, s); err != nil {
30 return nil, err
31 }
32 return fromStatT(s)
33}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_openbsd.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_openbsd.go
deleted file mode 100644
index 3c3b71f..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_openbsd.go
+++ /dev/null
@@ -1,15 +0,0 @@
1package system
2
3import (
4 "syscall"
5)
6
7// fromStatT creates a system.StatT type from a syscall.Stat_t type
8func fromStatT(s *syscall.Stat_t) (*StatT, error) {
9 return &StatT{size: s.Size,
10 mode: uint32(s.Mode),
11 uid: s.Uid,
12 gid: s.Gid,
13 rdev: uint64(s.Rdev),
14 mtim: s.Mtim}, nil
15}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_solaris.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_solaris.go
deleted file mode 100644
index b01d08a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_solaris.go
+++ /dev/null
@@ -1,17 +0,0 @@
1// +build solaris
2
3package system
4
5import (
6 "syscall"
7)
8
9// fromStatT creates a system.StatT type from a syscall.Stat_t type
10func fromStatT(s *syscall.Stat_t) (*StatT, error) {
11 return &StatT{size: s.Size,
12 mode: uint32(s.Mode),
13 uid: s.Uid,
14 gid: s.Gid,
15 rdev: uint64(s.Rdev),
16 mtim: s.Mtim}, nil
17}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_unsupported.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_unsupported.go
deleted file mode 100644
index f53e9de..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_unsupported.go
+++ /dev/null
@@ -1,17 +0,0 @@
1// +build !linux,!windows,!freebsd,!solaris,!openbsd
2
3package system
4
5import (
6 "syscall"
7)
8
9// fromStatT creates a system.StatT type from a syscall.Stat_t type
10func fromStatT(s *syscall.Stat_t) (*StatT, error) {
11 return &StatT{size: s.Size,
12 mode: uint32(s.Mode),
13 uid: s.Uid,
14 gid: s.Gid,
15 rdev: uint64(s.Rdev),
16 mtim: s.Mtimespec}, nil
17}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_windows.go
deleted file mode 100644
index 39490c6..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_windows.go
+++ /dev/null
@@ -1,43 +0,0 @@
1// +build windows
2
3package system
4
5import (
6 "os"
7 "time"
8)
9
10// StatT type contains status of a file. It contains metadata
11// like name, permission, size, etc about a file.
12type StatT struct {
13 name string
14 size int64
15 mode os.FileMode
16 modTime time.Time
17 isDir bool
18}
19
20// Name returns file's name.
21func (s StatT) Name() string {
22 return s.name
23}
24
25// Size returns file's size.
26func (s StatT) Size() int64 {
27 return s.size
28}
29
30// Mode returns file's permission mode.
31func (s StatT) Mode() os.FileMode {
32 return s.mode
33}
34
35// ModTime returns file's last modification time.
36func (s StatT) ModTime() time.Time {
37 return s.modTime
38}
39
40// IsDir returns whether file is actually a directory.
41func (s StatT) IsDir() bool {
42 return s.isDir
43}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/syscall_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/syscall_unix.go
deleted file mode 100644
index f1497c5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/syscall_unix.go
+++ /dev/null
@@ -1,11 +0,0 @@
1// +build linux freebsd
2
3package system
4
5import "syscall"
6
7// Unmount is a platform-specific helper function to call
8// the unmount syscall.
9func Unmount(dest string) error {
10 return syscall.Unmount(dest, 0)
11}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/syscall_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/syscall_windows.go
deleted file mode 100644
index 273aa23..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/syscall_windows.go
+++ /dev/null
@@ -1,36 +0,0 @@
1package system
2
3import (
4 "fmt"
5 "syscall"
6)
7
8// OSVersion is a wrapper for Windows version information
9// https://msdn.microsoft.com/en-us/library/windows/desktop/ms724439(v=vs.85).aspx
10type OSVersion struct {
11 Version uint32
12 MajorVersion uint8
13 MinorVersion uint8
14 Build uint16
15}
16
17// GetOSVersion gets the operating system version on Windows. Note that
18// docker.exe must be manifested to get the correct version information.
19func GetOSVersion() (OSVersion, error) {
20 var err error
21 osv := OSVersion{}
22 osv.Version, err = syscall.GetVersion()
23 if err != nil {
24 return osv, fmt.Errorf("Failed to call GetVersion()")
25 }
26 osv.MajorVersion = uint8(osv.Version & 0xFF)
27 osv.MinorVersion = uint8(osv.Version >> 8 & 0xFF)
28 osv.Build = uint16(osv.Version >> 16)
29 return osv, nil
30}
31
32// Unmount is a platform-specific helper function to call
33// the unmount syscall. Not supported on Windows
34func Unmount(dest string) error {
35 return nil
36}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask.go
deleted file mode 100644
index c670fcd..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask.go
+++ /dev/null
@@ -1,13 +0,0 @@
1// +build !windows
2
3package system
4
5import (
6 "syscall"
7)
8
9// Umask sets current process's file mode creation mask to newmask
10// and return oldmask.
11func Umask(newmask int) (oldmask int, err error) {
12 return syscall.Umask(newmask), nil
13}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask_windows.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask_windows.go
deleted file mode 100644
index 13f1de1..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask_windows.go
+++ /dev/null
@@ -1,9 +0,0 @@
1// +build windows
2
3package system
4
5// Umask is not supported on the windows platform.
6func Umask(newmask int) (oldmask int, err error) {
7 // should not be called on cli code path
8 return 0, ErrNotSupportedPlatform
9}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_darwin.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_darwin.go
deleted file mode 100644
index 0a16197..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_darwin.go
+++ /dev/null
@@ -1,8 +0,0 @@
1package system
2
3import "syscall"
4
5// LUtimesNano is not supported by darwin platform.
6func LUtimesNano(path string, ts []syscall.Timespec) error {
7 return ErrNotSupportedPlatform
8}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_freebsd.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_freebsd.go
deleted file mode 100644
index e2eac3b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_freebsd.go
+++ /dev/null
@@ -1,22 +0,0 @@
1package system
2
3import (
4 "syscall"
5 "unsafe"
6)
7
8// LUtimesNano is used to change access and modification time of the specified path.
9// It's used for symbol link file because syscall.UtimesNano doesn't support a NOFOLLOW flag atm.
10func LUtimesNano(path string, ts []syscall.Timespec) error {
11 var _path *byte
12 _path, err := syscall.BytePtrFromString(path)
13 if err != nil {
14 return err
15 }
16
17 if _, _, err := syscall.Syscall(syscall.SYS_LUTIMES, uintptr(unsafe.Pointer(_path)), uintptr(unsafe.Pointer(&ts[0])), 0); err != 0 && err != syscall.ENOSYS {
18 return err
19 }
20
21 return nil
22}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_linux.go
deleted file mode 100644
index fc8a1ab..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_linux.go
+++ /dev/null
@@ -1,26 +0,0 @@
1package system
2
3import (
4 "syscall"
5 "unsafe"
6)
7
8// LUtimesNano is used to change access and modification time of the specified path.
9// It's used for symbol link file because syscall.UtimesNano doesn't support a NOFOLLOW flag atm.
10func LUtimesNano(path string, ts []syscall.Timespec) error {
11 // These are not currently available in syscall
12 atFdCwd := -100
13 atSymLinkNoFollow := 0x100
14
15 var _path *byte
16 _path, err := syscall.BytePtrFromString(path)
17 if err != nil {
18 return err
19 }
20
21 if _, _, err := syscall.Syscall6(syscall.SYS_UTIMENSAT, uintptr(atFdCwd), uintptr(unsafe.Pointer(_path)), uintptr(unsafe.Pointer(&ts[0])), uintptr(atSymLinkNoFollow), 0, 0); err != 0 && err != syscall.ENOSYS {
22 return err
23 }
24
25 return nil
26}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_unsupported.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_unsupported.go
deleted file mode 100644
index 50c3a04..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_unsupported.go
+++ /dev/null
@@ -1,10 +0,0 @@
1// +build !linux,!freebsd,!darwin
2
3package system
4
5import "syscall"
6
7// LUtimesNano is not supported on platforms other than linux, freebsd and darwin.
8func LUtimesNano(path string, ts []syscall.Timespec) error {
9 return ErrNotSupportedPlatform
10}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/xattrs_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/xattrs_linux.go
deleted file mode 100644
index d2e2c05..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/xattrs_linux.go
+++ /dev/null
@@ -1,63 +0,0 @@
1package system
2
3import (
4 "syscall"
5 "unsafe"
6)
7
8// Lgetxattr retrieves the value of the extended attribute identified by attr
9// and associated with the given path in the file system.
10// It will returns a nil slice and nil error if the xattr is not set.
11func Lgetxattr(path string, attr string) ([]byte, error) {
12 pathBytes, err := syscall.BytePtrFromString(path)
13 if err != nil {
14 return nil, err
15 }
16 attrBytes, err := syscall.BytePtrFromString(attr)
17 if err != nil {
18 return nil, err
19 }
20
21 dest := make([]byte, 128)
22 destBytes := unsafe.Pointer(&dest[0])
23 sz, _, errno := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(pathBytes)), uintptr(unsafe.Pointer(attrBytes)), uintptr(destBytes), uintptr(len(dest)), 0, 0)
24 if errno == syscall.ENODATA {
25 return nil, nil
26 }
27 if errno == syscall.ERANGE {
28 dest = make([]byte, sz)
29 destBytes := unsafe.Pointer(&dest[0])
30 sz, _, errno = syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(pathBytes)), uintptr(unsafe.Pointer(attrBytes)), uintptr(destBytes), uintptr(len(dest)), 0, 0)
31 }
32 if errno != 0 {
33 return nil, errno
34 }
35
36 return dest[:sz], nil
37}
38
39var _zero uintptr
40
41// Lsetxattr sets the value of the extended attribute identified by attr
42// and associated with the given path in the file system.
43func Lsetxattr(path string, attr string, data []byte, flags int) error {
44 pathBytes, err := syscall.BytePtrFromString(path)
45 if err != nil {
46 return err
47 }
48 attrBytes, err := syscall.BytePtrFromString(attr)
49 if err != nil {
50 return err
51 }
52 var dataBytes unsafe.Pointer
53 if len(data) > 0 {
54 dataBytes = unsafe.Pointer(&data[0])
55 } else {
56 dataBytes = unsafe.Pointer(&_zero)
57 }
58 _, _, errno := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(pathBytes)), uintptr(unsafe.Pointer(attrBytes)), uintptr(dataBytes), uintptr(len(data)), uintptr(flags), 0)
59 if errno != 0 {
60 return errno
61 }
62 return nil
63}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/xattrs_unsupported.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/xattrs_unsupported.go
deleted file mode 100644
index 0114f22..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/xattrs_unsupported.go
+++ /dev/null
@@ -1,13 +0,0 @@
1// +build !linux
2
3package system
4
5// Lgetxattr is not supported on platforms other than linux.
6func Lgetxattr(path string, attr string) ([]byte, error) {
7 return nil, ErrNotSupportedPlatform
8}
9
10// Lsetxattr is not supported on platforms other than linux.
11func Lsetxattr(path string, attr string, data []byte, flags int) error {
12 return ErrNotSupportedPlatform
13}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/CONTRIBUTING.md b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/CONTRIBUTING.md
deleted file mode 100644
index 9ea86d7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/CONTRIBUTING.md
+++ /dev/null
@@ -1,67 +0,0 @@
1# Contributing to go-units
2
3Want to hack on go-units? Awesome! Here are instructions to get you started.
4
5go-units is a part of the [Docker](https://www.docker.com) project, and follows
6the same rules and principles. If you're already familiar with the way
7Docker does things, you'll feel right at home.
8
9Otherwise, go read Docker's
10[contributions guidelines](https://github.com/docker/docker/blob/master/CONTRIBUTING.md),
11[issue triaging](https://github.com/docker/docker/blob/master/project/ISSUE-TRIAGE.md),
12[review process](https://github.com/docker/docker/blob/master/project/REVIEWING.md) and
13[branches and tags](https://github.com/docker/docker/blob/master/project/BRANCHES-AND-TAGS.md).
14
15### Sign your work
16
17The sign-off is a simple line at the end of the explanation for the patch. Your
18signature certifies that you wrote the patch or otherwise have the right to pass
19it on as an open-source patch. The rules are pretty simple: if you can certify
20the below (from [developercertificate.org](http://developercertificate.org/)):
21
22```
23Developer Certificate of Origin
24Version 1.1
25
26Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
27660 York Street, Suite 102,
28San Francisco, CA 94110 USA
29
30Everyone is permitted to copy and distribute verbatim copies of this
31license document, but changing it is not allowed.
32
33Developer's Certificate of Origin 1.1
34
35By making a contribution to this project, I certify that:
36
37(a) The contribution was created in whole or in part by me and I
38 have the right to submit it under the open source license
39 indicated in the file; or
40
41(b) The contribution is based upon previous work that, to the best
42 of my knowledge, is covered under an appropriate open source
43 license and I have the right under that license to submit that
44 work with modifications, whether created in whole or in part
45 by me, under the same open source license (unless I am
46 permitted to submit under a different license), as indicated
47 in the file; or
48
49(c) The contribution was provided directly to me by some other
50 person who certified (a), (b) or (c) and I have not modified
51 it.
52
53(d) I understand and agree that this project and the contribution
54 are public and that a record of the contribution (including all
55 personal information I submit with it, including my sign-off) is
56 maintained indefinitely and may be redistributed consistent with
57 this project or the open source license(s) involved.
58```
59
60Then you just add a line to every git commit message:
61
62 Signed-off-by: Joe Smith <joe.smith@email.com>
63
64Use your real name (sorry, no pseudonyms or anonymous contributions.)
65
66If you set your `user.name` and `user.email` git configs, you can sign your
67commit automatically with `git commit -s`.
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/LICENSE.docs b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/LICENSE.docs
deleted file mode 100644
index e26cd4f..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/LICENSE.docs
+++ /dev/null
@@ -1,425 +0,0 @@
1Attribution-ShareAlike 4.0 International
2
3=======================================================================
4
5Creative Commons Corporation ("Creative Commons") is not a law firm and
6does not provide legal services or legal advice. Distribution of
7Creative Commons public licenses does not create a lawyer-client or
8other relationship. Creative Commons makes its licenses and related
9information available on an "as-is" basis. Creative Commons gives no
10warranties regarding its licenses, any material licensed under their
11terms and conditions, or any related information. Creative Commons
12disclaims all liability for damages resulting from their use to the
13fullest extent possible.
14
15Using Creative Commons Public Licenses
16
17Creative Commons public licenses provide a standard set of terms and
18conditions that creators and other rights holders may use to share
19original works of authorship and other material subject to copyright
20and certain other rights specified in the public license below. The
21following considerations are for informational purposes only, are not
22exhaustive, and do not form part of our licenses.
23
24 Considerations for licensors: Our public licenses are
25 intended for use by those authorized to give the public
26 permission to use material in ways otherwise restricted by
27 copyright and certain other rights. Our licenses are
28 irrevocable. Licensors should read and understand the terms
29 and conditions of the license they choose before applying it.
30 Licensors should also secure all rights necessary before
31 applying our licenses so that the public can reuse the
32 material as expected. Licensors should clearly mark any
33 material not subject to the license. This includes other CC-
34 licensed material, or material used under an exception or
35 limitation to copyright. More considerations for licensors:
36 wiki.creativecommons.org/Considerations_for_licensors
37
38 Considerations for the public: By using one of our public
39 licenses, a licensor grants the public permission to use the
40 licensed material under specified terms and conditions. If
41 the licensor's permission is not necessary for any reason--for
42 example, because of any applicable exception or limitation to
43 copyright--then that use is not regulated by the license. Our
44 licenses grant only permissions under copyright and certain
45 other rights that a licensor has authority to grant. Use of
46 the licensed material may still be restricted for other
47 reasons, including because others have copyright or other
48 rights in the material. A licensor may make special requests,
49 such as asking that all changes be marked or described.
50 Although not required by our licenses, you are encouraged to
51 respect those requests where reasonable. More_considerations
52 for the public:
53 wiki.creativecommons.org/Considerations_for_licensees
54
55=======================================================================
56
57Creative Commons Attribution-ShareAlike 4.0 International Public
58License
59
60By exercising the Licensed Rights (defined below), You accept and agree
61to be bound by the terms and conditions of this Creative Commons
62Attribution-ShareAlike 4.0 International Public License ("Public
63License"). To the extent this Public License may be interpreted as a
64contract, You are granted the Licensed Rights in consideration of Your
65acceptance of these terms and conditions, and the Licensor grants You
66such rights in consideration of benefits the Licensor receives from
67making the Licensed Material available under these terms and
68conditions.
69
70
71Section 1 -- Definitions.
72
73 a. Adapted Material means material subject to Copyright and Similar
74 Rights that is derived from or based upon the Licensed Material
75 and in which the Licensed Material is translated, altered,
76 arranged, transformed, or otherwise modified in a manner requiring
77 permission under the Copyright and Similar Rights held by the
78 Licensor. For purposes of this Public License, where the Licensed
79 Material is a musical work, performance, or sound recording,
80 Adapted Material is always produced where the Licensed Material is
81 synched in timed relation with a moving image.
82
83 b. Adapter's License means the license You apply to Your Copyright
84 and Similar Rights in Your contributions to Adapted Material in
85 accordance with the terms and conditions of this Public License.
86
87 c. BY-SA Compatible License means a license listed at
88 creativecommons.org/compatiblelicenses, approved by Creative
89 Commons as essentially the equivalent of this Public License.
90
91 d. Copyright and Similar Rights means copyright and/or similar rights
92 closely related to copyright including, without limitation,
93 performance, broadcast, sound recording, and Sui Generis Database
94 Rights, without regard to how the rights are labeled or
95 categorized. For purposes of this Public License, the rights
96 specified in Section 2(b)(1)-(2) are not Copyright and Similar
97 Rights.
98
99 e. Effective Technological Measures means those measures that, in the
100 absence of proper authority, may not be circumvented under laws
101 fulfilling obligations under Article 11 of the WIPO Copyright
102 Treaty adopted on December 20, 1996, and/or similar international
103 agreements.
104
105 f. Exceptions and Limitations means fair use, fair dealing, and/or
106 any other exception or limitation to Copyright and Similar Rights
107 that applies to Your use of the Licensed Material.
108
109 g. License Elements means the license attributes listed in the name
110 of a Creative Commons Public License. The License Elements of this
111 Public License are Attribution and ShareAlike.
112
113 h. Licensed Material means the artistic or literary work, database,
114 or other material to which the Licensor applied this Public
115 License.
116
117 i. Licensed Rights means the rights granted to You subject to the
118 terms and conditions of this Public License, which are limited to
119 all Copyright and Similar Rights that apply to Your use of the
120 Licensed Material and that the Licensor has authority to license.
121
122 j. Licensor means the individual(s) or entity(ies) granting rights
123 under this Public License.
124
125 k. Share means to provide material to the public by any means or
126 process that requires permission under the Licensed Rights, such
127 as reproduction, public display, public performance, distribution,
128 dissemination, communication, or importation, and to make material
129 available to the public including in ways that members of the
130 public may access the material from a place and at a time
131 individually chosen by them.
132
133 l. Sui Generis Database Rights means rights other than copyright
134 resulting from Directive 96/9/EC of the European Parliament and of
135 the Council of 11 March 1996 on the legal protection of databases,
136 as amended and/or succeeded, as well as other essentially
137 equivalent rights anywhere in the world.
138
139 m. You means the individual or entity exercising the Licensed Rights
140 under this Public License. Your has a corresponding meaning.
141
142
143Section 2 -- Scope.
144
145 a. License grant.
146
147 1. Subject to the terms and conditions of this Public License,
148 the Licensor hereby grants You a worldwide, royalty-free,
149 non-sublicensable, non-exclusive, irrevocable license to
150 exercise the Licensed Rights in the Licensed Material to:
151
152 a. reproduce and Share the Licensed Material, in whole or
153 in part; and
154
155 b. produce, reproduce, and Share Adapted Material.
156
157 2. Exceptions and Limitations. For the avoidance of doubt, where
158 Exceptions and Limitations apply to Your use, this Public
159 License does not apply, and You do not need to comply with
160 its terms and conditions.
161
162 3. Term. The term of this Public License is specified in Section
163 6(a).
164
165 4. Media and formats; technical modifications allowed. The
166 Licensor authorizes You to exercise the Licensed Rights in
167 all media and formats whether now known or hereafter created,
168 and to make technical modifications necessary to do so. The
169 Licensor waives and/or agrees not to assert any right or
170 authority to forbid You from making technical modifications
171 necessary to exercise the Licensed Rights, including
172 technical modifications necessary to circumvent Effective
173 Technological Measures. For purposes of this Public License,
174 simply making modifications authorized by this Section 2(a)
175 (4) never produces Adapted Material.
176
177 5. Downstream recipients.
178
179 a. Offer from the Licensor -- Licensed Material. Every
180 recipient of the Licensed Material automatically
181 receives an offer from the Licensor to exercise the
182 Licensed Rights under the terms and conditions of this
183 Public License.
184
185 b. Additional offer from the Licensor -- Adapted Material.
186 Every recipient of Adapted Material from You
187 automatically receives an offer from the Licensor to
188 exercise the Licensed Rights in the Adapted Material
189 under the conditions of the Adapter's License You apply.
190
191 c. No downstream restrictions. You may not offer or impose
192 any additional or different terms or conditions on, or
193 apply any Effective Technological Measures to, the
194 Licensed Material if doing so restricts exercise of the
195 Licensed Rights by any recipient of the Licensed
196 Material.
197
198 6. No endorsement. Nothing in this Public License constitutes or
199 may be construed as permission to assert or imply that You
200 are, or that Your use of the Licensed Material is, connected
201 with, or sponsored, endorsed, or granted official status by,
202 the Licensor or others designated to receive attribution as
203 provided in Section 3(a)(1)(A)(i).
204
205 b. Other rights.
206
207 1. Moral rights, such as the right of integrity, are not
208 licensed under this Public License, nor are publicity,
209 privacy, and/or other similar personality rights; however, to
210 the extent possible, the Licensor waives and/or agrees not to
211 assert any such rights held by the Licensor to the limited
212 extent necessary to allow You to exercise the Licensed
213 Rights, but not otherwise.
214
215 2. Patent and trademark rights are not licensed under this
216 Public License.
217
218 3. To the extent possible, the Licensor waives any right to
219 collect royalties from You for the exercise of the Licensed
220 Rights, whether directly or through a collecting society
221 under any voluntary or waivable statutory or compulsory
222 licensing scheme. In all other cases the Licensor expressly
223 reserves any right to collect such royalties.
224
225
226Section 3 -- License Conditions.
227
228Your exercise of the Licensed Rights is expressly made subject to the
229following conditions.
230
231 a. Attribution.
232
233 1. If You Share the Licensed Material (including in modified
234 form), You must:
235
236 a. retain the following if it is supplied by the Licensor
237 with the Licensed Material:
238
239 i. identification of the creator(s) of the Licensed
240 Material and any others designated to receive
241 attribution, in any reasonable manner requested by
242 the Licensor (including by pseudonym if
243 designated);
244
245 ii. a copyright notice;
246
247 iii. a notice that refers to this Public License;
248
249 iv. a notice that refers to the disclaimer of
250 warranties;
251
252 v. a URI or hyperlink to the Licensed Material to the
253 extent reasonably practicable;
254
255 b. indicate if You modified the Licensed Material and
256 retain an indication of any previous modifications; and
257
258 c. indicate the Licensed Material is licensed under this
259 Public License, and include the text of, or the URI or
260 hyperlink to, this Public License.
261
262 2. You may satisfy the conditions in Section 3(a)(1) in any
263 reasonable manner based on the medium, means, and context in
264 which You Share the Licensed Material. For example, it may be
265 reasonable to satisfy the conditions by providing a URI or
266 hyperlink to a resource that includes the required
267 information.
268
269 3. If requested by the Licensor, You must remove any of the
270 information required by Section 3(a)(1)(A) to the extent
271 reasonably practicable.
272
273 b. ShareAlike.
274
275 In addition to the conditions in Section 3(a), if You Share
276 Adapted Material You produce, the following conditions also apply.
277
278 1. The Adapter's License You apply must be a Creative Commons
279 license with the same License Elements, this version or
280 later, or a BY-SA Compatible License.
281
282 2. You must include the text of, or the URI or hyperlink to, the
283 Adapter's License You apply. You may satisfy this condition
284 in any reasonable manner based on the medium, means, and
285 context in which You Share Adapted Material.
286
287 3. You may not offer or impose any additional or different terms
288 or conditions on, or apply any Effective Technological
289 Measures to, Adapted Material that restrict exercise of the
290 rights granted under the Adapter's License You apply.
291
292
293Section 4 -- Sui Generis Database Rights.
294
295Where the Licensed Rights include Sui Generis Database Rights that
296apply to Your use of the Licensed Material:
297
298 a. for the avoidance of doubt, Section 2(a)(1) grants You the right
299 to extract, reuse, reproduce, and Share all or a substantial
300 portion of the contents of the database;
301
302 b. if You include all or a substantial portion of the database
303 contents in a database in which You have Sui Generis Database
304 Rights, then the database in which You have Sui Generis Database
305 Rights (but not its individual contents) is Adapted Material,
306
307 including for purposes of Section 3(b); and
308 c. You must comply with the conditions in Section 3(a) if You Share
309 all or a substantial portion of the contents of the database.
310
311For the avoidance of doubt, this Section 4 supplements and does not
312replace Your obligations under this Public License where the Licensed
313Rights include other Copyright and Similar Rights.
314
315
316Section 5 -- Disclaimer of Warranties and Limitation of Liability.
317
318 a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
319 EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
320 AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
321 ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
322 IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
323 WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
324 PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
325 ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
326 KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
327 ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
328
329 b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
330 TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
331 NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
332 INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
333 COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
334 USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
335 ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
336 DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
337 IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
338
339 c. The disclaimer of warranties and limitation of liability provided
340 above shall be interpreted in a manner that, to the extent
341 possible, most closely approximates an absolute disclaimer and
342 waiver of all liability.
343
344
345Section 6 -- Term and Termination.
346
347 a. This Public License applies for the term of the Copyright and
348 Similar Rights licensed here. However, if You fail to comply with
349 this Public License, then Your rights under this Public License
350 terminate automatically.
351
352 b. Where Your right to use the Licensed Material has terminated under
353 Section 6(a), it reinstates:
354
355 1. automatically as of the date the violation is cured, provided
356 it is cured within 30 days of Your discovery of the
357 violation; or
358
359 2. upon express reinstatement by the Licensor.
360
361 For the avoidance of doubt, this Section 6(b) does not affect any
362 right the Licensor may have to seek remedies for Your violations
363 of this Public License.
364
365 c. For the avoidance of doubt, the Licensor may also offer the
366 Licensed Material under separate terms or conditions or stop
367 distributing the Licensed Material at any time; however, doing so
368 will not terminate this Public License.
369
370 d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
371 License.
372
373
374Section 7 -- Other Terms and Conditions.
375
376 a. The Licensor shall not be bound by any additional or different
377 terms or conditions communicated by You unless expressly agreed.
378
379 b. Any arrangements, understandings, or agreements regarding the
380 Licensed Material not stated herein are separate from and
381 independent of the terms and conditions of this Public License.
382
383
384Section 8 -- Interpretation.
385
386 a. For the avoidance of doubt, this Public License does not, and
387 shall not be interpreted to, reduce, limit, restrict, or impose
388 conditions on any use of the Licensed Material that could lawfully
389 be made without permission under this Public License.
390
391 b. To the extent possible, if any provision of this Public License is
392 deemed unenforceable, it shall be automatically reformed to the
393 minimum extent necessary to make it enforceable. If the provision
394 cannot be reformed, it shall be severed from this Public License
395 without affecting the enforceability of the remaining terms and
396 conditions.
397
398 c. No term or condition of this Public License will be waived and no
399 failure to comply consented to unless expressly agreed to by the
400 Licensor.
401
402 d. Nothing in this Public License constitutes or may be interpreted
403 as a limitation upon, or waiver of, any privileges and immunities
404 that apply to the Licensor or You, including from the legal
405 processes of any jurisdiction or authority.
406
407
408=======================================================================
409
410Creative Commons is not a party to its public licenses.
411Notwithstanding, Creative Commons may elect to apply one of its public
412licenses to material it publishes and in those instances will be
413considered the "Licensor." Except for the limited purpose of indicating
414that material is shared under a Creative Commons public license or as
415otherwise permitted by the Creative Commons policies published at
416creativecommons.org/policies, Creative Commons does not authorize the
417use of the trademark "Creative Commons" or any other trademark or logo
418of Creative Commons without its prior written consent including,
419without limitation, in connection with any unauthorized modifications
420to any of its public licenses or any other arrangements,
421understandings, or agreements concerning use of licensed material. For
422the avoidance of doubt, this paragraph does not form part of the public
423licenses.
424
425Creative Commons may be contacted at creativecommons.org.
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/MAINTAINERS b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/MAINTAINERS
deleted file mode 100644
index 477be8b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/MAINTAINERS
+++ /dev/null
@@ -1,27 +0,0 @@
1# go-connections maintainers file
2#
3# This file describes who runs the docker/go-connections project and how.
4# This is a living document - if you see something out of date or missing, speak up!
5#
6# It is structured to be consumable by both humans and programs.
7# To extract its contents programmatically, use any TOML-compliant parser.
8#
9# This file is compiled into the MAINTAINERS file in docker/opensource.
10#
11[Org]
12 [Org."Core maintainers"]
13 people = [
14 "calavera",
15 ]
16
17[people]
18
19# A reference list of all people associated with the project.
20# All other sections should refer to people by their canonical key
21# in the people section.
22
23 # ADD YOURSELF HERE IN ALPHABETICAL ORDER
24 [people.calavera]
25 Name = "David Calavera"
26 Email = "david.calavera@gmail.com"
27 GitHub = "calavera"
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/README.md b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/README.md
deleted file mode 100644
index 3ce4d79..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
1[![GoDoc](https://godoc.org/github.com/docker/go-units?status.svg)](https://godoc.org/github.com/docker/go-units)
2
3# Introduction
4
5go-units is a library to transform human friendly measurements into machine friendly values.
6
7## Usage
8
9See the [docs in godoc](https://godoc.org/github.com/docker/go-units) for examples and documentation.
10
11## Copyright and license
12
13Copyright © 2015 Docker, Inc. All rights reserved, except as follows. Code
14is released under the Apache 2.0 license. The README.md file, and files in the
15"docs" folder are licensed under the Creative Commons Attribution 4.0
16International License under the terms and conditions set forth in the file
17"LICENSE.docs". You may obtain a duplicate copy of the same license, titled
18CC-BY-SA-4.0, at http://creativecommons.org/licenses/by/4.0/.
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/circle.yml b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/circle.yml
deleted file mode 100644
index 9043b35..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/circle.yml
+++ /dev/null
@@ -1,11 +0,0 @@
1dependencies:
2 post:
3 # install golint
4 - go get github.com/golang/lint/golint
5
6test:
7 pre:
8 # run analysis before tests
9 - go vet ./...
10 - test -z "$(golint ./... | tee /dev/stderr)"
11 - test -z "$(gofmt -s -l . | tee /dev/stderr)"
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/duration.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/duration.go
deleted file mode 100644
index c219a8a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/duration.go
+++ /dev/null
@@ -1,33 +0,0 @@
1// Package units provides helper function to parse and print size and time units
2// in human-readable format.
3package units
4
5import (
6 "fmt"
7 "time"
8)
9
10// HumanDuration returns a human-readable approximation of a duration
11// (eg. "About a minute", "4 hours ago", etc.).
12func HumanDuration(d time.Duration) string {
13 if seconds := int(d.Seconds()); seconds < 1 {
14 return "Less than a second"
15 } else if seconds < 60 {
16 return fmt.Sprintf("%d seconds", seconds)
17 } else if minutes := int(d.Minutes()); minutes == 1 {
18 return "About a minute"
19 } else if minutes < 60 {
20 return fmt.Sprintf("%d minutes", minutes)
21 } else if hours := int(d.Hours()); hours == 1 {
22 return "About an hour"
23 } else if hours < 48 {
24 return fmt.Sprintf("%d hours", hours)
25 } else if hours < 24*7*2 {
26 return fmt.Sprintf("%d days", hours/24)
27 } else if hours < 24*30*3 {
28 return fmt.Sprintf("%d weeks", hours/24/7)
29 } else if hours < 24*365*2 {
30 return fmt.Sprintf("%d months", hours/24/30)
31 }
32 return fmt.Sprintf("%d years", int(d.Hours())/24/365)
33}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/size.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/size.go
deleted file mode 100644
index 3b59daf..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/size.go
+++ /dev/null
@@ -1,95 +0,0 @@
1package units
2
3import (
4 "fmt"
5 "regexp"
6 "strconv"
7 "strings"
8)
9
10// See: http://en.wikipedia.org/wiki/Binary_prefix
11const (
12 // Decimal
13
14 KB = 1000
15 MB = 1000 * KB
16 GB = 1000 * MB
17 TB = 1000 * GB
18 PB = 1000 * TB
19
20 // Binary
21
22 KiB = 1024
23 MiB = 1024 * KiB
24 GiB = 1024 * MiB
25 TiB = 1024 * GiB
26 PiB = 1024 * TiB
27)
28
29type unitMap map[string]int64
30
31var (
32 decimalMap = unitMap{"k": KB, "m": MB, "g": GB, "t": TB, "p": PB}
33 binaryMap = unitMap{"k": KiB, "m": MiB, "g": GiB, "t": TiB, "p": PiB}
34 sizeRegex = regexp.MustCompile(`^(\d+)([kKmMgGtTpP])?[bB]?$`)
35)
36
37var decimapAbbrs = []string{"B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}
38var binaryAbbrs = []string{"B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"}
39
40// CustomSize returns a human-readable approximation of a size
41// using custom format.
42func CustomSize(format string, size float64, base float64, _map []string) string {
43 i := 0
44 for size >= base {
45 size = size / base
46 i++
47 }
48 return fmt.Sprintf(format, size, _map[i])
49}
50
51// HumanSize returns a human-readable approximation of a size
52// capped at 4 valid numbers (eg. "2.746 MB", "796 KB").
53func HumanSize(size float64) string {
54 return CustomSize("%.4g %s", size, 1000.0, decimapAbbrs)
55}
56
57// BytesSize returns a human-readable size in bytes, kibibytes,
58// mebibytes, gibibytes, or tebibytes (eg. "44kiB", "17MiB").
59func BytesSize(size float64) string {
60 return CustomSize("%.4g %s", size, 1024.0, binaryAbbrs)
61}
62
63// FromHumanSize returns an integer from a human-readable specification of a
64// size using SI standard (eg. "44kB", "17MB").
65func FromHumanSize(size string) (int64, error) {
66 return parseSize(size, decimalMap)
67}
68
69// RAMInBytes parses a human-readable string representing an amount of RAM
70// in bytes, kibibytes, mebibytes, gibibytes, or tebibytes and
71// returns the number of bytes, or -1 if the string is unparseable.
72// Units are case-insensitive, and the 'b' suffix is optional.
73func RAMInBytes(size string) (int64, error) {
74 return parseSize(size, binaryMap)
75}
76
77// Parses the human-readable size string into the amount it represents.
78func parseSize(sizeStr string, uMap unitMap) (int64, error) {
79 matches := sizeRegex.FindStringSubmatch(sizeStr)
80 if len(matches) != 3 {
81 return -1, fmt.Errorf("invalid size: '%s'", sizeStr)
82 }
83
84 size, err := strconv.ParseInt(matches[1], 10, 0)
85 if err != nil {
86 return -1, err
87 }
88
89 unitPrefix := strings.ToLower(matches[2])
90 if mul, ok := uMap[unitPrefix]; ok {
91 size *= mul
92 }
93
94 return size, nil
95}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/ulimit.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/ulimit.go
deleted file mode 100644
index 5ac7fd8..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/ulimit.go
+++ /dev/null
@@ -1,118 +0,0 @@
1package units
2
3import (
4 "fmt"
5 "strconv"
6 "strings"
7)
8
9// Ulimit is a human friendly version of Rlimit.
10type Ulimit struct {
11 Name string
12 Hard int64
13 Soft int64
14}
15
16// Rlimit specifies the resource limits, such as max open files.
17type Rlimit struct {
18 Type int `json:"type,omitempty"`
19 Hard uint64 `json:"hard,omitempty"`
20 Soft uint64 `json:"soft,omitempty"`
21}
22
23const (
24 // magic numbers for making the syscall
25 // some of these are defined in the syscall package, but not all.
26 // Also since Windows client doesn't get access to the syscall package, need to
27 // define these here
28 rlimitAs = 9
29 rlimitCore = 4
30 rlimitCPU = 0
31 rlimitData = 2
32 rlimitFsize = 1
33 rlimitLocks = 10
34 rlimitMemlock = 8
35 rlimitMsgqueue = 12
36 rlimitNice = 13
37 rlimitNofile = 7
38 rlimitNproc = 6
39 rlimitRss = 5
40 rlimitRtprio = 14
41 rlimitRttime = 15
42 rlimitSigpending = 11
43 rlimitStack = 3
44)
45
46var ulimitNameMapping = map[string]int{
47 //"as": rlimitAs, // Disabled since this doesn't seem usable with the way Docker inits a container.
48 "core": rlimitCore,
49 "cpu": rlimitCPU,
50 "data": rlimitData,
51 "fsize": rlimitFsize,
52 "locks": rlimitLocks,
53 "memlock": rlimitMemlock,
54 "msgqueue": rlimitMsgqueue,
55 "nice": rlimitNice,
56 "nofile": rlimitNofile,
57 "nproc": rlimitNproc,
58 "rss": rlimitRss,
59 "rtprio": rlimitRtprio,
60 "rttime": rlimitRttime,
61 "sigpending": rlimitSigpending,
62 "stack": rlimitStack,
63}
64
65// ParseUlimit parses and returns a Ulimit from the specified string.
66func ParseUlimit(val string) (*Ulimit, error) {
67 parts := strings.SplitN(val, "=", 2)
68 if len(parts) != 2 {
69 return nil, fmt.Errorf("invalid ulimit argument: %s", val)
70 }
71
72 if _, exists := ulimitNameMapping[parts[0]]; !exists {
73 return nil, fmt.Errorf("invalid ulimit type: %s", parts[0])
74 }
75
76 var (
77 soft int64
78 hard = &soft // default to soft in case no hard was set
79 temp int64
80 err error
81 )
82 switch limitVals := strings.Split(parts[1], ":"); len(limitVals) {
83 case 2:
84 temp, err = strconv.ParseInt(limitVals[1], 10, 64)
85 if err != nil {
86 return nil, err
87 }
88 hard = &temp
89 fallthrough
90 case 1:
91 soft, err = strconv.ParseInt(limitVals[0], 10, 64)
92 if err != nil {
93 return nil, err
94 }
95 default:
96 return nil, fmt.Errorf("too many limit value arguments - %s, can only have up to two, `soft[:hard]`", parts[1])
97 }
98
99 if soft > *hard {
100 return nil, fmt.Errorf("ulimit soft limit must be less than or equal to hard limit: %d > %d", soft, *hard)
101 }
102
103 return &Ulimit{Name: parts[0], Soft: soft, Hard: *hard}, nil
104}
105
106// GetRlimit returns the RLimit corresponding to Ulimit.
107func (u *Ulimit) GetRlimit() (*Rlimit, error) {
108 t, exists := ulimitNameMapping[u.Name]
109 if !exists {
110 return nil, fmt.Errorf("invalid ulimit name %s", u.Name)
111 }
112
113 return &Rlimit{Type: t, Soft: uint64(u.Soft), Hard: uint64(u.Hard)}, nil
114}
115
116func (u *Ulimit) String() string {
117 return fmt.Sprintf("%s=%d:%d", u.Name, u.Soft, u.Hard)
118}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/LICENSE b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/LICENSE
deleted file mode 100644
index 0e5fb87..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/LICENSE
+++ /dev/null
@@ -1,27 +0,0 @@
1Copyright (c) 2012 Rodrigo Moraes. All rights reserved.
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are
5met:
6
7 * Redistributions of source code must retain the above copyright
8notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above
10copyright notice, this list of conditions and the following disclaimer
11in the documentation and/or other materials provided with the
12distribution.
13 * Neither the name of Google Inc. nor the names of its
14contributors may be used to endorse or promote products derived from
15this software without specific prior written permission.
16
17THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/README.md b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/README.md
deleted file mode 100644
index c60a31b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
1context
2=======
3[![Build Status](https://travis-ci.org/gorilla/context.png?branch=master)](https://travis-ci.org/gorilla/context)
4
5gorilla/context is a general purpose registry for global request variables.
6
7Read the full documentation here: http://www.gorillatoolkit.org/pkg/context
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/context.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/context.go
deleted file mode 100644
index 81cb128..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/context.go
+++ /dev/null
@@ -1,143 +0,0 @@
1// Copyright 2012 The Gorilla Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package context
6
7import (
8 "net/http"
9 "sync"
10 "time"
11)
12
13var (
14 mutex sync.RWMutex
15 data = make(map[*http.Request]map[interface{}]interface{})
16 datat = make(map[*http.Request]int64)
17)
18
19// Set stores a value for a given key in a given request.
20func Set(r *http.Request, key, val interface{}) {
21 mutex.Lock()
22 if data[r] == nil {
23 data[r] = make(map[interface{}]interface{})
24 datat[r] = time.Now().Unix()
25 }
26 data[r][key] = val
27 mutex.Unlock()
28}
29
30// Get returns a value stored for a given key in a given request.
31func Get(r *http.Request, key interface{}) interface{} {
32 mutex.RLock()
33 if ctx := data[r]; ctx != nil {
34 value := ctx[key]
35 mutex.RUnlock()
36 return value
37 }
38 mutex.RUnlock()
39 return nil
40}
41
42// GetOk returns stored value and presence state like multi-value return of map access.
43func GetOk(r *http.Request, key interface{}) (interface{}, bool) {
44 mutex.RLock()
45 if _, ok := data[r]; ok {
46 value, ok := data[r][key]
47 mutex.RUnlock()
48 return value, ok
49 }
50 mutex.RUnlock()
51 return nil, false
52}
53
54// GetAll returns all stored values for the request as a map. Nil is returned for invalid requests.
55func GetAll(r *http.Request) map[interface{}]interface{} {
56 mutex.RLock()
57 if context, ok := data[r]; ok {
58 result := make(map[interface{}]interface{}, len(context))
59 for k, v := range context {
60 result[k] = v
61 }
62 mutex.RUnlock()
63 return result
64 }
65 mutex.RUnlock()
66 return nil
67}
68
69// GetAllOk returns all stored values for the request as a map and a boolean value that indicates if
70// the request was registered.
71func GetAllOk(r *http.Request) (map[interface{}]interface{}, bool) {
72 mutex.RLock()
73 context, ok := data[r]
74 result := make(map[interface{}]interface{}, len(context))
75 for k, v := range context {
76 result[k] = v
77 }
78 mutex.RUnlock()
79 return result, ok
80}
81
82// Delete removes a value stored for a given key in a given request.
83func Delete(r *http.Request, key interface{}) {
84 mutex.Lock()
85 if data[r] != nil {
86 delete(data[r], key)
87 }
88 mutex.Unlock()
89}
90
91// Clear removes all values stored for a given request.
92//
93// This is usually called by a handler wrapper to clean up request
94// variables at the end of a request lifetime. See ClearHandler().
95func Clear(r *http.Request) {
96 mutex.Lock()
97 clear(r)
98 mutex.Unlock()
99}
100
101// clear is Clear without the lock.
102func clear(r *http.Request) {
103 delete(data, r)
104 delete(datat, r)
105}
106
107// Purge removes request data stored for longer than maxAge, in seconds.
108// It returns the amount of requests removed.
109//
110// If maxAge <= 0, all request data is removed.
111//
112// This is only used for sanity check: in case context cleaning was not
113// properly set some request data can be kept forever, consuming an increasing
114// amount of memory. In case this is detected, Purge() must be called
115// periodically until the problem is fixed.
116func Purge(maxAge int) int {
117 mutex.Lock()
118 count := 0
119 if maxAge <= 0 {
120 count = len(data)
121 data = make(map[*http.Request]map[interface{}]interface{})
122 datat = make(map[*http.Request]int64)
123 } else {
124 min := time.Now().Unix() - int64(maxAge)
125 for r := range data {
126 if datat[r] < min {
127 clear(r)
128 count++
129 }
130 }
131 }
132 mutex.Unlock()
133 return count
134}
135
136// ClearHandler wraps an http.Handler and clears request values at the end
137// of a request lifetime.
138func ClearHandler(h http.Handler) http.Handler {
139 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
140 defer Clear(r)
141 h.ServeHTTP(w, r)
142 })
143}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/doc.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/doc.go
deleted file mode 100644
index 73c7400..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/doc.go
+++ /dev/null
@@ -1,82 +0,0 @@
1// Copyright 2012 The Gorilla Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5/*
6Package context stores values shared during a request lifetime.
7
8For example, a router can set variables extracted from the URL and later
9application handlers can access those values, or it can be used to store
10sessions values to be saved at the end of a request. There are several
11others common uses.
12
13The idea was posted by Brad Fitzpatrick to the go-nuts mailing list:
14
15 http://groups.google.com/group/golang-nuts/msg/e2d679d303aa5d53
16
17Here's the basic usage: first define the keys that you will need. The key
18type is interface{} so a key can be of any type that supports equality.
19Here we define a key using a custom int type to avoid name collisions:
20
21 package foo
22
23 import (
24 "github.com/gorilla/context"
25 )
26
27 type key int
28
29 const MyKey key = 0
30
31Then set a variable. Variables are bound to an http.Request object, so you
32need a request instance to set a value:
33
34 context.Set(r, MyKey, "bar")
35
36The application can later access the variable using the same key you provided:
37
38 func MyHandler(w http.ResponseWriter, r *http.Request) {
39 // val is "bar".
40 val := context.Get(r, foo.MyKey)
41
42 // returns ("bar", true)
43 val, ok := context.GetOk(r, foo.MyKey)
44 // ...
45 }
46
47And that's all about the basic usage. We discuss some other ideas below.
48
49Any type can be stored in the context. To enforce a given type, make the key
50private and wrap Get() and Set() to accept and return values of a specific
51type:
52
53 type key int
54
55 const mykey key = 0
56
57 // GetMyKey returns a value for this package from the request values.
58 func GetMyKey(r *http.Request) SomeType {
59 if rv := context.Get(r, mykey); rv != nil {
60 return rv.(SomeType)
61 }
62 return nil
63 }
64
65 // SetMyKey sets a value for this package in the request values.
66 func SetMyKey(r *http.Request, val SomeType) {
67 context.Set(r, mykey, val)
68 }
69
70Variables must be cleared at the end of a request, to remove all values
71that were stored. This can be done in an http.Handler, after a request was
72served. Just call Clear() passing the request:
73
74 context.Clear(r)
75
76...or use ClearHandler(), which conveniently wraps an http.Handler to clear
77variables at the end of a request lifetime.
78
79The Routers from the packages gorilla/mux and gorilla/pat call Clear()
80so if you are using either of them you don't need to clear the context manually.
81*/
82package context
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/LICENSE b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/LICENSE
deleted file mode 100644
index 0e5fb87..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/LICENSE
+++ /dev/null
@@ -1,27 +0,0 @@
1Copyright (c) 2012 Rodrigo Moraes. All rights reserved.
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are
5met:
6
7 * Redistributions of source code must retain the above copyright
8notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above
10copyright notice, this list of conditions and the following disclaimer
11in the documentation and/or other materials provided with the
12distribution.
13 * Neither the name of Google Inc. nor the names of its
14contributors may be used to endorse or promote products derived from
15this software without specific prior written permission.
16
17THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/README.md b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/README.md
deleted file mode 100644
index b987c9e..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/README.md
+++ /dev/null
@@ -1,240 +0,0 @@
1mux
2===
3[![GoDoc](https://godoc.org/github.com/gorilla/mux?status.svg)](https://godoc.org/github.com/gorilla/mux)
4[![Build Status](https://travis-ci.org/gorilla/mux.svg?branch=master)](https://travis-ci.org/gorilla/mux)
5
6Package `gorilla/mux` implements a request router and dispatcher.
7
8The name mux stands for "HTTP request multiplexer". Like the standard `http.ServeMux`, `mux.Router` matches incoming requests against a list of registered routes and calls a handler for the route that matches the URL or other conditions. The main features are:
9
10* Requests can be matched based on URL host, path, path prefix, schemes, header and query values, HTTP methods or using custom matchers.
11* URL hosts and paths can have variables with an optional regular expression.
12* Registered URLs can be built, or "reversed", which helps maintaining references to resources.
13* Routes can be used as subrouters: nested routes are only tested if the parent route matches. This is useful to define groups of routes that share common conditions like a host, a path prefix or other repeated attributes. As a bonus, this optimizes request matching.
14* It implements the `http.Handler` interface so it is compatible with the standard `http.ServeMux`.
15
16Let's start registering a couple of URL paths and handlers:
17
18```go
19func main() {
20 r := mux.NewRouter()
21 r.HandleFunc("/", HomeHandler)
22 r.HandleFunc("/products", ProductsHandler)
23 r.HandleFunc("/articles", ArticlesHandler)
24 http.Handle("/", r)
25}
26```
27
28Here we register three routes mapping URL paths to handlers. This is equivalent to how `http.HandleFunc()` works: if an incoming request URL matches one of the paths, the corresponding handler is called passing (`http.ResponseWriter`, `*http.Request`) as parameters.
29
30Paths can have variables. They are defined using the format `{name}` or `{name:pattern}`. If a regular expression pattern is not defined, the matched variable will be anything until the next slash. For example:
31
32```go
33r := mux.NewRouter()
34r.HandleFunc("/products/{key}", ProductHandler)
35r.HandleFunc("/articles/{category}/", ArticlesCategoryHandler)
36r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler)
37```
38
39The names are used to create a map of route variables which can be retrieved calling `mux.Vars()`:
40
41```go
42vars := mux.Vars(request)
43category := vars["category"]
44```
45
46And this is all you need to know about the basic usage. More advanced options are explained below.
47
48Routes can also be restricted to a domain or subdomain. Just define a host pattern to be matched. They can also have variables:
49
50```go
51r := mux.NewRouter()
52// Only matches if domain is "www.example.com".
53r.Host("www.example.com")
54// Matches a dynamic subdomain.
55r.Host("{subdomain:[a-z]+}.domain.com")
56```
57
58There are several other matchers that can be added. To match path prefixes:
59
60```go
61r.PathPrefix("/products/")
62```
63
64...or HTTP methods:
65
66```go
67r.Methods("GET", "POST")
68```
69
70...or URL schemes:
71
72```go
73r.Schemes("https")
74```
75
76...or header values:
77
78```go
79r.Headers("X-Requested-With", "XMLHttpRequest")
80```
81
82...or query values:
83
84```go
85r.Queries("key", "value")
86```
87
88...or to use a custom matcher function:
89
90```go
91r.MatcherFunc(func(r *http.Request, rm *RouteMatch) bool {
92 return r.ProtoMajor == 0
93})
94```
95
96...and finally, it is possible to combine several matchers in a single route:
97
98```go
99r.HandleFunc("/products", ProductsHandler).
100 Host("www.example.com").
101 Methods("GET").
102 Schemes("http")
103```
104
105Setting the same matching conditions again and again can be boring, so we have a way to group several routes that share the same requirements. We call it "subrouting".
106
107For example, let's say we have several URLs that should only match when the host is `www.example.com`. Create a route for that host and get a "subrouter" from it:
108
109```go
110r := mux.NewRouter()
111s := r.Host("www.example.com").Subrouter()
112```
113
114Then register routes in the subrouter:
115
116```go
117s.HandleFunc("/products/", ProductsHandler)
118s.HandleFunc("/products/{key}", ProductHandler)
119s.HandleFunc("/articles/{category}/{id:[0-9]+}"), ArticleHandler)
120```
121
122The three URL paths we registered above will only be tested if the domain is `www.example.com`, because the subrouter is tested first. This is not only convenient, but also optimizes request matching. You can create subrouters combining any attribute matchers accepted by a route.
123
124Subrouters can be used to create domain or path "namespaces": you define subrouters in a central place and then parts of the app can register its paths relatively to a given subrouter.
125
126There's one more thing about subroutes. When a subrouter has a path prefix, the inner routes use it as base for their paths:
127
128```go
129r := mux.NewRouter()
130s := r.PathPrefix("/products").Subrouter()
131// "/products/"
132s.HandleFunc("/", ProductsHandler)
133// "/products/{key}/"
134s.HandleFunc("/{key}/", ProductHandler)
135// "/products/{key}/details"
136s.HandleFunc("/{key}/details", ProductDetailsHandler)
137```
138
139Now let's see how to build registered URLs.
140
141Routes can be named. All routes that define a name can have their URLs built, or "reversed". We define a name calling `Name()` on a route. For example:
142
143```go
144r := mux.NewRouter()
145r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler).
146 Name("article")
147```
148
149To build a URL, get the route and call the `URL()` method, passing a sequence of key/value pairs for the route variables. For the previous route, we would do:
150
151```go
152url, err := r.Get("article").URL("category", "technology", "id", "42")
153```
154
155...and the result will be a `url.URL` with the following path:
156
157```
158"/articles/technology/42"
159```
160
161This also works for host variables:
162
163```go
164r := mux.NewRouter()
165r.Host("{subdomain}.domain.com").
166 Path("/articles/{category}/{id:[0-9]+}").
167 HandlerFunc(ArticleHandler).
168 Name("article")
169
170// url.String() will be "http://news.domain.com/articles/technology/42"
171url, err := r.Get("article").URL("subdomain", "news",
172 "category", "technology",
173 "id", "42")
174```
175
176All variables defined in the route are required, and their values must conform to the corresponding patterns. These requirements guarantee that a generated URL will always match a registered route -- the only exception is for explicitly defined "build-only" routes which never match.
177
178Regex support also exists for matching Headers within a route. For example, we could do:
179
180```go
181r.HeadersRegexp("Content-Type", "application/(text|json)")
182```
183
184...and the route will match both requests with a Content-Type of `application/json` as well as `application/text`
185
186There's also a way to build only the URL host or path for a route: use the methods `URLHost()` or `URLPath()` instead. For the previous route, we would do:
187
188```go
189// "http://news.domain.com/"
190host, err := r.Get("article").URLHost("subdomain", "news")
191
192// "/articles/technology/42"
193path, err := r.Get("article").URLPath("category", "technology", "id", "42")
194```
195
196And if you use subrouters, host and path defined separately can be built as well:
197
198```go
199r := mux.NewRouter()
200s := r.Host("{subdomain}.domain.com").Subrouter()
201s.Path("/articles/{category}/{id:[0-9]+}").
202 HandlerFunc(ArticleHandler).
203 Name("article")
204
205// "http://news.domain.com/articles/technology/42"
206url, err := r.Get("article").URL("subdomain", "news",
207 "category", "technology",
208 "id", "42")
209```
210
211## Full Example
212
213Here's a complete, runnable example of a small `mux` based server:
214
215```go
216package main
217
218import (
219 "net/http"
220
221 "github.com/gorilla/mux"
222)
223
224func YourHandler(w http.ResponseWriter, r *http.Request) {
225 w.Write([]byte("Gorilla!\n"))
226}
227
228func main() {
229 r := mux.NewRouter()
230 // Routes consist of a path and a handler function.
231 r.HandleFunc("/", YourHandler)
232
233 // Bind to a port and pass our router in
234 http.ListenAndServe(":8000", r)
235}
236```
237
238## License
239
240BSD licensed. See the LICENSE file for details.
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/doc.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/doc.go
deleted file mode 100644
index 49798cb..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/doc.go
+++ /dev/null
@@ -1,206 +0,0 @@
1// Copyright 2012 The Gorilla Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5/*
6Package gorilla/mux implements a request router and dispatcher.
7
8The name mux stands for "HTTP request multiplexer". Like the standard
9http.ServeMux, mux.Router matches incoming requests against a list of
10registered routes and calls a handler for the route that matches the URL
11or other conditions. The main features are:
12
13 * Requests can be matched based on URL host, path, path prefix, schemes,
14 header and query values, HTTP methods or using custom matchers.
15 * URL hosts and paths can have variables with an optional regular
16 expression.
17 * Registered URLs can be built, or "reversed", which helps maintaining
18 references to resources.
19 * Routes can be used as subrouters: nested routes are only tested if the
20 parent route matches. This is useful to define groups of routes that
21 share common conditions like a host, a path prefix or other repeated
22 attributes. As a bonus, this optimizes request matching.
23 * It implements the http.Handler interface so it is compatible with the
24 standard http.ServeMux.
25
26Let's start registering a couple of URL paths and handlers:
27
28 func main() {
29 r := mux.NewRouter()
30 r.HandleFunc("/", HomeHandler)
31 r.HandleFunc("/products", ProductsHandler)
32 r.HandleFunc("/articles", ArticlesHandler)
33 http.Handle("/", r)
34 }
35
36Here we register three routes mapping URL paths to handlers. This is
37equivalent to how http.HandleFunc() works: if an incoming request URL matches
38one of the paths, the corresponding handler is called passing
39(http.ResponseWriter, *http.Request) as parameters.
40
41Paths can have variables. They are defined using the format {name} or
42{name:pattern}. If a regular expression pattern is not defined, the matched
43variable will be anything until the next slash. For example:
44
45 r := mux.NewRouter()
46 r.HandleFunc("/products/{key}", ProductHandler)
47 r.HandleFunc("/articles/{category}/", ArticlesCategoryHandler)
48 r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler)
49
50The names are used to create a map of route variables which can be retrieved
51calling mux.Vars():
52
53 vars := mux.Vars(request)
54 category := vars["category"]
55
56And this is all you need to know about the basic usage. More advanced options
57are explained below.
58
59Routes can also be restricted to a domain or subdomain. Just define a host
60pattern to be matched. They can also have variables:
61
62 r := mux.NewRouter()
63 // Only matches if domain is "www.example.com".
64 r.Host("www.example.com")
65 // Matches a dynamic subdomain.
66 r.Host("{subdomain:[a-z]+}.domain.com")
67
68There are several other matchers that can be added. To match path prefixes:
69
70 r.PathPrefix("/products/")
71
72...or HTTP methods:
73
74 r.Methods("GET", "POST")
75
76...or URL schemes:
77
78 r.Schemes("https")
79
80...or header values:
81
82 r.Headers("X-Requested-With", "XMLHttpRequest")
83
84...or query values:
85
86 r.Queries("key", "value")
87
88...or to use a custom matcher function:
89
90 r.MatcherFunc(func(r *http.Request, rm *RouteMatch) bool {
91 return r.ProtoMajor == 0
92 })
93
94...and finally, it is possible to combine several matchers in a single route:
95
96 r.HandleFunc("/products", ProductsHandler).
97 Host("www.example.com").
98 Methods("GET").
99 Schemes("http")
100
101Setting the same matching conditions again and again can be boring, so we have
102a way to group several routes that share the same requirements.
103We call it "subrouting".
104
105For example, let's say we have several URLs that should only match when the
106host is "www.example.com". Create a route for that host and get a "subrouter"
107from it:
108
109 r := mux.NewRouter()
110 s := r.Host("www.example.com").Subrouter()
111
112Then register routes in the subrouter:
113
114 s.HandleFunc("/products/", ProductsHandler)
115 s.HandleFunc("/products/{key}", ProductHandler)
116 s.HandleFunc("/articles/{category}/{id:[0-9]+}"), ArticleHandler)
117
118The three URL paths we registered above will only be tested if the domain is
119"www.example.com", because the subrouter is tested first. This is not
120only convenient, but also optimizes request matching. You can create
121subrouters combining any attribute matchers accepted by a route.
122
123Subrouters can be used to create domain or path "namespaces": you define
124subrouters in a central place and then parts of the app can register its
125paths relatively to a given subrouter.
126
127There's one more thing about subroutes. When a subrouter has a path prefix,
128the inner routes use it as base for their paths:
129
130 r := mux.NewRouter()
131 s := r.PathPrefix("/products").Subrouter()
132 // "/products/"
133 s.HandleFunc("/", ProductsHandler)
134 // "/products/{key}/"
135 s.HandleFunc("/{key}/", ProductHandler)
136 // "/products/{key}/details"
137 s.HandleFunc("/{key}/details", ProductDetailsHandler)
138
139Now let's see how to build registered URLs.
140
141Routes can be named. All routes that define a name can have their URLs built,
142or "reversed". We define a name calling Name() on a route. For example:
143
144 r := mux.NewRouter()
145 r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler).
146 Name("article")
147
148To build a URL, get the route and call the URL() method, passing a sequence of
149key/value pairs for the route variables. For the previous route, we would do:
150
151 url, err := r.Get("article").URL("category", "technology", "id", "42")
152
153...and the result will be a url.URL with the following path:
154
155 "/articles/technology/42"
156
157This also works for host variables:
158
159 r := mux.NewRouter()
160 r.Host("{subdomain}.domain.com").
161 Path("/articles/{category}/{id:[0-9]+}").
162 HandlerFunc(ArticleHandler).
163 Name("article")
164
165 // url.String() will be "http://news.domain.com/articles/technology/42"
166 url, err := r.Get("article").URL("subdomain", "news",
167 "category", "technology",
168 "id", "42")
169
170All variables defined in the route are required, and their values must
171conform to the corresponding patterns. These requirements guarantee that a
172generated URL will always match a registered route -- the only exception is
173for explicitly defined "build-only" routes which never match.
174
175Regex support also exists for matching Headers within a route. For example, we could do:
176
177 r.HeadersRegexp("Content-Type", "application/(text|json)")
178
179...and the route will match both requests with a Content-Type of `application/json` as well as
180`application/text`
181
182There's also a way to build only the URL host or path for a route:
183use the methods URLHost() or URLPath() instead. For the previous route,
184we would do:
185
186 // "http://news.domain.com/"
187 host, err := r.Get("article").URLHost("subdomain", "news")
188
189 // "/articles/technology/42"
190 path, err := r.Get("article").URLPath("category", "technology", "id", "42")
191
192And if you use subrouters, host and path defined separately can be built
193as well:
194
195 r := mux.NewRouter()
196 s := r.Host("{subdomain}.domain.com").Subrouter()
197 s.Path("/articles/{category}/{id:[0-9]+}").
198 HandlerFunc(ArticleHandler).
199 Name("article")
200
201 // "http://news.domain.com/articles/technology/42"
202 url, err := r.Get("article").URL("subdomain", "news",
203 "category", "technology",
204 "id", "42")
205*/
206package mux
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/mux.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/mux.go
deleted file mode 100644
index cb03ddf..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/mux.go
+++ /dev/null
@@ -1,481 +0,0 @@
1// Copyright 2012 The Gorilla Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package mux
6
7import (
8 "errors"
9 "fmt"
10 "net/http"
11 "path"
12 "regexp"
13
14 "github.com/fsouza/go-dockerclient/external/github.com/gorilla/context"
15)
16
17// NewRouter returns a new router instance.
18func NewRouter() *Router {
19 return &Router{namedRoutes: make(map[string]*Route), KeepContext: false}
20}
21
22// Router registers routes to be matched and dispatches a handler.
23//
24// It implements the http.Handler interface, so it can be registered to serve
25// requests:
26//
27// var router = mux.NewRouter()
28//
29// func main() {
30// http.Handle("/", router)
31// }
32//
33// Or, for Google App Engine, register it in a init() function:
34//
35// func init() {
36// http.Handle("/", router)
37// }
38//
39// This will send all incoming requests to the router.
40type Router struct {
41 // Configurable Handler to be used when no route matches.
42 NotFoundHandler http.Handler
43 // Parent route, if this is a subrouter.
44 parent parentRoute
45 // Routes to be matched, in order.
46 routes []*Route
47 // Routes by name for URL building.
48 namedRoutes map[string]*Route
49 // See Router.StrictSlash(). This defines the flag for new routes.
50 strictSlash bool
51 // If true, do not clear the request context after handling the request
52 KeepContext bool
53}
54
55// Match matches registered routes against the request.
56func (r *Router) Match(req *http.Request, match *RouteMatch) bool {
57 for _, route := range r.routes {
58 if route.Match(req, match) {
59 return true
60 }
61 }
62
63 // Closest match for a router (includes sub-routers)
64 if r.NotFoundHandler != nil {
65 match.Handler = r.NotFoundHandler
66 return true
67 }
68 return false
69}
70
71// ServeHTTP dispatches the handler registered in the matched route.
72//
73// When there is a match, the route variables can be retrieved calling
74// mux.Vars(request).
75func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {
76 // Clean path to canonical form and redirect.
77 if p := cleanPath(req.URL.Path); p != req.URL.Path {
78
79 // Added 3 lines (Philip Schlump) - It was dropping the query string and #whatever from query.
80 // This matches with fix in go 1.2 r.c. 4 for same problem. Go Issue:
81 // http://code.google.com/p/go/issues/detail?id=5252
82 url := *req.URL
83 url.Path = p
84 p = url.String()
85
86 w.Header().Set("Location", p)
87 w.WriteHeader(http.StatusMovedPermanently)
88 return
89 }
90 var match RouteMatch
91 var handler http.Handler
92 if r.Match(req, &match) {
93 handler = match.Handler
94 setVars(req, match.Vars)
95 setCurrentRoute(req, match.Route)
96 }
97 if handler == nil {
98 handler = http.NotFoundHandler()
99 }
100 if !r.KeepContext {
101 defer context.Clear(req)
102 }
103 handler.ServeHTTP(w, req)
104}
105
106// Get returns a route registered with the given name.
107func (r *Router) Get(name string) *Route {
108 return r.getNamedRoutes()[name]
109}
110
111// GetRoute returns a route registered with the given name. This method
112// was renamed to Get() and remains here for backwards compatibility.
113func (r *Router) GetRoute(name string) *Route {
114 return r.getNamedRoutes()[name]
115}
116
117// StrictSlash defines the trailing slash behavior for new routes. The initial
118// value is false.
119//
120// When true, if the route path is "/path/", accessing "/path" will redirect
121// to the former and vice versa. In other words, your application will always
122// see the path as specified in the route.
123//
124// When false, if the route path is "/path", accessing "/path/" will not match
125// this route and vice versa.
126//
127// Special case: when a route sets a path prefix using the PathPrefix() method,
128// strict slash is ignored for that route because the redirect behavior can't
129// be determined from a prefix alone. However, any subrouters created from that
130// route inherit the original StrictSlash setting.
131func (r *Router) StrictSlash(value bool) *Router {
132 r.strictSlash = value
133 return r
134}
135
136// ----------------------------------------------------------------------------
137// parentRoute
138// ----------------------------------------------------------------------------
139
140// getNamedRoutes returns the map where named routes are registered.
141func (r *Router) getNamedRoutes() map[string]*Route {
142 if r.namedRoutes == nil {
143 if r.parent != nil {
144 r.namedRoutes = r.parent.getNamedRoutes()
145 } else {
146 r.namedRoutes = make(map[string]*Route)
147 }
148 }
149 return r.namedRoutes
150}
151
152// getRegexpGroup returns regexp definitions from the parent route, if any.
153func (r *Router) getRegexpGroup() *routeRegexpGroup {
154 if r.parent != nil {
155 return r.parent.getRegexpGroup()
156 }
157 return nil
158}
159
160func (r *Router) buildVars(m map[string]string) map[string]string {
161 if r.parent != nil {
162 m = r.parent.buildVars(m)
163 }
164 return m
165}
166
167// ----------------------------------------------------------------------------
168// Route factories
169// ----------------------------------------------------------------------------
170
171// NewRoute registers an empty route.
172func (r *Router) NewRoute() *Route {
173 route := &Route{parent: r, strictSlash: r.strictSlash}
174 r.routes = append(r.routes, route)
175 return route
176}
177
178// Handle registers a new route with a matcher for the URL path.
179// See Route.Path() and Route.Handler().
180func (r *Router) Handle(path string, handler http.Handler) *Route {
181 return r.NewRoute().Path(path).Handler(handler)
182}
183
184// HandleFunc registers a new route with a matcher for the URL path.
185// See Route.Path() and Route.HandlerFunc().
186func (r *Router) HandleFunc(path string, f func(http.ResponseWriter,
187 *http.Request)) *Route {
188 return r.NewRoute().Path(path).HandlerFunc(f)
189}
190
191// Headers registers a new route with a matcher for request header values.
192// See Route.Headers().
193func (r *Router) Headers(pairs ...string) *Route {
194 return r.NewRoute().Headers(pairs...)
195}
196
197// Host registers a new route with a matcher for the URL host.
198// See Route.Host().
199func (r *Router) Host(tpl string) *Route {
200 return r.NewRoute().Host(tpl)
201}
202
203// MatcherFunc registers a new route with a custom matcher function.
204// See Route.MatcherFunc().
205func (r *Router) MatcherFunc(f MatcherFunc) *Route {
206 return r.NewRoute().MatcherFunc(f)
207}
208
209// Methods registers a new route with a matcher for HTTP methods.
210// See Route.Methods().
211func (r *Router) Methods(methods ...string) *Route {
212 return r.NewRoute().Methods(methods...)
213}
214
215// Path registers a new route with a matcher for the URL path.
216// See Route.Path().
217func (r *Router) Path(tpl string) *Route {
218 return r.NewRoute().Path(tpl)
219}
220
221// PathPrefix registers a new route with a matcher for the URL path prefix.
222// See Route.PathPrefix().
223func (r *Router) PathPrefix(tpl string) *Route {
224 return r.NewRoute().PathPrefix(tpl)
225}
226
227// Queries registers a new route with a matcher for URL query values.
228// See Route.Queries().
229func (r *Router) Queries(pairs ...string) *Route {
230 return r.NewRoute().Queries(pairs...)
231}
232
233// Schemes registers a new route with a matcher for URL schemes.
234// See Route.Schemes().
235func (r *Router) Schemes(schemes ...string) *Route {
236 return r.NewRoute().Schemes(schemes...)
237}
238
239// BuildVars registers a new route with a custom function for modifying
240// route variables before building a URL.
241func (r *Router) BuildVarsFunc(f BuildVarsFunc) *Route {
242 return r.NewRoute().BuildVarsFunc(f)
243}
244
245// Walk walks the router and all its sub-routers, calling walkFn for each route
246// in the tree. The routes are walked in the order they were added. Sub-routers
247// are explored depth-first.
248func (r *Router) Walk(walkFn WalkFunc) error {
249 return r.walk(walkFn, []*Route{})
250}
251
252// SkipRouter is used as a return value from WalkFuncs to indicate that the
253// router that walk is about to descend down to should be skipped.
254var SkipRouter = errors.New("skip this router")
255
256// WalkFunc is the type of the function called for each route visited by Walk.
257// At every invocation, it is given the current route, and the current router,
258// and a list of ancestor routes that lead to the current route.
259type WalkFunc func(route *Route, router *Router, ancestors []*Route) error
260
261func (r *Router) walk(walkFn WalkFunc, ancestors []*Route) error {
262 for _, t := range r.routes {
263 if t.regexp == nil || t.regexp.path == nil || t.regexp.path.template == "" {
264 continue
265 }
266
267 err := walkFn(t, r, ancestors)
268 if err == SkipRouter {
269 continue
270 }
271 for _, sr := range t.matchers {
272 if h, ok := sr.(*Router); ok {
273 err := h.walk(walkFn, ancestors)
274 if err != nil {
275 return err
276 }
277 }
278 }
279 if h, ok := t.handler.(*Router); ok {
280 ancestors = append(ancestors, t)
281 err := h.walk(walkFn, ancestors)
282 if err != nil {
283 return err
284 }
285 ancestors = ancestors[:len(ancestors)-1]
286 }
287 }
288 return nil
289}
290
291// ----------------------------------------------------------------------------
292// Context
293// ----------------------------------------------------------------------------
294
295// RouteMatch stores information about a matched route.
296type RouteMatch struct {
297 Route *Route
298 Handler http.Handler
299 Vars map[string]string
300}
301
302type contextKey int
303
304const (
305 varsKey contextKey = iota
306 routeKey
307)
308
309// Vars returns the route variables for the current request, if any.
310func Vars(r *http.Request) map[string]string {
311 if rv := context.Get(r, varsKey); rv != nil {
312 return rv.(map[string]string)
313 }
314 return nil
315}
316
317// CurrentRoute returns the matched route for the current request, if any.
318// This only works when called inside the handler of the matched route
319// because the matched route is stored in the request context which is cleared
320// after the handler returns, unless the KeepContext option is set on the
321// Router.
322func CurrentRoute(r *http.Request) *Route {
323 if rv := context.Get(r, routeKey); rv != nil {
324 return rv.(*Route)
325 }
326 return nil
327}
328
329func setVars(r *http.Request, val interface{}) {
330 if val != nil {
331 context.Set(r, varsKey, val)
332 }
333}
334
335func setCurrentRoute(r *http.Request, val interface{}) {
336 if val != nil {
337 context.Set(r, routeKey, val)
338 }
339}
340
341// ----------------------------------------------------------------------------
342// Helpers
343// ----------------------------------------------------------------------------
344
345// cleanPath returns the canonical path for p, eliminating . and .. elements.
346// Borrowed from the net/http package.
347func cleanPath(p string) string {
348 if p == "" {
349 return "/"
350 }
351 if p[0] != '/' {
352 p = "/" + p
353 }
354 np := path.Clean(p)
355 // path.Clean removes trailing slash except for root;
356 // put the trailing slash back if necessary.
357 if p[len(p)-1] == '/' && np != "/" {
358 np += "/"
359 }
360 return np
361}
362
363// uniqueVars returns an error if two slices contain duplicated strings.
364func uniqueVars(s1, s2 []string) error {
365 for _, v1 := range s1 {
366 for _, v2 := range s2 {
367 if v1 == v2 {
368 return fmt.Errorf("mux: duplicated route variable %q", v2)
369 }
370 }
371 }
372 return nil
373}
374
375// checkPairs returns the count of strings passed in, and an error if
376// the count is not an even number.
377func checkPairs(pairs ...string) (int, error) {
378 length := len(pairs)
379 if length%2 != 0 {
380 return length, fmt.Errorf(
381 "mux: number of parameters must be multiple of 2, got %v", pairs)
382 }
383 return length, nil
384}
385
386// mapFromPairsToString converts variadic string parameters to a
387// string to string map.
388func mapFromPairsToString(pairs ...string) (map[string]string, error) {
389 length, err := checkPairs(pairs...)
390 if err != nil {
391 return nil, err
392 }
393 m := make(map[string]string, length/2)
394 for i := 0; i < length; i += 2 {
395 m[pairs[i]] = pairs[i+1]
396 }
397 return m, nil
398}
399
400// mapFromPairsToRegex converts variadic string paramers to a
401// string to regex map.
402func mapFromPairsToRegex(pairs ...string) (map[string]*regexp.Regexp, error) {
403 length, err := checkPairs(pairs...)
404 if err != nil {
405 return nil, err
406 }
407 m := make(map[string]*regexp.Regexp, length/2)
408 for i := 0; i < length; i += 2 {
409 regex, err := regexp.Compile(pairs[i+1])
410 if err != nil {
411 return nil, err
412 }
413 m[pairs[i]] = regex
414 }
415 return m, nil
416}
417
418// matchInArray returns true if the given string value is in the array.
419func matchInArray(arr []string, value string) bool {
420 for _, v := range arr {
421 if v == value {
422 return true
423 }
424 }
425 return false
426}
427
428// matchMapWithString returns true if the given key/value pairs exist in a given map.
429func matchMapWithString(toCheck map[string]string, toMatch map[string][]string, canonicalKey bool) bool {
430 for k, v := range toCheck {
431 // Check if key exists.
432 if canonicalKey {
433 k = http.CanonicalHeaderKey(k)
434 }
435 if values := toMatch[k]; values == nil {
436 return false
437 } else if v != "" {
438 // If value was defined as an empty string we only check that the
439 // key exists. Otherwise we also check for equality.
440 valueExists := false
441 for _, value := range values {
442 if v == value {
443 valueExists = true
444 break
445 }
446 }
447 if !valueExists {
448 return false
449 }
450 }
451 }
452 return true
453}
454
455// matchMapWithRegex returns true if the given key/value pairs exist in a given map compiled against
456// the given regex
457func matchMapWithRegex(toCheck map[string]*regexp.Regexp, toMatch map[string][]string, canonicalKey bool) bool {
458 for k, v := range toCheck {
459 // Check if key exists.
460 if canonicalKey {
461 k = http.CanonicalHeaderKey(k)
462 }
463 if values := toMatch[k]; values == nil {
464 return false
465 } else if v != nil {
466 // If value was defined as an empty string we only check that the
467 // key exists. Otherwise we also check for equality.
468 valueExists := false
469 for _, value := range values {
470 if v.MatchString(value) {
471 valueExists = true
472 break
473 }
474 }
475 if !valueExists {
476 return false
477 }
478 }
479 }
480 return true
481}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/regexp.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/regexp.go
deleted file mode 100644
index 06728dd..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/regexp.go
+++ /dev/null
@@ -1,317 +0,0 @@
1// Copyright 2012 The Gorilla Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package mux
6
7import (
8 "bytes"
9 "fmt"
10 "net/http"
11 "net/url"
12 "regexp"
13 "strconv"
14 "strings"
15)
16
17// newRouteRegexp parses a route template and returns a routeRegexp,
18// used to match a host, a path or a query string.
19//
20// It will extract named variables, assemble a regexp to be matched, create
21// a "reverse" template to build URLs and compile regexps to validate variable
22// values used in URL building.
23//
24// Previously we accepted only Python-like identifiers for variable
25// names ([a-zA-Z_][a-zA-Z0-9_]*), but currently the only restriction is that
26// name and pattern can't be empty, and names can't contain a colon.
27func newRouteRegexp(tpl string, matchHost, matchPrefix, matchQuery, strictSlash bool) (*routeRegexp, error) {
28 // Check if it is well-formed.
29 idxs, errBraces := braceIndices(tpl)
30 if errBraces != nil {
31 return nil, errBraces
32 }
33 // Backup the original.
34 template := tpl
35 // Now let's parse it.
36 defaultPattern := "[^/]+"
37 if matchQuery {
38 defaultPattern = "[^?&]*"
39 } else if matchHost {
40 defaultPattern = "[^.]+"
41 matchPrefix = false
42 }
43 // Only match strict slash if not matching
44 if matchPrefix || matchHost || matchQuery {
45 strictSlash = false
46 }
47 // Set a flag for strictSlash.
48 endSlash := false
49 if strictSlash && strings.HasSuffix(tpl, "/") {
50 tpl = tpl[:len(tpl)-1]
51 endSlash = true
52 }
53 varsN := make([]string, len(idxs)/2)
54 varsR := make([]*regexp.Regexp, len(idxs)/2)
55 pattern := bytes.NewBufferString("")
56 pattern.WriteByte('^')
57 reverse := bytes.NewBufferString("")
58 var end int
59 var err error
60 for i := 0; i < len(idxs); i += 2 {
61 // Set all values we are interested in.
62 raw := tpl[end:idxs[i]]
63 end = idxs[i+1]
64 parts := strings.SplitN(tpl[idxs[i]+1:end-1], ":", 2)
65 name := parts[0]
66 patt := defaultPattern
67 if len(parts) == 2 {
68 patt = parts[1]
69 }
70 // Name or pattern can't be empty.
71 if name == "" || patt == "" {
72 return nil, fmt.Errorf("mux: missing name or pattern in %q",
73 tpl[idxs[i]:end])
74 }
75 // Build the regexp pattern.
76 varIdx := i / 2
77 fmt.Fprintf(pattern, "%s(?P<%s>%s)", regexp.QuoteMeta(raw), varGroupName(varIdx), patt)
78 // Build the reverse template.
79 fmt.Fprintf(reverse, "%s%%s", raw)
80
81 // Append variable name and compiled pattern.
82 varsN[varIdx] = name
83 varsR[varIdx], err = regexp.Compile(fmt.Sprintf("^%s$", patt))
84 if err != nil {
85 return nil, err
86 }
87 }
88 // Add the remaining.
89 raw := tpl[end:]
90 pattern.WriteString(regexp.QuoteMeta(raw))
91 if strictSlash {
92 pattern.WriteString("[/]?")
93 }
94 if matchQuery {
95 // Add the default pattern if the query value is empty
96 if queryVal := strings.SplitN(template, "=", 2)[1]; queryVal == "" {
97 pattern.WriteString(defaultPattern)
98 }
99 }
100 if !matchPrefix {
101 pattern.WriteByte('$')
102 }
103 reverse.WriteString(raw)
104 if endSlash {
105 reverse.WriteByte('/')
106 }
107 // Compile full regexp.
108 reg, errCompile := regexp.Compile(pattern.String())
109 if errCompile != nil {
110 return nil, errCompile
111 }
112 // Done!
113 return &routeRegexp{
114 template: template,
115 matchHost: matchHost,
116 matchQuery: matchQuery,
117 strictSlash: strictSlash,
118 regexp: reg,
119 reverse: reverse.String(),
120 varsN: varsN,
121 varsR: varsR,
122 }, nil
123}
124
125// routeRegexp stores a regexp to match a host or path and information to
126// collect and validate route variables.
127type routeRegexp struct {
128 // The unmodified template.
129 template string
130 // True for host match, false for path or query string match.
131 matchHost bool
132 // True for query string match, false for path and host match.
133 matchQuery bool
134 // The strictSlash value defined on the route, but disabled if PathPrefix was used.
135 strictSlash bool
136 // Expanded regexp.
137 regexp *regexp.Regexp
138 // Reverse template.
139 reverse string
140 // Variable names.
141 varsN []string
142 // Variable regexps (validators).
143 varsR []*regexp.Regexp
144}
145
146// Match matches the regexp against the URL host or path.
147func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool {
148 if !r.matchHost {
149 if r.matchQuery {
150 return r.matchQueryString(req)
151 } else {
152 return r.regexp.MatchString(req.URL.Path)
153 }
154 }
155 return r.regexp.MatchString(getHost(req))
156}
157
158// url builds a URL part using the given values.
159func (r *routeRegexp) url(values map[string]string) (string, error) {
160 urlValues := make([]interface{}, len(r.varsN))
161 for k, v := range r.varsN {
162 value, ok := values[v]
163 if !ok {
164 return "", fmt.Errorf("mux: missing route variable %q", v)
165 }
166 urlValues[k] = value
167 }
168 rv := fmt.Sprintf(r.reverse, urlValues...)
169 if !r.regexp.MatchString(rv) {
170 // The URL is checked against the full regexp, instead of checking
171 // individual variables. This is faster but to provide a good error
172 // message, we check individual regexps if the URL doesn't match.
173 for k, v := range r.varsN {
174 if !r.varsR[k].MatchString(values[v]) {
175 return "", fmt.Errorf(
176 "mux: variable %q doesn't match, expected %q", values[v],
177 r.varsR[k].String())
178 }
179 }
180 }
181 return rv, nil
182}
183
184// getUrlQuery returns a single query parameter from a request URL.
185// For a URL with foo=bar&baz=ding, we return only the relevant key
186// value pair for the routeRegexp.
187func (r *routeRegexp) getUrlQuery(req *http.Request) string {
188 if !r.matchQuery {
189 return ""
190 }
191 templateKey := strings.SplitN(r.template, "=", 2)[0]
192 for key, vals := range req.URL.Query() {
193 if key == templateKey && len(vals) > 0 {
194 return key + "=" + vals[0]
195 }
196 }
197 return ""
198}
199
200func (r *routeRegexp) matchQueryString(req *http.Request) bool {
201 return r.regexp.MatchString(r.getUrlQuery(req))
202}
203
204// braceIndices returns the first level curly brace indices from a string.
205// It returns an error in case of unbalanced braces.
206func braceIndices(s string) ([]int, error) {
207 var level, idx int
208 idxs := make([]int, 0)
209 for i := 0; i < len(s); i++ {
210 switch s[i] {
211 case '{':
212 if level++; level == 1 {
213 idx = i
214 }
215 case '}':
216 if level--; level == 0 {
217 idxs = append(idxs, idx, i+1)
218 } else if level < 0 {
219 return nil, fmt.Errorf("mux: unbalanced braces in %q", s)
220 }
221 }
222 }
223 if level != 0 {
224 return nil, fmt.Errorf("mux: unbalanced braces in %q", s)
225 }
226 return idxs, nil
227}
228
229// varGroupName builds a capturing group name for the indexed variable.
230func varGroupName(idx int) string {
231 return "v" + strconv.Itoa(idx)
232}
233
234// ----------------------------------------------------------------------------
235// routeRegexpGroup
236// ----------------------------------------------------------------------------
237
238// routeRegexpGroup groups the route matchers that carry variables.
239type routeRegexpGroup struct {
240 host *routeRegexp
241 path *routeRegexp
242 queries []*routeRegexp
243}
244
245// setMatch extracts the variables from the URL once a route matches.
246func (v *routeRegexpGroup) setMatch(req *http.Request, m *RouteMatch, r *Route) {
247 // Store host variables.
248 if v.host != nil {
249 hostVars := v.host.regexp.FindStringSubmatch(getHost(req))
250 if hostVars != nil {
251 subexpNames := v.host.regexp.SubexpNames()
252 varName := 0
253 for i, name := range subexpNames[1:] {
254 if name != "" && name == varGroupName(varName) {
255 m.Vars[v.host.varsN[varName]] = hostVars[i+1]
256 varName++
257 }
258 }
259 }
260 }
261 // Store path variables.
262 if v.path != nil {
263 pathVars := v.path.regexp.FindStringSubmatch(req.URL.Path)
264 if pathVars != nil {
265 subexpNames := v.path.regexp.SubexpNames()
266 varName := 0
267 for i, name := range subexpNames[1:] {
268 if name != "" && name == varGroupName(varName) {
269 m.Vars[v.path.varsN[varName]] = pathVars[i+1]
270 varName++
271 }
272 }
273 // Check if we should redirect.
274 if v.path.strictSlash {
275 p1 := strings.HasSuffix(req.URL.Path, "/")
276 p2 := strings.HasSuffix(v.path.template, "/")
277 if p1 != p2 {
278 u, _ := url.Parse(req.URL.String())
279 if p1 {
280 u.Path = u.Path[:len(u.Path)-1]
281 } else {
282 u.Path += "/"
283 }
284 m.Handler = http.RedirectHandler(u.String(), 301)
285 }
286 }
287 }
288 }
289 // Store query string variables.
290 for _, q := range v.queries {
291 queryVars := q.regexp.FindStringSubmatch(q.getUrlQuery(req))
292 if queryVars != nil {
293 subexpNames := q.regexp.SubexpNames()
294 varName := 0
295 for i, name := range subexpNames[1:] {
296 if name != "" && name == varGroupName(varName) {
297 m.Vars[q.varsN[varName]] = queryVars[i+1]
298 varName++
299 }
300 }
301 }
302 }
303}
304
305// getHost tries its best to return the request host.
306func getHost(r *http.Request) string {
307 if r.URL.IsAbs() {
308 return r.URL.Host
309 }
310 host := r.Host
311 // Slice off any port information.
312 if i := strings.Index(host, ":"); i != -1 {
313 host = host[:i]
314 }
315 return host
316
317}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/route.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/route.go
deleted file mode 100644
index 913432c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux/route.go
+++ /dev/null
@@ -1,595 +0,0 @@
1// Copyright 2012 The Gorilla Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package mux
6
7import (
8 "errors"
9 "fmt"
10 "net/http"
11 "net/url"
12 "regexp"
13 "strings"
14)
15
16// Route stores information to match a request and build URLs.
17type Route struct {
18 // Parent where the route was registered (a Router).
19 parent parentRoute
20 // Request handler for the route.
21 handler http.Handler
22 // List of matchers.
23 matchers []matcher
24 // Manager for the variables from host and path.
25 regexp *routeRegexpGroup
26 // If true, when the path pattern is "/path/", accessing "/path" will
27 // redirect to the former and vice versa.
28 strictSlash bool
29 // If true, this route never matches: it is only used to build URLs.
30 buildOnly bool
31 // The name used to build URLs.
32 name string
33 // Error resulted from building a route.
34 err error
35
36 buildVarsFunc BuildVarsFunc
37}
38
39// Match matches the route against the request.
40func (r *Route) Match(req *http.Request, match *RouteMatch) bool {
41 if r.buildOnly || r.err != nil {
42 return false
43 }
44 // Match everything.
45 for _, m := range r.matchers {
46 if matched := m.Match(req, match); !matched {
47 return false
48 }
49 }
50 // Yay, we have a match. Let's collect some info about it.
51 if match.Route == nil {
52 match.Route = r
53 }
54 if match.Handler == nil {
55 match.Handler = r.handler
56 }
57 if match.Vars == nil {
58 match.Vars = make(map[string]string)
59 }
60 // Set variables.
61 if r.regexp != nil {
62 r.regexp.setMatch(req, match, r)
63 }
64 return true
65}
66
67// ----------------------------------------------------------------------------
68// Route attributes
69// ----------------------------------------------------------------------------
70
71// GetError returns an error resulted from building the route, if any.
72func (r *Route) GetError() error {
73 return r.err
74}
75
76// BuildOnly sets the route to never match: it is only used to build URLs.
77func (r *Route) BuildOnly() *Route {
78 r.buildOnly = true
79 return r
80}
81
82// Handler --------------------------------------------------------------------
83
84// Handler sets a handler for the route.
85func (r *Route) Handler(handler http.Handler) *Route {
86 if r.err == nil {
87 r.handler = handler
88 }
89 return r
90}
91
92// HandlerFunc sets a handler function for the route.
93func (r *Route) HandlerFunc(f func(http.ResponseWriter, *http.Request)) *Route {
94 return r.Handler(http.HandlerFunc(f))
95}
96
97// GetHandler returns the handler for the route, if any.
98func (r *Route) GetHandler() http.Handler {
99 return r.handler
100}
101
102// Name -----------------------------------------------------------------------
103
104// Name sets the name for the route, used to build URLs.
105// If the name was registered already it will be overwritten.
106func (r *Route) Name(name string) *Route {
107 if r.name != "" {
108 r.err = fmt.Errorf("mux: route already has name %q, can't set %q",
109 r.name, name)
110 }
111 if r.err == nil {
112 r.name = name
113 r.getNamedRoutes()[name] = r
114 }
115 return r
116}
117
118// GetName returns the name for the route, if any.
119func (r *Route) GetName() string {
120 return r.name
121}
122
123// ----------------------------------------------------------------------------
124// Matchers
125// ----------------------------------------------------------------------------
126
127// matcher types try to match a request.
128type matcher interface {
129 Match(*http.Request, *RouteMatch) bool
130}
131
132// addMatcher adds a matcher to the route.
133func (r *Route) addMatcher(m matcher) *Route {
134 if r.err == nil {
135 r.matchers = append(r.matchers, m)
136 }
137 return r
138}
139
140// addRegexpMatcher adds a host or path matcher and builder to a route.
141func (r *Route) addRegexpMatcher(tpl string, matchHost, matchPrefix, matchQuery bool) error {
142 if r.err != nil {
143 return r.err
144 }
145 r.regexp = r.getRegexpGroup()
146 if !matchHost && !matchQuery {
147 if len(tpl) == 0 || tpl[0] != '/' {
148 return fmt.Errorf("mux: path must start with a slash, got %q", tpl)
149 }
150 if r.regexp.path != nil {
151 tpl = strings.TrimRight(r.regexp.path.template, "/") + tpl
152 }
153 }
154 rr, err := newRouteRegexp(tpl, matchHost, matchPrefix, matchQuery, r.strictSlash)
155 if err != nil {
156 return err
157 }
158 for _, q := range r.regexp.queries {
159 if err = uniqueVars(rr.varsN, q.varsN); err != nil {
160 return err
161 }
162 }
163 if matchHost {
164 if r.regexp.path != nil {
165 if err = uniqueVars(rr.varsN, r.regexp.path.varsN); err != nil {
166 return err
167 }
168 }
169 r.regexp.host = rr
170 } else {
171 if r.regexp.host != nil {
172 if err = uniqueVars(rr.varsN, r.regexp.host.varsN); err != nil {
173 return err
174 }
175 }
176 if matchQuery {
177 r.regexp.queries = append(r.regexp.queries, rr)
178 } else {
179 r.regexp.path = rr
180 }
181 }
182 r.addMatcher(rr)
183 return nil
184}
185
186// Headers --------------------------------------------------------------------
187
188// headerMatcher matches the request against header values.
189type headerMatcher map[string]string
190
191func (m headerMatcher) Match(r *http.Request, match *RouteMatch) bool {
192 return matchMapWithString(m, r.Header, true)
193}
194
195// Headers adds a matcher for request header values.
196// It accepts a sequence of key/value pairs to be matched. For example:
197//
198// r := mux.NewRouter()
199// r.Headers("Content-Type", "application/json",
200// "X-Requested-With", "XMLHttpRequest")
201//
202// The above route will only match if both request header values match.
203// If the value is an empty string, it will match any value if the key is set.
204func (r *Route) Headers(pairs ...string) *Route {
205 if r.err == nil {
206 var headers map[string]string
207 headers, r.err = mapFromPairsToString(pairs...)
208 return r.addMatcher(headerMatcher(headers))
209 }
210 return r
211}
212
213// headerRegexMatcher matches the request against the route given a regex for the header
214type headerRegexMatcher map[string]*regexp.Regexp
215
216func (m headerRegexMatcher) Match(r *http.Request, match *RouteMatch) bool {
217 return matchMapWithRegex(m, r.Header, true)
218}
219
220// Regular expressions can be used with headers as well.
221// It accepts a sequence of key/value pairs, where the value has regex support. For example
222// r := mux.NewRouter()
223// r.HeadersRegexp("Content-Type", "application/(text|json)",
224// "X-Requested-With", "XMLHttpRequest")
225//
226// The above route will only match if both the request header matches both regular expressions.
227// It the value is an empty string, it will match any value if the key is set.
228func (r *Route) HeadersRegexp(pairs ...string) *Route {
229 if r.err == nil {
230 var headers map[string]*regexp.Regexp
231 headers, r.err = mapFromPairsToRegex(pairs...)
232 return r.addMatcher(headerRegexMatcher(headers))
233 }
234 return r
235}
236
237// Host -----------------------------------------------------------------------
238
239// Host adds a matcher for the URL host.
240// It accepts a template with zero or more URL variables enclosed by {}.
241// Variables can define an optional regexp pattern to be matched:
242//
243// - {name} matches anything until the next dot.
244//
245// - {name:pattern} matches the given regexp pattern.
246//
247// For example:
248//
249// r := mux.NewRouter()
250// r.Host("www.example.com")
251// r.Host("{subdomain}.domain.com")
252// r.Host("{subdomain:[a-z]+}.domain.com")
253//
254// Variable names must be unique in a given route. They can be retrieved
255// calling mux.Vars(request).
256func (r *Route) Host(tpl string) *Route {
257 r.err = r.addRegexpMatcher(tpl, true, false, false)
258 return r
259}
260
261// MatcherFunc ----------------------------------------------------------------
262
263// MatcherFunc is the function signature used by custom matchers.
264type MatcherFunc func(*http.Request, *RouteMatch) bool
265
266func (m MatcherFunc) Match(r *http.Request, match *RouteMatch) bool {
267 return m(r, match)
268}
269
270// MatcherFunc adds a custom function to be used as request matcher.
271func (r *Route) MatcherFunc(f MatcherFunc) *Route {
272 return r.addMatcher(f)
273}
274
275// Methods --------------------------------------------------------------------
276
277// methodMatcher matches the request against HTTP methods.
278type methodMatcher []string
279
280func (m methodMatcher) Match(r *http.Request, match *RouteMatch) bool {
281 return matchInArray(m, r.Method)
282}
283
284// Methods adds a matcher for HTTP methods.
285// It accepts a sequence of one or more methods to be matched, e.g.:
286// "GET", "POST", "PUT".
287func (r *Route) Methods(methods ...string) *Route {
288 for k, v := range methods {
289 methods[k] = strings.ToUpper(v)
290 }
291 return r.addMatcher(methodMatcher(methods))
292}
293
294// Path -----------------------------------------------------------------------
295
296// Path adds a matcher for the URL path.
297// It accepts a template with zero or more URL variables enclosed by {}. The
298// template must start with a "/".
299// Variables can define an optional regexp pattern to be matched:
300//
301// - {name} matches anything until the next slash.
302//
303// - {name:pattern} matches the given regexp pattern.
304//
305// For example:
306//
307// r := mux.NewRouter()
308// r.Path("/products/").Handler(ProductsHandler)
309// r.Path("/products/{key}").Handler(ProductsHandler)
310// r.Path("/articles/{category}/{id:[0-9]+}").
311// Handler(ArticleHandler)
312//
313// Variable names must be unique in a given route. They can be retrieved
314// calling mux.Vars(request).
315func (r *Route) Path(tpl string) *Route {
316 r.err = r.addRegexpMatcher(tpl, false, false, false)
317 return r
318}
319
320// PathPrefix -----------------------------------------------------------------
321
322// PathPrefix adds a matcher for the URL path prefix. This matches if the given
323// template is a prefix of the full URL path. See Route.Path() for details on
324// the tpl argument.
325//
326// Note that it does not treat slashes specially ("/foobar/" will be matched by
327// the prefix "/foo") so you may want to use a trailing slash here.
328//
329// Also note that the setting of Router.StrictSlash() has no effect on routes
330// with a PathPrefix matcher.
331func (r *Route) PathPrefix(tpl string) *Route {
332 r.err = r.addRegexpMatcher(tpl, false, true, false)
333 return r
334}
335
336// Query ----------------------------------------------------------------------
337
338// Queries adds a matcher for URL query values.
339// It accepts a sequence of key/value pairs. Values may define variables.
340// For example:
341//
342// r := mux.NewRouter()
343// r.Queries("foo", "bar", "id", "{id:[0-9]+}")
344//
345// The above route will only match if the URL contains the defined queries
346// values, e.g.: ?foo=bar&id=42.
347//
348// It the value is an empty string, it will match any value if the key is set.
349//
350// Variables can define an optional regexp pattern to be matched:
351//
352// - {name} matches anything until the next slash.
353//
354// - {name:pattern} matches the given regexp pattern.
355func (r *Route) Queries(pairs ...string) *Route {
356 length := len(pairs)
357 if length%2 != 0 {
358 r.err = fmt.Errorf(
359 "mux: number of parameters must be multiple of 2, got %v", pairs)
360 return nil
361 }
362 for i := 0; i < length; i += 2 {
363 if r.err = r.addRegexpMatcher(pairs[i]+"="+pairs[i+1], false, false, true); r.err != nil {
364 return r
365 }
366 }
367
368 return r
369}
370
371// Schemes --------------------------------------------------------------------
372
373// schemeMatcher matches the request against URL schemes.
374type schemeMatcher []string
375
376func (m schemeMatcher) Match(r *http.Request, match *RouteMatch) bool {
377 return matchInArray(m, r.URL.Scheme)
378}
379
380// Schemes adds a matcher for URL schemes.
381// It accepts a sequence of schemes to be matched, e.g.: "http", "https".
382func (r *Route) Schemes(schemes ...string) *Route {
383 for k, v := range schemes {
384 schemes[k] = strings.ToLower(v)
385 }
386 return r.addMatcher(schemeMatcher(schemes))
387}
388
389// BuildVarsFunc --------------------------------------------------------------
390
391// BuildVarsFunc is the function signature used by custom build variable
392// functions (which can modify route variables before a route's URL is built).
393type BuildVarsFunc func(map[string]string) map[string]string
394
395// BuildVarsFunc adds a custom function to be used to modify build variables
396// before a route's URL is built.
397func (r *Route) BuildVarsFunc(f BuildVarsFunc) *Route {
398 r.buildVarsFunc = f
399 return r
400}
401
402// Subrouter ------------------------------------------------------------------
403
404// Subrouter creates a subrouter for the route.
405//
406// It will test the inner routes only if the parent route matched. For example:
407//
408// r := mux.NewRouter()
409// s := r.Host("www.example.com").Subrouter()
410// s.HandleFunc("/products/", ProductsHandler)
411// s.HandleFunc("/products/{key}", ProductHandler)
412// s.HandleFunc("/articles/{category}/{id:[0-9]+}"), ArticleHandler)
413//
414// Here, the routes registered in the subrouter won't be tested if the host
415// doesn't match.
416func (r *Route) Subrouter() *Router {
417 router := &Router{parent: r, strictSlash: r.strictSlash}
418 r.addMatcher(router)
419 return router
420}
421
422// ----------------------------------------------------------------------------
423// URL building
424// ----------------------------------------------------------------------------
425
426// URL builds a URL for the route.
427//
428// It accepts a sequence of key/value pairs for the route variables. For
429// example, given this route:
430//
431// r := mux.NewRouter()
432// r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler).
433// Name("article")
434//
435// ...a URL for it can be built using:
436//
437// url, err := r.Get("article").URL("category", "technology", "id", "42")
438//
439// ...which will return an url.URL with the following path:
440//
441// "/articles/technology/42"
442//
443// This also works for host variables:
444//
445// r := mux.NewRouter()
446// r.Host("{subdomain}.domain.com").
447// HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler).
448// Name("article")
449//
450// // url.String() will be "http://news.domain.com/articles/technology/42"
451// url, err := r.Get("article").URL("subdomain", "news",
452// "category", "technology",
453// "id", "42")
454//
455// All variables defined in the route are required, and their values must
456// conform to the corresponding patterns.
457func (r *Route) URL(pairs ...string) (*url.URL, error) {
458 if r.err != nil {
459 return nil, r.err
460 }
461 if r.regexp == nil {
462 return nil, errors.New("mux: route doesn't have a host or path")
463 }
464 values, err := r.prepareVars(pairs...)
465 if err != nil {
466 return nil, err
467 }
468 var scheme, host, path string
469 if r.regexp.host != nil {
470 // Set a default scheme.
471 scheme = "http"
472 if host, err = r.regexp.host.url(values); err != nil {
473 return nil, err
474 }
475 }
476 if r.regexp.path != nil {
477 if path, err = r.regexp.path.url(values); err != nil {
478 return nil, err
479 }
480 }
481 return &url.URL{
482 Scheme: scheme,
483 Host: host,
484 Path: path,
485 }, nil
486}
487
488// URLHost builds the host part of the URL for a route. See Route.URL().
489//
490// The route must have a host defined.
491func (r *Route) URLHost(pairs ...string) (*url.URL, error) {
492 if r.err != nil {
493 return nil, r.err
494 }
495 if r.regexp == nil || r.regexp.host == nil {
496 return nil, errors.New("mux: route doesn't have a host")
497 }
498 values, err := r.prepareVars(pairs...)
499 if err != nil {
500 return nil, err
501 }
502 host, err := r.regexp.host.url(values)
503 if err != nil {
504 return nil, err
505 }
506 return &url.URL{
507 Scheme: "http",
508 Host: host,
509 }, nil
510}
511
512// URLPath builds the path part of the URL for a route. See Route.URL().
513//
514// The route must have a path defined.
515func (r *Route) URLPath(pairs ...string) (*url.URL, error) {
516 if r.err != nil {
517 return nil, r.err
518 }
519 if r.regexp == nil || r.regexp.path == nil {
520 return nil, errors.New("mux: route doesn't have a path")
521 }
522 values, err := r.prepareVars(pairs...)
523 if err != nil {
524 return nil, err
525 }
526 path, err := r.regexp.path.url(values)
527 if err != nil {
528 return nil, err
529 }
530 return &url.URL{
531 Path: path,
532 }, nil
533}
534
535// prepareVars converts the route variable pairs into a map. If the route has a
536// BuildVarsFunc, it is invoked.
537func (r *Route) prepareVars(pairs ...string) (map[string]string, error) {
538 m, err := mapFromPairsToString(pairs...)
539 if err != nil {
540 return nil, err
541 }
542 return r.buildVars(m), nil
543}
544
545func (r *Route) buildVars(m map[string]string) map[string]string {
546 if r.parent != nil {
547 m = r.parent.buildVars(m)
548 }
549 if r.buildVarsFunc != nil {
550 m = r.buildVarsFunc(m)
551 }
552 return m
553}
554
555// ----------------------------------------------------------------------------
556// parentRoute
557// ----------------------------------------------------------------------------
558
559// parentRoute allows routes to know about parent host and path definitions.
560type parentRoute interface {
561 getNamedRoutes() map[string]*Route
562 getRegexpGroup() *routeRegexpGroup
563 buildVars(map[string]string) map[string]string
564}
565
566// getNamedRoutes returns the map where named routes are registered.
567func (r *Route) getNamedRoutes() map[string]*Route {
568 if r.parent == nil {
569 // During tests router is not always set.
570 r.parent = NewRouter()
571 }
572 return r.parent.getNamedRoutes()
573}
574
575// getRegexpGroup returns regexp definitions from this route.
576func (r *Route) getRegexpGroup() *routeRegexpGroup {
577 if r.regexp == nil {
578 if r.parent == nil {
579 // During tests router is not always set.
580 r.parent = NewRouter()
581 }
582 regexp := r.parent.getRegexpGroup()
583 if regexp == nil {
584 r.regexp = new(routeRegexpGroup)
585 } else {
586 // Copy.
587 r.regexp = &routeRegexpGroup{
588 host: regexp.host,
589 path: regexp.path,
590 queries: regexp.queries,
591 }
592 }
593 }
594 return r.regexp
595}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/LICENSE b/vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/LICENSE
deleted file mode 100644
index e87a115..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/LICENSE
+++ /dev/null
@@ -1,363 +0,0 @@
1Mozilla Public License, version 2.0
2
31. Definitions
4
51.1. "Contributor"
6
7 means each individual or legal entity that creates, contributes to the
8 creation of, or owns Covered Software.
9
101.2. "Contributor Version"
11
12 means the combination of the Contributions of others (if any) used by a
13 Contributor and that particular Contributor's Contribution.
14
151.3. "Contribution"
16
17 means Covered Software of a particular Contributor.
18
191.4. "Covered Software"
20
21 means Source Code Form to which the initial Contributor has attached the
22 notice in Exhibit A, the Executable Form of such Source Code Form, and
23 Modifications of such Source Code Form, in each case including portions
24 thereof.
25
261.5. "Incompatible With Secondary Licenses"
27 means
28
29 a. that the initial Contributor has attached the notice described in
30 Exhibit B to the Covered Software; or
31
32 b. that the Covered Software was made available under the terms of
33 version 1.1 or earlier of the License, but not also under the terms of
34 a Secondary License.
35
361.6. "Executable Form"
37
38 means any form of the work other than Source Code Form.
39
401.7. "Larger Work"
41
42 means a work that combines Covered Software with other material, in a
43 separate file or files, that is not Covered Software.
44
451.8. "License"
46
47 means this document.
48
491.9. "Licensable"
50
51 means having the right to grant, to the maximum extent possible, whether
52 at the time of the initial grant or subsequently, any and all of the
53 rights conveyed by this License.
54
551.10. "Modifications"
56
57 means any of the following:
58
59 a. any file in Source Code Form that results from an addition to,
60 deletion from, or modification of the contents of Covered Software; or
61
62 b. any new file in Source Code Form that contains any Covered Software.
63
641.11. "Patent Claims" of a Contributor
65
66 means any patent claim(s), including without limitation, method,
67 process, and apparatus claims, in any patent Licensable by such
68 Contributor that would be infringed, but for the grant of the License,
69 by the making, using, selling, offering for sale, having made, import,
70 or transfer of either its Contributions or its Contributor Version.
71
721.12. "Secondary License"
73
74 means either the GNU General Public License, Version 2.0, the GNU Lesser
75 General Public License, Version 2.1, the GNU Affero General Public
76 License, Version 3.0, or any later versions of those licenses.
77
781.13. "Source Code Form"
79
80 means the form of the work preferred for making modifications.
81
821.14. "You" (or "Your")
83
84 means an individual or a legal entity exercising rights under this
85 License. For legal entities, "You" includes any entity that controls, is
86 controlled by, or is under common control with You. For purposes of this
87 definition, "control" means (a) the power, direct or indirect, to cause
88 the direction or management of such entity, whether by contract or
89 otherwise, or (b) ownership of more than fifty percent (50%) of the
90 outstanding shares or beneficial ownership of such entity.
91
92
932. License Grants and Conditions
94
952.1. Grants
96
97 Each Contributor hereby grants You a world-wide, royalty-free,
98 non-exclusive license:
99
100 a. under intellectual property rights (other than patent or trademark)
101 Licensable by such Contributor to use, reproduce, make available,
102 modify, display, perform, distribute, and otherwise exploit its
103 Contributions, either on an unmodified basis, with Modifications, or
104 as part of a Larger Work; and
105
106 b. under Patent Claims of such Contributor to make, use, sell, offer for
107 sale, have made, import, and otherwise transfer either its
108 Contributions or its Contributor Version.
109
1102.2. Effective Date
111
112 The licenses granted in Section 2.1 with respect to any Contribution
113 become effective for each Contribution on the date the Contributor first
114 distributes such Contribution.
115
1162.3. Limitations on Grant Scope
117
118 The licenses granted in this Section 2 are the only rights granted under
119 this License. No additional rights or licenses will be implied from the
120 distribution or licensing of Covered Software under this License.
121 Notwithstanding Section 2.1(b) above, no patent license is granted by a
122 Contributor:
123
124 a. for any code that a Contributor has removed from Covered Software; or
125
126 b. for infringements caused by: (i) Your and any other third party's
127 modifications of Covered Software, or (ii) the combination of its
128 Contributions with other software (except as part of its Contributor
129 Version); or
130
131 c. under Patent Claims infringed by Covered Software in the absence of
132 its Contributions.
133
134 This License does not grant any rights in the trademarks, service marks,
135 or logos of any Contributor (except as may be necessary to comply with
136 the notice requirements in Section 3.4).
137
1382.4. Subsequent Licenses
139
140 No Contributor makes additional grants as a result of Your choice to
141 distribute the Covered Software under a subsequent version of this
142 License (see Section 10.2) or under the terms of a Secondary License (if
143 permitted under the terms of Section 3.3).
144
1452.5. Representation
146
147 Each Contributor represents that the Contributor believes its
148 Contributions are its original creation(s) or it has sufficient rights to
149 grant the rights to its Contributions conveyed by this License.
150
1512.6. Fair Use
152
153 This License is not intended to limit any rights You have under
154 applicable copyright doctrines of fair use, fair dealing, or other
155 equivalents.
156
1572.7. Conditions
158
159 Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
160 Section 2.1.
161
162
1633. Responsibilities
164
1653.1. Distribution of Source Form
166
167 All distribution of Covered Software in Source Code Form, including any
168 Modifications that You create or to which You contribute, must be under
169 the terms of this License. You must inform recipients that the Source
170 Code Form of the Covered Software is governed by the terms of this
171 License, and how they can obtain a copy of this License. You may not
172 attempt to alter or restrict the recipients' rights in the Source Code
173 Form.
174
1753.2. Distribution of Executable Form
176
177 If You distribute Covered Software in Executable Form then:
178
179 a. such Covered Software must also be made available in Source Code Form,
180 as described in Section 3.1, and You must inform recipients of the
181 Executable Form how they can obtain a copy of such Source Code Form by
182 reasonable means in a timely manner, at a charge no more than the cost
183 of distribution to the recipient; and
184
185 b. You may distribute such Executable Form under the terms of this
186 License, or sublicense it under different terms, provided that the
187 license for the Executable Form does not attempt to limit or alter the
188 recipients' rights in the Source Code Form under this License.
189
1903.3. Distribution of a Larger Work
191
192 You may create and distribute a Larger Work under terms of Your choice,
193 provided that You also comply with the requirements of this License for
194 the Covered Software. If the Larger Work is a combination of Covered
195 Software with a work governed by one or more Secondary Licenses, and the
196 Covered Software is not Incompatible With Secondary Licenses, this
197 License permits You to additionally distribute such Covered Software
198 under the terms of such Secondary License(s), so that the recipient of
199 the Larger Work may, at their option, further distribute the Covered
200 Software under the terms of either this License or such Secondary
201 License(s).
202
2033.4. Notices
204
205 You may not remove or alter the substance of any license notices
206 (including copyright notices, patent notices, disclaimers of warranty, or
207 limitations of liability) contained within the Source Code Form of the
208 Covered Software, except that You may alter any license notices to the
209 extent required to remedy known factual inaccuracies.
210
2113.5. Application of Additional Terms
212
213 You may choose to offer, and to charge a fee for, warranty, support,
214 indemnity or liability obligations to one or more recipients of Covered
215 Software. However, You may do so only on Your own behalf, and not on
216 behalf of any Contributor. You must make it absolutely clear that any
217 such warranty, support, indemnity, or liability obligation is offered by
218 You alone, and You hereby agree to indemnify every Contributor for any
219 liability incurred by such Contributor as a result of warranty, support,
220 indemnity or liability terms You offer. You may include additional
221 disclaimers of warranty and limitations of liability specific to any
222 jurisdiction.
223
2244. Inability to Comply Due to Statute or Regulation
225
226 If it is impossible for You to comply with any of the terms of this License
227 with respect to some or all of the Covered Software due to statute,
228 judicial order, or regulation then You must: (a) comply with the terms of
229 this License to the maximum extent possible; and (b) describe the
230 limitations and the code they affect. Such description must be placed in a
231 text file included with all distributions of the Covered Software under
232 this License. Except to the extent prohibited by statute or regulation,
233 such description must be sufficiently detailed for a recipient of ordinary
234 skill to be able to understand it.
235
2365. Termination
237
2385.1. The rights granted under this License will terminate automatically if You
239 fail to comply with any of its terms. However, if You become compliant,
240 then the rights granted under this License from a particular Contributor
241 are reinstated (a) provisionally, unless and until such Contributor
242 explicitly and finally terminates Your grants, and (b) on an ongoing
243 basis, if such Contributor fails to notify You of the non-compliance by
244 some reasonable means prior to 60 days after You have come back into
245 compliance. Moreover, Your grants from a particular Contributor are
246 reinstated on an ongoing basis if such Contributor notifies You of the
247 non-compliance by some reasonable means, this is the first time You have
248 received notice of non-compliance with this License from such
249 Contributor, and You become compliant prior to 30 days after Your receipt
250 of the notice.
251
2525.2. If You initiate litigation against any entity by asserting a patent
253 infringement claim (excluding declaratory judgment actions,
254 counter-claims, and cross-claims) alleging that a Contributor Version
255 directly or indirectly infringes any patent, then the rights granted to
256 You by any and all Contributors for the Covered Software under Section
257 2.1 of this License shall terminate.
258
2595.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
260 license agreements (excluding distributors and resellers) which have been
261 validly granted by You or Your distributors under this License prior to
262 termination shall survive termination.
263
2646. Disclaimer of Warranty
265
266 Covered Software is provided under this License on an "as is" basis,
267 without warranty of any kind, either expressed, implied, or statutory,
268 including, without limitation, warranties that the Covered Software is free
269 of defects, merchantable, fit for a particular purpose or non-infringing.
270 The entire risk as to the quality and performance of the Covered Software
271 is with You. Should any Covered Software prove defective in any respect,
272 You (not any Contributor) assume the cost of any necessary servicing,
273 repair, or correction. This disclaimer of warranty constitutes an essential
274 part of this License. No use of any Covered Software is authorized under
275 this License except under this disclaimer.
276
2777. Limitation of Liability
278
279 Under no circumstances and under no legal theory, whether tort (including
280 negligence), contract, or otherwise, shall any Contributor, or anyone who
281 distributes Covered Software as permitted above, be liable to You for any
282 direct, indirect, special, incidental, or consequential damages of any
283 character including, without limitation, damages for lost profits, loss of
284 goodwill, work stoppage, computer failure or malfunction, or any and all
285 other commercial damages or losses, even if such party shall have been
286 informed of the possibility of such damages. This limitation of liability
287 shall not apply to liability for death or personal injury resulting from
288 such party's negligence to the extent applicable law prohibits such
289 limitation. Some jurisdictions do not allow the exclusion or limitation of
290 incidental or consequential damages, so this exclusion and limitation may
291 not apply to You.
292
2938. Litigation
294
295 Any litigation relating to this License may be brought only in the courts
296 of a jurisdiction where the defendant maintains its principal place of
297 business and such litigation shall be governed by laws of that
298 jurisdiction, without reference to its conflict-of-law provisions. Nothing
299 in this Section shall prevent a party's ability to bring cross-claims or
300 counter-claims.
301
3029. Miscellaneous
303
304 This License represents the complete agreement concerning the subject
305 matter hereof. If any provision of this License is held to be
306 unenforceable, such provision shall be reformed only to the extent
307 necessary to make it enforceable. Any law or regulation which provides that
308 the language of a contract shall be construed against the drafter shall not
309 be used to construe this License against a Contributor.
310
311
31210. Versions of the License
313
31410.1. New Versions
315
316 Mozilla Foundation is the license steward. Except as provided in Section
317 10.3, no one other than the license steward has the right to modify or
318 publish new versions of this License. Each version will be given a
319 distinguishing version number.
320
32110.2. Effect of New Versions
322
323 You may distribute the Covered Software under the terms of the version
324 of the License under which You originally received the Covered Software,
325 or under the terms of any subsequent version published by the license
326 steward.
327
32810.3. Modified Versions
329
330 If you create software not governed by this License, and you want to
331 create a new license for such software, you may create and use a
332 modified version of this License if you rename the license and remove
333 any references to the name of the license steward (except to note that
334 such modified license differs from this License).
335
33610.4. Distributing Source Code Form that is Incompatible With Secondary
337 Licenses If You choose to distribute Source Code Form that is
338 Incompatible With Secondary Licenses under the terms of this version of
339 the License, the notice described in Exhibit B of this License must be
340 attached.
341
342Exhibit A - Source Code Form License Notice
343
344 This Source Code Form is subject to the
345 terms of the Mozilla Public License, v.
346 2.0. If a copy of the MPL was not
347 distributed with this file, You can
348 obtain one at
349 http://mozilla.org/MPL/2.0/.
350
351If it is not possible or desirable to put the notice in a particular file,
352then You may include the notice in a location (such as a LICENSE file in a
353relevant directory) where a recipient would be likely to look for such a
354notice.
355
356You may add additional accurate notices of copyright ownership.
357
358Exhibit B - "Incompatible With Secondary Licenses" Notice
359
360 This Source Code Form is "Incompatible
361 With Secondary Licenses", as defined by
362 the Mozilla Public License, v. 2.0.
363
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/README.md b/vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/README.md
deleted file mode 100644
index 036e531..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
1# cleanhttp
2
3Functions for accessing "clean" Go http.Client values
4
5-------------
6
7The Go standard library contains a default `http.Client` called
8`http.DefaultClient`. It is a common idiom in Go code to start with
9`http.DefaultClient` and tweak it as necessary, and in fact, this is
10encouraged; from the `http` package documentation:
11
12> The Client's Transport typically has internal state (cached TCP connections),
13so Clients should be reused instead of created as needed. Clients are safe for
14concurrent use by multiple goroutines.
15
16Unfortunately, this is a shared value, and it is not uncommon for libraries to
17assume that they are free to modify it at will. With enough dependencies, it
18can be very easy to encounter strange problems and race conditions due to
19manipulation of this shared value across libraries and goroutines (clients are
20safe for concurrent use, but writing values to the client struct itself is not
21protected).
22
23Making things worse is the fact that a bare `http.Client` will use a default
24`http.Transport` called `http.DefaultTransport`, which is another global value
25that behaves the same way. So it is not simply enough to replace
26`http.DefaultClient` with `&http.Client{}`.
27
28This repository provides some simple functions to get a "clean" `http.Client`
29-- one that uses the same default values as the Go standard library, but
30returns a client that does not share any state with other clients.
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/cleanhttp.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/cleanhttp.go
deleted file mode 100644
index c692e23..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/hashicorp/go-cleanhttp/cleanhttp.go
+++ /dev/null
@@ -1,40 +0,0 @@
1package cleanhttp
2
3import (
4 "net"
5 "net/http"
6 "runtime"
7 "time"
8)
9
10// DefaultTransport returns a new http.Transport with the same default values
11// as http.DefaultTransport
12func DefaultTransport() *http.Transport {
13 transport := &http.Transport{
14 Proxy: http.ProxyFromEnvironment,
15 Dial: (&net.Dialer{
16 Timeout: 30 * time.Second,
17 KeepAlive: 30 * time.Second,
18 }).Dial,
19 TLSHandshakeTimeout: 10 * time.Second,
20 }
21 SetTransportFinalizer(transport)
22 return transport
23}
24
25// DefaultClient returns a new http.Client with the same default values as
26// http.Client, but with a non-shared Transport
27func DefaultClient() *http.Client {
28 return &http.Client{
29 Transport: DefaultTransport(),
30 }
31}
32
33// SetTransportFinalizer sets a finalizer on the transport to ensure that
34// idle connections are closed prior to garbage collection; otherwise
35// these may leak
36func SetTransportFinalizer(transport *http.Transport) {
37 runtime.SetFinalizer(&transport, func(t **http.Transport) {
38 (*t).CloseIdleConnections()
39 })
40}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/MAINTAINERS b/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/MAINTAINERS
deleted file mode 100644
index edbe200..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/MAINTAINERS
+++ /dev/null
@@ -1,2 +0,0 @@
1Tianon Gravi <admwiggin@gmail.com> (@tianon)
2Aleksa Sarai <cyphar@cyphar.com> (@cyphar)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup.go
deleted file mode 100644
index 6f8a982..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup.go
+++ /dev/null
@@ -1,108 +0,0 @@
1package user
2
3import (
4 "errors"
5 "fmt"
6 "syscall"
7)
8
9var (
10 // The current operating system does not provide the required data for user lookups.
11 ErrUnsupported = errors.New("user lookup: operating system does not provide passwd-formatted data")
12)
13
14func lookupUser(filter func(u User) bool) (User, error) {
15 // Get operating system-specific passwd reader-closer.
16 passwd, err := GetPasswd()
17 if err != nil {
18 return User{}, err
19 }
20 defer passwd.Close()
21
22 // Get the users.
23 users, err := ParsePasswdFilter(passwd, filter)
24 if err != nil {
25 return User{}, err
26 }
27
28 // No user entries found.
29 if len(users) == 0 {
30 return User{}, fmt.Errorf("no matching entries in passwd file")
31 }
32
33 // Assume the first entry is the "correct" one.
34 return users[0], nil
35}
36
37// CurrentUser looks up the current user by their user id in /etc/passwd. If the
38// user cannot be found (or there is no /etc/passwd file on the filesystem),
39// then CurrentUser returns an error.
40func CurrentUser() (User, error) {
41 return LookupUid(syscall.Getuid())
42}
43
44// LookupUser looks up a user by their username in /etc/passwd. If the user
45// cannot be found (or there is no /etc/passwd file on the filesystem), then
46// LookupUser returns an error.
47func LookupUser(username string) (User, error) {
48 return lookupUser(func(u User) bool {
49 return u.Name == username
50 })
51}
52
53// LookupUid looks up a user by their user id in /etc/passwd. If the user cannot
54// be found (or there is no /etc/passwd file on the filesystem), then LookupId
55// returns an error.
56func LookupUid(uid int) (User, error) {
57 return lookupUser(func(u User) bool {
58 return u.Uid == uid
59 })
60}
61
62func lookupGroup(filter func(g Group) bool) (Group, error) {
63 // Get operating system-specific group reader-closer.
64 group, err := GetGroup()
65 if err != nil {
66 return Group{}, err
67 }
68 defer group.Close()
69
70 // Get the users.
71 groups, err := ParseGroupFilter(group, filter)
72 if err != nil {
73 return Group{}, err
74 }
75
76 // No user entries found.
77 if len(groups) == 0 {
78 return Group{}, fmt.Errorf("no matching entries in group file")
79 }
80
81 // Assume the first entry is the "correct" one.
82 return groups[0], nil
83}
84
85// CurrentGroup looks up the current user's group by their primary group id's
86// entry in /etc/passwd. If the group cannot be found (or there is no
87// /etc/group file on the filesystem), then CurrentGroup returns an error.
88func CurrentGroup() (Group, error) {
89 return LookupGid(syscall.Getgid())
90}
91
92// LookupGroup looks up a group by its name in /etc/group. If the group cannot
93// be found (or there is no /etc/group file on the filesystem), then LookupGroup
94// returns an error.
95func LookupGroup(groupname string) (Group, error) {
96 return lookupGroup(func(g Group) bool {
97 return g.Name == groupname
98 })
99}
100
101// LookupGid looks up a group by its group id in /etc/group. If the group cannot
102// be found (or there is no /etc/group file on the filesystem), then LookupGid
103// returns an error.
104func LookupGid(gid int) (Group, error) {
105 return lookupGroup(func(g Group) bool {
106 return g.Gid == gid
107 })
108}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unix.go
deleted file mode 100644
index 758b734..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unix.go
+++ /dev/null
@@ -1,30 +0,0 @@
1// +build darwin dragonfly freebsd linux netbsd openbsd solaris
2
3package user
4
5import (
6 "io"
7 "os"
8)
9
10// Unix-specific path to the passwd and group formatted files.
11const (
12 unixPasswdPath = "/etc/passwd"
13 unixGroupPath = "/etc/group"
14)
15
16func GetPasswdPath() (string, error) {
17 return unixPasswdPath, nil
18}
19
20func GetPasswd() (io.ReadCloser, error) {
21 return os.Open(unixPasswdPath)
22}
23
24func GetGroupPath() (string, error) {
25 return unixGroupPath, nil
26}
27
28func GetGroup() (io.ReadCloser, error) {
29 return os.Open(unixGroupPath)
30}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unsupported.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unsupported.go
deleted file mode 100644
index 7217948..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unsupported.go
+++ /dev/null
@@ -1,21 +0,0 @@
1// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
2
3package user
4
5import "io"
6
7func GetPasswdPath() (string, error) {
8 return "", ErrUnsupported
9}
10
11func GetPasswd() (io.ReadCloser, error) {
12 return nil, ErrUnsupported
13}
14
15func GetGroupPath() (string, error) {
16 return "", ErrUnsupported
17}
18
19func GetGroup() (io.ReadCloser, error) {
20 return nil, ErrUnsupported
21}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/user.go b/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/user.go
deleted file mode 100644
index e6375ea..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/user.go
+++ /dev/null
@@ -1,418 +0,0 @@
1package user
2
3import (
4 "bufio"
5 "fmt"
6 "io"
7 "os"
8 "strconv"
9 "strings"
10)
11
12const (
13 minId = 0
14 maxId = 1<<31 - 1 //for 32-bit systems compatibility
15)
16
17var (
18 ErrRange = fmt.Errorf("Uids and gids must be in range %d-%d", minId, maxId)
19)
20
21type User struct {
22 Name string
23 Pass string
24 Uid int
25 Gid int
26 Gecos string
27 Home string
28 Shell string
29}
30
31type Group struct {
32 Name string
33 Pass string
34 Gid int
35 List []string
36}
37
38func parseLine(line string, v ...interface{}) {
39 if line == "" {
40 return
41 }
42
43 parts := strings.Split(line, ":")
44 for i, p := range parts {
45 if len(v) <= i {
46 // if we have more "parts" than we have places to put them, bail for great "tolerance" of naughty configuration files
47 break
48 }
49
50 switch e := v[i].(type) {
51 case *string:
52 // "root", "adm", "/bin/bash"
53 *e = p
54 case *int:
55 // "0", "4", "1000"
56 // ignore string to int conversion errors, for great "tolerance" of naughty configuration files
57 *e, _ = strconv.Atoi(p)
58 case *[]string:
59 // "", "root", "root,adm,daemon"
60 if p != "" {
61 *e = strings.Split(p, ",")
62 } else {
63 *e = []string{}
64 }
65 default:
66 // panic, because this is a programming/logic error, not a runtime one
67 panic("parseLine expects only pointers! argument " + strconv.Itoa(i) + " is not a pointer!")
68 }
69 }
70}
71
72func ParsePasswdFile(path string) ([]User, error) {
73 passwd, err := os.Open(path)
74 if err != nil {
75 return nil, err
76 }
77 defer passwd.Close()
78 return ParsePasswd(passwd)
79}
80
81func ParsePasswd(passwd io.Reader) ([]User, error) {
82 return ParsePasswdFilter(passwd, nil)
83}
84
85func ParsePasswdFileFilter(path string, filter func(User) bool) ([]User, error) {
86 passwd, err := os.Open(path)
87 if err != nil {
88 return nil, err
89 }
90 defer passwd.Close()
91 return ParsePasswdFilter(passwd, filter)
92}
93
94func ParsePasswdFilter(r io.Reader, filter func(User) bool) ([]User, error) {
95 if r == nil {
96 return nil, fmt.Errorf("nil source for passwd-formatted data")
97 }
98
99 var (
100 s = bufio.NewScanner(r)
101 out = []User{}
102 )
103
104 for s.Scan() {
105 if err := s.Err(); err != nil {
106 return nil, err
107 }
108
109 text := strings.TrimSpace(s.Text())
110 if text == "" {
111 continue
112 }
113
114 // see: man 5 passwd
115 // name:password:UID:GID:GECOS:directory:shell
116 // Name:Pass:Uid:Gid:Gecos:Home:Shell
117 // root:x:0:0:root:/root:/bin/bash
118 // adm:x:3:4:adm:/var/adm:/bin/false
119 p := User{}
120 parseLine(
121 text,
122 &p.Name, &p.Pass, &p.Uid, &p.Gid, &p.Gecos, &p.Home, &p.Shell,
123 )
124
125 if filter == nil || filter(p) {
126 out = append(out, p)
127 }
128 }
129
130 return out, nil
131}
132
133func ParseGroupFile(path string) ([]Group, error) {
134 group, err := os.Open(path)
135 if err != nil {
136 return nil, err
137 }
138 defer group.Close()
139 return ParseGroup(group)
140}
141
142func ParseGroup(group io.Reader) ([]Group, error) {
143 return ParseGroupFilter(group, nil)
144}
145
146func ParseGroupFileFilter(path string, filter func(Group) bool) ([]Group, error) {
147 group, err := os.Open(path)
148 if err != nil {
149 return nil, err
150 }
151 defer group.Close()
152 return ParseGroupFilter(group, filter)
153}
154
155func ParseGroupFilter(r io.Reader, filter func(Group) bool) ([]Group, error) {
156 if r == nil {
157 return nil, fmt.Errorf("nil source for group-formatted data")
158 }
159
160 var (
161 s = bufio.NewScanner(r)
162 out = []Group{}
163 )
164
165 for s.Scan() {
166 if err := s.Err(); err != nil {
167 return nil, err
168 }
169
170 text := s.Text()
171 if text == "" {
172 continue
173 }
174
175 // see: man 5 group
176 // group_name:password:GID:user_list
177 // Name:Pass:Gid:List
178 // root:x:0:root
179 // adm:x:4:root,adm,daemon
180 p := Group{}
181 parseLine(
182 text,
183 &p.Name, &p.Pass, &p.Gid, &p.List,
184 )
185
186 if filter == nil || filter(p) {
187 out = append(out, p)
188 }
189 }
190
191 return out, nil
192}
193
194type ExecUser struct {
195 Uid, Gid int
196 Sgids []int
197 Home string
198}
199
200// GetExecUserPath is a wrapper for GetExecUser. It reads data from each of the
201// given file paths and uses that data as the arguments to GetExecUser. If the
202// files cannot be opened for any reason, the error is ignored and a nil
203// io.Reader is passed instead.
204func GetExecUserPath(userSpec string, defaults *ExecUser, passwdPath, groupPath string) (*ExecUser, error) {
205 passwd, err := os.Open(passwdPath)
206 if err != nil {
207 passwd = nil
208 } else {
209 defer passwd.Close()
210 }
211
212 group, err := os.Open(groupPath)
213 if err != nil {
214 group = nil
215 } else {
216 defer group.Close()
217 }
218
219 return GetExecUser(userSpec, defaults, passwd, group)
220}
221
222// GetExecUser parses a user specification string (using the passwd and group
223// readers as sources for /etc/passwd and /etc/group data, respectively). In
224// the case of blank fields or missing data from the sources, the values in
225// defaults is used.
226//
227// GetExecUser will return an error if a user or group literal could not be
228// found in any entry in passwd and group respectively.
229//
230// Examples of valid user specifications are:
231// * ""
232// * "user"
233// * "uid"
234// * "user:group"
235// * "uid:gid
236// * "user:gid"
237// * "uid:group"
238func GetExecUser(userSpec string, defaults *ExecUser, passwd, group io.Reader) (*ExecUser, error) {
239 var (
240 userArg, groupArg string
241 name string
242 )
243
244 if defaults == nil {
245 defaults = new(ExecUser)
246 }
247
248 // Copy over defaults.
249 user := &ExecUser{
250 Uid: defaults.Uid,
251 Gid: defaults.Gid,
252 Sgids: defaults.Sgids,
253 Home: defaults.Home,
254 }
255
256 // Sgids slice *cannot* be nil.
257 if user.Sgids == nil {
258 user.Sgids = []int{}
259 }
260
261 // allow for userArg to have either "user" syntax, or optionally "user:group" syntax
262 parseLine(userSpec, &userArg, &groupArg)
263
264 users, err := ParsePasswdFilter(passwd, func(u User) bool {
265 if userArg == "" {
266 return u.Uid == user.Uid
267 }
268 return u.Name == userArg || strconv.Itoa(u.Uid) == userArg
269 })
270 if err != nil && passwd != nil {
271 if userArg == "" {
272 userArg = strconv.Itoa(user.Uid)
273 }
274 return nil, fmt.Errorf("Unable to find user %v: %v", userArg, err)
275 }
276
277 haveUser := users != nil && len(users) > 0
278 if haveUser {
279 // if we found any user entries that matched our filter, let's take the first one as "correct"
280 name = users[0].Name
281 user.Uid = users[0].Uid
282 user.Gid = users[0].Gid
283 user.Home = users[0].Home
284 } else if userArg != "" {
285 // we asked for a user but didn't find them... let's check to see if we wanted a numeric user
286 user.Uid, err = strconv.Atoi(userArg)
287 if err != nil {
288 // not numeric - we have to bail
289 return nil, fmt.Errorf("Unable to find user %v", userArg)
290 }
291
292 // Must be inside valid uid range.
293 if user.Uid < minId || user.Uid > maxId {
294 return nil, ErrRange
295 }
296
297 // if userArg couldn't be found in /etc/passwd but is numeric, just roll with it - this is legit
298 }
299
300 if groupArg != "" || name != "" {
301 groups, err := ParseGroupFilter(group, func(g Group) bool {
302 // Explicit group format takes precedence.
303 if groupArg != "" {
304 return g.Name == groupArg || strconv.Itoa(g.Gid) == groupArg
305 }
306
307 // Check if user is a member.
308 for _, u := range g.List {
309 if u == name {
310 return true
311 }
312 }
313
314 return false
315 })
316 if err != nil && group != nil {
317 return nil, fmt.Errorf("Unable to find groups for user %v: %v", users[0].Name, err)
318 }
319
320 haveGroup := groups != nil && len(groups) > 0
321 if groupArg != "" {
322 if haveGroup {
323 // if we found any group entries that matched our filter, let's take the first one as "correct"
324 user.Gid = groups[0].Gid
325 } else {
326 // we asked for a group but didn't find id... let's check to see if we wanted a numeric group
327 user.Gid, err = strconv.Atoi(groupArg)
328 if err != nil {
329 // not numeric - we have to bail
330 return nil, fmt.Errorf("Unable to find group %v", groupArg)
331 }
332
333 // Ensure gid is inside gid range.
334 if user.Gid < minId || user.Gid > maxId {
335 return nil, ErrRange
336 }
337
338 // if groupArg couldn't be found in /etc/group but is numeric, just roll with it - this is legit
339 }
340 } else if haveGroup {
341 // If implicit group format, fill supplementary gids.
342 user.Sgids = make([]int, len(groups))
343 for i, group := range groups {
344 user.Sgids[i] = group.Gid
345 }
346 }
347 }
348
349 return user, nil
350}
351
352// GetAdditionalGroups looks up a list of groups by name or group id
353// against the given /etc/group formatted data. If a group name cannot
354// be found, an error will be returned. If a group id cannot be found,
355// or the given group data is nil, the id will be returned as-is
356// provided it is in the legal range.
357func GetAdditionalGroups(additionalGroups []string, group io.Reader) ([]int, error) {
358 var groups = []Group{}
359 if group != nil {
360 var err error
361 groups, err = ParseGroupFilter(group, func(g Group) bool {
362 for _, ag := range additionalGroups {
363 if g.Name == ag || strconv.Itoa(g.Gid) == ag {
364 return true
365 }
366 }
367 return false
368 })
369 if err != nil {
370 return nil, fmt.Errorf("Unable to find additional groups %v: %v", additionalGroups, err)
371 }
372 }
373
374 gidMap := make(map[int]struct{})
375 for _, ag := range additionalGroups {
376 var found bool
377 for _, g := range groups {
378 // if we found a matched group either by name or gid, take the
379 // first matched as correct
380 if g.Name == ag || strconv.Itoa(g.Gid) == ag {
381 if _, ok := gidMap[g.Gid]; !ok {
382 gidMap[g.Gid] = struct{}{}
383 found = true
384 break
385 }
386 }
387 }
388 // we asked for a group but didn't find it. let's check to see
389 // if we wanted a numeric group
390 if !found {
391 gid, err := strconv.Atoi(ag)
392 if err != nil {
393 return nil, fmt.Errorf("Unable to find group %s", ag)
394 }
395 // Ensure gid is inside gid range.
396 if gid < minId || gid > maxId {
397 return nil, ErrRange
398 }
399 gidMap[gid] = struct{}{}
400 }
401 }
402 gids := []int{}
403 for gid := range gidMap {
404 gids = append(gids, gid)
405 }
406 return gids, nil
407}
408
409// GetAdditionalGroupsPath is a wrapper around GetAdditionalGroups
410// that opens the groupPath given and gives it as an argument to
411// GetAdditionalGroups.
412func GetAdditionalGroupsPath(additionalGroups []string, groupPath string) ([]int, error) {
413 group, err := os.Open(groupPath)
414 if err == nil {
415 defer group.Close()
416 }
417 return GetAdditionalGroups(additionalGroups, group)
418}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/net/context/context.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/net/context/context.go
deleted file mode 100644
index dd13857..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/net/context/context.go
+++ /dev/null
@@ -1,447 +0,0 @@
1// Copyright 2014 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Package context defines the Context type, which carries deadlines,
6// cancelation signals, and other request-scoped values across API boundaries
7// and between processes.
8//
9// Incoming requests to a server should create a Context, and outgoing calls to
10// servers should accept a Context. The chain of function calls between must
11// propagate the Context, optionally replacing it with a modified copy created
12// using WithDeadline, WithTimeout, WithCancel, or WithValue.
13//
14// Programs that use Contexts should follow these rules to keep interfaces
15// consistent across packages and enable static analysis tools to check context
16// propagation:
17//
18// Do not store Contexts inside a struct type; instead, pass a Context
19// explicitly to each function that needs it. The Context should be the first
20// parameter, typically named ctx:
21//
22// func DoSomething(ctx context.Context, arg Arg) error {
23// // ... use ctx ...
24// }
25//
26// Do not pass a nil Context, even if a function permits it. Pass context.TODO
27// if you are unsure about which Context to use.
28//
29// Use context Values only for request-scoped data that transits processes and
30// APIs, not for passing optional parameters to functions.
31//
32// The same Context may be passed to functions running in different goroutines;
33// Contexts are safe for simultaneous use by multiple goroutines.
34//
35// See http://blog.golang.org/context for example code for a server that uses
36// Contexts.
37package context // import "github.com/fsouza/go-dockerclient/external/golang.org/x/net/context"
38
39import (
40 "errors"
41 "fmt"
42 "sync"
43 "time"
44)
45
46// A Context carries a deadline, a cancelation signal, and other values across
47// API boundaries.
48//
49// Context's methods may be called by multiple goroutines simultaneously.
50type Context interface {
51 // Deadline returns the time when work done on behalf of this context
52 // should be canceled. Deadline returns ok==false when no deadline is
53 // set. Successive calls to Deadline return the same results.
54 Deadline() (deadline time.Time, ok bool)
55
56 // Done returns a channel that's closed when work done on behalf of this
57 // context should be canceled. Done may return nil if this context can
58 // never be canceled. Successive calls to Done return the same value.
59 //
60 // WithCancel arranges for Done to be closed when cancel is called;
61 // WithDeadline arranges for Done to be closed when the deadline
62 // expires; WithTimeout arranges for Done to be closed when the timeout
63 // elapses.
64 //
65 // Done is provided for use in select statements:
66 //
67 // // Stream generates values with DoSomething and sends them to out
68 // // until DoSomething returns an error or ctx.Done is closed.
69 // func Stream(ctx context.Context, out <-chan Value) error {
70 // for {
71 // v, err := DoSomething(ctx)
72 // if err != nil {
73 // return err
74 // }
75 // select {
76 // case <-ctx.Done():
77 // return ctx.Err()
78 // case out <- v:
79 // }
80 // }
81 // }
82 //
83 // See http://blog.golang.org/pipelines for more examples of how to use
84 // a Done channel for cancelation.
85 Done() <-chan struct{}
86
87 // Err returns a non-nil error value after Done is closed. Err returns
88 // Canceled if the context was canceled or DeadlineExceeded if the
89 // context's deadline passed. No other values for Err are defined.
90 // After Done is closed, successive calls to Err return the same value.
91 Err() error
92
93 // Value returns the value associated with this context for key, or nil
94 // if no value is associated with key. Successive calls to Value with
95 // the same key returns the same result.
96 //
97 // Use context values only for request-scoped data that transits
98 // processes and API boundaries, not for passing optional parameters to
99 // functions.
100 //
101 // A key identifies a specific value in a Context. Functions that wish
102 // to store values in Context typically allocate a key in a global
103 // variable then use that key as the argument to context.WithValue and
104 // Context.Value. A key can be any type that supports equality;
105 // packages should define keys as an unexported type to avoid
106 // collisions.
107 //
108 // Packages that define a Context key should provide type-safe accessors
109 // for the values stores using that key:
110 //
111 // // Package user defines a User type that's stored in Contexts.
112 // package user
113 //
114 // import "golang.org/x/net/context"
115 //
116 // // User is the type of value stored in the Contexts.
117 // type User struct {...}
118 //
119 // // key is an unexported type for keys defined in this package.
120 // // This prevents collisions with keys defined in other packages.
121 // type key int
122 //
123 // // userKey is the key for user.User values in Contexts. It is
124 // // unexported; clients use user.NewContext and user.FromContext
125 // // instead of using this key directly.
126 // var userKey key = 0
127 //
128 // // NewContext returns a new Context that carries value u.
129 // func NewContext(ctx context.Context, u *User) context.Context {
130 // return context.WithValue(ctx, userKey, u)
131 // }
132 //
133 // // FromContext returns the User value stored in ctx, if any.
134 // func FromContext(ctx context.Context) (*User, bool) {
135 // u, ok := ctx.Value(userKey).(*User)
136 // return u, ok
137 // }
138 Value(key interface{}) interface{}
139}
140
141// Canceled is the error returned by Context.Err when the context is canceled.
142var Canceled = errors.New("context canceled")
143
144// DeadlineExceeded is the error returned by Context.Err when the context's
145// deadline passes.
146var DeadlineExceeded = errors.New("context deadline exceeded")
147
148// An emptyCtx is never canceled, has no values, and has no deadline. It is not
149// struct{}, since vars of this type must have distinct addresses.
150type emptyCtx int
151
152func (*emptyCtx) Deadline() (deadline time.Time, ok bool) {
153 return
154}
155
156func (*emptyCtx) Done() <-chan struct{} {
157 return nil
158}
159
160func (*emptyCtx) Err() error {
161 return nil
162}
163
164func (*emptyCtx) Value(key interface{}) interface{} {
165 return nil
166}
167
168func (e *emptyCtx) String() string {
169 switch e {
170 case background:
171 return "context.Background"
172 case todo:
173 return "context.TODO"
174 }
175 return "unknown empty Context"
176}
177
178var (
179 background = new(emptyCtx)
180 todo = new(emptyCtx)
181)
182
183// Background returns a non-nil, empty Context. It is never canceled, has no
184// values, and has no deadline. It is typically used by the main function,
185// initialization, and tests, and as the top-level Context for incoming
186// requests.
187func Background() Context {
188 return background
189}
190
191// TODO returns a non-nil, empty Context. Code should use context.TODO when
192// it's unclear which Context to use or it is not yet available (because the
193// surrounding function has not yet been extended to accept a Context
194// parameter). TODO is recognized by static analysis tools that determine
195// whether Contexts are propagated correctly in a program.
196func TODO() Context {
197 return todo
198}
199
200// A CancelFunc tells an operation to abandon its work.
201// A CancelFunc does not wait for the work to stop.
202// After the first call, subsequent calls to a CancelFunc do nothing.
203type CancelFunc func()
204
205// WithCancel returns a copy of parent with a new Done channel. The returned
206// context's Done channel is closed when the returned cancel function is called
207// or when the parent context's Done channel is closed, whichever happens first.
208//
209// Canceling this context releases resources associated with it, so code should
210// call cancel as soon as the operations running in this Context complete.
211func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {
212 c := newCancelCtx(parent)
213 propagateCancel(parent, c)
214 return c, func() { c.cancel(true, Canceled) }
215}
216
217// newCancelCtx returns an initialized cancelCtx.
218func newCancelCtx(parent Context) *cancelCtx {
219 return &cancelCtx{
220 Context: parent,
221 done: make(chan struct{}),
222 }
223}
224
225// propagateCancel arranges for child to be canceled when parent is.
226func propagateCancel(parent Context, child canceler) {
227 if parent.Done() == nil {
228 return // parent is never canceled
229 }
230 if p, ok := parentCancelCtx(parent); ok {
231 p.mu.Lock()
232 if p.err != nil {
233 // parent has already been canceled
234 child.cancel(false, p.err)
235 } else {
236 if p.children == nil {
237 p.children = make(map[canceler]bool)
238 }
239 p.children[child] = true
240 }
241 p.mu.Unlock()
242 } else {
243 go func() {
244 select {
245 case <-parent.Done():
246 child.cancel(false, parent.Err())
247 case <-child.Done():
248 }
249 }()
250 }
251}
252
253// parentCancelCtx follows a chain of parent references until it finds a
254// *cancelCtx. This function understands how each of the concrete types in this
255// package represents its parent.
256func parentCancelCtx(parent Context) (*cancelCtx, bool) {
257 for {
258 switch c := parent.(type) {
259 case *cancelCtx:
260 return c, true
261 case *timerCtx:
262 return c.cancelCtx, true
263 case *valueCtx:
264 parent = c.Context
265 default:
266 return nil, false
267 }
268 }
269}
270
271// removeChild removes a context from its parent.
272func removeChild(parent Context, child canceler) {
273 p, ok := parentCancelCtx(parent)
274 if !ok {
275 return
276 }
277 p.mu.Lock()
278 if p.children != nil {
279 delete(p.children, child)
280 }
281 p.mu.Unlock()
282}
283
284// A canceler is a context type that can be canceled directly. The
285// implementations are *cancelCtx and *timerCtx.
286type canceler interface {
287 cancel(removeFromParent bool, err error)
288 Done() <-chan struct{}
289}
290
291// A cancelCtx can be canceled. When canceled, it also cancels any children
292// that implement canceler.
293type cancelCtx struct {
294 Context
295
296 done chan struct{} // closed by the first cancel call.
297
298 mu sync.Mutex
299 children map[canceler]bool // set to nil by the first cancel call
300 err error // set to non-nil by the first cancel call
301}
302
303func (c *cancelCtx) Done() <-chan struct{} {
304 return c.done
305}
306
307func (c *cancelCtx) Err() error {
308 c.mu.Lock()
309 defer c.mu.Unlock()
310 return c.err
311}
312
313func (c *cancelCtx) String() string {
314 return fmt.Sprintf("%v.WithCancel", c.Context)
315}
316
317// cancel closes c.done, cancels each of c's children, and, if
318// removeFromParent is true, removes c from its parent's children.
319func (c *cancelCtx) cancel(removeFromParent bool, err error) {
320 if err == nil {
321 panic("context: internal error: missing cancel error")
322 }
323 c.mu.Lock()
324 if c.err != nil {
325 c.mu.Unlock()
326 return // already canceled
327 }
328 c.err = err
329 close(c.done)
330 for child := range c.children {
331 // NOTE: acquiring the child's lock while holding parent's lock.
332 child.cancel(false, err)
333 }
334 c.children = nil
335 c.mu.Unlock()
336
337 if removeFromParent {
338 removeChild(c.Context, c)
339 }
340}
341
342// WithDeadline returns a copy of the parent context with the deadline adjusted
343// to be no later than d. If the parent's deadline is already earlier than d,
344// WithDeadline(parent, d) is semantically equivalent to parent. The returned
345// context's Done channel is closed when the deadline expires, when the returned
346// cancel function is called, or when the parent context's Done channel is
347// closed, whichever happens first.
348//
349// Canceling this context releases resources associated with it, so code should
350// call cancel as soon as the operations running in this Context complete.
351func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) {
352 if cur, ok := parent.Deadline(); ok && cur.Before(deadline) {
353 // The current deadline is already sooner than the new one.
354 return WithCancel(parent)
355 }
356 c := &timerCtx{
357 cancelCtx: newCancelCtx(parent),
358 deadline: deadline,
359 }
360 propagateCancel(parent, c)
361 d := deadline.Sub(time.Now())
362 if d <= 0 {
363 c.cancel(true, DeadlineExceeded) // deadline has already passed
364 return c, func() { c.cancel(true, Canceled) }
365 }
366 c.mu.Lock()
367 defer c.mu.Unlock()
368 if c.err == nil {
369 c.timer = time.AfterFunc(d, func() {
370 c.cancel(true, DeadlineExceeded)
371 })
372 }
373 return c, func() { c.cancel(true, Canceled) }
374}
375
376// A timerCtx carries a timer and a deadline. It embeds a cancelCtx to
377// implement Done and Err. It implements cancel by stopping its timer then
378// delegating to cancelCtx.cancel.
379type timerCtx struct {
380 *cancelCtx
381 timer *time.Timer // Under cancelCtx.mu.
382
383 deadline time.Time
384}
385
386func (c *timerCtx) Deadline() (deadline time.Time, ok bool) {
387 return c.deadline, true
388}
389
390func (c *timerCtx) String() string {
391 return fmt.Sprintf("%v.WithDeadline(%s [%s])", c.cancelCtx.Context, c.deadline, c.deadline.Sub(time.Now()))
392}
393
394func (c *timerCtx) cancel(removeFromParent bool, err error) {
395 c.cancelCtx.cancel(false, err)
396 if removeFromParent {
397 // Remove this timerCtx from its parent cancelCtx's children.
398 removeChild(c.cancelCtx.Context, c)
399 }
400 c.mu.Lock()
401 if c.timer != nil {
402 c.timer.Stop()
403 c.timer = nil
404 }
405 c.mu.Unlock()
406}
407
408// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)).
409//
410// Canceling this context releases resources associated with it, so code should
411// call cancel as soon as the operations running in this Context complete:
412//
413// func slowOperationWithTimeout(ctx context.Context) (Result, error) {
414// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)
415// defer cancel() // releases resources if slowOperation completes before timeout elapses
416// return slowOperation(ctx)
417// }
418func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
419 return WithDeadline(parent, time.Now().Add(timeout))
420}
421
422// WithValue returns a copy of parent in which the value associated with key is
423// val.
424//
425// Use context Values only for request-scoped data that transits processes and
426// APIs, not for passing optional parameters to functions.
427func WithValue(parent Context, key interface{}, val interface{}) Context {
428 return &valueCtx{parent, key, val}
429}
430
431// A valueCtx carries a key-value pair. It implements Value for that key and
432// delegates all other calls to the embedded Context.
433type valueCtx struct {
434 Context
435 key, val interface{}
436}
437
438func (c *valueCtx) String() string {
439 return fmt.Sprintf("%v.WithValue(%#v, %#v)", c.Context, c.key, c.val)
440}
441
442func (c *valueCtx) Value(key interface{}) interface{} {
443 if c.key == key {
444 return c.val
445 }
446 return c.Context.Value(key)
447}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm.s
deleted file mode 100644
index 8ed2fdb..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm.s
+++ /dev/null
@@ -1,10 +0,0 @@
1// Copyright 2014 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9TEXT ·use(SB),NOSPLIT,$0
10 RET
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_386.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_386.s
deleted file mode 100644
index 8a72783..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_386.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for 386, Darwin
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-28
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-40
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-52
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-28
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_amd64.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_amd64.s
deleted file mode 100644
index 6321421..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_amd64.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for AMD64, Darwin
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-56
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-104
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-56
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_arm.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_arm.s
deleted file mode 100644
index 333242d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_arm.s
+++ /dev/null
@@ -1,30 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6// +build arm,darwin
7
8#include "textflag.h"
9
10//
11// System call support for ARM, Darwin
12//
13
14// Just jump to package syscall's implementation for all these functions.
15// The runtime may know about them.
16
17TEXT ·Syscall(SB),NOSPLIT,$0-28
18 B syscall·Syscall(SB)
19
20TEXT ·Syscall6(SB),NOSPLIT,$0-40
21 B syscall·Syscall6(SB)
22
23TEXT ·Syscall9(SB),NOSPLIT,$0-52
24 B syscall·Syscall9(SB)
25
26TEXT ·RawSyscall(SB),NOSPLIT,$0-28
27 B syscall·RawSyscall(SB)
28
29TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
30 B syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_arm64.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_arm64.s
deleted file mode 100644
index 97e0174..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_darwin_arm64.s
+++ /dev/null
@@ -1,30 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6// +build arm64,darwin
7
8#include "textflag.h"
9
10//
11// System call support for AMD64, Darwin
12//
13
14// Just jump to package syscall's implementation for all these functions.
15// The runtime may know about them.
16
17TEXT ·Syscall(SB),NOSPLIT,$0-56
18 B syscall·Syscall(SB)
19
20TEXT ·Syscall6(SB),NOSPLIT,$0-80
21 B syscall·Syscall6(SB)
22
23TEXT ·Syscall9(SB),NOSPLIT,$0-104
24 B syscall·Syscall9(SB)
25
26TEXT ·RawSyscall(SB),NOSPLIT,$0-56
27 B syscall·RawSyscall(SB)
28
29TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
30 B syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_dragonfly_386.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_dragonfly_386.s
deleted file mode 100644
index 7e55e0d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_dragonfly_386.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for 386, FreeBSD
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-32
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-44
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-56
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-32
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-44
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_dragonfly_amd64.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_dragonfly_amd64.s
deleted file mode 100644
index d5ed672..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_dragonfly_amd64.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for AMD64, DragonFly
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-64
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-88
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-112
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-64
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_386.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_386.s
deleted file mode 100644
index c9a0a26..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_386.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for 386, FreeBSD
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-28
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-40
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-52
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-28
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_amd64.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_amd64.s
deleted file mode 100644
index 3517247..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_amd64.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for AMD64, FreeBSD
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-56
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-104
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-56
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_arm.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_arm.s
deleted file mode 100644
index 9227c87..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_freebsd_arm.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for ARM, FreeBSD
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-28
17 B syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-40
20 B syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-52
23 B syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-28
26 B syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
29 B syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_386.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_386.s
deleted file mode 100644
index 4db2909..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_386.s
+++ /dev/null
@@ -1,35 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System calls for 386, Linux
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-28
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-40
20 JMP syscall·Syscall6(SB)
21
22TEXT ·RawSyscall(SB),NOSPLIT,$0-28
23 JMP syscall·RawSyscall(SB)
24
25TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
26 JMP syscall·RawSyscall6(SB)
27
28TEXT ·socketcall(SB),NOSPLIT,$0-36
29 JMP syscall·socketcall(SB)
30
31TEXT ·rawsocketcall(SB),NOSPLIT,$0-36
32 JMP syscall·rawsocketcall(SB)
33
34TEXT ·seek(SB),NOSPLIT,$0-28
35 JMP syscall·seek(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_amd64.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_amd64.s
deleted file mode 100644
index 44e25c6..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_amd64.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System calls for AMD64, Linux
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-56
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 JMP syscall·Syscall6(SB)
21
22TEXT ·RawSyscall(SB),NOSPLIT,$0-56
23 JMP syscall·RawSyscall(SB)
24
25TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
26 JMP syscall·RawSyscall6(SB)
27
28TEXT ·gettimeofday(SB),NOSPLIT,$0-16
29 JMP syscall·gettimeofday(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_arm.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_arm.s
deleted file mode 100644
index cf0b574..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_arm.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System calls for arm, Linux
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-28
17 B syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-40
20 B syscall·Syscall6(SB)
21
22TEXT ·RawSyscall(SB),NOSPLIT,$0-28
23 B syscall·RawSyscall(SB)
24
25TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
26 B syscall·RawSyscall6(SB)
27
28TEXT ·seek(SB),NOSPLIT,$0-32
29 B syscall·seek(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_arm64.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_arm64.s
deleted file mode 100644
index 4be9bfe..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_arm64.s
+++ /dev/null
@@ -1,24 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build linux
6// +build arm64
7// +build !gccgo
8
9#include "textflag.h"
10
11// Just jump to package syscall's implementation for all these functions.
12// The runtime may know about them.
13
14TEXT ·Syscall(SB),NOSPLIT,$0-56
15 B syscall·Syscall(SB)
16
17TEXT ·Syscall6(SB),NOSPLIT,$0-80
18 B syscall·Syscall6(SB)
19
20TEXT ·RawSyscall(SB),NOSPLIT,$0-56
21 B syscall·RawSyscall(SB)
22
23TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
24 B syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_ppc64x.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_ppc64x.s
deleted file mode 100644
index 8d231fe..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_ppc64x.s
+++ /dev/null
@@ -1,28 +0,0 @@
1// Copyright 2014 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build linux
6// +build ppc64 ppc64le
7// +build !gccgo
8
9#include "textflag.h"
10
11//
12// System calls for ppc64, Linux
13//
14
15// Just jump to package syscall's implementation for all these functions.
16// The runtime may know about them.
17
18TEXT ·Syscall(SB),NOSPLIT,$0-56
19 BR syscall·Syscall(SB)
20
21TEXT ·Syscall6(SB),NOSPLIT,$0-80
22 BR syscall·Syscall6(SB)
23
24TEXT ·RawSyscall(SB),NOSPLIT,$0-56
25 BR syscall·RawSyscall(SB)
26
27TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
28 BR syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_386.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_386.s
deleted file mode 100644
index 48bdcd7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_386.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for 386, NetBSD
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-28
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-40
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-52
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-28
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_amd64.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_amd64.s
deleted file mode 100644
index 2ede05c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_amd64.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for AMD64, NetBSD
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-56
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-104
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-56
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_arm.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_arm.s
deleted file mode 100644
index e892857..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_netbsd_arm.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2013 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for ARM, NetBSD
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-28
17 B syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-40
20 B syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-52
23 B syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-28
26 B syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
29 B syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_openbsd_386.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_openbsd_386.s
deleted file mode 100644
index 00576f3..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_openbsd_386.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for 386, OpenBSD
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-28
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-40
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-52
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-28
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_openbsd_amd64.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_openbsd_amd64.s
deleted file mode 100644
index 790ef77..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_openbsd_amd64.s
+++ /dev/null
@@ -1,29 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System call support for AMD64, OpenBSD
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-56
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 JMP syscall·Syscall6(SB)
21
22TEXT ·Syscall9(SB),NOSPLIT,$0-104
23 JMP syscall·Syscall9(SB)
24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-56
26 JMP syscall·RawSyscall(SB)
27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_solaris_amd64.s b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_solaris_amd64.s
deleted file mode 100644
index 43ed17a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_solaris_amd64.s
+++ /dev/null
@@ -1,17 +0,0 @@
1// Copyright 2014 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go
11//
12
13TEXT ·sysvicall6(SB),NOSPLIT,$0-64
14 JMP syscall·sysvicall6(SB)
15
16TEXT ·rawSysvicall6(SB),NOSPLIT,$0-64
17 JMP syscall·rawSysvicall6(SB)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/constants.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/constants.go
deleted file mode 100644
index a96f0eb..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/constants.go
+++ /dev/null
@@ -1,13 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris
6
7package unix
8
9const (
10 R_OK = 0x4
11 W_OK = 0x2
12 X_OK = 0x1
13)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unix.go
deleted file mode 100644
index 45e281a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unix.go
+++ /dev/null
@@ -1,27 +0,0 @@
1// Copyright 2010 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris
6
7// Unix environment variables.
8
9package unix
10
11import "syscall"
12
13func Getenv(key string) (value string, found bool) {
14 return syscall.Getenv(key)
15}
16
17func Setenv(key, value string) error {
18 return syscall.Setenv(key, value)
19}
20
21func Clearenv() {
22 syscall.Clearenv()
23}
24
25func Environ() []string {
26 return syscall.Environ()
27}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unset.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unset.go
deleted file mode 100644
index 9222262..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unset.go
+++ /dev/null
@@ -1,14 +0,0 @@
1// Copyright 2014 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build go1.4
6
7package unix
8
9import "syscall"
10
11func Unsetenv(key string) error {
12 // This was added in Go 1.4.
13 return syscall.Unsetenv(key)
14}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/flock.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/flock.go
deleted file mode 100644
index ce67a59..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/flock.go
+++ /dev/null
@@ -1,24 +0,0 @@
1// +build linux darwin freebsd openbsd netbsd dragonfly
2
3// Copyright 2014 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7// +build darwin dragonfly freebsd linux netbsd openbsd
8
9package unix
10
11import "unsafe"
12
13// fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux
14// systems by flock_linux_32bit.go to be SYS_FCNTL64.
15var fcntl64Syscall uintptr = SYS_FCNTL
16
17// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
18func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
19 _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
20 if errno == 0 {
21 return nil
22 }
23 return errno
24}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/flock_linux_32bit.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/flock_linux_32bit.go
deleted file mode 100644
index 362831c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/flock_linux_32bit.go
+++ /dev/null
@@ -1,13 +0,0 @@
1// +build linux,386 linux,arm
2
3// Copyright 2014 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package unix
8
9func init() {
10 // On 32-bit Linux systems, the fcntl syscall that matches Go's
11 // Flock_t type is SYS_FCNTL64, not SYS_FCNTL.
12 fcntl64Syscall = SYS_FCNTL64
13}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo.go
deleted file mode 100644
index 94c8232..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo.go
+++ /dev/null
@@ -1,46 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build gccgo
6
7package unix
8
9import "syscall"
10
11// We can't use the gc-syntax .s files for gccgo. On the plus side
12// much of the functionality can be written directly in Go.
13
14//extern gccgoRealSyscall
15func realSyscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r, errno uintptr)
16
17func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
18 syscall.Entersyscall()
19 r, errno := realSyscall(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0)
20 syscall.Exitsyscall()
21 return r, 0, syscall.Errno(errno)
22}
23
24func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
25 syscall.Entersyscall()
26 r, errno := realSyscall(trap, a1, a2, a3, a4, a5, a6, 0, 0, 0)
27 syscall.Exitsyscall()
28 return r, 0, syscall.Errno(errno)
29}
30
31func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) {
32 syscall.Entersyscall()
33 r, errno := realSyscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9)
34 syscall.Exitsyscall()
35 return r, 0, syscall.Errno(errno)
36}
37
38func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
39 r, errno := realSyscall(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0)
40 return r, 0, syscall.Errno(errno)
41}
42
43func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
44 r, errno := realSyscall(trap, a1, a2, a3, a4, a5, a6, 0, 0, 0)
45 return r, 0, syscall.Errno(errno)
46}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo_c.c b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo_c.c
deleted file mode 100644
index 07f6be0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo_c.c
+++ /dev/null
@@ -1,41 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build gccgo
6
7#include <errno.h>
8#include <stdint.h>
9#include <unistd.h>
10
11#define _STRINGIFY2_(x) #x
12#define _STRINGIFY_(x) _STRINGIFY2_(x)
13#define GOSYM_PREFIX _STRINGIFY_(__USER_LABEL_PREFIX__)
14
15// Call syscall from C code because the gccgo support for calling from
16// Go to C does not support varargs functions.
17
18struct ret {
19 uintptr_t r;
20 uintptr_t err;
21};
22
23struct ret
24gccgoRealSyscall(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4, uintptr_t a5, uintptr_t a6, uintptr_t a7, uintptr_t a8, uintptr_t a9)
25{
26 struct ret r;
27
28 errno = 0;
29 r.r = syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9);
30 r.err = errno;
31 return r;
32}
33
34// Define the use function in C so that it is not inlined.
35
36extern void use(void *) __asm__ (GOSYM_PREFIX GOPKGPATH ".use") __attribute__((noinline));
37
38void
39use(void *p __attribute__ ((unused)))
40{
41}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo_linux_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo_linux_amd64.go
deleted file mode 100644
index bffe1a7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo_linux_amd64.go
+++ /dev/null
@@ -1,20 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build gccgo,linux,amd64
6
7package unix
8
9import "syscall"
10
11//extern gettimeofday
12func realGettimeofday(*Timeval, *byte) int32
13
14func gettimeofday(tv *Timeval) (err syscall.Errno) {
15 r := realGettimeofday(tv, nil)
16 if r < 0 {
17 return syscall.GetErrno()
18 }
19 return 0
20}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mkall.sh b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mkall.sh
deleted file mode 100755
index de95a4b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mkall.sh
+++ /dev/null
@@ -1,274 +0,0 @@
1#!/usr/bin/env bash
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5
6# The unix package provides access to the raw system call
7# interface of the underlying operating system. Porting Go to
8# a new architecture/operating system combination requires
9# some manual effort, though there are tools that automate
10# much of the process. The auto-generated files have names
11# beginning with z.
12#
13# This script runs or (given -n) prints suggested commands to generate z files
14# for the current system. Running those commands is not automatic.
15# This script is documentation more than anything else.
16#
17# * asm_${GOOS}_${GOARCH}.s
18#
19# This hand-written assembly file implements system call dispatch.
20# There are three entry points:
21#
22# func Syscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr);
23# func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr);
24# func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr);
25#
26# The first and second are the standard ones; they differ only in
27# how many arguments can be passed to the kernel.
28# The third is for low-level use by the ForkExec wrapper;
29# unlike the first two, it does not call into the scheduler to
30# let it know that a system call is running.
31#
32# * syscall_${GOOS}.go
33#
34# This hand-written Go file implements system calls that need
35# special handling and lists "//sys" comments giving prototypes
36# for ones that can be auto-generated. Mksyscall reads those
37# comments to generate the stubs.
38#
39# * syscall_${GOOS}_${GOARCH}.go
40#
41# Same as syscall_${GOOS}.go except that it contains code specific
42# to ${GOOS} on one particular architecture.
43#
44# * types_${GOOS}.c
45#
46# This hand-written C file includes standard C headers and then
47# creates typedef or enum names beginning with a dollar sign
48# (use of $ in variable names is a gcc extension). The hardest
49# part about preparing this file is figuring out which headers to
50# include and which symbols need to be #defined to get the
51# actual data structures that pass through to the kernel system calls.
52# Some C libraries present alternate versions for binary compatibility
53# and translate them on the way in and out of system calls, but
54# there is almost always a #define that can get the real ones.
55# See types_darwin.c and types_linux.c for examples.
56#
57# * zerror_${GOOS}_${GOARCH}.go
58#
59# This machine-generated file defines the system's error numbers,
60# error strings, and signal numbers. The generator is "mkerrors.sh".
61# Usually no arguments are needed, but mkerrors.sh will pass its
62# arguments on to godefs.
63#
64# * zsyscall_${GOOS}_${GOARCH}.go
65#
66# Generated by mksyscall.pl; see syscall_${GOOS}.go above.
67#
68# * zsysnum_${GOOS}_${GOARCH}.go
69#
70# Generated by mksysnum_${GOOS}.
71#
72# * ztypes_${GOOS}_${GOARCH}.go
73#
74# Generated by godefs; see types_${GOOS}.c above.
75
76GOOSARCH="${GOOS}_${GOARCH}"
77
78# defaults
79mksyscall="./mksyscall.pl"
80mkerrors="./mkerrors.sh"
81zerrors="zerrors_$GOOSARCH.go"
82mksysctl=""
83zsysctl="zsysctl_$GOOSARCH.go"
84mksysnum=
85mktypes=
86run="sh"
87
88case "$1" in
89-syscalls)
90 for i in zsyscall*go
91 do
92 sed 1q $i | sed 's;^// ;;' | sh > _$i && gofmt < _$i > $i
93 rm _$i
94 done
95 exit 0
96 ;;
97-n)
98 run="cat"
99 shift
100esac
101
102case "$#" in
1030)
104 ;;
105*)
106 echo 'usage: mkall.sh [-n]' 1>&2
107 exit 2
108esac
109
110GOOSARCH_in=syscall_$GOOSARCH.go
111case "$GOOSARCH" in
112_* | *_ | _)
113 echo 'undefined $GOOS_$GOARCH:' "$GOOSARCH" 1>&2
114 exit 1
115 ;;
116darwin_386)
117 mkerrors="$mkerrors -m32"
118 mksyscall="./mksyscall.pl -l32"
119 mksysnum="./mksysnum_darwin.pl $(xcrun --show-sdk-path --sdk macosx)/usr/include/sys/syscall.h"
120 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
121 ;;
122darwin_amd64)
123 mkerrors="$mkerrors -m64"
124 mksysnum="./mksysnum_darwin.pl $(xcrun --show-sdk-path --sdk macosx)/usr/include/sys/syscall.h"
125 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
126 ;;
127darwin_arm)
128 mkerrors="$mkerrors"
129 mksysnum="./mksysnum_darwin.pl /usr/include/sys/syscall.h"
130 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
131 ;;
132darwin_arm64)
133 mkerrors="$mkerrors -m64"
134 mksysnum="./mksysnum_darwin.pl $(xcrun --show-sdk-path --sdk iphoneos)/usr/include/sys/syscall.h"
135 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
136 ;;
137dragonfly_386)
138 mkerrors="$mkerrors -m32"
139 mksyscall="./mksyscall.pl -l32 -dragonfly"
140 mksysnum="curl -s 'http://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master' | ./mksysnum_dragonfly.pl"
141 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
142 ;;
143dragonfly_amd64)
144 mkerrors="$mkerrors -m64"
145 mksyscall="./mksyscall.pl -dragonfly"
146 mksysnum="curl -s 'http://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master' | ./mksysnum_dragonfly.pl"
147 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
148 ;;
149freebsd_386)
150 mkerrors="$mkerrors -m32"
151 mksyscall="./mksyscall.pl -l32"
152 mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
153 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
154 ;;
155freebsd_amd64)
156 mkerrors="$mkerrors -m64"
157 mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
158 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
159 ;;
160freebsd_arm)
161 mkerrors="$mkerrors"
162 mksyscall="./mksyscall.pl -l32 -arm"
163 mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
164 # Let the type of C char be singed for making the bare syscall
165 # API consistent across over platforms.
166 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
167 ;;
168linux_386)
169 mkerrors="$mkerrors -m32"
170 mksyscall="./mksyscall.pl -l32"
171 mksysnum="./mksysnum_linux.pl /usr/include/asm/unistd_32.h"
172 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
173 ;;
174linux_amd64)
175 unistd_h=$(ls -1 /usr/include/asm/unistd_64.h /usr/include/x86_64-linux-gnu/asm/unistd_64.h 2>/dev/null | head -1)
176 if [ "$unistd_h" = "" ]; then
177 echo >&2 cannot find unistd_64.h
178 exit 1
179 fi
180 mkerrors="$mkerrors -m64"
181 mksysnum="./mksysnum_linux.pl $unistd_h"
182 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
183 ;;
184linux_arm)
185 mkerrors="$mkerrors"
186 mksyscall="./mksyscall.pl -l32 -arm"
187 mksysnum="curl -s 'http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/arch/arm/include/uapi/asm/unistd.h' | ./mksysnum_linux.pl -"
188 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
189 ;;
190linux_arm64)
191 unistd_h=$(ls -1 /usr/include/asm/unistd.h /usr/include/asm-generic/unistd.h 2>/dev/null | head -1)
192 if [ "$unistd_h" = "" ]; then
193 echo >&2 cannot find unistd_64.h
194 exit 1
195 fi
196 mksysnum="./mksysnum_linux.pl $unistd_h"
197 # Let the type of C char be singed for making the bare syscall
198 # API consistent across over platforms.
199 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
200 ;;
201linux_ppc64)
202 GOOSARCH_in=syscall_linux_ppc64x.go
203 unistd_h=/usr/include/asm/unistd.h
204 mkerrors="$mkerrors -m64"
205 mksysnum="./mksysnum_linux.pl $unistd_h"
206 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
207 ;;
208linux_ppc64le)
209 GOOSARCH_in=syscall_linux_ppc64x.go
210 unistd_h=/usr/include/powerpc64le-linux-gnu/asm/unistd.h
211 mkerrors="$mkerrors -m64"
212 mksysnum="./mksysnum_linux.pl $unistd_h"
213 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
214 ;;
215netbsd_386)
216 mkerrors="$mkerrors -m32"
217 mksyscall="./mksyscall.pl -l32 -netbsd"
218 mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_netbsd.pl"
219 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
220 ;;
221netbsd_amd64)
222 mkerrors="$mkerrors -m64"
223 mksyscall="./mksyscall.pl -netbsd"
224 mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_netbsd.pl"
225 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
226 ;;
227openbsd_386)
228 mkerrors="$mkerrors -m32"
229 mksyscall="./mksyscall.pl -l32 -openbsd"
230 mksysctl="./mksysctl_openbsd.pl"
231 zsysctl="zsysctl_openbsd.go"
232 mksysnum="curl -s 'http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
233 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
234 ;;
235openbsd_amd64)
236 mkerrors="$mkerrors -m64"
237 mksyscall="./mksyscall.pl -openbsd"
238 mksysctl="./mksysctl_openbsd.pl"
239 zsysctl="zsysctl_openbsd.go"
240 mksysnum="curl -s 'http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
241 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
242 ;;
243solaris_amd64)
244 mksyscall="./mksyscall_solaris.pl"
245 mkerrors="$mkerrors -m64"
246 mksysnum=
247 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
248 ;;
249*)
250 echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2
251 exit 1
252 ;;
253esac
254
255(
256 if [ -n "$mkerrors" ]; then echo "$mkerrors |gofmt >$zerrors"; fi
257 case "$GOOS" in
258 *)
259 syscall_goos="syscall_$GOOS.go"
260 case "$GOOS" in
261 darwin | dragonfly | freebsd | netbsd | openbsd)
262 syscall_goos="syscall_bsd.go $syscall_goos"
263 ;;
264 esac
265 if [ -n "$mksyscall" ]; then echo "$mksyscall $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; fi
266 ;;
267 esac
268 if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
269 if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
270 if [ -n "$mktypes" ]; then
271 echo "echo // +build $GOARCH,$GOOS > ztypes_$GOOSARCH.go";
272 echo "$mktypes types_$GOOS.go | gofmt >>ztypes_$GOOSARCH.go";
273 fi
274) | $run
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mkerrors.sh b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mkerrors.sh
deleted file mode 100755
index c40d788..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mkerrors.sh
+++ /dev/null
@@ -1,476 +0,0 @@
1#!/usr/bin/env bash
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5
6# Generate Go code listing errors and other #defined constant
7# values (ENAMETOOLONG etc.), by asking the preprocessor
8# about the definitions.
9
10unset LANG
11export LC_ALL=C
12export LC_CTYPE=C
13
14if test -z "$GOARCH" -o -z "$GOOS"; then
15 echo 1>&2 "GOARCH or GOOS not defined in environment"
16 exit 1
17fi
18
19CC=${CC:-cc}
20
21if [[ "$GOOS" -eq "solaris" ]]; then
22 # Assumes GNU versions of utilities in PATH.
23 export PATH=/usr/gnu/bin:$PATH
24fi
25
26uname=$(uname)
27
28includes_Darwin='
29#define _DARWIN_C_SOURCE
30#define KERNEL
31#define _DARWIN_USE_64_BIT_INODE
32#include <sys/types.h>
33#include <sys/event.h>
34#include <sys/ptrace.h>
35#include <sys/socket.h>
36#include <sys/sockio.h>
37#include <sys/sysctl.h>
38#include <sys/mman.h>
39#include <sys/wait.h>
40#include <net/bpf.h>
41#include <net/if.h>
42#include <net/if_types.h>
43#include <net/route.h>
44#include <netinet/in.h>
45#include <netinet/ip.h>
46#include <termios.h>
47'
48
49includes_DragonFly='
50#include <sys/types.h>
51#include <sys/event.h>
52#include <sys/socket.h>
53#include <sys/sockio.h>
54#include <sys/sysctl.h>
55#include <sys/mman.h>
56#include <sys/wait.h>
57#include <sys/ioctl.h>
58#include <net/bpf.h>
59#include <net/if.h>
60#include <net/if_types.h>
61#include <net/route.h>
62#include <netinet/in.h>
63#include <termios.h>
64#include <netinet/ip.h>
65#include <net/ip_mroute/ip_mroute.h>
66'
67
68includes_FreeBSD='
69#include <sys/param.h>
70#include <sys/types.h>
71#include <sys/event.h>
72#include <sys/socket.h>
73#include <sys/sockio.h>
74#include <sys/sysctl.h>
75#include <sys/mman.h>
76#include <sys/wait.h>
77#include <sys/ioctl.h>
78#include <net/bpf.h>
79#include <net/if.h>
80#include <net/if_types.h>
81#include <net/route.h>
82#include <netinet/in.h>
83#include <termios.h>
84#include <netinet/ip.h>
85#include <netinet/ip_mroute.h>
86#include <sys/extattr.h>
87
88#if __FreeBSD__ >= 10
89#define IFT_CARP 0xf8 // IFT_CARP is deprecated in FreeBSD 10
90#undef SIOCAIFADDR
91#define SIOCAIFADDR _IOW(105, 26, struct oifaliasreq) // ifaliasreq contains if_data
92#undef SIOCSIFPHYADDR
93#define SIOCSIFPHYADDR _IOW(105, 70, struct oifaliasreq) // ifaliasreq contains if_data
94#endif
95'
96
97includes_Linux='
98#define _LARGEFILE_SOURCE
99#define _LARGEFILE64_SOURCE
100#ifndef __LP64__
101#define _FILE_OFFSET_BITS 64
102#endif
103#define _GNU_SOURCE
104
105#include <bits/sockaddr.h>
106#include <sys/epoll.h>
107#include <sys/inotify.h>
108#include <sys/ioctl.h>
109#include <sys/mman.h>
110#include <sys/mount.h>
111#include <sys/prctl.h>
112#include <sys/stat.h>
113#include <sys/types.h>
114#include <sys/time.h>
115#include <sys/socket.h>
116#include <linux/if.h>
117#include <linux/if_arp.h>
118#include <linux/if_ether.h>
119#include <linux/if_tun.h>
120#include <linux/if_packet.h>
121#include <linux/if_addr.h>
122#include <linux/filter.h>
123#include <linux/netlink.h>
124#include <linux/reboot.h>
125#include <linux/rtnetlink.h>
126#include <linux/ptrace.h>
127#include <linux/sched.h>
128#include <linux/wait.h>
129#include <linux/icmpv6.h>
130#include <net/route.h>
131#include <asm/termbits.h>
132
133#ifndef MSG_FASTOPEN
134#define MSG_FASTOPEN 0x20000000
135#endif
136
137#ifndef PTRACE_GETREGS
138#define PTRACE_GETREGS 0xc
139#endif
140
141#ifndef PTRACE_SETREGS
142#define PTRACE_SETREGS 0xd
143#endif
144'
145
146includes_NetBSD='
147#include <sys/types.h>
148#include <sys/param.h>
149#include <sys/event.h>
150#include <sys/mman.h>
151#include <sys/socket.h>
152#include <sys/sockio.h>
153#include <sys/sysctl.h>
154#include <sys/termios.h>
155#include <sys/ttycom.h>
156#include <sys/wait.h>
157#include <net/bpf.h>
158#include <net/if.h>
159#include <net/if_types.h>
160#include <net/route.h>
161#include <netinet/in.h>
162#include <netinet/in_systm.h>
163#include <netinet/ip.h>
164#include <netinet/ip_mroute.h>
165#include <netinet/if_ether.h>
166
167// Needed since <sys/param.h> refers to it...
168#define schedppq 1
169'
170
171includes_OpenBSD='
172#include <sys/types.h>
173#include <sys/param.h>
174#include <sys/event.h>
175#include <sys/mman.h>
176#include <sys/socket.h>
177#include <sys/sockio.h>
178#include <sys/sysctl.h>
179#include <sys/termios.h>
180#include <sys/ttycom.h>
181#include <sys/wait.h>
182#include <net/bpf.h>
183#include <net/if.h>
184#include <net/if_types.h>
185#include <net/if_var.h>
186#include <net/route.h>
187#include <netinet/in.h>
188#include <netinet/in_systm.h>
189#include <netinet/ip.h>
190#include <netinet/ip_mroute.h>
191#include <netinet/if_ether.h>
192#include <net/if_bridge.h>
193
194// We keep some constants not supported in OpenBSD 5.5 and beyond for
195// the promise of compatibility.
196#define EMUL_ENABLED 0x1
197#define EMUL_NATIVE 0x2
198#define IPV6_FAITH 0x1d
199#define IPV6_OPTIONS 0x1
200#define IPV6_RTHDR_STRICT 0x1
201#define IPV6_SOCKOPT_RESERVED1 0x3
202#define SIOCGIFGENERIC 0xc020693a
203#define SIOCSIFGENERIC 0x80206939
204#define WALTSIG 0x4
205'
206
207includes_SunOS='
208#include <limits.h>
209#include <sys/types.h>
210#include <sys/socket.h>
211#include <sys/sockio.h>
212#include <sys/mman.h>
213#include <sys/wait.h>
214#include <sys/ioctl.h>
215#include <net/bpf.h>
216#include <net/if.h>
217#include <net/if_arp.h>
218#include <net/if_types.h>
219#include <net/route.h>
220#include <netinet/in.h>
221#include <termios.h>
222#include <netinet/ip.h>
223#include <netinet/ip_mroute.h>
224'
225
226
227includes='
228#include <sys/types.h>
229#include <sys/file.h>
230#include <fcntl.h>
231#include <dirent.h>
232#include <sys/socket.h>
233#include <netinet/in.h>
234#include <netinet/ip.h>
235#include <netinet/ip6.h>
236#include <netinet/tcp.h>
237#include <errno.h>
238#include <sys/signal.h>
239#include <signal.h>
240#include <sys/resource.h>
241#include <time.h>
242'
243ccflags="$@"
244
245# Write go tool cgo -godefs input.
246(
247 echo package unix
248 echo
249 echo '/*'
250 indirect="includes_$(uname)"
251 echo "${!indirect} $includes"
252 echo '*/'
253 echo 'import "C"'
254 echo 'import "syscall"'
255 echo
256 echo 'const ('
257
258 # The gcc command line prints all the #defines
259 # it encounters while processing the input
260 echo "${!indirect} $includes" | $CC -x c - -E -dM $ccflags |
261 awk '
262 $1 != "#define" || $2 ~ /\(/ || $3 == "" {next}
263
264 $2 ~ /^E([ABCD]X|[BIS]P|[SD]I|S|FL)$/ {next} # 386 registers
265 $2 ~ /^(SIGEV_|SIGSTKSZ|SIGRT(MIN|MAX))/ {next}
266 $2 ~ /^(SCM_SRCRT)$/ {next}
267 $2 ~ /^(MAP_FAILED)$/ {next}
268 $2 ~ /^ELF_.*$/ {next}# <asm/elf.h> contains ELF_ARCH, etc.
269
270 $2 ~ /^EXTATTR_NAMESPACE_NAMES/ ||
271 $2 ~ /^EXTATTR_NAMESPACE_[A-Z]+_STRING/ {next}
272
273 $2 !~ /^ETH_/ &&
274 $2 !~ /^EPROC_/ &&
275 $2 !~ /^EQUIV_/ &&
276 $2 !~ /^EXPR_/ &&
277 $2 ~ /^E[A-Z0-9_]+$/ ||
278 $2 ~ /^B[0-9_]+$/ ||
279 $2 == "BOTHER" ||
280 $2 ~ /^CI?BAUD(EX)?$/ ||
281 $2 == "IBSHIFT" ||
282 $2 ~ /^V[A-Z0-9]+$/ ||
283 $2 ~ /^CS[A-Z0-9]/ ||
284 $2 ~ /^I(SIG|CANON|CRNL|UCLC|EXTEN|MAXBEL|STRIP|UTF8)$/ ||
285 $2 ~ /^IGN/ ||
286 $2 ~ /^IX(ON|ANY|OFF)$/ ||
287 $2 ~ /^IN(LCR|PCK)$/ ||
288 $2 ~ /(^FLU?SH)|(FLU?SH$)/ ||
289 $2 ~ /^C(LOCAL|READ|MSPAR|RTSCTS)$/ ||
290 $2 == "BRKINT" ||
291 $2 == "HUPCL" ||
292 $2 == "PENDIN" ||
293 $2 == "TOSTOP" ||
294 $2 == "XCASE" ||
295 $2 == "ALTWERASE" ||
296 $2 == "NOKERNINFO" ||
297 $2 ~ /^PAR/ ||
298 $2 ~ /^SIG[^_]/ ||
299 $2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ ||
300 $2 ~ /^(NL|CR|TAB|BS|VT|FF)DLY$/ ||
301 $2 ~ /^(NL|CR|TAB|BS|VT|FF)[0-9]$/ ||
302 $2 ~ /^O?XTABS$/ ||
303 $2 ~ /^TC[IO](ON|OFF)$/ ||
304 $2 ~ /^IN_/ ||
305 $2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
306 $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
307 $2 == "ICMPV6_FILTER" ||
308 $2 == "SOMAXCONN" ||
309 $2 == "NAME_MAX" ||
310 $2 == "IFNAMSIZ" ||
311 $2 ~ /^CTL_(MAXNAME|NET|QUERY)$/ ||
312 $2 ~ /^SYSCTL_VERS/ ||
313 $2 ~ /^(MS|MNT)_/ ||
314 $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
315 $2 ~ /^(O|F|FD|NAME|S|PTRACE|PT)_/ ||
316 $2 ~ /^LINUX_REBOOT_CMD_/ ||
317 $2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
318 $2 !~ "NLA_TYPE_MASK" &&
319 $2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P)_/ ||
320 $2 ~ /^SIOC/ ||
321 $2 ~ /^TIOC/ ||
322 $2 ~ /^TCGET/ ||
323 $2 ~ /^TCSET/ ||
324 $2 ~ /^TC(FLSH|SBRKP?|XONC)$/ ||
325 $2 !~ "RTF_BITS" &&
326 $2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ ||
327 $2 ~ /^BIOC/ ||
328 $2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
329 $2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|NOFILE|STACK)|RLIM_INFINITY/ ||
330 $2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
331 $2 ~ /^CLONE_[A-Z_]+/ ||
332 $2 !~ /^(BPF_TIMEVAL)$/ &&
333 $2 ~ /^(BPF|DLT)_/ ||
334 $2 ~ /^CLOCK_/ ||
335 $2 !~ "WMESGLEN" &&
336 $2 ~ /^W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", $2, $2)}
337 $2 ~ /^__WCOREFLAG$/ {next}
338 $2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
339
340 {next}
341 ' | sort
342
343 echo ')'
344) >_const.go
345
346# Pull out the error names for later.
347errors=$(
348 echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
349 awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print $2 }' |
350 sort
351)
352
353# Pull out the signal names for later.
354signals=$(
355 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
356 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
357 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
358 sort
359)
360
361# Again, writing regexps to a file.
362echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
363 awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print "^\t" $2 "[ \t]*=" }' |
364 sort >_error.grep
365echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
366 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
367 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
368 sort >_signal.grep
369
370echo '// mkerrors.sh' "$@"
371echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT'
372echo
373echo "// +build ${GOARCH},${GOOS}"
374echo
375go tool cgo -godefs -- "$@" _const.go >_error.out
376cat _error.out | grep -vf _error.grep | grep -vf _signal.grep
377echo
378echo '// Errors'
379echo 'const ('
380cat _error.out | grep -f _error.grep | sed 's/=\(.*\)/= syscall.Errno(\1)/'
381echo ')'
382
383echo
384echo '// Signals'
385echo 'const ('
386cat _error.out | grep -f _signal.grep | sed 's/=\(.*\)/= syscall.Signal(\1)/'
387echo ')'
388
389# Run C program to print error and syscall strings.
390(
391 echo -E "
392#include <stdio.h>
393#include <stdlib.h>
394#include <errno.h>
395#include <ctype.h>
396#include <string.h>
397#include <signal.h>
398
399#define nelem(x) (sizeof(x)/sizeof((x)[0]))
400
401enum { A = 'A', Z = 'Z', a = 'a', z = 'z' }; // avoid need for single quotes below
402
403int errors[] = {
404"
405 for i in $errors
406 do
407 echo -E ' '$i,
408 done
409
410 echo -E "
411};
412
413int signals[] = {
414"
415 for i in $signals
416 do
417 echo -E ' '$i,
418 done
419
420 # Use -E because on some systems bash builtin interprets \n itself.
421 echo -E '
422};
423
424static int
425intcmp(const void *a, const void *b)
426{
427 return *(int*)a - *(int*)b;
428}
429
430int
431main(void)
432{
433 int i, j, e;
434 char buf[1024], *p;
435
436 printf("\n\n// Error table\n");
437 printf("var errors = [...]string {\n");
438 qsort(errors, nelem(errors), sizeof errors[0], intcmp);
439 for(i=0; i<nelem(errors); i++) {
440 e = errors[i];
441 if(i > 0 && errors[i-1] == e)
442 continue;
443 strcpy(buf, strerror(e));
444 // lowercase first letter: Bad -> bad, but STREAM -> STREAM.
445 if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
446 buf[0] += a - A;
447 printf("\t%d: \"%s\",\n", e, buf);
448 }
449 printf("}\n\n");
450
451 printf("\n\n// Signal table\n");
452 printf("var signals = [...]string {\n");
453 qsort(signals, nelem(signals), sizeof signals[0], intcmp);
454 for(i=0; i<nelem(signals); i++) {
455 e = signals[i];
456 if(i > 0 && signals[i-1] == e)
457 continue;
458 strcpy(buf, strsignal(e));
459 // lowercase first letter: Bad -> bad, but STREAM -> STREAM.
460 if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
461 buf[0] += a - A;
462 // cut trailing : number.
463 p = strrchr(buf, ":"[0]);
464 if(p)
465 *p = '\0';
466 printf("\t%d: \"%s\",\n", e, buf);
467 }
468 printf("}\n\n");
469
470 return 0;
471}
472
473'
474) >_errors.c
475
476$CC $ccflags -o _errors _errors.c && $GORUN ./_errors && rm -f _errors.c _errors _const.go _error.grep _signal.grep _error.out
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksyscall.pl b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksyscall.pl
deleted file mode 100755
index b1e7766..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksyscall.pl
+++ /dev/null
@@ -1,323 +0,0 @@
1#!/usr/bin/env perl
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5
6# This program reads a file containing function prototypes
7# (like syscall_darwin.go) and generates system call bodies.
8# The prototypes are marked by lines beginning with "//sys"
9# and read like func declarations if //sys is replaced by func, but:
10# * The parameter lists must give a name for each argument.
11# This includes return parameters.
12# * The parameter lists must give a type for each argument:
13# the (x, y, z int) shorthand is not allowed.
14# * If the return parameter is an error number, it must be named errno.
15
16# A line beginning with //sysnb is like //sys, except that the
17# goroutine will not be suspended during the execution of the system
18# call. This must only be used for system calls which can never
19# block, as otherwise the system call could cause all goroutines to
20# hang.
21
22use strict;
23
24my $cmdline = "mksyscall.pl " . join(' ', @ARGV);
25my $errors = 0;
26my $_32bit = "";
27my $plan9 = 0;
28my $openbsd = 0;
29my $netbsd = 0;
30my $dragonfly = 0;
31my $arm = 0; # 64-bit value should use (even, odd)-pair
32
33if($ARGV[0] eq "-b32") {
34 $_32bit = "big-endian";
35 shift;
36} elsif($ARGV[0] eq "-l32") {
37 $_32bit = "little-endian";
38 shift;
39}
40if($ARGV[0] eq "-plan9") {
41 $plan9 = 1;
42 shift;
43}
44if($ARGV[0] eq "-openbsd") {
45 $openbsd = 1;
46 shift;
47}
48if($ARGV[0] eq "-netbsd") {
49 $netbsd = 1;
50 shift;
51}
52if($ARGV[0] eq "-dragonfly") {
53 $dragonfly = 1;
54 shift;
55}
56if($ARGV[0] eq "-arm") {
57 $arm = 1;
58 shift;
59}
60
61if($ARGV[0] =~ /^-/) {
62 print STDERR "usage: mksyscall.pl [-b32 | -l32] [file ...]\n";
63 exit 1;
64}
65
66if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
67 print STDERR "GOARCH or GOOS not defined in environment\n";
68 exit 1;
69}
70
71sub parseparamlist($) {
72 my ($list) = @_;
73 $list =~ s/^\s*//;
74 $list =~ s/\s*$//;
75 if($list eq "") {
76 return ();
77 }
78 return split(/\s*,\s*/, $list);
79}
80
81sub parseparam($) {
82 my ($p) = @_;
83 if($p !~ /^(\S*) (\S*)$/) {
84 print STDERR "$ARGV:$.: malformed parameter: $p\n";
85 $errors = 1;
86 return ("xx", "int");
87 }
88 return ($1, $2);
89}
90
91my $text = "";
92while(<>) {
93 chomp;
94 s/\s+/ /g;
95 s/^\s+//;
96 s/\s+$//;
97 my $nonblock = /^\/\/sysnb /;
98 next if !/^\/\/sys / && !$nonblock;
99
100 # Line must be of the form
101 # func Open(path string, mode int, perm int) (fd int, errno error)
102 # Split into name, in params, out params.
103 if(!/^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*((?i)SYS_[A-Z0-9_]+))?$/) {
104 print STDERR "$ARGV:$.: malformed //sys declaration\n";
105 $errors = 1;
106 next;
107 }
108 my ($func, $in, $out, $sysname) = ($2, $3, $4, $5);
109
110 # Split argument lists on comma.
111 my @in = parseparamlist($in);
112 my @out = parseparamlist($out);
113
114 # Try in vain to keep people from editing this file.
115 # The theory is that they jump into the middle of the file
116 # without reading the header.
117 $text .= "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n";
118
119 # Go function header.
120 my $out_decl = @out ? sprintf(" (%s)", join(', ', @out)) : "";
121 $text .= sprintf "func %s(%s)%s {\n", $func, join(', ', @in), $out_decl;
122
123 # Check if err return available
124 my $errvar = "";
125 foreach my $p (@out) {
126 my ($name, $type) = parseparam($p);
127 if($type eq "error") {
128 $errvar = $name;
129 last;
130 }
131 }
132
133 # Prepare arguments to Syscall.
134 my @args = ();
135 my @uses = ();
136 my $n = 0;
137 foreach my $p (@in) {
138 my ($name, $type) = parseparam($p);
139 if($type =~ /^\*/) {
140 push @args, "uintptr(unsafe.Pointer($name))";
141 } elsif($type eq "string" && $errvar ne "") {
142 $text .= "\tvar _p$n *byte\n";
143 $text .= "\t_p$n, $errvar = BytePtrFromString($name)\n";
144 $text .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
145 push @args, "uintptr(unsafe.Pointer(_p$n))";
146 push @uses, "use(unsafe.Pointer(_p$n))";
147 $n++;
148 } elsif($type eq "string") {
149 print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
150 $text .= "\tvar _p$n *byte\n";
151 $text .= "\t_p$n, _ = BytePtrFromString($name)\n";
152 push @args, "uintptr(unsafe.Pointer(_p$n))";
153 push @uses, "use(unsafe.Pointer(_p$n))";
154 $n++;
155 } elsif($type =~ /^\[\](.*)/) {
156 # Convert slice into pointer, length.
157 # Have to be careful not to take address of &a[0] if len == 0:
158 # pass dummy pointer in that case.
159 # Used to pass nil, but some OSes or simulators reject write(fd, nil, 0).
160 $text .= "\tvar _p$n unsafe.Pointer\n";
161 $text .= "\tif len($name) > 0 {\n\t\t_p$n = unsafe.Pointer(\&${name}[0])\n\t}";
162 $text .= " else {\n\t\t_p$n = unsafe.Pointer(&_zero)\n\t}";
163 $text .= "\n";
164 push @args, "uintptr(_p$n)", "uintptr(len($name))";
165 $n++;
166 } elsif($type eq "int64" && ($openbsd || $netbsd)) {
167 push @args, "0";
168 if($_32bit eq "big-endian") {
169 push @args, "uintptr($name>>32)", "uintptr($name)";
170 } elsif($_32bit eq "little-endian") {
171 push @args, "uintptr($name)", "uintptr($name>>32)";
172 } else {
173 push @args, "uintptr($name)";
174 }
175 } elsif($type eq "int64" && $dragonfly) {
176 if ($func !~ /^extp(read|write)/i) {
177 push @args, "0";
178 }
179 if($_32bit eq "big-endian") {
180 push @args, "uintptr($name>>32)", "uintptr($name)";
181 } elsif($_32bit eq "little-endian") {
182 push @args, "uintptr($name)", "uintptr($name>>32)";
183 } else {
184 push @args, "uintptr($name)";
185 }
186 } elsif($type eq "int64" && $_32bit ne "") {
187 if(@args % 2 && $arm) {
188 # arm abi specifies 64-bit argument uses
189 # (even, odd) pair
190 push @args, "0"
191 }
192 if($_32bit eq "big-endian") {
193 push @args, "uintptr($name>>32)", "uintptr($name)";
194 } else {
195 push @args, "uintptr($name)", "uintptr($name>>32)";
196 }
197 } else {
198 push @args, "uintptr($name)";
199 }
200 }
201
202 # Determine which form to use; pad args with zeros.
203 my $asm = "Syscall";
204 if ($nonblock) {
205 $asm = "RawSyscall";
206 }
207 if(@args <= 3) {
208 while(@args < 3) {
209 push @args, "0";
210 }
211 } elsif(@args <= 6) {
212 $asm .= "6";
213 while(@args < 6) {
214 push @args, "0";
215 }
216 } elsif(@args <= 9) {
217 $asm .= "9";
218 while(@args < 9) {
219 push @args, "0";
220 }
221 } else {
222 print STDERR "$ARGV:$.: too many arguments to system call\n";
223 }
224
225 # System call number.
226 if($sysname eq "") {
227 $sysname = "SYS_$func";
228 $sysname =~ s/([a-z])([A-Z])/${1}_$2/g; # turn FooBar into Foo_Bar
229 $sysname =~ y/a-z/A-Z/;
230 }
231
232 # Actual call.
233 my $args = join(', ', @args);
234 my $call = "$asm($sysname, $args)";
235
236 # Assign return values.
237 my $body = "";
238 my @ret = ("_", "_", "_");
239 my $do_errno = 0;
240 for(my $i=0; $i<@out; $i++) {
241 my $p = $out[$i];
242 my ($name, $type) = parseparam($p);
243 my $reg = "";
244 if($name eq "err" && !$plan9) {
245 $reg = "e1";
246 $ret[2] = $reg;
247 $do_errno = 1;
248 } elsif($name eq "err" && $plan9) {
249 $ret[0] = "r0";
250 $ret[2] = "e1";
251 next;
252 } else {
253 $reg = sprintf("r%d", $i);
254 $ret[$i] = $reg;
255 }
256 if($type eq "bool") {
257 $reg = "$reg != 0";
258 }
259 if($type eq "int64" && $_32bit ne "") {
260 # 64-bit number in r1:r0 or r0:r1.
261 if($i+2 > @out) {
262 print STDERR "$ARGV:$.: not enough registers for int64 return\n";
263 }
264 if($_32bit eq "big-endian") {
265 $reg = sprintf("int64(r%d)<<32 | int64(r%d)", $i, $i+1);
266 } else {
267 $reg = sprintf("int64(r%d)<<32 | int64(r%d)", $i+1, $i);
268 }
269 $ret[$i] = sprintf("r%d", $i);
270 $ret[$i+1] = sprintf("r%d", $i+1);
271 }
272 if($reg ne "e1" || $plan9) {
273 $body .= "\t$name = $type($reg)\n";
274 }
275 }
276 if ($ret[0] eq "_" && $ret[1] eq "_" && $ret[2] eq "_") {
277 $text .= "\t$call\n";
278 } else {
279 $text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
280 }
281 foreach my $use (@uses) {
282 $text .= "\t$use\n";
283 }
284 $text .= $body;
285
286 if ($plan9 && $ret[2] eq "e1") {
287 $text .= "\tif int32(r0) == -1 {\n";
288 $text .= "\t\terr = e1\n";
289 $text .= "\t}\n";
290 } elsif ($do_errno) {
291 $text .= "\tif e1 != 0 {\n";
292 $text .= "\t\terr = errnoErr(e1)\n";
293 $text .= "\t}\n";
294 }
295 $text .= "\treturn\n";
296 $text .= "}\n\n";
297}
298
299chomp $text;
300chomp $text;
301
302if($errors) {
303 exit 1;
304}
305
306print <<EOF;
307// $cmdline
308// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
309
310// +build $ENV{'GOARCH'},$ENV{'GOOS'}
311
312package unix
313
314import (
315 "syscall"
316 "unsafe"
317)
318
319var _ syscall.Errno
320
321$text
322EOF
323exit 0;
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksyscall_solaris.pl b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksyscall_solaris.pl
deleted file mode 100755
index 06bade7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksyscall_solaris.pl
+++ /dev/null
@@ -1,294 +0,0 @@
1#!/usr/bin/env perl
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5
6# This program reads a file containing function prototypes
7# (like syscall_solaris.go) and generates system call bodies.
8# The prototypes are marked by lines beginning with "//sys"
9# and read like func declarations if //sys is replaced by func, but:
10# * The parameter lists must give a name for each argument.
11# This includes return parameters.
12# * The parameter lists must give a type for each argument:
13# the (x, y, z int) shorthand is not allowed.
14# * If the return parameter is an error number, it must be named err.
15# * If go func name needs to be different than its libc name,
16# * or the function is not in libc, name could be specified
17# * at the end, after "=" sign, like
18# //sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
19
20use strict;
21
22my $cmdline = "mksyscall_solaris.pl " . join(' ', @ARGV);
23my $errors = 0;
24my $_32bit = "";
25
26binmode STDOUT;
27
28if($ARGV[0] eq "-b32") {
29 $_32bit = "big-endian";
30 shift;
31} elsif($ARGV[0] eq "-l32") {
32 $_32bit = "little-endian";
33 shift;
34}
35
36if($ARGV[0] =~ /^-/) {
37 print STDERR "usage: mksyscall_solaris.pl [-b32 | -l32] [file ...]\n";
38 exit 1;
39}
40
41if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
42 print STDERR "GOARCH or GOOS not defined in environment\n";
43 exit 1;
44}
45
46sub parseparamlist($) {
47 my ($list) = @_;
48 $list =~ s/^\s*//;
49 $list =~ s/\s*$//;
50 if($list eq "") {
51 return ();
52 }
53 return split(/\s*,\s*/, $list);
54}
55
56sub parseparam($) {
57 my ($p) = @_;
58 if($p !~ /^(\S*) (\S*)$/) {
59 print STDERR "$ARGV:$.: malformed parameter: $p\n";
60 $errors = 1;
61 return ("xx", "int");
62 }
63 return ($1, $2);
64}
65
66my $package = "";
67my $text = "";
68my $dynimports = "";
69my $linknames = "";
70my @vars = ();
71while(<>) {
72 chomp;
73 s/\s+/ /g;
74 s/^\s+//;
75 s/\s+$//;
76 $package = $1 if !$package && /^package (\S+)$/;
77 my $nonblock = /^\/\/sysnb /;
78 next if !/^\/\/sys / && !$nonblock;
79
80 # Line must be of the form
81 # func Open(path string, mode int, perm int) (fd int, err error)
82 # Split into name, in params, out params.
83 if(!/^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$/) {
84 print STDERR "$ARGV:$.: malformed //sys declaration\n";
85 $errors = 1;
86 next;
87 }
88 my ($nb, $func, $in, $out, $modname, $sysname) = ($1, $2, $3, $4, $5, $6);
89
90 # Split argument lists on comma.
91 my @in = parseparamlist($in);
92 my @out = parseparamlist($out);
93
94 # So file name.
95 if($modname eq "") {
96 $modname = "libc";
97 }
98
99 # System call name.
100 if($sysname eq "") {
101 $sysname = "$func";
102 }
103
104 # System call pointer variable name.
105 my $sysvarname = "proc$sysname";
106
107 my $strconvfunc = "BytePtrFromString";
108 my $strconvtype = "*byte";
109
110 $sysname =~ y/A-Z/a-z/; # All libc functions are lowercase.
111
112 # Runtime import of function to allow cross-platform builds.
113 $dynimports .= "//go:cgo_import_dynamic libc_${sysname} ${sysname} \"$modname.so\"\n";
114 # Link symbol to proc address variable.
115 $linknames .= "//go:linkname ${sysvarname} libc_${sysname}\n";
116 # Library proc address variable.
117 push @vars, $sysvarname;
118
119 # Go function header.
120 $out = join(', ', @out);
121 if($out ne "") {
122 $out = " ($out)";
123 }
124 if($text ne "") {
125 $text .= "\n"
126 }
127 $text .= sprintf "func %s(%s)%s {\n", $func, join(', ', @in), $out;
128
129 # Check if err return available
130 my $errvar = "";
131 foreach my $p (@out) {
132 my ($name, $type) = parseparam($p);
133 if($type eq "error") {
134 $errvar = $name;
135 last;
136 }
137 }
138
139 # Prepare arguments to Syscall.
140 my @args = ();
141 my @uses = ();
142 my $n = 0;
143 foreach my $p (@in) {
144 my ($name, $type) = parseparam($p);
145 if($type =~ /^\*/) {
146 push @args, "uintptr(unsafe.Pointer($name))";
147 } elsif($type eq "string" && $errvar ne "") {
148 $text .= "\tvar _p$n $strconvtype\n";
149 $text .= "\t_p$n, $errvar = $strconvfunc($name)\n";
150 $text .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
151 push @args, "uintptr(unsafe.Pointer(_p$n))";
152 push @uses, "use(unsafe.Pointer(_p$n))";
153 $n++;
154 } elsif($type eq "string") {
155 print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
156 $text .= "\tvar _p$n $strconvtype\n";
157 $text .= "\t_p$n, _ = $strconvfunc($name)\n";
158 push @args, "uintptr(unsafe.Pointer(_p$n))";
159 push @uses, "use(unsafe.Pointer(_p$n))";
160 $n++;
161 } elsif($type =~ /^\[\](.*)/) {
162 # Convert slice into pointer, length.
163 # Have to be careful not to take address of &a[0] if len == 0:
164 # pass nil in that case.
165 $text .= "\tvar _p$n *$1\n";
166 $text .= "\tif len($name) > 0 {\n\t\t_p$n = \&$name\[0]\n\t}\n";
167 push @args, "uintptr(unsafe.Pointer(_p$n))", "uintptr(len($name))";
168 $n++;
169 } elsif($type eq "int64" && $_32bit ne "") {
170 if($_32bit eq "big-endian") {
171 push @args, "uintptr($name >> 32)", "uintptr($name)";
172 } else {
173 push @args, "uintptr($name)", "uintptr($name >> 32)";
174 }
175 } elsif($type eq "bool") {
176 $text .= "\tvar _p$n uint32\n";
177 $text .= "\tif $name {\n\t\t_p$n = 1\n\t} else {\n\t\t_p$n = 0\n\t}\n";
178 push @args, "uintptr(_p$n)";
179 $n++;
180 } else {
181 push @args, "uintptr($name)";
182 }
183 }
184 my $nargs = @args;
185
186 # Determine which form to use; pad args with zeros.
187 my $asm = "sysvicall6";
188 if ($nonblock) {
189 $asm = "rawSysvicall6";
190 }
191 if(@args <= 6) {
192 while(@args < 6) {
193 push @args, "0";
194 }
195 } else {
196 print STDERR "$ARGV:$.: too many arguments to system call\n";
197 }
198
199 # Actual call.
200 my $args = join(', ', @args);
201 my $call = "$asm(uintptr(unsafe.Pointer(&$sysvarname)), $nargs, $args)";
202
203 # Assign return values.
204 my $body = "";
205 my $failexpr = "";
206 my @ret = ("_", "_", "_");
207 my @pout= ();
208 my $do_errno = 0;
209 for(my $i=0; $i<@out; $i++) {
210 my $p = $out[$i];
211 my ($name, $type) = parseparam($p);
212 my $reg = "";
213 if($name eq "err") {
214 $reg = "e1";
215 $ret[2] = $reg;
216 $do_errno = 1;
217 } else {
218 $reg = sprintf("r%d", $i);
219 $ret[$i] = $reg;
220 }
221 if($type eq "bool") {
222 $reg = "$reg != 0";
223 }
224 if($type eq "int64" && $_32bit ne "") {
225 # 64-bit number in r1:r0 or r0:r1.
226 if($i+2 > @out) {
227 print STDERR "$ARGV:$.: not enough registers for int64 return\n";
228 }
229 if($_32bit eq "big-endian") {
230 $reg = sprintf("int64(r%d)<<32 | int64(r%d)", $i, $i+1);
231 } else {
232 $reg = sprintf("int64(r%d)<<32 | int64(r%d)", $i+1, $i);
233 }
234 $ret[$i] = sprintf("r%d", $i);
235 $ret[$i+1] = sprintf("r%d", $i+1);
236 }
237 if($reg ne "e1") {
238 $body .= "\t$name = $type($reg)\n";
239 }
240 }
241 if ($ret[0] eq "_" && $ret[1] eq "_" && $ret[2] eq "_") {
242 $text .= "\t$call\n";
243 } else {
244 $text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
245 }
246 foreach my $use (@uses) {
247 $text .= "\t$use\n";
248 }
249 $text .= $body;
250
251 if ($do_errno) {
252 $text .= "\tif e1 != 0 {\n";
253 $text .= "\t\terr = e1\n";
254 $text .= "\t}\n";
255 }
256 $text .= "\treturn\n";
257 $text .= "}\n";
258}
259
260if($errors) {
261 exit 1;
262}
263
264print <<EOF;
265// $cmdline
266// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
267
268// +build $ENV{'GOARCH'},$ENV{'GOOS'}
269
270package $package
271
272import (
273 "syscall"
274 "unsafe"
275)
276EOF
277
278print "import \"golang.org/x/sys/unix\"\n" if $package ne "unix";
279
280my $vardecls = "\t" . join(",\n\t", @vars);
281$vardecls .= " syscallFunc";
282
283chomp($_=<<EOF);
284
285$dynimports
286$linknames
287var (
288$vardecls
289)
290
291$text
292EOF
293print $_;
294exit 0;
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysctl_openbsd.pl b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysctl_openbsd.pl
deleted file mode 100755
index be67afa..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysctl_openbsd.pl
+++ /dev/null
@@ -1,264 +0,0 @@
1#!/usr/bin/env perl
2
3# Copyright 2011 The Go Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style
5# license that can be found in the LICENSE file.
6
7#
8# Parse the header files for OpenBSD and generate a Go usable sysctl MIB.
9#
10# Build a MIB with each entry being an array containing the level, type and
11# a hash that will contain additional entries if the current entry is a node.
12# We then walk this MIB and create a flattened sysctl name to OID hash.
13#
14
15use strict;
16
17if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
18 print STDERR "GOARCH or GOOS not defined in environment\n";
19 exit 1;
20}
21
22my $debug = 0;
23my %ctls = ();
24
25my @headers = qw (
26 sys/sysctl.h
27 sys/socket.h
28 sys/tty.h
29 sys/malloc.h
30 sys/mount.h
31 sys/namei.h
32 sys/sem.h
33 sys/shm.h
34 sys/vmmeter.h
35 uvm/uvm_param.h
36 uvm/uvm_swap_encrypt.h
37 ddb/db_var.h
38 net/if.h
39 net/if_pfsync.h
40 net/pipex.h
41 netinet/in.h
42 netinet/icmp_var.h
43 netinet/igmp_var.h
44 netinet/ip_ah.h
45 netinet/ip_carp.h
46 netinet/ip_divert.h
47 netinet/ip_esp.h
48 netinet/ip_ether.h
49 netinet/ip_gre.h
50 netinet/ip_ipcomp.h
51 netinet/ip_ipip.h
52 netinet/pim_var.h
53 netinet/tcp_var.h
54 netinet/udp_var.h
55 netinet6/in6.h
56 netinet6/ip6_divert.h
57 netinet6/pim6_var.h
58 netinet/icmp6.h
59 netmpls/mpls.h
60);
61
62my @ctls = qw (
63 kern
64 vm
65 fs
66 net
67 #debug # Special handling required
68 hw
69 #machdep # Arch specific
70 user
71 ddb
72 #vfs # Special handling required
73 fs.posix
74 kern.forkstat
75 kern.intrcnt
76 kern.malloc
77 kern.nchstats
78 kern.seminfo
79 kern.shminfo
80 kern.timecounter
81 kern.tty
82 kern.watchdog
83 net.bpf
84 net.ifq
85 net.inet
86 net.inet.ah
87 net.inet.carp
88 net.inet.divert
89 net.inet.esp
90 net.inet.etherip
91 net.inet.gre
92 net.inet.icmp
93 net.inet.igmp
94 net.inet.ip
95 net.inet.ip.ifq
96 net.inet.ipcomp
97 net.inet.ipip
98 net.inet.mobileip
99 net.inet.pfsync
100 net.inet.pim
101 net.inet.tcp
102 net.inet.udp
103 net.inet6
104 net.inet6.divert
105 net.inet6.ip6
106 net.inet6.icmp6
107 net.inet6.pim6
108 net.inet6.tcp6
109 net.inet6.udp6
110 net.mpls
111 net.mpls.ifq
112 net.key
113 net.pflow
114 net.pfsync
115 net.pipex
116 net.rt
117 vm.swapencrypt
118 #vfsgenctl # Special handling required
119);
120
121# Node name "fixups"
122my %ctl_map = (
123 "ipproto" => "net.inet",
124 "net.inet.ipproto" => "net.inet",
125 "net.inet6.ipv6proto" => "net.inet6",
126 "net.inet6.ipv6" => "net.inet6.ip6",
127 "net.inet.icmpv6" => "net.inet6.icmp6",
128 "net.inet6.divert6" => "net.inet6.divert",
129 "net.inet6.tcp6" => "net.inet.tcp",
130 "net.inet6.udp6" => "net.inet.udp",
131 "mpls" => "net.mpls",
132 "swpenc" => "vm.swapencrypt"
133);
134
135# Node mappings
136my %node_map = (
137 "net.inet.ip.ifq" => "net.ifq",
138 "net.inet.pfsync" => "net.pfsync",
139 "net.mpls.ifq" => "net.ifq"
140);
141
142my $ctlname;
143my %mib = ();
144my %sysctl = ();
145my $node;
146
147sub debug() {
148 print STDERR "$_[0]\n" if $debug;
149}
150
151# Walk the MIB and build a sysctl name to OID mapping.
152sub build_sysctl() {
153 my ($node, $name, $oid) = @_;
154 my %node = %{$node};
155 my @oid = @{$oid};
156
157 foreach my $key (sort keys %node) {
158 my @node = @{$node{$key}};
159 my $nodename = $name.($name ne '' ? '.' : '').$key;
160 my @nodeoid = (@oid, $node[0]);
161 if ($node[1] eq 'CTLTYPE_NODE') {
162 if (exists $node_map{$nodename}) {
163 $node = \%mib;
164 $ctlname = $node_map{$nodename};
165 foreach my $part (split /\./, $ctlname) {
166 $node = \%{@{$$node{$part}}[2]};
167 }
168 } else {
169 $node = $node[2];
170 }
171 &build_sysctl($node, $nodename, \@nodeoid);
172 } elsif ($node[1] ne '') {
173 $sysctl{$nodename} = \@nodeoid;
174 }
175 }
176}
177
178foreach my $ctl (@ctls) {
179 $ctls{$ctl} = $ctl;
180}
181
182# Build MIB
183foreach my $header (@headers) {
184 &debug("Processing $header...");
185 open HEADER, "/usr/include/$header" ||
186 print STDERR "Failed to open $header\n";
187 while (<HEADER>) {
188 if ($_ =~ /^#define\s+(CTL_NAMES)\s+{/ ||
189 $_ =~ /^#define\s+(CTL_(.*)_NAMES)\s+{/ ||
190 $_ =~ /^#define\s+((.*)CTL_NAMES)\s+{/) {
191 if ($1 eq 'CTL_NAMES') {
192 # Top level.
193 $node = \%mib;
194 } else {
195 # Node.
196 my $nodename = lc($2);
197 if ($header =~ /^netinet\//) {
198 $ctlname = "net.inet.$nodename";
199 } elsif ($header =~ /^netinet6\//) {
200 $ctlname = "net.inet6.$nodename";
201 } elsif ($header =~ /^net\//) {
202 $ctlname = "net.$nodename";
203 } else {
204 $ctlname = "$nodename";
205 $ctlname =~ s/^(fs|net|kern)_/$1\./;
206 }
207 if (exists $ctl_map{$ctlname}) {
208 $ctlname = $ctl_map{$ctlname};
209 }
210 if (not exists $ctls{$ctlname}) {
211 &debug("Ignoring $ctlname...");
212 next;
213 }
214
215 # Walk down from the top of the MIB.
216 $node = \%mib;
217 foreach my $part (split /\./, $ctlname) {
218 if (not exists $$node{$part}) {
219 &debug("Missing node $part");
220 $$node{$part} = [ 0, '', {} ];
221 }
222 $node = \%{@{$$node{$part}}[2]};
223 }
224 }
225
226 # Populate current node with entries.
227 my $i = -1;
228 while (defined($_) && $_ !~ /^}/) {
229 $_ = <HEADER>;
230 $i++ if $_ =~ /{.*}/;
231 next if $_ !~ /{\s+"(\w+)",\s+(CTLTYPE_[A-Z]+)\s+}/;
232 $$node{$1} = [ $i, $2, {} ];
233 }
234 }
235 }
236 close HEADER;
237}
238
239&build_sysctl(\%mib, "", []);
240
241print <<EOF;
242// mksysctl_openbsd.pl
243// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
244
245// +build $ENV{'GOARCH'},$ENV{'GOOS'}
246
247package unix;
248
249type mibentry struct {
250 ctlname string
251 ctloid []_C_int
252}
253
254var sysctlMib = []mibentry {
255EOF
256
257foreach my $name (sort keys %sysctl) {
258 my @oid = @{$sysctl{$name}};
259 print "\t{ \"$name\", []_C_int{ ", join(', ', @oid), " } }, \n";
260}
261
262print <<EOF;
263}
264EOF
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_darwin.pl b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_darwin.pl
deleted file mode 100755
index d3e5147..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_darwin.pl
+++ /dev/null
@@ -1,39 +0,0 @@
1#!/usr/bin/env perl
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5#
6# Generate system call table for Darwin from sys/syscall.h
7
8use strict;
9
10if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
11 print STDERR "GOARCH or GOOS not defined in environment\n";
12 exit 1;
13}
14
15my $command = "mksysnum_darwin.pl " . join(' ', @ARGV);
16
17print <<EOF;
18// $command
19// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
20
21// +build $ENV{'GOARCH'},$ENV{'GOOS'}
22
23package unix
24
25const (
26EOF
27
28while(<>){
29 if(/^#define\s+SYS_(\w+)\s+([0-9]+)/){
30 my $name = $1;
31 my $num = $2;
32 $name =~ y/a-z/A-Z/;
33 print " SYS_$name = $num;"
34 }
35}
36
37print <<EOF;
38)
39EOF
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_dragonfly.pl b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_dragonfly.pl
deleted file mode 100755
index 266a248..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_dragonfly.pl
+++ /dev/null
@@ -1,50 +0,0 @@
1#!/usr/bin/env perl
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5#
6# Generate system call table for DragonFly from master list
7# (for example, /usr/src/sys/kern/syscalls.master).
8
9use strict;
10
11if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
12 print STDERR "GOARCH or GOOS not defined in environment\n";
13 exit 1;
14}
15
16my $command = "mksysnum_dragonfly.pl " . join(' ', @ARGV);
17
18print <<EOF;
19// $command
20// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
21
22// +build $ENV{'GOARCH'},$ENV{'GOOS'}
23
24package unix
25
26const (
27EOF
28
29while(<>){
30 if(/^([0-9]+)\s+STD\s+({ \S+\s+(\w+).*)$/){
31 my $num = $1;
32 my $proto = $2;
33 my $name = "SYS_$3";
34 $name =~ y/a-z/A-Z/;
35
36 # There are multiple entries for enosys and nosys, so comment them out.
37 if($name =~ /^SYS_E?NOSYS$/){
38 $name = "// $name";
39 }
40 if($name eq 'SYS_SYS_EXIT'){
41 $name = 'SYS_EXIT';
42 }
43
44 print " $name = $num; // $proto\n";
45 }
46}
47
48print <<EOF;
49)
50EOF
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_freebsd.pl b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_freebsd.pl
deleted file mode 100755
index b767e12..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_freebsd.pl
+++ /dev/null
@@ -1,63 +0,0 @@
1#!/usr/bin/env perl
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5#
6# Generate system call table for FreeBSD from master list
7# (for example, /usr/src/sys/kern/syscalls.master).
8
9use strict;
10
11if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
12 print STDERR "GOARCH or GOOS not defined in environment\n";
13 exit 1;
14}
15
16my $command = "mksysnum_freebsd.pl " . join(' ', @ARGV);
17
18print <<EOF;
19// $command
20// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
21
22// +build $ENV{'GOARCH'},$ENV{'GOOS'}
23
24package unix
25
26const (
27EOF
28
29while(<>){
30 if(/^([0-9]+)\s+\S+\s+STD\s+({ \S+\s+(\w+).*)$/){
31 my $num = $1;
32 my $proto = $2;
33 my $name = "SYS_$3";
34 $name =~ y/a-z/A-Z/;
35
36 # There are multiple entries for enosys and nosys, so comment them out.
37 if($name =~ /^SYS_E?NOSYS$/){
38 $name = "// $name";
39 }
40 if($name eq 'SYS_SYS_EXIT'){
41 $name = 'SYS_EXIT';
42 }
43 if($name =~ /^SYS_CAP_+/ || $name =~ /^SYS___CAP_+/){
44 next
45 }
46
47 print " $name = $num; // $proto\n";
48
49 # We keep Capsicum syscall numbers for FreeBSD
50 # 9-STABLE here because we are not sure whether they
51 # are mature and stable.
52 if($num == 513){
53 print " SYS_CAP_NEW = 514 // { int cap_new(int fd, uint64_t rights); }\n";
54 print " SYS_CAP_GETRIGHTS = 515 // { int cap_getrights(int fd, \\\n";
55 print " SYS_CAP_ENTER = 516 // { int cap_enter(void); }\n";
56 print " SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }\n";
57 }
58 }
59}
60
61print <<EOF;
62)
63EOF
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_linux.pl b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_linux.pl
deleted file mode 100755
index 4d4017d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_linux.pl
+++ /dev/null
@@ -1,58 +0,0 @@
1#!/usr/bin/env perl
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5
6use strict;
7
8if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
9 print STDERR "GOARCH or GOOS not defined in environment\n";
10 exit 1;
11}
12
13my $command = "mksysnum_linux.pl ". join(' ', @ARGV);
14
15print <<EOF;
16// $command
17// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
18
19// +build $ENV{'GOARCH'},$ENV{'GOOS'}
20
21package unix
22
23const(
24EOF
25
26sub fmt {
27 my ($name, $num) = @_;
28 if($num > 999){
29 # ignore deprecated syscalls that are no longer implemented
30 # https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/unistd.h?id=refs/heads/master#n716
31 return;
32 }
33 $name =~ y/a-z/A-Z/;
34 print " SYS_$name = $num;\n";
35}
36
37my $prev;
38open(GCC, "gcc -E -dD $ARGV[0] |") || die "can't run gcc";
39while(<GCC>){
40 if(/^#define __NR_syscalls\s+/) {
41 # ignore redefinitions of __NR_syscalls
42 }
43 elsif(/^#define __NR_(\w+)\s+([0-9]+)/){
44 $prev = $2;
45 fmt($1, $2);
46 }
47 elsif(/^#define __NR3264_(\w+)\s+([0-9]+)/){
48 $prev = $2;
49 fmt($1, $2);
50 }
51 elsif(/^#define __NR_(\w+)\s+\(\w+\+\s*([0-9]+)\)/){
52 fmt($1, $prev+$2)
53 }
54}
55
56print <<EOF;
57)
58EOF
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_netbsd.pl b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_netbsd.pl
deleted file mode 100755
index e74616a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_netbsd.pl
+++ /dev/null
@@ -1,58 +0,0 @@
1#!/usr/bin/env perl
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5#
6# Generate system call table for OpenBSD from master list
7# (for example, /usr/src/sys/kern/syscalls.master).
8
9use strict;
10
11if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
12 print STDERR "GOARCH or GOOS not defined in environment\n";
13 exit 1;
14}
15
16my $command = "mksysnum_netbsd.pl " . join(' ', @ARGV);
17
18print <<EOF;
19// $command
20// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
21
22// +build $ENV{'GOARCH'},$ENV{'GOOS'}
23
24package unix
25
26const (
27EOF
28
29my $line = '';
30while(<>){
31 if($line =~ /^(.*)\\$/) {
32 # Handle continuation
33 $line = $1;
34 $_ =~ s/^\s+//;
35 $line .= $_;
36 } else {
37 # New line
38 $line = $_;
39 }
40 next if $line =~ /\\$/;
41 if($line =~ /^([0-9]+)\s+((STD)|(NOERR))\s+(RUMP\s+)?({\s+\S+\s*\*?\s*\|(\S+)\|(\S*)\|(\w+).*\s+})(\s+(\S+))?$/) {
42 my $num = $1;
43 my $proto = $6;
44 my $compat = $8;
45 my $name = "$7_$9";
46
47 $name = "$7_$11" if $11 ne '';
48 $name =~ y/a-z/A-Z/;
49
50 if($compat eq '' || $compat eq '30' || $compat eq '50') {
51 print " $name = $num; // $proto\n";
52 }
53 }
54}
55
56print <<EOF;
57)
58EOF
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_openbsd.pl b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_openbsd.pl
deleted file mode 100755
index ae5aad5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_openbsd.pl
+++ /dev/null
@@ -1,50 +0,0 @@
1#!/usr/bin/env perl
2# Copyright 2009 The Go Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file.
5#
6# Generate system call table for OpenBSD from master list
7# (for example, /usr/src/sys/kern/syscalls.master).
8
9use strict;
10
11if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
12 print STDERR "GOARCH or GOOS not defined in environment\n";
13 exit 1;
14}
15
16my $command = "mksysnum_openbsd.pl " . join(' ', @ARGV);
17
18print <<EOF;
19// $command
20// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
21
22// +build $ENV{'GOARCH'},$ENV{'GOOS'}
23
24package unix
25
26const (
27EOF
28
29while(<>){
30 if(/^([0-9]+)\s+STD\s+(NOLOCK\s+)?({ \S+\s+\*?(\w+).*)$/){
31 my $num = $1;
32 my $proto = $3;
33 my $name = $4;
34 $name =~ y/a-z/A-Z/;
35
36 # There are multiple entries for enosys and nosys, so comment them out.
37 if($name =~ /^SYS_E?NOSYS$/){
38 $name = "// $name";
39 }
40 if($name eq 'SYS_SYS_EXIT'){
41 $name = 'SYS_EXIT';
42 }
43
44 print " $name = $num; // $proto\n";
45 }
46}
47
48print <<EOF;
49)
50EOF
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/race.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/race.go
deleted file mode 100644
index 3c7627e..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/race.go
+++ /dev/null
@@ -1,30 +0,0 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin,race linux,race freebsd,race
6
7package unix
8
9import (
10 "runtime"
11 "unsafe"
12)
13
14const raceenabled = true
15
16func raceAcquire(addr unsafe.Pointer) {
17 runtime.RaceAcquire(addr)
18}
19
20func raceReleaseMerge(addr unsafe.Pointer) {
21 runtime.RaceReleaseMerge(addr)
22}
23
24func raceReadRange(addr unsafe.Pointer, len int) {
25 runtime.RaceReadRange(addr, len)
26}
27
28func raceWriteRange(addr unsafe.Pointer, len int) {
29 runtime.RaceWriteRange(addr, len)
30}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/race0.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/race0.go
deleted file mode 100644
index f8678e0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/race0.go
+++ /dev/null
@@ -1,25 +0,0 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly
6
7package unix
8
9import (
10 "unsafe"
11)
12
13const raceenabled = false
14
15func raceAcquire(addr unsafe.Pointer) {
16}
17
18func raceReleaseMerge(addr unsafe.Pointer) {
19}
20
21func raceReadRange(addr unsafe.Pointer, len int) {
22}
23
24func raceWriteRange(addr unsafe.Pointer, len int) {
25}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/sockcmsg_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/sockcmsg_linux.go
deleted file mode 100644
index d9ff473..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/sockcmsg_linux.go
+++ /dev/null
@@ -1,36 +0,0 @@
1// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Socket control messages
6
7package unix
8
9import "unsafe"
10
11// UnixCredentials encodes credentials into a socket control message
12// for sending to another process. This can be used for
13// authentication.
14func UnixCredentials(ucred *Ucred) []byte {
15 b := make([]byte, CmsgSpace(SizeofUcred))
16 h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
17 h.Level = SOL_SOCKET
18 h.Type = SCM_CREDENTIALS
19 h.SetLen(CmsgLen(SizeofUcred))
20 *((*Ucred)(cmsgData(h))) = *ucred
21 return b
22}
23
24// ParseUnixCredentials decodes a socket control message that contains
25// credentials in a Ucred structure. To receive such a message, the
26// SO_PASSCRED option must be enabled on the socket.
27func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error) {
28 if m.Header.Level != SOL_SOCKET {
29 return nil, EINVAL
30 }
31 if m.Header.Type != SCM_CREDENTIALS {
32 return nil, EINVAL
33 }
34 ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0]))
35 return &ucred, nil
36}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/sockcmsg_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/sockcmsg_unix.go
deleted file mode 100644
index 70af5a7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/sockcmsg_unix.go
+++ /dev/null
@@ -1,103 +0,0 @@
1// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris
6
7// Socket control messages
8
9package unix
10
11import "unsafe"
12
13// Round the length of a raw sockaddr up to align it properly.
14func cmsgAlignOf(salen int) int {
15 salign := sizeofPtr
16 // NOTE: It seems like 64-bit Darwin and DragonFly BSD kernels
17 // still require 32-bit aligned access to network subsystem.
18 if darwin64Bit || dragonfly64Bit {
19 salign = 4
20 }
21 return (salen + salign - 1) & ^(salign - 1)
22}
23
24// CmsgLen returns the value to store in the Len field of the Cmsghdr
25// structure, taking into account any necessary alignment.
26func CmsgLen(datalen int) int {
27 return cmsgAlignOf(SizeofCmsghdr) + datalen
28}
29
30// CmsgSpace returns the number of bytes an ancillary element with
31// payload of the passed data length occupies.
32func CmsgSpace(datalen int) int {
33 return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen)
34}
35
36func cmsgData(h *Cmsghdr) unsafe.Pointer {
37 return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr)))
38}
39
40// SocketControlMessage represents a socket control message.
41type SocketControlMessage struct {
42 Header Cmsghdr
43 Data []byte
44}
45
46// ParseSocketControlMessage parses b as an array of socket control
47// messages.
48func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error) {
49 var msgs []SocketControlMessage
50 i := 0
51 for i+CmsgLen(0) <= len(b) {
52 h, dbuf, err := socketControlMessageHeaderAndData(b[i:])
53 if err != nil {
54 return nil, err
55 }
56 m := SocketControlMessage{Header: *h, Data: dbuf}
57 msgs = append(msgs, m)
58 i += cmsgAlignOf(int(h.Len))
59 }
60 return msgs, nil
61}
62
63func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) {
64 h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
65 if h.Len < SizeofCmsghdr || int(h.Len) > len(b) {
66 return nil, nil, EINVAL
67 }
68 return h, b[cmsgAlignOf(SizeofCmsghdr):h.Len], nil
69}
70
71// UnixRights encodes a set of open file descriptors into a socket
72// control message for sending to another process.
73func UnixRights(fds ...int) []byte {
74 datalen := len(fds) * 4
75 b := make([]byte, CmsgSpace(datalen))
76 h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
77 h.Level = SOL_SOCKET
78 h.Type = SCM_RIGHTS
79 h.SetLen(CmsgLen(datalen))
80 data := cmsgData(h)
81 for _, fd := range fds {
82 *(*int32)(data) = int32(fd)
83 data = unsafe.Pointer(uintptr(data) + 4)
84 }
85 return b
86}
87
88// ParseUnixRights decodes a socket control message that contains an
89// integer array of open file descriptors from another process.
90func ParseUnixRights(m *SocketControlMessage) ([]int, error) {
91 if m.Header.Level != SOL_SOCKET {
92 return nil, EINVAL
93 }
94 if m.Header.Type != SCM_RIGHTS {
95 return nil, EINVAL
96 }
97 fds := make([]int, len(m.Data)>>2)
98 for i, j := 0, 0; i < len(m.Data); i += 4 {
99 fds[j] = int(*(*int32)(unsafe.Pointer(&m.Data[i])))
100 j++
101 }
102 return fds, nil
103}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/str.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/str.go
deleted file mode 100644
index 35ed664..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/str.go
+++ /dev/null
@@ -1,26 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris
6
7package unix
8
9func itoa(val int) string { // do it here rather than with fmt to avoid dependency
10 if val < 0 {
11 return "-" + uitoa(uint(-val))
12 }
13 return uitoa(uint(val))
14}
15
16func uitoa(val uint) string {
17 var buf [32]byte // big enough for int64
18 i := len(buf) - 1
19 for val >= 10 {
20 buf[i] = byte(val%10 + '0')
21 i--
22 val /= 10
23 }
24 buf[i] = byte(val + '0')
25 return string(buf[i:])
26}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall.go
deleted file mode 100644
index 012f2d6..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall.go
+++ /dev/null
@@ -1,74 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris
6
7// Package unix contains an interface to the low-level operating system
8// primitives. OS details vary depending on the underlying system, and
9// by default, godoc will display OS-specific documentation for the current
10// system. If you want godoc to display OS documentation for another
11// system, set $GOOS and $GOARCH to the desired system. For example, if
12// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS
13// to freebsd and $GOARCH to arm.
14// The primary use of this package is inside other packages that provide a more
15// portable interface to the system, such as "os", "time" and "net". Use
16// those packages rather than this one if you can.
17// For details of the functions and data types in this package consult
18// the manuals for the appropriate operating system.
19// These calls return err == nil to indicate success; otherwise
20// err represents an operating system error describing the failure and
21// holds a value of type syscall.Errno.
22package unix // import "github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix"
23
24import "unsafe"
25
26// ByteSliceFromString returns a NUL-terminated slice of bytes
27// containing the text of s. If s contains a NUL byte at any
28// location, it returns (nil, EINVAL).
29func ByteSliceFromString(s string) ([]byte, error) {
30 for i := 0; i < len(s); i++ {
31 if s[i] == 0 {
32 return nil, EINVAL
33 }
34 }
35 a := make([]byte, len(s)+1)
36 copy(a, s)
37 return a, nil
38}
39
40// BytePtrFromString returns a pointer to a NUL-terminated array of
41// bytes containing the text of s. If s contains a NUL byte at any
42// location, it returns (nil, EINVAL).
43func BytePtrFromString(s string) (*byte, error) {
44 a, err := ByteSliceFromString(s)
45 if err != nil {
46 return nil, err
47 }
48 return &a[0], nil
49}
50
51// Single-word zero for use when we need a valid pointer to 0 bytes.
52// See mkunix.pl.
53var _zero uintptr
54
55func (ts *Timespec) Unix() (sec int64, nsec int64) {
56 return int64(ts.Sec), int64(ts.Nsec)
57}
58
59func (tv *Timeval) Unix() (sec int64, nsec int64) {
60 return int64(tv.Sec), int64(tv.Usec) * 1000
61}
62
63func (ts *Timespec) Nano() int64 {
64 return int64(ts.Sec)*1e9 + int64(ts.Nsec)
65}
66
67func (tv *Timeval) Nano() int64 {
68 return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000
69}
70
71// use is a no-op, but the compiler cannot see that it is.
72// Calling use(p) ensures that p is kept live until that point.
73//go:noescape
74func use(p unsafe.Pointer)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_bsd.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_bsd.go
deleted file mode 100644
index e967176..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_bsd.go
+++ /dev/null
@@ -1,628 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin dragonfly freebsd netbsd openbsd
6
7// BSD system call wrappers shared by *BSD based systems
8// including OS X (Darwin) and FreeBSD. Like the other
9// syscall_*.go files it is compiled as Go code but also
10// used as input to mksyscall which parses the //sys
11// lines and generates system call stubs.
12
13package unix
14
15import (
16 "runtime"
17 "syscall"
18 "unsafe"
19)
20
21/*
22 * Wrapped
23 */
24
25//sysnb getgroups(ngid int, gid *_Gid_t) (n int, err error)
26//sysnb setgroups(ngid int, gid *_Gid_t) (err error)
27
28func Getgroups() (gids []int, err error) {
29 n, err := getgroups(0, nil)
30 if err != nil {
31 return nil, err
32 }
33 if n == 0 {
34 return nil, nil
35 }
36
37 // Sanity check group count. Max is 16 on BSD.
38 if n < 0 || n > 1000 {
39 return nil, EINVAL
40 }
41
42 a := make([]_Gid_t, n)
43 n, err = getgroups(n, &a[0])
44 if err != nil {
45 return nil, err
46 }
47 gids = make([]int, n)
48 for i, v := range a[0:n] {
49 gids[i] = int(v)
50 }
51 return
52}
53
54func Setgroups(gids []int) (err error) {
55 if len(gids) == 0 {
56 return setgroups(0, nil)
57 }
58
59 a := make([]_Gid_t, len(gids))
60 for i, v := range gids {
61 a[i] = _Gid_t(v)
62 }
63 return setgroups(len(a), &a[0])
64}
65
66func ReadDirent(fd int, buf []byte) (n int, err error) {
67 // Final argument is (basep *uintptr) and the syscall doesn't take nil.
68 // 64 bits should be enough. (32 bits isn't even on 386). Since the
69 // actual system call is getdirentries64, 64 is a good guess.
70 // TODO(rsc): Can we use a single global basep for all calls?
71 var base = (*uintptr)(unsafe.Pointer(new(uint64)))
72 return Getdirentries(fd, buf, base)
73}
74
75// Wait status is 7 bits at bottom, either 0 (exited),
76// 0x7F (stopped), or a signal number that caused an exit.
77// The 0x80 bit is whether there was a core dump.
78// An extra number (exit code, signal causing a stop)
79// is in the high bits.
80
81type WaitStatus uint32
82
83const (
84 mask = 0x7F
85 core = 0x80
86 shift = 8
87
88 exited = 0
89 stopped = 0x7F
90)
91
92func (w WaitStatus) Exited() bool { return w&mask == exited }
93
94func (w WaitStatus) ExitStatus() int {
95 if w&mask != exited {
96 return -1
97 }
98 return int(w >> shift)
99}
100
101func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 }
102
103func (w WaitStatus) Signal() syscall.Signal {
104 sig := syscall.Signal(w & mask)
105 if sig == stopped || sig == 0 {
106 return -1
107 }
108 return sig
109}
110
111func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 }
112
113func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP }
114
115func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP }
116
117func (w WaitStatus) StopSignal() syscall.Signal {
118 if !w.Stopped() {
119 return -1
120 }
121 return syscall.Signal(w>>shift) & 0xFF
122}
123
124func (w WaitStatus) TrapCause() int { return -1 }
125
126//sys wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error)
127
128func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
129 var status _C_int
130 wpid, err = wait4(pid, &status, options, rusage)
131 if wstatus != nil {
132 *wstatus = WaitStatus(status)
133 }
134 return
135}
136
137//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
138//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
139//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
140//sysnb socket(domain int, typ int, proto int) (fd int, err error)
141//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
142//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
143//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
144//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
145//sys Shutdown(s int, how int) (err error)
146
147func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
148 if sa.Port < 0 || sa.Port > 0xFFFF {
149 return nil, 0, EINVAL
150 }
151 sa.raw.Len = SizeofSockaddrInet4
152 sa.raw.Family = AF_INET
153 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
154 p[0] = byte(sa.Port >> 8)
155 p[1] = byte(sa.Port)
156 for i := 0; i < len(sa.Addr); i++ {
157 sa.raw.Addr[i] = sa.Addr[i]
158 }
159 return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil
160}
161
162func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) {
163 if sa.Port < 0 || sa.Port > 0xFFFF {
164 return nil, 0, EINVAL
165 }
166 sa.raw.Len = SizeofSockaddrInet6
167 sa.raw.Family = AF_INET6
168 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
169 p[0] = byte(sa.Port >> 8)
170 p[1] = byte(sa.Port)
171 sa.raw.Scope_id = sa.ZoneId
172 for i := 0; i < len(sa.Addr); i++ {
173 sa.raw.Addr[i] = sa.Addr[i]
174 }
175 return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil
176}
177
178func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) {
179 name := sa.Name
180 n := len(name)
181 if n >= len(sa.raw.Path) || n == 0 {
182 return nil, 0, EINVAL
183 }
184 sa.raw.Len = byte(3 + n) // 2 for Family, Len; 1 for NUL
185 sa.raw.Family = AF_UNIX
186 for i := 0; i < n; i++ {
187 sa.raw.Path[i] = int8(name[i])
188 }
189 return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil
190}
191
192func (sa *SockaddrDatalink) sockaddr() (unsafe.Pointer, _Socklen, error) {
193 if sa.Index == 0 {
194 return nil, 0, EINVAL
195 }
196 sa.raw.Len = sa.Len
197 sa.raw.Family = AF_LINK
198 sa.raw.Index = sa.Index
199 sa.raw.Type = sa.Type
200 sa.raw.Nlen = sa.Nlen
201 sa.raw.Alen = sa.Alen
202 sa.raw.Slen = sa.Slen
203 for i := 0; i < len(sa.raw.Data); i++ {
204 sa.raw.Data[i] = sa.Data[i]
205 }
206 return unsafe.Pointer(&sa.raw), SizeofSockaddrDatalink, nil
207}
208
209func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
210 switch rsa.Addr.Family {
211 case AF_LINK:
212 pp := (*RawSockaddrDatalink)(unsafe.Pointer(rsa))
213 sa := new(SockaddrDatalink)
214 sa.Len = pp.Len
215 sa.Family = pp.Family
216 sa.Index = pp.Index
217 sa.Type = pp.Type
218 sa.Nlen = pp.Nlen
219 sa.Alen = pp.Alen
220 sa.Slen = pp.Slen
221 for i := 0; i < len(sa.Data); i++ {
222 sa.Data[i] = pp.Data[i]
223 }
224 return sa, nil
225
226 case AF_UNIX:
227 pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
228 if pp.Len < 2 || pp.Len > SizeofSockaddrUnix {
229 return nil, EINVAL
230 }
231 sa := new(SockaddrUnix)
232
233 // Some BSDs include the trailing NUL in the length, whereas
234 // others do not. Work around this by subtracting the leading
235 // family and len. The path is then scanned to see if a NUL
236 // terminator still exists within the length.
237 n := int(pp.Len) - 2 // subtract leading Family, Len
238 for i := 0; i < n; i++ {
239 if pp.Path[i] == 0 {
240 // found early NUL; assume Len included the NUL
241 // or was overestimating.
242 n = i
243 break
244 }
245 }
246 bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
247 sa.Name = string(bytes)
248 return sa, nil
249
250 case AF_INET:
251 pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
252 sa := new(SockaddrInet4)
253 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
254 sa.Port = int(p[0])<<8 + int(p[1])
255 for i := 0; i < len(sa.Addr); i++ {
256 sa.Addr[i] = pp.Addr[i]
257 }
258 return sa, nil
259
260 case AF_INET6:
261 pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
262 sa := new(SockaddrInet6)
263 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
264 sa.Port = int(p[0])<<8 + int(p[1])
265 sa.ZoneId = pp.Scope_id
266 for i := 0; i < len(sa.Addr); i++ {
267 sa.Addr[i] = pp.Addr[i]
268 }
269 return sa, nil
270 }
271 return nil, EAFNOSUPPORT
272}
273
274func Accept(fd int) (nfd int, sa Sockaddr, err error) {
275 var rsa RawSockaddrAny
276 var len _Socklen = SizeofSockaddrAny
277 nfd, err = accept(fd, &rsa, &len)
278 if err != nil {
279 return
280 }
281 if runtime.GOOS == "darwin" && len == 0 {
282 // Accepted socket has no address.
283 // This is likely due to a bug in xnu kernels,
284 // where instead of ECONNABORTED error socket
285 // is accepted, but has no address.
286 Close(nfd)
287 return 0, nil, ECONNABORTED
288 }
289 sa, err = anyToSockaddr(&rsa)
290 if err != nil {
291 Close(nfd)
292 nfd = 0
293 }
294 return
295}
296
297func Getsockname(fd int) (sa Sockaddr, err error) {
298 var rsa RawSockaddrAny
299 var len _Socklen = SizeofSockaddrAny
300 if err = getsockname(fd, &rsa, &len); err != nil {
301 return
302 }
303 // TODO(jsing): DragonFly has a "bug" (see issue 3349), which should be
304 // reported upstream.
305 if runtime.GOOS == "dragonfly" && rsa.Addr.Family == AF_UNSPEC && rsa.Addr.Len == 0 {
306 rsa.Addr.Family = AF_UNIX
307 rsa.Addr.Len = SizeofSockaddrUnix
308 }
309 return anyToSockaddr(&rsa)
310}
311
312//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
313
314func GetsockoptByte(fd, level, opt int) (value byte, err error) {
315 var n byte
316 vallen := _Socklen(1)
317 err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
318 return n, err
319}
320
321func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
322 vallen := _Socklen(4)
323 err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
324 return value, err
325}
326
327func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
328 var value IPMreq
329 vallen := _Socklen(SizeofIPMreq)
330 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
331 return &value, err
332}
333
334func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
335 var value IPv6Mreq
336 vallen := _Socklen(SizeofIPv6Mreq)
337 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
338 return &value, err
339}
340
341func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
342 var value IPv6MTUInfo
343 vallen := _Socklen(SizeofIPv6MTUInfo)
344 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
345 return &value, err
346}
347
348func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
349 var value ICMPv6Filter
350 vallen := _Socklen(SizeofICMPv6Filter)
351 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
352 return &value, err
353}
354
355//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
356//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
357//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
358
359func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
360 var msg Msghdr
361 var rsa RawSockaddrAny
362 msg.Name = (*byte)(unsafe.Pointer(&rsa))
363 msg.Namelen = uint32(SizeofSockaddrAny)
364 var iov Iovec
365 if len(p) > 0 {
366 iov.Base = (*byte)(unsafe.Pointer(&p[0]))
367 iov.SetLen(len(p))
368 }
369 var dummy byte
370 if len(oob) > 0 {
371 // receive at least one normal byte
372 if len(p) == 0 {
373 iov.Base = &dummy
374 iov.SetLen(1)
375 }
376 msg.Control = (*byte)(unsafe.Pointer(&oob[0]))
377 msg.SetControllen(len(oob))
378 }
379 msg.Iov = &iov
380 msg.Iovlen = 1
381 if n, err = recvmsg(fd, &msg, flags); err != nil {
382 return
383 }
384 oobn = int(msg.Controllen)
385 recvflags = int(msg.Flags)
386 // source address is only specified if the socket is unconnected
387 if rsa.Addr.Family != AF_UNSPEC {
388 from, err = anyToSockaddr(&rsa)
389 }
390 return
391}
392
393//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
394
395func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
396 _, err = SendmsgN(fd, p, oob, to, flags)
397 return
398}
399
400func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
401 var ptr unsafe.Pointer
402 var salen _Socklen
403 if to != nil {
404 ptr, salen, err = to.sockaddr()
405 if err != nil {
406 return 0, err
407 }
408 }
409 var msg Msghdr
410 msg.Name = (*byte)(unsafe.Pointer(ptr))
411 msg.Namelen = uint32(salen)
412 var iov Iovec
413 if len(p) > 0 {
414 iov.Base = (*byte)(unsafe.Pointer(&p[0]))
415 iov.SetLen(len(p))
416 }
417 var dummy byte
418 if len(oob) > 0 {
419 // send at least one normal byte
420 if len(p) == 0 {
421 iov.Base = &dummy
422 iov.SetLen(1)
423 }
424 msg.Control = (*byte)(unsafe.Pointer(&oob[0]))
425 msg.SetControllen(len(oob))
426 }
427 msg.Iov = &iov
428 msg.Iovlen = 1
429 if n, err = sendmsg(fd, &msg, flags); err != nil {
430 return 0, err
431 }
432 if len(oob) > 0 && len(p) == 0 {
433 n = 0
434 }
435 return n, nil
436}
437
438//sys kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error)
439
440func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err error) {
441 var change, event unsafe.Pointer
442 if len(changes) > 0 {
443 change = unsafe.Pointer(&changes[0])
444 }
445 if len(events) > 0 {
446 event = unsafe.Pointer(&events[0])
447 }
448 return kevent(kq, change, len(changes), event, len(events), timeout)
449}
450
451//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
452
453// sysctlmib translates name to mib number and appends any additional args.
454func sysctlmib(name string, args ...int) ([]_C_int, error) {
455 // Translate name to mib number.
456 mib, err := nametomib(name)
457 if err != nil {
458 return nil, err
459 }
460
461 for _, a := range args {
462 mib = append(mib, _C_int(a))
463 }
464
465 return mib, nil
466}
467
468func Sysctl(name string) (string, error) {
469 return SysctlArgs(name)
470}
471
472func SysctlArgs(name string, args ...int) (string, error) {
473 mib, err := sysctlmib(name, args...)
474 if err != nil {
475 return "", err
476 }
477
478 // Find size.
479 n := uintptr(0)
480 if err := sysctl(mib, nil, &n, nil, 0); err != nil {
481 return "", err
482 }
483 if n == 0 {
484 return "", nil
485 }
486
487 // Read into buffer of that size.
488 buf := make([]byte, n)
489 if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil {
490 return "", err
491 }
492
493 // Throw away terminating NUL.
494 if n > 0 && buf[n-1] == '\x00' {
495 n--
496 }
497 return string(buf[0:n]), nil
498}
499
500func SysctlUint32(name string) (uint32, error) {
501 return SysctlUint32Args(name)
502}
503
504func SysctlUint32Args(name string, args ...int) (uint32, error) {
505 mib, err := sysctlmib(name, args...)
506 if err != nil {
507 return 0, err
508 }
509
510 n := uintptr(4)
511 buf := make([]byte, 4)
512 if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil {
513 return 0, err
514 }
515 if n != 4 {
516 return 0, EIO
517 }
518 return *(*uint32)(unsafe.Pointer(&buf[0])), nil
519}
520
521func SysctlUint64(name string, args ...int) (uint64, error) {
522 mib, err := sysctlmib(name, args...)
523 if err != nil {
524 return 0, err
525 }
526
527 n := uintptr(8)
528 buf := make([]byte, 8)
529 if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil {
530 return 0, err
531 }
532 if n != 8 {
533 return 0, EIO
534 }
535 return *(*uint64)(unsafe.Pointer(&buf[0])), nil
536}
537
538func SysctlRaw(name string, args ...int) ([]byte, error) {
539 mib, err := sysctlmib(name, args...)
540 if err != nil {
541 return nil, err
542 }
543
544 // Find size.
545 n := uintptr(0)
546 if err := sysctl(mib, nil, &n, nil, 0); err != nil {
547 return nil, err
548 }
549 if n == 0 {
550 return nil, nil
551 }
552
553 // Read into buffer of that size.
554 buf := make([]byte, n)
555 if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil {
556 return nil, err
557 }
558
559 // The actual call may return less than the original reported required
560 // size so ensure we deal with that.
561 return buf[:n], nil
562}
563
564//sys utimes(path string, timeval *[2]Timeval) (err error)
565
566func Utimes(path string, tv []Timeval) error {
567 if tv == nil {
568 return utimes(path, nil)
569 }
570 if len(tv) != 2 {
571 return EINVAL
572 }
573 return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
574}
575
576func UtimesNano(path string, ts []Timespec) error {
577 if ts == nil {
578 return utimes(path, nil)
579 }
580 // TODO: The BSDs can do utimensat with SYS_UTIMENSAT but it
581 // isn't supported by darwin so this uses utimes instead
582 if len(ts) != 2 {
583 return EINVAL
584 }
585 // Not as efficient as it could be because Timespec and
586 // Timeval have different types in the different OSes
587 tv := [2]Timeval{
588 NsecToTimeval(TimespecToNsec(ts[0])),
589 NsecToTimeval(TimespecToNsec(ts[1])),
590 }
591 return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
592}
593
594//sys futimes(fd int, timeval *[2]Timeval) (err error)
595
596func Futimes(fd int, tv []Timeval) error {
597 if tv == nil {
598 return futimes(fd, nil)
599 }
600 if len(tv) != 2 {
601 return EINVAL
602 }
603 return futimes(fd, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
604}
605
606//sys fcntl(fd int, cmd int, arg int) (val int, err error)
607
608// TODO: wrap
609// Acct(name nil-string) (err error)
610// Gethostuuid(uuid *byte, timeout *Timespec) (err error)
611// Madvise(addr *byte, len int, behav int) (err error)
612// Mprotect(addr *byte, len int, prot int) (err error)
613// Msync(addr *byte, len int, flags int) (err error)
614// Ptrace(req int, pid int, addr uintptr, data int) (ret uintptr, err error)
615
616var mapper = &mmapper{
617 active: make(map[*byte][]byte),
618 mmap: mmap,
619 munmap: munmap,
620}
621
622func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
623 return mapper.Mmap(fd, offset, length, prot, flags)
624}
625
626func Munmap(b []byte) (err error) {
627 return mapper.Munmap(b)
628}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin.go
deleted file mode 100644
index 0d1771c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin.go
+++ /dev/null
@@ -1,509 +0,0 @@
1// Copyright 2009,2010 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Darwin system calls.
6// This file is compiled as ordinary Go code,
7// but it is also input to mksyscall,
8// which parses the //sys lines and generates system call stubs.
9// Note that sometimes we use a lowercase //sys name and wrap
10// it in our own nicer implementation, either here or in
11// syscall_bsd.go or syscall_unix.go.
12
13package unix
14
15import (
16 errorspkg "errors"
17 "syscall"
18 "unsafe"
19)
20
21const ImplementsGetwd = true
22
23func Getwd() (string, error) {
24 buf := make([]byte, 2048)
25 attrs, err := getAttrList(".", attrList{CommonAttr: attrCmnFullpath}, buf, 0)
26 if err == nil && len(attrs) == 1 && len(attrs[0]) >= 2 {
27 wd := string(attrs[0])
28 // Sanity check that it's an absolute path and ends
29 // in a null byte, which we then strip.
30 if wd[0] == '/' && wd[len(wd)-1] == 0 {
31 return wd[:len(wd)-1], nil
32 }
33 }
34 // If pkg/os/getwd.go gets ENOTSUP, it will fall back to the
35 // slow algorithm.
36 return "", ENOTSUP
37}
38
39type SockaddrDatalink struct {
40 Len uint8
41 Family uint8
42 Index uint16
43 Type uint8
44 Nlen uint8
45 Alen uint8
46 Slen uint8
47 Data [12]int8
48 raw RawSockaddrDatalink
49}
50
51// Translate "kern.hostname" to []_C_int{0,1,2,3}.
52func nametomib(name string) (mib []_C_int, err error) {
53 const siz = unsafe.Sizeof(mib[0])
54
55 // NOTE(rsc): It seems strange to set the buffer to have
56 // size CTL_MAXNAME+2 but use only CTL_MAXNAME
57 // as the size. I don't know why the +2 is here, but the
58 // kernel uses +2 for its own implementation of this function.
59 // I am scared that if we don't include the +2 here, the kernel
60 // will silently write 2 words farther than we specify
61 // and we'll get memory corruption.
62 var buf [CTL_MAXNAME + 2]_C_int
63 n := uintptr(CTL_MAXNAME) * siz
64
65 p := (*byte)(unsafe.Pointer(&buf[0]))
66 bytes, err := ByteSliceFromString(name)
67 if err != nil {
68 return nil, err
69 }
70
71 // Magic sysctl: "setting" 0.3 to a string name
72 // lets you read back the array of integers form.
73 if err = sysctl([]_C_int{0, 3}, p, &n, &bytes[0], uintptr(len(name))); err != nil {
74 return nil, err
75 }
76 return buf[0 : n/siz], nil
77}
78
79// ParseDirent parses up to max directory entries in buf,
80// appending the names to names. It returns the number
81// bytes consumed from buf, the number of entries added
82// to names, and the new names slice.
83func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
84 origlen := len(buf)
85 for max != 0 && len(buf) > 0 {
86 dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
87 if dirent.Reclen == 0 {
88 buf = nil
89 break
90 }
91 buf = buf[dirent.Reclen:]
92 if dirent.Ino == 0 { // File absent in directory.
93 continue
94 }
95 bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
96 var name = string(bytes[0:dirent.Namlen])
97 if name == "." || name == ".." { // Useless names
98 continue
99 }
100 max--
101 count++
102 names = append(names, name)
103 }
104 return origlen - len(buf), count, names
105}
106
107//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
108func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
109func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
110
111const (
112 attrBitMapCount = 5
113 attrCmnFullpath = 0x08000000
114)
115
116type attrList struct {
117 bitmapCount uint16
118 _ uint16
119 CommonAttr uint32
120 VolAttr uint32
121 DirAttr uint32
122 FileAttr uint32
123 Forkattr uint32
124}
125
126func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (attrs [][]byte, err error) {
127 if len(attrBuf) < 4 {
128 return nil, errorspkg.New("attrBuf too small")
129 }
130 attrList.bitmapCount = attrBitMapCount
131
132 var _p0 *byte
133 _p0, err = BytePtrFromString(path)
134 if err != nil {
135 return nil, err
136 }
137
138 _, _, e1 := Syscall6(
139 SYS_GETATTRLIST,
140 uintptr(unsafe.Pointer(_p0)),
141 uintptr(unsafe.Pointer(&attrList)),
142 uintptr(unsafe.Pointer(&attrBuf[0])),
143 uintptr(len(attrBuf)),
144 uintptr(options),
145 0,
146 )
147 if e1 != 0 {
148 return nil, e1
149 }
150 size := *(*uint32)(unsafe.Pointer(&attrBuf[0]))
151
152 // dat is the section of attrBuf that contains valid data,
153 // without the 4 byte length header. All attribute offsets
154 // are relative to dat.
155 dat := attrBuf
156 if int(size) < len(attrBuf) {
157 dat = dat[:size]
158 }
159 dat = dat[4:] // remove length prefix
160
161 for i := uint32(0); int(i) < len(dat); {
162 header := dat[i:]
163 if len(header) < 8 {
164 return attrs, errorspkg.New("truncated attribute header")
165 }
166 datOff := *(*int32)(unsafe.Pointer(&header[0]))
167 attrLen := *(*uint32)(unsafe.Pointer(&header[4]))
168 if datOff < 0 || uint32(datOff)+attrLen > uint32(len(dat)) {
169 return attrs, errorspkg.New("truncated results; attrBuf too small")
170 }
171 end := uint32(datOff) + attrLen
172 attrs = append(attrs, dat[datOff:end])
173 i = end
174 if r := i % 4; r != 0 {
175 i += (4 - r)
176 }
177 }
178 return
179}
180
181//sysnb pipe() (r int, w int, err error)
182
183func Pipe(p []int) (err error) {
184 if len(p) != 2 {
185 return EINVAL
186 }
187 p[0], p[1], err = pipe()
188 return
189}
190
191func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
192 var _p0 unsafe.Pointer
193 var bufsize uintptr
194 if len(buf) > 0 {
195 _p0 = unsafe.Pointer(&buf[0])
196 bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
197 }
198 r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(_p0), bufsize, uintptr(flags))
199 n = int(r0)
200 if e1 != 0 {
201 err = e1
202 }
203 return
204}
205
206/*
207 * Wrapped
208 */
209
210//sys kill(pid int, signum int, posix int) (err error)
211
212func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
213
214/*
215 * Exposed directly
216 */
217//sys Access(path string, mode uint32) (err error)
218//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
219//sys Chdir(path string) (err error)
220//sys Chflags(path string, flags int) (err error)
221//sys Chmod(path string, mode uint32) (err error)
222//sys Chown(path string, uid int, gid int) (err error)
223//sys Chroot(path string) (err error)
224//sys Close(fd int) (err error)
225//sys Dup(fd int) (nfd int, err error)
226//sys Dup2(from int, to int) (err error)
227//sys Exchangedata(path1 string, path2 string, options int) (err error)
228//sys Exit(code int)
229//sys Fchdir(fd int) (err error)
230//sys Fchflags(fd int, flags int) (err error)
231//sys Fchmod(fd int, mode uint32) (err error)
232//sys Fchown(fd int, uid int, gid int) (err error)
233//sys Flock(fd int, how int) (err error)
234//sys Fpathconf(fd int, name int) (val int, err error)
235//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
236//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
237//sys Fsync(fd int) (err error)
238//sys Ftruncate(fd int, length int64) (err error)
239//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
240//sys Getdtablesize() (size int)
241//sysnb Getegid() (egid int)
242//sysnb Geteuid() (uid int)
243//sysnb Getgid() (gid int)
244//sysnb Getpgid(pid int) (pgid int, err error)
245//sysnb Getpgrp() (pgrp int)
246//sysnb Getpid() (pid int)
247//sysnb Getppid() (ppid int)
248//sys Getpriority(which int, who int) (prio int, err error)
249//sysnb Getrlimit(which int, lim *Rlimit) (err error)
250//sysnb Getrusage(who int, rusage *Rusage) (err error)
251//sysnb Getsid(pid int) (sid int, err error)
252//sysnb Getuid() (uid int)
253//sysnb Issetugid() (tainted bool)
254//sys Kqueue() (fd int, err error)
255//sys Lchown(path string, uid int, gid int) (err error)
256//sys Link(path string, link string) (err error)
257//sys Listen(s int, backlog int) (err error)
258//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
259//sys Mkdir(path string, mode uint32) (err error)
260//sys Mkfifo(path string, mode uint32) (err error)
261//sys Mknod(path string, mode uint32, dev int) (err error)
262//sys Mlock(b []byte) (err error)
263//sys Mlockall(flags int) (err error)
264//sys Mprotect(b []byte, prot int) (err error)
265//sys Munlock(b []byte) (err error)
266//sys Munlockall() (err error)
267//sys Open(path string, mode int, perm uint32) (fd int, err error)
268//sys Pathconf(path string, name int) (val int, err error)
269//sys Pread(fd int, p []byte, offset int64) (n int, err error)
270//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
271//sys read(fd int, p []byte) (n int, err error)
272//sys Readlink(path string, buf []byte) (n int, err error)
273//sys Rename(from string, to string) (err error)
274//sys Revoke(path string) (err error)
275//sys Rmdir(path string) (err error)
276//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
277//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
278//sys Setegid(egid int) (err error)
279//sysnb Seteuid(euid int) (err error)
280//sysnb Setgid(gid int) (err error)
281//sys Setlogin(name string) (err error)
282//sysnb Setpgid(pid int, pgid int) (err error)
283//sys Setpriority(which int, who int, prio int) (err error)
284//sys Setprivexec(flag int) (err error)
285//sysnb Setregid(rgid int, egid int) (err error)
286//sysnb Setreuid(ruid int, euid int) (err error)
287//sysnb Setrlimit(which int, lim *Rlimit) (err error)
288//sysnb Setsid() (pid int, err error)
289//sysnb Settimeofday(tp *Timeval) (err error)
290//sysnb Setuid(uid int) (err error)
291//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
292//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
293//sys Symlink(path string, link string) (err error)
294//sys Sync() (err error)
295//sys Truncate(path string, length int64) (err error)
296//sys Umask(newmask int) (oldmask int)
297//sys Undelete(path string) (err error)
298//sys Unlink(path string) (err error)
299//sys Unmount(path string, flags int) (err error)
300//sys write(fd int, p []byte) (n int, err error)
301//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
302//sys munmap(addr uintptr, length uintptr) (err error)
303//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
304//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
305
306/*
307 * Unimplemented
308 */
309// Profil
310// Sigaction
311// Sigprocmask
312// Getlogin
313// Sigpending
314// Sigaltstack
315// Ioctl
316// Reboot
317// Execve
318// Vfork
319// Sbrk
320// Sstk
321// Ovadvise
322// Mincore
323// Setitimer
324// Swapon
325// Select
326// Sigsuspend
327// Readv
328// Writev
329// Nfssvc
330// Getfh
331// Quotactl
332// Mount
333// Csops
334// Waitid
335// Add_profil
336// Kdebug_trace
337// Sigreturn
338// Mmap
339// Mlock
340// Munlock
341// Atsocket
342// Kqueue_from_portset_np
343// Kqueue_portset
344// Getattrlist
345// Setattrlist
346// Getdirentriesattr
347// Searchfs
348// Delete
349// Copyfile
350// Poll
351// Watchevent
352// Waitevent
353// Modwatch
354// Getxattr
355// Fgetxattr
356// Setxattr
357// Fsetxattr
358// Removexattr
359// Fremovexattr
360// Listxattr
361// Flistxattr
362// Fsctl
363// Initgroups
364// Posix_spawn
365// Nfsclnt
366// Fhopen
367// Minherit
368// Semsys
369// Msgsys
370// Shmsys
371// Semctl
372// Semget
373// Semop
374// Msgctl
375// Msgget
376// Msgsnd
377// Msgrcv
378// Shmat
379// Shmctl
380// Shmdt
381// Shmget
382// Shm_open
383// Shm_unlink
384// Sem_open
385// Sem_close
386// Sem_unlink
387// Sem_wait
388// Sem_trywait
389// Sem_post
390// Sem_getvalue
391// Sem_init
392// Sem_destroy
393// Open_extended
394// Umask_extended
395// Stat_extended
396// Lstat_extended
397// Fstat_extended
398// Chmod_extended
399// Fchmod_extended
400// Access_extended
401// Settid
402// Gettid
403// Setsgroups
404// Getsgroups
405// Setwgroups
406// Getwgroups
407// Mkfifo_extended
408// Mkdir_extended
409// Identitysvc
410// Shared_region_check_np
411// Shared_region_map_np
412// __pthread_mutex_destroy
413// __pthread_mutex_init
414// __pthread_mutex_lock
415// __pthread_mutex_trylock
416// __pthread_mutex_unlock
417// __pthread_cond_init
418// __pthread_cond_destroy
419// __pthread_cond_broadcast
420// __pthread_cond_signal
421// Setsid_with_pid
422// __pthread_cond_timedwait
423// Aio_fsync
424// Aio_return
425// Aio_suspend
426// Aio_cancel
427// Aio_error
428// Aio_read
429// Aio_write
430// Lio_listio
431// __pthread_cond_wait
432// Iopolicysys
433// Mlockall
434// Munlockall
435// __pthread_kill
436// __pthread_sigmask
437// __sigwait
438// __disable_threadsignal
439// __pthread_markcancel
440// __pthread_canceled
441// __semwait_signal
442// Proc_info
443// sendfile
444// Stat64_extended
445// Lstat64_extended
446// Fstat64_extended
447// __pthread_chdir
448// __pthread_fchdir
449// Audit
450// Auditon
451// Getauid
452// Setauid
453// Getaudit
454// Setaudit
455// Getaudit_addr
456// Setaudit_addr
457// Auditctl
458// Bsdthread_create
459// Bsdthread_terminate
460// Stack_snapshot
461// Bsdthread_register
462// Workq_open
463// Workq_ops
464// __mac_execve
465// __mac_syscall
466// __mac_get_file
467// __mac_set_file
468// __mac_get_link
469// __mac_set_link
470// __mac_get_proc
471// __mac_set_proc
472// __mac_get_fd
473// __mac_set_fd
474// __mac_get_pid
475// __mac_get_lcid
476// __mac_get_lctx
477// __mac_set_lctx
478// Setlcid
479// Read_nocancel
480// Write_nocancel
481// Open_nocancel
482// Close_nocancel
483// Wait4_nocancel
484// Recvmsg_nocancel
485// Sendmsg_nocancel
486// Recvfrom_nocancel
487// Accept_nocancel
488// Msync_nocancel
489// Fcntl_nocancel
490// Select_nocancel
491// Fsync_nocancel
492// Connect_nocancel
493// Sigsuspend_nocancel
494// Readv_nocancel
495// Writev_nocancel
496// Sendto_nocancel
497// Pread_nocancel
498// Pwrite_nocancel
499// Waitid_nocancel
500// Poll_nocancel
501// Msgsnd_nocancel
502// Msgrcv_nocancel
503// Sem_wait_nocancel
504// Aio_suspend_nocancel
505// __sigwait_nocancel
506// __semwait_signal_nocancel
507// __mac_mount
508// __mac_get_mount
509// __mac_getfsstat
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_386.go
deleted file mode 100644
index 3195c8b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_386.go
+++ /dev/null
@@ -1,79 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build 386,darwin
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func Getpagesize() int { return 4096 }
15
16func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
17
18func NsecToTimespec(nsec int64) (ts Timespec) {
19 ts.Sec = int32(nsec / 1e9)
20 ts.Nsec = int32(nsec % 1e9)
21 return
22}
23
24func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
25
26func NsecToTimeval(nsec int64) (tv Timeval) {
27 nsec += 999 // round up to microsecond
28 tv.Usec = int32(nsec % 1e9 / 1e3)
29 tv.Sec = int32(nsec / 1e9)
30 return
31}
32
33//sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error)
34func Gettimeofday(tv *Timeval) (err error) {
35 // The tv passed to gettimeofday must be non-nil
36 // but is otherwise unused. The answers come back
37 // in the two registers.
38 sec, usec, err := gettimeofday(tv)
39 tv.Sec = int32(sec)
40 tv.Usec = int32(usec)
41 return err
42}
43
44func SetKevent(k *Kevent_t, fd, mode, flags int) {
45 k.Ident = uint32(fd)
46 k.Filter = int16(mode)
47 k.Flags = uint16(flags)
48}
49
50func (iov *Iovec) SetLen(length int) {
51 iov.Len = uint32(length)
52}
53
54func (msghdr *Msghdr) SetControllen(length int) {
55 msghdr.Controllen = uint32(length)
56}
57
58func (cmsg *Cmsghdr) SetLen(length int) {
59 cmsg.Len = uint32(length)
60}
61
62func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
63 var length = uint64(count)
64
65 _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offset>>32), uintptr(unsafe.Pointer(&length)), 0, 0, 0, 0)
66
67 written = int(length)
68
69 if e1 != 0 {
70 err = e1
71 }
72 return
73}
74
75func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
76
77// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
78// of darwin/386 the syscall is called sysctl instead of __sysctl.
79const SYS___SYSCTL = SYS_SYSCTL
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_amd64.go
deleted file mode 100644
index 7adb98d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_amd64.go
+++ /dev/null
@@ -1,81 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build amd64,darwin
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
15
16func Getpagesize() int { return 4096 }
17
18func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
19
20func NsecToTimespec(nsec int64) (ts Timespec) {
21 ts.Sec = nsec / 1e9
22 ts.Nsec = nsec % 1e9
23 return
24}
25
26func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
27
28func NsecToTimeval(nsec int64) (tv Timeval) {
29 nsec += 999 // round up to microsecond
30 tv.Usec = int32(nsec % 1e9 / 1e3)
31 tv.Sec = int64(nsec / 1e9)
32 return
33}
34
35//sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error)
36func Gettimeofday(tv *Timeval) (err error) {
37 // The tv passed to gettimeofday must be non-nil
38 // but is otherwise unused. The answers come back
39 // in the two registers.
40 sec, usec, err := gettimeofday(tv)
41 tv.Sec = sec
42 tv.Usec = usec
43 return err
44}
45
46func SetKevent(k *Kevent_t, fd, mode, flags int) {
47 k.Ident = uint64(fd)
48 k.Filter = int16(mode)
49 k.Flags = uint16(flags)
50}
51
52func (iov *Iovec) SetLen(length int) {
53 iov.Len = uint64(length)
54}
55
56func (msghdr *Msghdr) SetControllen(length int) {
57 msghdr.Controllen = uint32(length)
58}
59
60func (cmsg *Cmsghdr) SetLen(length int) {
61 cmsg.Len = uint32(length)
62}
63
64func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
65 var length = uint64(count)
66
67 _, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe.Pointer(&length)), 0, 0)
68
69 written = int(length)
70
71 if e1 != 0 {
72 err = e1
73 }
74 return
75}
76
77func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
78
79// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
80// of darwin/amd64 the syscall is called sysctl instead of __sysctl.
81const SYS___SYSCTL = SYS_SYSCTL
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_arm.go
deleted file mode 100644
index e47ffd7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_arm.go
+++ /dev/null
@@ -1,73 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package unix
6
7import (
8 "syscall"
9 "unsafe"
10)
11
12func Getpagesize() int { return 4096 }
13
14func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
15
16func NsecToTimespec(nsec int64) (ts Timespec) {
17 ts.Sec = int32(nsec / 1e9)
18 ts.Nsec = int32(nsec % 1e9)
19 return
20}
21
22func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
23
24func NsecToTimeval(nsec int64) (tv Timeval) {
25 nsec += 999 // round up to microsecond
26 tv.Usec = int32(nsec % 1e9 / 1e3)
27 tv.Sec = int32(nsec / 1e9)
28 return
29}
30
31//sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error)
32func Gettimeofday(tv *Timeval) (err error) {
33 // The tv passed to gettimeofday must be non-nil
34 // but is otherwise unused. The answers come back
35 // in the two registers.
36 sec, usec, err := gettimeofday(tv)
37 tv.Sec = int32(sec)
38 tv.Usec = int32(usec)
39 return err
40}
41
42func SetKevent(k *Kevent_t, fd, mode, flags int) {
43 k.Ident = uint32(fd)
44 k.Filter = int16(mode)
45 k.Flags = uint16(flags)
46}
47
48func (iov *Iovec) SetLen(length int) {
49 iov.Len = uint32(length)
50}
51
52func (msghdr *Msghdr) SetControllen(length int) {
53 msghdr.Controllen = uint32(length)
54}
55
56func (cmsg *Cmsghdr) SetLen(length int) {
57 cmsg.Len = uint32(length)
58}
59
60func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
61 var length = uint64(count)
62
63 _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offset>>32), uintptr(unsafe.Pointer(&length)), 0, 0, 0, 0)
64
65 written = int(length)
66
67 if e1 != 0 {
68 err = e1
69 }
70 return
71}
72
73func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_arm64.go
deleted file mode 100644
index 2560a95..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_darwin_arm64.go
+++ /dev/null
@@ -1,79 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build arm64,darwin
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func Getpagesize() int { return 16384 }
15
16func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
17
18func NsecToTimespec(nsec int64) (ts Timespec) {
19 ts.Sec = nsec / 1e9
20 ts.Nsec = nsec % 1e9
21 return
22}
23
24func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
25
26func NsecToTimeval(nsec int64) (tv Timeval) {
27 nsec += 999 // round up to microsecond
28 tv.Usec = int32(nsec % 1e9 / 1e3)
29 tv.Sec = int64(nsec / 1e9)
30 return
31}
32
33//sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error)
34func Gettimeofday(tv *Timeval) (err error) {
35 // The tv passed to gettimeofday must be non-nil
36 // but is otherwise unused. The answers come back
37 // in the two registers.
38 sec, usec, err := gettimeofday(tv)
39 tv.Sec = sec
40 tv.Usec = usec
41 return err
42}
43
44func SetKevent(k *Kevent_t, fd, mode, flags int) {
45 k.Ident = uint64(fd)
46 k.Filter = int16(mode)
47 k.Flags = uint16(flags)
48}
49
50func (iov *Iovec) SetLen(length int) {
51 iov.Len = uint64(length)
52}
53
54func (msghdr *Msghdr) SetControllen(length int) {
55 msghdr.Controllen = uint32(length)
56}
57
58func (cmsg *Cmsghdr) SetLen(length int) {
59 cmsg.Len = uint32(length)
60}
61
62func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
63 var length = uint64(count)
64
65 _, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe.Pointer(&length)), 0, 0)
66
67 written = int(length)
68
69 if e1 != 0 {
70 err = e1
71 }
72 return
73}
74
75func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
76
77// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
78// of darwin/arm64 the syscall is called sysctl instead of __sysctl.
79const SYS___SYSCTL = SYS_SYSCTL
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly.go
deleted file mode 100644
index fbbe0dc..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly.go
+++ /dev/null
@@ -1,411 +0,0 @@
1// Copyright 2009,2010 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// FreeBSD system calls.
6// This file is compiled as ordinary Go code,
7// but it is also input to mksyscall,
8// which parses the //sys lines and generates system call stubs.
9// Note that sometimes we use a lowercase //sys name and wrap
10// it in our own nicer implementation, either here or in
11// syscall_bsd.go or syscall_unix.go.
12
13package unix
14
15import "unsafe"
16
17type SockaddrDatalink struct {
18 Len uint8
19 Family uint8
20 Index uint16
21 Type uint8
22 Nlen uint8
23 Alen uint8
24 Slen uint8
25 Data [12]int8
26 Rcf uint16
27 Route [16]uint16
28 raw RawSockaddrDatalink
29}
30
31// Translate "kern.hostname" to []_C_int{0,1,2,3}.
32func nametomib(name string) (mib []_C_int, err error) {
33 const siz = unsafe.Sizeof(mib[0])
34
35 // NOTE(rsc): It seems strange to set the buffer to have
36 // size CTL_MAXNAME+2 but use only CTL_MAXNAME
37 // as the size. I don't know why the +2 is here, but the
38 // kernel uses +2 for its own implementation of this function.
39 // I am scared that if we don't include the +2 here, the kernel
40 // will silently write 2 words farther than we specify
41 // and we'll get memory corruption.
42 var buf [CTL_MAXNAME + 2]_C_int
43 n := uintptr(CTL_MAXNAME) * siz
44
45 p := (*byte)(unsafe.Pointer(&buf[0]))
46 bytes, err := ByteSliceFromString(name)
47 if err != nil {
48 return nil, err
49 }
50
51 // Magic sysctl: "setting" 0.3 to a string name
52 // lets you read back the array of integers form.
53 if err = sysctl([]_C_int{0, 3}, p, &n, &bytes[0], uintptr(len(name))); err != nil {
54 return nil, err
55 }
56 return buf[0 : n/siz], nil
57}
58
59// ParseDirent parses up to max directory entries in buf,
60// appending the names to names. It returns the number
61// bytes consumed from buf, the number of entries added
62// to names, and the new names slice.
63func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
64 origlen := len(buf)
65 for max != 0 && len(buf) > 0 {
66 dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
67 reclen := int(16+dirent.Namlen+1+7) & ^7
68 buf = buf[reclen:]
69 if dirent.Fileno == 0 { // File absent in directory.
70 continue
71 }
72 bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
73 var name = string(bytes[0:dirent.Namlen])
74 if name == "." || name == ".." { // Useless names
75 continue
76 }
77 max--
78 count++
79 names = append(names, name)
80 }
81 return origlen - len(buf), count, names
82}
83
84//sysnb pipe() (r int, w int, err error)
85
86func Pipe(p []int) (err error) {
87 if len(p) != 2 {
88 return EINVAL
89 }
90 p[0], p[1], err = pipe()
91 return
92}
93
94//sys extpread(fd int, p []byte, flags int, offset int64) (n int, err error)
95func Pread(fd int, p []byte, offset int64) (n int, err error) {
96 return extpread(fd, p, 0, offset)
97}
98
99//sys extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error)
100func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
101 return extpwrite(fd, p, 0, offset)
102}
103
104func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
105 var _p0 unsafe.Pointer
106 var bufsize uintptr
107 if len(buf) > 0 {
108 _p0 = unsafe.Pointer(&buf[0])
109 bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
110 }
111 r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
112 n = int(r0)
113 if e1 != 0 {
114 err = e1
115 }
116 return
117}
118
119/*
120 * Exposed directly
121 */
122//sys Access(path string, mode uint32) (err error)
123//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
124//sys Chdir(path string) (err error)
125//sys Chflags(path string, flags int) (err error)
126//sys Chmod(path string, mode uint32) (err error)
127//sys Chown(path string, uid int, gid int) (err error)
128//sys Chroot(path string) (err error)
129//sys Close(fd int) (err error)
130//sys Dup(fd int) (nfd int, err error)
131//sys Dup2(from int, to int) (err error)
132//sys Exit(code int)
133//sys Fchdir(fd int) (err error)
134//sys Fchflags(fd int, flags int) (err error)
135//sys Fchmod(fd int, mode uint32) (err error)
136//sys Fchown(fd int, uid int, gid int) (err error)
137//sys Flock(fd int, how int) (err error)
138//sys Fpathconf(fd int, name int) (val int, err error)
139//sys Fstat(fd int, stat *Stat_t) (err error)
140//sys Fstatfs(fd int, stat *Statfs_t) (err error)
141//sys Fsync(fd int) (err error)
142//sys Ftruncate(fd int, length int64) (err error)
143//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
144//sys Getdtablesize() (size int)
145//sysnb Getegid() (egid int)
146//sysnb Geteuid() (uid int)
147//sysnb Getgid() (gid int)
148//sysnb Getpgid(pid int) (pgid int, err error)
149//sysnb Getpgrp() (pgrp int)
150//sysnb Getpid() (pid int)
151//sysnb Getppid() (ppid int)
152//sys Getpriority(which int, who int) (prio int, err error)
153//sysnb Getrlimit(which int, lim *Rlimit) (err error)
154//sysnb Getrusage(who int, rusage *Rusage) (err error)
155//sysnb Getsid(pid int) (sid int, err error)
156//sysnb Gettimeofday(tv *Timeval) (err error)
157//sysnb Getuid() (uid int)
158//sys Issetugid() (tainted bool)
159//sys Kill(pid int, signum syscall.Signal) (err error)
160//sys Kqueue() (fd int, err error)
161//sys Lchown(path string, uid int, gid int) (err error)
162//sys Link(path string, link string) (err error)
163//sys Listen(s int, backlog int) (err error)
164//sys Lstat(path string, stat *Stat_t) (err error)
165//sys Mkdir(path string, mode uint32) (err error)
166//sys Mkfifo(path string, mode uint32) (err error)
167//sys Mknod(path string, mode uint32, dev int) (err error)
168//sys Mlock(b []byte) (err error)
169//sys Mlockall(flags int) (err error)
170//sys Mprotect(b []byte, prot int) (err error)
171//sys Munlock(b []byte) (err error)
172//sys Munlockall() (err error)
173//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
174//sys Open(path string, mode int, perm uint32) (fd int, err error)
175//sys Pathconf(path string, name int) (val int, err error)
176//sys read(fd int, p []byte) (n int, err error)
177//sys Readlink(path string, buf []byte) (n int, err error)
178//sys Rename(from string, to string) (err error)
179//sys Revoke(path string) (err error)
180//sys Rmdir(path string) (err error)
181//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
182//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
183//sysnb Setegid(egid int) (err error)
184//sysnb Seteuid(euid int) (err error)
185//sysnb Setgid(gid int) (err error)
186//sys Setlogin(name string) (err error)
187//sysnb Setpgid(pid int, pgid int) (err error)
188//sys Setpriority(which int, who int, prio int) (err error)
189//sysnb Setregid(rgid int, egid int) (err error)
190//sysnb Setreuid(ruid int, euid int) (err error)
191//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
192//sysnb Setresuid(ruid int, euid int, suid int) (err error)
193//sysnb Setrlimit(which int, lim *Rlimit) (err error)
194//sysnb Setsid() (pid int, err error)
195//sysnb Settimeofday(tp *Timeval) (err error)
196//sysnb Setuid(uid int) (err error)
197//sys Stat(path string, stat *Stat_t) (err error)
198//sys Statfs(path string, stat *Statfs_t) (err error)
199//sys Symlink(path string, link string) (err error)
200//sys Sync() (err error)
201//sys Truncate(path string, length int64) (err error)
202//sys Umask(newmask int) (oldmask int)
203//sys Undelete(path string) (err error)
204//sys Unlink(path string) (err error)
205//sys Unmount(path string, flags int) (err error)
206//sys write(fd int, p []byte) (n int, err error)
207//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
208//sys munmap(addr uintptr, length uintptr) (err error)
209//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
210//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
211
212/*
213 * Unimplemented
214 * TODO(jsing): Update this list for DragonFly.
215 */
216// Profil
217// Sigaction
218// Sigprocmask
219// Getlogin
220// Sigpending
221// Sigaltstack
222// Ioctl
223// Reboot
224// Execve
225// Vfork
226// Sbrk
227// Sstk
228// Ovadvise
229// Mincore
230// Setitimer
231// Swapon
232// Select
233// Sigsuspend
234// Readv
235// Writev
236// Nfssvc
237// Getfh
238// Quotactl
239// Mount
240// Csops
241// Waitid
242// Add_profil
243// Kdebug_trace
244// Sigreturn
245// Mmap
246// Atsocket
247// Kqueue_from_portset_np
248// Kqueue_portset
249// Getattrlist
250// Setattrlist
251// Getdirentriesattr
252// Searchfs
253// Delete
254// Copyfile
255// Poll
256// Watchevent
257// Waitevent
258// Modwatch
259// Getxattr
260// Fgetxattr
261// Setxattr
262// Fsetxattr
263// Removexattr
264// Fremovexattr
265// Listxattr
266// Flistxattr
267// Fsctl
268// Initgroups
269// Posix_spawn
270// Nfsclnt
271// Fhopen
272// Minherit
273// Semsys
274// Msgsys
275// Shmsys
276// Semctl
277// Semget
278// Semop
279// Msgctl
280// Msgget
281// Msgsnd
282// Msgrcv
283// Shmat
284// Shmctl
285// Shmdt
286// Shmget
287// Shm_open
288// Shm_unlink
289// Sem_open
290// Sem_close
291// Sem_unlink
292// Sem_wait
293// Sem_trywait
294// Sem_post
295// Sem_getvalue
296// Sem_init
297// Sem_destroy
298// Open_extended
299// Umask_extended
300// Stat_extended
301// Lstat_extended
302// Fstat_extended
303// Chmod_extended
304// Fchmod_extended
305// Access_extended
306// Settid
307// Gettid
308// Setsgroups
309// Getsgroups
310// Setwgroups
311// Getwgroups
312// Mkfifo_extended
313// Mkdir_extended
314// Identitysvc
315// Shared_region_check_np
316// Shared_region_map_np
317// __pthread_mutex_destroy
318// __pthread_mutex_init
319// __pthread_mutex_lock
320// __pthread_mutex_trylock
321// __pthread_mutex_unlock
322// __pthread_cond_init
323// __pthread_cond_destroy
324// __pthread_cond_broadcast
325// __pthread_cond_signal
326// Setsid_with_pid
327// __pthread_cond_timedwait
328// Aio_fsync
329// Aio_return
330// Aio_suspend
331// Aio_cancel
332// Aio_error
333// Aio_read
334// Aio_write
335// Lio_listio
336// __pthread_cond_wait
337// Iopolicysys
338// __pthread_kill
339// __pthread_sigmask
340// __sigwait
341// __disable_threadsignal
342// __pthread_markcancel
343// __pthread_canceled
344// __semwait_signal
345// Proc_info
346// Stat64_extended
347// Lstat64_extended
348// Fstat64_extended
349// __pthread_chdir
350// __pthread_fchdir
351// Audit
352// Auditon
353// Getauid
354// Setauid
355// Getaudit
356// Setaudit
357// Getaudit_addr
358// Setaudit_addr
359// Auditctl
360// Bsdthread_create
361// Bsdthread_terminate
362// Stack_snapshot
363// Bsdthread_register
364// Workq_open
365// Workq_ops
366// __mac_execve
367// __mac_syscall
368// __mac_get_file
369// __mac_set_file
370// __mac_get_link
371// __mac_set_link
372// __mac_get_proc
373// __mac_set_proc
374// __mac_get_fd
375// __mac_set_fd
376// __mac_get_pid
377// __mac_get_lcid
378// __mac_get_lctx
379// __mac_set_lctx
380// Setlcid
381// Read_nocancel
382// Write_nocancel
383// Open_nocancel
384// Close_nocancel
385// Wait4_nocancel
386// Recvmsg_nocancel
387// Sendmsg_nocancel
388// Recvfrom_nocancel
389// Accept_nocancel
390// Msync_nocancel
391// Fcntl_nocancel
392// Select_nocancel
393// Fsync_nocancel
394// Connect_nocancel
395// Sigsuspend_nocancel
396// Readv_nocancel
397// Writev_nocancel
398// Sendto_nocancel
399// Pread_nocancel
400// Pwrite_nocancel
401// Waitid_nocancel
402// Poll_nocancel
403// Msgsnd_nocancel
404// Msgrcv_nocancel
405// Sem_wait_nocancel
406// Aio_suspend_nocancel
407// __sigwait_nocancel
408// __semwait_signal_nocancel
409// __mac_mount
410// __mac_get_mount
411// __mac_getfsstat
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly_386.go
deleted file mode 100644
index 41c2e69..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly_386.go
+++ /dev/null
@@ -1,63 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build 386,dragonfly
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func Getpagesize() int { return 4096 }
15
16func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
17
18func NsecToTimespec(nsec int64) (ts Timespec) {
19 ts.Sec = int32(nsec / 1e9)
20 ts.Nsec = int32(nsec % 1e9)
21 return
22}
23
24func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
25
26func NsecToTimeval(nsec int64) (tv Timeval) {
27 nsec += 999 // round up to microsecond
28 tv.Usec = int32(nsec % 1e9 / 1e3)
29 tv.Sec = int32(nsec / 1e9)
30 return
31}
32
33func SetKevent(k *Kevent_t, fd, mode, flags int) {
34 k.Ident = uint32(fd)
35 k.Filter = int16(mode)
36 k.Flags = uint16(flags)
37}
38
39func (iov *Iovec) SetLen(length int) {
40 iov.Len = uint32(length)
41}
42
43func (msghdr *Msghdr) SetControllen(length int) {
44 msghdr.Controllen = uint32(length)
45}
46
47func (cmsg *Cmsghdr) SetLen(length int) {
48 cmsg.Len = uint32(length)
49}
50
51func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
52 var writtenOut uint64 = 0
53 _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0)
54
55 written = int(writtenOut)
56
57 if e1 != 0 {
58 err = e1
59 }
60 return
61}
62
63func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly_amd64.go
deleted file mode 100644
index 2ed9259..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_dragonfly_amd64.go
+++ /dev/null
@@ -1,63 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build amd64,dragonfly
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func Getpagesize() int { return 4096 }
15
16func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
17
18func NsecToTimespec(nsec int64) (ts Timespec) {
19 ts.Sec = nsec / 1e9
20 ts.Nsec = nsec % 1e9
21 return
22}
23
24func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
25
26func NsecToTimeval(nsec int64) (tv Timeval) {
27 nsec += 999 // round up to microsecond
28 tv.Usec = nsec % 1e9 / 1e3
29 tv.Sec = int64(nsec / 1e9)
30 return
31}
32
33func SetKevent(k *Kevent_t, fd, mode, flags int) {
34 k.Ident = uint64(fd)
35 k.Filter = int16(mode)
36 k.Flags = uint16(flags)
37}
38
39func (iov *Iovec) SetLen(length int) {
40 iov.Len = uint64(length)
41}
42
43func (msghdr *Msghdr) SetControllen(length int) {
44 msghdr.Controllen = uint32(length)
45}
46
47func (cmsg *Cmsghdr) SetLen(length int) {
48 cmsg.Len = uint32(length)
49}
50
51func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
52 var writtenOut uint64 = 0
53 _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
54
55 written = int(writtenOut)
56
57 if e1 != 0 {
58 err = e1
59 }
60 return
61}
62
63func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd.go
deleted file mode 100644
index ec56ed6..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd.go
+++ /dev/null
@@ -1,682 +0,0 @@
1// Copyright 2009,2010 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// FreeBSD system calls.
6// This file is compiled as ordinary Go code,
7// but it is also input to mksyscall,
8// which parses the //sys lines and generates system call stubs.
9// Note that sometimes we use a lowercase //sys name and wrap
10// it in our own nicer implementation, either here or in
11// syscall_bsd.go or syscall_unix.go.
12
13package unix
14
15import "unsafe"
16
17type SockaddrDatalink struct {
18 Len uint8
19 Family uint8
20 Index uint16
21 Type uint8
22 Nlen uint8
23 Alen uint8
24 Slen uint8
25 Data [46]int8
26 raw RawSockaddrDatalink
27}
28
29// Translate "kern.hostname" to []_C_int{0,1,2,3}.
30func nametomib(name string) (mib []_C_int, err error) {
31 const siz = unsafe.Sizeof(mib[0])
32
33 // NOTE(rsc): It seems strange to set the buffer to have
34 // size CTL_MAXNAME+2 but use only CTL_MAXNAME
35 // as the size. I don't know why the +2 is here, but the
36 // kernel uses +2 for its own implementation of this function.
37 // I am scared that if we don't include the +2 here, the kernel
38 // will silently write 2 words farther than we specify
39 // and we'll get memory corruption.
40 var buf [CTL_MAXNAME + 2]_C_int
41 n := uintptr(CTL_MAXNAME) * siz
42
43 p := (*byte)(unsafe.Pointer(&buf[0]))
44 bytes, err := ByteSliceFromString(name)
45 if err != nil {
46 return nil, err
47 }
48
49 // Magic sysctl: "setting" 0.3 to a string name
50 // lets you read back the array of integers form.
51 if err = sysctl([]_C_int{0, 3}, p, &n, &bytes[0], uintptr(len(name))); err != nil {
52 return nil, err
53 }
54 return buf[0 : n/siz], nil
55}
56
57// ParseDirent parses up to max directory entries in buf,
58// appending the names to names. It returns the number
59// bytes consumed from buf, the number of entries added
60// to names, and the new names slice.
61func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
62 origlen := len(buf)
63 for max != 0 && len(buf) > 0 {
64 dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
65 if dirent.Reclen == 0 {
66 buf = nil
67 break
68 }
69 buf = buf[dirent.Reclen:]
70 if dirent.Fileno == 0 { // File absent in directory.
71 continue
72 }
73 bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
74 var name = string(bytes[0:dirent.Namlen])
75 if name == "." || name == ".." { // Useless names
76 continue
77 }
78 max--
79 count++
80 names = append(names, name)
81 }
82 return origlen - len(buf), count, names
83}
84
85//sysnb pipe() (r int, w int, err error)
86
87func Pipe(p []int) (err error) {
88 if len(p) != 2 {
89 return EINVAL
90 }
91 p[0], p[1], err = pipe()
92 return
93}
94
95func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
96 var value IPMreqn
97 vallen := _Socklen(SizeofIPMreqn)
98 errno := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
99 return &value, errno
100}
101
102func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
103 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
104}
105
106func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) {
107 var rsa RawSockaddrAny
108 var len _Socklen = SizeofSockaddrAny
109 nfd, err = accept4(fd, &rsa, &len, flags)
110 if err != nil {
111 return
112 }
113 if len > SizeofSockaddrAny {
114 panic("RawSockaddrAny too small")
115 }
116 sa, err = anyToSockaddr(&rsa)
117 if err != nil {
118 Close(nfd)
119 nfd = 0
120 }
121 return
122}
123
124func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
125 var _p0 unsafe.Pointer
126 var bufsize uintptr
127 if len(buf) > 0 {
128 _p0 = unsafe.Pointer(&buf[0])
129 bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
130 }
131 r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
132 n = int(r0)
133 if e1 != 0 {
134 err = e1
135 }
136 return
137}
138
139// Derive extattr namespace and attribute name
140
141func xattrnamespace(fullattr string) (ns int, attr string, err error) {
142 s := -1
143 for idx, val := range fullattr {
144 if val == '.' {
145 s = idx
146 break
147 }
148 }
149
150 if s == -1 {
151 return -1, "", ENOATTR
152 }
153
154 namespace := fullattr[0:s]
155 attr = fullattr[s+1:]
156
157 switch namespace {
158 case "user":
159 return EXTATTR_NAMESPACE_USER, attr, nil
160 case "system":
161 return EXTATTR_NAMESPACE_SYSTEM, attr, nil
162 default:
163 return -1, "", ENOATTR
164 }
165}
166
167func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) {
168 if len(dest) > idx {
169 return unsafe.Pointer(&dest[idx])
170 } else {
171 return unsafe.Pointer(_zero)
172 }
173}
174
175// FreeBSD implements its own syscalls to handle extended attributes
176
177func Getxattr(file string, attr string, dest []byte) (sz int, err error) {
178 d := initxattrdest(dest, 0)
179 destsize := len(dest)
180
181 nsid, a, err := xattrnamespace(attr)
182 if err != nil {
183 return -1, err
184 }
185
186 return ExtattrGetFile(file, nsid, a, uintptr(d), destsize)
187}
188
189func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
190 d := initxattrdest(dest, 0)
191 destsize := len(dest)
192
193 nsid, a, err := xattrnamespace(attr)
194 if err != nil {
195 return -1, err
196 }
197
198 return ExtattrGetFd(fd, nsid, a, uintptr(d), destsize)
199}
200
201func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
202 d := initxattrdest(dest, 0)
203 destsize := len(dest)
204
205 nsid, a, err := xattrnamespace(attr)
206 if err != nil {
207 return -1, err
208 }
209
210 return ExtattrGetLink(link, nsid, a, uintptr(d), destsize)
211}
212
213// flags are unused on FreeBSD
214
215func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
216 d := unsafe.Pointer(&data[0])
217 datasiz := len(data)
218
219 nsid, a, err := xattrnamespace(attr)
220 if err != nil {
221 return
222 }
223
224 _, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz)
225 return
226}
227
228func Setxattr(file string, attr string, data []byte, flags int) (err error) {
229 d := unsafe.Pointer(&data[0])
230 datasiz := len(data)
231
232 nsid, a, err := xattrnamespace(attr)
233 if err != nil {
234 return
235 }
236
237 _, err = ExtattrSetFile(file, nsid, a, uintptr(d), datasiz)
238 return
239}
240
241func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
242 d := unsafe.Pointer(&data[0])
243 datasiz := len(data)
244
245 nsid, a, err := xattrnamespace(attr)
246 if err != nil {
247 return
248 }
249
250 _, err = ExtattrSetLink(link, nsid, a, uintptr(d), datasiz)
251 return
252}
253
254func Removexattr(file string, attr string) (err error) {
255 nsid, a, err := xattrnamespace(attr)
256 if err != nil {
257 return
258 }
259
260 err = ExtattrDeleteFile(file, nsid, a)
261 return
262}
263
264func Fremovexattr(fd int, attr string) (err error) {
265 nsid, a, err := xattrnamespace(attr)
266 if err != nil {
267 return
268 }
269
270 err = ExtattrDeleteFd(fd, nsid, a)
271 return
272}
273
274func Lremovexattr(link string, attr string) (err error) {
275 nsid, a, err := xattrnamespace(attr)
276 if err != nil {
277 return
278 }
279
280 err = ExtattrDeleteLink(link, nsid, a)
281 return
282}
283
284func Listxattr(file string, dest []byte) (sz int, err error) {
285 d := initxattrdest(dest, 0)
286 destsiz := len(dest)
287
288 // FreeBSD won't allow you to list xattrs from multiple namespaces
289 s := 0
290 var e error
291 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
292 stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
293
294 /* Errors accessing system attrs are ignored so that
295 * we can implement the Linux-like behavior of omitting errors that
296 * we don't have read permissions on
297 *
298 * Linux will still error if we ask for user attributes on a file that
299 * we don't have read permissions on, so don't ignore those errors
300 */
301 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
302 e = nil
303 continue
304 } else if e != nil {
305 return s, e
306 }
307
308 s += stmp
309 destsiz -= s
310 if destsiz < 0 {
311 destsiz = 0
312 }
313 d = initxattrdest(dest, s)
314 }
315
316 return s, e
317}
318
319func Flistxattr(fd int, dest []byte) (sz int, err error) {
320 d := initxattrdest(dest, 0)
321 destsiz := len(dest)
322
323 s := 0
324 var e error
325 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
326 stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
327 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
328 e = nil
329 continue
330 } else if e != nil {
331 return s, e
332 }
333
334 s += stmp
335 destsiz -= s
336 if destsiz < 0 {
337 destsiz = 0
338 }
339 d = initxattrdest(dest, s)
340 }
341
342 return s, e
343}
344
345func Llistxattr(link string, dest []byte) (sz int, err error) {
346 d := initxattrdest(dest, 0)
347 destsiz := len(dest)
348
349 s := 0
350 var e error
351 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
352 stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
353 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
354 e = nil
355 continue
356 } else if e != nil {
357 return s, e
358 }
359
360 s += stmp
361 destsiz -= s
362 if destsiz < 0 {
363 destsiz = 0
364 }
365 d = initxattrdest(dest, s)
366 }
367
368 return s, e
369}
370
371/*
372 * Exposed directly
373 */
374//sys Access(path string, mode uint32) (err error)
375//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
376//sys Chdir(path string) (err error)
377//sys Chflags(path string, flags int) (err error)
378//sys Chmod(path string, mode uint32) (err error)
379//sys Chown(path string, uid int, gid int) (err error)
380//sys Chroot(path string) (err error)
381//sys Close(fd int) (err error)
382//sys Dup(fd int) (nfd int, err error)
383//sys Dup2(from int, to int) (err error)
384//sys Exit(code int)
385//sys ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
386//sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
387//sys ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error)
388//sys ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
389//sys ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
390//sys ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
391//sys ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error)
392//sys ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
393//sys ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
394//sys ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
395//sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error)
396//sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
397//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
398//sys Fchdir(fd int) (err error)
399//sys Fchflags(fd int, flags int) (err error)
400//sys Fchmod(fd int, mode uint32) (err error)
401//sys Fchown(fd int, uid int, gid int) (err error)
402//sys Flock(fd int, how int) (err error)
403//sys Fpathconf(fd int, name int) (val int, err error)
404//sys Fstat(fd int, stat *Stat_t) (err error)
405//sys Fstatfs(fd int, stat *Statfs_t) (err error)
406//sys Fsync(fd int) (err error)
407//sys Ftruncate(fd int, length int64) (err error)
408//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
409//sys Getdtablesize() (size int)
410//sysnb Getegid() (egid int)
411//sysnb Geteuid() (uid int)
412//sysnb Getgid() (gid int)
413//sysnb Getpgid(pid int) (pgid int, err error)
414//sysnb Getpgrp() (pgrp int)
415//sysnb Getpid() (pid int)
416//sysnb Getppid() (ppid int)
417//sys Getpriority(which int, who int) (prio int, err error)
418//sysnb Getrlimit(which int, lim *Rlimit) (err error)
419//sysnb Getrusage(who int, rusage *Rusage) (err error)
420//sysnb Getsid(pid int) (sid int, err error)
421//sysnb Gettimeofday(tv *Timeval) (err error)
422//sysnb Getuid() (uid int)
423//sys Issetugid() (tainted bool)
424//sys Kill(pid int, signum syscall.Signal) (err error)
425//sys Kqueue() (fd int, err error)
426//sys Lchown(path string, uid int, gid int) (err error)
427//sys Link(path string, link string) (err error)
428//sys Listen(s int, backlog int) (err error)
429//sys Lstat(path string, stat *Stat_t) (err error)
430//sys Mkdir(path string, mode uint32) (err error)
431//sys Mkfifo(path string, mode uint32) (err error)
432//sys Mknod(path string, mode uint32, dev int) (err error)
433//sys Mlock(b []byte) (err error)
434//sys Mlockall(flags int) (err error)
435//sys Mprotect(b []byte, prot int) (err error)
436//sys Munlock(b []byte) (err error)
437//sys Munlockall() (err error)
438//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
439//sys Open(path string, mode int, perm uint32) (fd int, err error)
440//sys Pathconf(path string, name int) (val int, err error)
441//sys Pread(fd int, p []byte, offset int64) (n int, err error)
442//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
443//sys read(fd int, p []byte) (n int, err error)
444//sys Readlink(path string, buf []byte) (n int, err error)
445//sys Rename(from string, to string) (err error)
446//sys Revoke(path string) (err error)
447//sys Rmdir(path string) (err error)
448//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
449//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
450//sysnb Setegid(egid int) (err error)
451//sysnb Seteuid(euid int) (err error)
452//sysnb Setgid(gid int) (err error)
453//sys Setlogin(name string) (err error)
454//sysnb Setpgid(pid int, pgid int) (err error)
455//sys Setpriority(which int, who int, prio int) (err error)
456//sysnb Setregid(rgid int, egid int) (err error)
457//sysnb Setreuid(ruid int, euid int) (err error)
458//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
459//sysnb Setresuid(ruid int, euid int, suid int) (err error)
460//sysnb Setrlimit(which int, lim *Rlimit) (err error)
461//sysnb Setsid() (pid int, err error)
462//sysnb Settimeofday(tp *Timeval) (err error)
463//sysnb Setuid(uid int) (err error)
464//sys Stat(path string, stat *Stat_t) (err error)
465//sys Statfs(path string, stat *Statfs_t) (err error)
466//sys Symlink(path string, link string) (err error)
467//sys Sync() (err error)
468//sys Truncate(path string, length int64) (err error)
469//sys Umask(newmask int) (oldmask int)
470//sys Undelete(path string) (err error)
471//sys Unlink(path string) (err error)
472//sys Unmount(path string, flags int) (err error)
473//sys write(fd int, p []byte) (n int, err error)
474//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
475//sys munmap(addr uintptr, length uintptr) (err error)
476//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
477//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
478//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error)
479
480/*
481 * Unimplemented
482 */
483// Profil
484// Sigaction
485// Sigprocmask
486// Getlogin
487// Sigpending
488// Sigaltstack
489// Ioctl
490// Reboot
491// Execve
492// Vfork
493// Sbrk
494// Sstk
495// Ovadvise
496// Mincore
497// Setitimer
498// Swapon
499// Select
500// Sigsuspend
501// Readv
502// Writev
503// Nfssvc
504// Getfh
505// Quotactl
506// Mount
507// Csops
508// Waitid
509// Add_profil
510// Kdebug_trace
511// Sigreturn
512// Mmap
513// Mlock
514// Munlock
515// Atsocket
516// Kqueue_from_portset_np
517// Kqueue_portset
518// Getattrlist
519// Setattrlist
520// Getdirentriesattr
521// Searchfs
522// Delete
523// Copyfile
524// Poll
525// Watchevent
526// Waitevent
527// Modwatch
528// Getxattr
529// Fgetxattr
530// Setxattr
531// Fsetxattr
532// Removexattr
533// Fremovexattr
534// Listxattr
535// Flistxattr
536// Fsctl
537// Initgroups
538// Posix_spawn
539// Nfsclnt
540// Fhopen
541// Minherit
542// Semsys
543// Msgsys
544// Shmsys
545// Semctl
546// Semget
547// Semop
548// Msgctl
549// Msgget
550// Msgsnd
551// Msgrcv
552// Shmat
553// Shmctl
554// Shmdt
555// Shmget
556// Shm_open
557// Shm_unlink
558// Sem_open
559// Sem_close
560// Sem_unlink
561// Sem_wait
562// Sem_trywait
563// Sem_post
564// Sem_getvalue
565// Sem_init
566// Sem_destroy
567// Open_extended
568// Umask_extended
569// Stat_extended
570// Lstat_extended
571// Fstat_extended
572// Chmod_extended
573// Fchmod_extended
574// Access_extended
575// Settid
576// Gettid
577// Setsgroups
578// Getsgroups
579// Setwgroups
580// Getwgroups
581// Mkfifo_extended
582// Mkdir_extended
583// Identitysvc
584// Shared_region_check_np
585// Shared_region_map_np
586// __pthread_mutex_destroy
587// __pthread_mutex_init
588// __pthread_mutex_lock
589// __pthread_mutex_trylock
590// __pthread_mutex_unlock
591// __pthread_cond_init
592// __pthread_cond_destroy
593// __pthread_cond_broadcast
594// __pthread_cond_signal
595// Setsid_with_pid
596// __pthread_cond_timedwait
597// Aio_fsync
598// Aio_return
599// Aio_suspend
600// Aio_cancel
601// Aio_error
602// Aio_read
603// Aio_write
604// Lio_listio
605// __pthread_cond_wait
606// Iopolicysys
607// Mlockall
608// Munlockall
609// __pthread_kill
610// __pthread_sigmask
611// __sigwait
612// __disable_threadsignal
613// __pthread_markcancel
614// __pthread_canceled
615// __semwait_signal
616// Proc_info
617// Stat64_extended
618// Lstat64_extended
619// Fstat64_extended
620// __pthread_chdir
621// __pthread_fchdir
622// Audit
623// Auditon
624// Getauid
625// Setauid
626// Getaudit
627// Setaudit
628// Getaudit_addr
629// Setaudit_addr
630// Auditctl
631// Bsdthread_create
632// Bsdthread_terminate
633// Stack_snapshot
634// Bsdthread_register
635// Workq_open
636// Workq_ops
637// __mac_execve
638// __mac_syscall
639// __mac_get_file
640// __mac_set_file
641// __mac_get_link
642// __mac_set_link
643// __mac_get_proc
644// __mac_set_proc
645// __mac_get_fd
646// __mac_set_fd
647// __mac_get_pid
648// __mac_get_lcid
649// __mac_get_lctx
650// __mac_set_lctx
651// Setlcid
652// Read_nocancel
653// Write_nocancel
654// Open_nocancel
655// Close_nocancel
656// Wait4_nocancel
657// Recvmsg_nocancel
658// Sendmsg_nocancel
659// Recvfrom_nocancel
660// Accept_nocancel
661// Msync_nocancel
662// Fcntl_nocancel
663// Select_nocancel
664// Fsync_nocancel
665// Connect_nocancel
666// Sigsuspend_nocancel
667// Readv_nocancel
668// Writev_nocancel
669// Sendto_nocancel
670// Pread_nocancel
671// Pwrite_nocancel
672// Waitid_nocancel
673// Poll_nocancel
674// Msgsnd_nocancel
675// Msgrcv_nocancel
676// Sem_wait_nocancel
677// Aio_suspend_nocancel
678// __sigwait_nocancel
679// __semwait_signal_nocancel
680// __mac_mount
681// __mac_get_mount
682// __mac_getfsstat
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_386.go
deleted file mode 100644
index 6255d40..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_386.go
+++ /dev/null
@@ -1,63 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build 386,freebsd
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func Getpagesize() int { return 4096 }
15
16func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
17
18func NsecToTimespec(nsec int64) (ts Timespec) {
19 ts.Sec = int32(nsec / 1e9)
20 ts.Nsec = int32(nsec % 1e9)
21 return
22}
23
24func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
25
26func NsecToTimeval(nsec int64) (tv Timeval) {
27 nsec += 999 // round up to microsecond
28 tv.Usec = int32(nsec % 1e9 / 1e3)
29 tv.Sec = int32(nsec / 1e9)
30 return
31}
32
33func SetKevent(k *Kevent_t, fd, mode, flags int) {
34 k.Ident = uint32(fd)
35 k.Filter = int16(mode)
36 k.Flags = uint16(flags)
37}
38
39func (iov *Iovec) SetLen(length int) {
40 iov.Len = uint32(length)
41}
42
43func (msghdr *Msghdr) SetControllen(length int) {
44 msghdr.Controllen = uint32(length)
45}
46
47func (cmsg *Cmsghdr) SetLen(length int) {
48 cmsg.Len = uint32(length)
49}
50
51func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
52 var writtenOut uint64 = 0
53 _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0)
54
55 written = int(writtenOut)
56
57 if e1 != 0 {
58 err = e1
59 }
60 return
61}
62
63func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_amd64.go
deleted file mode 100644
index 8b395d5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_amd64.go
+++ /dev/null
@@ -1,63 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build amd64,freebsd
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func Getpagesize() int { return 4096 }
15
16func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
17
18func NsecToTimespec(nsec int64) (ts Timespec) {
19 ts.Sec = nsec / 1e9
20 ts.Nsec = nsec % 1e9
21 return
22}
23
24func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
25
26func NsecToTimeval(nsec int64) (tv Timeval) {
27 nsec += 999 // round up to microsecond
28 tv.Usec = nsec % 1e9 / 1e3
29 tv.Sec = int64(nsec / 1e9)
30 return
31}
32
33func SetKevent(k *Kevent_t, fd, mode, flags int) {
34 k.Ident = uint64(fd)
35 k.Filter = int16(mode)
36 k.Flags = uint16(flags)
37}
38
39func (iov *Iovec) SetLen(length int) {
40 iov.Len = uint64(length)
41}
42
43func (msghdr *Msghdr) SetControllen(length int) {
44 msghdr.Controllen = uint32(length)
45}
46
47func (cmsg *Cmsghdr) SetLen(length int) {
48 cmsg.Len = uint32(length)
49}
50
51func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
52 var writtenOut uint64 = 0
53 _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
54
55 written = int(writtenOut)
56
57 if e1 != 0 {
58 err = e1
59 }
60 return
61}
62
63func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_arm.go
deleted file mode 100644
index 4e72d46..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_freebsd_arm.go
+++ /dev/null
@@ -1,63 +0,0 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build arm,freebsd
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func Getpagesize() int { return 4096 }
15
16func TimespecToNsec(ts Timespec) int64 { return ts.Sec*1e9 + int64(ts.Nsec) }
17
18func NsecToTimespec(nsec int64) (ts Timespec) {
19 ts.Sec = nsec / 1e9
20 ts.Nsec = int32(nsec % 1e9)
21 return
22}
23
24func TimevalToNsec(tv Timeval) int64 { return tv.Sec*1e9 + int64(tv.Usec)*1e3 }
25
26func NsecToTimeval(nsec int64) (tv Timeval) {
27 nsec += 999 // round up to microsecond
28 tv.Usec = int32(nsec % 1e9 / 1e3)
29 tv.Sec = nsec / 1e9
30 return
31}
32
33func SetKevent(k *Kevent_t, fd, mode, flags int) {
34 k.Ident = uint32(fd)
35 k.Filter = int16(mode)
36 k.Flags = uint16(flags)
37}
38
39func (iov *Iovec) SetLen(length int) {
40 iov.Len = uint32(length)
41}
42
43func (msghdr *Msghdr) SetControllen(length int) {
44 msghdr.Controllen = uint32(length)
45}
46
47func (cmsg *Cmsghdr) SetLen(length int) {
48 cmsg.Len = uint32(length)
49}
50
51func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
52 var writtenOut uint64 = 0
53 _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0)
54
55 written = int(writtenOut)
56
57 if e1 != 0 {
58 err = e1
59 }
60 return
61}
62
63func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux.go
deleted file mode 100644
index d3ee5d2..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux.go
+++ /dev/null
@@ -1,1086 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Linux system calls.
6// This file is compiled as ordinary Go code,
7// but it is also input to mksyscall,
8// which parses the //sys lines and generates system call stubs.
9// Note that sometimes we use a lowercase //sys name and
10// wrap it in our own nicer implementation.
11
12package unix
13
14import (
15 "syscall"
16 "unsafe"
17)
18
19/*
20 * Wrapped
21 */
22
23func Access(path string, mode uint32) (err error) {
24 return Faccessat(AT_FDCWD, path, mode, 0)
25}
26
27func Chmod(path string, mode uint32) (err error) {
28 return Fchmodat(AT_FDCWD, path, mode, 0)
29}
30
31func Chown(path string, uid int, gid int) (err error) {
32 return Fchownat(AT_FDCWD, path, uid, gid, 0)
33}
34
35func Creat(path string, mode uint32) (fd int, err error) {
36 return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
37}
38
39//sys linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)
40
41func Link(oldpath string, newpath string) (err error) {
42 return linkat(AT_FDCWD, oldpath, AT_FDCWD, newpath, 0)
43}
44
45func Mkdir(path string, mode uint32) (err error) {
46 return Mkdirat(AT_FDCWD, path, mode)
47}
48
49func Mknod(path string, mode uint32, dev int) (err error) {
50 return Mknodat(AT_FDCWD, path, mode, dev)
51}
52
53func Open(path string, mode int, perm uint32) (fd int, err error) {
54 return openat(AT_FDCWD, path, mode|O_LARGEFILE, perm)
55}
56
57//sys openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)
58
59func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
60 return openat(dirfd, path, flags|O_LARGEFILE, mode)
61}
62
63//sys readlinkat(dirfd int, path string, buf []byte) (n int, err error)
64
65func Readlink(path string, buf []byte) (n int, err error) {
66 return readlinkat(AT_FDCWD, path, buf)
67}
68
69func Rename(oldpath string, newpath string) (err error) {
70 return Renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath)
71}
72
73func Rmdir(path string) error {
74 return unlinkat(AT_FDCWD, path, AT_REMOVEDIR)
75}
76
77//sys symlinkat(oldpath string, newdirfd int, newpath string) (err error)
78
79func Symlink(oldpath string, newpath string) (err error) {
80 return symlinkat(oldpath, AT_FDCWD, newpath)
81}
82
83func Unlink(path string) error {
84 return unlinkat(AT_FDCWD, path, 0)
85}
86
87//sys unlinkat(dirfd int, path string, flags int) (err error)
88
89func Unlinkat(dirfd int, path string) error {
90 return unlinkat(dirfd, path, 0)
91}
92
93//sys utimes(path string, times *[2]Timeval) (err error)
94
95func Utimes(path string, tv []Timeval) (err error) {
96 if tv == nil {
97 return utimes(path, nil)
98 }
99 if len(tv) != 2 {
100 return EINVAL
101 }
102 return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
103}
104
105//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
106
107func UtimesNano(path string, ts []Timespec) error {
108 if ts == nil {
109 err := utimensat(AT_FDCWD, path, nil, 0)
110 if err != ENOSYS {
111 return err
112 }
113 return utimes(path, nil)
114 }
115 if len(ts) != 2 {
116 return EINVAL
117 }
118 err := utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
119 if err != ENOSYS {
120 return err
121 }
122 // If the utimensat syscall isn't available (utimensat was added to Linux
123 // in 2.6.22, Released, 8 July 2007) then fall back to utimes
124 var tv [2]Timeval
125 for i := 0; i < 2; i++ {
126 tv[i].Sec = ts[i].Sec
127 tv[i].Usec = ts[i].Nsec / 1000
128 }
129 return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
130}
131
132func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
133 if ts == nil {
134 return utimensat(dirfd, path, nil, flags)
135 }
136 if len(ts) != 2 {
137 return EINVAL
138 }
139 return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags)
140}
141
142//sys futimesat(dirfd int, path *byte, times *[2]Timeval) (err error)
143
144func Futimesat(dirfd int, path string, tv []Timeval) error {
145 pathp, err := BytePtrFromString(path)
146 if err != nil {
147 return err
148 }
149 if tv == nil {
150 return futimesat(dirfd, pathp, nil)
151 }
152 if len(tv) != 2 {
153 return EINVAL
154 }
155 return futimesat(dirfd, pathp, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
156}
157
158func Futimes(fd int, tv []Timeval) (err error) {
159 // Believe it or not, this is the best we can do on Linux
160 // (and is what glibc does).
161 return Utimes("/proc/self/fd/"+itoa(fd), tv)
162}
163
164const ImplementsGetwd = true
165
166//sys Getcwd(buf []byte) (n int, err error)
167
168func Getwd() (wd string, err error) {
169 var buf [PathMax]byte
170 n, err := Getcwd(buf[0:])
171 if err != nil {
172 return "", err
173 }
174 // Getcwd returns the number of bytes written to buf, including the NUL.
175 if n < 1 || n > len(buf) || buf[n-1] != 0 {
176 return "", EINVAL
177 }
178 return string(buf[0 : n-1]), nil
179}
180
181func Getgroups() (gids []int, err error) {
182 n, err := getgroups(0, nil)
183 if err != nil {
184 return nil, err
185 }
186 if n == 0 {
187 return nil, nil
188 }
189
190 // Sanity check group count. Max is 1<<16 on Linux.
191 if n < 0 || n > 1<<20 {
192 return nil, EINVAL
193 }
194
195 a := make([]_Gid_t, n)
196 n, err = getgroups(n, &a[0])
197 if err != nil {
198 return nil, err
199 }
200 gids = make([]int, n)
201 for i, v := range a[0:n] {
202 gids[i] = int(v)
203 }
204 return
205}
206
207func Setgroups(gids []int) (err error) {
208 if len(gids) == 0 {
209 return setgroups(0, nil)
210 }
211
212 a := make([]_Gid_t, len(gids))
213 for i, v := range gids {
214 a[i] = _Gid_t(v)
215 }
216 return setgroups(len(a), &a[0])
217}
218
219type WaitStatus uint32
220
221// Wait status is 7 bits at bottom, either 0 (exited),
222// 0x7F (stopped), or a signal number that caused an exit.
223// The 0x80 bit is whether there was a core dump.
224// An extra number (exit code, signal causing a stop)
225// is in the high bits. At least that's the idea.
226// There are various irregularities. For example, the
227// "continued" status is 0xFFFF, distinguishing itself
228// from stopped via the core dump bit.
229
230const (
231 mask = 0x7F
232 core = 0x80
233 exited = 0x00
234 stopped = 0x7F
235 shift = 8
236)
237
238func (w WaitStatus) Exited() bool { return w&mask == exited }
239
240func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != exited }
241
242func (w WaitStatus) Stopped() bool { return w&0xFF == stopped }
243
244func (w WaitStatus) Continued() bool { return w == 0xFFFF }
245
246func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 }
247
248func (w WaitStatus) ExitStatus() int {
249 if !w.Exited() {
250 return -1
251 }
252 return int(w>>shift) & 0xFF
253}
254
255func (w WaitStatus) Signal() syscall.Signal {
256 if !w.Signaled() {
257 return -1
258 }
259 return syscall.Signal(w & mask)
260}
261
262func (w WaitStatus) StopSignal() syscall.Signal {
263 if !w.Stopped() {
264 return -1
265 }
266 return syscall.Signal(w>>shift) & 0xFF
267}
268
269func (w WaitStatus) TrapCause() int {
270 if w.StopSignal() != SIGTRAP {
271 return -1
272 }
273 return int(w>>shift) >> 8
274}
275
276//sys wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error)
277
278func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
279 var status _C_int
280 wpid, err = wait4(pid, &status, options, rusage)
281 if wstatus != nil {
282 *wstatus = WaitStatus(status)
283 }
284 return
285}
286
287func Mkfifo(path string, mode uint32) (err error) {
288 return Mknod(path, mode|S_IFIFO, 0)
289}
290
291func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
292 if sa.Port < 0 || sa.Port > 0xFFFF {
293 return nil, 0, EINVAL
294 }
295 sa.raw.Family = AF_INET
296 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
297 p[0] = byte(sa.Port >> 8)
298 p[1] = byte(sa.Port)
299 for i := 0; i < len(sa.Addr); i++ {
300 sa.raw.Addr[i] = sa.Addr[i]
301 }
302 return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil
303}
304
305func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) {
306 if sa.Port < 0 || sa.Port > 0xFFFF {
307 return nil, 0, EINVAL
308 }
309 sa.raw.Family = AF_INET6
310 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
311 p[0] = byte(sa.Port >> 8)
312 p[1] = byte(sa.Port)
313 sa.raw.Scope_id = sa.ZoneId
314 for i := 0; i < len(sa.Addr); i++ {
315 sa.raw.Addr[i] = sa.Addr[i]
316 }
317 return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil
318}
319
320func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) {
321 name := sa.Name
322 n := len(name)
323 if n >= len(sa.raw.Path) {
324 return nil, 0, EINVAL
325 }
326 sa.raw.Family = AF_UNIX
327 for i := 0; i < n; i++ {
328 sa.raw.Path[i] = int8(name[i])
329 }
330 // length is family (uint16), name, NUL.
331 sl := _Socklen(2)
332 if n > 0 {
333 sl += _Socklen(n) + 1
334 }
335 if sa.raw.Path[0] == '@' {
336 sa.raw.Path[0] = 0
337 // Don't count trailing NUL for abstract address.
338 sl--
339 }
340
341 return unsafe.Pointer(&sa.raw), sl, nil
342}
343
344type SockaddrLinklayer struct {
345 Protocol uint16
346 Ifindex int
347 Hatype uint16
348 Pkttype uint8
349 Halen uint8
350 Addr [8]byte
351 raw RawSockaddrLinklayer
352}
353
354func (sa *SockaddrLinklayer) sockaddr() (unsafe.Pointer, _Socklen, error) {
355 if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff {
356 return nil, 0, EINVAL
357 }
358 sa.raw.Family = AF_PACKET
359 sa.raw.Protocol = sa.Protocol
360 sa.raw.Ifindex = int32(sa.Ifindex)
361 sa.raw.Hatype = sa.Hatype
362 sa.raw.Pkttype = sa.Pkttype
363 sa.raw.Halen = sa.Halen
364 for i := 0; i < len(sa.Addr); i++ {
365 sa.raw.Addr[i] = sa.Addr[i]
366 }
367 return unsafe.Pointer(&sa.raw), SizeofSockaddrLinklayer, nil
368}
369
370type SockaddrNetlink struct {
371 Family uint16
372 Pad uint16
373 Pid uint32
374 Groups uint32
375 raw RawSockaddrNetlink
376}
377
378func (sa *SockaddrNetlink) sockaddr() (unsafe.Pointer, _Socklen, error) {
379 sa.raw.Family = AF_NETLINK
380 sa.raw.Pad = sa.Pad
381 sa.raw.Pid = sa.Pid
382 sa.raw.Groups = sa.Groups
383 return unsafe.Pointer(&sa.raw), SizeofSockaddrNetlink, nil
384}
385
386func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
387 switch rsa.Addr.Family {
388 case AF_NETLINK:
389 pp := (*RawSockaddrNetlink)(unsafe.Pointer(rsa))
390 sa := new(SockaddrNetlink)
391 sa.Family = pp.Family
392 sa.Pad = pp.Pad
393 sa.Pid = pp.Pid
394 sa.Groups = pp.Groups
395 return sa, nil
396
397 case AF_PACKET:
398 pp := (*RawSockaddrLinklayer)(unsafe.Pointer(rsa))
399 sa := new(SockaddrLinklayer)
400 sa.Protocol = pp.Protocol
401 sa.Ifindex = int(pp.Ifindex)
402 sa.Hatype = pp.Hatype
403 sa.Pkttype = pp.Pkttype
404 sa.Halen = pp.Halen
405 for i := 0; i < len(sa.Addr); i++ {
406 sa.Addr[i] = pp.Addr[i]
407 }
408 return sa, nil
409
410 case AF_UNIX:
411 pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
412 sa := new(SockaddrUnix)
413 if pp.Path[0] == 0 {
414 // "Abstract" Unix domain socket.
415 // Rewrite leading NUL as @ for textual display.
416 // (This is the standard convention.)
417 // Not friendly to overwrite in place,
418 // but the callers below don't care.
419 pp.Path[0] = '@'
420 }
421
422 // Assume path ends at NUL.
423 // This is not technically the Linux semantics for
424 // abstract Unix domain sockets--they are supposed
425 // to be uninterpreted fixed-size binary blobs--but
426 // everyone uses this convention.
427 n := 0
428 for n < len(pp.Path) && pp.Path[n] != 0 {
429 n++
430 }
431 bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
432 sa.Name = string(bytes)
433 return sa, nil
434
435 case AF_INET:
436 pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
437 sa := new(SockaddrInet4)
438 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
439 sa.Port = int(p[0])<<8 + int(p[1])
440 for i := 0; i < len(sa.Addr); i++ {
441 sa.Addr[i] = pp.Addr[i]
442 }
443 return sa, nil
444
445 case AF_INET6:
446 pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
447 sa := new(SockaddrInet6)
448 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
449 sa.Port = int(p[0])<<8 + int(p[1])
450 sa.ZoneId = pp.Scope_id
451 for i := 0; i < len(sa.Addr); i++ {
452 sa.Addr[i] = pp.Addr[i]
453 }
454 return sa, nil
455 }
456 return nil, EAFNOSUPPORT
457}
458
459func Accept(fd int) (nfd int, sa Sockaddr, err error) {
460 var rsa RawSockaddrAny
461 var len _Socklen = SizeofSockaddrAny
462 nfd, err = accept(fd, &rsa, &len)
463 if err != nil {
464 return
465 }
466 sa, err = anyToSockaddr(&rsa)
467 if err != nil {
468 Close(nfd)
469 nfd = 0
470 }
471 return
472}
473
474func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) {
475 var rsa RawSockaddrAny
476 var len _Socklen = SizeofSockaddrAny
477 nfd, err = accept4(fd, &rsa, &len, flags)
478 if err != nil {
479 return
480 }
481 if len > SizeofSockaddrAny {
482 panic("RawSockaddrAny too small")
483 }
484 sa, err = anyToSockaddr(&rsa)
485 if err != nil {
486 Close(nfd)
487 nfd = 0
488 }
489 return
490}
491
492func Getsockname(fd int) (sa Sockaddr, err error) {
493 var rsa RawSockaddrAny
494 var len _Socklen = SizeofSockaddrAny
495 if err = getsockname(fd, &rsa, &len); err != nil {
496 return
497 }
498 return anyToSockaddr(&rsa)
499}
500
501func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
502 vallen := _Socklen(4)
503 err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
504 return value, err
505}
506
507func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
508 var value IPMreq
509 vallen := _Socklen(SizeofIPMreq)
510 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
511 return &value, err
512}
513
514func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
515 var value IPMreqn
516 vallen := _Socklen(SizeofIPMreqn)
517 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
518 return &value, err
519}
520
521func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
522 var value IPv6Mreq
523 vallen := _Socklen(SizeofIPv6Mreq)
524 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
525 return &value, err
526}
527
528func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
529 var value IPv6MTUInfo
530 vallen := _Socklen(SizeofIPv6MTUInfo)
531 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
532 return &value, err
533}
534
535func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
536 var value ICMPv6Filter
537 vallen := _Socklen(SizeofICMPv6Filter)
538 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
539 return &value, err
540}
541
542func GetsockoptUcred(fd, level, opt int) (*Ucred, error) {
543 var value Ucred
544 vallen := _Socklen(SizeofUcred)
545 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
546 return &value, err
547}
548
549func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
550 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
551}
552
553func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
554 var msg Msghdr
555 var rsa RawSockaddrAny
556 msg.Name = (*byte)(unsafe.Pointer(&rsa))
557 msg.Namelen = uint32(SizeofSockaddrAny)
558 var iov Iovec
559 if len(p) > 0 {
560 iov.Base = (*byte)(unsafe.Pointer(&p[0]))
561 iov.SetLen(len(p))
562 }
563 var dummy byte
564 if len(oob) > 0 {
565 // receive at least one normal byte
566 if len(p) == 0 {
567 iov.Base = &dummy
568 iov.SetLen(1)
569 }
570 msg.Control = (*byte)(unsafe.Pointer(&oob[0]))
571 msg.SetControllen(len(oob))
572 }
573 msg.Iov = &iov
574 msg.Iovlen = 1
575 if n, err = recvmsg(fd, &msg, flags); err != nil {
576 return
577 }
578 oobn = int(msg.Controllen)
579 recvflags = int(msg.Flags)
580 // source address is only specified if the socket is unconnected
581 if rsa.Addr.Family != AF_UNSPEC {
582 from, err = anyToSockaddr(&rsa)
583 }
584 return
585}
586
587func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
588 _, err = SendmsgN(fd, p, oob, to, flags)
589 return
590}
591
592func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
593 var ptr unsafe.Pointer
594 var salen _Socklen
595 if to != nil {
596 var err error
597 ptr, salen, err = to.sockaddr()
598 if err != nil {
599 return 0, err
600 }
601 }
602 var msg Msghdr
603 msg.Name = (*byte)(unsafe.Pointer(ptr))
604 msg.Namelen = uint32(salen)
605 var iov Iovec
606 if len(p) > 0 {
607 iov.Base = (*byte)(unsafe.Pointer(&p[0]))
608 iov.SetLen(len(p))
609 }
610 var dummy byte
611 if len(oob) > 0 {
612 // send at least one normal byte
613 if len(p) == 0 {
614 iov.Base = &dummy
615 iov.SetLen(1)
616 }
617 msg.Control = (*byte)(unsafe.Pointer(&oob[0]))
618 msg.SetControllen(len(oob))
619 }
620 msg.Iov = &iov
621 msg.Iovlen = 1
622 if n, err = sendmsg(fd, &msg, flags); err != nil {
623 return 0, err
624 }
625 if len(oob) > 0 && len(p) == 0 {
626 n = 0
627 }
628 return n, nil
629}
630
631// BindToDevice binds the socket associated with fd to device.
632func BindToDevice(fd int, device string) (err error) {
633 return SetsockoptString(fd, SOL_SOCKET, SO_BINDTODEVICE, device)
634}
635
636//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
637
638func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) {
639 // The peek requests are machine-size oriented, so we wrap it
640 // to retrieve arbitrary-length data.
641
642 // The ptrace syscall differs from glibc's ptrace.
643 // Peeks returns the word in *data, not as the return value.
644
645 var buf [sizeofPtr]byte
646
647 // Leading edge. PEEKTEXT/PEEKDATA don't require aligned
648 // access (PEEKUSER warns that it might), but if we don't
649 // align our reads, we might straddle an unmapped page
650 // boundary and not get the bytes leading up to the page
651 // boundary.
652 n := 0
653 if addr%sizeofPtr != 0 {
654 err = ptrace(req, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
655 if err != nil {
656 return 0, err
657 }
658 n += copy(out, buf[addr%sizeofPtr:])
659 out = out[n:]
660 }
661
662 // Remainder.
663 for len(out) > 0 {
664 // We use an internal buffer to guarantee alignment.
665 // It's not documented if this is necessary, but we're paranoid.
666 err = ptrace(req, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
667 if err != nil {
668 return n, err
669 }
670 copied := copy(out, buf[0:])
671 n += copied
672 out = out[copied:]
673 }
674
675 return n, nil
676}
677
678func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) {
679 return ptracePeek(PTRACE_PEEKTEXT, pid, addr, out)
680}
681
682func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {
683 return ptracePeek(PTRACE_PEEKDATA, pid, addr, out)
684}
685
686func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) {
687 // As for ptracePeek, we need to align our accesses to deal
688 // with the possibility of straddling an invalid page.
689
690 // Leading edge.
691 n := 0
692 if addr%sizeofPtr != 0 {
693 var buf [sizeofPtr]byte
694 err = ptrace(peekReq, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
695 if err != nil {
696 return 0, err
697 }
698 n += copy(buf[addr%sizeofPtr:], data)
699 word := *((*uintptr)(unsafe.Pointer(&buf[0])))
700 err = ptrace(pokeReq, pid, addr-addr%sizeofPtr, word)
701 if err != nil {
702 return 0, err
703 }
704 data = data[n:]
705 }
706
707 // Interior.
708 for len(data) > sizeofPtr {
709 word := *((*uintptr)(unsafe.Pointer(&data[0])))
710 err = ptrace(pokeReq, pid, addr+uintptr(n), word)
711 if err != nil {
712 return n, err
713 }
714 n += sizeofPtr
715 data = data[sizeofPtr:]
716 }
717
718 // Trailing edge.
719 if len(data) > 0 {
720 var buf [sizeofPtr]byte
721 err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
722 if err != nil {
723 return n, err
724 }
725 copy(buf[0:], data)
726 word := *((*uintptr)(unsafe.Pointer(&buf[0])))
727 err = ptrace(pokeReq, pid, addr+uintptr(n), word)
728 if err != nil {
729 return n, err
730 }
731 n += len(data)
732 }
733
734 return n, nil
735}
736
737func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) {
738 return ptracePoke(PTRACE_POKETEXT, PTRACE_PEEKTEXT, pid, addr, data)
739}
740
741func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) {
742 return ptracePoke(PTRACE_POKEDATA, PTRACE_PEEKDATA, pid, addr, data)
743}
744
745func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
746 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
747}
748
749func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
750 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
751}
752
753func PtraceSetOptions(pid int, options int) (err error) {
754 return ptrace(PTRACE_SETOPTIONS, pid, 0, uintptr(options))
755}
756
757func PtraceGetEventMsg(pid int) (msg uint, err error) {
758 var data _C_long
759 err = ptrace(PTRACE_GETEVENTMSG, pid, 0, uintptr(unsafe.Pointer(&data)))
760 msg = uint(data)
761 return
762}
763
764func PtraceCont(pid int, signal int) (err error) {
765 return ptrace(PTRACE_CONT, pid, 0, uintptr(signal))
766}
767
768func PtraceSyscall(pid int, signal int) (err error) {
769 return ptrace(PTRACE_SYSCALL, pid, 0, uintptr(signal))
770}
771
772func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) }
773
774func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) }
775
776func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) }
777
778//sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error)
779
780func Reboot(cmd int) (err error) {
781 return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
782}
783
784func clen(n []byte) int {
785 for i := 0; i < len(n); i++ {
786 if n[i] == 0 {
787 return i
788 }
789 }
790 return len(n)
791}
792
793func ReadDirent(fd int, buf []byte) (n int, err error) {
794 return Getdents(fd, buf)
795}
796
797func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
798 origlen := len(buf)
799 count = 0
800 for max != 0 && len(buf) > 0 {
801 dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
802 buf = buf[dirent.Reclen:]
803 if dirent.Ino == 0 { // File absent in directory.
804 continue
805 }
806 bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
807 var name = string(bytes[0:clen(bytes[:])])
808 if name == "." || name == ".." { // Useless names
809 continue
810 }
811 max--
812 count++
813 names = append(names, name)
814 }
815 return origlen - len(buf), count, names
816}
817
818//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
819
820func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
821 // Certain file systems get rather angry and EINVAL if you give
822 // them an empty string of data, rather than NULL.
823 if data == "" {
824 return mount(source, target, fstype, flags, nil)
825 }
826 datap, err := BytePtrFromString(data)
827 if err != nil {
828 return err
829 }
830 return mount(source, target, fstype, flags, datap)
831}
832
833// Sendto
834// Recvfrom
835// Socketpair
836
837/*
838 * Direct access
839 */
840//sys Acct(path string) (err error)
841//sys Adjtimex(buf *Timex) (state int, err error)
842//sys Chdir(path string) (err error)
843//sys Chroot(path string) (err error)
844//sys ClockGettime(clockid int32, time *Timespec) (err error)
845//sys Close(fd int) (err error)
846//sys Dup(oldfd int) (fd int, err error)
847//sys Dup3(oldfd int, newfd int, flags int) (err error)
848//sysnb EpollCreate(size int) (fd int, err error)
849//sysnb EpollCreate1(flag int) (fd int, err error)
850//sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)
851//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
852//sys Exit(code int) = SYS_EXIT_GROUP
853//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
854//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error)
855//sys Fchdir(fd int) (err error)
856//sys Fchmod(fd int, mode uint32) (err error)
857//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
858//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
859//sys fcntl(fd int, cmd int, arg int) (val int, err error)
860//sys Fdatasync(fd int) (err error)
861//sys Flock(fd int, how int) (err error)
862//sys Fsync(fd int) (err error)
863//sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64
864//sysnb Getpgid(pid int) (pgid int, err error)
865
866func Getpgrp() (pid int) {
867 pid, _ = Getpgid(0)
868 return
869}
870
871//sysnb Getpid() (pid int)
872//sysnb Getppid() (ppid int)
873//sys Getpriority(which int, who int) (prio int, err error)
874//sysnb Getrusage(who int, rusage *Rusage) (err error)
875//sysnb Gettid() (tid int)
876//sys Getxattr(path string, attr string, dest []byte) (sz int, err error)
877//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)
878//sysnb InotifyInit1(flags int) (fd int, err error)
879//sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)
880//sysnb Kill(pid int, sig syscall.Signal) (err error)
881//sys Klogctl(typ int, buf []byte) (n int, err error) = SYS_SYSLOG
882//sys Listxattr(path string, dest []byte) (sz int, err error)
883//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
884//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
885//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
886//sys Pause() (err error)
887//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
888//sysnb prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) = SYS_PRLIMIT64
889//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
890//sys read(fd int, p []byte) (n int, err error)
891//sys Removexattr(path string, attr string) (err error)
892//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
893//sys Setdomainname(p []byte) (err error)
894//sys Sethostname(p []byte) (err error)
895//sysnb Setpgid(pid int, pgid int) (err error)
896//sysnb Setsid() (pid int, err error)
897//sysnb Settimeofday(tv *Timeval) (err error)
898
899// issue 1435.
900// On linux Setuid and Setgid only affects the current thread, not the process.
901// This does not match what most callers expect so we must return an error
902// here rather than letting the caller think that the call succeeded.
903
904func Setuid(uid int) (err error) {
905 return EOPNOTSUPP
906}
907
908func Setgid(uid int) (err error) {
909 return EOPNOTSUPP
910}
911
912//sys Setpriority(which int, who int, prio int) (err error)
913//sys Setxattr(path string, attr string, data []byte, flags int) (err error)
914//sys Sync()
915//sysnb Sysinfo(info *Sysinfo_t) (err error)
916//sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error)
917//sysnb Tgkill(tgid int, tid int, sig syscall.Signal) (err error)
918//sysnb Times(tms *Tms) (ticks uintptr, err error)
919//sysnb Umask(mask int) (oldmask int)
920//sysnb Uname(buf *Utsname) (err error)
921//sys Unmount(target string, flags int) (err error) = SYS_UMOUNT2
922//sys Unshare(flags int) (err error)
923//sys Ustat(dev int, ubuf *Ustat_t) (err error)
924//sys Utime(path string, buf *Utimbuf) (err error)
925//sys write(fd int, p []byte) (n int, err error)
926//sys exitThread(code int) (err error) = SYS_EXIT
927//sys readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ
928//sys writelen(fd int, p *byte, np int) (n int, err error) = SYS_WRITE
929
930// mmap varies by architecture; see syscall_linux_*.go.
931//sys munmap(addr uintptr, length uintptr) (err error)
932
933var mapper = &mmapper{
934 active: make(map[*byte][]byte),
935 mmap: mmap,
936 munmap: munmap,
937}
938
939func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
940 return mapper.Mmap(fd, offset, length, prot, flags)
941}
942
943func Munmap(b []byte) (err error) {
944 return mapper.Munmap(b)
945}
946
947//sys Madvise(b []byte, advice int) (err error)
948//sys Mprotect(b []byte, prot int) (err error)
949//sys Mlock(b []byte) (err error)
950//sys Munlock(b []byte) (err error)
951//sys Mlockall(flags int) (err error)
952//sys Munlockall() (err error)
953
954/*
955 * Unimplemented
956 */
957// AddKey
958// AfsSyscall
959// Alarm
960// ArchPrctl
961// Brk
962// Capget
963// Capset
964// ClockGetres
965// ClockNanosleep
966// ClockSettime
967// Clone
968// CreateModule
969// DeleteModule
970// EpollCtlOld
971// EpollPwait
972// EpollWaitOld
973// Eventfd
974// Execve
975// Fgetxattr
976// Flistxattr
977// Fork
978// Fremovexattr
979// Fsetxattr
980// Futex
981// GetKernelSyms
982// GetMempolicy
983// GetRobustList
984// GetThreadArea
985// Getitimer
986// Getpmsg
987// IoCancel
988// IoDestroy
989// IoGetevents
990// IoSetup
991// IoSubmit
992// Ioctl
993// IoprioGet
994// IoprioSet
995// KexecLoad
996// Keyctl
997// Lgetxattr
998// Llistxattr
999// LookupDcookie
1000// Lremovexattr
1001// Lsetxattr
1002// Mbind
1003// MigratePages
1004// Mincore
1005// ModifyLdt
1006// Mount
1007// MovePages
1008// Mprotect
1009// MqGetsetattr
1010// MqNotify
1011// MqOpen
1012// MqTimedreceive
1013// MqTimedsend
1014// MqUnlink
1015// Mremap
1016// Msgctl
1017// Msgget
1018// Msgrcv
1019// Msgsnd
1020// Msync
1021// Newfstatat
1022// Nfsservctl
1023// Personality
1024// Poll
1025// Ppoll
1026// Pselect6
1027// Ptrace
1028// Putpmsg
1029// QueryModule
1030// Quotactl
1031// Readahead
1032// Readv
1033// RemapFilePages
1034// RequestKey
1035// RestartSyscall
1036// RtSigaction
1037// RtSigpending
1038// RtSigprocmask
1039// RtSigqueueinfo
1040// RtSigreturn
1041// RtSigsuspend
1042// RtSigtimedwait
1043// SchedGetPriorityMax
1044// SchedGetPriorityMin
1045// SchedGetaffinity
1046// SchedGetparam
1047// SchedGetscheduler
1048// SchedRrGetInterval
1049// SchedSetaffinity
1050// SchedSetparam
1051// SchedYield
1052// Security
1053// Semctl
1054// Semget
1055// Semop
1056// Semtimedop
1057// SetMempolicy
1058// SetRobustList
1059// SetThreadArea
1060// SetTidAddress
1061// Shmat
1062// Shmctl
1063// Shmdt
1064// Shmget
1065// Sigaltstack
1066// Signalfd
1067// Swapoff
1068// Swapon
1069// Sysfs
1070// TimerCreate
1071// TimerDelete
1072// TimerGetoverrun
1073// TimerGettime
1074// TimerSettime
1075// Timerfd
1076// Tkill (obsolete)
1077// Tuxcall
1078// Umount2
1079// Uselib
1080// Utimensat
1081// Vfork
1082// Vhangup
1083// Vmsplice
1084// Vserver
1085// Waitid
1086// _Sysctl
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_386.go
deleted file mode 100644
index 7171219..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_386.go
+++ /dev/null
@@ -1,388 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
6// so that go vet can check that they are correct.
7
8// +build 386,linux
9
10package unix
11
12import (
13 "syscall"
14 "unsafe"
15)
16
17func Getpagesize() int { return 4096 }
18
19func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
20
21func NsecToTimespec(nsec int64) (ts Timespec) {
22 ts.Sec = int32(nsec / 1e9)
23 ts.Nsec = int32(nsec % 1e9)
24 return
25}
26
27func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
28
29func NsecToTimeval(nsec int64) (tv Timeval) {
30 nsec += 999 // round up to microsecond
31 tv.Sec = int32(nsec / 1e9)
32 tv.Usec = int32(nsec % 1e9 / 1e3)
33 return
34}
35
36//sysnb pipe(p *[2]_C_int) (err error)
37
38func Pipe(p []int) (err error) {
39 if len(p) != 2 {
40 return EINVAL
41 }
42 var pp [2]_C_int
43 err = pipe(&pp)
44 p[0] = int(pp[0])
45 p[1] = int(pp[1])
46 return
47}
48
49//sysnb pipe2(p *[2]_C_int, flags int) (err error)
50
51func Pipe2(p []int, flags int) (err error) {
52 if len(p) != 2 {
53 return EINVAL
54 }
55 var pp [2]_C_int
56 err = pipe2(&pp, flags)
57 p[0] = int(pp[0])
58 p[1] = int(pp[1])
59 return
60}
61
62// 64-bit file system and 32-bit uid calls
63// (386 default is 32-bit file system and 16-bit uid).
64//sys Dup2(oldfd int, newfd int) (err error)
65//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64
66//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
67//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
68//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64
69//sysnb Getegid() (egid int) = SYS_GETEGID32
70//sysnb Geteuid() (euid int) = SYS_GETEUID32
71//sysnb Getgid() (gid int) = SYS_GETGID32
72//sysnb Getuid() (uid int) = SYS_GETUID32
73//sysnb InotifyInit() (fd int, err error)
74//sys Ioperm(from int, num int, on int) (err error)
75//sys Iopl(level int) (err error)
76//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32
77//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
78//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
79//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
80//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
81//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
82//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32
83//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
84//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
85//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
86//sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
87//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
88//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
89//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
90//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
91//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) = SYS_GETGROUPS32
92//sysnb setgroups(n int, list *_Gid_t) (err error) = SYS_SETGROUPS32
93//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
94
95//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
96
97func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
98 page := uintptr(offset / 4096)
99 if offset != int64(page)*4096 {
100 return 0, EINVAL
101 }
102 return mmap2(addr, length, prot, flags, fd, page)
103}
104
105type rlimit32 struct {
106 Cur uint32
107 Max uint32
108}
109
110//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT
111
112const rlimInf32 = ^uint32(0)
113const rlimInf64 = ^uint64(0)
114
115func Getrlimit(resource int, rlim *Rlimit) (err error) {
116 err = prlimit(0, resource, nil, rlim)
117 if err != ENOSYS {
118 return err
119 }
120
121 rl := rlimit32{}
122 err = getrlimit(resource, &rl)
123 if err != nil {
124 return
125 }
126
127 if rl.Cur == rlimInf32 {
128 rlim.Cur = rlimInf64
129 } else {
130 rlim.Cur = uint64(rl.Cur)
131 }
132
133 if rl.Max == rlimInf32 {
134 rlim.Max = rlimInf64
135 } else {
136 rlim.Max = uint64(rl.Max)
137 }
138 return
139}
140
141//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
142
143func Setrlimit(resource int, rlim *Rlimit) (err error) {
144 err = prlimit(0, resource, rlim, nil)
145 if err != ENOSYS {
146 return err
147 }
148
149 rl := rlimit32{}
150 if rlim.Cur == rlimInf64 {
151 rl.Cur = rlimInf32
152 } else if rlim.Cur < uint64(rlimInf32) {
153 rl.Cur = uint32(rlim.Cur)
154 } else {
155 return EINVAL
156 }
157 if rlim.Max == rlimInf64 {
158 rl.Max = rlimInf32
159 } else if rlim.Max < uint64(rlimInf32) {
160 rl.Max = uint32(rlim.Max)
161 } else {
162 return EINVAL
163 }
164
165 return setrlimit(resource, &rl)
166}
167
168// Underlying system call writes to newoffset via pointer.
169// Implemented in assembly to avoid allocation.
170func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
171
172func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
173 newoffset, errno := seek(fd, offset, whence)
174 if errno != 0 {
175 return 0, errno
176 }
177 return newoffset, nil
178}
179
180// Vsyscalls on amd64.
181//sysnb Gettimeofday(tv *Timeval) (err error)
182//sysnb Time(t *Time_t) (tt Time_t, err error)
183
184// On x86 Linux, all the socket calls go through an extra indirection,
185// I think because the 5-register system call interface can't handle
186// the 6-argument calls like sendto and recvfrom. Instead the
187// arguments to the underlying system call are the number below
188// and a pointer to an array of uintptr. We hide the pointer in the
189// socketcall assembly to avoid allocation on every system call.
190
191const (
192 // see linux/net.h
193 _SOCKET = 1
194 _BIND = 2
195 _CONNECT = 3
196 _LISTEN = 4
197 _ACCEPT = 5
198 _GETSOCKNAME = 6
199 _GETPEERNAME = 7
200 _SOCKETPAIR = 8
201 _SEND = 9
202 _RECV = 10
203 _SENDTO = 11
204 _RECVFROM = 12
205 _SHUTDOWN = 13
206 _SETSOCKOPT = 14
207 _GETSOCKOPT = 15
208 _SENDMSG = 16
209 _RECVMSG = 17
210 _ACCEPT4 = 18
211 _RECVMMSG = 19
212 _SENDMMSG = 20
213)
214
215func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
216func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
217
218func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
219 fd, e := socketcall(_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
220 if e != 0 {
221 err = e
222 }
223 return
224}
225
226func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
227 fd, e := socketcall(_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
228 if e != 0 {
229 err = e
230 }
231 return
232}
233
234func getsockname(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
235 _, e := rawsocketcall(_GETSOCKNAME, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
236 if e != 0 {
237 err = e
238 }
239 return
240}
241
242func getpeername(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
243 _, e := rawsocketcall(_GETPEERNAME, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
244 if e != 0 {
245 err = e
246 }
247 return
248}
249
250func socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) {
251 _, e := rawsocketcall(_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0)
252 if e != 0 {
253 err = e
254 }
255 return
256}
257
258func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
259 _, e := socketcall(_BIND, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
260 if e != 0 {
261 err = e
262 }
263 return
264}
265
266func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
267 _, e := socketcall(_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
268 if e != 0 {
269 err = e
270 }
271 return
272}
273
274func socket(domain int, typ int, proto int) (fd int, err error) {
275 fd, e := rawsocketcall(_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
276 if e != 0 {
277 err = e
278 }
279 return
280}
281
282func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
283 _, e := socketcall(_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
284 if e != 0 {
285 err = e
286 }
287 return
288}
289
290func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
291 _, e := socketcall(_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), vallen, 0)
292 if e != 0 {
293 err = e
294 }
295 return
296}
297
298func recvfrom(s int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
299 var base uintptr
300 if len(p) > 0 {
301 base = uintptr(unsafe.Pointer(&p[0]))
302 }
303 n, e := socketcall(_RECVFROM, uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
304 if e != 0 {
305 err = e
306 }
307 return
308}
309
310func sendto(s int, p []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
311 var base uintptr
312 if len(p) > 0 {
313 base = uintptr(unsafe.Pointer(&p[0]))
314 }
315 _, e := socketcall(_SENDTO, uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(to), uintptr(addrlen))
316 if e != 0 {
317 err = e
318 }
319 return
320}
321
322func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
323 n, e := socketcall(_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
324 if e != 0 {
325 err = e
326 }
327 return
328}
329
330func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
331 n, e := socketcall(_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
332 if e != 0 {
333 err = e
334 }
335 return
336}
337
338func Listen(s int, n int) (err error) {
339 _, e := socketcall(_LISTEN, uintptr(s), uintptr(n), 0, 0, 0, 0)
340 if e != 0 {
341 err = e
342 }
343 return
344}
345
346func Shutdown(s, how int) (err error) {
347 _, e := socketcall(_SHUTDOWN, uintptr(s), uintptr(how), 0, 0, 0, 0)
348 if e != 0 {
349 err = e
350 }
351 return
352}
353
354func Fstatfs(fd int, buf *Statfs_t) (err error) {
355 _, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
356 if e != 0 {
357 err = e
358 }
359 return
360}
361
362func Statfs(path string, buf *Statfs_t) (err error) {
363 pathp, err := BytePtrFromString(path)
364 if err != nil {
365 return err
366 }
367 _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
368 if e != 0 {
369 err = e
370 }
371 return
372}
373
374func (r *PtraceRegs) PC() uint64 { return uint64(uint32(r.Eip)) }
375
376func (r *PtraceRegs) SetPC(pc uint64) { r.Eip = int32(pc) }
377
378func (iov *Iovec) SetLen(length int) {
379 iov.Len = uint32(length)
380}
381
382func (msghdr *Msghdr) SetControllen(length int) {
383 msghdr.Controllen = uint32(length)
384}
385
386func (cmsg *Cmsghdr) SetLen(length int) {
387 cmsg.Len = uint32(length)
388}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_amd64.go
deleted file mode 100644
index ae70c2a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_amd64.go
+++ /dev/null
@@ -1,146 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build amd64,linux
6
7package unix
8
9import "syscall"
10
11//sys Dup2(oldfd int, newfd int) (err error)
12//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
13//sys Fchown(fd int, uid int, gid int) (err error)
14//sys Fstat(fd int, stat *Stat_t) (err error)
15//sys Fstatfs(fd int, buf *Statfs_t) (err error)
16//sys Ftruncate(fd int, length int64) (err error)
17//sysnb Getegid() (egid int)
18//sysnb Geteuid() (euid int)
19//sysnb Getgid() (gid int)
20//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
21//sysnb Getuid() (uid int)
22//sysnb InotifyInit() (fd int, err error)
23//sys Ioperm(from int, num int, on int) (err error)
24//sys Iopl(level int) (err error)
25//sys Lchown(path string, uid int, gid int) (err error)
26//sys Listen(s int, n int) (err error)
27//sys Lstat(path string, stat *Stat_t) (err error)
28//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
29//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
30//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
31//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
32//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
33//sys Setfsgid(gid int) (err error)
34//sys Setfsuid(uid int) (err error)
35//sysnb Setregid(rgid int, egid int) (err error)
36//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
37//sysnb Setresuid(ruid int, euid int, suid int) (err error)
38//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
39//sysnb Setreuid(ruid int, euid int) (err error)
40//sys Shutdown(fd int, how int) (err error)
41//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
42//sys Stat(path string, stat *Stat_t) (err error)
43//sys Statfs(path string, buf *Statfs_t) (err error)
44//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
45//sys Truncate(path string, length int64) (err error)
46//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
47//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
48//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
49//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
50//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
51//sysnb setgroups(n int, list *_Gid_t) (err error)
52//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
53//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
54//sysnb socket(domain int, typ int, proto int) (fd int, err error)
55//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
56//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
57//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
58//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
59//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
60//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
61//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
62//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
63
64//go:noescape
65func gettimeofday(tv *Timeval) (err syscall.Errno)
66
67func Gettimeofday(tv *Timeval) (err error) {
68 errno := gettimeofday(tv)
69 if errno != 0 {
70 return errno
71 }
72 return nil
73}
74
75func Getpagesize() int { return 4096 }
76
77func Time(t *Time_t) (tt Time_t, err error) {
78 var tv Timeval
79 errno := gettimeofday(&tv)
80 if errno != 0 {
81 return 0, errno
82 }
83 if t != nil {
84 *t = Time_t(tv.Sec)
85 }
86 return Time_t(tv.Sec), nil
87}
88
89func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
90
91func NsecToTimespec(nsec int64) (ts Timespec) {
92 ts.Sec = nsec / 1e9
93 ts.Nsec = nsec % 1e9
94 return
95}
96
97func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
98
99func NsecToTimeval(nsec int64) (tv Timeval) {
100 nsec += 999 // round up to microsecond
101 tv.Sec = nsec / 1e9
102 tv.Usec = nsec % 1e9 / 1e3
103 return
104}
105
106//sysnb pipe(p *[2]_C_int) (err error)
107
108func Pipe(p []int) (err error) {
109 if len(p) != 2 {
110 return EINVAL
111 }
112 var pp [2]_C_int
113 err = pipe(&pp)
114 p[0] = int(pp[0])
115 p[1] = int(pp[1])
116 return
117}
118
119//sysnb pipe2(p *[2]_C_int, flags int) (err error)
120
121func Pipe2(p []int, flags int) (err error) {
122 if len(p) != 2 {
123 return EINVAL
124 }
125 var pp [2]_C_int
126 err = pipe2(&pp, flags)
127 p[0] = int(pp[0])
128 p[1] = int(pp[1])
129 return
130}
131
132func (r *PtraceRegs) PC() uint64 { return r.Rip }
133
134func (r *PtraceRegs) SetPC(pc uint64) { r.Rip = pc }
135
136func (iov *Iovec) SetLen(length int) {
137 iov.Len = uint64(length)
138}
139
140func (msghdr *Msghdr) SetControllen(length int) {
141 msghdr.Controllen = uint64(length)
142}
143
144func (cmsg *Cmsghdr) SetLen(length int) {
145 cmsg.Len = uint64(length)
146}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_arm.go
deleted file mode 100644
index abc41c3..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_arm.go
+++ /dev/null
@@ -1,233 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build arm,linux
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func Getpagesize() int { return 4096 }
15
16func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
17
18func NsecToTimespec(nsec int64) (ts Timespec) {
19 ts.Sec = int32(nsec / 1e9)
20 ts.Nsec = int32(nsec % 1e9)
21 return
22}
23
24func NsecToTimeval(nsec int64) (tv Timeval) {
25 nsec += 999 // round up to microsecond
26 tv.Sec = int32(nsec / 1e9)
27 tv.Usec = int32(nsec % 1e9 / 1e3)
28 return
29}
30
31func Pipe(p []int) (err error) {
32 if len(p) != 2 {
33 return EINVAL
34 }
35 var pp [2]_C_int
36 err = pipe2(&pp, 0)
37 p[0] = int(pp[0])
38 p[1] = int(pp[1])
39 return
40}
41
42//sysnb pipe2(p *[2]_C_int, flags int) (err error)
43
44func Pipe2(p []int, flags int) (err error) {
45 if len(p) != 2 {
46 return EINVAL
47 }
48 var pp [2]_C_int
49 err = pipe2(&pp, flags)
50 p[0] = int(pp[0])
51 p[1] = int(pp[1])
52 return
53}
54
55// Underlying system call writes to newoffset via pointer.
56// Implemented in assembly to avoid allocation.
57func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
58
59func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
60 newoffset, errno := seek(fd, offset, whence)
61 if errno != 0 {
62 return 0, errno
63 }
64 return newoffset, nil
65}
66
67//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
68//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
69//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
70//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
71//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) = SYS_GETGROUPS32
72//sysnb setgroups(n int, list *_Gid_t) (err error) = SYS_SETGROUPS32
73//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
74//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
75//sysnb socket(domain int, typ int, proto int) (fd int, err error)
76//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
77//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
78//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
79//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
80//sysnb socketpair(domain int, typ int, flags int, fd *[2]int32) (err error)
81//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
82//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
83
84// 64-bit file system and 32-bit uid calls
85// (16-bit uid calls are not always supported in newer kernels)
86//sys Dup2(oldfd int, newfd int) (err error)
87//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
88//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
89//sysnb Getegid() (egid int) = SYS_GETEGID32
90//sysnb Geteuid() (euid int) = SYS_GETEUID32
91//sysnb Getgid() (gid int) = SYS_GETGID32
92//sysnb Getuid() (uid int) = SYS_GETUID32
93//sysnb InotifyInit() (fd int, err error)
94//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32
95//sys Listen(s int, n int) (err error)
96//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
97//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
98//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
99//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
100//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32
101//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
102//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
103//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
104//sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
105//sys Shutdown(fd int, how int) (err error)
106//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
107//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
108
109// Vsyscalls on amd64.
110//sysnb Gettimeofday(tv *Timeval) (err error)
111//sysnb Time(t *Time_t) (tt Time_t, err error)
112
113//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
114//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
115//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
116//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64
117
118func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
119 _, _, e1 := Syscall6(SYS_ARM_FADVISE64_64, uintptr(fd), uintptr(advice), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32))
120 if e1 != 0 {
121 err = errnoErr(e1)
122 }
123 return
124}
125
126//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
127
128func Fstatfs(fd int, buf *Statfs_t) (err error) {
129 _, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
130 if e != 0 {
131 err = e
132 }
133 return
134}
135
136func Statfs(path string, buf *Statfs_t) (err error) {
137 pathp, err := BytePtrFromString(path)
138 if err != nil {
139 return err
140 }
141 _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
142 if e != 0 {
143 err = e
144 }
145 return
146}
147
148func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
149 page := uintptr(offset / 4096)
150 if offset != int64(page)*4096 {
151 return 0, EINVAL
152 }
153 return mmap2(addr, length, prot, flags, fd, page)
154}
155
156type rlimit32 struct {
157 Cur uint32
158 Max uint32
159}
160
161//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT
162
163const rlimInf32 = ^uint32(0)
164const rlimInf64 = ^uint64(0)
165
166func Getrlimit(resource int, rlim *Rlimit) (err error) {
167 err = prlimit(0, resource, nil, rlim)
168 if err != ENOSYS {
169 return err
170 }
171
172 rl := rlimit32{}
173 err = getrlimit(resource, &rl)
174 if err != nil {
175 return
176 }
177
178 if rl.Cur == rlimInf32 {
179 rlim.Cur = rlimInf64
180 } else {
181 rlim.Cur = uint64(rl.Cur)
182 }
183
184 if rl.Max == rlimInf32 {
185 rlim.Max = rlimInf64
186 } else {
187 rlim.Max = uint64(rl.Max)
188 }
189 return
190}
191
192//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
193
194func Setrlimit(resource int, rlim *Rlimit) (err error) {
195 err = prlimit(0, resource, rlim, nil)
196 if err != ENOSYS {
197 return err
198 }
199
200 rl := rlimit32{}
201 if rlim.Cur == rlimInf64 {
202 rl.Cur = rlimInf32
203 } else if rlim.Cur < uint64(rlimInf32) {
204 rl.Cur = uint32(rlim.Cur)
205 } else {
206 return EINVAL
207 }
208 if rlim.Max == rlimInf64 {
209 rl.Max = rlimInf32
210 } else if rlim.Max < uint64(rlimInf32) {
211 rl.Max = uint32(rlim.Max)
212 } else {
213 return EINVAL
214 }
215
216 return setrlimit(resource, &rl)
217}
218
219func (r *PtraceRegs) PC() uint64 { return uint64(r.Uregs[15]) }
220
221func (r *PtraceRegs) SetPC(pc uint64) { r.Uregs[15] = uint32(pc) }
222
223func (iov *Iovec) SetLen(length int) {
224 iov.Len = uint32(length)
225}
226
227func (msghdr *Msghdr) SetControllen(length int) {
228 msghdr.Controllen = uint32(length)
229}
230
231func (cmsg *Cmsghdr) SetLen(length int) {
232 cmsg.Len = uint32(length)
233}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_arm64.go
deleted file mode 100644
index f3d72df..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_arm64.go
+++ /dev/null
@@ -1,150 +0,0 @@
1// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build arm64,linux
6
7package unix
8
9const _SYS_dup = SYS_DUP3
10
11//sys Fchown(fd int, uid int, gid int) (err error)
12//sys Fstat(fd int, stat *Stat_t) (err error)
13//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
14//sys Fstatfs(fd int, buf *Statfs_t) (err error)
15//sys Ftruncate(fd int, length int64) (err error)
16//sysnb Getegid() (egid int)
17//sysnb Geteuid() (euid int)
18//sysnb Getgid() (gid int)
19//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
20//sysnb Getuid() (uid int)
21//sys Listen(s int, n int) (err error)
22//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
23//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
24//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
25//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS_PSELECT6
26//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
27//sys Setfsgid(gid int) (err error)
28//sys Setfsuid(uid int) (err error)
29//sysnb Setregid(rgid int, egid int) (err error)
30//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
31//sysnb Setresuid(ruid int, euid int, suid int) (err error)
32//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
33//sysnb Setreuid(ruid int, euid int) (err error)
34//sys Shutdown(fd int, how int) (err error)
35//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
36
37func Stat(path string, stat *Stat_t) (err error) {
38 return Fstatat(AT_FDCWD, path, stat, 0)
39}
40
41func Lchown(path string, uid int, gid int) (err error) {
42 return Fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW)
43}
44
45func Lstat(path string, stat *Stat_t) (err error) {
46 return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW)
47}
48
49//sys Statfs(path string, buf *Statfs_t) (err error)
50//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
51//sys Truncate(path string, length int64) (err error)
52//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
53//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
54//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
55//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
56//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
57//sysnb setgroups(n int, list *_Gid_t) (err error)
58//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
59//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
60//sysnb socket(domain int, typ int, proto int) (fd int, err error)
61//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
62//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
63//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
64//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
65//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
66//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
67//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
68//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
69
70func Getpagesize() int { return 65536 }
71
72//sysnb Gettimeofday(tv *Timeval) (err error)
73//sysnb Time(t *Time_t) (tt Time_t, err error)
74
75func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
76
77func NsecToTimespec(nsec int64) (ts Timespec) {
78 ts.Sec = nsec / 1e9
79 ts.Nsec = nsec % 1e9
80 return
81}
82
83func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
84
85func NsecToTimeval(nsec int64) (tv Timeval) {
86 nsec += 999 // round up to microsecond
87 tv.Sec = nsec / 1e9
88 tv.Usec = nsec % 1e9 / 1e3
89 return
90}
91
92func Pipe(p []int) (err error) {
93 if len(p) != 2 {
94 return EINVAL
95 }
96 var pp [2]_C_int
97 err = pipe2(&pp, 0)
98 p[0] = int(pp[0])
99 p[1] = int(pp[1])
100 return
101}
102
103//sysnb pipe2(p *[2]_C_int, flags int) (err error)
104
105func Pipe2(p []int, flags int) (err error) {
106 if len(p) != 2 {
107 return EINVAL
108 }
109 var pp [2]_C_int
110 err = pipe2(&pp, flags)
111 p[0] = int(pp[0])
112 p[1] = int(pp[1])
113 return
114}
115
116func (r *PtraceRegs) PC() uint64 { return r.Pc }
117
118func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
119
120func (iov *Iovec) SetLen(length int) {
121 iov.Len = uint64(length)
122}
123
124func (msghdr *Msghdr) SetControllen(length int) {
125 msghdr.Controllen = uint64(length)
126}
127
128func (cmsg *Cmsghdr) SetLen(length int) {
129 cmsg.Len = uint64(length)
130}
131
132func InotifyInit() (fd int, err error) {
133 return InotifyInit1(0)
134}
135
136// TODO(dfc): constants that should be in zsysnum_linux_arm64.go, remove
137// these when the deprecated syscalls that the syscall package relies on
138// are removed.
139const (
140 SYS_GETPGRP = 1060
141 SYS_UTIMES = 1037
142 SYS_FUTIMESAT = 1066
143 SYS_PAUSE = 1061
144 SYS_USTAT = 1070
145 SYS_UTIME = 1063
146 SYS_LCHOWN = 1032
147 SYS_TIME = 1062
148 SYS_EPOLL_CREATE = 1042
149 SYS_EPOLL_WAIT = 1069
150)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_ppc64x.go
deleted file mode 100644
index 67eed63..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_linux_ppc64x.go
+++ /dev/null
@@ -1,96 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build linux
6// +build ppc64 ppc64le
7
8package unix
9
10//sys Fchown(fd int, uid int, gid int) (err error)
11//sys Fstat(fd int, stat *Stat_t) (err error)
12//sys Fstatfs(fd int, buf *Statfs_t) (err error)
13//sys Ftruncate(fd int, length int64) (err error)
14//sysnb Getegid() (egid int)
15//sysnb Geteuid() (euid int)
16//sysnb Getgid() (gid int)
17//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_UGETRLIMIT
18//sysnb Getuid() (uid int)
19//sys Ioperm(from int, num int, on int) (err error)
20//sys Iopl(level int) (err error)
21//sys Lchown(path string, uid int, gid int) (err error)
22//sys Listen(s int, n int) (err error)
23//sys Lstat(path string, stat *Stat_t) (err error)
24//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
25//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
26//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
27//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
28//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
29//sys Setfsgid(gid int) (err error)
30//sys Setfsuid(uid int) (err error)
31//sysnb Setregid(rgid int, egid int) (err error)
32//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
33//sysnb Setresuid(ruid int, euid int, suid int) (err error)
34//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
35//sysnb Setreuid(ruid int, euid int) (err error)
36//sys Shutdown(fd int, how int) (err error)
37//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
38//sys Stat(path string, stat *Stat_t) (err error)
39//sys Statfs(path string, buf *Statfs_t) (err error)
40//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) = SYS_SYNC_FILE_RANGE2
41//sys Truncate(path string, length int64) (err error)
42//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
43//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
44//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
45//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
46//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
47//sysnb setgroups(n int, list *_Gid_t) (err error)
48//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
49//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
50//sysnb socket(domain int, typ int, proto int) (fd int, err error)
51//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
52//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
53//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
54//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
55//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
56//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
57//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
58//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
59
60func Getpagesize() int { return 65536 }
61
62//sysnb Gettimeofday(tv *Timeval) (err error)
63//sysnb Time(t *Time_t) (tt Time_t, err error)
64
65func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
66
67func NsecToTimespec(nsec int64) (ts Timespec) {
68 ts.Sec = nsec / 1e9
69 ts.Nsec = nsec % 1e9
70 return
71}
72
73func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
74
75func NsecToTimeval(nsec int64) (tv Timeval) {
76 nsec += 999 // round up to microsecond
77 tv.Sec = nsec / 1e9
78 tv.Usec = nsec % 1e9 / 1e3
79 return
80}
81
82func (r *PtraceRegs) PC() uint64 { return r.Nip }
83
84func (r *PtraceRegs) SetPC(pc uint64) { r.Nip = pc }
85
86func (iov *Iovec) SetLen(length int) {
87 iov.Len = uint64(length)
88}
89
90func (msghdr *Msghdr) SetControllen(length int) {
91 msghdr.Controllen = uint64(length)
92}
93
94func (cmsg *Cmsghdr) SetLen(length int) {
95 cmsg.Len = uint64(length)
96}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd.go
deleted file mode 100644
index c4e945c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd.go
+++ /dev/null
@@ -1,492 +0,0 @@
1// Copyright 2009,2010 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// NetBSD system calls.
6// This file is compiled as ordinary Go code,
7// but it is also input to mksyscall,
8// which parses the //sys lines and generates system call stubs.
9// Note that sometimes we use a lowercase //sys name and wrap
10// it in our own nicer implementation, either here or in
11// syscall_bsd.go or syscall_unix.go.
12
13package unix
14
15import (
16 "syscall"
17 "unsafe"
18)
19
20type SockaddrDatalink struct {
21 Len uint8
22 Family uint8
23 Index uint16
24 Type uint8
25 Nlen uint8
26 Alen uint8
27 Slen uint8
28 Data [12]int8
29 raw RawSockaddrDatalink
30}
31
32func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
33
34func sysctlNodes(mib []_C_int) (nodes []Sysctlnode, err error) {
35 var olen uintptr
36
37 // Get a list of all sysctl nodes below the given MIB by performing
38 // a sysctl for the given MIB with CTL_QUERY appended.
39 mib = append(mib, CTL_QUERY)
40 qnode := Sysctlnode{Flags: SYSCTL_VERS_1}
41 qp := (*byte)(unsafe.Pointer(&qnode))
42 sz := unsafe.Sizeof(qnode)
43 if err = sysctl(mib, nil, &olen, qp, sz); err != nil {
44 return nil, err
45 }
46
47 // Now that we know the size, get the actual nodes.
48 nodes = make([]Sysctlnode, olen/sz)
49 np := (*byte)(unsafe.Pointer(&nodes[0]))
50 if err = sysctl(mib, np, &olen, qp, sz); err != nil {
51 return nil, err
52 }
53
54 return nodes, nil
55}
56
57func nametomib(name string) (mib []_C_int, err error) {
58
59 // Split name into components.
60 var parts []string
61 last := 0
62 for i := 0; i < len(name); i++ {
63 if name[i] == '.' {
64 parts = append(parts, name[last:i])
65 last = i + 1
66 }
67 }
68 parts = append(parts, name[last:])
69
70 // Discover the nodes and construct the MIB OID.
71 for partno, part := range parts {
72 nodes, err := sysctlNodes(mib)
73 if err != nil {
74 return nil, err
75 }
76 for _, node := range nodes {
77 n := make([]byte, 0)
78 for i := range node.Name {
79 if node.Name[i] != 0 {
80 n = append(n, byte(node.Name[i]))
81 }
82 }
83 if string(n) == part {
84 mib = append(mib, _C_int(node.Num))
85 break
86 }
87 }
88 if len(mib) != partno+1 {
89 return nil, EINVAL
90 }
91 }
92
93 return mib, nil
94}
95
96// ParseDirent parses up to max directory entries in buf,
97// appending the names to names. It returns the number
98// bytes consumed from buf, the number of entries added
99// to names, and the new names slice.
100func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
101 origlen := len(buf)
102 for max != 0 && len(buf) > 0 {
103 dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
104 if dirent.Reclen == 0 {
105 buf = nil
106 break
107 }
108 buf = buf[dirent.Reclen:]
109 if dirent.Fileno == 0 { // File absent in directory.
110 continue
111 }
112 bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
113 var name = string(bytes[0:dirent.Namlen])
114 if name == "." || name == ".." { // Useless names
115 continue
116 }
117 max--
118 count++
119 names = append(names, name)
120 }
121 return origlen - len(buf), count, names
122}
123
124//sysnb pipe() (fd1 int, fd2 int, err error)
125func Pipe(p []int) (err error) {
126 if len(p) != 2 {
127 return EINVAL
128 }
129 p[0], p[1], err = pipe()
130 return
131}
132
133//sys getdents(fd int, buf []byte) (n int, err error)
134func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
135 return getdents(fd, buf)
136}
137
138// TODO
139func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
140 return -1, ENOSYS
141}
142
143/*
144 * Exposed directly
145 */
146//sys Access(path string, mode uint32) (err error)
147//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
148//sys Chdir(path string) (err error)
149//sys Chflags(path string, flags int) (err error)
150//sys Chmod(path string, mode uint32) (err error)
151//sys Chown(path string, uid int, gid int) (err error)
152//sys Chroot(path string) (err error)
153//sys Close(fd int) (err error)
154//sys Dup(fd int) (nfd int, err error)
155//sys Dup2(from int, to int) (err error)
156//sys Exit(code int)
157//sys Fchdir(fd int) (err error)
158//sys Fchflags(fd int, flags int) (err error)
159//sys Fchmod(fd int, mode uint32) (err error)
160//sys Fchown(fd int, uid int, gid int) (err error)
161//sys Flock(fd int, how int) (err error)
162//sys Fpathconf(fd int, name int) (val int, err error)
163//sys Fstat(fd int, stat *Stat_t) (err error)
164//sys Fsync(fd int) (err error)
165//sys Ftruncate(fd int, length int64) (err error)
166//sysnb Getegid() (egid int)
167//sysnb Geteuid() (uid int)
168//sysnb Getgid() (gid int)
169//sysnb Getpgid(pid int) (pgid int, err error)
170//sysnb Getpgrp() (pgrp int)
171//sysnb Getpid() (pid int)
172//sysnb Getppid() (ppid int)
173//sys Getpriority(which int, who int) (prio int, err error)
174//sysnb Getrlimit(which int, lim *Rlimit) (err error)
175//sysnb Getrusage(who int, rusage *Rusage) (err error)
176//sysnb Getsid(pid int) (sid int, err error)
177//sysnb Gettimeofday(tv *Timeval) (err error)
178//sysnb Getuid() (uid int)
179//sys Issetugid() (tainted bool)
180//sys Kill(pid int, signum syscall.Signal) (err error)
181//sys Kqueue() (fd int, err error)
182//sys Lchown(path string, uid int, gid int) (err error)
183//sys Link(path string, link string) (err error)
184//sys Listen(s int, backlog int) (err error)
185//sys Lstat(path string, stat *Stat_t) (err error)
186//sys Mkdir(path string, mode uint32) (err error)
187//sys Mkfifo(path string, mode uint32) (err error)
188//sys Mknod(path string, mode uint32, dev int) (err error)
189//sys Mlock(b []byte) (err error)
190//sys Mlockall(flags int) (err error)
191//sys Mprotect(b []byte, prot int) (err error)
192//sys Munlock(b []byte) (err error)
193//sys Munlockall() (err error)
194//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
195//sys Open(path string, mode int, perm uint32) (fd int, err error)
196//sys Pathconf(path string, name int) (val int, err error)
197//sys Pread(fd int, p []byte, offset int64) (n int, err error)
198//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
199//sys read(fd int, p []byte) (n int, err error)
200//sys Readlink(path string, buf []byte) (n int, err error)
201//sys Rename(from string, to string) (err error)
202//sys Revoke(path string) (err error)
203//sys Rmdir(path string) (err error)
204//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
205//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
206//sysnb Setegid(egid int) (err error)
207//sysnb Seteuid(euid int) (err error)
208//sysnb Setgid(gid int) (err error)
209//sysnb Setpgid(pid int, pgid int) (err error)
210//sys Setpriority(which int, who int, prio int) (err error)
211//sysnb Setregid(rgid int, egid int) (err error)
212//sysnb Setreuid(ruid int, euid int) (err error)
213//sysnb Setrlimit(which int, lim *Rlimit) (err error)
214//sysnb Setsid() (pid int, err error)
215//sysnb Settimeofday(tp *Timeval) (err error)
216//sysnb Setuid(uid int) (err error)
217//sys Stat(path string, stat *Stat_t) (err error)
218//sys Symlink(path string, link string) (err error)
219//sys Sync() (err error)
220//sys Truncate(path string, length int64) (err error)
221//sys Umask(newmask int) (oldmask int)
222//sys Unlink(path string) (err error)
223//sys Unmount(path string, flags int) (err error)
224//sys write(fd int, p []byte) (n int, err error)
225//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
226//sys munmap(addr uintptr, length uintptr) (err error)
227//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
228//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
229
230/*
231 * Unimplemented
232 */
233// ____semctl13
234// __clone
235// __fhopen40
236// __fhstat40
237// __fhstatvfs140
238// __fstat30
239// __getcwd
240// __getfh30
241// __getlogin
242// __lstat30
243// __mount50
244// __msgctl13
245// __msync13
246// __ntp_gettime30
247// __posix_chown
248// __posix_fadvise50
249// __posix_fchown
250// __posix_lchown
251// __posix_rename
252// __setlogin
253// __shmctl13
254// __sigaction_sigtramp
255// __sigaltstack14
256// __sigpending14
257// __sigprocmask14
258// __sigsuspend14
259// __sigtimedwait
260// __stat30
261// __syscall
262// __vfork14
263// _ksem_close
264// _ksem_destroy
265// _ksem_getvalue
266// _ksem_init
267// _ksem_open
268// _ksem_post
269// _ksem_trywait
270// _ksem_unlink
271// _ksem_wait
272// _lwp_continue
273// _lwp_create
274// _lwp_ctl
275// _lwp_detach
276// _lwp_exit
277// _lwp_getname
278// _lwp_getprivate
279// _lwp_kill
280// _lwp_park
281// _lwp_self
282// _lwp_setname
283// _lwp_setprivate
284// _lwp_suspend
285// _lwp_unpark
286// _lwp_unpark_all
287// _lwp_wait
288// _lwp_wakeup
289// _pset_bind
290// _sched_getaffinity
291// _sched_getparam
292// _sched_setaffinity
293// _sched_setparam
294// acct
295// aio_cancel
296// aio_error
297// aio_fsync
298// aio_read
299// aio_return
300// aio_suspend
301// aio_write
302// break
303// clock_getres
304// clock_gettime
305// clock_settime
306// compat_09_ogetdomainname
307// compat_09_osetdomainname
308// compat_09_ouname
309// compat_10_omsgsys
310// compat_10_osemsys
311// compat_10_oshmsys
312// compat_12_fstat12
313// compat_12_getdirentries
314// compat_12_lstat12
315// compat_12_msync
316// compat_12_oreboot
317// compat_12_oswapon
318// compat_12_stat12
319// compat_13_sigaction13
320// compat_13_sigaltstack13
321// compat_13_sigpending13
322// compat_13_sigprocmask13
323// compat_13_sigreturn13
324// compat_13_sigsuspend13
325// compat_14___semctl
326// compat_14_msgctl
327// compat_14_shmctl
328// compat_16___sigaction14
329// compat_16___sigreturn14
330// compat_20_fhstatfs
331// compat_20_fstatfs
332// compat_20_getfsstat
333// compat_20_statfs
334// compat_30___fhstat30
335// compat_30___fstat13
336// compat_30___lstat13
337// compat_30___stat13
338// compat_30_fhopen
339// compat_30_fhstat
340// compat_30_fhstatvfs1
341// compat_30_getdents
342// compat_30_getfh
343// compat_30_ntp_gettime
344// compat_30_socket
345// compat_40_mount
346// compat_43_fstat43
347// compat_43_lstat43
348// compat_43_oaccept
349// compat_43_ocreat
350// compat_43_oftruncate
351// compat_43_ogetdirentries
352// compat_43_ogetdtablesize
353// compat_43_ogethostid
354// compat_43_ogethostname
355// compat_43_ogetkerninfo
356// compat_43_ogetpagesize
357// compat_43_ogetpeername
358// compat_43_ogetrlimit
359// compat_43_ogetsockname
360// compat_43_okillpg
361// compat_43_olseek
362// compat_43_ommap
363// compat_43_oquota
364// compat_43_orecv
365// compat_43_orecvfrom
366// compat_43_orecvmsg
367// compat_43_osend
368// compat_43_osendmsg
369// compat_43_osethostid
370// compat_43_osethostname
371// compat_43_osetrlimit
372// compat_43_osigblock
373// compat_43_osigsetmask
374// compat_43_osigstack
375// compat_43_osigvec
376// compat_43_otruncate
377// compat_43_owait
378// compat_43_stat43
379// execve
380// extattr_delete_fd
381// extattr_delete_file
382// extattr_delete_link
383// extattr_get_fd
384// extattr_get_file
385// extattr_get_link
386// extattr_list_fd
387// extattr_list_file
388// extattr_list_link
389// extattr_set_fd
390// extattr_set_file
391// extattr_set_link
392// extattrctl
393// fchroot
394// fdatasync
395// fgetxattr
396// fktrace
397// flistxattr
398// fork
399// fremovexattr
400// fsetxattr
401// fstatvfs1
402// fsync_range
403// getcontext
404// getitimer
405// getvfsstat
406// getxattr
407// ioctl
408// ktrace
409// lchflags
410// lchmod
411// lfs_bmapv
412// lfs_markv
413// lfs_segclean
414// lfs_segwait
415// lgetxattr
416// lio_listio
417// listxattr
418// llistxattr
419// lremovexattr
420// lseek
421// lsetxattr
422// lutimes
423// madvise
424// mincore
425// minherit
426// modctl
427// mq_close
428// mq_getattr
429// mq_notify
430// mq_open
431// mq_receive
432// mq_send
433// mq_setattr
434// mq_timedreceive
435// mq_timedsend
436// mq_unlink
437// mremap
438// msgget
439// msgrcv
440// msgsnd
441// nfssvc
442// ntp_adjtime
443// pmc_control
444// pmc_get_info
445// poll
446// pollts
447// preadv
448// profil
449// pselect
450// pset_assign
451// pset_create
452// pset_destroy
453// ptrace
454// pwritev
455// quotactl
456// rasctl
457// readv
458// reboot
459// removexattr
460// sa_enable
461// sa_preempt
462// sa_register
463// sa_setconcurrency
464// sa_stacks
465// sa_yield
466// sbrk
467// sched_yield
468// semconfig
469// semget
470// semop
471// setcontext
472// setitimer
473// setxattr
474// shmat
475// shmdt
476// shmget
477// sstk
478// statvfs1
479// swapctl
480// sysarch
481// syscall
482// timer_create
483// timer_delete
484// timer_getoverrun
485// timer_gettime
486// timer_settime
487// undelete
488// utrace
489// uuidgen
490// vadvise
491// vfork
492// writev
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_386.go
deleted file mode 100644
index 1b0e1af..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_386.go
+++ /dev/null
@@ -1,44 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build 386,netbsd
6
7package unix
8
9func Getpagesize() int { return 4096 }
10
11func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
12
13func NsecToTimespec(nsec int64) (ts Timespec) {
14 ts.Sec = int64(nsec / 1e9)
15 ts.Nsec = int32(nsec % 1e9)
16 return
17}
18
19func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
20
21func NsecToTimeval(nsec int64) (tv Timeval) {
22 nsec += 999 // round up to microsecond
23 tv.Usec = int32(nsec % 1e9 / 1e3)
24 tv.Sec = int64(nsec / 1e9)
25 return
26}
27
28func SetKevent(k *Kevent_t, fd, mode, flags int) {
29 k.Ident = uint32(fd)
30 k.Filter = uint32(mode)
31 k.Flags = uint32(flags)
32}
33
34func (iov *Iovec) SetLen(length int) {
35 iov.Len = uint32(length)
36}
37
38func (msghdr *Msghdr) SetControllen(length int) {
39 msghdr.Controllen = uint32(length)
40}
41
42func (cmsg *Cmsghdr) SetLen(length int) {
43 cmsg.Len = uint32(length)
44}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_amd64.go
deleted file mode 100644
index 1b6dcbe..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_amd64.go
+++ /dev/null
@@ -1,44 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build amd64,netbsd
6
7package unix
8
9func Getpagesize() int { return 4096 }
10
11func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
12
13func NsecToTimespec(nsec int64) (ts Timespec) {
14 ts.Sec = int64(nsec / 1e9)
15 ts.Nsec = int64(nsec % 1e9)
16 return
17}
18
19func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
20
21func NsecToTimeval(nsec int64) (tv Timeval) {
22 nsec += 999 // round up to microsecond
23 tv.Usec = int32(nsec % 1e9 / 1e3)
24 tv.Sec = int64(nsec / 1e9)
25 return
26}
27
28func SetKevent(k *Kevent_t, fd, mode, flags int) {
29 k.Ident = uint64(fd)
30 k.Filter = uint32(mode)
31 k.Flags = uint32(flags)
32}
33
34func (iov *Iovec) SetLen(length int) {
35 iov.Len = uint64(length)
36}
37
38func (msghdr *Msghdr) SetControllen(length int) {
39 msghdr.Controllen = uint32(length)
40}
41
42func (cmsg *Cmsghdr) SetLen(length int) {
43 cmsg.Len = uint32(length)
44}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_arm.go
deleted file mode 100644
index 87d1d6f..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_netbsd_arm.go
+++ /dev/null
@@ -1,44 +0,0 @@
1// Copyright 2013 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build arm,netbsd
6
7package unix
8
9func Getpagesize() int { return 4096 }
10
11func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
12
13func NsecToTimespec(nsec int64) (ts Timespec) {
14 ts.Sec = int64(nsec / 1e9)
15 ts.Nsec = int32(nsec % 1e9)
16 return
17}
18
19func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
20
21func NsecToTimeval(nsec int64) (tv Timeval) {
22 nsec += 999 // round up to microsecond
23 tv.Usec = int32(nsec % 1e9 / 1e3)
24 tv.Sec = int64(nsec / 1e9)
25 return
26}
27
28func SetKevent(k *Kevent_t, fd, mode, flags int) {
29 k.Ident = uint32(fd)
30 k.Filter = uint32(mode)
31 k.Flags = uint32(flags)
32}
33
34func (iov *Iovec) SetLen(length int) {
35 iov.Len = uint32(length)
36}
37
38func (msghdr *Msghdr) SetControllen(length int) {
39 msghdr.Controllen = uint32(length)
40}
41
42func (cmsg *Cmsghdr) SetLen(length int) {
43 cmsg.Len = uint32(length)
44}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_no_getwd.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_no_getwd.go
deleted file mode 100644
index 530792e..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_no_getwd.go
+++ /dev/null
@@ -1,11 +0,0 @@
1// Copyright 2013 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build dragonfly freebsd netbsd openbsd
6
7package unix
8
9const ImplementsGetwd = false
10
11func Getwd() (string, error) { return "", ENOTSUP }
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd.go
deleted file mode 100644
index 246131d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd.go
+++ /dev/null
@@ -1,303 +0,0 @@
1// Copyright 2009,2010 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// OpenBSD system calls.
6// This file is compiled as ordinary Go code,
7// but it is also input to mksyscall,
8// which parses the //sys lines and generates system call stubs.
9// Note that sometimes we use a lowercase //sys name and wrap
10// it in our own nicer implementation, either here or in
11// syscall_bsd.go or syscall_unix.go.
12
13package unix
14
15import (
16 "syscall"
17 "unsafe"
18)
19
20type SockaddrDatalink struct {
21 Len uint8
22 Family uint8
23 Index uint16
24 Type uint8
25 Nlen uint8
26 Alen uint8
27 Slen uint8
28 Data [24]int8
29 raw RawSockaddrDatalink
30}
31
32func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
33
34func nametomib(name string) (mib []_C_int, err error) {
35
36 // Perform lookup via a binary search
37 left := 0
38 right := len(sysctlMib) - 1
39 for {
40 idx := left + (right-left)/2
41 switch {
42 case name == sysctlMib[idx].ctlname:
43 return sysctlMib[idx].ctloid, nil
44 case name > sysctlMib[idx].ctlname:
45 left = idx + 1
46 default:
47 right = idx - 1
48 }
49 if left > right {
50 break
51 }
52 }
53 return nil, EINVAL
54}
55
56// ParseDirent parses up to max directory entries in buf,
57// appending the names to names. It returns the number
58// bytes consumed from buf, the number of entries added
59// to names, and the new names slice.
60func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
61 origlen := len(buf)
62 for max != 0 && len(buf) > 0 {
63 dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
64 if dirent.Reclen == 0 {
65 buf = nil
66 break
67 }
68 buf = buf[dirent.Reclen:]
69 if dirent.Fileno == 0 { // File absent in directory.
70 continue
71 }
72 bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
73 var name = string(bytes[0:dirent.Namlen])
74 if name == "." || name == ".." { // Useless names
75 continue
76 }
77 max--
78 count++
79 names = append(names, name)
80 }
81 return origlen - len(buf), count, names
82}
83
84//sysnb pipe(p *[2]_C_int) (err error)
85func Pipe(p []int) (err error) {
86 if len(p) != 2 {
87 return EINVAL
88 }
89 var pp [2]_C_int
90 err = pipe(&pp)
91 p[0] = int(pp[0])
92 p[1] = int(pp[1])
93 return
94}
95
96//sys getdents(fd int, buf []byte) (n int, err error)
97func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
98 return getdents(fd, buf)
99}
100
101// TODO
102func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
103 return -1, ENOSYS
104}
105
106func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
107 var _p0 unsafe.Pointer
108 var bufsize uintptr
109 if len(buf) > 0 {
110 _p0 = unsafe.Pointer(&buf[0])
111 bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
112 }
113 r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
114 n = int(r0)
115 if e1 != 0 {
116 err = e1
117 }
118 return
119}
120
121/*
122 * Exposed directly
123 */
124//sys Access(path string, mode uint32) (err error)
125//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
126//sys Chdir(path string) (err error)
127//sys Chflags(path string, flags int) (err error)
128//sys Chmod(path string, mode uint32) (err error)
129//sys Chown(path string, uid int, gid int) (err error)
130//sys Chroot(path string) (err error)
131//sys Close(fd int) (err error)
132//sys Dup(fd int) (nfd int, err error)
133//sys Dup2(from int, to int) (err error)
134//sys Exit(code int)
135//sys Fchdir(fd int) (err error)
136//sys Fchflags(fd int, flags int) (err error)
137//sys Fchmod(fd int, mode uint32) (err error)
138//sys Fchown(fd int, uid int, gid int) (err error)
139//sys Flock(fd int, how int) (err error)
140//sys Fpathconf(fd int, name int) (val int, err error)
141//sys Fstat(fd int, stat *Stat_t) (err error)
142//sys Fstatfs(fd int, stat *Statfs_t) (err error)
143//sys Fsync(fd int) (err error)
144//sys Ftruncate(fd int, length int64) (err error)
145//sysnb Getegid() (egid int)
146//sysnb Geteuid() (uid int)
147//sysnb Getgid() (gid int)
148//sysnb Getpgid(pid int) (pgid int, err error)
149//sysnb Getpgrp() (pgrp int)
150//sysnb Getpid() (pid int)
151//sysnb Getppid() (ppid int)
152//sys Getpriority(which int, who int) (prio int, err error)
153//sysnb Getrlimit(which int, lim *Rlimit) (err error)
154//sysnb Getrusage(who int, rusage *Rusage) (err error)
155//sysnb Getsid(pid int) (sid int, err error)
156//sysnb Gettimeofday(tv *Timeval) (err error)
157//sysnb Getuid() (uid int)
158//sys Issetugid() (tainted bool)
159//sys Kill(pid int, signum syscall.Signal) (err error)
160//sys Kqueue() (fd int, err error)
161//sys Lchown(path string, uid int, gid int) (err error)
162//sys Link(path string, link string) (err error)
163//sys Listen(s int, backlog int) (err error)
164//sys Lstat(path string, stat *Stat_t) (err error)
165//sys Mkdir(path string, mode uint32) (err error)
166//sys Mkfifo(path string, mode uint32) (err error)
167//sys Mknod(path string, mode uint32, dev int) (err error)
168//sys Mlock(b []byte) (err error)
169//sys Mlockall(flags int) (err error)
170//sys Mprotect(b []byte, prot int) (err error)
171//sys Munlock(b []byte) (err error)
172//sys Munlockall() (err error)
173//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
174//sys Open(path string, mode int, perm uint32) (fd int, err error)
175//sys Pathconf(path string, name int) (val int, err error)
176//sys Pread(fd int, p []byte, offset int64) (n int, err error)
177//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
178//sys read(fd int, p []byte) (n int, err error)
179//sys Readlink(path string, buf []byte) (n int, err error)
180//sys Rename(from string, to string) (err error)
181//sys Revoke(path string) (err error)
182//sys Rmdir(path string) (err error)
183//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
184//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
185//sysnb Setegid(egid int) (err error)
186//sysnb Seteuid(euid int) (err error)
187//sysnb Setgid(gid int) (err error)
188//sys Setlogin(name string) (err error)
189//sysnb Setpgid(pid int, pgid int) (err error)
190//sys Setpriority(which int, who int, prio int) (err error)
191//sysnb Setregid(rgid int, egid int) (err error)
192//sysnb Setreuid(ruid int, euid int) (err error)
193//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
194//sysnb Setresuid(ruid int, euid int, suid int) (err error)
195//sysnb Setrlimit(which int, lim *Rlimit) (err error)
196//sysnb Setsid() (pid int, err error)
197//sysnb Settimeofday(tp *Timeval) (err error)
198//sysnb Setuid(uid int) (err error)
199//sys Stat(path string, stat *Stat_t) (err error)
200//sys Statfs(path string, stat *Statfs_t) (err error)
201//sys Symlink(path string, link string) (err error)
202//sys Sync() (err error)
203//sys Truncate(path string, length int64) (err error)
204//sys Umask(newmask int) (oldmask int)
205//sys Unlink(path string) (err error)
206//sys Unmount(path string, flags int) (err error)
207//sys write(fd int, p []byte) (n int, err error)
208//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
209//sys munmap(addr uintptr, length uintptr) (err error)
210//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
211//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
212
213/*
214 * Unimplemented
215 */
216// __getcwd
217// __semctl
218// __syscall
219// __sysctl
220// adjfreq
221// break
222// clock_getres
223// clock_gettime
224// clock_settime
225// closefrom
226// execve
227// faccessat
228// fchmodat
229// fchownat
230// fcntl
231// fhopen
232// fhstat
233// fhstatfs
234// fork
235// fstatat
236// futimens
237// getfh
238// getgid
239// getitimer
240// getlogin
241// getresgid
242// getresuid
243// getrtable
244// getthrid
245// ioctl
246// ktrace
247// lfs_bmapv
248// lfs_markv
249// lfs_segclean
250// lfs_segwait
251// linkat
252// mincore
253// minherit
254// mkdirat
255// mkfifoat
256// mknodat
257// mount
258// mquery
259// msgctl
260// msgget
261// msgrcv
262// msgsnd
263// nfssvc
264// nnpfspioctl
265// openat
266// poll
267// preadv
268// profil
269// pwritev
270// quotactl
271// readlinkat
272// readv
273// reboot
274// renameat
275// rfork
276// sched_yield
277// semget
278// semop
279// setgroups
280// setitimer
281// setrtable
282// setsockopt
283// shmat
284// shmctl
285// shmdt
286// shmget
287// sigaction
288// sigaltstack
289// sigpending
290// sigprocmask
291// sigreturn
292// sigsuspend
293// symlinkat
294// sysarch
295// syscall
296// threxit
297// thrsigdivert
298// thrsleep
299// thrwakeup
300// unlinkat
301// utimensat
302// vfork
303// writev
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd_386.go
deleted file mode 100644
index 9529b20..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd_386.go
+++ /dev/null
@@ -1,44 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build 386,openbsd
6
7package unix
8
9func Getpagesize() int { return 4096 }
10
11func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
12
13func NsecToTimespec(nsec int64) (ts Timespec) {
14 ts.Sec = int64(nsec / 1e9)
15 ts.Nsec = int32(nsec % 1e9)
16 return
17}
18
19func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
20
21func NsecToTimeval(nsec int64) (tv Timeval) {
22 nsec += 999 // round up to microsecond
23 tv.Usec = int32(nsec % 1e9 / 1e3)
24 tv.Sec = int64(nsec / 1e9)
25 return
26}
27
28func SetKevent(k *Kevent_t, fd, mode, flags int) {
29 k.Ident = uint32(fd)
30 k.Filter = int16(mode)
31 k.Flags = uint16(flags)
32}
33
34func (iov *Iovec) SetLen(length int) {
35 iov.Len = uint32(length)
36}
37
38func (msghdr *Msghdr) SetControllen(length int) {
39 msghdr.Controllen = uint32(length)
40}
41
42func (cmsg *Cmsghdr) SetLen(length int) {
43 cmsg.Len = uint32(length)
44}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd_amd64.go
deleted file mode 100644
index fc64029..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_openbsd_amd64.go
+++ /dev/null
@@ -1,44 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build amd64,openbsd
6
7package unix
8
9func Getpagesize() int { return 4096 }
10
11func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
12
13func NsecToTimespec(nsec int64) (ts Timespec) {
14 ts.Sec = nsec / 1e9
15 ts.Nsec = nsec % 1e9
16 return
17}
18
19func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
20
21func NsecToTimeval(nsec int64) (tv Timeval) {
22 nsec += 999 // round up to microsecond
23 tv.Usec = nsec % 1e9 / 1e3
24 tv.Sec = nsec / 1e9
25 return
26}
27
28func SetKevent(k *Kevent_t, fd, mode, flags int) {
29 k.Ident = uint64(fd)
30 k.Filter = int16(mode)
31 k.Flags = uint16(flags)
32}
33
34func (iov *Iovec) SetLen(length int) {
35 iov.Len = uint64(length)
36}
37
38func (msghdr *Msghdr) SetControllen(length int) {
39 msghdr.Controllen = uint32(length)
40}
41
42func (cmsg *Cmsghdr) SetLen(length int) {
43 cmsg.Len = uint32(length)
44}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_solaris.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_solaris.go
deleted file mode 100644
index 0083732..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_solaris.go
+++ /dev/null
@@ -1,713 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Solaris system calls.
6// This file is compiled as ordinary Go code,
7// but it is also input to mksyscall,
8// which parses the //sys lines and generates system call stubs.
9// Note that sometimes we use a lowercase //sys name and wrap
10// it in our own nicer implementation, either here or in
11// syscall_solaris.go or syscall_unix.go.
12
13package unix
14
15import (
16 "sync/atomic"
17 "syscall"
18 "unsafe"
19)
20
21// Implemented in runtime/syscall_solaris.go.
22type syscallFunc uintptr
23
24func rawSysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
25func sysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
26
27type SockaddrDatalink struct {
28 Family uint16
29 Index uint16
30 Type uint8
31 Nlen uint8
32 Alen uint8
33 Slen uint8
34 Data [244]int8
35 raw RawSockaddrDatalink
36}
37
38func clen(n []byte) int {
39 for i := 0; i < len(n); i++ {
40 if n[i] == 0 {
41 return i
42 }
43 }
44 return len(n)
45}
46
47// ParseDirent parses up to max directory entries in buf,
48// appending the names to names. It returns the number
49// bytes consumed from buf, the number of entries added
50// to names, and the new names slice.
51func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
52 origlen := len(buf)
53 for max != 0 && len(buf) > 0 {
54 dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
55 if dirent.Reclen == 0 {
56 buf = nil
57 break
58 }
59 buf = buf[dirent.Reclen:]
60 if dirent.Ino == 0 { // File absent in directory.
61 continue
62 }
63 bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
64 var name = string(bytes[0:clen(bytes[:])])
65 if name == "." || name == ".." { // Useless names
66 continue
67 }
68 max--
69 count++
70 names = append(names, name)
71 }
72 return origlen - len(buf), count, names
73}
74
75func pipe() (r uintptr, w uintptr, err uintptr)
76
77func Pipe(p []int) (err error) {
78 if len(p) != 2 {
79 return EINVAL
80 }
81 r0, w0, e1 := pipe()
82 if e1 != 0 {
83 err = syscall.Errno(e1)
84 }
85 p[0], p[1] = int(r0), int(w0)
86 return
87}
88
89func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
90 if sa.Port < 0 || sa.Port > 0xFFFF {
91 return nil, 0, EINVAL
92 }
93 sa.raw.Family = AF_INET
94 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
95 p[0] = byte(sa.Port >> 8)
96 p[1] = byte(sa.Port)
97 for i := 0; i < len(sa.Addr); i++ {
98 sa.raw.Addr[i] = sa.Addr[i]
99 }
100 return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil
101}
102
103func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) {
104 if sa.Port < 0 || sa.Port > 0xFFFF {
105 return nil, 0, EINVAL
106 }
107 sa.raw.Family = AF_INET6
108 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
109 p[0] = byte(sa.Port >> 8)
110 p[1] = byte(sa.Port)
111 sa.raw.Scope_id = sa.ZoneId
112 for i := 0; i < len(sa.Addr); i++ {
113 sa.raw.Addr[i] = sa.Addr[i]
114 }
115 return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil
116}
117
118func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) {
119 name := sa.Name
120 n := len(name)
121 if n >= len(sa.raw.Path) {
122 return nil, 0, EINVAL
123 }
124 sa.raw.Family = AF_UNIX
125 for i := 0; i < n; i++ {
126 sa.raw.Path[i] = int8(name[i])
127 }
128 // length is family (uint16), name, NUL.
129 sl := _Socklen(2)
130 if n > 0 {
131 sl += _Socklen(n) + 1
132 }
133 if sa.raw.Path[0] == '@' {
134 sa.raw.Path[0] = 0
135 // Don't count trailing NUL for abstract address.
136 sl--
137 }
138
139 return unsafe.Pointer(&sa.raw), sl, nil
140}
141
142//sys getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = libsocket.getsockname
143
144func Getsockname(fd int) (sa Sockaddr, err error) {
145 var rsa RawSockaddrAny
146 var len _Socklen = SizeofSockaddrAny
147 if err = getsockname(fd, &rsa, &len); err != nil {
148 return
149 }
150 return anyToSockaddr(&rsa)
151}
152
153const ImplementsGetwd = true
154
155//sys Getcwd(buf []byte) (n int, err error)
156
157func Getwd() (wd string, err error) {
158 var buf [PathMax]byte
159 // Getcwd will return an error if it failed for any reason.
160 _, err = Getcwd(buf[0:])
161 if err != nil {
162 return "", err
163 }
164 n := clen(buf[:])
165 if n < 1 {
166 return "", EINVAL
167 }
168 return string(buf[:n]), nil
169}
170
171/*
172 * Wrapped
173 */
174
175//sysnb getgroups(ngid int, gid *_Gid_t) (n int, err error)
176//sysnb setgroups(ngid int, gid *_Gid_t) (err error)
177
178func Getgroups() (gids []int, err error) {
179 n, err := getgroups(0, nil)
180 // Check for error and sanity check group count. Newer versions of
181 // Solaris allow up to 1024 (NGROUPS_MAX).
182 if n < 0 || n > 1024 {
183 if err != nil {
184 return nil, err
185 }
186 return nil, EINVAL
187 } else if n == 0 {
188 return nil, nil
189 }
190
191 a := make([]_Gid_t, n)
192 n, err = getgroups(n, &a[0])
193 if n == -1 {
194 return nil, err
195 }
196 gids = make([]int, n)
197 for i, v := range a[0:n] {
198 gids[i] = int(v)
199 }
200 return
201}
202
203func Setgroups(gids []int) (err error) {
204 if len(gids) == 0 {
205 return setgroups(0, nil)
206 }
207
208 a := make([]_Gid_t, len(gids))
209 for i, v := range gids {
210 a[i] = _Gid_t(v)
211 }
212 return setgroups(len(a), &a[0])
213}
214
215func ReadDirent(fd int, buf []byte) (n int, err error) {
216 // Final argument is (basep *uintptr) and the syscall doesn't take nil.
217 // TODO(rsc): Can we use a single global basep for all calls?
218 return Getdents(fd, buf, new(uintptr))
219}
220
221// Wait status is 7 bits at bottom, either 0 (exited),
222// 0x7F (stopped), or a signal number that caused an exit.
223// The 0x80 bit is whether there was a core dump.
224// An extra number (exit code, signal causing a stop)
225// is in the high bits.
226
227type WaitStatus uint32
228
229const (
230 mask = 0x7F
231 core = 0x80
232 shift = 8
233
234 exited = 0
235 stopped = 0x7F
236)
237
238func (w WaitStatus) Exited() bool { return w&mask == exited }
239
240func (w WaitStatus) ExitStatus() int {
241 if w&mask != exited {
242 return -1
243 }
244 return int(w >> shift)
245}
246
247func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 }
248
249func (w WaitStatus) Signal() syscall.Signal {
250 sig := syscall.Signal(w & mask)
251 if sig == stopped || sig == 0 {
252 return -1
253 }
254 return sig
255}
256
257func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 }
258
259func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP }
260
261func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP }
262
263func (w WaitStatus) StopSignal() syscall.Signal {
264 if !w.Stopped() {
265 return -1
266 }
267 return syscall.Signal(w>>shift) & 0xFF
268}
269
270func (w WaitStatus) TrapCause() int { return -1 }
271
272func wait4(pid uintptr, wstatus *WaitStatus, options uintptr, rusage *Rusage) (wpid uintptr, err uintptr)
273
274func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
275 r0, e1 := wait4(uintptr(pid), wstatus, uintptr(options), rusage)
276 if e1 != 0 {
277 err = syscall.Errno(e1)
278 }
279 return int(r0), err
280}
281
282func gethostname() (name string, err uintptr)
283
284func Gethostname() (name string, err error) {
285 name, e1 := gethostname()
286 if e1 != 0 {
287 err = syscall.Errno(e1)
288 }
289 return name, err
290}
291
292//sys utimes(path string, times *[2]Timeval) (err error)
293
294func Utimes(path string, tv []Timeval) (err error) {
295 if tv == nil {
296 return utimes(path, nil)
297 }
298 if len(tv) != 2 {
299 return EINVAL
300 }
301 return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
302}
303
304//sys utimensat(fd int, path string, times *[2]Timespec, flag int) (err error)
305
306func UtimesNano(path string, ts []Timespec) error {
307 if ts == nil {
308 return utimensat(AT_FDCWD, path, nil, 0)
309 }
310 if len(ts) != 2 {
311 return EINVAL
312 }
313 return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
314}
315
316func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
317 if ts == nil {
318 return utimensat(dirfd, path, nil, flags)
319 }
320 if len(ts) != 2 {
321 return EINVAL
322 }
323 return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags)
324}
325
326//sys fcntl(fd int, cmd int, arg int) (val int, err error)
327
328// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
329func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
330 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(lk)), 0, 0, 0)
331 if e1 != 0 {
332 return e1
333 }
334 return nil
335}
336
337//sys futimesat(fildes int, path *byte, times *[2]Timeval) (err error)
338
339func Futimesat(dirfd int, path string, tv []Timeval) error {
340 pathp, err := BytePtrFromString(path)
341 if err != nil {
342 return err
343 }
344 if tv == nil {
345 return futimesat(dirfd, pathp, nil)
346 }
347 if len(tv) != 2 {
348 return EINVAL
349 }
350 return futimesat(dirfd, pathp, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
351}
352
353// Solaris doesn't have an futimes function because it allows NULL to be
354// specified as the path for futimesat. However, Go doesn't like
355// NULL-style string interfaces, so this simple wrapper is provided.
356func Futimes(fd int, tv []Timeval) error {
357 if tv == nil {
358 return futimesat(fd, nil, nil)
359 }
360 if len(tv) != 2 {
361 return EINVAL
362 }
363 return futimesat(fd, nil, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
364}
365
366func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
367 switch rsa.Addr.Family {
368 case AF_UNIX:
369 pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
370 sa := new(SockaddrUnix)
371 // Assume path ends at NUL.
372 // This is not technically the Solaris semantics for
373 // abstract Unix domain sockets -- they are supposed
374 // to be uninterpreted fixed-size binary blobs -- but
375 // everyone uses this convention.
376 n := 0
377 for n < len(pp.Path) && pp.Path[n] != 0 {
378 n++
379 }
380 bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
381 sa.Name = string(bytes)
382 return sa, nil
383
384 case AF_INET:
385 pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
386 sa := new(SockaddrInet4)
387 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
388 sa.Port = int(p[0])<<8 + int(p[1])
389 for i := 0; i < len(sa.Addr); i++ {
390 sa.Addr[i] = pp.Addr[i]
391 }
392 return sa, nil
393
394 case AF_INET6:
395 pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
396 sa := new(SockaddrInet6)
397 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
398 sa.Port = int(p[0])<<8 + int(p[1])
399 sa.ZoneId = pp.Scope_id
400 for i := 0; i < len(sa.Addr); i++ {
401 sa.Addr[i] = pp.Addr[i]
402 }
403 return sa, nil
404 }
405 return nil, EAFNOSUPPORT
406}
407
408//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) = libsocket.accept
409
410func Accept(fd int) (nfd int, sa Sockaddr, err error) {
411 var rsa RawSockaddrAny
412 var len _Socklen = SizeofSockaddrAny
413 nfd, err = accept(fd, &rsa, &len)
414 if nfd == -1 {
415 return
416 }
417 sa, err = anyToSockaddr(&rsa)
418 if err != nil {
419 Close(nfd)
420 nfd = 0
421 }
422 return
423}
424
425//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.recvmsg
426
427func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
428 var msg Msghdr
429 var rsa RawSockaddrAny
430 msg.Name = (*byte)(unsafe.Pointer(&rsa))
431 msg.Namelen = uint32(SizeofSockaddrAny)
432 var iov Iovec
433 if len(p) > 0 {
434 iov.Base = (*int8)(unsafe.Pointer(&p[0]))
435 iov.SetLen(len(p))
436 }
437 var dummy int8
438 if len(oob) > 0 {
439 // receive at least one normal byte
440 if len(p) == 0 {
441 iov.Base = &dummy
442 iov.SetLen(1)
443 }
444 msg.Accrights = (*int8)(unsafe.Pointer(&oob[0]))
445 }
446 msg.Iov = &iov
447 msg.Iovlen = 1
448 if n, err = recvmsg(fd, &msg, flags); n == -1 {
449 return
450 }
451 oobn = int(msg.Accrightslen)
452 // source address is only specified if the socket is unconnected
453 if rsa.Addr.Family != AF_UNSPEC {
454 from, err = anyToSockaddr(&rsa)
455 }
456 return
457}
458
459func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
460 _, err = SendmsgN(fd, p, oob, to, flags)
461 return
462}
463
464//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.sendmsg
465
466func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
467 var ptr unsafe.Pointer
468 var salen _Socklen
469 if to != nil {
470 ptr, salen, err = to.sockaddr()
471 if err != nil {
472 return 0, err
473 }
474 }
475 var msg Msghdr
476 msg.Name = (*byte)(unsafe.Pointer(ptr))
477 msg.Namelen = uint32(salen)
478 var iov Iovec
479 if len(p) > 0 {
480 iov.Base = (*int8)(unsafe.Pointer(&p[0]))
481 iov.SetLen(len(p))
482 }
483 var dummy int8
484 if len(oob) > 0 {
485 // send at least one normal byte
486 if len(p) == 0 {
487 iov.Base = &dummy
488 iov.SetLen(1)
489 }
490 msg.Accrights = (*int8)(unsafe.Pointer(&oob[0]))
491 }
492 msg.Iov = &iov
493 msg.Iovlen = 1
494 if n, err = sendmsg(fd, &msg, flags); err != nil {
495 return 0, err
496 }
497 if len(oob) > 0 && len(p) == 0 {
498 n = 0
499 }
500 return n, nil
501}
502
503//sys acct(path *byte) (err error)
504
505func Acct(path string) (err error) {
506 if len(path) == 0 {
507 // Assume caller wants to disable accounting.
508 return acct(nil)
509 }
510
511 pathp, err := BytePtrFromString(path)
512 if err != nil {
513 return err
514 }
515 return acct(pathp)
516}
517
518/*
519 * Expose the ioctl function
520 */
521
522//sys ioctl(fd int, req int, arg uintptr) (err error)
523
524func IoctlSetInt(fd int, req int, value int) (err error) {
525 return ioctl(fd, req, uintptr(value))
526}
527
528func IoctlSetWinsize(fd int, req int, value *Winsize) (err error) {
529 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
530}
531
532func IoctlSetTermios(fd int, req int, value *Termios) (err error) {
533 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
534}
535
536func IoctlSetTermio(fd int, req int, value *Termio) (err error) {
537 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
538}
539
540func IoctlGetInt(fd int, req int) (int, error) {
541 var value int
542 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
543 return value, err
544}
545
546func IoctlGetWinsize(fd int, req int) (*Winsize, error) {
547 var value Winsize
548 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
549 return &value, err
550}
551
552func IoctlGetTermios(fd int, req int) (*Termios, error) {
553 var value Termios
554 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
555 return &value, err
556}
557
558func IoctlGetTermio(fd int, req int) (*Termio, error) {
559 var value Termio
560 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
561 return &value, err
562}
563
564/*
565 * Exposed directly
566 */
567//sys Access(path string, mode uint32) (err error)
568//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
569//sys Chdir(path string) (err error)
570//sys Chmod(path string, mode uint32) (err error)
571//sys Chown(path string, uid int, gid int) (err error)
572//sys Chroot(path string) (err error)
573//sys Close(fd int) (err error)
574//sys Creat(path string, mode uint32) (fd int, err error)
575//sys Dup(fd int) (nfd int, err error)
576//sys Dup2(oldfd int, newfd int) (err error)
577//sys Exit(code int)
578//sys Fchdir(fd int) (err error)
579//sys Fchmod(fd int, mode uint32) (err error)
580//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
581//sys Fchown(fd int, uid int, gid int) (err error)
582//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
583//sys Fdatasync(fd int) (err error)
584//sys Fpathconf(fd int, name int) (val int, err error)
585//sys Fstat(fd int, stat *Stat_t) (err error)
586//sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error)
587//sysnb Getgid() (gid int)
588//sysnb Getpid() (pid int)
589//sysnb Getpgid(pid int) (pgid int, err error)
590//sysnb Getpgrp() (pgid int, err error)
591//sys Geteuid() (euid int)
592//sys Getegid() (egid int)
593//sys Getppid() (ppid int)
594//sys Getpriority(which int, who int) (n int, err error)
595//sysnb Getrlimit(which int, lim *Rlimit) (err error)
596//sysnb Getrusage(who int, rusage *Rusage) (err error)
597//sysnb Gettimeofday(tv *Timeval) (err error)
598//sysnb Getuid() (uid int)
599//sys Kill(pid int, signum syscall.Signal) (err error)
600//sys Lchown(path string, uid int, gid int) (err error)
601//sys Link(path string, link string) (err error)
602//sys Listen(s int, backlog int) (err error) = libsocket.listen
603//sys Lstat(path string, stat *Stat_t) (err error)
604//sys Madvise(b []byte, advice int) (err error)
605//sys Mkdir(path string, mode uint32) (err error)
606//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
607//sys Mkfifo(path string, mode uint32) (err error)
608//sys Mkfifoat(dirfd int, path string, mode uint32) (err error)
609//sys Mknod(path string, mode uint32, dev int) (err error)
610//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
611//sys Mlock(b []byte) (err error)
612//sys Mlockall(flags int) (err error)
613//sys Mprotect(b []byte, prot int) (err error)
614//sys Munlock(b []byte) (err error)
615//sys Munlockall() (err error)
616//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
617//sys Open(path string, mode int, perm uint32) (fd int, err error)
618//sys Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)
619//sys Pathconf(path string, name int) (val int, err error)
620//sys Pause() (err error)
621//sys Pread(fd int, p []byte, offset int64) (n int, err error)
622//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
623//sys read(fd int, p []byte) (n int, err error)
624//sys Readlink(path string, buf []byte) (n int, err error)
625//sys Rename(from string, to string) (err error)
626//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
627//sys Rmdir(path string) (err error)
628//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = lseek
629//sysnb Setegid(egid int) (err error)
630//sysnb Seteuid(euid int) (err error)
631//sysnb Setgid(gid int) (err error)
632//sys Sethostname(p []byte) (err error)
633//sysnb Setpgid(pid int, pgid int) (err error)
634//sys Setpriority(which int, who int, prio int) (err error)
635//sysnb Setregid(rgid int, egid int) (err error)
636//sysnb Setreuid(ruid int, euid int) (err error)
637//sysnb Setrlimit(which int, lim *Rlimit) (err error)
638//sysnb Setsid() (pid int, err error)
639//sysnb Setuid(uid int) (err error)
640//sys Shutdown(s int, how int) (err error) = libsocket.shutdown
641//sys Stat(path string, stat *Stat_t) (err error)
642//sys Symlink(path string, link string) (err error)
643//sys Sync() (err error)
644//sysnb Times(tms *Tms) (ticks uintptr, err error)
645//sys Truncate(path string, length int64) (err error)
646//sys Fsync(fd int) (err error)
647//sys Ftruncate(fd int, length int64) (err error)
648//sys Umask(mask int) (oldmask int)
649//sysnb Uname(buf *Utsname) (err error)
650//sys Unmount(target string, flags int) (err error) = libc.umount
651//sys Unlink(path string) (err error)
652//sys Unlinkat(dirfd int, path string) (err error)
653//sys Ustat(dev int, ubuf *Ustat_t) (err error)
654//sys Utime(path string, buf *Utimbuf) (err error)
655//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.bind
656//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.connect
657//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
658//sys munmap(addr uintptr, length uintptr) (err error)
659//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.sendto
660//sys socket(domain int, typ int, proto int) (fd int, err error) = libsocket.socket
661//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.socketpair
662//sys write(fd int, p []byte) (n int, err error)
663//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) = libsocket.getsockopt
664//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = libsocket.getpeername
665//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) = libsocket.setsockopt
666//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) = libsocket.recvfrom
667
668func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
669 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf), 0, 0, 0)
670 n = int(r0)
671 if e1 != 0 {
672 err = e1
673 }
674 return
675}
676
677func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
678 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf), 0, 0, 0)
679 n = int(r0)
680 if e1 != 0 {
681 err = e1
682 }
683 return
684}
685
686var mapper = &mmapper{
687 active: make(map[*byte][]byte),
688 mmap: mmap,
689 munmap: munmap,
690}
691
692func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
693 return mapper.Mmap(fd, offset, length, prot, flags)
694}
695
696func Munmap(b []byte) (err error) {
697 return mapper.Munmap(b)
698}
699
700//sys sysconf(name int) (n int64, err error)
701
702// pageSize caches the value of Getpagesize, since it can't change
703// once the system is booted.
704var pageSize int64 // accessed atomically
705
706func Getpagesize() int {
707 n := atomic.LoadInt64(&pageSize)
708 if n == 0 {
709 n, _ = sysconf(_SC_PAGESIZE)
710 atomic.StoreInt64(&pageSize, n)
711 }
712 return int(n)
713}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_solaris_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_solaris_amd64.go
deleted file mode 100644
index 2e44630..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_solaris_amd64.go
+++ /dev/null
@@ -1,37 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build amd64,solaris
6
7package unix
8
9func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
10
11func NsecToTimespec(nsec int64) (ts Timespec) {
12 ts.Sec = nsec / 1e9
13 ts.Nsec = nsec % 1e9
14 return
15}
16
17func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
18
19func NsecToTimeval(nsec int64) (tv Timeval) {
20 nsec += 999 // round up to microsecond
21 tv.Usec = nsec % 1e9 / 1e3
22 tv.Sec = int64(nsec / 1e9)
23 return
24}
25
26func (iov *Iovec) SetLen(length int) {
27 iov.Len = uint64(length)
28}
29
30func (cmsg *Cmsghdr) SetLen(length int) {
31 cmsg.Len = uint32(length)
32}
33
34func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
35 // TODO(aram): implement this, see issue 5847.
36 panic("unimplemented")
37}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_unix.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_unix.go
deleted file mode 100644
index b46b250..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_unix.go
+++ /dev/null
@@ -1,297 +0,0 @@
1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris
6
7package unix
8
9import (
10 "runtime"
11 "sync"
12 "syscall"
13 "unsafe"
14)
15
16var (
17 Stdin = 0
18 Stdout = 1
19 Stderr = 2
20)
21
22const (
23 darwin64Bit = runtime.GOOS == "darwin" && sizeofPtr == 8
24 dragonfly64Bit = runtime.GOOS == "dragonfly" && sizeofPtr == 8
25 netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4
26)
27
28// Do the interface allocations only once for common
29// Errno values.
30var (
31 errEAGAIN error = syscall.EAGAIN
32 errEINVAL error = syscall.EINVAL
33 errENOENT error = syscall.ENOENT
34)
35
36// errnoErr returns common boxed Errno values, to prevent
37// allocations at runtime.
38func errnoErr(e syscall.Errno) error {
39 switch e {
40 case 0:
41 return nil
42 case EAGAIN:
43 return errEAGAIN
44 case EINVAL:
45 return errEINVAL
46 case ENOENT:
47 return errENOENT
48 }
49 return e
50}
51
52func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
53func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
54func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
55func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
56
57// Mmap manager, for use by operating system-specific implementations.
58
59type mmapper struct {
60 sync.Mutex
61 active map[*byte][]byte // active mappings; key is last byte in mapping
62 mmap func(addr, length uintptr, prot, flags, fd int, offset int64) (uintptr, error)
63 munmap func(addr uintptr, length uintptr) error
64}
65
66func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
67 if length <= 0 {
68 return nil, EINVAL
69 }
70
71 // Map the requested memory.
72 addr, errno := m.mmap(0, uintptr(length), prot, flags, fd, offset)
73 if errno != nil {
74 return nil, errno
75 }
76
77 // Slice memory layout
78 var sl = struct {
79 addr uintptr
80 len int
81 cap int
82 }{addr, length, length}
83
84 // Use unsafe to turn sl into a []byte.
85 b := *(*[]byte)(unsafe.Pointer(&sl))
86
87 // Register mapping in m and return it.
88 p := &b[cap(b)-1]
89 m.Lock()
90 defer m.Unlock()
91 m.active[p] = b
92 return b, nil
93}
94
95func (m *mmapper) Munmap(data []byte) (err error) {
96 if len(data) == 0 || len(data) != cap(data) {
97 return EINVAL
98 }
99
100 // Find the base of the mapping.
101 p := &data[cap(data)-1]
102 m.Lock()
103 defer m.Unlock()
104 b := m.active[p]
105 if b == nil || &b[0] != &data[0] {
106 return EINVAL
107 }
108
109 // Unmap the memory and update m.
110 if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != nil {
111 return errno
112 }
113 delete(m.active, p)
114 return nil
115}
116
117func Read(fd int, p []byte) (n int, err error) {
118 n, err = read(fd, p)
119 if raceenabled {
120 if n > 0 {
121 raceWriteRange(unsafe.Pointer(&p[0]), n)
122 }
123 if err == nil {
124 raceAcquire(unsafe.Pointer(&ioSync))
125 }
126 }
127 return
128}
129
130func Write(fd int, p []byte) (n int, err error) {
131 if raceenabled {
132 raceReleaseMerge(unsafe.Pointer(&ioSync))
133 }
134 n, err = write(fd, p)
135 if raceenabled && n > 0 {
136 raceReadRange(unsafe.Pointer(&p[0]), n)
137 }
138 return
139}
140
141// For testing: clients can set this flag to force
142// creation of IPv6 sockets to return EAFNOSUPPORT.
143var SocketDisableIPv6 bool
144
145type Sockaddr interface {
146 sockaddr() (ptr unsafe.Pointer, len _Socklen, err error) // lowercase; only we can define Sockaddrs
147}
148
149type SockaddrInet4 struct {
150 Port int
151 Addr [4]byte
152 raw RawSockaddrInet4
153}
154
155type SockaddrInet6 struct {
156 Port int
157 ZoneId uint32
158 Addr [16]byte
159 raw RawSockaddrInet6
160}
161
162type SockaddrUnix struct {
163 Name string
164 raw RawSockaddrUnix
165}
166
167func Bind(fd int, sa Sockaddr) (err error) {
168 ptr, n, err := sa.sockaddr()
169 if err != nil {
170 return err
171 }
172 return bind(fd, ptr, n)
173}
174
175func Connect(fd int, sa Sockaddr) (err error) {
176 ptr, n, err := sa.sockaddr()
177 if err != nil {
178 return err
179 }
180 return connect(fd, ptr, n)
181}
182
183func Getpeername(fd int) (sa Sockaddr, err error) {
184 var rsa RawSockaddrAny
185 var len _Socklen = SizeofSockaddrAny
186 if err = getpeername(fd, &rsa, &len); err != nil {
187 return
188 }
189 return anyToSockaddr(&rsa)
190}
191
192func GetsockoptInt(fd, level, opt int) (value int, err error) {
193 var n int32
194 vallen := _Socklen(4)
195 err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
196 return int(n), err
197}
198
199func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
200 var rsa RawSockaddrAny
201 var len _Socklen = SizeofSockaddrAny
202 if n, err = recvfrom(fd, p, flags, &rsa, &len); err != nil {
203 return
204 }
205 if rsa.Addr.Family != AF_UNSPEC {
206 from, err = anyToSockaddr(&rsa)
207 }
208 return
209}
210
211func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
212 ptr, n, err := to.sockaddr()
213 if err != nil {
214 return err
215 }
216 return sendto(fd, p, flags, ptr, n)
217}
218
219func SetsockoptByte(fd, level, opt int, value byte) (err error) {
220 return setsockopt(fd, level, opt, unsafe.Pointer(&value), 1)
221}
222
223func SetsockoptInt(fd, level, opt int, value int) (err error) {
224 var n = int32(value)
225 return setsockopt(fd, level, opt, unsafe.Pointer(&n), 4)
226}
227
228func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error) {
229 return setsockopt(fd, level, opt, unsafe.Pointer(&value[0]), 4)
230}
231
232func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error) {
233 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPMreq)
234}
235
236func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error) {
237 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPv6Mreq)
238}
239
240func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error {
241 return setsockopt(fd, level, opt, unsafe.Pointer(filter), SizeofICMPv6Filter)
242}
243
244func SetsockoptLinger(fd, level, opt int, l *Linger) (err error) {
245 return setsockopt(fd, level, opt, unsafe.Pointer(l), SizeofLinger)
246}
247
248func SetsockoptString(fd, level, opt int, s string) (err error) {
249 return setsockopt(fd, level, opt, unsafe.Pointer(&[]byte(s)[0]), uintptr(len(s)))
250}
251
252func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) {
253 return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv))
254}
255
256func Socket(domain, typ, proto int) (fd int, err error) {
257 if domain == AF_INET6 && SocketDisableIPv6 {
258 return -1, EAFNOSUPPORT
259 }
260 fd, err = socket(domain, typ, proto)
261 return
262}
263
264func Socketpair(domain, typ, proto int) (fd [2]int, err error) {
265 var fdx [2]int32
266 err = socketpair(domain, typ, proto, &fdx)
267 if err == nil {
268 fd[0] = int(fdx[0])
269 fd[1] = int(fdx[1])
270 }
271 return
272}
273
274func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
275 if raceenabled {
276 raceReleaseMerge(unsafe.Pointer(&ioSync))
277 }
278 return sendfile(outfd, infd, offset, count)
279}
280
281var ioSync int64
282
283func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) }
284
285func SetNonblock(fd int, nonblocking bool) (err error) {
286 flag, err := fcntl(fd, F_GETFL, 0)
287 if err != nil {
288 return err
289 }
290 if nonblocking {
291 flag |= O_NONBLOCK
292 } else {
293 flag &= ^O_NONBLOCK
294 }
295 _, err = fcntl(fd, F_SETFL, flag)
296 return err
297}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_386.go
deleted file mode 100644
index 8e63888..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_386.go
+++ /dev/null
@@ -1,1576 +0,0 @@
1// mkerrors.sh -m32
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,darwin
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m32 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_CCITT = 0xa
16 AF_CHAOS = 0x5
17 AF_CNT = 0x15
18 AF_COIP = 0x14
19 AF_DATAKIT = 0x9
20 AF_DECnet = 0xc
21 AF_DLI = 0xd
22 AF_E164 = 0x1c
23 AF_ECMA = 0x8
24 AF_HYLINK = 0xf
25 AF_IEEE80211 = 0x25
26 AF_IMPLINK = 0x3
27 AF_INET = 0x2
28 AF_INET6 = 0x1e
29 AF_IPX = 0x17
30 AF_ISDN = 0x1c
31 AF_ISO = 0x7
32 AF_LAT = 0xe
33 AF_LINK = 0x12
34 AF_LOCAL = 0x1
35 AF_MAX = 0x28
36 AF_NATM = 0x1f
37 AF_NDRV = 0x1b
38 AF_NETBIOS = 0x21
39 AF_NS = 0x6
40 AF_OSI = 0x7
41 AF_PPP = 0x22
42 AF_PUP = 0x4
43 AF_RESERVED_36 = 0x24
44 AF_ROUTE = 0x11
45 AF_SIP = 0x18
46 AF_SNA = 0xb
47 AF_SYSTEM = 0x20
48 AF_UNIX = 0x1
49 AF_UNSPEC = 0x0
50 AF_UTUN = 0x26
51 B0 = 0x0
52 B110 = 0x6e
53 B115200 = 0x1c200
54 B1200 = 0x4b0
55 B134 = 0x86
56 B14400 = 0x3840
57 B150 = 0x96
58 B1800 = 0x708
59 B19200 = 0x4b00
60 B200 = 0xc8
61 B230400 = 0x38400
62 B2400 = 0x960
63 B28800 = 0x7080
64 B300 = 0x12c
65 B38400 = 0x9600
66 B4800 = 0x12c0
67 B50 = 0x32
68 B57600 = 0xe100
69 B600 = 0x258
70 B7200 = 0x1c20
71 B75 = 0x4b
72 B76800 = 0x12c00
73 B9600 = 0x2580
74 BIOCFLUSH = 0x20004268
75 BIOCGBLEN = 0x40044266
76 BIOCGDLT = 0x4004426a
77 BIOCGDLTLIST = 0xc00c4279
78 BIOCGETIF = 0x4020426b
79 BIOCGHDRCMPLT = 0x40044274
80 BIOCGRSIG = 0x40044272
81 BIOCGRTIMEOUT = 0x4008426e
82 BIOCGSEESENT = 0x40044276
83 BIOCGSTATS = 0x4008426f
84 BIOCIMMEDIATE = 0x80044270
85 BIOCPROMISC = 0x20004269
86 BIOCSBLEN = 0xc0044266
87 BIOCSDLT = 0x80044278
88 BIOCSETF = 0x80084267
89 BIOCSETFNR = 0x8008427e
90 BIOCSETIF = 0x8020426c
91 BIOCSHDRCMPLT = 0x80044275
92 BIOCSRSIG = 0x80044273
93 BIOCSRTIMEOUT = 0x8008426d
94 BIOCSSEESENT = 0x80044277
95 BIOCVERSION = 0x40044271
96 BPF_A = 0x10
97 BPF_ABS = 0x20
98 BPF_ADD = 0x0
99 BPF_ALIGNMENT = 0x4
100 BPF_ALU = 0x4
101 BPF_AND = 0x50
102 BPF_B = 0x10
103 BPF_DIV = 0x30
104 BPF_H = 0x8
105 BPF_IMM = 0x0
106 BPF_IND = 0x40
107 BPF_JA = 0x0
108 BPF_JEQ = 0x10
109 BPF_JGE = 0x30
110 BPF_JGT = 0x20
111 BPF_JMP = 0x5
112 BPF_JSET = 0x40
113 BPF_K = 0x0
114 BPF_LD = 0x0
115 BPF_LDX = 0x1
116 BPF_LEN = 0x80
117 BPF_LSH = 0x60
118 BPF_MAJOR_VERSION = 0x1
119 BPF_MAXBUFSIZE = 0x80000
120 BPF_MAXINSNS = 0x200
121 BPF_MEM = 0x60
122 BPF_MEMWORDS = 0x10
123 BPF_MINBUFSIZE = 0x20
124 BPF_MINOR_VERSION = 0x1
125 BPF_MISC = 0x7
126 BPF_MSH = 0xa0
127 BPF_MUL = 0x20
128 BPF_NEG = 0x80
129 BPF_OR = 0x40
130 BPF_RELEASE = 0x30bb6
131 BPF_RET = 0x6
132 BPF_RSH = 0x70
133 BPF_ST = 0x2
134 BPF_STX = 0x3
135 BPF_SUB = 0x10
136 BPF_TAX = 0x0
137 BPF_TXA = 0x80
138 BPF_W = 0x0
139 BPF_X = 0x8
140 BRKINT = 0x2
141 CFLUSH = 0xf
142 CLOCAL = 0x8000
143 CREAD = 0x800
144 CS5 = 0x0
145 CS6 = 0x100
146 CS7 = 0x200
147 CS8 = 0x300
148 CSIZE = 0x300
149 CSTART = 0x11
150 CSTATUS = 0x14
151 CSTOP = 0x13
152 CSTOPB = 0x400
153 CSUSP = 0x1a
154 CTL_MAXNAME = 0xc
155 CTL_NET = 0x4
156 DLT_A429 = 0xb8
157 DLT_A653_ICM = 0xb9
158 DLT_AIRONET_HEADER = 0x78
159 DLT_AOS = 0xde
160 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
161 DLT_ARCNET = 0x7
162 DLT_ARCNET_LINUX = 0x81
163 DLT_ATM_CLIP = 0x13
164 DLT_ATM_RFC1483 = 0xb
165 DLT_AURORA = 0x7e
166 DLT_AX25 = 0x3
167 DLT_AX25_KISS = 0xca
168 DLT_BACNET_MS_TP = 0xa5
169 DLT_BLUETOOTH_HCI_H4 = 0xbb
170 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
171 DLT_CAN20B = 0xbe
172 DLT_CAN_SOCKETCAN = 0xe3
173 DLT_CHAOS = 0x5
174 DLT_CHDLC = 0x68
175 DLT_CISCO_IOS = 0x76
176 DLT_C_HDLC = 0x68
177 DLT_C_HDLC_WITH_DIR = 0xcd
178 DLT_DBUS = 0xe7
179 DLT_DECT = 0xdd
180 DLT_DOCSIS = 0x8f
181 DLT_DVB_CI = 0xeb
182 DLT_ECONET = 0x73
183 DLT_EN10MB = 0x1
184 DLT_EN3MB = 0x2
185 DLT_ENC = 0x6d
186 DLT_ERF = 0xc5
187 DLT_ERF_ETH = 0xaf
188 DLT_ERF_POS = 0xb0
189 DLT_FC_2 = 0xe0
190 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
191 DLT_FDDI = 0xa
192 DLT_FLEXRAY = 0xd2
193 DLT_FRELAY = 0x6b
194 DLT_FRELAY_WITH_DIR = 0xce
195 DLT_GCOM_SERIAL = 0xad
196 DLT_GCOM_T1E1 = 0xac
197 DLT_GPF_F = 0xab
198 DLT_GPF_T = 0xaa
199 DLT_GPRS_LLC = 0xa9
200 DLT_GSMTAP_ABIS = 0xda
201 DLT_GSMTAP_UM = 0xd9
202 DLT_HHDLC = 0x79
203 DLT_IBM_SN = 0x92
204 DLT_IBM_SP = 0x91
205 DLT_IEEE802 = 0x6
206 DLT_IEEE802_11 = 0x69
207 DLT_IEEE802_11_RADIO = 0x7f
208 DLT_IEEE802_11_RADIO_AVS = 0xa3
209 DLT_IEEE802_15_4 = 0xc3
210 DLT_IEEE802_15_4_LINUX = 0xbf
211 DLT_IEEE802_15_4_NOFCS = 0xe6
212 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
213 DLT_IEEE802_16_MAC_CPS = 0xbc
214 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
215 DLT_IPFILTER = 0x74
216 DLT_IPMB = 0xc7
217 DLT_IPMB_LINUX = 0xd1
218 DLT_IPNET = 0xe2
219 DLT_IPOIB = 0xf2
220 DLT_IPV4 = 0xe4
221 DLT_IPV6 = 0xe5
222 DLT_IP_OVER_FC = 0x7a
223 DLT_JUNIPER_ATM1 = 0x89
224 DLT_JUNIPER_ATM2 = 0x87
225 DLT_JUNIPER_ATM_CEMIC = 0xee
226 DLT_JUNIPER_CHDLC = 0xb5
227 DLT_JUNIPER_ES = 0x84
228 DLT_JUNIPER_ETHER = 0xb2
229 DLT_JUNIPER_FIBRECHANNEL = 0xea
230 DLT_JUNIPER_FRELAY = 0xb4
231 DLT_JUNIPER_GGSN = 0x85
232 DLT_JUNIPER_ISM = 0xc2
233 DLT_JUNIPER_MFR = 0x86
234 DLT_JUNIPER_MLFR = 0x83
235 DLT_JUNIPER_MLPPP = 0x82
236 DLT_JUNIPER_MONITOR = 0xa4
237 DLT_JUNIPER_PIC_PEER = 0xae
238 DLT_JUNIPER_PPP = 0xb3
239 DLT_JUNIPER_PPPOE = 0xa7
240 DLT_JUNIPER_PPPOE_ATM = 0xa8
241 DLT_JUNIPER_SERVICES = 0x88
242 DLT_JUNIPER_SRX_E2E = 0xe9
243 DLT_JUNIPER_ST = 0xc8
244 DLT_JUNIPER_VP = 0xb7
245 DLT_JUNIPER_VS = 0xe8
246 DLT_LAPB_WITH_DIR = 0xcf
247 DLT_LAPD = 0xcb
248 DLT_LIN = 0xd4
249 DLT_LINUX_EVDEV = 0xd8
250 DLT_LINUX_IRDA = 0x90
251 DLT_LINUX_LAPD = 0xb1
252 DLT_LINUX_PPP_WITHDIRECTION = 0xa6
253 DLT_LINUX_SLL = 0x71
254 DLT_LOOP = 0x6c
255 DLT_LTALK = 0x72
256 DLT_MATCHING_MAX = 0xf5
257 DLT_MATCHING_MIN = 0x68
258 DLT_MFR = 0xb6
259 DLT_MOST = 0xd3
260 DLT_MPEG_2_TS = 0xf3
261 DLT_MPLS = 0xdb
262 DLT_MTP2 = 0x8c
263 DLT_MTP2_WITH_PHDR = 0x8b
264 DLT_MTP3 = 0x8d
265 DLT_MUX27010 = 0xec
266 DLT_NETANALYZER = 0xf0
267 DLT_NETANALYZER_TRANSPARENT = 0xf1
268 DLT_NFC_LLCP = 0xf5
269 DLT_NFLOG = 0xef
270 DLT_NG40 = 0xf4
271 DLT_NULL = 0x0
272 DLT_PCI_EXP = 0x7d
273 DLT_PFLOG = 0x75
274 DLT_PFSYNC = 0x12
275 DLT_PPI = 0xc0
276 DLT_PPP = 0x9
277 DLT_PPP_BSDOS = 0x10
278 DLT_PPP_ETHER = 0x33
279 DLT_PPP_PPPD = 0xa6
280 DLT_PPP_SERIAL = 0x32
281 DLT_PPP_WITH_DIR = 0xcc
282 DLT_PPP_WITH_DIRECTION = 0xa6
283 DLT_PRISM_HEADER = 0x77
284 DLT_PRONET = 0x4
285 DLT_RAIF1 = 0xc6
286 DLT_RAW = 0xc
287 DLT_RIO = 0x7c
288 DLT_SCCP = 0x8e
289 DLT_SITA = 0xc4
290 DLT_SLIP = 0x8
291 DLT_SLIP_BSDOS = 0xf
292 DLT_STANAG_5066_D_PDU = 0xed
293 DLT_SUNATM = 0x7b
294 DLT_SYMANTEC_FIREWALL = 0x63
295 DLT_TZSP = 0x80
296 DLT_USB = 0xba
297 DLT_USB_LINUX = 0xbd
298 DLT_USB_LINUX_MMAPPED = 0xdc
299 DLT_USER0 = 0x93
300 DLT_USER1 = 0x94
301 DLT_USER10 = 0x9d
302 DLT_USER11 = 0x9e
303 DLT_USER12 = 0x9f
304 DLT_USER13 = 0xa0
305 DLT_USER14 = 0xa1
306 DLT_USER15 = 0xa2
307 DLT_USER2 = 0x95
308 DLT_USER3 = 0x96
309 DLT_USER4 = 0x97
310 DLT_USER5 = 0x98
311 DLT_USER6 = 0x99
312 DLT_USER7 = 0x9a
313 DLT_USER8 = 0x9b
314 DLT_USER9 = 0x9c
315 DLT_WIHART = 0xdf
316 DLT_X2E_SERIAL = 0xd5
317 DLT_X2E_XORAYA = 0xd6
318 DT_BLK = 0x6
319 DT_CHR = 0x2
320 DT_DIR = 0x4
321 DT_FIFO = 0x1
322 DT_LNK = 0xa
323 DT_REG = 0x8
324 DT_SOCK = 0xc
325 DT_UNKNOWN = 0x0
326 DT_WHT = 0xe
327 ECHO = 0x8
328 ECHOCTL = 0x40
329 ECHOE = 0x2
330 ECHOK = 0x4
331 ECHOKE = 0x1
332 ECHONL = 0x10
333 ECHOPRT = 0x20
334 EVFILT_AIO = -0x3
335 EVFILT_FS = -0x9
336 EVFILT_MACHPORT = -0x8
337 EVFILT_PROC = -0x5
338 EVFILT_READ = -0x1
339 EVFILT_SIGNAL = -0x6
340 EVFILT_SYSCOUNT = 0xe
341 EVFILT_THREADMARKER = 0xe
342 EVFILT_TIMER = -0x7
343 EVFILT_USER = -0xa
344 EVFILT_VM = -0xc
345 EVFILT_VNODE = -0x4
346 EVFILT_WRITE = -0x2
347 EV_ADD = 0x1
348 EV_CLEAR = 0x20
349 EV_DELETE = 0x2
350 EV_DISABLE = 0x8
351 EV_DISPATCH = 0x80
352 EV_ENABLE = 0x4
353 EV_EOF = 0x8000
354 EV_ERROR = 0x4000
355 EV_FLAG0 = 0x1000
356 EV_FLAG1 = 0x2000
357 EV_ONESHOT = 0x10
358 EV_OOBAND = 0x2000
359 EV_POLL = 0x1000
360 EV_RECEIPT = 0x40
361 EV_SYSFLAGS = 0xf000
362 EXTA = 0x4b00
363 EXTB = 0x9600
364 EXTPROC = 0x800
365 FD_CLOEXEC = 0x1
366 FD_SETSIZE = 0x400
367 FLUSHO = 0x800000
368 F_ADDFILESIGS = 0x3d
369 F_ADDSIGS = 0x3b
370 F_ALLOCATEALL = 0x4
371 F_ALLOCATECONTIG = 0x2
372 F_CHKCLEAN = 0x29
373 F_DUPFD = 0x0
374 F_DUPFD_CLOEXEC = 0x43
375 F_FINDSIGS = 0x4e
376 F_FLUSH_DATA = 0x28
377 F_FREEZE_FS = 0x35
378 F_FULLFSYNC = 0x33
379 F_GETCODEDIR = 0x48
380 F_GETFD = 0x1
381 F_GETFL = 0x3
382 F_GETLK = 0x7
383 F_GETLKPID = 0x42
384 F_GETNOSIGPIPE = 0x4a
385 F_GETOWN = 0x5
386 F_GETPATH = 0x32
387 F_GETPATH_MTMINFO = 0x47
388 F_GETPROTECTIONCLASS = 0x3f
389 F_GETPROTECTIONLEVEL = 0x4d
390 F_GLOBAL_NOCACHE = 0x37
391 F_LOG2PHYS = 0x31
392 F_LOG2PHYS_EXT = 0x41
393 F_NOCACHE = 0x30
394 F_NODIRECT = 0x3e
395 F_OK = 0x0
396 F_PATHPKG_CHECK = 0x34
397 F_PEOFPOSMODE = 0x3
398 F_PREALLOCATE = 0x2a
399 F_RDADVISE = 0x2c
400 F_RDAHEAD = 0x2d
401 F_RDLCK = 0x1
402 F_SETBACKINGSTORE = 0x46
403 F_SETFD = 0x2
404 F_SETFL = 0x4
405 F_SETLK = 0x8
406 F_SETLKW = 0x9
407 F_SETLKWTIMEOUT = 0xa
408 F_SETNOSIGPIPE = 0x49
409 F_SETOWN = 0x6
410 F_SETPROTECTIONCLASS = 0x40
411 F_SETSIZE = 0x2b
412 F_SINGLE_WRITER = 0x4c
413 F_THAW_FS = 0x36
414 F_TRANSCODEKEY = 0x4b
415 F_UNLCK = 0x2
416 F_VOLPOSMODE = 0x4
417 F_WRLCK = 0x3
418 HUPCL = 0x4000
419 ICANON = 0x100
420 ICMP6_FILTER = 0x12
421 ICRNL = 0x100
422 IEXTEN = 0x400
423 IFF_ALLMULTI = 0x200
424 IFF_ALTPHYS = 0x4000
425 IFF_BROADCAST = 0x2
426 IFF_DEBUG = 0x4
427 IFF_LINK0 = 0x1000
428 IFF_LINK1 = 0x2000
429 IFF_LINK2 = 0x4000
430 IFF_LOOPBACK = 0x8
431 IFF_MULTICAST = 0x8000
432 IFF_NOARP = 0x80
433 IFF_NOTRAILERS = 0x20
434 IFF_OACTIVE = 0x400
435 IFF_POINTOPOINT = 0x10
436 IFF_PROMISC = 0x100
437 IFF_RUNNING = 0x40
438 IFF_SIMPLEX = 0x800
439 IFF_UP = 0x1
440 IFNAMSIZ = 0x10
441 IFT_1822 = 0x2
442 IFT_AAL5 = 0x31
443 IFT_ARCNET = 0x23
444 IFT_ARCNETPLUS = 0x24
445 IFT_ATM = 0x25
446 IFT_BRIDGE = 0xd1
447 IFT_CARP = 0xf8
448 IFT_CELLULAR = 0xff
449 IFT_CEPT = 0x13
450 IFT_DS3 = 0x1e
451 IFT_ENC = 0xf4
452 IFT_EON = 0x19
453 IFT_ETHER = 0x6
454 IFT_FAITH = 0x38
455 IFT_FDDI = 0xf
456 IFT_FRELAY = 0x20
457 IFT_FRELAYDCE = 0x2c
458 IFT_GIF = 0x37
459 IFT_HDH1822 = 0x3
460 IFT_HIPPI = 0x2f
461 IFT_HSSI = 0x2e
462 IFT_HY = 0xe
463 IFT_IEEE1394 = 0x90
464 IFT_IEEE8023ADLAG = 0x88
465 IFT_ISDNBASIC = 0x14
466 IFT_ISDNPRIMARY = 0x15
467 IFT_ISO88022LLC = 0x29
468 IFT_ISO88023 = 0x7
469 IFT_ISO88024 = 0x8
470 IFT_ISO88025 = 0x9
471 IFT_ISO88026 = 0xa
472 IFT_L2VLAN = 0x87
473 IFT_LAPB = 0x10
474 IFT_LOCALTALK = 0x2a
475 IFT_LOOP = 0x18
476 IFT_MIOX25 = 0x26
477 IFT_MODEM = 0x30
478 IFT_NSIP = 0x1b
479 IFT_OTHER = 0x1
480 IFT_P10 = 0xc
481 IFT_P80 = 0xd
482 IFT_PARA = 0x22
483 IFT_PDP = 0xff
484 IFT_PFLOG = 0xf5
485 IFT_PFSYNC = 0xf6
486 IFT_PKTAP = 0xfe
487 IFT_PPP = 0x17
488 IFT_PROPMUX = 0x36
489 IFT_PROPVIRTUAL = 0x35
490 IFT_PTPSERIAL = 0x16
491 IFT_RS232 = 0x21
492 IFT_SDLC = 0x11
493 IFT_SIP = 0x1f
494 IFT_SLIP = 0x1c
495 IFT_SMDSDXI = 0x2b
496 IFT_SMDSICIP = 0x34
497 IFT_SONET = 0x27
498 IFT_SONETPATH = 0x32
499 IFT_SONETVT = 0x33
500 IFT_STARLAN = 0xb
501 IFT_STF = 0x39
502 IFT_T1 = 0x12
503 IFT_ULTRA = 0x1d
504 IFT_V35 = 0x2d
505 IFT_X25 = 0x5
506 IFT_X25DDN = 0x4
507 IFT_X25PLE = 0x28
508 IFT_XETHER = 0x1a
509 IGNBRK = 0x1
510 IGNCR = 0x80
511 IGNPAR = 0x4
512 IMAXBEL = 0x2000
513 INLCR = 0x40
514 INPCK = 0x10
515 IN_CLASSA_HOST = 0xffffff
516 IN_CLASSA_MAX = 0x80
517 IN_CLASSA_NET = 0xff000000
518 IN_CLASSA_NSHIFT = 0x18
519 IN_CLASSB_HOST = 0xffff
520 IN_CLASSB_MAX = 0x10000
521 IN_CLASSB_NET = 0xffff0000
522 IN_CLASSB_NSHIFT = 0x10
523 IN_CLASSC_HOST = 0xff
524 IN_CLASSC_NET = 0xffffff00
525 IN_CLASSC_NSHIFT = 0x8
526 IN_CLASSD_HOST = 0xfffffff
527 IN_CLASSD_NET = 0xf0000000
528 IN_CLASSD_NSHIFT = 0x1c
529 IN_LINKLOCALNETNUM = 0xa9fe0000
530 IN_LOOPBACKNET = 0x7f
531 IPPROTO_3PC = 0x22
532 IPPROTO_ADFS = 0x44
533 IPPROTO_AH = 0x33
534 IPPROTO_AHIP = 0x3d
535 IPPROTO_APES = 0x63
536 IPPROTO_ARGUS = 0xd
537 IPPROTO_AX25 = 0x5d
538 IPPROTO_BHA = 0x31
539 IPPROTO_BLT = 0x1e
540 IPPROTO_BRSATMON = 0x4c
541 IPPROTO_CFTP = 0x3e
542 IPPROTO_CHAOS = 0x10
543 IPPROTO_CMTP = 0x26
544 IPPROTO_CPHB = 0x49
545 IPPROTO_CPNX = 0x48
546 IPPROTO_DDP = 0x25
547 IPPROTO_DGP = 0x56
548 IPPROTO_DIVERT = 0xfe
549 IPPROTO_DONE = 0x101
550 IPPROTO_DSTOPTS = 0x3c
551 IPPROTO_EGP = 0x8
552 IPPROTO_EMCON = 0xe
553 IPPROTO_ENCAP = 0x62
554 IPPROTO_EON = 0x50
555 IPPROTO_ESP = 0x32
556 IPPROTO_ETHERIP = 0x61
557 IPPROTO_FRAGMENT = 0x2c
558 IPPROTO_GGP = 0x3
559 IPPROTO_GMTP = 0x64
560 IPPROTO_GRE = 0x2f
561 IPPROTO_HELLO = 0x3f
562 IPPROTO_HMP = 0x14
563 IPPROTO_HOPOPTS = 0x0
564 IPPROTO_ICMP = 0x1
565 IPPROTO_ICMPV6 = 0x3a
566 IPPROTO_IDP = 0x16
567 IPPROTO_IDPR = 0x23
568 IPPROTO_IDRP = 0x2d
569 IPPROTO_IGMP = 0x2
570 IPPROTO_IGP = 0x55
571 IPPROTO_IGRP = 0x58
572 IPPROTO_IL = 0x28
573 IPPROTO_INLSP = 0x34
574 IPPROTO_INP = 0x20
575 IPPROTO_IP = 0x0
576 IPPROTO_IPCOMP = 0x6c
577 IPPROTO_IPCV = 0x47
578 IPPROTO_IPEIP = 0x5e
579 IPPROTO_IPIP = 0x4
580 IPPROTO_IPPC = 0x43
581 IPPROTO_IPV4 = 0x4
582 IPPROTO_IPV6 = 0x29
583 IPPROTO_IRTP = 0x1c
584 IPPROTO_KRYPTOLAN = 0x41
585 IPPROTO_LARP = 0x5b
586 IPPROTO_LEAF1 = 0x19
587 IPPROTO_LEAF2 = 0x1a
588 IPPROTO_MAX = 0x100
589 IPPROTO_MAXID = 0x34
590 IPPROTO_MEAS = 0x13
591 IPPROTO_MHRP = 0x30
592 IPPROTO_MICP = 0x5f
593 IPPROTO_MTP = 0x5c
594 IPPROTO_MUX = 0x12
595 IPPROTO_ND = 0x4d
596 IPPROTO_NHRP = 0x36
597 IPPROTO_NONE = 0x3b
598 IPPROTO_NSP = 0x1f
599 IPPROTO_NVPII = 0xb
600 IPPROTO_OSPFIGP = 0x59
601 IPPROTO_PGM = 0x71
602 IPPROTO_PIGP = 0x9
603 IPPROTO_PIM = 0x67
604 IPPROTO_PRM = 0x15
605 IPPROTO_PUP = 0xc
606 IPPROTO_PVP = 0x4b
607 IPPROTO_RAW = 0xff
608 IPPROTO_RCCMON = 0xa
609 IPPROTO_RDP = 0x1b
610 IPPROTO_ROUTING = 0x2b
611 IPPROTO_RSVP = 0x2e
612 IPPROTO_RVD = 0x42
613 IPPROTO_SATEXPAK = 0x40
614 IPPROTO_SATMON = 0x45
615 IPPROTO_SCCSP = 0x60
616 IPPROTO_SCTP = 0x84
617 IPPROTO_SDRP = 0x2a
618 IPPROTO_SEP = 0x21
619 IPPROTO_SRPC = 0x5a
620 IPPROTO_ST = 0x7
621 IPPROTO_SVMTP = 0x52
622 IPPROTO_SWIPE = 0x35
623 IPPROTO_TCF = 0x57
624 IPPROTO_TCP = 0x6
625 IPPROTO_TP = 0x1d
626 IPPROTO_TPXX = 0x27
627 IPPROTO_TRUNK1 = 0x17
628 IPPROTO_TRUNK2 = 0x18
629 IPPROTO_TTP = 0x54
630 IPPROTO_UDP = 0x11
631 IPPROTO_VINES = 0x53
632 IPPROTO_VISA = 0x46
633 IPPROTO_VMTP = 0x51
634 IPPROTO_WBEXPAK = 0x4f
635 IPPROTO_WBMON = 0x4e
636 IPPROTO_WSN = 0x4a
637 IPPROTO_XNET = 0xf
638 IPPROTO_XTP = 0x24
639 IPV6_2292DSTOPTS = 0x17
640 IPV6_2292HOPLIMIT = 0x14
641 IPV6_2292HOPOPTS = 0x16
642 IPV6_2292NEXTHOP = 0x15
643 IPV6_2292PKTINFO = 0x13
644 IPV6_2292PKTOPTIONS = 0x19
645 IPV6_2292RTHDR = 0x18
646 IPV6_BINDV6ONLY = 0x1b
647 IPV6_BOUND_IF = 0x7d
648 IPV6_CHECKSUM = 0x1a
649 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
650 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
651 IPV6_DEFHLIM = 0x40
652 IPV6_FAITH = 0x1d
653 IPV6_FLOWINFO_MASK = 0xffffff0f
654 IPV6_FLOWLABEL_MASK = 0xffff0f00
655 IPV6_FRAGTTL = 0x3c
656 IPV6_FW_ADD = 0x1e
657 IPV6_FW_DEL = 0x1f
658 IPV6_FW_FLUSH = 0x20
659 IPV6_FW_GET = 0x22
660 IPV6_FW_ZERO = 0x21
661 IPV6_HLIMDEC = 0x1
662 IPV6_IPSEC_POLICY = 0x1c
663 IPV6_JOIN_GROUP = 0xc
664 IPV6_LEAVE_GROUP = 0xd
665 IPV6_MAXHLIM = 0xff
666 IPV6_MAXOPTHDR = 0x800
667 IPV6_MAXPACKET = 0xffff
668 IPV6_MAX_GROUP_SRC_FILTER = 0x200
669 IPV6_MAX_MEMBERSHIPS = 0xfff
670 IPV6_MAX_SOCK_SRC_FILTER = 0x80
671 IPV6_MIN_MEMBERSHIPS = 0x1f
672 IPV6_MMTU = 0x500
673 IPV6_MULTICAST_HOPS = 0xa
674 IPV6_MULTICAST_IF = 0x9
675 IPV6_MULTICAST_LOOP = 0xb
676 IPV6_PORTRANGE = 0xe
677 IPV6_PORTRANGE_DEFAULT = 0x0
678 IPV6_PORTRANGE_HIGH = 0x1
679 IPV6_PORTRANGE_LOW = 0x2
680 IPV6_RECVTCLASS = 0x23
681 IPV6_RTHDR_LOOSE = 0x0
682 IPV6_RTHDR_STRICT = 0x1
683 IPV6_RTHDR_TYPE_0 = 0x0
684 IPV6_SOCKOPT_RESERVED1 = 0x3
685 IPV6_TCLASS = 0x24
686 IPV6_UNICAST_HOPS = 0x4
687 IPV6_V6ONLY = 0x1b
688 IPV6_VERSION = 0x60
689 IPV6_VERSION_MASK = 0xf0
690 IP_ADD_MEMBERSHIP = 0xc
691 IP_ADD_SOURCE_MEMBERSHIP = 0x46
692 IP_BLOCK_SOURCE = 0x48
693 IP_BOUND_IF = 0x19
694 IP_DEFAULT_MULTICAST_LOOP = 0x1
695 IP_DEFAULT_MULTICAST_TTL = 0x1
696 IP_DF = 0x4000
697 IP_DROP_MEMBERSHIP = 0xd
698 IP_DROP_SOURCE_MEMBERSHIP = 0x47
699 IP_DUMMYNET_CONFIGURE = 0x3c
700 IP_DUMMYNET_DEL = 0x3d
701 IP_DUMMYNET_FLUSH = 0x3e
702 IP_DUMMYNET_GET = 0x40
703 IP_FAITH = 0x16
704 IP_FW_ADD = 0x28
705 IP_FW_DEL = 0x29
706 IP_FW_FLUSH = 0x2a
707 IP_FW_GET = 0x2c
708 IP_FW_RESETLOG = 0x2d
709 IP_FW_ZERO = 0x2b
710 IP_HDRINCL = 0x2
711 IP_IPSEC_POLICY = 0x15
712 IP_MAXPACKET = 0xffff
713 IP_MAX_GROUP_SRC_FILTER = 0x200
714 IP_MAX_MEMBERSHIPS = 0xfff
715 IP_MAX_SOCK_MUTE_FILTER = 0x80
716 IP_MAX_SOCK_SRC_FILTER = 0x80
717 IP_MF = 0x2000
718 IP_MIN_MEMBERSHIPS = 0x1f
719 IP_MSFILTER = 0x4a
720 IP_MSS = 0x240
721 IP_MULTICAST_IF = 0x9
722 IP_MULTICAST_IFINDEX = 0x42
723 IP_MULTICAST_LOOP = 0xb
724 IP_MULTICAST_TTL = 0xa
725 IP_MULTICAST_VIF = 0xe
726 IP_NAT__XXX = 0x37
727 IP_OFFMASK = 0x1fff
728 IP_OLD_FW_ADD = 0x32
729 IP_OLD_FW_DEL = 0x33
730 IP_OLD_FW_FLUSH = 0x34
731 IP_OLD_FW_GET = 0x36
732 IP_OLD_FW_RESETLOG = 0x38
733 IP_OLD_FW_ZERO = 0x35
734 IP_OPTIONS = 0x1
735 IP_PKTINFO = 0x1a
736 IP_PORTRANGE = 0x13
737 IP_PORTRANGE_DEFAULT = 0x0
738 IP_PORTRANGE_HIGH = 0x1
739 IP_PORTRANGE_LOW = 0x2
740 IP_RECVDSTADDR = 0x7
741 IP_RECVIF = 0x14
742 IP_RECVOPTS = 0x5
743 IP_RECVPKTINFO = 0x1a
744 IP_RECVRETOPTS = 0x6
745 IP_RECVTTL = 0x18
746 IP_RETOPTS = 0x8
747 IP_RF = 0x8000
748 IP_RSVP_OFF = 0x10
749 IP_RSVP_ON = 0xf
750 IP_RSVP_VIF_OFF = 0x12
751 IP_RSVP_VIF_ON = 0x11
752 IP_STRIPHDR = 0x17
753 IP_TOS = 0x3
754 IP_TRAFFIC_MGT_BACKGROUND = 0x41
755 IP_TTL = 0x4
756 IP_UNBLOCK_SOURCE = 0x49
757 ISIG = 0x80
758 ISTRIP = 0x20
759 IUTF8 = 0x4000
760 IXANY = 0x800
761 IXOFF = 0x400
762 IXON = 0x200
763 LOCK_EX = 0x2
764 LOCK_NB = 0x4
765 LOCK_SH = 0x1
766 LOCK_UN = 0x8
767 MADV_CAN_REUSE = 0x9
768 MADV_DONTNEED = 0x4
769 MADV_FREE = 0x5
770 MADV_FREE_REUSABLE = 0x7
771 MADV_FREE_REUSE = 0x8
772 MADV_NORMAL = 0x0
773 MADV_RANDOM = 0x1
774 MADV_SEQUENTIAL = 0x2
775 MADV_WILLNEED = 0x3
776 MADV_ZERO_WIRED_PAGES = 0x6
777 MAP_ANON = 0x1000
778 MAP_COPY = 0x2
779 MAP_FILE = 0x0
780 MAP_FIXED = 0x10
781 MAP_HASSEMAPHORE = 0x200
782 MAP_JIT = 0x800
783 MAP_NOCACHE = 0x400
784 MAP_NOEXTEND = 0x100
785 MAP_NORESERVE = 0x40
786 MAP_PRIVATE = 0x2
787 MAP_RENAME = 0x20
788 MAP_RESERVED0080 = 0x80
789 MAP_SHARED = 0x1
790 MCL_CURRENT = 0x1
791 MCL_FUTURE = 0x2
792 MSG_CTRUNC = 0x20
793 MSG_DONTROUTE = 0x4
794 MSG_DONTWAIT = 0x80
795 MSG_EOF = 0x100
796 MSG_EOR = 0x8
797 MSG_FLUSH = 0x400
798 MSG_HAVEMORE = 0x2000
799 MSG_HOLD = 0x800
800 MSG_NEEDSA = 0x10000
801 MSG_OOB = 0x1
802 MSG_PEEK = 0x2
803 MSG_RCVMORE = 0x4000
804 MSG_SEND = 0x1000
805 MSG_TRUNC = 0x10
806 MSG_WAITALL = 0x40
807 MSG_WAITSTREAM = 0x200
808 MS_ASYNC = 0x1
809 MS_DEACTIVATE = 0x8
810 MS_INVALIDATE = 0x2
811 MS_KILLPAGES = 0x4
812 MS_SYNC = 0x10
813 NAME_MAX = 0xff
814 NET_RT_DUMP = 0x1
815 NET_RT_DUMP2 = 0x7
816 NET_RT_FLAGS = 0x2
817 NET_RT_IFLIST = 0x3
818 NET_RT_IFLIST2 = 0x6
819 NET_RT_MAXID = 0xa
820 NET_RT_STAT = 0x4
821 NET_RT_TRASH = 0x5
822 NOFLSH = 0x80000000
823 NOTE_ABSOLUTE = 0x8
824 NOTE_ATTRIB = 0x8
825 NOTE_BACKGROUND = 0x40
826 NOTE_CHILD = 0x4
827 NOTE_CRITICAL = 0x20
828 NOTE_DELETE = 0x1
829 NOTE_EXEC = 0x20000000
830 NOTE_EXIT = 0x80000000
831 NOTE_EXITSTATUS = 0x4000000
832 NOTE_EXIT_CSERROR = 0x40000
833 NOTE_EXIT_DECRYPTFAIL = 0x10000
834 NOTE_EXIT_DETAIL = 0x2000000
835 NOTE_EXIT_DETAIL_MASK = 0x70000
836 NOTE_EXIT_MEMORY = 0x20000
837 NOTE_EXIT_REPARENTED = 0x80000
838 NOTE_EXTEND = 0x4
839 NOTE_FFAND = 0x40000000
840 NOTE_FFCOPY = 0xc0000000
841 NOTE_FFCTRLMASK = 0xc0000000
842 NOTE_FFLAGSMASK = 0xffffff
843 NOTE_FFNOP = 0x0
844 NOTE_FFOR = 0x80000000
845 NOTE_FORK = 0x40000000
846 NOTE_LEEWAY = 0x10
847 NOTE_LINK = 0x10
848 NOTE_LOWAT = 0x1
849 NOTE_NONE = 0x80
850 NOTE_NSECONDS = 0x4
851 NOTE_PCTRLMASK = -0x100000
852 NOTE_PDATAMASK = 0xfffff
853 NOTE_REAP = 0x10000000
854 NOTE_RENAME = 0x20
855 NOTE_REVOKE = 0x40
856 NOTE_SECONDS = 0x1
857 NOTE_SIGNAL = 0x8000000
858 NOTE_TRACK = 0x1
859 NOTE_TRACKERR = 0x2
860 NOTE_TRIGGER = 0x1000000
861 NOTE_USECONDS = 0x2
862 NOTE_VM_ERROR = 0x10000000
863 NOTE_VM_PRESSURE = 0x80000000
864 NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000
865 NOTE_VM_PRESSURE_TERMINATE = 0x40000000
866 NOTE_WRITE = 0x2
867 OCRNL = 0x10
868 OFDEL = 0x20000
869 OFILL = 0x80
870 ONLCR = 0x2
871 ONLRET = 0x40
872 ONOCR = 0x20
873 ONOEOT = 0x8
874 OPOST = 0x1
875 O_ACCMODE = 0x3
876 O_ALERT = 0x20000000
877 O_APPEND = 0x8
878 O_ASYNC = 0x40
879 O_CLOEXEC = 0x1000000
880 O_CREAT = 0x200
881 O_DIRECTORY = 0x100000
882 O_DP_GETRAWENCRYPTED = 0x1
883 O_DSYNC = 0x400000
884 O_EVTONLY = 0x8000
885 O_EXCL = 0x800
886 O_EXLOCK = 0x20
887 O_FSYNC = 0x80
888 O_NDELAY = 0x4
889 O_NOCTTY = 0x20000
890 O_NOFOLLOW = 0x100
891 O_NONBLOCK = 0x4
892 O_POPUP = 0x80000000
893 O_RDONLY = 0x0
894 O_RDWR = 0x2
895 O_SHLOCK = 0x10
896 O_SYMLINK = 0x200000
897 O_SYNC = 0x80
898 O_TRUNC = 0x400
899 O_WRONLY = 0x1
900 PARENB = 0x1000
901 PARMRK = 0x8
902 PARODD = 0x2000
903 PENDIN = 0x20000000
904 PRIO_PGRP = 0x1
905 PRIO_PROCESS = 0x0
906 PRIO_USER = 0x2
907 PROT_EXEC = 0x4
908 PROT_NONE = 0x0
909 PROT_READ = 0x1
910 PROT_WRITE = 0x2
911 PT_ATTACH = 0xa
912 PT_ATTACHEXC = 0xe
913 PT_CONTINUE = 0x7
914 PT_DENY_ATTACH = 0x1f
915 PT_DETACH = 0xb
916 PT_FIRSTMACH = 0x20
917 PT_FORCEQUOTA = 0x1e
918 PT_KILL = 0x8
919 PT_READ_D = 0x2
920 PT_READ_I = 0x1
921 PT_READ_U = 0x3
922 PT_SIGEXC = 0xc
923 PT_STEP = 0x9
924 PT_THUPDATE = 0xd
925 PT_TRACE_ME = 0x0
926 PT_WRITE_D = 0x5
927 PT_WRITE_I = 0x4
928 PT_WRITE_U = 0x6
929 RLIMIT_AS = 0x5
930 RLIMIT_CORE = 0x4
931 RLIMIT_CPU = 0x0
932 RLIMIT_CPU_USAGE_MONITOR = 0x2
933 RLIMIT_DATA = 0x2
934 RLIMIT_FSIZE = 0x1
935 RLIMIT_NOFILE = 0x8
936 RLIMIT_STACK = 0x3
937 RLIM_INFINITY = 0x7fffffffffffffff
938 RTAX_AUTHOR = 0x6
939 RTAX_BRD = 0x7
940 RTAX_DST = 0x0
941 RTAX_GATEWAY = 0x1
942 RTAX_GENMASK = 0x3
943 RTAX_IFA = 0x5
944 RTAX_IFP = 0x4
945 RTAX_MAX = 0x8
946 RTAX_NETMASK = 0x2
947 RTA_AUTHOR = 0x40
948 RTA_BRD = 0x80
949 RTA_DST = 0x1
950 RTA_GATEWAY = 0x2
951 RTA_GENMASK = 0x8
952 RTA_IFA = 0x20
953 RTA_IFP = 0x10
954 RTA_NETMASK = 0x4
955 RTF_BLACKHOLE = 0x1000
956 RTF_BROADCAST = 0x400000
957 RTF_CLONING = 0x100
958 RTF_CONDEMNED = 0x2000000
959 RTF_DELCLONE = 0x80
960 RTF_DONE = 0x40
961 RTF_DYNAMIC = 0x10
962 RTF_GATEWAY = 0x2
963 RTF_HOST = 0x4
964 RTF_IFREF = 0x4000000
965 RTF_IFSCOPE = 0x1000000
966 RTF_LLINFO = 0x400
967 RTF_LOCAL = 0x200000
968 RTF_MODIFIED = 0x20
969 RTF_MULTICAST = 0x800000
970 RTF_NOIFREF = 0x2000
971 RTF_PINNED = 0x100000
972 RTF_PRCLONING = 0x10000
973 RTF_PROTO1 = 0x8000
974 RTF_PROTO2 = 0x4000
975 RTF_PROTO3 = 0x40000
976 RTF_PROXY = 0x8000000
977 RTF_REJECT = 0x8
978 RTF_ROUTER = 0x10000000
979 RTF_STATIC = 0x800
980 RTF_UP = 0x1
981 RTF_WASCLONED = 0x20000
982 RTF_XRESOLVE = 0x200
983 RTM_ADD = 0x1
984 RTM_CHANGE = 0x3
985 RTM_DELADDR = 0xd
986 RTM_DELETE = 0x2
987 RTM_DELMADDR = 0x10
988 RTM_GET = 0x4
989 RTM_GET2 = 0x14
990 RTM_IFINFO = 0xe
991 RTM_IFINFO2 = 0x12
992 RTM_LOCK = 0x8
993 RTM_LOSING = 0x5
994 RTM_MISS = 0x7
995 RTM_NEWADDR = 0xc
996 RTM_NEWMADDR = 0xf
997 RTM_NEWMADDR2 = 0x13
998 RTM_OLDADD = 0x9
999 RTM_OLDDEL = 0xa
1000 RTM_REDIRECT = 0x6
1001 RTM_RESOLVE = 0xb
1002 RTM_RTTUNIT = 0xf4240
1003 RTM_VERSION = 0x5
1004 RTV_EXPIRE = 0x4
1005 RTV_HOPCOUNT = 0x2
1006 RTV_MTU = 0x1
1007 RTV_RPIPE = 0x8
1008 RTV_RTT = 0x40
1009 RTV_RTTVAR = 0x80
1010 RTV_SPIPE = 0x10
1011 RTV_SSTHRESH = 0x20
1012 RUSAGE_CHILDREN = -0x1
1013 RUSAGE_SELF = 0x0
1014 SCM_CREDS = 0x3
1015 SCM_RIGHTS = 0x1
1016 SCM_TIMESTAMP = 0x2
1017 SCM_TIMESTAMP_MONOTONIC = 0x4
1018 SHUT_RD = 0x0
1019 SHUT_RDWR = 0x2
1020 SHUT_WR = 0x1
1021 SIOCADDMULTI = 0x80206931
1022 SIOCAIFADDR = 0x8040691a
1023 SIOCARPIPLL = 0xc0206928
1024 SIOCATMARK = 0x40047307
1025 SIOCAUTOADDR = 0xc0206926
1026 SIOCAUTONETMASK = 0x80206927
1027 SIOCDELMULTI = 0x80206932
1028 SIOCDIFADDR = 0x80206919
1029 SIOCDIFPHYADDR = 0x80206941
1030 SIOCGDRVSPEC = 0xc01c697b
1031 SIOCGETVLAN = 0xc020697f
1032 SIOCGHIWAT = 0x40047301
1033 SIOCGIFADDR = 0xc0206921
1034 SIOCGIFALTMTU = 0xc0206948
1035 SIOCGIFASYNCMAP = 0xc020697c
1036 SIOCGIFBOND = 0xc0206947
1037 SIOCGIFBRDADDR = 0xc0206923
1038 SIOCGIFCAP = 0xc020695b
1039 SIOCGIFCONF = 0xc0086924
1040 SIOCGIFDEVMTU = 0xc0206944
1041 SIOCGIFDSTADDR = 0xc0206922
1042 SIOCGIFFLAGS = 0xc0206911
1043 SIOCGIFGENERIC = 0xc020693a
1044 SIOCGIFKPI = 0xc0206987
1045 SIOCGIFMAC = 0xc0206982
1046 SIOCGIFMEDIA = 0xc0286938
1047 SIOCGIFMETRIC = 0xc0206917
1048 SIOCGIFMTU = 0xc0206933
1049 SIOCGIFNETMASK = 0xc0206925
1050 SIOCGIFPDSTADDR = 0xc0206940
1051 SIOCGIFPHYS = 0xc0206935
1052 SIOCGIFPSRCADDR = 0xc020693f
1053 SIOCGIFSTATUS = 0xc331693d
1054 SIOCGIFVLAN = 0xc020697f
1055 SIOCGIFWAKEFLAGS = 0xc0206988
1056 SIOCGLOWAT = 0x40047303
1057 SIOCGPGRP = 0x40047309
1058 SIOCIFCREATE = 0xc0206978
1059 SIOCIFCREATE2 = 0xc020697a
1060 SIOCIFDESTROY = 0x80206979
1061 SIOCIFGCLONERS = 0xc00c6981
1062 SIOCRSLVMULTI = 0xc008693b
1063 SIOCSDRVSPEC = 0x801c697b
1064 SIOCSETVLAN = 0x8020697e
1065 SIOCSHIWAT = 0x80047300
1066 SIOCSIFADDR = 0x8020690c
1067 SIOCSIFALTMTU = 0x80206945
1068 SIOCSIFASYNCMAP = 0x8020697d
1069 SIOCSIFBOND = 0x80206946
1070 SIOCSIFBRDADDR = 0x80206913
1071 SIOCSIFCAP = 0x8020695a
1072 SIOCSIFDSTADDR = 0x8020690e
1073 SIOCSIFFLAGS = 0x80206910
1074 SIOCSIFGENERIC = 0x80206939
1075 SIOCSIFKPI = 0x80206986
1076 SIOCSIFLLADDR = 0x8020693c
1077 SIOCSIFMAC = 0x80206983
1078 SIOCSIFMEDIA = 0xc0206937
1079 SIOCSIFMETRIC = 0x80206918
1080 SIOCSIFMTU = 0x80206934
1081 SIOCSIFNETMASK = 0x80206916
1082 SIOCSIFPHYADDR = 0x8040693e
1083 SIOCSIFPHYS = 0x80206936
1084 SIOCSIFVLAN = 0x8020697e
1085 SIOCSLOWAT = 0x80047302
1086 SIOCSPGRP = 0x80047308
1087 SOCK_DGRAM = 0x2
1088 SOCK_MAXADDRLEN = 0xff
1089 SOCK_RAW = 0x3
1090 SOCK_RDM = 0x4
1091 SOCK_SEQPACKET = 0x5
1092 SOCK_STREAM = 0x1
1093 SOL_SOCKET = 0xffff
1094 SOMAXCONN = 0x80
1095 SO_ACCEPTCONN = 0x2
1096 SO_BROADCAST = 0x20
1097 SO_DEBUG = 0x1
1098 SO_DONTROUTE = 0x10
1099 SO_DONTTRUNC = 0x2000
1100 SO_ERROR = 0x1007
1101 SO_KEEPALIVE = 0x8
1102 SO_LABEL = 0x1010
1103 SO_LINGER = 0x80
1104 SO_LINGER_SEC = 0x1080
1105 SO_NKE = 0x1021
1106 SO_NOADDRERR = 0x1023
1107 SO_NOSIGPIPE = 0x1022
1108 SO_NOTIFYCONFLICT = 0x1026
1109 SO_NP_EXTENSIONS = 0x1083
1110 SO_NREAD = 0x1020
1111 SO_NUMRCVPKT = 0x1112
1112 SO_NWRITE = 0x1024
1113 SO_OOBINLINE = 0x100
1114 SO_PEERLABEL = 0x1011
1115 SO_RANDOMPORT = 0x1082
1116 SO_RCVBUF = 0x1002
1117 SO_RCVLOWAT = 0x1004
1118 SO_RCVTIMEO = 0x1006
1119 SO_REUSEADDR = 0x4
1120 SO_REUSEPORT = 0x200
1121 SO_REUSESHAREUID = 0x1025
1122 SO_SNDBUF = 0x1001
1123 SO_SNDLOWAT = 0x1003
1124 SO_SNDTIMEO = 0x1005
1125 SO_TIMESTAMP = 0x400
1126 SO_TIMESTAMP_MONOTONIC = 0x800
1127 SO_TYPE = 0x1008
1128 SO_UPCALLCLOSEWAIT = 0x1027
1129 SO_USELOOPBACK = 0x40
1130 SO_WANTMORE = 0x4000
1131 SO_WANTOOBFLAG = 0x8000
1132 S_IEXEC = 0x40
1133 S_IFBLK = 0x6000
1134 S_IFCHR = 0x2000
1135 S_IFDIR = 0x4000
1136 S_IFIFO = 0x1000
1137 S_IFLNK = 0xa000
1138 S_IFMT = 0xf000
1139 S_IFREG = 0x8000
1140 S_IFSOCK = 0xc000
1141 S_IFWHT = 0xe000
1142 S_IREAD = 0x100
1143 S_IRGRP = 0x20
1144 S_IROTH = 0x4
1145 S_IRUSR = 0x100
1146 S_IRWXG = 0x38
1147 S_IRWXO = 0x7
1148 S_IRWXU = 0x1c0
1149 S_ISGID = 0x400
1150 S_ISTXT = 0x200
1151 S_ISUID = 0x800
1152 S_ISVTX = 0x200
1153 S_IWGRP = 0x10
1154 S_IWOTH = 0x2
1155 S_IWRITE = 0x80
1156 S_IWUSR = 0x80
1157 S_IXGRP = 0x8
1158 S_IXOTH = 0x1
1159 S_IXUSR = 0x40
1160 TCIFLUSH = 0x1
1161 TCIOFLUSH = 0x3
1162 TCOFLUSH = 0x2
1163 TCP_CONNECTIONTIMEOUT = 0x20
1164 TCP_ENABLE_ECN = 0x104
1165 TCP_KEEPALIVE = 0x10
1166 TCP_KEEPCNT = 0x102
1167 TCP_KEEPINTVL = 0x101
1168 TCP_MAXHLEN = 0x3c
1169 TCP_MAXOLEN = 0x28
1170 TCP_MAXSEG = 0x2
1171 TCP_MAXWIN = 0xffff
1172 TCP_MAX_SACK = 0x4
1173 TCP_MAX_WINSHIFT = 0xe
1174 TCP_MINMSS = 0xd8
1175 TCP_MSS = 0x200
1176 TCP_NODELAY = 0x1
1177 TCP_NOOPT = 0x8
1178 TCP_NOPUSH = 0x4
1179 TCP_NOTSENT_LOWAT = 0x201
1180 TCP_RXT_CONNDROPTIME = 0x80
1181 TCP_RXT_FINDROP = 0x100
1182 TCP_SENDMOREACKS = 0x103
1183 TCSAFLUSH = 0x2
1184 TIOCCBRK = 0x2000747a
1185 TIOCCDTR = 0x20007478
1186 TIOCCONS = 0x80047462
1187 TIOCDCDTIMESTAMP = 0x40087458
1188 TIOCDRAIN = 0x2000745e
1189 TIOCDSIMICROCODE = 0x20007455
1190 TIOCEXCL = 0x2000740d
1191 TIOCEXT = 0x80047460
1192 TIOCFLUSH = 0x80047410
1193 TIOCGDRAINWAIT = 0x40047456
1194 TIOCGETA = 0x402c7413
1195 TIOCGETD = 0x4004741a
1196 TIOCGPGRP = 0x40047477
1197 TIOCGWINSZ = 0x40087468
1198 TIOCIXOFF = 0x20007480
1199 TIOCIXON = 0x20007481
1200 TIOCMBIC = 0x8004746b
1201 TIOCMBIS = 0x8004746c
1202 TIOCMGDTRWAIT = 0x4004745a
1203 TIOCMGET = 0x4004746a
1204 TIOCMODG = 0x40047403
1205 TIOCMODS = 0x80047404
1206 TIOCMSDTRWAIT = 0x8004745b
1207 TIOCMSET = 0x8004746d
1208 TIOCM_CAR = 0x40
1209 TIOCM_CD = 0x40
1210 TIOCM_CTS = 0x20
1211 TIOCM_DSR = 0x100
1212 TIOCM_DTR = 0x2
1213 TIOCM_LE = 0x1
1214 TIOCM_RI = 0x80
1215 TIOCM_RNG = 0x80
1216 TIOCM_RTS = 0x4
1217 TIOCM_SR = 0x10
1218 TIOCM_ST = 0x8
1219 TIOCNOTTY = 0x20007471
1220 TIOCNXCL = 0x2000740e
1221 TIOCOUTQ = 0x40047473
1222 TIOCPKT = 0x80047470
1223 TIOCPKT_DATA = 0x0
1224 TIOCPKT_DOSTOP = 0x20
1225 TIOCPKT_FLUSHREAD = 0x1
1226 TIOCPKT_FLUSHWRITE = 0x2
1227 TIOCPKT_IOCTL = 0x40
1228 TIOCPKT_NOSTOP = 0x10
1229 TIOCPKT_START = 0x8
1230 TIOCPKT_STOP = 0x4
1231 TIOCPTYGNAME = 0x40807453
1232 TIOCPTYGRANT = 0x20007454
1233 TIOCPTYUNLK = 0x20007452
1234 TIOCREMOTE = 0x80047469
1235 TIOCSBRK = 0x2000747b
1236 TIOCSCONS = 0x20007463
1237 TIOCSCTTY = 0x20007461
1238 TIOCSDRAINWAIT = 0x80047457
1239 TIOCSDTR = 0x20007479
1240 TIOCSETA = 0x802c7414
1241 TIOCSETAF = 0x802c7416
1242 TIOCSETAW = 0x802c7415
1243 TIOCSETD = 0x8004741b
1244 TIOCSIG = 0x2000745f
1245 TIOCSPGRP = 0x80047476
1246 TIOCSTART = 0x2000746e
1247 TIOCSTAT = 0x20007465
1248 TIOCSTI = 0x80017472
1249 TIOCSTOP = 0x2000746f
1250 TIOCSWINSZ = 0x80087467
1251 TIOCTIMESTAMP = 0x40087459
1252 TIOCUCNTL = 0x80047466
1253 TOSTOP = 0x400000
1254 VDISCARD = 0xf
1255 VDSUSP = 0xb
1256 VEOF = 0x0
1257 VEOL = 0x1
1258 VEOL2 = 0x2
1259 VERASE = 0x3
1260 VINTR = 0x8
1261 VKILL = 0x5
1262 VLNEXT = 0xe
1263 VMIN = 0x10
1264 VQUIT = 0x9
1265 VREPRINT = 0x6
1266 VSTART = 0xc
1267 VSTATUS = 0x12
1268 VSTOP = 0xd
1269 VSUSP = 0xa
1270 VT0 = 0x0
1271 VT1 = 0x10000
1272 VTDLY = 0x10000
1273 VTIME = 0x11
1274 VWERASE = 0x4
1275 WCONTINUED = 0x10
1276 WCOREFLAG = 0x80
1277 WEXITED = 0x4
1278 WNOHANG = 0x1
1279 WNOWAIT = 0x20
1280 WORDSIZE = 0x20
1281 WSTOPPED = 0x8
1282 WUNTRACED = 0x2
1283)
1284
1285// Errors
1286const (
1287 E2BIG = syscall.Errno(0x7)
1288 EACCES = syscall.Errno(0xd)
1289 EADDRINUSE = syscall.Errno(0x30)
1290 EADDRNOTAVAIL = syscall.Errno(0x31)
1291 EAFNOSUPPORT = syscall.Errno(0x2f)
1292 EAGAIN = syscall.Errno(0x23)
1293 EALREADY = syscall.Errno(0x25)
1294 EAUTH = syscall.Errno(0x50)
1295 EBADARCH = syscall.Errno(0x56)
1296 EBADEXEC = syscall.Errno(0x55)
1297 EBADF = syscall.Errno(0x9)
1298 EBADMACHO = syscall.Errno(0x58)
1299 EBADMSG = syscall.Errno(0x5e)
1300 EBADRPC = syscall.Errno(0x48)
1301 EBUSY = syscall.Errno(0x10)
1302 ECANCELED = syscall.Errno(0x59)
1303 ECHILD = syscall.Errno(0xa)
1304 ECONNABORTED = syscall.Errno(0x35)
1305 ECONNREFUSED = syscall.Errno(0x3d)
1306 ECONNRESET = syscall.Errno(0x36)
1307 EDEADLK = syscall.Errno(0xb)
1308 EDESTADDRREQ = syscall.Errno(0x27)
1309 EDEVERR = syscall.Errno(0x53)
1310 EDOM = syscall.Errno(0x21)
1311 EDQUOT = syscall.Errno(0x45)
1312 EEXIST = syscall.Errno(0x11)
1313 EFAULT = syscall.Errno(0xe)
1314 EFBIG = syscall.Errno(0x1b)
1315 EFTYPE = syscall.Errno(0x4f)
1316 EHOSTDOWN = syscall.Errno(0x40)
1317 EHOSTUNREACH = syscall.Errno(0x41)
1318 EIDRM = syscall.Errno(0x5a)
1319 EILSEQ = syscall.Errno(0x5c)
1320 EINPROGRESS = syscall.Errno(0x24)
1321 EINTR = syscall.Errno(0x4)
1322 EINVAL = syscall.Errno(0x16)
1323 EIO = syscall.Errno(0x5)
1324 EISCONN = syscall.Errno(0x38)
1325 EISDIR = syscall.Errno(0x15)
1326 ELAST = syscall.Errno(0x6a)
1327 ELOOP = syscall.Errno(0x3e)
1328 EMFILE = syscall.Errno(0x18)
1329 EMLINK = syscall.Errno(0x1f)
1330 EMSGSIZE = syscall.Errno(0x28)
1331 EMULTIHOP = syscall.Errno(0x5f)
1332 ENAMETOOLONG = syscall.Errno(0x3f)
1333 ENEEDAUTH = syscall.Errno(0x51)
1334 ENETDOWN = syscall.Errno(0x32)
1335 ENETRESET = syscall.Errno(0x34)
1336 ENETUNREACH = syscall.Errno(0x33)
1337 ENFILE = syscall.Errno(0x17)
1338 ENOATTR = syscall.Errno(0x5d)
1339 ENOBUFS = syscall.Errno(0x37)
1340 ENODATA = syscall.Errno(0x60)
1341 ENODEV = syscall.Errno(0x13)
1342 ENOENT = syscall.Errno(0x2)
1343 ENOEXEC = syscall.Errno(0x8)
1344 ENOLCK = syscall.Errno(0x4d)
1345 ENOLINK = syscall.Errno(0x61)
1346 ENOMEM = syscall.Errno(0xc)
1347 ENOMSG = syscall.Errno(0x5b)
1348 ENOPOLICY = syscall.Errno(0x67)
1349 ENOPROTOOPT = syscall.Errno(0x2a)
1350 ENOSPC = syscall.Errno(0x1c)
1351 ENOSR = syscall.Errno(0x62)
1352 ENOSTR = syscall.Errno(0x63)
1353 ENOSYS = syscall.Errno(0x4e)
1354 ENOTBLK = syscall.Errno(0xf)
1355 ENOTCONN = syscall.Errno(0x39)
1356 ENOTDIR = syscall.Errno(0x14)
1357 ENOTEMPTY = syscall.Errno(0x42)
1358 ENOTRECOVERABLE = syscall.Errno(0x68)
1359 ENOTSOCK = syscall.Errno(0x26)
1360 ENOTSUP = syscall.Errno(0x2d)
1361 ENOTTY = syscall.Errno(0x19)
1362 ENXIO = syscall.Errno(0x6)
1363 EOPNOTSUPP = syscall.Errno(0x66)
1364 EOVERFLOW = syscall.Errno(0x54)
1365 EOWNERDEAD = syscall.Errno(0x69)
1366 EPERM = syscall.Errno(0x1)
1367 EPFNOSUPPORT = syscall.Errno(0x2e)
1368 EPIPE = syscall.Errno(0x20)
1369 EPROCLIM = syscall.Errno(0x43)
1370 EPROCUNAVAIL = syscall.Errno(0x4c)
1371 EPROGMISMATCH = syscall.Errno(0x4b)
1372 EPROGUNAVAIL = syscall.Errno(0x4a)
1373 EPROTO = syscall.Errno(0x64)
1374 EPROTONOSUPPORT = syscall.Errno(0x2b)
1375 EPROTOTYPE = syscall.Errno(0x29)
1376 EPWROFF = syscall.Errno(0x52)
1377 EQFULL = syscall.Errno(0x6a)
1378 ERANGE = syscall.Errno(0x22)
1379 EREMOTE = syscall.Errno(0x47)
1380 EROFS = syscall.Errno(0x1e)
1381 ERPCMISMATCH = syscall.Errno(0x49)
1382 ESHLIBVERS = syscall.Errno(0x57)
1383 ESHUTDOWN = syscall.Errno(0x3a)
1384 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1385 ESPIPE = syscall.Errno(0x1d)
1386 ESRCH = syscall.Errno(0x3)
1387 ESTALE = syscall.Errno(0x46)
1388 ETIME = syscall.Errno(0x65)
1389 ETIMEDOUT = syscall.Errno(0x3c)
1390 ETOOMANYREFS = syscall.Errno(0x3b)
1391 ETXTBSY = syscall.Errno(0x1a)
1392 EUSERS = syscall.Errno(0x44)
1393 EWOULDBLOCK = syscall.Errno(0x23)
1394 EXDEV = syscall.Errno(0x12)
1395)
1396
1397// Signals
1398const (
1399 SIGABRT = syscall.Signal(0x6)
1400 SIGALRM = syscall.Signal(0xe)
1401 SIGBUS = syscall.Signal(0xa)
1402 SIGCHLD = syscall.Signal(0x14)
1403 SIGCONT = syscall.Signal(0x13)
1404 SIGEMT = syscall.Signal(0x7)
1405 SIGFPE = syscall.Signal(0x8)
1406 SIGHUP = syscall.Signal(0x1)
1407 SIGILL = syscall.Signal(0x4)
1408 SIGINFO = syscall.Signal(0x1d)
1409 SIGINT = syscall.Signal(0x2)
1410 SIGIO = syscall.Signal(0x17)
1411 SIGIOT = syscall.Signal(0x6)
1412 SIGKILL = syscall.Signal(0x9)
1413 SIGPIPE = syscall.Signal(0xd)
1414 SIGPROF = syscall.Signal(0x1b)
1415 SIGQUIT = syscall.Signal(0x3)
1416 SIGSEGV = syscall.Signal(0xb)
1417 SIGSTOP = syscall.Signal(0x11)
1418 SIGSYS = syscall.Signal(0xc)
1419 SIGTERM = syscall.Signal(0xf)
1420 SIGTRAP = syscall.Signal(0x5)
1421 SIGTSTP = syscall.Signal(0x12)
1422 SIGTTIN = syscall.Signal(0x15)
1423 SIGTTOU = syscall.Signal(0x16)
1424 SIGURG = syscall.Signal(0x10)
1425 SIGUSR1 = syscall.Signal(0x1e)
1426 SIGUSR2 = syscall.Signal(0x1f)
1427 SIGVTALRM = syscall.Signal(0x1a)
1428 SIGWINCH = syscall.Signal(0x1c)
1429 SIGXCPU = syscall.Signal(0x18)
1430 SIGXFSZ = syscall.Signal(0x19)
1431)
1432
1433// Error table
1434var errors = [...]string{
1435 1: "operation not permitted",
1436 2: "no such file or directory",
1437 3: "no such process",
1438 4: "interrupted system call",
1439 5: "input/output error",
1440 6: "device not configured",
1441 7: "argument list too long",
1442 8: "exec format error",
1443 9: "bad file descriptor",
1444 10: "no child processes",
1445 11: "resource deadlock avoided",
1446 12: "cannot allocate memory",
1447 13: "permission denied",
1448 14: "bad address",
1449 15: "block device required",
1450 16: "resource busy",
1451 17: "file exists",
1452 18: "cross-device link",
1453 19: "operation not supported by device",
1454 20: "not a directory",
1455 21: "is a directory",
1456 22: "invalid argument",
1457 23: "too many open files in system",
1458 24: "too many open files",
1459 25: "inappropriate ioctl for device",
1460 26: "text file busy",
1461 27: "file too large",
1462 28: "no space left on device",
1463 29: "illegal seek",
1464 30: "read-only file system",
1465 31: "too many links",
1466 32: "broken pipe",
1467 33: "numerical argument out of domain",
1468 34: "result too large",
1469 35: "resource temporarily unavailable",
1470 36: "operation now in progress",
1471 37: "operation already in progress",
1472 38: "socket operation on non-socket",
1473 39: "destination address required",
1474 40: "message too long",
1475 41: "protocol wrong type for socket",
1476 42: "protocol not available",
1477 43: "protocol not supported",
1478 44: "socket type not supported",
1479 45: "operation not supported",
1480 46: "protocol family not supported",
1481 47: "address family not supported by protocol family",
1482 48: "address already in use",
1483 49: "can't assign requested address",
1484 50: "network is down",
1485 51: "network is unreachable",
1486 52: "network dropped connection on reset",
1487 53: "software caused connection abort",
1488 54: "connection reset by peer",
1489 55: "no buffer space available",
1490 56: "socket is already connected",
1491 57: "socket is not connected",
1492 58: "can't send after socket shutdown",
1493 59: "too many references: can't splice",
1494 60: "operation timed out",
1495 61: "connection refused",
1496 62: "too many levels of symbolic links",
1497 63: "file name too long",
1498 64: "host is down",
1499 65: "no route to host",
1500 66: "directory not empty",
1501 67: "too many processes",
1502 68: "too many users",
1503 69: "disc quota exceeded",
1504 70: "stale NFS file handle",
1505 71: "too many levels of remote in path",
1506 72: "RPC struct is bad",
1507 73: "RPC version wrong",
1508 74: "RPC prog. not avail",
1509 75: "program version wrong",
1510 76: "bad procedure for program",
1511 77: "no locks available",
1512 78: "function not implemented",
1513 79: "inappropriate file type or format",
1514 80: "authentication error",
1515 81: "need authenticator",
1516 82: "device power is off",
1517 83: "device error",
1518 84: "value too large to be stored in data type",
1519 85: "bad executable (or shared library)",
1520 86: "bad CPU type in executable",
1521 87: "shared library version mismatch",
1522 88: "malformed Mach-o file",
1523 89: "operation canceled",
1524 90: "identifier removed",
1525 91: "no message of desired type",
1526 92: "illegal byte sequence",
1527 93: "attribute not found",
1528 94: "bad message",
1529 95: "EMULTIHOP (Reserved)",
1530 96: "no message available on STREAM",
1531 97: "ENOLINK (Reserved)",
1532 98: "no STREAM resources",
1533 99: "not a STREAM",
1534 100: "protocol error",
1535 101: "STREAM ioctl timeout",
1536 102: "operation not supported on socket",
1537 103: "policy not found",
1538 104: "state not recoverable",
1539 105: "previous owner died",
1540 106: "interface output queue is full",
1541}
1542
1543// Signal table
1544var signals = [...]string{
1545 1: "hangup",
1546 2: "interrupt",
1547 3: "quit",
1548 4: "illegal instruction",
1549 5: "trace/BPT trap",
1550 6: "abort trap",
1551 7: "EMT trap",
1552 8: "floating point exception",
1553 9: "killed",
1554 10: "bus error",
1555 11: "segmentation fault",
1556 12: "bad system call",
1557 13: "broken pipe",
1558 14: "alarm clock",
1559 15: "terminated",
1560 16: "urgent I/O condition",
1561 17: "suspended (signal)",
1562 18: "suspended",
1563 19: "continued",
1564 20: "child exited",
1565 21: "stopped (tty input)",
1566 22: "stopped (tty output)",
1567 23: "I/O possible",
1568 24: "cputime limit exceeded",
1569 25: "filesize limit exceeded",
1570 26: "virtual timer expired",
1571 27: "profiling timer expired",
1572 28: "window size changes",
1573 29: "information request",
1574 30: "user defined signal 1",
1575 31: "user defined signal 2",
1576}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_amd64.go
deleted file mode 100644
index 9594f93..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_amd64.go
+++ /dev/null
@@ -1,1576 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,darwin
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_CCITT = 0xa
16 AF_CHAOS = 0x5
17 AF_CNT = 0x15
18 AF_COIP = 0x14
19 AF_DATAKIT = 0x9
20 AF_DECnet = 0xc
21 AF_DLI = 0xd
22 AF_E164 = 0x1c
23 AF_ECMA = 0x8
24 AF_HYLINK = 0xf
25 AF_IEEE80211 = 0x25
26 AF_IMPLINK = 0x3
27 AF_INET = 0x2
28 AF_INET6 = 0x1e
29 AF_IPX = 0x17
30 AF_ISDN = 0x1c
31 AF_ISO = 0x7
32 AF_LAT = 0xe
33 AF_LINK = 0x12
34 AF_LOCAL = 0x1
35 AF_MAX = 0x28
36 AF_NATM = 0x1f
37 AF_NDRV = 0x1b
38 AF_NETBIOS = 0x21
39 AF_NS = 0x6
40 AF_OSI = 0x7
41 AF_PPP = 0x22
42 AF_PUP = 0x4
43 AF_RESERVED_36 = 0x24
44 AF_ROUTE = 0x11
45 AF_SIP = 0x18
46 AF_SNA = 0xb
47 AF_SYSTEM = 0x20
48 AF_UNIX = 0x1
49 AF_UNSPEC = 0x0
50 AF_UTUN = 0x26
51 B0 = 0x0
52 B110 = 0x6e
53 B115200 = 0x1c200
54 B1200 = 0x4b0
55 B134 = 0x86
56 B14400 = 0x3840
57 B150 = 0x96
58 B1800 = 0x708
59 B19200 = 0x4b00
60 B200 = 0xc8
61 B230400 = 0x38400
62 B2400 = 0x960
63 B28800 = 0x7080
64 B300 = 0x12c
65 B38400 = 0x9600
66 B4800 = 0x12c0
67 B50 = 0x32
68 B57600 = 0xe100
69 B600 = 0x258
70 B7200 = 0x1c20
71 B75 = 0x4b
72 B76800 = 0x12c00
73 B9600 = 0x2580
74 BIOCFLUSH = 0x20004268
75 BIOCGBLEN = 0x40044266
76 BIOCGDLT = 0x4004426a
77 BIOCGDLTLIST = 0xc00c4279
78 BIOCGETIF = 0x4020426b
79 BIOCGHDRCMPLT = 0x40044274
80 BIOCGRSIG = 0x40044272
81 BIOCGRTIMEOUT = 0x4010426e
82 BIOCGSEESENT = 0x40044276
83 BIOCGSTATS = 0x4008426f
84 BIOCIMMEDIATE = 0x80044270
85 BIOCPROMISC = 0x20004269
86 BIOCSBLEN = 0xc0044266
87 BIOCSDLT = 0x80044278
88 BIOCSETF = 0x80104267
89 BIOCSETFNR = 0x8010427e
90 BIOCSETIF = 0x8020426c
91 BIOCSHDRCMPLT = 0x80044275
92 BIOCSRSIG = 0x80044273
93 BIOCSRTIMEOUT = 0x8010426d
94 BIOCSSEESENT = 0x80044277
95 BIOCVERSION = 0x40044271
96 BPF_A = 0x10
97 BPF_ABS = 0x20
98 BPF_ADD = 0x0
99 BPF_ALIGNMENT = 0x4
100 BPF_ALU = 0x4
101 BPF_AND = 0x50
102 BPF_B = 0x10
103 BPF_DIV = 0x30
104 BPF_H = 0x8
105 BPF_IMM = 0x0
106 BPF_IND = 0x40
107 BPF_JA = 0x0
108 BPF_JEQ = 0x10
109 BPF_JGE = 0x30
110 BPF_JGT = 0x20
111 BPF_JMP = 0x5
112 BPF_JSET = 0x40
113 BPF_K = 0x0
114 BPF_LD = 0x0
115 BPF_LDX = 0x1
116 BPF_LEN = 0x80
117 BPF_LSH = 0x60
118 BPF_MAJOR_VERSION = 0x1
119 BPF_MAXBUFSIZE = 0x80000
120 BPF_MAXINSNS = 0x200
121 BPF_MEM = 0x60
122 BPF_MEMWORDS = 0x10
123 BPF_MINBUFSIZE = 0x20
124 BPF_MINOR_VERSION = 0x1
125 BPF_MISC = 0x7
126 BPF_MSH = 0xa0
127 BPF_MUL = 0x20
128 BPF_NEG = 0x80
129 BPF_OR = 0x40
130 BPF_RELEASE = 0x30bb6
131 BPF_RET = 0x6
132 BPF_RSH = 0x70
133 BPF_ST = 0x2
134 BPF_STX = 0x3
135 BPF_SUB = 0x10
136 BPF_TAX = 0x0
137 BPF_TXA = 0x80
138 BPF_W = 0x0
139 BPF_X = 0x8
140 BRKINT = 0x2
141 CFLUSH = 0xf
142 CLOCAL = 0x8000
143 CREAD = 0x800
144 CS5 = 0x0
145 CS6 = 0x100
146 CS7 = 0x200
147 CS8 = 0x300
148 CSIZE = 0x300
149 CSTART = 0x11
150 CSTATUS = 0x14
151 CSTOP = 0x13
152 CSTOPB = 0x400
153 CSUSP = 0x1a
154 CTL_MAXNAME = 0xc
155 CTL_NET = 0x4
156 DLT_A429 = 0xb8
157 DLT_A653_ICM = 0xb9
158 DLT_AIRONET_HEADER = 0x78
159 DLT_AOS = 0xde
160 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
161 DLT_ARCNET = 0x7
162 DLT_ARCNET_LINUX = 0x81
163 DLT_ATM_CLIP = 0x13
164 DLT_ATM_RFC1483 = 0xb
165 DLT_AURORA = 0x7e
166 DLT_AX25 = 0x3
167 DLT_AX25_KISS = 0xca
168 DLT_BACNET_MS_TP = 0xa5
169 DLT_BLUETOOTH_HCI_H4 = 0xbb
170 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
171 DLT_CAN20B = 0xbe
172 DLT_CAN_SOCKETCAN = 0xe3
173 DLT_CHAOS = 0x5
174 DLT_CHDLC = 0x68
175 DLT_CISCO_IOS = 0x76
176 DLT_C_HDLC = 0x68
177 DLT_C_HDLC_WITH_DIR = 0xcd
178 DLT_DBUS = 0xe7
179 DLT_DECT = 0xdd
180 DLT_DOCSIS = 0x8f
181 DLT_DVB_CI = 0xeb
182 DLT_ECONET = 0x73
183 DLT_EN10MB = 0x1
184 DLT_EN3MB = 0x2
185 DLT_ENC = 0x6d
186 DLT_ERF = 0xc5
187 DLT_ERF_ETH = 0xaf
188 DLT_ERF_POS = 0xb0
189 DLT_FC_2 = 0xe0
190 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
191 DLT_FDDI = 0xa
192 DLT_FLEXRAY = 0xd2
193 DLT_FRELAY = 0x6b
194 DLT_FRELAY_WITH_DIR = 0xce
195 DLT_GCOM_SERIAL = 0xad
196 DLT_GCOM_T1E1 = 0xac
197 DLT_GPF_F = 0xab
198 DLT_GPF_T = 0xaa
199 DLT_GPRS_LLC = 0xa9
200 DLT_GSMTAP_ABIS = 0xda
201 DLT_GSMTAP_UM = 0xd9
202 DLT_HHDLC = 0x79
203 DLT_IBM_SN = 0x92
204 DLT_IBM_SP = 0x91
205 DLT_IEEE802 = 0x6
206 DLT_IEEE802_11 = 0x69
207 DLT_IEEE802_11_RADIO = 0x7f
208 DLT_IEEE802_11_RADIO_AVS = 0xa3
209 DLT_IEEE802_15_4 = 0xc3
210 DLT_IEEE802_15_4_LINUX = 0xbf
211 DLT_IEEE802_15_4_NOFCS = 0xe6
212 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
213 DLT_IEEE802_16_MAC_CPS = 0xbc
214 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
215 DLT_IPFILTER = 0x74
216 DLT_IPMB = 0xc7
217 DLT_IPMB_LINUX = 0xd1
218 DLT_IPNET = 0xe2
219 DLT_IPOIB = 0xf2
220 DLT_IPV4 = 0xe4
221 DLT_IPV6 = 0xe5
222 DLT_IP_OVER_FC = 0x7a
223 DLT_JUNIPER_ATM1 = 0x89
224 DLT_JUNIPER_ATM2 = 0x87
225 DLT_JUNIPER_ATM_CEMIC = 0xee
226 DLT_JUNIPER_CHDLC = 0xb5
227 DLT_JUNIPER_ES = 0x84
228 DLT_JUNIPER_ETHER = 0xb2
229 DLT_JUNIPER_FIBRECHANNEL = 0xea
230 DLT_JUNIPER_FRELAY = 0xb4
231 DLT_JUNIPER_GGSN = 0x85
232 DLT_JUNIPER_ISM = 0xc2
233 DLT_JUNIPER_MFR = 0x86
234 DLT_JUNIPER_MLFR = 0x83
235 DLT_JUNIPER_MLPPP = 0x82
236 DLT_JUNIPER_MONITOR = 0xa4
237 DLT_JUNIPER_PIC_PEER = 0xae
238 DLT_JUNIPER_PPP = 0xb3
239 DLT_JUNIPER_PPPOE = 0xa7
240 DLT_JUNIPER_PPPOE_ATM = 0xa8
241 DLT_JUNIPER_SERVICES = 0x88
242 DLT_JUNIPER_SRX_E2E = 0xe9
243 DLT_JUNIPER_ST = 0xc8
244 DLT_JUNIPER_VP = 0xb7
245 DLT_JUNIPER_VS = 0xe8
246 DLT_LAPB_WITH_DIR = 0xcf
247 DLT_LAPD = 0xcb
248 DLT_LIN = 0xd4
249 DLT_LINUX_EVDEV = 0xd8
250 DLT_LINUX_IRDA = 0x90
251 DLT_LINUX_LAPD = 0xb1
252 DLT_LINUX_PPP_WITHDIRECTION = 0xa6
253 DLT_LINUX_SLL = 0x71
254 DLT_LOOP = 0x6c
255 DLT_LTALK = 0x72
256 DLT_MATCHING_MAX = 0xf5
257 DLT_MATCHING_MIN = 0x68
258 DLT_MFR = 0xb6
259 DLT_MOST = 0xd3
260 DLT_MPEG_2_TS = 0xf3
261 DLT_MPLS = 0xdb
262 DLT_MTP2 = 0x8c
263 DLT_MTP2_WITH_PHDR = 0x8b
264 DLT_MTP3 = 0x8d
265 DLT_MUX27010 = 0xec
266 DLT_NETANALYZER = 0xf0
267 DLT_NETANALYZER_TRANSPARENT = 0xf1
268 DLT_NFC_LLCP = 0xf5
269 DLT_NFLOG = 0xef
270 DLT_NG40 = 0xf4
271 DLT_NULL = 0x0
272 DLT_PCI_EXP = 0x7d
273 DLT_PFLOG = 0x75
274 DLT_PFSYNC = 0x12
275 DLT_PPI = 0xc0
276 DLT_PPP = 0x9
277 DLT_PPP_BSDOS = 0x10
278 DLT_PPP_ETHER = 0x33
279 DLT_PPP_PPPD = 0xa6
280 DLT_PPP_SERIAL = 0x32
281 DLT_PPP_WITH_DIR = 0xcc
282 DLT_PPP_WITH_DIRECTION = 0xa6
283 DLT_PRISM_HEADER = 0x77
284 DLT_PRONET = 0x4
285 DLT_RAIF1 = 0xc6
286 DLT_RAW = 0xc
287 DLT_RIO = 0x7c
288 DLT_SCCP = 0x8e
289 DLT_SITA = 0xc4
290 DLT_SLIP = 0x8
291 DLT_SLIP_BSDOS = 0xf
292 DLT_STANAG_5066_D_PDU = 0xed
293 DLT_SUNATM = 0x7b
294 DLT_SYMANTEC_FIREWALL = 0x63
295 DLT_TZSP = 0x80
296 DLT_USB = 0xba
297 DLT_USB_LINUX = 0xbd
298 DLT_USB_LINUX_MMAPPED = 0xdc
299 DLT_USER0 = 0x93
300 DLT_USER1 = 0x94
301 DLT_USER10 = 0x9d
302 DLT_USER11 = 0x9e
303 DLT_USER12 = 0x9f
304 DLT_USER13 = 0xa0
305 DLT_USER14 = 0xa1
306 DLT_USER15 = 0xa2
307 DLT_USER2 = 0x95
308 DLT_USER3 = 0x96
309 DLT_USER4 = 0x97
310 DLT_USER5 = 0x98
311 DLT_USER6 = 0x99
312 DLT_USER7 = 0x9a
313 DLT_USER8 = 0x9b
314 DLT_USER9 = 0x9c
315 DLT_WIHART = 0xdf
316 DLT_X2E_SERIAL = 0xd5
317 DLT_X2E_XORAYA = 0xd6
318 DT_BLK = 0x6
319 DT_CHR = 0x2
320 DT_DIR = 0x4
321 DT_FIFO = 0x1
322 DT_LNK = 0xa
323 DT_REG = 0x8
324 DT_SOCK = 0xc
325 DT_UNKNOWN = 0x0
326 DT_WHT = 0xe
327 ECHO = 0x8
328 ECHOCTL = 0x40
329 ECHOE = 0x2
330 ECHOK = 0x4
331 ECHOKE = 0x1
332 ECHONL = 0x10
333 ECHOPRT = 0x20
334 EVFILT_AIO = -0x3
335 EVFILT_FS = -0x9
336 EVFILT_MACHPORT = -0x8
337 EVFILT_PROC = -0x5
338 EVFILT_READ = -0x1
339 EVFILT_SIGNAL = -0x6
340 EVFILT_SYSCOUNT = 0xe
341 EVFILT_THREADMARKER = 0xe
342 EVFILT_TIMER = -0x7
343 EVFILT_USER = -0xa
344 EVFILT_VM = -0xc
345 EVFILT_VNODE = -0x4
346 EVFILT_WRITE = -0x2
347 EV_ADD = 0x1
348 EV_CLEAR = 0x20
349 EV_DELETE = 0x2
350 EV_DISABLE = 0x8
351 EV_DISPATCH = 0x80
352 EV_ENABLE = 0x4
353 EV_EOF = 0x8000
354 EV_ERROR = 0x4000
355 EV_FLAG0 = 0x1000
356 EV_FLAG1 = 0x2000
357 EV_ONESHOT = 0x10
358 EV_OOBAND = 0x2000
359 EV_POLL = 0x1000
360 EV_RECEIPT = 0x40
361 EV_SYSFLAGS = 0xf000
362 EXTA = 0x4b00
363 EXTB = 0x9600
364 EXTPROC = 0x800
365 FD_CLOEXEC = 0x1
366 FD_SETSIZE = 0x400
367 FLUSHO = 0x800000
368 F_ADDFILESIGS = 0x3d
369 F_ADDSIGS = 0x3b
370 F_ALLOCATEALL = 0x4
371 F_ALLOCATECONTIG = 0x2
372 F_CHKCLEAN = 0x29
373 F_DUPFD = 0x0
374 F_DUPFD_CLOEXEC = 0x43
375 F_FINDSIGS = 0x4e
376 F_FLUSH_DATA = 0x28
377 F_FREEZE_FS = 0x35
378 F_FULLFSYNC = 0x33
379 F_GETCODEDIR = 0x48
380 F_GETFD = 0x1
381 F_GETFL = 0x3
382 F_GETLK = 0x7
383 F_GETLKPID = 0x42
384 F_GETNOSIGPIPE = 0x4a
385 F_GETOWN = 0x5
386 F_GETPATH = 0x32
387 F_GETPATH_MTMINFO = 0x47
388 F_GETPROTECTIONCLASS = 0x3f
389 F_GETPROTECTIONLEVEL = 0x4d
390 F_GLOBAL_NOCACHE = 0x37
391 F_LOG2PHYS = 0x31
392 F_LOG2PHYS_EXT = 0x41
393 F_NOCACHE = 0x30
394 F_NODIRECT = 0x3e
395 F_OK = 0x0
396 F_PATHPKG_CHECK = 0x34
397 F_PEOFPOSMODE = 0x3
398 F_PREALLOCATE = 0x2a
399 F_RDADVISE = 0x2c
400 F_RDAHEAD = 0x2d
401 F_RDLCK = 0x1
402 F_SETBACKINGSTORE = 0x46
403 F_SETFD = 0x2
404 F_SETFL = 0x4
405 F_SETLK = 0x8
406 F_SETLKW = 0x9
407 F_SETLKWTIMEOUT = 0xa
408 F_SETNOSIGPIPE = 0x49
409 F_SETOWN = 0x6
410 F_SETPROTECTIONCLASS = 0x40
411 F_SETSIZE = 0x2b
412 F_SINGLE_WRITER = 0x4c
413 F_THAW_FS = 0x36
414 F_TRANSCODEKEY = 0x4b
415 F_UNLCK = 0x2
416 F_VOLPOSMODE = 0x4
417 F_WRLCK = 0x3
418 HUPCL = 0x4000
419 ICANON = 0x100
420 ICMP6_FILTER = 0x12
421 ICRNL = 0x100
422 IEXTEN = 0x400
423 IFF_ALLMULTI = 0x200
424 IFF_ALTPHYS = 0x4000
425 IFF_BROADCAST = 0x2
426 IFF_DEBUG = 0x4
427 IFF_LINK0 = 0x1000
428 IFF_LINK1 = 0x2000
429 IFF_LINK2 = 0x4000
430 IFF_LOOPBACK = 0x8
431 IFF_MULTICAST = 0x8000
432 IFF_NOARP = 0x80
433 IFF_NOTRAILERS = 0x20
434 IFF_OACTIVE = 0x400
435 IFF_POINTOPOINT = 0x10
436 IFF_PROMISC = 0x100
437 IFF_RUNNING = 0x40
438 IFF_SIMPLEX = 0x800
439 IFF_UP = 0x1
440 IFNAMSIZ = 0x10
441 IFT_1822 = 0x2
442 IFT_AAL5 = 0x31
443 IFT_ARCNET = 0x23
444 IFT_ARCNETPLUS = 0x24
445 IFT_ATM = 0x25
446 IFT_BRIDGE = 0xd1
447 IFT_CARP = 0xf8
448 IFT_CELLULAR = 0xff
449 IFT_CEPT = 0x13
450 IFT_DS3 = 0x1e
451 IFT_ENC = 0xf4
452 IFT_EON = 0x19
453 IFT_ETHER = 0x6
454 IFT_FAITH = 0x38
455 IFT_FDDI = 0xf
456 IFT_FRELAY = 0x20
457 IFT_FRELAYDCE = 0x2c
458 IFT_GIF = 0x37
459 IFT_HDH1822 = 0x3
460 IFT_HIPPI = 0x2f
461 IFT_HSSI = 0x2e
462 IFT_HY = 0xe
463 IFT_IEEE1394 = 0x90
464 IFT_IEEE8023ADLAG = 0x88
465 IFT_ISDNBASIC = 0x14
466 IFT_ISDNPRIMARY = 0x15
467 IFT_ISO88022LLC = 0x29
468 IFT_ISO88023 = 0x7
469 IFT_ISO88024 = 0x8
470 IFT_ISO88025 = 0x9
471 IFT_ISO88026 = 0xa
472 IFT_L2VLAN = 0x87
473 IFT_LAPB = 0x10
474 IFT_LOCALTALK = 0x2a
475 IFT_LOOP = 0x18
476 IFT_MIOX25 = 0x26
477 IFT_MODEM = 0x30
478 IFT_NSIP = 0x1b
479 IFT_OTHER = 0x1
480 IFT_P10 = 0xc
481 IFT_P80 = 0xd
482 IFT_PARA = 0x22
483 IFT_PDP = 0xff
484 IFT_PFLOG = 0xf5
485 IFT_PFSYNC = 0xf6
486 IFT_PKTAP = 0xfe
487 IFT_PPP = 0x17
488 IFT_PROPMUX = 0x36
489 IFT_PROPVIRTUAL = 0x35
490 IFT_PTPSERIAL = 0x16
491 IFT_RS232 = 0x21
492 IFT_SDLC = 0x11
493 IFT_SIP = 0x1f
494 IFT_SLIP = 0x1c
495 IFT_SMDSDXI = 0x2b
496 IFT_SMDSICIP = 0x34
497 IFT_SONET = 0x27
498 IFT_SONETPATH = 0x32
499 IFT_SONETVT = 0x33
500 IFT_STARLAN = 0xb
501 IFT_STF = 0x39
502 IFT_T1 = 0x12
503 IFT_ULTRA = 0x1d
504 IFT_V35 = 0x2d
505 IFT_X25 = 0x5
506 IFT_X25DDN = 0x4
507 IFT_X25PLE = 0x28
508 IFT_XETHER = 0x1a
509 IGNBRK = 0x1
510 IGNCR = 0x80
511 IGNPAR = 0x4
512 IMAXBEL = 0x2000
513 INLCR = 0x40
514 INPCK = 0x10
515 IN_CLASSA_HOST = 0xffffff
516 IN_CLASSA_MAX = 0x80
517 IN_CLASSA_NET = 0xff000000
518 IN_CLASSA_NSHIFT = 0x18
519 IN_CLASSB_HOST = 0xffff
520 IN_CLASSB_MAX = 0x10000
521 IN_CLASSB_NET = 0xffff0000
522 IN_CLASSB_NSHIFT = 0x10
523 IN_CLASSC_HOST = 0xff
524 IN_CLASSC_NET = 0xffffff00
525 IN_CLASSC_NSHIFT = 0x8
526 IN_CLASSD_HOST = 0xfffffff
527 IN_CLASSD_NET = 0xf0000000
528 IN_CLASSD_NSHIFT = 0x1c
529 IN_LINKLOCALNETNUM = 0xa9fe0000
530 IN_LOOPBACKNET = 0x7f
531 IPPROTO_3PC = 0x22
532 IPPROTO_ADFS = 0x44
533 IPPROTO_AH = 0x33
534 IPPROTO_AHIP = 0x3d
535 IPPROTO_APES = 0x63
536 IPPROTO_ARGUS = 0xd
537 IPPROTO_AX25 = 0x5d
538 IPPROTO_BHA = 0x31
539 IPPROTO_BLT = 0x1e
540 IPPROTO_BRSATMON = 0x4c
541 IPPROTO_CFTP = 0x3e
542 IPPROTO_CHAOS = 0x10
543 IPPROTO_CMTP = 0x26
544 IPPROTO_CPHB = 0x49
545 IPPROTO_CPNX = 0x48
546 IPPROTO_DDP = 0x25
547 IPPROTO_DGP = 0x56
548 IPPROTO_DIVERT = 0xfe
549 IPPROTO_DONE = 0x101
550 IPPROTO_DSTOPTS = 0x3c
551 IPPROTO_EGP = 0x8
552 IPPROTO_EMCON = 0xe
553 IPPROTO_ENCAP = 0x62
554 IPPROTO_EON = 0x50
555 IPPROTO_ESP = 0x32
556 IPPROTO_ETHERIP = 0x61
557 IPPROTO_FRAGMENT = 0x2c
558 IPPROTO_GGP = 0x3
559 IPPROTO_GMTP = 0x64
560 IPPROTO_GRE = 0x2f
561 IPPROTO_HELLO = 0x3f
562 IPPROTO_HMP = 0x14
563 IPPROTO_HOPOPTS = 0x0
564 IPPROTO_ICMP = 0x1
565 IPPROTO_ICMPV6 = 0x3a
566 IPPROTO_IDP = 0x16
567 IPPROTO_IDPR = 0x23
568 IPPROTO_IDRP = 0x2d
569 IPPROTO_IGMP = 0x2
570 IPPROTO_IGP = 0x55
571 IPPROTO_IGRP = 0x58
572 IPPROTO_IL = 0x28
573 IPPROTO_INLSP = 0x34
574 IPPROTO_INP = 0x20
575 IPPROTO_IP = 0x0
576 IPPROTO_IPCOMP = 0x6c
577 IPPROTO_IPCV = 0x47
578 IPPROTO_IPEIP = 0x5e
579 IPPROTO_IPIP = 0x4
580 IPPROTO_IPPC = 0x43
581 IPPROTO_IPV4 = 0x4
582 IPPROTO_IPV6 = 0x29
583 IPPROTO_IRTP = 0x1c
584 IPPROTO_KRYPTOLAN = 0x41
585 IPPROTO_LARP = 0x5b
586 IPPROTO_LEAF1 = 0x19
587 IPPROTO_LEAF2 = 0x1a
588 IPPROTO_MAX = 0x100
589 IPPROTO_MAXID = 0x34
590 IPPROTO_MEAS = 0x13
591 IPPROTO_MHRP = 0x30
592 IPPROTO_MICP = 0x5f
593 IPPROTO_MTP = 0x5c
594 IPPROTO_MUX = 0x12
595 IPPROTO_ND = 0x4d
596 IPPROTO_NHRP = 0x36
597 IPPROTO_NONE = 0x3b
598 IPPROTO_NSP = 0x1f
599 IPPROTO_NVPII = 0xb
600 IPPROTO_OSPFIGP = 0x59
601 IPPROTO_PGM = 0x71
602 IPPROTO_PIGP = 0x9
603 IPPROTO_PIM = 0x67
604 IPPROTO_PRM = 0x15
605 IPPROTO_PUP = 0xc
606 IPPROTO_PVP = 0x4b
607 IPPROTO_RAW = 0xff
608 IPPROTO_RCCMON = 0xa
609 IPPROTO_RDP = 0x1b
610 IPPROTO_ROUTING = 0x2b
611 IPPROTO_RSVP = 0x2e
612 IPPROTO_RVD = 0x42
613 IPPROTO_SATEXPAK = 0x40
614 IPPROTO_SATMON = 0x45
615 IPPROTO_SCCSP = 0x60
616 IPPROTO_SCTP = 0x84
617 IPPROTO_SDRP = 0x2a
618 IPPROTO_SEP = 0x21
619 IPPROTO_SRPC = 0x5a
620 IPPROTO_ST = 0x7
621 IPPROTO_SVMTP = 0x52
622 IPPROTO_SWIPE = 0x35
623 IPPROTO_TCF = 0x57
624 IPPROTO_TCP = 0x6
625 IPPROTO_TP = 0x1d
626 IPPROTO_TPXX = 0x27
627 IPPROTO_TRUNK1 = 0x17
628 IPPROTO_TRUNK2 = 0x18
629 IPPROTO_TTP = 0x54
630 IPPROTO_UDP = 0x11
631 IPPROTO_VINES = 0x53
632 IPPROTO_VISA = 0x46
633 IPPROTO_VMTP = 0x51
634 IPPROTO_WBEXPAK = 0x4f
635 IPPROTO_WBMON = 0x4e
636 IPPROTO_WSN = 0x4a
637 IPPROTO_XNET = 0xf
638 IPPROTO_XTP = 0x24
639 IPV6_2292DSTOPTS = 0x17
640 IPV6_2292HOPLIMIT = 0x14
641 IPV6_2292HOPOPTS = 0x16
642 IPV6_2292NEXTHOP = 0x15
643 IPV6_2292PKTINFO = 0x13
644 IPV6_2292PKTOPTIONS = 0x19
645 IPV6_2292RTHDR = 0x18
646 IPV6_BINDV6ONLY = 0x1b
647 IPV6_BOUND_IF = 0x7d
648 IPV6_CHECKSUM = 0x1a
649 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
650 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
651 IPV6_DEFHLIM = 0x40
652 IPV6_FAITH = 0x1d
653 IPV6_FLOWINFO_MASK = 0xffffff0f
654 IPV6_FLOWLABEL_MASK = 0xffff0f00
655 IPV6_FRAGTTL = 0x3c
656 IPV6_FW_ADD = 0x1e
657 IPV6_FW_DEL = 0x1f
658 IPV6_FW_FLUSH = 0x20
659 IPV6_FW_GET = 0x22
660 IPV6_FW_ZERO = 0x21
661 IPV6_HLIMDEC = 0x1
662 IPV6_IPSEC_POLICY = 0x1c
663 IPV6_JOIN_GROUP = 0xc
664 IPV6_LEAVE_GROUP = 0xd
665 IPV6_MAXHLIM = 0xff
666 IPV6_MAXOPTHDR = 0x800
667 IPV6_MAXPACKET = 0xffff
668 IPV6_MAX_GROUP_SRC_FILTER = 0x200
669 IPV6_MAX_MEMBERSHIPS = 0xfff
670 IPV6_MAX_SOCK_SRC_FILTER = 0x80
671 IPV6_MIN_MEMBERSHIPS = 0x1f
672 IPV6_MMTU = 0x500
673 IPV6_MULTICAST_HOPS = 0xa
674 IPV6_MULTICAST_IF = 0x9
675 IPV6_MULTICAST_LOOP = 0xb
676 IPV6_PORTRANGE = 0xe
677 IPV6_PORTRANGE_DEFAULT = 0x0
678 IPV6_PORTRANGE_HIGH = 0x1
679 IPV6_PORTRANGE_LOW = 0x2
680 IPV6_RECVTCLASS = 0x23
681 IPV6_RTHDR_LOOSE = 0x0
682 IPV6_RTHDR_STRICT = 0x1
683 IPV6_RTHDR_TYPE_0 = 0x0
684 IPV6_SOCKOPT_RESERVED1 = 0x3
685 IPV6_TCLASS = 0x24
686 IPV6_UNICAST_HOPS = 0x4
687 IPV6_V6ONLY = 0x1b
688 IPV6_VERSION = 0x60
689 IPV6_VERSION_MASK = 0xf0
690 IP_ADD_MEMBERSHIP = 0xc
691 IP_ADD_SOURCE_MEMBERSHIP = 0x46
692 IP_BLOCK_SOURCE = 0x48
693 IP_BOUND_IF = 0x19
694 IP_DEFAULT_MULTICAST_LOOP = 0x1
695 IP_DEFAULT_MULTICAST_TTL = 0x1
696 IP_DF = 0x4000
697 IP_DROP_MEMBERSHIP = 0xd
698 IP_DROP_SOURCE_MEMBERSHIP = 0x47
699 IP_DUMMYNET_CONFIGURE = 0x3c
700 IP_DUMMYNET_DEL = 0x3d
701 IP_DUMMYNET_FLUSH = 0x3e
702 IP_DUMMYNET_GET = 0x40
703 IP_FAITH = 0x16
704 IP_FW_ADD = 0x28
705 IP_FW_DEL = 0x29
706 IP_FW_FLUSH = 0x2a
707 IP_FW_GET = 0x2c
708 IP_FW_RESETLOG = 0x2d
709 IP_FW_ZERO = 0x2b
710 IP_HDRINCL = 0x2
711 IP_IPSEC_POLICY = 0x15
712 IP_MAXPACKET = 0xffff
713 IP_MAX_GROUP_SRC_FILTER = 0x200
714 IP_MAX_MEMBERSHIPS = 0xfff
715 IP_MAX_SOCK_MUTE_FILTER = 0x80
716 IP_MAX_SOCK_SRC_FILTER = 0x80
717 IP_MF = 0x2000
718 IP_MIN_MEMBERSHIPS = 0x1f
719 IP_MSFILTER = 0x4a
720 IP_MSS = 0x240
721 IP_MULTICAST_IF = 0x9
722 IP_MULTICAST_IFINDEX = 0x42
723 IP_MULTICAST_LOOP = 0xb
724 IP_MULTICAST_TTL = 0xa
725 IP_MULTICAST_VIF = 0xe
726 IP_NAT__XXX = 0x37
727 IP_OFFMASK = 0x1fff
728 IP_OLD_FW_ADD = 0x32
729 IP_OLD_FW_DEL = 0x33
730 IP_OLD_FW_FLUSH = 0x34
731 IP_OLD_FW_GET = 0x36
732 IP_OLD_FW_RESETLOG = 0x38
733 IP_OLD_FW_ZERO = 0x35
734 IP_OPTIONS = 0x1
735 IP_PKTINFO = 0x1a
736 IP_PORTRANGE = 0x13
737 IP_PORTRANGE_DEFAULT = 0x0
738 IP_PORTRANGE_HIGH = 0x1
739 IP_PORTRANGE_LOW = 0x2
740 IP_RECVDSTADDR = 0x7
741 IP_RECVIF = 0x14
742 IP_RECVOPTS = 0x5
743 IP_RECVPKTINFO = 0x1a
744 IP_RECVRETOPTS = 0x6
745 IP_RECVTTL = 0x18
746 IP_RETOPTS = 0x8
747 IP_RF = 0x8000
748 IP_RSVP_OFF = 0x10
749 IP_RSVP_ON = 0xf
750 IP_RSVP_VIF_OFF = 0x12
751 IP_RSVP_VIF_ON = 0x11
752 IP_STRIPHDR = 0x17
753 IP_TOS = 0x3
754 IP_TRAFFIC_MGT_BACKGROUND = 0x41
755 IP_TTL = 0x4
756 IP_UNBLOCK_SOURCE = 0x49
757 ISIG = 0x80
758 ISTRIP = 0x20
759 IUTF8 = 0x4000
760 IXANY = 0x800
761 IXOFF = 0x400
762 IXON = 0x200
763 LOCK_EX = 0x2
764 LOCK_NB = 0x4
765 LOCK_SH = 0x1
766 LOCK_UN = 0x8
767 MADV_CAN_REUSE = 0x9
768 MADV_DONTNEED = 0x4
769 MADV_FREE = 0x5
770 MADV_FREE_REUSABLE = 0x7
771 MADV_FREE_REUSE = 0x8
772 MADV_NORMAL = 0x0
773 MADV_RANDOM = 0x1
774 MADV_SEQUENTIAL = 0x2
775 MADV_WILLNEED = 0x3
776 MADV_ZERO_WIRED_PAGES = 0x6
777 MAP_ANON = 0x1000
778 MAP_COPY = 0x2
779 MAP_FILE = 0x0
780 MAP_FIXED = 0x10
781 MAP_HASSEMAPHORE = 0x200
782 MAP_JIT = 0x800
783 MAP_NOCACHE = 0x400
784 MAP_NOEXTEND = 0x100
785 MAP_NORESERVE = 0x40
786 MAP_PRIVATE = 0x2
787 MAP_RENAME = 0x20
788 MAP_RESERVED0080 = 0x80
789 MAP_SHARED = 0x1
790 MCL_CURRENT = 0x1
791 MCL_FUTURE = 0x2
792 MSG_CTRUNC = 0x20
793 MSG_DONTROUTE = 0x4
794 MSG_DONTWAIT = 0x80
795 MSG_EOF = 0x100
796 MSG_EOR = 0x8
797 MSG_FLUSH = 0x400
798 MSG_HAVEMORE = 0x2000
799 MSG_HOLD = 0x800
800 MSG_NEEDSA = 0x10000
801 MSG_OOB = 0x1
802 MSG_PEEK = 0x2
803 MSG_RCVMORE = 0x4000
804 MSG_SEND = 0x1000
805 MSG_TRUNC = 0x10
806 MSG_WAITALL = 0x40
807 MSG_WAITSTREAM = 0x200
808 MS_ASYNC = 0x1
809 MS_DEACTIVATE = 0x8
810 MS_INVALIDATE = 0x2
811 MS_KILLPAGES = 0x4
812 MS_SYNC = 0x10
813 NAME_MAX = 0xff
814 NET_RT_DUMP = 0x1
815 NET_RT_DUMP2 = 0x7
816 NET_RT_FLAGS = 0x2
817 NET_RT_IFLIST = 0x3
818 NET_RT_IFLIST2 = 0x6
819 NET_RT_MAXID = 0xa
820 NET_RT_STAT = 0x4
821 NET_RT_TRASH = 0x5
822 NOFLSH = 0x80000000
823 NOTE_ABSOLUTE = 0x8
824 NOTE_ATTRIB = 0x8
825 NOTE_BACKGROUND = 0x40
826 NOTE_CHILD = 0x4
827 NOTE_CRITICAL = 0x20
828 NOTE_DELETE = 0x1
829 NOTE_EXEC = 0x20000000
830 NOTE_EXIT = 0x80000000
831 NOTE_EXITSTATUS = 0x4000000
832 NOTE_EXIT_CSERROR = 0x40000
833 NOTE_EXIT_DECRYPTFAIL = 0x10000
834 NOTE_EXIT_DETAIL = 0x2000000
835 NOTE_EXIT_DETAIL_MASK = 0x70000
836 NOTE_EXIT_MEMORY = 0x20000
837 NOTE_EXIT_REPARENTED = 0x80000
838 NOTE_EXTEND = 0x4
839 NOTE_FFAND = 0x40000000
840 NOTE_FFCOPY = 0xc0000000
841 NOTE_FFCTRLMASK = 0xc0000000
842 NOTE_FFLAGSMASK = 0xffffff
843 NOTE_FFNOP = 0x0
844 NOTE_FFOR = 0x80000000
845 NOTE_FORK = 0x40000000
846 NOTE_LEEWAY = 0x10
847 NOTE_LINK = 0x10
848 NOTE_LOWAT = 0x1
849 NOTE_NONE = 0x80
850 NOTE_NSECONDS = 0x4
851 NOTE_PCTRLMASK = -0x100000
852 NOTE_PDATAMASK = 0xfffff
853 NOTE_REAP = 0x10000000
854 NOTE_RENAME = 0x20
855 NOTE_REVOKE = 0x40
856 NOTE_SECONDS = 0x1
857 NOTE_SIGNAL = 0x8000000
858 NOTE_TRACK = 0x1
859 NOTE_TRACKERR = 0x2
860 NOTE_TRIGGER = 0x1000000
861 NOTE_USECONDS = 0x2
862 NOTE_VM_ERROR = 0x10000000
863 NOTE_VM_PRESSURE = 0x80000000
864 NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000
865 NOTE_VM_PRESSURE_TERMINATE = 0x40000000
866 NOTE_WRITE = 0x2
867 OCRNL = 0x10
868 OFDEL = 0x20000
869 OFILL = 0x80
870 ONLCR = 0x2
871 ONLRET = 0x40
872 ONOCR = 0x20
873 ONOEOT = 0x8
874 OPOST = 0x1
875 O_ACCMODE = 0x3
876 O_ALERT = 0x20000000
877 O_APPEND = 0x8
878 O_ASYNC = 0x40
879 O_CLOEXEC = 0x1000000
880 O_CREAT = 0x200
881 O_DIRECTORY = 0x100000
882 O_DP_GETRAWENCRYPTED = 0x1
883 O_DSYNC = 0x400000
884 O_EVTONLY = 0x8000
885 O_EXCL = 0x800
886 O_EXLOCK = 0x20
887 O_FSYNC = 0x80
888 O_NDELAY = 0x4
889 O_NOCTTY = 0x20000
890 O_NOFOLLOW = 0x100
891 O_NONBLOCK = 0x4
892 O_POPUP = 0x80000000
893 O_RDONLY = 0x0
894 O_RDWR = 0x2
895 O_SHLOCK = 0x10
896 O_SYMLINK = 0x200000
897 O_SYNC = 0x80
898 O_TRUNC = 0x400
899 O_WRONLY = 0x1
900 PARENB = 0x1000
901 PARMRK = 0x8
902 PARODD = 0x2000
903 PENDIN = 0x20000000
904 PRIO_PGRP = 0x1
905 PRIO_PROCESS = 0x0
906 PRIO_USER = 0x2
907 PROT_EXEC = 0x4
908 PROT_NONE = 0x0
909 PROT_READ = 0x1
910 PROT_WRITE = 0x2
911 PT_ATTACH = 0xa
912 PT_ATTACHEXC = 0xe
913 PT_CONTINUE = 0x7
914 PT_DENY_ATTACH = 0x1f
915 PT_DETACH = 0xb
916 PT_FIRSTMACH = 0x20
917 PT_FORCEQUOTA = 0x1e
918 PT_KILL = 0x8
919 PT_READ_D = 0x2
920 PT_READ_I = 0x1
921 PT_READ_U = 0x3
922 PT_SIGEXC = 0xc
923 PT_STEP = 0x9
924 PT_THUPDATE = 0xd
925 PT_TRACE_ME = 0x0
926 PT_WRITE_D = 0x5
927 PT_WRITE_I = 0x4
928 PT_WRITE_U = 0x6
929 RLIMIT_AS = 0x5
930 RLIMIT_CORE = 0x4
931 RLIMIT_CPU = 0x0
932 RLIMIT_CPU_USAGE_MONITOR = 0x2
933 RLIMIT_DATA = 0x2
934 RLIMIT_FSIZE = 0x1
935 RLIMIT_NOFILE = 0x8
936 RLIMIT_STACK = 0x3
937 RLIM_INFINITY = 0x7fffffffffffffff
938 RTAX_AUTHOR = 0x6
939 RTAX_BRD = 0x7
940 RTAX_DST = 0x0
941 RTAX_GATEWAY = 0x1
942 RTAX_GENMASK = 0x3
943 RTAX_IFA = 0x5
944 RTAX_IFP = 0x4
945 RTAX_MAX = 0x8
946 RTAX_NETMASK = 0x2
947 RTA_AUTHOR = 0x40
948 RTA_BRD = 0x80
949 RTA_DST = 0x1
950 RTA_GATEWAY = 0x2
951 RTA_GENMASK = 0x8
952 RTA_IFA = 0x20
953 RTA_IFP = 0x10
954 RTA_NETMASK = 0x4
955 RTF_BLACKHOLE = 0x1000
956 RTF_BROADCAST = 0x400000
957 RTF_CLONING = 0x100
958 RTF_CONDEMNED = 0x2000000
959 RTF_DELCLONE = 0x80
960 RTF_DONE = 0x40
961 RTF_DYNAMIC = 0x10
962 RTF_GATEWAY = 0x2
963 RTF_HOST = 0x4
964 RTF_IFREF = 0x4000000
965 RTF_IFSCOPE = 0x1000000
966 RTF_LLINFO = 0x400
967 RTF_LOCAL = 0x200000
968 RTF_MODIFIED = 0x20
969 RTF_MULTICAST = 0x800000
970 RTF_NOIFREF = 0x2000
971 RTF_PINNED = 0x100000
972 RTF_PRCLONING = 0x10000
973 RTF_PROTO1 = 0x8000
974 RTF_PROTO2 = 0x4000
975 RTF_PROTO3 = 0x40000
976 RTF_PROXY = 0x8000000
977 RTF_REJECT = 0x8
978 RTF_ROUTER = 0x10000000
979 RTF_STATIC = 0x800
980 RTF_UP = 0x1
981 RTF_WASCLONED = 0x20000
982 RTF_XRESOLVE = 0x200
983 RTM_ADD = 0x1
984 RTM_CHANGE = 0x3
985 RTM_DELADDR = 0xd
986 RTM_DELETE = 0x2
987 RTM_DELMADDR = 0x10
988 RTM_GET = 0x4
989 RTM_GET2 = 0x14
990 RTM_IFINFO = 0xe
991 RTM_IFINFO2 = 0x12
992 RTM_LOCK = 0x8
993 RTM_LOSING = 0x5
994 RTM_MISS = 0x7
995 RTM_NEWADDR = 0xc
996 RTM_NEWMADDR = 0xf
997 RTM_NEWMADDR2 = 0x13
998 RTM_OLDADD = 0x9
999 RTM_OLDDEL = 0xa
1000 RTM_REDIRECT = 0x6
1001 RTM_RESOLVE = 0xb
1002 RTM_RTTUNIT = 0xf4240
1003 RTM_VERSION = 0x5
1004 RTV_EXPIRE = 0x4
1005 RTV_HOPCOUNT = 0x2
1006 RTV_MTU = 0x1
1007 RTV_RPIPE = 0x8
1008 RTV_RTT = 0x40
1009 RTV_RTTVAR = 0x80
1010 RTV_SPIPE = 0x10
1011 RTV_SSTHRESH = 0x20
1012 RUSAGE_CHILDREN = -0x1
1013 RUSAGE_SELF = 0x0
1014 SCM_CREDS = 0x3
1015 SCM_RIGHTS = 0x1
1016 SCM_TIMESTAMP = 0x2
1017 SCM_TIMESTAMP_MONOTONIC = 0x4
1018 SHUT_RD = 0x0
1019 SHUT_RDWR = 0x2
1020 SHUT_WR = 0x1
1021 SIOCADDMULTI = 0x80206931
1022 SIOCAIFADDR = 0x8040691a
1023 SIOCARPIPLL = 0xc0206928
1024 SIOCATMARK = 0x40047307
1025 SIOCAUTOADDR = 0xc0206926
1026 SIOCAUTONETMASK = 0x80206927
1027 SIOCDELMULTI = 0x80206932
1028 SIOCDIFADDR = 0x80206919
1029 SIOCDIFPHYADDR = 0x80206941
1030 SIOCGDRVSPEC = 0xc028697b
1031 SIOCGETVLAN = 0xc020697f
1032 SIOCGHIWAT = 0x40047301
1033 SIOCGIFADDR = 0xc0206921
1034 SIOCGIFALTMTU = 0xc0206948
1035 SIOCGIFASYNCMAP = 0xc020697c
1036 SIOCGIFBOND = 0xc0206947
1037 SIOCGIFBRDADDR = 0xc0206923
1038 SIOCGIFCAP = 0xc020695b
1039 SIOCGIFCONF = 0xc00c6924
1040 SIOCGIFDEVMTU = 0xc0206944
1041 SIOCGIFDSTADDR = 0xc0206922
1042 SIOCGIFFLAGS = 0xc0206911
1043 SIOCGIFGENERIC = 0xc020693a
1044 SIOCGIFKPI = 0xc0206987
1045 SIOCGIFMAC = 0xc0206982
1046 SIOCGIFMEDIA = 0xc02c6938
1047 SIOCGIFMETRIC = 0xc0206917
1048 SIOCGIFMTU = 0xc0206933
1049 SIOCGIFNETMASK = 0xc0206925
1050 SIOCGIFPDSTADDR = 0xc0206940
1051 SIOCGIFPHYS = 0xc0206935
1052 SIOCGIFPSRCADDR = 0xc020693f
1053 SIOCGIFSTATUS = 0xc331693d
1054 SIOCGIFVLAN = 0xc020697f
1055 SIOCGIFWAKEFLAGS = 0xc0206988
1056 SIOCGLOWAT = 0x40047303
1057 SIOCGPGRP = 0x40047309
1058 SIOCIFCREATE = 0xc0206978
1059 SIOCIFCREATE2 = 0xc020697a
1060 SIOCIFDESTROY = 0x80206979
1061 SIOCIFGCLONERS = 0xc0106981
1062 SIOCRSLVMULTI = 0xc010693b
1063 SIOCSDRVSPEC = 0x8028697b
1064 SIOCSETVLAN = 0x8020697e
1065 SIOCSHIWAT = 0x80047300
1066 SIOCSIFADDR = 0x8020690c
1067 SIOCSIFALTMTU = 0x80206945
1068 SIOCSIFASYNCMAP = 0x8020697d
1069 SIOCSIFBOND = 0x80206946
1070 SIOCSIFBRDADDR = 0x80206913
1071 SIOCSIFCAP = 0x8020695a
1072 SIOCSIFDSTADDR = 0x8020690e
1073 SIOCSIFFLAGS = 0x80206910
1074 SIOCSIFGENERIC = 0x80206939
1075 SIOCSIFKPI = 0x80206986
1076 SIOCSIFLLADDR = 0x8020693c
1077 SIOCSIFMAC = 0x80206983
1078 SIOCSIFMEDIA = 0xc0206937
1079 SIOCSIFMETRIC = 0x80206918
1080 SIOCSIFMTU = 0x80206934
1081 SIOCSIFNETMASK = 0x80206916
1082 SIOCSIFPHYADDR = 0x8040693e
1083 SIOCSIFPHYS = 0x80206936
1084 SIOCSIFVLAN = 0x8020697e
1085 SIOCSLOWAT = 0x80047302
1086 SIOCSPGRP = 0x80047308
1087 SOCK_DGRAM = 0x2
1088 SOCK_MAXADDRLEN = 0xff
1089 SOCK_RAW = 0x3
1090 SOCK_RDM = 0x4
1091 SOCK_SEQPACKET = 0x5
1092 SOCK_STREAM = 0x1
1093 SOL_SOCKET = 0xffff
1094 SOMAXCONN = 0x80
1095 SO_ACCEPTCONN = 0x2
1096 SO_BROADCAST = 0x20
1097 SO_DEBUG = 0x1
1098 SO_DONTROUTE = 0x10
1099 SO_DONTTRUNC = 0x2000
1100 SO_ERROR = 0x1007
1101 SO_KEEPALIVE = 0x8
1102 SO_LABEL = 0x1010
1103 SO_LINGER = 0x80
1104 SO_LINGER_SEC = 0x1080
1105 SO_NKE = 0x1021
1106 SO_NOADDRERR = 0x1023
1107 SO_NOSIGPIPE = 0x1022
1108 SO_NOTIFYCONFLICT = 0x1026
1109 SO_NP_EXTENSIONS = 0x1083
1110 SO_NREAD = 0x1020
1111 SO_NUMRCVPKT = 0x1112
1112 SO_NWRITE = 0x1024
1113 SO_OOBINLINE = 0x100
1114 SO_PEERLABEL = 0x1011
1115 SO_RANDOMPORT = 0x1082
1116 SO_RCVBUF = 0x1002
1117 SO_RCVLOWAT = 0x1004
1118 SO_RCVTIMEO = 0x1006
1119 SO_REUSEADDR = 0x4
1120 SO_REUSEPORT = 0x200
1121 SO_REUSESHAREUID = 0x1025
1122 SO_SNDBUF = 0x1001
1123 SO_SNDLOWAT = 0x1003
1124 SO_SNDTIMEO = 0x1005
1125 SO_TIMESTAMP = 0x400
1126 SO_TIMESTAMP_MONOTONIC = 0x800
1127 SO_TYPE = 0x1008
1128 SO_UPCALLCLOSEWAIT = 0x1027
1129 SO_USELOOPBACK = 0x40
1130 SO_WANTMORE = 0x4000
1131 SO_WANTOOBFLAG = 0x8000
1132 S_IEXEC = 0x40
1133 S_IFBLK = 0x6000
1134 S_IFCHR = 0x2000
1135 S_IFDIR = 0x4000
1136 S_IFIFO = 0x1000
1137 S_IFLNK = 0xa000
1138 S_IFMT = 0xf000
1139 S_IFREG = 0x8000
1140 S_IFSOCK = 0xc000
1141 S_IFWHT = 0xe000
1142 S_IREAD = 0x100
1143 S_IRGRP = 0x20
1144 S_IROTH = 0x4
1145 S_IRUSR = 0x100
1146 S_IRWXG = 0x38
1147 S_IRWXO = 0x7
1148 S_IRWXU = 0x1c0
1149 S_ISGID = 0x400
1150 S_ISTXT = 0x200
1151 S_ISUID = 0x800
1152 S_ISVTX = 0x200
1153 S_IWGRP = 0x10
1154 S_IWOTH = 0x2
1155 S_IWRITE = 0x80
1156 S_IWUSR = 0x80
1157 S_IXGRP = 0x8
1158 S_IXOTH = 0x1
1159 S_IXUSR = 0x40
1160 TCIFLUSH = 0x1
1161 TCIOFLUSH = 0x3
1162 TCOFLUSH = 0x2
1163 TCP_CONNECTIONTIMEOUT = 0x20
1164 TCP_ENABLE_ECN = 0x104
1165 TCP_KEEPALIVE = 0x10
1166 TCP_KEEPCNT = 0x102
1167 TCP_KEEPINTVL = 0x101
1168 TCP_MAXHLEN = 0x3c
1169 TCP_MAXOLEN = 0x28
1170 TCP_MAXSEG = 0x2
1171 TCP_MAXWIN = 0xffff
1172 TCP_MAX_SACK = 0x4
1173 TCP_MAX_WINSHIFT = 0xe
1174 TCP_MINMSS = 0xd8
1175 TCP_MSS = 0x200
1176 TCP_NODELAY = 0x1
1177 TCP_NOOPT = 0x8
1178 TCP_NOPUSH = 0x4
1179 TCP_NOTSENT_LOWAT = 0x201
1180 TCP_RXT_CONNDROPTIME = 0x80
1181 TCP_RXT_FINDROP = 0x100
1182 TCP_SENDMOREACKS = 0x103
1183 TCSAFLUSH = 0x2
1184 TIOCCBRK = 0x2000747a
1185 TIOCCDTR = 0x20007478
1186 TIOCCONS = 0x80047462
1187 TIOCDCDTIMESTAMP = 0x40107458
1188 TIOCDRAIN = 0x2000745e
1189 TIOCDSIMICROCODE = 0x20007455
1190 TIOCEXCL = 0x2000740d
1191 TIOCEXT = 0x80047460
1192 TIOCFLUSH = 0x80047410
1193 TIOCGDRAINWAIT = 0x40047456
1194 TIOCGETA = 0x40487413
1195 TIOCGETD = 0x4004741a
1196 TIOCGPGRP = 0x40047477
1197 TIOCGWINSZ = 0x40087468
1198 TIOCIXOFF = 0x20007480
1199 TIOCIXON = 0x20007481
1200 TIOCMBIC = 0x8004746b
1201 TIOCMBIS = 0x8004746c
1202 TIOCMGDTRWAIT = 0x4004745a
1203 TIOCMGET = 0x4004746a
1204 TIOCMODG = 0x40047403
1205 TIOCMODS = 0x80047404
1206 TIOCMSDTRWAIT = 0x8004745b
1207 TIOCMSET = 0x8004746d
1208 TIOCM_CAR = 0x40
1209 TIOCM_CD = 0x40
1210 TIOCM_CTS = 0x20
1211 TIOCM_DSR = 0x100
1212 TIOCM_DTR = 0x2
1213 TIOCM_LE = 0x1
1214 TIOCM_RI = 0x80
1215 TIOCM_RNG = 0x80
1216 TIOCM_RTS = 0x4
1217 TIOCM_SR = 0x10
1218 TIOCM_ST = 0x8
1219 TIOCNOTTY = 0x20007471
1220 TIOCNXCL = 0x2000740e
1221 TIOCOUTQ = 0x40047473
1222 TIOCPKT = 0x80047470
1223 TIOCPKT_DATA = 0x0
1224 TIOCPKT_DOSTOP = 0x20
1225 TIOCPKT_FLUSHREAD = 0x1
1226 TIOCPKT_FLUSHWRITE = 0x2
1227 TIOCPKT_IOCTL = 0x40
1228 TIOCPKT_NOSTOP = 0x10
1229 TIOCPKT_START = 0x8
1230 TIOCPKT_STOP = 0x4
1231 TIOCPTYGNAME = 0x40807453
1232 TIOCPTYGRANT = 0x20007454
1233 TIOCPTYUNLK = 0x20007452
1234 TIOCREMOTE = 0x80047469
1235 TIOCSBRK = 0x2000747b
1236 TIOCSCONS = 0x20007463
1237 TIOCSCTTY = 0x20007461
1238 TIOCSDRAINWAIT = 0x80047457
1239 TIOCSDTR = 0x20007479
1240 TIOCSETA = 0x80487414
1241 TIOCSETAF = 0x80487416
1242 TIOCSETAW = 0x80487415
1243 TIOCSETD = 0x8004741b
1244 TIOCSIG = 0x2000745f
1245 TIOCSPGRP = 0x80047476
1246 TIOCSTART = 0x2000746e
1247 TIOCSTAT = 0x20007465
1248 TIOCSTI = 0x80017472
1249 TIOCSTOP = 0x2000746f
1250 TIOCSWINSZ = 0x80087467
1251 TIOCTIMESTAMP = 0x40107459
1252 TIOCUCNTL = 0x80047466
1253 TOSTOP = 0x400000
1254 VDISCARD = 0xf
1255 VDSUSP = 0xb
1256 VEOF = 0x0
1257 VEOL = 0x1
1258 VEOL2 = 0x2
1259 VERASE = 0x3
1260 VINTR = 0x8
1261 VKILL = 0x5
1262 VLNEXT = 0xe
1263 VMIN = 0x10
1264 VQUIT = 0x9
1265 VREPRINT = 0x6
1266 VSTART = 0xc
1267 VSTATUS = 0x12
1268 VSTOP = 0xd
1269 VSUSP = 0xa
1270 VT0 = 0x0
1271 VT1 = 0x10000
1272 VTDLY = 0x10000
1273 VTIME = 0x11
1274 VWERASE = 0x4
1275 WCONTINUED = 0x10
1276 WCOREFLAG = 0x80
1277 WEXITED = 0x4
1278 WNOHANG = 0x1
1279 WNOWAIT = 0x20
1280 WORDSIZE = 0x40
1281 WSTOPPED = 0x8
1282 WUNTRACED = 0x2
1283)
1284
1285// Errors
1286const (
1287 E2BIG = syscall.Errno(0x7)
1288 EACCES = syscall.Errno(0xd)
1289 EADDRINUSE = syscall.Errno(0x30)
1290 EADDRNOTAVAIL = syscall.Errno(0x31)
1291 EAFNOSUPPORT = syscall.Errno(0x2f)
1292 EAGAIN = syscall.Errno(0x23)
1293 EALREADY = syscall.Errno(0x25)
1294 EAUTH = syscall.Errno(0x50)
1295 EBADARCH = syscall.Errno(0x56)
1296 EBADEXEC = syscall.Errno(0x55)
1297 EBADF = syscall.Errno(0x9)
1298 EBADMACHO = syscall.Errno(0x58)
1299 EBADMSG = syscall.Errno(0x5e)
1300 EBADRPC = syscall.Errno(0x48)
1301 EBUSY = syscall.Errno(0x10)
1302 ECANCELED = syscall.Errno(0x59)
1303 ECHILD = syscall.Errno(0xa)
1304 ECONNABORTED = syscall.Errno(0x35)
1305 ECONNREFUSED = syscall.Errno(0x3d)
1306 ECONNRESET = syscall.Errno(0x36)
1307 EDEADLK = syscall.Errno(0xb)
1308 EDESTADDRREQ = syscall.Errno(0x27)
1309 EDEVERR = syscall.Errno(0x53)
1310 EDOM = syscall.Errno(0x21)
1311 EDQUOT = syscall.Errno(0x45)
1312 EEXIST = syscall.Errno(0x11)
1313 EFAULT = syscall.Errno(0xe)
1314 EFBIG = syscall.Errno(0x1b)
1315 EFTYPE = syscall.Errno(0x4f)
1316 EHOSTDOWN = syscall.Errno(0x40)
1317 EHOSTUNREACH = syscall.Errno(0x41)
1318 EIDRM = syscall.Errno(0x5a)
1319 EILSEQ = syscall.Errno(0x5c)
1320 EINPROGRESS = syscall.Errno(0x24)
1321 EINTR = syscall.Errno(0x4)
1322 EINVAL = syscall.Errno(0x16)
1323 EIO = syscall.Errno(0x5)
1324 EISCONN = syscall.Errno(0x38)
1325 EISDIR = syscall.Errno(0x15)
1326 ELAST = syscall.Errno(0x6a)
1327 ELOOP = syscall.Errno(0x3e)
1328 EMFILE = syscall.Errno(0x18)
1329 EMLINK = syscall.Errno(0x1f)
1330 EMSGSIZE = syscall.Errno(0x28)
1331 EMULTIHOP = syscall.Errno(0x5f)
1332 ENAMETOOLONG = syscall.Errno(0x3f)
1333 ENEEDAUTH = syscall.Errno(0x51)
1334 ENETDOWN = syscall.Errno(0x32)
1335 ENETRESET = syscall.Errno(0x34)
1336 ENETUNREACH = syscall.Errno(0x33)
1337 ENFILE = syscall.Errno(0x17)
1338 ENOATTR = syscall.Errno(0x5d)
1339 ENOBUFS = syscall.Errno(0x37)
1340 ENODATA = syscall.Errno(0x60)
1341 ENODEV = syscall.Errno(0x13)
1342 ENOENT = syscall.Errno(0x2)
1343 ENOEXEC = syscall.Errno(0x8)
1344 ENOLCK = syscall.Errno(0x4d)
1345 ENOLINK = syscall.Errno(0x61)
1346 ENOMEM = syscall.Errno(0xc)
1347 ENOMSG = syscall.Errno(0x5b)
1348 ENOPOLICY = syscall.Errno(0x67)
1349 ENOPROTOOPT = syscall.Errno(0x2a)
1350 ENOSPC = syscall.Errno(0x1c)
1351 ENOSR = syscall.Errno(0x62)
1352 ENOSTR = syscall.Errno(0x63)
1353 ENOSYS = syscall.Errno(0x4e)
1354 ENOTBLK = syscall.Errno(0xf)
1355 ENOTCONN = syscall.Errno(0x39)
1356 ENOTDIR = syscall.Errno(0x14)
1357 ENOTEMPTY = syscall.Errno(0x42)
1358 ENOTRECOVERABLE = syscall.Errno(0x68)
1359 ENOTSOCK = syscall.Errno(0x26)
1360 ENOTSUP = syscall.Errno(0x2d)
1361 ENOTTY = syscall.Errno(0x19)
1362 ENXIO = syscall.Errno(0x6)
1363 EOPNOTSUPP = syscall.Errno(0x66)
1364 EOVERFLOW = syscall.Errno(0x54)
1365 EOWNERDEAD = syscall.Errno(0x69)
1366 EPERM = syscall.Errno(0x1)
1367 EPFNOSUPPORT = syscall.Errno(0x2e)
1368 EPIPE = syscall.Errno(0x20)
1369 EPROCLIM = syscall.Errno(0x43)
1370 EPROCUNAVAIL = syscall.Errno(0x4c)
1371 EPROGMISMATCH = syscall.Errno(0x4b)
1372 EPROGUNAVAIL = syscall.Errno(0x4a)
1373 EPROTO = syscall.Errno(0x64)
1374 EPROTONOSUPPORT = syscall.Errno(0x2b)
1375 EPROTOTYPE = syscall.Errno(0x29)
1376 EPWROFF = syscall.Errno(0x52)
1377 EQFULL = syscall.Errno(0x6a)
1378 ERANGE = syscall.Errno(0x22)
1379 EREMOTE = syscall.Errno(0x47)
1380 EROFS = syscall.Errno(0x1e)
1381 ERPCMISMATCH = syscall.Errno(0x49)
1382 ESHLIBVERS = syscall.Errno(0x57)
1383 ESHUTDOWN = syscall.Errno(0x3a)
1384 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1385 ESPIPE = syscall.Errno(0x1d)
1386 ESRCH = syscall.Errno(0x3)
1387 ESTALE = syscall.Errno(0x46)
1388 ETIME = syscall.Errno(0x65)
1389 ETIMEDOUT = syscall.Errno(0x3c)
1390 ETOOMANYREFS = syscall.Errno(0x3b)
1391 ETXTBSY = syscall.Errno(0x1a)
1392 EUSERS = syscall.Errno(0x44)
1393 EWOULDBLOCK = syscall.Errno(0x23)
1394 EXDEV = syscall.Errno(0x12)
1395)
1396
1397// Signals
1398const (
1399 SIGABRT = syscall.Signal(0x6)
1400 SIGALRM = syscall.Signal(0xe)
1401 SIGBUS = syscall.Signal(0xa)
1402 SIGCHLD = syscall.Signal(0x14)
1403 SIGCONT = syscall.Signal(0x13)
1404 SIGEMT = syscall.Signal(0x7)
1405 SIGFPE = syscall.Signal(0x8)
1406 SIGHUP = syscall.Signal(0x1)
1407 SIGILL = syscall.Signal(0x4)
1408 SIGINFO = syscall.Signal(0x1d)
1409 SIGINT = syscall.Signal(0x2)
1410 SIGIO = syscall.Signal(0x17)
1411 SIGIOT = syscall.Signal(0x6)
1412 SIGKILL = syscall.Signal(0x9)
1413 SIGPIPE = syscall.Signal(0xd)
1414 SIGPROF = syscall.Signal(0x1b)
1415 SIGQUIT = syscall.Signal(0x3)
1416 SIGSEGV = syscall.Signal(0xb)
1417 SIGSTOP = syscall.Signal(0x11)
1418 SIGSYS = syscall.Signal(0xc)
1419 SIGTERM = syscall.Signal(0xf)
1420 SIGTRAP = syscall.Signal(0x5)
1421 SIGTSTP = syscall.Signal(0x12)
1422 SIGTTIN = syscall.Signal(0x15)
1423 SIGTTOU = syscall.Signal(0x16)
1424 SIGURG = syscall.Signal(0x10)
1425 SIGUSR1 = syscall.Signal(0x1e)
1426 SIGUSR2 = syscall.Signal(0x1f)
1427 SIGVTALRM = syscall.Signal(0x1a)
1428 SIGWINCH = syscall.Signal(0x1c)
1429 SIGXCPU = syscall.Signal(0x18)
1430 SIGXFSZ = syscall.Signal(0x19)
1431)
1432
1433// Error table
1434var errors = [...]string{
1435 1: "operation not permitted",
1436 2: "no such file or directory",
1437 3: "no such process",
1438 4: "interrupted system call",
1439 5: "input/output error",
1440 6: "device not configured",
1441 7: "argument list too long",
1442 8: "exec format error",
1443 9: "bad file descriptor",
1444 10: "no child processes",
1445 11: "resource deadlock avoided",
1446 12: "cannot allocate memory",
1447 13: "permission denied",
1448 14: "bad address",
1449 15: "block device required",
1450 16: "resource busy",
1451 17: "file exists",
1452 18: "cross-device link",
1453 19: "operation not supported by device",
1454 20: "not a directory",
1455 21: "is a directory",
1456 22: "invalid argument",
1457 23: "too many open files in system",
1458 24: "too many open files",
1459 25: "inappropriate ioctl for device",
1460 26: "text file busy",
1461 27: "file too large",
1462 28: "no space left on device",
1463 29: "illegal seek",
1464 30: "read-only file system",
1465 31: "too many links",
1466 32: "broken pipe",
1467 33: "numerical argument out of domain",
1468 34: "result too large",
1469 35: "resource temporarily unavailable",
1470 36: "operation now in progress",
1471 37: "operation already in progress",
1472 38: "socket operation on non-socket",
1473 39: "destination address required",
1474 40: "message too long",
1475 41: "protocol wrong type for socket",
1476 42: "protocol not available",
1477 43: "protocol not supported",
1478 44: "socket type not supported",
1479 45: "operation not supported",
1480 46: "protocol family not supported",
1481 47: "address family not supported by protocol family",
1482 48: "address already in use",
1483 49: "can't assign requested address",
1484 50: "network is down",
1485 51: "network is unreachable",
1486 52: "network dropped connection on reset",
1487 53: "software caused connection abort",
1488 54: "connection reset by peer",
1489 55: "no buffer space available",
1490 56: "socket is already connected",
1491 57: "socket is not connected",
1492 58: "can't send after socket shutdown",
1493 59: "too many references: can't splice",
1494 60: "operation timed out",
1495 61: "connection refused",
1496 62: "too many levels of symbolic links",
1497 63: "file name too long",
1498 64: "host is down",
1499 65: "no route to host",
1500 66: "directory not empty",
1501 67: "too many processes",
1502 68: "too many users",
1503 69: "disc quota exceeded",
1504 70: "stale NFS file handle",
1505 71: "too many levels of remote in path",
1506 72: "RPC struct is bad",
1507 73: "RPC version wrong",
1508 74: "RPC prog. not avail",
1509 75: "program version wrong",
1510 76: "bad procedure for program",
1511 77: "no locks available",
1512 78: "function not implemented",
1513 79: "inappropriate file type or format",
1514 80: "authentication error",
1515 81: "need authenticator",
1516 82: "device power is off",
1517 83: "device error",
1518 84: "value too large to be stored in data type",
1519 85: "bad executable (or shared library)",
1520 86: "bad CPU type in executable",
1521 87: "shared library version mismatch",
1522 88: "malformed Mach-o file",
1523 89: "operation canceled",
1524 90: "identifier removed",
1525 91: "no message of desired type",
1526 92: "illegal byte sequence",
1527 93: "attribute not found",
1528 94: "bad message",
1529 95: "EMULTIHOP (Reserved)",
1530 96: "no message available on STREAM",
1531 97: "ENOLINK (Reserved)",
1532 98: "no STREAM resources",
1533 99: "not a STREAM",
1534 100: "protocol error",
1535 101: "STREAM ioctl timeout",
1536 102: "operation not supported on socket",
1537 103: "policy not found",
1538 104: "state not recoverable",
1539 105: "previous owner died",
1540 106: "interface output queue is full",
1541}
1542
1543// Signal table
1544var signals = [...]string{
1545 1: "hangup",
1546 2: "interrupt",
1547 3: "quit",
1548 4: "illegal instruction",
1549 5: "trace/BPT trap",
1550 6: "abort trap",
1551 7: "EMT trap",
1552 8: "floating point exception",
1553 9: "killed",
1554 10: "bus error",
1555 11: "segmentation fault",
1556 12: "bad system call",
1557 13: "broken pipe",
1558 14: "alarm clock",
1559 15: "terminated",
1560 16: "urgent I/O condition",
1561 17: "suspended (signal)",
1562 18: "suspended",
1563 19: "continued",
1564 20: "child exited",
1565 21: "stopped (tty input)",
1566 22: "stopped (tty output)",
1567 23: "I/O possible",
1568 24: "cputime limit exceeded",
1569 25: "filesize limit exceeded",
1570 26: "virtual timer expired",
1571 27: "profiling timer expired",
1572 28: "window size changes",
1573 29: "information request",
1574 30: "user defined signal 1",
1575 31: "user defined signal 2",
1576}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_arm.go
deleted file mode 100644
index a410e88..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_arm.go
+++ /dev/null
@@ -1,1293 +0,0 @@
1// mkerrors.sh
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// Created by cgo -godefs - DO NOT EDIT
5// cgo -godefs -- _const.go
6
7// +build arm,darwin
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_CCITT = 0xa
16 AF_CHAOS = 0x5
17 AF_CNT = 0x15
18 AF_COIP = 0x14
19 AF_DATAKIT = 0x9
20 AF_DECnet = 0xc
21 AF_DLI = 0xd
22 AF_E164 = 0x1c
23 AF_ECMA = 0x8
24 AF_HYLINK = 0xf
25 AF_IEEE80211 = 0x25
26 AF_IMPLINK = 0x3
27 AF_INET = 0x2
28 AF_INET6 = 0x1e
29 AF_IPX = 0x17
30 AF_ISDN = 0x1c
31 AF_ISO = 0x7
32 AF_LAT = 0xe
33 AF_LINK = 0x12
34 AF_LOCAL = 0x1
35 AF_MAX = 0x28
36 AF_NATM = 0x1f
37 AF_NDRV = 0x1b
38 AF_NETBIOS = 0x21
39 AF_NS = 0x6
40 AF_OSI = 0x7
41 AF_PPP = 0x22
42 AF_PUP = 0x4
43 AF_RESERVED_36 = 0x24
44 AF_ROUTE = 0x11
45 AF_SIP = 0x18
46 AF_SNA = 0xb
47 AF_SYSTEM = 0x20
48 AF_UNIX = 0x1
49 AF_UNSPEC = 0x0
50 AF_UTUN = 0x26
51 B0 = 0x0
52 B110 = 0x6e
53 B115200 = 0x1c200
54 B1200 = 0x4b0
55 B134 = 0x86
56 B14400 = 0x3840
57 B150 = 0x96
58 B1800 = 0x708
59 B19200 = 0x4b00
60 B200 = 0xc8
61 B230400 = 0x38400
62 B2400 = 0x960
63 B28800 = 0x7080
64 B300 = 0x12c
65 B38400 = 0x9600
66 B4800 = 0x12c0
67 B50 = 0x32
68 B57600 = 0xe100
69 B600 = 0x258
70 B7200 = 0x1c20
71 B75 = 0x4b
72 B76800 = 0x12c00
73 B9600 = 0x2580
74 BIOCFLUSH = 0x20004268
75 BIOCGBLEN = 0x40044266
76 BIOCGDLT = 0x4004426a
77 BIOCGDLTLIST = 0xc00c4279
78 BIOCGETIF = 0x4020426b
79 BIOCGHDRCMPLT = 0x40044274
80 BIOCGRSIG = 0x40044272
81 BIOCGRTIMEOUT = 0x4010426e
82 BIOCGSEESENT = 0x40044276
83 BIOCGSTATS = 0x4008426f
84 BIOCIMMEDIATE = 0x80044270
85 BIOCPROMISC = 0x20004269
86 BIOCSBLEN = 0xc0044266
87 BIOCSDLT = 0x80044278
88 BIOCSETF = 0x80104267
89 BIOCSETIF = 0x8020426c
90 BIOCSHDRCMPLT = 0x80044275
91 BIOCSRSIG = 0x80044273
92 BIOCSRTIMEOUT = 0x8010426d
93 BIOCSSEESENT = 0x80044277
94 BIOCVERSION = 0x40044271
95 BPF_A = 0x10
96 BPF_ABS = 0x20
97 BPF_ADD = 0x0
98 BPF_ALIGNMENT = 0x4
99 BPF_ALU = 0x4
100 BPF_AND = 0x50
101 BPF_B = 0x10
102 BPF_DIV = 0x30
103 BPF_H = 0x8
104 BPF_IMM = 0x0
105 BPF_IND = 0x40
106 BPF_JA = 0x0
107 BPF_JEQ = 0x10
108 BPF_JGE = 0x30
109 BPF_JGT = 0x20
110 BPF_JMP = 0x5
111 BPF_JSET = 0x40
112 BPF_K = 0x0
113 BPF_LD = 0x0
114 BPF_LDX = 0x1
115 BPF_LEN = 0x80
116 BPF_LSH = 0x60
117 BPF_MAJOR_VERSION = 0x1
118 BPF_MAXBUFSIZE = 0x80000
119 BPF_MAXINSNS = 0x200
120 BPF_MEM = 0x60
121 BPF_MEMWORDS = 0x10
122 BPF_MINBUFSIZE = 0x20
123 BPF_MINOR_VERSION = 0x1
124 BPF_MISC = 0x7
125 BPF_MSH = 0xa0
126 BPF_MUL = 0x20
127 BPF_NEG = 0x80
128 BPF_OR = 0x40
129 BPF_RELEASE = 0x30bb6
130 BPF_RET = 0x6
131 BPF_RSH = 0x70
132 BPF_ST = 0x2
133 BPF_STX = 0x3
134 BPF_SUB = 0x10
135 BPF_TAX = 0x0
136 BPF_TXA = 0x80
137 BPF_W = 0x0
138 BPF_X = 0x8
139 BRKINT = 0x2
140 CFLUSH = 0xf
141 CLOCAL = 0x8000
142 CREAD = 0x800
143 CS5 = 0x0
144 CS6 = 0x100
145 CS7 = 0x200
146 CS8 = 0x300
147 CSIZE = 0x300
148 CSTART = 0x11
149 CSTATUS = 0x14
150 CSTOP = 0x13
151 CSTOPB = 0x400
152 CSUSP = 0x1a
153 CTL_MAXNAME = 0xc
154 CTL_NET = 0x4
155 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
156 DLT_ARCNET = 0x7
157 DLT_ATM_CLIP = 0x13
158 DLT_ATM_RFC1483 = 0xb
159 DLT_AX25 = 0x3
160 DLT_CHAOS = 0x5
161 DLT_CHDLC = 0x68
162 DLT_C_HDLC = 0x68
163 DLT_EN10MB = 0x1
164 DLT_EN3MB = 0x2
165 DLT_FDDI = 0xa
166 DLT_IEEE802 = 0x6
167 DLT_IEEE802_11 = 0x69
168 DLT_IEEE802_11_RADIO = 0x7f
169 DLT_IEEE802_11_RADIO_AVS = 0xa3
170 DLT_LINUX_SLL = 0x71
171 DLT_LOOP = 0x6c
172 DLT_NULL = 0x0
173 DLT_PFLOG = 0x75
174 DLT_PFSYNC = 0x12
175 DLT_PPP = 0x9
176 DLT_PPP_BSDOS = 0x10
177 DLT_PPP_SERIAL = 0x32
178 DLT_PRONET = 0x4
179 DLT_RAW = 0xc
180 DLT_SLIP = 0x8
181 DLT_SLIP_BSDOS = 0xf
182 DT_BLK = 0x6
183 DT_CHR = 0x2
184 DT_DIR = 0x4
185 DT_FIFO = 0x1
186 DT_LNK = 0xa
187 DT_REG = 0x8
188 DT_SOCK = 0xc
189 DT_UNKNOWN = 0x0
190 DT_WHT = 0xe
191 ECHO = 0x8
192 ECHOCTL = 0x40
193 ECHOE = 0x2
194 ECHOK = 0x4
195 ECHOKE = 0x1
196 ECHONL = 0x10
197 ECHOPRT = 0x20
198 EVFILT_AIO = -0x3
199 EVFILT_FS = -0x9
200 EVFILT_MACHPORT = -0x8
201 EVFILT_PROC = -0x5
202 EVFILT_READ = -0x1
203 EVFILT_SIGNAL = -0x6
204 EVFILT_SYSCOUNT = 0xe
205 EVFILT_THREADMARKER = 0xe
206 EVFILT_TIMER = -0x7
207 EVFILT_USER = -0xa
208 EVFILT_VM = -0xc
209 EVFILT_VNODE = -0x4
210 EVFILT_WRITE = -0x2
211 EV_ADD = 0x1
212 EV_CLEAR = 0x20
213 EV_DELETE = 0x2
214 EV_DISABLE = 0x8
215 EV_DISPATCH = 0x80
216 EV_ENABLE = 0x4
217 EV_EOF = 0x8000
218 EV_ERROR = 0x4000
219 EV_FLAG0 = 0x1000
220 EV_FLAG1 = 0x2000
221 EV_ONESHOT = 0x10
222 EV_OOBAND = 0x2000
223 EV_POLL = 0x1000
224 EV_RECEIPT = 0x40
225 EV_SYSFLAGS = 0xf000
226 EXTA = 0x4b00
227 EXTB = 0x9600
228 EXTPROC = 0x800
229 FD_CLOEXEC = 0x1
230 FD_SETSIZE = 0x400
231 FLUSHO = 0x800000
232 F_ADDFILESIGS = 0x3d
233 F_ADDSIGS = 0x3b
234 F_ALLOCATEALL = 0x4
235 F_ALLOCATECONTIG = 0x2
236 F_CHKCLEAN = 0x29
237 F_DUPFD = 0x0
238 F_DUPFD_CLOEXEC = 0x43
239 F_FINDSIGS = 0x4e
240 F_FLUSH_DATA = 0x28
241 F_FREEZE_FS = 0x35
242 F_FULLFSYNC = 0x33
243 F_GETCODEDIR = 0x48
244 F_GETFD = 0x1
245 F_GETFL = 0x3
246 F_GETLK = 0x7
247 F_GETLKPID = 0x42
248 F_GETNOSIGPIPE = 0x4a
249 F_GETOWN = 0x5
250 F_GETPATH = 0x32
251 F_GETPATH_MTMINFO = 0x47
252 F_GETPROTECTIONCLASS = 0x3f
253 F_GETPROTECTIONLEVEL = 0x4d
254 F_GLOBAL_NOCACHE = 0x37
255 F_LOG2PHYS = 0x31
256 F_LOG2PHYS_EXT = 0x41
257 F_NOCACHE = 0x30
258 F_NODIRECT = 0x3e
259 F_OK = 0x0
260 F_PATHPKG_CHECK = 0x34
261 F_PEOFPOSMODE = 0x3
262 F_PREALLOCATE = 0x2a
263 F_RDADVISE = 0x2c
264 F_RDAHEAD = 0x2d
265 F_RDLCK = 0x1
266 F_SETBACKINGSTORE = 0x46
267 F_SETFD = 0x2
268 F_SETFL = 0x4
269 F_SETLK = 0x8
270 F_SETLKW = 0x9
271 F_SETLKWTIMEOUT = 0xa
272 F_SETNOSIGPIPE = 0x49
273 F_SETOWN = 0x6
274 F_SETPROTECTIONCLASS = 0x40
275 F_SETSIZE = 0x2b
276 F_SINGLE_WRITER = 0x4c
277 F_THAW_FS = 0x36
278 F_TRANSCODEKEY = 0x4b
279 F_UNLCK = 0x2
280 F_VOLPOSMODE = 0x4
281 F_WRLCK = 0x3
282 HUPCL = 0x4000
283 ICANON = 0x100
284 ICMP6_FILTER = 0x12
285 ICRNL = 0x100
286 IEXTEN = 0x400
287 IFF_ALLMULTI = 0x200
288 IFF_ALTPHYS = 0x4000
289 IFF_BROADCAST = 0x2
290 IFF_DEBUG = 0x4
291 IFF_LINK0 = 0x1000
292 IFF_LINK1 = 0x2000
293 IFF_LINK2 = 0x4000
294 IFF_LOOPBACK = 0x8
295 IFF_MULTICAST = 0x8000
296 IFF_NOARP = 0x80
297 IFF_NOTRAILERS = 0x20
298 IFF_OACTIVE = 0x400
299 IFF_POINTOPOINT = 0x10
300 IFF_PROMISC = 0x100
301 IFF_RUNNING = 0x40
302 IFF_SIMPLEX = 0x800
303 IFF_UP = 0x1
304 IFNAMSIZ = 0x10
305 IFT_1822 = 0x2
306 IFT_AAL5 = 0x31
307 IFT_ARCNET = 0x23
308 IFT_ARCNETPLUS = 0x24
309 IFT_ATM = 0x25
310 IFT_BRIDGE = 0xd1
311 IFT_CARP = 0xf8
312 IFT_CELLULAR = 0xff
313 IFT_CEPT = 0x13
314 IFT_DS3 = 0x1e
315 IFT_ENC = 0xf4
316 IFT_EON = 0x19
317 IFT_ETHER = 0x6
318 IFT_FAITH = 0x38
319 IFT_FDDI = 0xf
320 IFT_FRELAY = 0x20
321 IFT_FRELAYDCE = 0x2c
322 IFT_GIF = 0x37
323 IFT_HDH1822 = 0x3
324 IFT_HIPPI = 0x2f
325 IFT_HSSI = 0x2e
326 IFT_HY = 0xe
327 IFT_IEEE1394 = 0x90
328 IFT_IEEE8023ADLAG = 0x88
329 IFT_ISDNBASIC = 0x14
330 IFT_ISDNPRIMARY = 0x15
331 IFT_ISO88022LLC = 0x29
332 IFT_ISO88023 = 0x7
333 IFT_ISO88024 = 0x8
334 IFT_ISO88025 = 0x9
335 IFT_ISO88026 = 0xa
336 IFT_L2VLAN = 0x87
337 IFT_LAPB = 0x10
338 IFT_LOCALTALK = 0x2a
339 IFT_LOOP = 0x18
340 IFT_MIOX25 = 0x26
341 IFT_MODEM = 0x30
342 IFT_NSIP = 0x1b
343 IFT_OTHER = 0x1
344 IFT_P10 = 0xc
345 IFT_P80 = 0xd
346 IFT_PARA = 0x22
347 IFT_PDP = 0xff
348 IFT_PFLOG = 0xf5
349 IFT_PFSYNC = 0xf6
350 IFT_PPP = 0x17
351 IFT_PROPMUX = 0x36
352 IFT_PROPVIRTUAL = 0x35
353 IFT_PTPSERIAL = 0x16
354 IFT_RS232 = 0x21
355 IFT_SDLC = 0x11
356 IFT_SIP = 0x1f
357 IFT_SLIP = 0x1c
358 IFT_SMDSDXI = 0x2b
359 IFT_SMDSICIP = 0x34
360 IFT_SONET = 0x27
361 IFT_SONETPATH = 0x32
362 IFT_SONETVT = 0x33
363 IFT_STARLAN = 0xb
364 IFT_STF = 0x39
365 IFT_T1 = 0x12
366 IFT_ULTRA = 0x1d
367 IFT_V35 = 0x2d
368 IFT_X25 = 0x5
369 IFT_X25DDN = 0x4
370 IFT_X25PLE = 0x28
371 IFT_XETHER = 0x1a
372 IGNBRK = 0x1
373 IGNCR = 0x80
374 IGNPAR = 0x4
375 IMAXBEL = 0x2000
376 INLCR = 0x40
377 INPCK = 0x10
378 IN_CLASSA_HOST = 0xffffff
379 IN_CLASSA_MAX = 0x80
380 IN_CLASSA_NET = 0xff000000
381 IN_CLASSA_NSHIFT = 0x18
382 IN_CLASSB_HOST = 0xffff
383 IN_CLASSB_MAX = 0x10000
384 IN_CLASSB_NET = 0xffff0000
385 IN_CLASSB_NSHIFT = 0x10
386 IN_CLASSC_HOST = 0xff
387 IN_CLASSC_NET = 0xffffff00
388 IN_CLASSC_NSHIFT = 0x8
389 IN_CLASSD_HOST = 0xfffffff
390 IN_CLASSD_NET = 0xf0000000
391 IN_CLASSD_NSHIFT = 0x1c
392 IN_LINKLOCALNETNUM = 0xa9fe0000
393 IN_LOOPBACKNET = 0x7f
394 IPPROTO_3PC = 0x22
395 IPPROTO_ADFS = 0x44
396 IPPROTO_AH = 0x33
397 IPPROTO_AHIP = 0x3d
398 IPPROTO_APES = 0x63
399 IPPROTO_ARGUS = 0xd
400 IPPROTO_AX25 = 0x5d
401 IPPROTO_BHA = 0x31
402 IPPROTO_BLT = 0x1e
403 IPPROTO_BRSATMON = 0x4c
404 IPPROTO_CFTP = 0x3e
405 IPPROTO_CHAOS = 0x10
406 IPPROTO_CMTP = 0x26
407 IPPROTO_CPHB = 0x49
408 IPPROTO_CPNX = 0x48
409 IPPROTO_DDP = 0x25
410 IPPROTO_DGP = 0x56
411 IPPROTO_DIVERT = 0xfe
412 IPPROTO_DONE = 0x101
413 IPPROTO_DSTOPTS = 0x3c
414 IPPROTO_EGP = 0x8
415 IPPROTO_EMCON = 0xe
416 IPPROTO_ENCAP = 0x62
417 IPPROTO_EON = 0x50
418 IPPROTO_ESP = 0x32
419 IPPROTO_ETHERIP = 0x61
420 IPPROTO_FRAGMENT = 0x2c
421 IPPROTO_GGP = 0x3
422 IPPROTO_GMTP = 0x64
423 IPPROTO_GRE = 0x2f
424 IPPROTO_HELLO = 0x3f
425 IPPROTO_HMP = 0x14
426 IPPROTO_HOPOPTS = 0x0
427 IPPROTO_ICMP = 0x1
428 IPPROTO_ICMPV6 = 0x3a
429 IPPROTO_IDP = 0x16
430 IPPROTO_IDPR = 0x23
431 IPPROTO_IDRP = 0x2d
432 IPPROTO_IGMP = 0x2
433 IPPROTO_IGP = 0x55
434 IPPROTO_IGRP = 0x58
435 IPPROTO_IL = 0x28
436 IPPROTO_INLSP = 0x34
437 IPPROTO_INP = 0x20
438 IPPROTO_IP = 0x0
439 IPPROTO_IPCOMP = 0x6c
440 IPPROTO_IPCV = 0x47
441 IPPROTO_IPEIP = 0x5e
442 IPPROTO_IPIP = 0x4
443 IPPROTO_IPPC = 0x43
444 IPPROTO_IPV4 = 0x4
445 IPPROTO_IPV6 = 0x29
446 IPPROTO_IRTP = 0x1c
447 IPPROTO_KRYPTOLAN = 0x41
448 IPPROTO_LARP = 0x5b
449 IPPROTO_LEAF1 = 0x19
450 IPPROTO_LEAF2 = 0x1a
451 IPPROTO_MAX = 0x100
452 IPPROTO_MAXID = 0x34
453 IPPROTO_MEAS = 0x13
454 IPPROTO_MHRP = 0x30
455 IPPROTO_MICP = 0x5f
456 IPPROTO_MTP = 0x5c
457 IPPROTO_MUX = 0x12
458 IPPROTO_ND = 0x4d
459 IPPROTO_NHRP = 0x36
460 IPPROTO_NONE = 0x3b
461 IPPROTO_NSP = 0x1f
462 IPPROTO_NVPII = 0xb
463 IPPROTO_OSPFIGP = 0x59
464 IPPROTO_PGM = 0x71
465 IPPROTO_PIGP = 0x9
466 IPPROTO_PIM = 0x67
467 IPPROTO_PRM = 0x15
468 IPPROTO_PUP = 0xc
469 IPPROTO_PVP = 0x4b
470 IPPROTO_RAW = 0xff
471 IPPROTO_RCCMON = 0xa
472 IPPROTO_RDP = 0x1b
473 IPPROTO_ROUTING = 0x2b
474 IPPROTO_RSVP = 0x2e
475 IPPROTO_RVD = 0x42
476 IPPROTO_SATEXPAK = 0x40
477 IPPROTO_SATMON = 0x45
478 IPPROTO_SCCSP = 0x60
479 IPPROTO_SCTP = 0x84
480 IPPROTO_SDRP = 0x2a
481 IPPROTO_SEP = 0x21
482 IPPROTO_SRPC = 0x5a
483 IPPROTO_ST = 0x7
484 IPPROTO_SVMTP = 0x52
485 IPPROTO_SWIPE = 0x35
486 IPPROTO_TCF = 0x57
487 IPPROTO_TCP = 0x6
488 IPPROTO_TP = 0x1d
489 IPPROTO_TPXX = 0x27
490 IPPROTO_TRUNK1 = 0x17
491 IPPROTO_TRUNK2 = 0x18
492 IPPROTO_TTP = 0x54
493 IPPROTO_UDP = 0x11
494 IPPROTO_VINES = 0x53
495 IPPROTO_VISA = 0x46
496 IPPROTO_VMTP = 0x51
497 IPPROTO_WBEXPAK = 0x4f
498 IPPROTO_WBMON = 0x4e
499 IPPROTO_WSN = 0x4a
500 IPPROTO_XNET = 0xf
501 IPPROTO_XTP = 0x24
502 IPV6_2292DSTOPTS = 0x17
503 IPV6_2292HOPLIMIT = 0x14
504 IPV6_2292HOPOPTS = 0x16
505 IPV6_2292NEXTHOP = 0x15
506 IPV6_2292PKTINFO = 0x13
507 IPV6_2292PKTOPTIONS = 0x19
508 IPV6_2292RTHDR = 0x18
509 IPV6_BINDV6ONLY = 0x1b
510 IPV6_BOUND_IF = 0x7d
511 IPV6_CHECKSUM = 0x1a
512 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
513 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
514 IPV6_DEFHLIM = 0x40
515 IPV6_FAITH = 0x1d
516 IPV6_FLOWINFO_MASK = 0xffffff0f
517 IPV6_FLOWLABEL_MASK = 0xffff0f00
518 IPV6_FRAGTTL = 0x78
519 IPV6_FW_ADD = 0x1e
520 IPV6_FW_DEL = 0x1f
521 IPV6_FW_FLUSH = 0x20
522 IPV6_FW_GET = 0x22
523 IPV6_FW_ZERO = 0x21
524 IPV6_HLIMDEC = 0x1
525 IPV6_IPSEC_POLICY = 0x1c
526 IPV6_JOIN_GROUP = 0xc
527 IPV6_LEAVE_GROUP = 0xd
528 IPV6_MAXHLIM = 0xff
529 IPV6_MAXOPTHDR = 0x800
530 IPV6_MAXPACKET = 0xffff
531 IPV6_MAX_GROUP_SRC_FILTER = 0x200
532 IPV6_MAX_MEMBERSHIPS = 0xfff
533 IPV6_MAX_SOCK_SRC_FILTER = 0x80
534 IPV6_MIN_MEMBERSHIPS = 0x1f
535 IPV6_MMTU = 0x500
536 IPV6_MULTICAST_HOPS = 0xa
537 IPV6_MULTICAST_IF = 0x9
538 IPV6_MULTICAST_LOOP = 0xb
539 IPV6_PORTRANGE = 0xe
540 IPV6_PORTRANGE_DEFAULT = 0x0
541 IPV6_PORTRANGE_HIGH = 0x1
542 IPV6_PORTRANGE_LOW = 0x2
543 IPV6_RECVTCLASS = 0x23
544 IPV6_RTHDR_LOOSE = 0x0
545 IPV6_RTHDR_STRICT = 0x1
546 IPV6_RTHDR_TYPE_0 = 0x0
547 IPV6_SOCKOPT_RESERVED1 = 0x3
548 IPV6_TCLASS = 0x24
549 IPV6_UNICAST_HOPS = 0x4
550 IPV6_V6ONLY = 0x1b
551 IPV6_VERSION = 0x60
552 IPV6_VERSION_MASK = 0xf0
553 IP_ADD_MEMBERSHIP = 0xc
554 IP_ADD_SOURCE_MEMBERSHIP = 0x46
555 IP_BLOCK_SOURCE = 0x48
556 IP_BOUND_IF = 0x19
557 IP_DEFAULT_MULTICAST_LOOP = 0x1
558 IP_DEFAULT_MULTICAST_TTL = 0x1
559 IP_DF = 0x4000
560 IP_DROP_MEMBERSHIP = 0xd
561 IP_DROP_SOURCE_MEMBERSHIP = 0x47
562 IP_DUMMYNET_CONFIGURE = 0x3c
563 IP_DUMMYNET_DEL = 0x3d
564 IP_DUMMYNET_FLUSH = 0x3e
565 IP_DUMMYNET_GET = 0x40
566 IP_FAITH = 0x16
567 IP_FW_ADD = 0x28
568 IP_FW_DEL = 0x29
569 IP_FW_FLUSH = 0x2a
570 IP_FW_GET = 0x2c
571 IP_FW_RESETLOG = 0x2d
572 IP_FW_ZERO = 0x2b
573 IP_HDRINCL = 0x2
574 IP_IPSEC_POLICY = 0x15
575 IP_MAXPACKET = 0xffff
576 IP_MAX_GROUP_SRC_FILTER = 0x200
577 IP_MAX_MEMBERSHIPS = 0xfff
578 IP_MAX_SOCK_MUTE_FILTER = 0x80
579 IP_MAX_SOCK_SRC_FILTER = 0x80
580 IP_MF = 0x2000
581 IP_MIN_MEMBERSHIPS = 0x1f
582 IP_MSFILTER = 0x4a
583 IP_MSS = 0x240
584 IP_MULTICAST_IF = 0x9
585 IP_MULTICAST_IFINDEX = 0x42
586 IP_MULTICAST_LOOP = 0xb
587 IP_MULTICAST_TTL = 0xa
588 IP_MULTICAST_VIF = 0xe
589 IP_NAT__XXX = 0x37
590 IP_OFFMASK = 0x1fff
591 IP_OLD_FW_ADD = 0x32
592 IP_OLD_FW_DEL = 0x33
593 IP_OLD_FW_FLUSH = 0x34
594 IP_OLD_FW_GET = 0x36
595 IP_OLD_FW_RESETLOG = 0x38
596 IP_OLD_FW_ZERO = 0x35
597 IP_OPTIONS = 0x1
598 IP_PKTINFO = 0x1a
599 IP_PORTRANGE = 0x13
600 IP_PORTRANGE_DEFAULT = 0x0
601 IP_PORTRANGE_HIGH = 0x1
602 IP_PORTRANGE_LOW = 0x2
603 IP_RECVDSTADDR = 0x7
604 IP_RECVIF = 0x14
605 IP_RECVOPTS = 0x5
606 IP_RECVPKTINFO = 0x1a
607 IP_RECVRETOPTS = 0x6
608 IP_RECVTTL = 0x18
609 IP_RETOPTS = 0x8
610 IP_RF = 0x8000
611 IP_RSVP_OFF = 0x10
612 IP_RSVP_ON = 0xf
613 IP_RSVP_VIF_OFF = 0x12
614 IP_RSVP_VIF_ON = 0x11
615 IP_STRIPHDR = 0x17
616 IP_TOS = 0x3
617 IP_TRAFFIC_MGT_BACKGROUND = 0x41
618 IP_TTL = 0x4
619 IP_UNBLOCK_SOURCE = 0x49
620 ISIG = 0x80
621 ISTRIP = 0x20
622 IUTF8 = 0x4000
623 IXANY = 0x800
624 IXOFF = 0x400
625 IXON = 0x200
626 LOCK_EX = 0x2
627 LOCK_NB = 0x4
628 LOCK_SH = 0x1
629 LOCK_UN = 0x8
630 MADV_CAN_REUSE = 0x9
631 MADV_DONTNEED = 0x4
632 MADV_FREE = 0x5
633 MADV_FREE_REUSABLE = 0x7
634 MADV_FREE_REUSE = 0x8
635 MADV_NORMAL = 0x0
636 MADV_RANDOM = 0x1
637 MADV_SEQUENTIAL = 0x2
638 MADV_WILLNEED = 0x3
639 MADV_ZERO_WIRED_PAGES = 0x6
640 MAP_ANON = 0x1000
641 MAP_COPY = 0x2
642 MAP_FILE = 0x0
643 MAP_FIXED = 0x10
644 MAP_HASSEMAPHORE = 0x200
645 MAP_JIT = 0x800
646 MAP_NOCACHE = 0x400
647 MAP_NOEXTEND = 0x100
648 MAP_NORESERVE = 0x40
649 MAP_PRIVATE = 0x2
650 MAP_RENAME = 0x20
651 MAP_RESERVED0080 = 0x80
652 MAP_SHARED = 0x1
653 MCL_CURRENT = 0x1
654 MCL_FUTURE = 0x2
655 MSG_CTRUNC = 0x20
656 MSG_DONTROUTE = 0x4
657 MSG_DONTWAIT = 0x80
658 MSG_EOF = 0x100
659 MSG_EOR = 0x8
660 MSG_FLUSH = 0x400
661 MSG_HAVEMORE = 0x2000
662 MSG_HOLD = 0x800
663 MSG_NEEDSA = 0x10000
664 MSG_OOB = 0x1
665 MSG_PEEK = 0x2
666 MSG_RCVMORE = 0x4000
667 MSG_SEND = 0x1000
668 MSG_TRUNC = 0x10
669 MSG_WAITALL = 0x40
670 MSG_WAITSTREAM = 0x200
671 MS_ASYNC = 0x1
672 MS_DEACTIVATE = 0x8
673 MS_INVALIDATE = 0x2
674 MS_KILLPAGES = 0x4
675 MS_SYNC = 0x10
676 NAME_MAX = 0xff
677 NET_RT_DUMP = 0x1
678 NET_RT_DUMP2 = 0x7
679 NET_RT_FLAGS = 0x2
680 NET_RT_IFLIST = 0x3
681 NET_RT_IFLIST2 = 0x6
682 NET_RT_MAXID = 0xa
683 NET_RT_STAT = 0x4
684 NET_RT_TRASH = 0x5
685 NOFLSH = 0x80000000
686 NOTE_ABSOLUTE = 0x8
687 NOTE_ATTRIB = 0x8
688 NOTE_BACKGROUND = 0x40
689 NOTE_CHILD = 0x4
690 NOTE_CRITICAL = 0x20
691 NOTE_DELETE = 0x1
692 NOTE_EXEC = 0x20000000
693 NOTE_EXIT = 0x80000000
694 NOTE_EXITSTATUS = 0x4000000
695 NOTE_EXIT_CSERROR = 0x40000
696 NOTE_EXIT_DECRYPTFAIL = 0x10000
697 NOTE_EXIT_DETAIL = 0x2000000
698 NOTE_EXIT_DETAIL_MASK = 0x70000
699 NOTE_EXIT_MEMORY = 0x20000
700 NOTE_EXIT_REPARENTED = 0x80000
701 NOTE_EXTEND = 0x4
702 NOTE_FFAND = 0x40000000
703 NOTE_FFCOPY = 0xc0000000
704 NOTE_FFCTRLMASK = 0xc0000000
705 NOTE_FFLAGSMASK = 0xffffff
706 NOTE_FFNOP = 0x0
707 NOTE_FFOR = 0x80000000
708 NOTE_FORK = 0x40000000
709 NOTE_LEEWAY = 0x10
710 NOTE_LINK = 0x10
711 NOTE_LOWAT = 0x1
712 NOTE_NONE = 0x80
713 NOTE_NSECONDS = 0x4
714 NOTE_PCTRLMASK = -0x100000
715 NOTE_PDATAMASK = 0xfffff
716 NOTE_REAP = 0x10000000
717 NOTE_RENAME = 0x20
718 NOTE_REVOKE = 0x40
719 NOTE_SECONDS = 0x1
720 NOTE_SIGNAL = 0x8000000
721 NOTE_TRACK = 0x1
722 NOTE_TRACKERR = 0x2
723 NOTE_TRIGGER = 0x1000000
724 NOTE_USECONDS = 0x2
725 NOTE_VM_ERROR = 0x10000000
726 NOTE_VM_PRESSURE = 0x80000000
727 NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000
728 NOTE_VM_PRESSURE_TERMINATE = 0x40000000
729 NOTE_WRITE = 0x2
730 OCRNL = 0x10
731 OFDEL = 0x20000
732 OFILL = 0x80
733 ONLCR = 0x2
734 ONLRET = 0x40
735 ONOCR = 0x20
736 ONOEOT = 0x8
737 OPOST = 0x1
738 O_ACCMODE = 0x3
739 O_ALERT = 0x20000000
740 O_APPEND = 0x8
741 O_ASYNC = 0x40
742 O_CLOEXEC = 0x1000000
743 O_CREAT = 0x200
744 O_DIRECTORY = 0x100000
745 O_DP_GETRAWENCRYPTED = 0x1
746 O_DSYNC = 0x400000
747 O_EVTONLY = 0x8000
748 O_EXCL = 0x800
749 O_EXLOCK = 0x20
750 O_FSYNC = 0x80
751 O_NDELAY = 0x4
752 O_NOCTTY = 0x20000
753 O_NOFOLLOW = 0x100
754 O_NONBLOCK = 0x4
755 O_POPUP = 0x80000000
756 O_RDONLY = 0x0
757 O_RDWR = 0x2
758 O_SHLOCK = 0x10
759 O_SYMLINK = 0x200000
760 O_SYNC = 0x80
761 O_TRUNC = 0x400
762 O_WRONLY = 0x1
763 PARENB = 0x1000
764 PARMRK = 0x8
765 PARODD = 0x2000
766 PENDIN = 0x20000000
767 PRIO_PGRP = 0x1
768 PRIO_PROCESS = 0x0
769 PRIO_USER = 0x2
770 PROT_EXEC = 0x4
771 PROT_NONE = 0x0
772 PROT_READ = 0x1
773 PROT_WRITE = 0x2
774 PT_ATTACH = 0xa
775 PT_ATTACHEXC = 0xe
776 PT_CONTINUE = 0x7
777 PT_DENY_ATTACH = 0x1f
778 PT_DETACH = 0xb
779 PT_FIRSTMACH = 0x20
780 PT_FORCEQUOTA = 0x1e
781 PT_KILL = 0x8
782 PT_READ_D = 0x2
783 PT_READ_I = 0x1
784 PT_READ_U = 0x3
785 PT_SIGEXC = 0xc
786 PT_STEP = 0x9
787 PT_THUPDATE = 0xd
788 PT_TRACE_ME = 0x0
789 PT_WRITE_D = 0x5
790 PT_WRITE_I = 0x4
791 PT_WRITE_U = 0x6
792 RLIMIT_AS = 0x5
793 RLIMIT_CORE = 0x4
794 RLIMIT_CPU = 0x0
795 RLIMIT_CPU_USAGE_MONITOR = 0x2
796 RLIMIT_DATA = 0x2
797 RLIMIT_FSIZE = 0x1
798 RLIMIT_NOFILE = 0x8
799 RLIMIT_STACK = 0x3
800 RLIM_INFINITY = 0x7fffffffffffffff
801 RTAX_AUTHOR = 0x6
802 RTAX_BRD = 0x7
803 RTAX_DST = 0x0
804 RTAX_GATEWAY = 0x1
805 RTAX_GENMASK = 0x3
806 RTAX_IFA = 0x5
807 RTAX_IFP = 0x4
808 RTAX_MAX = 0x8
809 RTAX_NETMASK = 0x2
810 RTA_AUTHOR = 0x40
811 RTA_BRD = 0x80
812 RTA_DST = 0x1
813 RTA_GATEWAY = 0x2
814 RTA_GENMASK = 0x8
815 RTA_IFA = 0x20
816 RTA_IFP = 0x10
817 RTA_NETMASK = 0x4
818 RTF_BLACKHOLE = 0x1000
819 RTF_BROADCAST = 0x400000
820 RTF_CLONING = 0x100
821 RTF_CONDEMNED = 0x2000000
822 RTF_DELCLONE = 0x80
823 RTF_DONE = 0x40
824 RTF_DYNAMIC = 0x10
825 RTF_GATEWAY = 0x2
826 RTF_HOST = 0x4
827 RTF_IFREF = 0x4000000
828 RTF_IFSCOPE = 0x1000000
829 RTF_LLINFO = 0x400
830 RTF_LOCAL = 0x200000
831 RTF_MODIFIED = 0x20
832 RTF_MULTICAST = 0x800000
833 RTF_PINNED = 0x100000
834 RTF_PRCLONING = 0x10000
835 RTF_PROTO1 = 0x8000
836 RTF_PROTO2 = 0x4000
837 RTF_PROTO3 = 0x40000
838 RTF_PROXY = 0x8000000
839 RTF_REJECT = 0x8
840 RTF_ROUTER = 0x10000000
841 RTF_STATIC = 0x800
842 RTF_UP = 0x1
843 RTF_WASCLONED = 0x20000
844 RTF_XRESOLVE = 0x200
845 RTM_ADD = 0x1
846 RTM_CHANGE = 0x3
847 RTM_DELADDR = 0xd
848 RTM_DELETE = 0x2
849 RTM_DELMADDR = 0x10
850 RTM_GET = 0x4
851 RTM_GET2 = 0x14
852 RTM_IFINFO = 0xe
853 RTM_IFINFO2 = 0x12
854 RTM_LOCK = 0x8
855 RTM_LOSING = 0x5
856 RTM_MISS = 0x7
857 RTM_NEWADDR = 0xc
858 RTM_NEWMADDR = 0xf
859 RTM_NEWMADDR2 = 0x13
860 RTM_OLDADD = 0x9
861 RTM_OLDDEL = 0xa
862 RTM_REDIRECT = 0x6
863 RTM_RESOLVE = 0xb
864 RTM_RTTUNIT = 0xf4240
865 RTM_VERSION = 0x5
866 RTV_EXPIRE = 0x4
867 RTV_HOPCOUNT = 0x2
868 RTV_MTU = 0x1
869 RTV_RPIPE = 0x8
870 RTV_RTT = 0x40
871 RTV_RTTVAR = 0x80
872 RTV_SPIPE = 0x10
873 RTV_SSTHRESH = 0x20
874 RUSAGE_CHILDREN = -0x1
875 RUSAGE_SELF = 0x0
876 SCM_CREDS = 0x3
877 SCM_RIGHTS = 0x1
878 SCM_TIMESTAMP = 0x2
879 SCM_TIMESTAMP_MONOTONIC = 0x4
880 SHUT_RD = 0x0
881 SHUT_RDWR = 0x2
882 SHUT_WR = 0x1
883 SIOCADDMULTI = 0x80206931
884 SIOCAIFADDR = 0x8040691a
885 SIOCARPIPLL = 0xc0206928
886 SIOCATMARK = 0x40047307
887 SIOCAUTOADDR = 0xc0206926
888 SIOCAUTONETMASK = 0x80206927
889 SIOCDELMULTI = 0x80206932
890 SIOCDIFADDR = 0x80206919
891 SIOCDIFPHYADDR = 0x80206941
892 SIOCGDRVSPEC = 0xc028697b
893 SIOCGETVLAN = 0xc020697f
894 SIOCGHIWAT = 0x40047301
895 SIOCGIFADDR = 0xc0206921
896 SIOCGIFALTMTU = 0xc0206948
897 SIOCGIFASYNCMAP = 0xc020697c
898 SIOCGIFBOND = 0xc0206947
899 SIOCGIFBRDADDR = 0xc0206923
900 SIOCGIFCAP = 0xc020695b
901 SIOCGIFCONF = 0xc00c6924
902 SIOCGIFDEVMTU = 0xc0206944
903 SIOCGIFDSTADDR = 0xc0206922
904 SIOCGIFFLAGS = 0xc0206911
905 SIOCGIFGENERIC = 0xc020693a
906 SIOCGIFKPI = 0xc0206987
907 SIOCGIFMAC = 0xc0206982
908 SIOCGIFMEDIA = 0xc02c6938
909 SIOCGIFMETRIC = 0xc0206917
910 SIOCGIFMTU = 0xc0206933
911 SIOCGIFNETMASK = 0xc0206925
912 SIOCGIFPDSTADDR = 0xc0206940
913 SIOCGIFPHYS = 0xc0206935
914 SIOCGIFPSRCADDR = 0xc020693f
915 SIOCGIFSTATUS = 0xc331693d
916 SIOCGIFVLAN = 0xc020697f
917 SIOCGIFWAKEFLAGS = 0xc0206988
918 SIOCGLOWAT = 0x40047303
919 SIOCGPGRP = 0x40047309
920 SIOCIFCREATE = 0xc0206978
921 SIOCIFCREATE2 = 0xc020697a
922 SIOCIFDESTROY = 0x80206979
923 SIOCIFGCLONERS = 0xc0106981
924 SIOCRSLVMULTI = 0xc010693b
925 SIOCSDRVSPEC = 0x8028697b
926 SIOCSETVLAN = 0x8020697e
927 SIOCSHIWAT = 0x80047300
928 SIOCSIFADDR = 0x8020690c
929 SIOCSIFALTMTU = 0x80206945
930 SIOCSIFASYNCMAP = 0x8020697d
931 SIOCSIFBOND = 0x80206946
932 SIOCSIFBRDADDR = 0x80206913
933 SIOCSIFCAP = 0x8020695a
934 SIOCSIFDSTADDR = 0x8020690e
935 SIOCSIFFLAGS = 0x80206910
936 SIOCSIFGENERIC = 0x80206939
937 SIOCSIFKPI = 0x80206986
938 SIOCSIFLLADDR = 0x8020693c
939 SIOCSIFMAC = 0x80206983
940 SIOCSIFMEDIA = 0xc0206937
941 SIOCSIFMETRIC = 0x80206918
942 SIOCSIFMTU = 0x80206934
943 SIOCSIFNETMASK = 0x80206916
944 SIOCSIFPHYADDR = 0x8040693e
945 SIOCSIFPHYS = 0x80206936
946 SIOCSIFVLAN = 0x8020697e
947 SIOCSLOWAT = 0x80047302
948 SIOCSPGRP = 0x80047308
949 SOCK_DGRAM = 0x2
950 SOCK_MAXADDRLEN = 0xff
951 SOCK_RAW = 0x3
952 SOCK_RDM = 0x4
953 SOCK_SEQPACKET = 0x5
954 SOCK_STREAM = 0x1
955 SOL_SOCKET = 0xffff
956 SOMAXCONN = 0x80
957 SO_ACCEPTCONN = 0x2
958 SO_BROADCAST = 0x20
959 SO_DEBUG = 0x1
960 SO_DONTROUTE = 0x10
961 SO_DONTTRUNC = 0x2000
962 SO_ERROR = 0x1007
963 SO_KEEPALIVE = 0x8
964 SO_LABEL = 0x1010
965 SO_LINGER = 0x80
966 SO_LINGER_SEC = 0x1080
967 SO_NKE = 0x1021
968 SO_NOADDRERR = 0x1023
969 SO_NOSIGPIPE = 0x1022
970 SO_NOTIFYCONFLICT = 0x1026
971 SO_NP_EXTENSIONS = 0x1083
972 SO_NREAD = 0x1020
973 SO_NUMRCVPKT = 0x1112
974 SO_NWRITE = 0x1024
975 SO_OOBINLINE = 0x100
976 SO_PEERLABEL = 0x1011
977 SO_RANDOMPORT = 0x1082
978 SO_RCVBUF = 0x1002
979 SO_RCVLOWAT = 0x1004
980 SO_RCVTIMEO = 0x1006
981 SO_REUSEADDR = 0x4
982 SO_REUSEPORT = 0x200
983 SO_REUSESHAREUID = 0x1025
984 SO_SNDBUF = 0x1001
985 SO_SNDLOWAT = 0x1003
986 SO_SNDTIMEO = 0x1005
987 SO_TIMESTAMP = 0x400
988 SO_TIMESTAMP_MONOTONIC = 0x800
989 SO_TYPE = 0x1008
990 SO_UPCALLCLOSEWAIT = 0x1027
991 SO_USELOOPBACK = 0x40
992 SO_WANTMORE = 0x4000
993 SO_WANTOOBFLAG = 0x8000
994 S_IEXEC = 0x40
995 S_IFBLK = 0x6000
996 S_IFCHR = 0x2000
997 S_IFDIR = 0x4000
998 S_IFIFO = 0x1000
999 S_IFLNK = 0xa000
1000 S_IFMT = 0xf000
1001 S_IFREG = 0x8000
1002 S_IFSOCK = 0xc000
1003 S_IFWHT = 0xe000
1004 S_IREAD = 0x100
1005 S_IRGRP = 0x20
1006 S_IROTH = 0x4
1007 S_IRUSR = 0x100
1008 S_IRWXG = 0x38
1009 S_IRWXO = 0x7
1010 S_IRWXU = 0x1c0
1011 S_ISGID = 0x400
1012 S_ISTXT = 0x200
1013 S_ISUID = 0x800
1014 S_ISVTX = 0x200
1015 S_IWGRP = 0x10
1016 S_IWOTH = 0x2
1017 S_IWRITE = 0x80
1018 S_IWUSR = 0x80
1019 S_IXGRP = 0x8
1020 S_IXOTH = 0x1
1021 S_IXUSR = 0x40
1022 TCIFLUSH = 0x1
1023 TCIOFLUSH = 0x3
1024 TCOFLUSH = 0x2
1025 TCP_CONNECTIONTIMEOUT = 0x20
1026 TCP_ENABLE_ECN = 0x104
1027 TCP_KEEPALIVE = 0x10
1028 TCP_KEEPCNT = 0x102
1029 TCP_KEEPINTVL = 0x101
1030 TCP_MAXHLEN = 0x3c
1031 TCP_MAXOLEN = 0x28
1032 TCP_MAXSEG = 0x2
1033 TCP_MAXWIN = 0xffff
1034 TCP_MAX_SACK = 0x4
1035 TCP_MAX_WINSHIFT = 0xe
1036 TCP_MINMSS = 0xd8
1037 TCP_MSS = 0x200
1038 TCP_NODELAY = 0x1
1039 TCP_NOOPT = 0x8
1040 TCP_NOPUSH = 0x4
1041 TCP_NOTSENT_LOWAT = 0x201
1042 TCP_RXT_CONNDROPTIME = 0x80
1043 TCP_RXT_FINDROP = 0x100
1044 TCP_SENDMOREACKS = 0x103
1045 TCSAFLUSH = 0x2
1046 TIOCCBRK = 0x2000747a
1047 TIOCCDTR = 0x20007478
1048 TIOCCONS = 0x80047462
1049 TIOCDCDTIMESTAMP = 0x40107458
1050 TIOCDRAIN = 0x2000745e
1051 TIOCDSIMICROCODE = 0x20007455
1052 TIOCEXCL = 0x2000740d
1053 TIOCEXT = 0x80047460
1054 TIOCFLUSH = 0x80047410
1055 TIOCGDRAINWAIT = 0x40047456
1056 TIOCGETA = 0x40487413
1057 TIOCGETD = 0x4004741a
1058 TIOCGPGRP = 0x40047477
1059 TIOCGWINSZ = 0x40087468
1060 TIOCIXOFF = 0x20007480
1061 TIOCIXON = 0x20007481
1062 TIOCMBIC = 0x8004746b
1063 TIOCMBIS = 0x8004746c
1064 TIOCMGDTRWAIT = 0x4004745a
1065 TIOCMGET = 0x4004746a
1066 TIOCMODG = 0x40047403
1067 TIOCMODS = 0x80047404
1068 TIOCMSDTRWAIT = 0x8004745b
1069 TIOCMSET = 0x8004746d
1070 TIOCM_CAR = 0x40
1071 TIOCM_CD = 0x40
1072 TIOCM_CTS = 0x20
1073 TIOCM_DSR = 0x100
1074 TIOCM_DTR = 0x2
1075 TIOCM_LE = 0x1
1076 TIOCM_RI = 0x80
1077 TIOCM_RNG = 0x80
1078 TIOCM_RTS = 0x4
1079 TIOCM_SR = 0x10
1080 TIOCM_ST = 0x8
1081 TIOCNOTTY = 0x20007471
1082 TIOCNXCL = 0x2000740e
1083 TIOCOUTQ = 0x40047473
1084 TIOCPKT = 0x80047470
1085 TIOCPKT_DATA = 0x0
1086 TIOCPKT_DOSTOP = 0x20
1087 TIOCPKT_FLUSHREAD = 0x1
1088 TIOCPKT_FLUSHWRITE = 0x2
1089 TIOCPKT_IOCTL = 0x40
1090 TIOCPKT_NOSTOP = 0x10
1091 TIOCPKT_START = 0x8
1092 TIOCPKT_STOP = 0x4
1093 TIOCPTYGNAME = 0x40807453
1094 TIOCPTYGRANT = 0x20007454
1095 TIOCPTYUNLK = 0x20007452
1096 TIOCREMOTE = 0x80047469
1097 TIOCSBRK = 0x2000747b
1098 TIOCSCONS = 0x20007463
1099 TIOCSCTTY = 0x20007461
1100 TIOCSDRAINWAIT = 0x80047457
1101 TIOCSDTR = 0x20007479
1102 TIOCSETA = 0x80487414
1103 TIOCSETAF = 0x80487416
1104 TIOCSETAW = 0x80487415
1105 TIOCSETD = 0x8004741b
1106 TIOCSIG = 0x2000745f
1107 TIOCSPGRP = 0x80047476
1108 TIOCSTART = 0x2000746e
1109 TIOCSTAT = 0x20007465
1110 TIOCSTI = 0x80017472
1111 TIOCSTOP = 0x2000746f
1112 TIOCSWINSZ = 0x80087467
1113 TIOCTIMESTAMP = 0x40107459
1114 TIOCUCNTL = 0x80047466
1115 TOSTOP = 0x400000
1116 VDISCARD = 0xf
1117 VDSUSP = 0xb
1118 VEOF = 0x0
1119 VEOL = 0x1
1120 VEOL2 = 0x2
1121 VERASE = 0x3
1122 VINTR = 0x8
1123 VKILL = 0x5
1124 VLNEXT = 0xe
1125 VMIN = 0x10
1126 VQUIT = 0x9
1127 VREPRINT = 0x6
1128 VSTART = 0xc
1129 VSTATUS = 0x12
1130 VSTOP = 0xd
1131 VSUSP = 0xa
1132 VT0 = 0x0
1133 VT1 = 0x10000
1134 VTDLY = 0x10000
1135 VTIME = 0x11
1136 VWERASE = 0x4
1137 WCONTINUED = 0x10
1138 WCOREFLAG = 0x80
1139 WEXITED = 0x4
1140 WNOHANG = 0x1
1141 WNOWAIT = 0x20
1142 WORDSIZE = 0x40
1143 WSTOPPED = 0x8
1144 WUNTRACED = 0x2
1145)
1146
1147// Errors
1148const (
1149 E2BIG = syscall.Errno(0x7)
1150 EACCES = syscall.Errno(0xd)
1151 EADDRINUSE = syscall.Errno(0x30)
1152 EADDRNOTAVAIL = syscall.Errno(0x31)
1153 EAFNOSUPPORT = syscall.Errno(0x2f)
1154 EAGAIN = syscall.Errno(0x23)
1155 EALREADY = syscall.Errno(0x25)
1156 EAUTH = syscall.Errno(0x50)
1157 EBADARCH = syscall.Errno(0x56)
1158 EBADEXEC = syscall.Errno(0x55)
1159 EBADF = syscall.Errno(0x9)
1160 EBADMACHO = syscall.Errno(0x58)
1161 EBADMSG = syscall.Errno(0x5e)
1162 EBADRPC = syscall.Errno(0x48)
1163 EBUSY = syscall.Errno(0x10)
1164 ECANCELED = syscall.Errno(0x59)
1165 ECHILD = syscall.Errno(0xa)
1166 ECONNABORTED = syscall.Errno(0x35)
1167 ECONNREFUSED = syscall.Errno(0x3d)
1168 ECONNRESET = syscall.Errno(0x36)
1169 EDEADLK = syscall.Errno(0xb)
1170 EDESTADDRREQ = syscall.Errno(0x27)
1171 EDEVERR = syscall.Errno(0x53)
1172 EDOM = syscall.Errno(0x21)
1173 EDQUOT = syscall.Errno(0x45)
1174 EEXIST = syscall.Errno(0x11)
1175 EFAULT = syscall.Errno(0xe)
1176 EFBIG = syscall.Errno(0x1b)
1177 EFTYPE = syscall.Errno(0x4f)
1178 EHOSTDOWN = syscall.Errno(0x40)
1179 EHOSTUNREACH = syscall.Errno(0x41)
1180 EIDRM = syscall.Errno(0x5a)
1181 EILSEQ = syscall.Errno(0x5c)
1182 EINPROGRESS = syscall.Errno(0x24)
1183 EINTR = syscall.Errno(0x4)
1184 EINVAL = syscall.Errno(0x16)
1185 EIO = syscall.Errno(0x5)
1186 EISCONN = syscall.Errno(0x38)
1187 EISDIR = syscall.Errno(0x15)
1188 ELAST = syscall.Errno(0x6a)
1189 ELOOP = syscall.Errno(0x3e)
1190 EMFILE = syscall.Errno(0x18)
1191 EMLINK = syscall.Errno(0x1f)
1192 EMSGSIZE = syscall.Errno(0x28)
1193 EMULTIHOP = syscall.Errno(0x5f)
1194 ENAMETOOLONG = syscall.Errno(0x3f)
1195 ENEEDAUTH = syscall.Errno(0x51)
1196 ENETDOWN = syscall.Errno(0x32)
1197 ENETRESET = syscall.Errno(0x34)
1198 ENETUNREACH = syscall.Errno(0x33)
1199 ENFILE = syscall.Errno(0x17)
1200 ENOATTR = syscall.Errno(0x5d)
1201 ENOBUFS = syscall.Errno(0x37)
1202 ENODATA = syscall.Errno(0x60)
1203 ENODEV = syscall.Errno(0x13)
1204 ENOENT = syscall.Errno(0x2)
1205 ENOEXEC = syscall.Errno(0x8)
1206 ENOLCK = syscall.Errno(0x4d)
1207 ENOLINK = syscall.Errno(0x61)
1208 ENOMEM = syscall.Errno(0xc)
1209 ENOMSG = syscall.Errno(0x5b)
1210 ENOPOLICY = syscall.Errno(0x67)
1211 ENOPROTOOPT = syscall.Errno(0x2a)
1212 ENOSPC = syscall.Errno(0x1c)
1213 ENOSR = syscall.Errno(0x62)
1214 ENOSTR = syscall.Errno(0x63)
1215 ENOSYS = syscall.Errno(0x4e)
1216 ENOTBLK = syscall.Errno(0xf)
1217 ENOTCONN = syscall.Errno(0x39)
1218 ENOTDIR = syscall.Errno(0x14)
1219 ENOTEMPTY = syscall.Errno(0x42)
1220 ENOTRECOVERABLE = syscall.Errno(0x68)
1221 ENOTSOCK = syscall.Errno(0x26)
1222 ENOTSUP = syscall.Errno(0x2d)
1223 ENOTTY = syscall.Errno(0x19)
1224 ENXIO = syscall.Errno(0x6)
1225 EOPNOTSUPP = syscall.Errno(0x66)
1226 EOVERFLOW = syscall.Errno(0x54)
1227 EOWNERDEAD = syscall.Errno(0x69)
1228 EPERM = syscall.Errno(0x1)
1229 EPFNOSUPPORT = syscall.Errno(0x2e)
1230 EPIPE = syscall.Errno(0x20)
1231 EPROCLIM = syscall.Errno(0x43)
1232 EPROCUNAVAIL = syscall.Errno(0x4c)
1233 EPROGMISMATCH = syscall.Errno(0x4b)
1234 EPROGUNAVAIL = syscall.Errno(0x4a)
1235 EPROTO = syscall.Errno(0x64)
1236 EPROTONOSUPPORT = syscall.Errno(0x2b)
1237 EPROTOTYPE = syscall.Errno(0x29)
1238 EPWROFF = syscall.Errno(0x52)
1239 EQFULL = syscall.Errno(0x6a)
1240 ERANGE = syscall.Errno(0x22)
1241 EREMOTE = syscall.Errno(0x47)
1242 EROFS = syscall.Errno(0x1e)
1243 ERPCMISMATCH = syscall.Errno(0x49)
1244 ESHLIBVERS = syscall.Errno(0x57)
1245 ESHUTDOWN = syscall.Errno(0x3a)
1246 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1247 ESPIPE = syscall.Errno(0x1d)
1248 ESRCH = syscall.Errno(0x3)
1249 ESTALE = syscall.Errno(0x46)
1250 ETIME = syscall.Errno(0x65)
1251 ETIMEDOUT = syscall.Errno(0x3c)
1252 ETOOMANYREFS = syscall.Errno(0x3b)
1253 ETXTBSY = syscall.Errno(0x1a)
1254 EUSERS = syscall.Errno(0x44)
1255 EWOULDBLOCK = syscall.Errno(0x23)
1256 EXDEV = syscall.Errno(0x12)
1257)
1258
1259// Signals
1260const (
1261 SIGABRT = syscall.Signal(0x6)
1262 SIGALRM = syscall.Signal(0xe)
1263 SIGBUS = syscall.Signal(0xa)
1264 SIGCHLD = syscall.Signal(0x14)
1265 SIGCONT = syscall.Signal(0x13)
1266 SIGEMT = syscall.Signal(0x7)
1267 SIGFPE = syscall.Signal(0x8)
1268 SIGHUP = syscall.Signal(0x1)
1269 SIGILL = syscall.Signal(0x4)
1270 SIGINFO = syscall.Signal(0x1d)
1271 SIGINT = syscall.Signal(0x2)
1272 SIGIO = syscall.Signal(0x17)
1273 SIGIOT = syscall.Signal(0x6)
1274 SIGKILL = syscall.Signal(0x9)
1275 SIGPIPE = syscall.Signal(0xd)
1276 SIGPROF = syscall.Signal(0x1b)
1277 SIGQUIT = syscall.Signal(0x3)
1278 SIGSEGV = syscall.Signal(0xb)
1279 SIGSTOP = syscall.Signal(0x11)
1280 SIGSYS = syscall.Signal(0xc)
1281 SIGTERM = syscall.Signal(0xf)
1282 SIGTRAP = syscall.Signal(0x5)
1283 SIGTSTP = syscall.Signal(0x12)
1284 SIGTTIN = syscall.Signal(0x15)
1285 SIGTTOU = syscall.Signal(0x16)
1286 SIGURG = syscall.Signal(0x10)
1287 SIGUSR1 = syscall.Signal(0x1e)
1288 SIGUSR2 = syscall.Signal(0x1f)
1289 SIGVTALRM = syscall.Signal(0x1a)
1290 SIGWINCH = syscall.Signal(0x1c)
1291 SIGXCPU = syscall.Signal(0x18)
1292 SIGXFSZ = syscall.Signal(0x19)
1293)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_arm64.go
deleted file mode 100644
index 3189c6b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_darwin_arm64.go
+++ /dev/null
@@ -1,1576 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm64,darwin
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_CCITT = 0xa
16 AF_CHAOS = 0x5
17 AF_CNT = 0x15
18 AF_COIP = 0x14
19 AF_DATAKIT = 0x9
20 AF_DECnet = 0xc
21 AF_DLI = 0xd
22 AF_E164 = 0x1c
23 AF_ECMA = 0x8
24 AF_HYLINK = 0xf
25 AF_IEEE80211 = 0x25
26 AF_IMPLINK = 0x3
27 AF_INET = 0x2
28 AF_INET6 = 0x1e
29 AF_IPX = 0x17
30 AF_ISDN = 0x1c
31 AF_ISO = 0x7
32 AF_LAT = 0xe
33 AF_LINK = 0x12
34 AF_LOCAL = 0x1
35 AF_MAX = 0x28
36 AF_NATM = 0x1f
37 AF_NDRV = 0x1b
38 AF_NETBIOS = 0x21
39 AF_NS = 0x6
40 AF_OSI = 0x7
41 AF_PPP = 0x22
42 AF_PUP = 0x4
43 AF_RESERVED_36 = 0x24
44 AF_ROUTE = 0x11
45 AF_SIP = 0x18
46 AF_SNA = 0xb
47 AF_SYSTEM = 0x20
48 AF_UNIX = 0x1
49 AF_UNSPEC = 0x0
50 AF_UTUN = 0x26
51 B0 = 0x0
52 B110 = 0x6e
53 B115200 = 0x1c200
54 B1200 = 0x4b0
55 B134 = 0x86
56 B14400 = 0x3840
57 B150 = 0x96
58 B1800 = 0x708
59 B19200 = 0x4b00
60 B200 = 0xc8
61 B230400 = 0x38400
62 B2400 = 0x960
63 B28800 = 0x7080
64 B300 = 0x12c
65 B38400 = 0x9600
66 B4800 = 0x12c0
67 B50 = 0x32
68 B57600 = 0xe100
69 B600 = 0x258
70 B7200 = 0x1c20
71 B75 = 0x4b
72 B76800 = 0x12c00
73 B9600 = 0x2580
74 BIOCFLUSH = 0x20004268
75 BIOCGBLEN = 0x40044266
76 BIOCGDLT = 0x4004426a
77 BIOCGDLTLIST = 0xc00c4279
78 BIOCGETIF = 0x4020426b
79 BIOCGHDRCMPLT = 0x40044274
80 BIOCGRSIG = 0x40044272
81 BIOCGRTIMEOUT = 0x4010426e
82 BIOCGSEESENT = 0x40044276
83 BIOCGSTATS = 0x4008426f
84 BIOCIMMEDIATE = 0x80044270
85 BIOCPROMISC = 0x20004269
86 BIOCSBLEN = 0xc0044266
87 BIOCSDLT = 0x80044278
88 BIOCSETF = 0x80104267
89 BIOCSETFNR = 0x8010427e
90 BIOCSETIF = 0x8020426c
91 BIOCSHDRCMPLT = 0x80044275
92 BIOCSRSIG = 0x80044273
93 BIOCSRTIMEOUT = 0x8010426d
94 BIOCSSEESENT = 0x80044277
95 BIOCVERSION = 0x40044271
96 BPF_A = 0x10
97 BPF_ABS = 0x20
98 BPF_ADD = 0x0
99 BPF_ALIGNMENT = 0x4
100 BPF_ALU = 0x4
101 BPF_AND = 0x50
102 BPF_B = 0x10
103 BPF_DIV = 0x30
104 BPF_H = 0x8
105 BPF_IMM = 0x0
106 BPF_IND = 0x40
107 BPF_JA = 0x0
108 BPF_JEQ = 0x10
109 BPF_JGE = 0x30
110 BPF_JGT = 0x20
111 BPF_JMP = 0x5
112 BPF_JSET = 0x40
113 BPF_K = 0x0
114 BPF_LD = 0x0
115 BPF_LDX = 0x1
116 BPF_LEN = 0x80
117 BPF_LSH = 0x60
118 BPF_MAJOR_VERSION = 0x1
119 BPF_MAXBUFSIZE = 0x80000
120 BPF_MAXINSNS = 0x200
121 BPF_MEM = 0x60
122 BPF_MEMWORDS = 0x10
123 BPF_MINBUFSIZE = 0x20
124 BPF_MINOR_VERSION = 0x1
125 BPF_MISC = 0x7
126 BPF_MSH = 0xa0
127 BPF_MUL = 0x20
128 BPF_NEG = 0x80
129 BPF_OR = 0x40
130 BPF_RELEASE = 0x30bb6
131 BPF_RET = 0x6
132 BPF_RSH = 0x70
133 BPF_ST = 0x2
134 BPF_STX = 0x3
135 BPF_SUB = 0x10
136 BPF_TAX = 0x0
137 BPF_TXA = 0x80
138 BPF_W = 0x0
139 BPF_X = 0x8
140 BRKINT = 0x2
141 CFLUSH = 0xf
142 CLOCAL = 0x8000
143 CREAD = 0x800
144 CS5 = 0x0
145 CS6 = 0x100
146 CS7 = 0x200
147 CS8 = 0x300
148 CSIZE = 0x300
149 CSTART = 0x11
150 CSTATUS = 0x14
151 CSTOP = 0x13
152 CSTOPB = 0x400
153 CSUSP = 0x1a
154 CTL_MAXNAME = 0xc
155 CTL_NET = 0x4
156 DLT_A429 = 0xb8
157 DLT_A653_ICM = 0xb9
158 DLT_AIRONET_HEADER = 0x78
159 DLT_AOS = 0xde
160 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
161 DLT_ARCNET = 0x7
162 DLT_ARCNET_LINUX = 0x81
163 DLT_ATM_CLIP = 0x13
164 DLT_ATM_RFC1483 = 0xb
165 DLT_AURORA = 0x7e
166 DLT_AX25 = 0x3
167 DLT_AX25_KISS = 0xca
168 DLT_BACNET_MS_TP = 0xa5
169 DLT_BLUETOOTH_HCI_H4 = 0xbb
170 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
171 DLT_CAN20B = 0xbe
172 DLT_CAN_SOCKETCAN = 0xe3
173 DLT_CHAOS = 0x5
174 DLT_CHDLC = 0x68
175 DLT_CISCO_IOS = 0x76
176 DLT_C_HDLC = 0x68
177 DLT_C_HDLC_WITH_DIR = 0xcd
178 DLT_DBUS = 0xe7
179 DLT_DECT = 0xdd
180 DLT_DOCSIS = 0x8f
181 DLT_DVB_CI = 0xeb
182 DLT_ECONET = 0x73
183 DLT_EN10MB = 0x1
184 DLT_EN3MB = 0x2
185 DLT_ENC = 0x6d
186 DLT_ERF = 0xc5
187 DLT_ERF_ETH = 0xaf
188 DLT_ERF_POS = 0xb0
189 DLT_FC_2 = 0xe0
190 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
191 DLT_FDDI = 0xa
192 DLT_FLEXRAY = 0xd2
193 DLT_FRELAY = 0x6b
194 DLT_FRELAY_WITH_DIR = 0xce
195 DLT_GCOM_SERIAL = 0xad
196 DLT_GCOM_T1E1 = 0xac
197 DLT_GPF_F = 0xab
198 DLT_GPF_T = 0xaa
199 DLT_GPRS_LLC = 0xa9
200 DLT_GSMTAP_ABIS = 0xda
201 DLT_GSMTAP_UM = 0xd9
202 DLT_HHDLC = 0x79
203 DLT_IBM_SN = 0x92
204 DLT_IBM_SP = 0x91
205 DLT_IEEE802 = 0x6
206 DLT_IEEE802_11 = 0x69
207 DLT_IEEE802_11_RADIO = 0x7f
208 DLT_IEEE802_11_RADIO_AVS = 0xa3
209 DLT_IEEE802_15_4 = 0xc3
210 DLT_IEEE802_15_4_LINUX = 0xbf
211 DLT_IEEE802_15_4_NOFCS = 0xe6
212 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
213 DLT_IEEE802_16_MAC_CPS = 0xbc
214 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
215 DLT_IPFILTER = 0x74
216 DLT_IPMB = 0xc7
217 DLT_IPMB_LINUX = 0xd1
218 DLT_IPNET = 0xe2
219 DLT_IPOIB = 0xf2
220 DLT_IPV4 = 0xe4
221 DLT_IPV6 = 0xe5
222 DLT_IP_OVER_FC = 0x7a
223 DLT_JUNIPER_ATM1 = 0x89
224 DLT_JUNIPER_ATM2 = 0x87
225 DLT_JUNIPER_ATM_CEMIC = 0xee
226 DLT_JUNIPER_CHDLC = 0xb5
227 DLT_JUNIPER_ES = 0x84
228 DLT_JUNIPER_ETHER = 0xb2
229 DLT_JUNIPER_FIBRECHANNEL = 0xea
230 DLT_JUNIPER_FRELAY = 0xb4
231 DLT_JUNIPER_GGSN = 0x85
232 DLT_JUNIPER_ISM = 0xc2
233 DLT_JUNIPER_MFR = 0x86
234 DLT_JUNIPER_MLFR = 0x83
235 DLT_JUNIPER_MLPPP = 0x82
236 DLT_JUNIPER_MONITOR = 0xa4
237 DLT_JUNIPER_PIC_PEER = 0xae
238 DLT_JUNIPER_PPP = 0xb3
239 DLT_JUNIPER_PPPOE = 0xa7
240 DLT_JUNIPER_PPPOE_ATM = 0xa8
241 DLT_JUNIPER_SERVICES = 0x88
242 DLT_JUNIPER_SRX_E2E = 0xe9
243 DLT_JUNIPER_ST = 0xc8
244 DLT_JUNIPER_VP = 0xb7
245 DLT_JUNIPER_VS = 0xe8
246 DLT_LAPB_WITH_DIR = 0xcf
247 DLT_LAPD = 0xcb
248 DLT_LIN = 0xd4
249 DLT_LINUX_EVDEV = 0xd8
250 DLT_LINUX_IRDA = 0x90
251 DLT_LINUX_LAPD = 0xb1
252 DLT_LINUX_PPP_WITHDIRECTION = 0xa6
253 DLT_LINUX_SLL = 0x71
254 DLT_LOOP = 0x6c
255 DLT_LTALK = 0x72
256 DLT_MATCHING_MAX = 0xf5
257 DLT_MATCHING_MIN = 0x68
258 DLT_MFR = 0xb6
259 DLT_MOST = 0xd3
260 DLT_MPEG_2_TS = 0xf3
261 DLT_MPLS = 0xdb
262 DLT_MTP2 = 0x8c
263 DLT_MTP2_WITH_PHDR = 0x8b
264 DLT_MTP3 = 0x8d
265 DLT_MUX27010 = 0xec
266 DLT_NETANALYZER = 0xf0
267 DLT_NETANALYZER_TRANSPARENT = 0xf1
268 DLT_NFC_LLCP = 0xf5
269 DLT_NFLOG = 0xef
270 DLT_NG40 = 0xf4
271 DLT_NULL = 0x0
272 DLT_PCI_EXP = 0x7d
273 DLT_PFLOG = 0x75
274 DLT_PFSYNC = 0x12
275 DLT_PPI = 0xc0
276 DLT_PPP = 0x9
277 DLT_PPP_BSDOS = 0x10
278 DLT_PPP_ETHER = 0x33
279 DLT_PPP_PPPD = 0xa6
280 DLT_PPP_SERIAL = 0x32
281 DLT_PPP_WITH_DIR = 0xcc
282 DLT_PPP_WITH_DIRECTION = 0xa6
283 DLT_PRISM_HEADER = 0x77
284 DLT_PRONET = 0x4
285 DLT_RAIF1 = 0xc6
286 DLT_RAW = 0xc
287 DLT_RIO = 0x7c
288 DLT_SCCP = 0x8e
289 DLT_SITA = 0xc4
290 DLT_SLIP = 0x8
291 DLT_SLIP_BSDOS = 0xf
292 DLT_STANAG_5066_D_PDU = 0xed
293 DLT_SUNATM = 0x7b
294 DLT_SYMANTEC_FIREWALL = 0x63
295 DLT_TZSP = 0x80
296 DLT_USB = 0xba
297 DLT_USB_LINUX = 0xbd
298 DLT_USB_LINUX_MMAPPED = 0xdc
299 DLT_USER0 = 0x93
300 DLT_USER1 = 0x94
301 DLT_USER10 = 0x9d
302 DLT_USER11 = 0x9e
303 DLT_USER12 = 0x9f
304 DLT_USER13 = 0xa0
305 DLT_USER14 = 0xa1
306 DLT_USER15 = 0xa2
307 DLT_USER2 = 0x95
308 DLT_USER3 = 0x96
309 DLT_USER4 = 0x97
310 DLT_USER5 = 0x98
311 DLT_USER6 = 0x99
312 DLT_USER7 = 0x9a
313 DLT_USER8 = 0x9b
314 DLT_USER9 = 0x9c
315 DLT_WIHART = 0xdf
316 DLT_X2E_SERIAL = 0xd5
317 DLT_X2E_XORAYA = 0xd6
318 DT_BLK = 0x6
319 DT_CHR = 0x2
320 DT_DIR = 0x4
321 DT_FIFO = 0x1
322 DT_LNK = 0xa
323 DT_REG = 0x8
324 DT_SOCK = 0xc
325 DT_UNKNOWN = 0x0
326 DT_WHT = 0xe
327 ECHO = 0x8
328 ECHOCTL = 0x40
329 ECHOE = 0x2
330 ECHOK = 0x4
331 ECHOKE = 0x1
332 ECHONL = 0x10
333 ECHOPRT = 0x20
334 EVFILT_AIO = -0x3
335 EVFILT_FS = -0x9
336 EVFILT_MACHPORT = -0x8
337 EVFILT_PROC = -0x5
338 EVFILT_READ = -0x1
339 EVFILT_SIGNAL = -0x6
340 EVFILT_SYSCOUNT = 0xe
341 EVFILT_THREADMARKER = 0xe
342 EVFILT_TIMER = -0x7
343 EVFILT_USER = -0xa
344 EVFILT_VM = -0xc
345 EVFILT_VNODE = -0x4
346 EVFILT_WRITE = -0x2
347 EV_ADD = 0x1
348 EV_CLEAR = 0x20
349 EV_DELETE = 0x2
350 EV_DISABLE = 0x8
351 EV_DISPATCH = 0x80
352 EV_ENABLE = 0x4
353 EV_EOF = 0x8000
354 EV_ERROR = 0x4000
355 EV_FLAG0 = 0x1000
356 EV_FLAG1 = 0x2000
357 EV_ONESHOT = 0x10
358 EV_OOBAND = 0x2000
359 EV_POLL = 0x1000
360 EV_RECEIPT = 0x40
361 EV_SYSFLAGS = 0xf000
362 EXTA = 0x4b00
363 EXTB = 0x9600
364 EXTPROC = 0x800
365 FD_CLOEXEC = 0x1
366 FD_SETSIZE = 0x400
367 FLUSHO = 0x800000
368 F_ADDFILESIGS = 0x3d
369 F_ADDSIGS = 0x3b
370 F_ALLOCATEALL = 0x4
371 F_ALLOCATECONTIG = 0x2
372 F_CHKCLEAN = 0x29
373 F_DUPFD = 0x0
374 F_DUPFD_CLOEXEC = 0x43
375 F_FINDSIGS = 0x4e
376 F_FLUSH_DATA = 0x28
377 F_FREEZE_FS = 0x35
378 F_FULLFSYNC = 0x33
379 F_GETCODEDIR = 0x48
380 F_GETFD = 0x1
381 F_GETFL = 0x3
382 F_GETLK = 0x7
383 F_GETLKPID = 0x42
384 F_GETNOSIGPIPE = 0x4a
385 F_GETOWN = 0x5
386 F_GETPATH = 0x32
387 F_GETPATH_MTMINFO = 0x47
388 F_GETPROTECTIONCLASS = 0x3f
389 F_GETPROTECTIONLEVEL = 0x4d
390 F_GLOBAL_NOCACHE = 0x37
391 F_LOG2PHYS = 0x31
392 F_LOG2PHYS_EXT = 0x41
393 F_NOCACHE = 0x30
394 F_NODIRECT = 0x3e
395 F_OK = 0x0
396 F_PATHPKG_CHECK = 0x34
397 F_PEOFPOSMODE = 0x3
398 F_PREALLOCATE = 0x2a
399 F_RDADVISE = 0x2c
400 F_RDAHEAD = 0x2d
401 F_RDLCK = 0x1
402 F_SETBACKINGSTORE = 0x46
403 F_SETFD = 0x2
404 F_SETFL = 0x4
405 F_SETLK = 0x8
406 F_SETLKW = 0x9
407 F_SETLKWTIMEOUT = 0xa
408 F_SETNOSIGPIPE = 0x49
409 F_SETOWN = 0x6
410 F_SETPROTECTIONCLASS = 0x40
411 F_SETSIZE = 0x2b
412 F_SINGLE_WRITER = 0x4c
413 F_THAW_FS = 0x36
414 F_TRANSCODEKEY = 0x4b
415 F_UNLCK = 0x2
416 F_VOLPOSMODE = 0x4
417 F_WRLCK = 0x3
418 HUPCL = 0x4000
419 ICANON = 0x100
420 ICMP6_FILTER = 0x12
421 ICRNL = 0x100
422 IEXTEN = 0x400
423 IFF_ALLMULTI = 0x200
424 IFF_ALTPHYS = 0x4000
425 IFF_BROADCAST = 0x2
426 IFF_DEBUG = 0x4
427 IFF_LINK0 = 0x1000
428 IFF_LINK1 = 0x2000
429 IFF_LINK2 = 0x4000
430 IFF_LOOPBACK = 0x8
431 IFF_MULTICAST = 0x8000
432 IFF_NOARP = 0x80
433 IFF_NOTRAILERS = 0x20
434 IFF_OACTIVE = 0x400
435 IFF_POINTOPOINT = 0x10
436 IFF_PROMISC = 0x100
437 IFF_RUNNING = 0x40
438 IFF_SIMPLEX = 0x800
439 IFF_UP = 0x1
440 IFNAMSIZ = 0x10
441 IFT_1822 = 0x2
442 IFT_AAL5 = 0x31
443 IFT_ARCNET = 0x23
444 IFT_ARCNETPLUS = 0x24
445 IFT_ATM = 0x25
446 IFT_BRIDGE = 0xd1
447 IFT_CARP = 0xf8
448 IFT_CELLULAR = 0xff
449 IFT_CEPT = 0x13
450 IFT_DS3 = 0x1e
451 IFT_ENC = 0xf4
452 IFT_EON = 0x19
453 IFT_ETHER = 0x6
454 IFT_FAITH = 0x38
455 IFT_FDDI = 0xf
456 IFT_FRELAY = 0x20
457 IFT_FRELAYDCE = 0x2c
458 IFT_GIF = 0x37
459 IFT_HDH1822 = 0x3
460 IFT_HIPPI = 0x2f
461 IFT_HSSI = 0x2e
462 IFT_HY = 0xe
463 IFT_IEEE1394 = 0x90
464 IFT_IEEE8023ADLAG = 0x88
465 IFT_ISDNBASIC = 0x14
466 IFT_ISDNPRIMARY = 0x15
467 IFT_ISO88022LLC = 0x29
468 IFT_ISO88023 = 0x7
469 IFT_ISO88024 = 0x8
470 IFT_ISO88025 = 0x9
471 IFT_ISO88026 = 0xa
472 IFT_L2VLAN = 0x87
473 IFT_LAPB = 0x10
474 IFT_LOCALTALK = 0x2a
475 IFT_LOOP = 0x18
476 IFT_MIOX25 = 0x26
477 IFT_MODEM = 0x30
478 IFT_NSIP = 0x1b
479 IFT_OTHER = 0x1
480 IFT_P10 = 0xc
481 IFT_P80 = 0xd
482 IFT_PARA = 0x22
483 IFT_PDP = 0xff
484 IFT_PFLOG = 0xf5
485 IFT_PFSYNC = 0xf6
486 IFT_PKTAP = 0xfe
487 IFT_PPP = 0x17
488 IFT_PROPMUX = 0x36
489 IFT_PROPVIRTUAL = 0x35
490 IFT_PTPSERIAL = 0x16
491 IFT_RS232 = 0x21
492 IFT_SDLC = 0x11
493 IFT_SIP = 0x1f
494 IFT_SLIP = 0x1c
495 IFT_SMDSDXI = 0x2b
496 IFT_SMDSICIP = 0x34
497 IFT_SONET = 0x27
498 IFT_SONETPATH = 0x32
499 IFT_SONETVT = 0x33
500 IFT_STARLAN = 0xb
501 IFT_STF = 0x39
502 IFT_T1 = 0x12
503 IFT_ULTRA = 0x1d
504 IFT_V35 = 0x2d
505 IFT_X25 = 0x5
506 IFT_X25DDN = 0x4
507 IFT_X25PLE = 0x28
508 IFT_XETHER = 0x1a
509 IGNBRK = 0x1
510 IGNCR = 0x80
511 IGNPAR = 0x4
512 IMAXBEL = 0x2000
513 INLCR = 0x40
514 INPCK = 0x10
515 IN_CLASSA_HOST = 0xffffff
516 IN_CLASSA_MAX = 0x80
517 IN_CLASSA_NET = 0xff000000
518 IN_CLASSA_NSHIFT = 0x18
519 IN_CLASSB_HOST = 0xffff
520 IN_CLASSB_MAX = 0x10000
521 IN_CLASSB_NET = 0xffff0000
522 IN_CLASSB_NSHIFT = 0x10
523 IN_CLASSC_HOST = 0xff
524 IN_CLASSC_NET = 0xffffff00
525 IN_CLASSC_NSHIFT = 0x8
526 IN_CLASSD_HOST = 0xfffffff
527 IN_CLASSD_NET = 0xf0000000
528 IN_CLASSD_NSHIFT = 0x1c
529 IN_LINKLOCALNETNUM = 0xa9fe0000
530 IN_LOOPBACKNET = 0x7f
531 IPPROTO_3PC = 0x22
532 IPPROTO_ADFS = 0x44
533 IPPROTO_AH = 0x33
534 IPPROTO_AHIP = 0x3d
535 IPPROTO_APES = 0x63
536 IPPROTO_ARGUS = 0xd
537 IPPROTO_AX25 = 0x5d
538 IPPROTO_BHA = 0x31
539 IPPROTO_BLT = 0x1e
540 IPPROTO_BRSATMON = 0x4c
541 IPPROTO_CFTP = 0x3e
542 IPPROTO_CHAOS = 0x10
543 IPPROTO_CMTP = 0x26
544 IPPROTO_CPHB = 0x49
545 IPPROTO_CPNX = 0x48
546 IPPROTO_DDP = 0x25
547 IPPROTO_DGP = 0x56
548 IPPROTO_DIVERT = 0xfe
549 IPPROTO_DONE = 0x101
550 IPPROTO_DSTOPTS = 0x3c
551 IPPROTO_EGP = 0x8
552 IPPROTO_EMCON = 0xe
553 IPPROTO_ENCAP = 0x62
554 IPPROTO_EON = 0x50
555 IPPROTO_ESP = 0x32
556 IPPROTO_ETHERIP = 0x61
557 IPPROTO_FRAGMENT = 0x2c
558 IPPROTO_GGP = 0x3
559 IPPROTO_GMTP = 0x64
560 IPPROTO_GRE = 0x2f
561 IPPROTO_HELLO = 0x3f
562 IPPROTO_HMP = 0x14
563 IPPROTO_HOPOPTS = 0x0
564 IPPROTO_ICMP = 0x1
565 IPPROTO_ICMPV6 = 0x3a
566 IPPROTO_IDP = 0x16
567 IPPROTO_IDPR = 0x23
568 IPPROTO_IDRP = 0x2d
569 IPPROTO_IGMP = 0x2
570 IPPROTO_IGP = 0x55
571 IPPROTO_IGRP = 0x58
572 IPPROTO_IL = 0x28
573 IPPROTO_INLSP = 0x34
574 IPPROTO_INP = 0x20
575 IPPROTO_IP = 0x0
576 IPPROTO_IPCOMP = 0x6c
577 IPPROTO_IPCV = 0x47
578 IPPROTO_IPEIP = 0x5e
579 IPPROTO_IPIP = 0x4
580 IPPROTO_IPPC = 0x43
581 IPPROTO_IPV4 = 0x4
582 IPPROTO_IPV6 = 0x29
583 IPPROTO_IRTP = 0x1c
584 IPPROTO_KRYPTOLAN = 0x41
585 IPPROTO_LARP = 0x5b
586 IPPROTO_LEAF1 = 0x19
587 IPPROTO_LEAF2 = 0x1a
588 IPPROTO_MAX = 0x100
589 IPPROTO_MAXID = 0x34
590 IPPROTO_MEAS = 0x13
591 IPPROTO_MHRP = 0x30
592 IPPROTO_MICP = 0x5f
593 IPPROTO_MTP = 0x5c
594 IPPROTO_MUX = 0x12
595 IPPROTO_ND = 0x4d
596 IPPROTO_NHRP = 0x36
597 IPPROTO_NONE = 0x3b
598 IPPROTO_NSP = 0x1f
599 IPPROTO_NVPII = 0xb
600 IPPROTO_OSPFIGP = 0x59
601 IPPROTO_PGM = 0x71
602 IPPROTO_PIGP = 0x9
603 IPPROTO_PIM = 0x67
604 IPPROTO_PRM = 0x15
605 IPPROTO_PUP = 0xc
606 IPPROTO_PVP = 0x4b
607 IPPROTO_RAW = 0xff
608 IPPROTO_RCCMON = 0xa
609 IPPROTO_RDP = 0x1b
610 IPPROTO_ROUTING = 0x2b
611 IPPROTO_RSVP = 0x2e
612 IPPROTO_RVD = 0x42
613 IPPROTO_SATEXPAK = 0x40
614 IPPROTO_SATMON = 0x45
615 IPPROTO_SCCSP = 0x60
616 IPPROTO_SCTP = 0x84
617 IPPROTO_SDRP = 0x2a
618 IPPROTO_SEP = 0x21
619 IPPROTO_SRPC = 0x5a
620 IPPROTO_ST = 0x7
621 IPPROTO_SVMTP = 0x52
622 IPPROTO_SWIPE = 0x35
623 IPPROTO_TCF = 0x57
624 IPPROTO_TCP = 0x6
625 IPPROTO_TP = 0x1d
626 IPPROTO_TPXX = 0x27
627 IPPROTO_TRUNK1 = 0x17
628 IPPROTO_TRUNK2 = 0x18
629 IPPROTO_TTP = 0x54
630 IPPROTO_UDP = 0x11
631 IPPROTO_VINES = 0x53
632 IPPROTO_VISA = 0x46
633 IPPROTO_VMTP = 0x51
634 IPPROTO_WBEXPAK = 0x4f
635 IPPROTO_WBMON = 0x4e
636 IPPROTO_WSN = 0x4a
637 IPPROTO_XNET = 0xf
638 IPPROTO_XTP = 0x24
639 IPV6_2292DSTOPTS = 0x17
640 IPV6_2292HOPLIMIT = 0x14
641 IPV6_2292HOPOPTS = 0x16
642 IPV6_2292NEXTHOP = 0x15
643 IPV6_2292PKTINFO = 0x13
644 IPV6_2292PKTOPTIONS = 0x19
645 IPV6_2292RTHDR = 0x18
646 IPV6_BINDV6ONLY = 0x1b
647 IPV6_BOUND_IF = 0x7d
648 IPV6_CHECKSUM = 0x1a
649 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
650 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
651 IPV6_DEFHLIM = 0x40
652 IPV6_FAITH = 0x1d
653 IPV6_FLOWINFO_MASK = 0xffffff0f
654 IPV6_FLOWLABEL_MASK = 0xffff0f00
655 IPV6_FRAGTTL = 0x3c
656 IPV6_FW_ADD = 0x1e
657 IPV6_FW_DEL = 0x1f
658 IPV6_FW_FLUSH = 0x20
659 IPV6_FW_GET = 0x22
660 IPV6_FW_ZERO = 0x21
661 IPV6_HLIMDEC = 0x1
662 IPV6_IPSEC_POLICY = 0x1c
663 IPV6_JOIN_GROUP = 0xc
664 IPV6_LEAVE_GROUP = 0xd
665 IPV6_MAXHLIM = 0xff
666 IPV6_MAXOPTHDR = 0x800
667 IPV6_MAXPACKET = 0xffff
668 IPV6_MAX_GROUP_SRC_FILTER = 0x200
669 IPV6_MAX_MEMBERSHIPS = 0xfff
670 IPV6_MAX_SOCK_SRC_FILTER = 0x80
671 IPV6_MIN_MEMBERSHIPS = 0x1f
672 IPV6_MMTU = 0x500
673 IPV6_MULTICAST_HOPS = 0xa
674 IPV6_MULTICAST_IF = 0x9
675 IPV6_MULTICAST_LOOP = 0xb
676 IPV6_PORTRANGE = 0xe
677 IPV6_PORTRANGE_DEFAULT = 0x0
678 IPV6_PORTRANGE_HIGH = 0x1
679 IPV6_PORTRANGE_LOW = 0x2
680 IPV6_RECVTCLASS = 0x23
681 IPV6_RTHDR_LOOSE = 0x0
682 IPV6_RTHDR_STRICT = 0x1
683 IPV6_RTHDR_TYPE_0 = 0x0
684 IPV6_SOCKOPT_RESERVED1 = 0x3
685 IPV6_TCLASS = 0x24
686 IPV6_UNICAST_HOPS = 0x4
687 IPV6_V6ONLY = 0x1b
688 IPV6_VERSION = 0x60
689 IPV6_VERSION_MASK = 0xf0
690 IP_ADD_MEMBERSHIP = 0xc
691 IP_ADD_SOURCE_MEMBERSHIP = 0x46
692 IP_BLOCK_SOURCE = 0x48
693 IP_BOUND_IF = 0x19
694 IP_DEFAULT_MULTICAST_LOOP = 0x1
695 IP_DEFAULT_MULTICAST_TTL = 0x1
696 IP_DF = 0x4000
697 IP_DROP_MEMBERSHIP = 0xd
698 IP_DROP_SOURCE_MEMBERSHIP = 0x47
699 IP_DUMMYNET_CONFIGURE = 0x3c
700 IP_DUMMYNET_DEL = 0x3d
701 IP_DUMMYNET_FLUSH = 0x3e
702 IP_DUMMYNET_GET = 0x40
703 IP_FAITH = 0x16
704 IP_FW_ADD = 0x28
705 IP_FW_DEL = 0x29
706 IP_FW_FLUSH = 0x2a
707 IP_FW_GET = 0x2c
708 IP_FW_RESETLOG = 0x2d
709 IP_FW_ZERO = 0x2b
710 IP_HDRINCL = 0x2
711 IP_IPSEC_POLICY = 0x15
712 IP_MAXPACKET = 0xffff
713 IP_MAX_GROUP_SRC_FILTER = 0x200
714 IP_MAX_MEMBERSHIPS = 0xfff
715 IP_MAX_SOCK_MUTE_FILTER = 0x80
716 IP_MAX_SOCK_SRC_FILTER = 0x80
717 IP_MF = 0x2000
718 IP_MIN_MEMBERSHIPS = 0x1f
719 IP_MSFILTER = 0x4a
720 IP_MSS = 0x240
721 IP_MULTICAST_IF = 0x9
722 IP_MULTICAST_IFINDEX = 0x42
723 IP_MULTICAST_LOOP = 0xb
724 IP_MULTICAST_TTL = 0xa
725 IP_MULTICAST_VIF = 0xe
726 IP_NAT__XXX = 0x37
727 IP_OFFMASK = 0x1fff
728 IP_OLD_FW_ADD = 0x32
729 IP_OLD_FW_DEL = 0x33
730 IP_OLD_FW_FLUSH = 0x34
731 IP_OLD_FW_GET = 0x36
732 IP_OLD_FW_RESETLOG = 0x38
733 IP_OLD_FW_ZERO = 0x35
734 IP_OPTIONS = 0x1
735 IP_PKTINFO = 0x1a
736 IP_PORTRANGE = 0x13
737 IP_PORTRANGE_DEFAULT = 0x0
738 IP_PORTRANGE_HIGH = 0x1
739 IP_PORTRANGE_LOW = 0x2
740 IP_RECVDSTADDR = 0x7
741 IP_RECVIF = 0x14
742 IP_RECVOPTS = 0x5
743 IP_RECVPKTINFO = 0x1a
744 IP_RECVRETOPTS = 0x6
745 IP_RECVTTL = 0x18
746 IP_RETOPTS = 0x8
747 IP_RF = 0x8000
748 IP_RSVP_OFF = 0x10
749 IP_RSVP_ON = 0xf
750 IP_RSVP_VIF_OFF = 0x12
751 IP_RSVP_VIF_ON = 0x11
752 IP_STRIPHDR = 0x17
753 IP_TOS = 0x3
754 IP_TRAFFIC_MGT_BACKGROUND = 0x41
755 IP_TTL = 0x4
756 IP_UNBLOCK_SOURCE = 0x49
757 ISIG = 0x80
758 ISTRIP = 0x20
759 IUTF8 = 0x4000
760 IXANY = 0x800
761 IXOFF = 0x400
762 IXON = 0x200
763 LOCK_EX = 0x2
764 LOCK_NB = 0x4
765 LOCK_SH = 0x1
766 LOCK_UN = 0x8
767 MADV_CAN_REUSE = 0x9
768 MADV_DONTNEED = 0x4
769 MADV_FREE = 0x5
770 MADV_FREE_REUSABLE = 0x7
771 MADV_FREE_REUSE = 0x8
772 MADV_NORMAL = 0x0
773 MADV_RANDOM = 0x1
774 MADV_SEQUENTIAL = 0x2
775 MADV_WILLNEED = 0x3
776 MADV_ZERO_WIRED_PAGES = 0x6
777 MAP_ANON = 0x1000
778 MAP_COPY = 0x2
779 MAP_FILE = 0x0
780 MAP_FIXED = 0x10
781 MAP_HASSEMAPHORE = 0x200
782 MAP_JIT = 0x800
783 MAP_NOCACHE = 0x400
784 MAP_NOEXTEND = 0x100
785 MAP_NORESERVE = 0x40
786 MAP_PRIVATE = 0x2
787 MAP_RENAME = 0x20
788 MAP_RESERVED0080 = 0x80
789 MAP_SHARED = 0x1
790 MCL_CURRENT = 0x1
791 MCL_FUTURE = 0x2
792 MSG_CTRUNC = 0x20
793 MSG_DONTROUTE = 0x4
794 MSG_DONTWAIT = 0x80
795 MSG_EOF = 0x100
796 MSG_EOR = 0x8
797 MSG_FLUSH = 0x400
798 MSG_HAVEMORE = 0x2000
799 MSG_HOLD = 0x800
800 MSG_NEEDSA = 0x10000
801 MSG_OOB = 0x1
802 MSG_PEEK = 0x2
803 MSG_RCVMORE = 0x4000
804 MSG_SEND = 0x1000
805 MSG_TRUNC = 0x10
806 MSG_WAITALL = 0x40
807 MSG_WAITSTREAM = 0x200
808 MS_ASYNC = 0x1
809 MS_DEACTIVATE = 0x8
810 MS_INVALIDATE = 0x2
811 MS_KILLPAGES = 0x4
812 MS_SYNC = 0x10
813 NAME_MAX = 0xff
814 NET_RT_DUMP = 0x1
815 NET_RT_DUMP2 = 0x7
816 NET_RT_FLAGS = 0x2
817 NET_RT_IFLIST = 0x3
818 NET_RT_IFLIST2 = 0x6
819 NET_RT_MAXID = 0xa
820 NET_RT_STAT = 0x4
821 NET_RT_TRASH = 0x5
822 NOFLSH = 0x80000000
823 NOTE_ABSOLUTE = 0x8
824 NOTE_ATTRIB = 0x8
825 NOTE_BACKGROUND = 0x40
826 NOTE_CHILD = 0x4
827 NOTE_CRITICAL = 0x20
828 NOTE_DELETE = 0x1
829 NOTE_EXEC = 0x20000000
830 NOTE_EXIT = 0x80000000
831 NOTE_EXITSTATUS = 0x4000000
832 NOTE_EXIT_CSERROR = 0x40000
833 NOTE_EXIT_DECRYPTFAIL = 0x10000
834 NOTE_EXIT_DETAIL = 0x2000000
835 NOTE_EXIT_DETAIL_MASK = 0x70000
836 NOTE_EXIT_MEMORY = 0x20000
837 NOTE_EXIT_REPARENTED = 0x80000
838 NOTE_EXTEND = 0x4
839 NOTE_FFAND = 0x40000000
840 NOTE_FFCOPY = 0xc0000000
841 NOTE_FFCTRLMASK = 0xc0000000
842 NOTE_FFLAGSMASK = 0xffffff
843 NOTE_FFNOP = 0x0
844 NOTE_FFOR = 0x80000000
845 NOTE_FORK = 0x40000000
846 NOTE_LEEWAY = 0x10
847 NOTE_LINK = 0x10
848 NOTE_LOWAT = 0x1
849 NOTE_NONE = 0x80
850 NOTE_NSECONDS = 0x4
851 NOTE_PCTRLMASK = -0x100000
852 NOTE_PDATAMASK = 0xfffff
853 NOTE_REAP = 0x10000000
854 NOTE_RENAME = 0x20
855 NOTE_REVOKE = 0x40
856 NOTE_SECONDS = 0x1
857 NOTE_SIGNAL = 0x8000000
858 NOTE_TRACK = 0x1
859 NOTE_TRACKERR = 0x2
860 NOTE_TRIGGER = 0x1000000
861 NOTE_USECONDS = 0x2
862 NOTE_VM_ERROR = 0x10000000
863 NOTE_VM_PRESSURE = 0x80000000
864 NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000
865 NOTE_VM_PRESSURE_TERMINATE = 0x40000000
866 NOTE_WRITE = 0x2
867 OCRNL = 0x10
868 OFDEL = 0x20000
869 OFILL = 0x80
870 ONLCR = 0x2
871 ONLRET = 0x40
872 ONOCR = 0x20
873 ONOEOT = 0x8
874 OPOST = 0x1
875 O_ACCMODE = 0x3
876 O_ALERT = 0x20000000
877 O_APPEND = 0x8
878 O_ASYNC = 0x40
879 O_CLOEXEC = 0x1000000
880 O_CREAT = 0x200
881 O_DIRECTORY = 0x100000
882 O_DP_GETRAWENCRYPTED = 0x1
883 O_DSYNC = 0x400000
884 O_EVTONLY = 0x8000
885 O_EXCL = 0x800
886 O_EXLOCK = 0x20
887 O_FSYNC = 0x80
888 O_NDELAY = 0x4
889 O_NOCTTY = 0x20000
890 O_NOFOLLOW = 0x100
891 O_NONBLOCK = 0x4
892 O_POPUP = 0x80000000
893 O_RDONLY = 0x0
894 O_RDWR = 0x2
895 O_SHLOCK = 0x10
896 O_SYMLINK = 0x200000
897 O_SYNC = 0x80
898 O_TRUNC = 0x400
899 O_WRONLY = 0x1
900 PARENB = 0x1000
901 PARMRK = 0x8
902 PARODD = 0x2000
903 PENDIN = 0x20000000
904 PRIO_PGRP = 0x1
905 PRIO_PROCESS = 0x0
906 PRIO_USER = 0x2
907 PROT_EXEC = 0x4
908 PROT_NONE = 0x0
909 PROT_READ = 0x1
910 PROT_WRITE = 0x2
911 PT_ATTACH = 0xa
912 PT_ATTACHEXC = 0xe
913 PT_CONTINUE = 0x7
914 PT_DENY_ATTACH = 0x1f
915 PT_DETACH = 0xb
916 PT_FIRSTMACH = 0x20
917 PT_FORCEQUOTA = 0x1e
918 PT_KILL = 0x8
919 PT_READ_D = 0x2
920 PT_READ_I = 0x1
921 PT_READ_U = 0x3
922 PT_SIGEXC = 0xc
923 PT_STEP = 0x9
924 PT_THUPDATE = 0xd
925 PT_TRACE_ME = 0x0
926 PT_WRITE_D = 0x5
927 PT_WRITE_I = 0x4
928 PT_WRITE_U = 0x6
929 RLIMIT_AS = 0x5
930 RLIMIT_CORE = 0x4
931 RLIMIT_CPU = 0x0
932 RLIMIT_CPU_USAGE_MONITOR = 0x2
933 RLIMIT_DATA = 0x2
934 RLIMIT_FSIZE = 0x1
935 RLIMIT_NOFILE = 0x8
936 RLIMIT_STACK = 0x3
937 RLIM_INFINITY = 0x7fffffffffffffff
938 RTAX_AUTHOR = 0x6
939 RTAX_BRD = 0x7
940 RTAX_DST = 0x0
941 RTAX_GATEWAY = 0x1
942 RTAX_GENMASK = 0x3
943 RTAX_IFA = 0x5
944 RTAX_IFP = 0x4
945 RTAX_MAX = 0x8
946 RTAX_NETMASK = 0x2
947 RTA_AUTHOR = 0x40
948 RTA_BRD = 0x80
949 RTA_DST = 0x1
950 RTA_GATEWAY = 0x2
951 RTA_GENMASK = 0x8
952 RTA_IFA = 0x20
953 RTA_IFP = 0x10
954 RTA_NETMASK = 0x4
955 RTF_BLACKHOLE = 0x1000
956 RTF_BROADCAST = 0x400000
957 RTF_CLONING = 0x100
958 RTF_CONDEMNED = 0x2000000
959 RTF_DELCLONE = 0x80
960 RTF_DONE = 0x40
961 RTF_DYNAMIC = 0x10
962 RTF_GATEWAY = 0x2
963 RTF_HOST = 0x4
964 RTF_IFREF = 0x4000000
965 RTF_IFSCOPE = 0x1000000
966 RTF_LLINFO = 0x400
967 RTF_LOCAL = 0x200000
968 RTF_MODIFIED = 0x20
969 RTF_MULTICAST = 0x800000
970 RTF_NOIFREF = 0x2000
971 RTF_PINNED = 0x100000
972 RTF_PRCLONING = 0x10000
973 RTF_PROTO1 = 0x8000
974 RTF_PROTO2 = 0x4000
975 RTF_PROTO3 = 0x40000
976 RTF_PROXY = 0x8000000
977 RTF_REJECT = 0x8
978 RTF_ROUTER = 0x10000000
979 RTF_STATIC = 0x800
980 RTF_UP = 0x1
981 RTF_WASCLONED = 0x20000
982 RTF_XRESOLVE = 0x200
983 RTM_ADD = 0x1
984 RTM_CHANGE = 0x3
985 RTM_DELADDR = 0xd
986 RTM_DELETE = 0x2
987 RTM_DELMADDR = 0x10
988 RTM_GET = 0x4
989 RTM_GET2 = 0x14
990 RTM_IFINFO = 0xe
991 RTM_IFINFO2 = 0x12
992 RTM_LOCK = 0x8
993 RTM_LOSING = 0x5
994 RTM_MISS = 0x7
995 RTM_NEWADDR = 0xc
996 RTM_NEWMADDR = 0xf
997 RTM_NEWMADDR2 = 0x13
998 RTM_OLDADD = 0x9
999 RTM_OLDDEL = 0xa
1000 RTM_REDIRECT = 0x6
1001 RTM_RESOLVE = 0xb
1002 RTM_RTTUNIT = 0xf4240
1003 RTM_VERSION = 0x5
1004 RTV_EXPIRE = 0x4
1005 RTV_HOPCOUNT = 0x2
1006 RTV_MTU = 0x1
1007 RTV_RPIPE = 0x8
1008 RTV_RTT = 0x40
1009 RTV_RTTVAR = 0x80
1010 RTV_SPIPE = 0x10
1011 RTV_SSTHRESH = 0x20
1012 RUSAGE_CHILDREN = -0x1
1013 RUSAGE_SELF = 0x0
1014 SCM_CREDS = 0x3
1015 SCM_RIGHTS = 0x1
1016 SCM_TIMESTAMP = 0x2
1017 SCM_TIMESTAMP_MONOTONIC = 0x4
1018 SHUT_RD = 0x0
1019 SHUT_RDWR = 0x2
1020 SHUT_WR = 0x1
1021 SIOCADDMULTI = 0x80206931
1022 SIOCAIFADDR = 0x8040691a
1023 SIOCARPIPLL = 0xc0206928
1024 SIOCATMARK = 0x40047307
1025 SIOCAUTOADDR = 0xc0206926
1026 SIOCAUTONETMASK = 0x80206927
1027 SIOCDELMULTI = 0x80206932
1028 SIOCDIFADDR = 0x80206919
1029 SIOCDIFPHYADDR = 0x80206941
1030 SIOCGDRVSPEC = 0xc028697b
1031 SIOCGETVLAN = 0xc020697f
1032 SIOCGHIWAT = 0x40047301
1033 SIOCGIFADDR = 0xc0206921
1034 SIOCGIFALTMTU = 0xc0206948
1035 SIOCGIFASYNCMAP = 0xc020697c
1036 SIOCGIFBOND = 0xc0206947
1037 SIOCGIFBRDADDR = 0xc0206923
1038 SIOCGIFCAP = 0xc020695b
1039 SIOCGIFCONF = 0xc00c6924
1040 SIOCGIFDEVMTU = 0xc0206944
1041 SIOCGIFDSTADDR = 0xc0206922
1042 SIOCGIFFLAGS = 0xc0206911
1043 SIOCGIFGENERIC = 0xc020693a
1044 SIOCGIFKPI = 0xc0206987
1045 SIOCGIFMAC = 0xc0206982
1046 SIOCGIFMEDIA = 0xc02c6938
1047 SIOCGIFMETRIC = 0xc0206917
1048 SIOCGIFMTU = 0xc0206933
1049 SIOCGIFNETMASK = 0xc0206925
1050 SIOCGIFPDSTADDR = 0xc0206940
1051 SIOCGIFPHYS = 0xc0206935
1052 SIOCGIFPSRCADDR = 0xc020693f
1053 SIOCGIFSTATUS = 0xc331693d
1054 SIOCGIFVLAN = 0xc020697f
1055 SIOCGIFWAKEFLAGS = 0xc0206988
1056 SIOCGLOWAT = 0x40047303
1057 SIOCGPGRP = 0x40047309
1058 SIOCIFCREATE = 0xc0206978
1059 SIOCIFCREATE2 = 0xc020697a
1060 SIOCIFDESTROY = 0x80206979
1061 SIOCIFGCLONERS = 0xc0106981
1062 SIOCRSLVMULTI = 0xc010693b
1063 SIOCSDRVSPEC = 0x8028697b
1064 SIOCSETVLAN = 0x8020697e
1065 SIOCSHIWAT = 0x80047300
1066 SIOCSIFADDR = 0x8020690c
1067 SIOCSIFALTMTU = 0x80206945
1068 SIOCSIFASYNCMAP = 0x8020697d
1069 SIOCSIFBOND = 0x80206946
1070 SIOCSIFBRDADDR = 0x80206913
1071 SIOCSIFCAP = 0x8020695a
1072 SIOCSIFDSTADDR = 0x8020690e
1073 SIOCSIFFLAGS = 0x80206910
1074 SIOCSIFGENERIC = 0x80206939
1075 SIOCSIFKPI = 0x80206986
1076 SIOCSIFLLADDR = 0x8020693c
1077 SIOCSIFMAC = 0x80206983
1078 SIOCSIFMEDIA = 0xc0206937
1079 SIOCSIFMETRIC = 0x80206918
1080 SIOCSIFMTU = 0x80206934
1081 SIOCSIFNETMASK = 0x80206916
1082 SIOCSIFPHYADDR = 0x8040693e
1083 SIOCSIFPHYS = 0x80206936
1084 SIOCSIFVLAN = 0x8020697e
1085 SIOCSLOWAT = 0x80047302
1086 SIOCSPGRP = 0x80047308
1087 SOCK_DGRAM = 0x2
1088 SOCK_MAXADDRLEN = 0xff
1089 SOCK_RAW = 0x3
1090 SOCK_RDM = 0x4
1091 SOCK_SEQPACKET = 0x5
1092 SOCK_STREAM = 0x1
1093 SOL_SOCKET = 0xffff
1094 SOMAXCONN = 0x80
1095 SO_ACCEPTCONN = 0x2
1096 SO_BROADCAST = 0x20
1097 SO_DEBUG = 0x1
1098 SO_DONTROUTE = 0x10
1099 SO_DONTTRUNC = 0x2000
1100 SO_ERROR = 0x1007
1101 SO_KEEPALIVE = 0x8
1102 SO_LABEL = 0x1010
1103 SO_LINGER = 0x80
1104 SO_LINGER_SEC = 0x1080
1105 SO_NKE = 0x1021
1106 SO_NOADDRERR = 0x1023
1107 SO_NOSIGPIPE = 0x1022
1108 SO_NOTIFYCONFLICT = 0x1026
1109 SO_NP_EXTENSIONS = 0x1083
1110 SO_NREAD = 0x1020
1111 SO_NUMRCVPKT = 0x1112
1112 SO_NWRITE = 0x1024
1113 SO_OOBINLINE = 0x100
1114 SO_PEERLABEL = 0x1011
1115 SO_RANDOMPORT = 0x1082
1116 SO_RCVBUF = 0x1002
1117 SO_RCVLOWAT = 0x1004
1118 SO_RCVTIMEO = 0x1006
1119 SO_REUSEADDR = 0x4
1120 SO_REUSEPORT = 0x200
1121 SO_REUSESHAREUID = 0x1025
1122 SO_SNDBUF = 0x1001
1123 SO_SNDLOWAT = 0x1003
1124 SO_SNDTIMEO = 0x1005
1125 SO_TIMESTAMP = 0x400
1126 SO_TIMESTAMP_MONOTONIC = 0x800
1127 SO_TYPE = 0x1008
1128 SO_UPCALLCLOSEWAIT = 0x1027
1129 SO_USELOOPBACK = 0x40
1130 SO_WANTMORE = 0x4000
1131 SO_WANTOOBFLAG = 0x8000
1132 S_IEXEC = 0x40
1133 S_IFBLK = 0x6000
1134 S_IFCHR = 0x2000
1135 S_IFDIR = 0x4000
1136 S_IFIFO = 0x1000
1137 S_IFLNK = 0xa000
1138 S_IFMT = 0xf000
1139 S_IFREG = 0x8000
1140 S_IFSOCK = 0xc000
1141 S_IFWHT = 0xe000
1142 S_IREAD = 0x100
1143 S_IRGRP = 0x20
1144 S_IROTH = 0x4
1145 S_IRUSR = 0x100
1146 S_IRWXG = 0x38
1147 S_IRWXO = 0x7
1148 S_IRWXU = 0x1c0
1149 S_ISGID = 0x400
1150 S_ISTXT = 0x200
1151 S_ISUID = 0x800
1152 S_ISVTX = 0x200
1153 S_IWGRP = 0x10
1154 S_IWOTH = 0x2
1155 S_IWRITE = 0x80
1156 S_IWUSR = 0x80
1157 S_IXGRP = 0x8
1158 S_IXOTH = 0x1
1159 S_IXUSR = 0x40
1160 TCIFLUSH = 0x1
1161 TCIOFLUSH = 0x3
1162 TCOFLUSH = 0x2
1163 TCP_CONNECTIONTIMEOUT = 0x20
1164 TCP_ENABLE_ECN = 0x104
1165 TCP_KEEPALIVE = 0x10
1166 TCP_KEEPCNT = 0x102
1167 TCP_KEEPINTVL = 0x101
1168 TCP_MAXHLEN = 0x3c
1169 TCP_MAXOLEN = 0x28
1170 TCP_MAXSEG = 0x2
1171 TCP_MAXWIN = 0xffff
1172 TCP_MAX_SACK = 0x4
1173 TCP_MAX_WINSHIFT = 0xe
1174 TCP_MINMSS = 0xd8
1175 TCP_MSS = 0x200
1176 TCP_NODELAY = 0x1
1177 TCP_NOOPT = 0x8
1178 TCP_NOPUSH = 0x4
1179 TCP_NOTSENT_LOWAT = 0x201
1180 TCP_RXT_CONNDROPTIME = 0x80
1181 TCP_RXT_FINDROP = 0x100
1182 TCP_SENDMOREACKS = 0x103
1183 TCSAFLUSH = 0x2
1184 TIOCCBRK = 0x2000747a
1185 TIOCCDTR = 0x20007478
1186 TIOCCONS = 0x80047462
1187 TIOCDCDTIMESTAMP = 0x40107458
1188 TIOCDRAIN = 0x2000745e
1189 TIOCDSIMICROCODE = 0x20007455
1190 TIOCEXCL = 0x2000740d
1191 TIOCEXT = 0x80047460
1192 TIOCFLUSH = 0x80047410
1193 TIOCGDRAINWAIT = 0x40047456
1194 TIOCGETA = 0x40487413
1195 TIOCGETD = 0x4004741a
1196 TIOCGPGRP = 0x40047477
1197 TIOCGWINSZ = 0x40087468
1198 TIOCIXOFF = 0x20007480
1199 TIOCIXON = 0x20007481
1200 TIOCMBIC = 0x8004746b
1201 TIOCMBIS = 0x8004746c
1202 TIOCMGDTRWAIT = 0x4004745a
1203 TIOCMGET = 0x4004746a
1204 TIOCMODG = 0x40047403
1205 TIOCMODS = 0x80047404
1206 TIOCMSDTRWAIT = 0x8004745b
1207 TIOCMSET = 0x8004746d
1208 TIOCM_CAR = 0x40
1209 TIOCM_CD = 0x40
1210 TIOCM_CTS = 0x20
1211 TIOCM_DSR = 0x100
1212 TIOCM_DTR = 0x2
1213 TIOCM_LE = 0x1
1214 TIOCM_RI = 0x80
1215 TIOCM_RNG = 0x80
1216 TIOCM_RTS = 0x4
1217 TIOCM_SR = 0x10
1218 TIOCM_ST = 0x8
1219 TIOCNOTTY = 0x20007471
1220 TIOCNXCL = 0x2000740e
1221 TIOCOUTQ = 0x40047473
1222 TIOCPKT = 0x80047470
1223 TIOCPKT_DATA = 0x0
1224 TIOCPKT_DOSTOP = 0x20
1225 TIOCPKT_FLUSHREAD = 0x1
1226 TIOCPKT_FLUSHWRITE = 0x2
1227 TIOCPKT_IOCTL = 0x40
1228 TIOCPKT_NOSTOP = 0x10
1229 TIOCPKT_START = 0x8
1230 TIOCPKT_STOP = 0x4
1231 TIOCPTYGNAME = 0x40807453
1232 TIOCPTYGRANT = 0x20007454
1233 TIOCPTYUNLK = 0x20007452
1234 TIOCREMOTE = 0x80047469
1235 TIOCSBRK = 0x2000747b
1236 TIOCSCONS = 0x20007463
1237 TIOCSCTTY = 0x20007461
1238 TIOCSDRAINWAIT = 0x80047457
1239 TIOCSDTR = 0x20007479
1240 TIOCSETA = 0x80487414
1241 TIOCSETAF = 0x80487416
1242 TIOCSETAW = 0x80487415
1243 TIOCSETD = 0x8004741b
1244 TIOCSIG = 0x2000745f
1245 TIOCSPGRP = 0x80047476
1246 TIOCSTART = 0x2000746e
1247 TIOCSTAT = 0x20007465
1248 TIOCSTI = 0x80017472
1249 TIOCSTOP = 0x2000746f
1250 TIOCSWINSZ = 0x80087467
1251 TIOCTIMESTAMP = 0x40107459
1252 TIOCUCNTL = 0x80047466
1253 TOSTOP = 0x400000
1254 VDISCARD = 0xf
1255 VDSUSP = 0xb
1256 VEOF = 0x0
1257 VEOL = 0x1
1258 VEOL2 = 0x2
1259 VERASE = 0x3
1260 VINTR = 0x8
1261 VKILL = 0x5
1262 VLNEXT = 0xe
1263 VMIN = 0x10
1264 VQUIT = 0x9
1265 VREPRINT = 0x6
1266 VSTART = 0xc
1267 VSTATUS = 0x12
1268 VSTOP = 0xd
1269 VSUSP = 0xa
1270 VT0 = 0x0
1271 VT1 = 0x10000
1272 VTDLY = 0x10000
1273 VTIME = 0x11
1274 VWERASE = 0x4
1275 WCONTINUED = 0x10
1276 WCOREFLAG = 0x80
1277 WEXITED = 0x4
1278 WNOHANG = 0x1
1279 WNOWAIT = 0x20
1280 WORDSIZE = 0x40
1281 WSTOPPED = 0x8
1282 WUNTRACED = 0x2
1283)
1284
1285// Errors
1286const (
1287 E2BIG = syscall.Errno(0x7)
1288 EACCES = syscall.Errno(0xd)
1289 EADDRINUSE = syscall.Errno(0x30)
1290 EADDRNOTAVAIL = syscall.Errno(0x31)
1291 EAFNOSUPPORT = syscall.Errno(0x2f)
1292 EAGAIN = syscall.Errno(0x23)
1293 EALREADY = syscall.Errno(0x25)
1294 EAUTH = syscall.Errno(0x50)
1295 EBADARCH = syscall.Errno(0x56)
1296 EBADEXEC = syscall.Errno(0x55)
1297 EBADF = syscall.Errno(0x9)
1298 EBADMACHO = syscall.Errno(0x58)
1299 EBADMSG = syscall.Errno(0x5e)
1300 EBADRPC = syscall.Errno(0x48)
1301 EBUSY = syscall.Errno(0x10)
1302 ECANCELED = syscall.Errno(0x59)
1303 ECHILD = syscall.Errno(0xa)
1304 ECONNABORTED = syscall.Errno(0x35)
1305 ECONNREFUSED = syscall.Errno(0x3d)
1306 ECONNRESET = syscall.Errno(0x36)
1307 EDEADLK = syscall.Errno(0xb)
1308 EDESTADDRREQ = syscall.Errno(0x27)
1309 EDEVERR = syscall.Errno(0x53)
1310 EDOM = syscall.Errno(0x21)
1311 EDQUOT = syscall.Errno(0x45)
1312 EEXIST = syscall.Errno(0x11)
1313 EFAULT = syscall.Errno(0xe)
1314 EFBIG = syscall.Errno(0x1b)
1315 EFTYPE = syscall.Errno(0x4f)
1316 EHOSTDOWN = syscall.Errno(0x40)
1317 EHOSTUNREACH = syscall.Errno(0x41)
1318 EIDRM = syscall.Errno(0x5a)
1319 EILSEQ = syscall.Errno(0x5c)
1320 EINPROGRESS = syscall.Errno(0x24)
1321 EINTR = syscall.Errno(0x4)
1322 EINVAL = syscall.Errno(0x16)
1323 EIO = syscall.Errno(0x5)
1324 EISCONN = syscall.Errno(0x38)
1325 EISDIR = syscall.Errno(0x15)
1326 ELAST = syscall.Errno(0x6a)
1327 ELOOP = syscall.Errno(0x3e)
1328 EMFILE = syscall.Errno(0x18)
1329 EMLINK = syscall.Errno(0x1f)
1330 EMSGSIZE = syscall.Errno(0x28)
1331 EMULTIHOP = syscall.Errno(0x5f)
1332 ENAMETOOLONG = syscall.Errno(0x3f)
1333 ENEEDAUTH = syscall.Errno(0x51)
1334 ENETDOWN = syscall.Errno(0x32)
1335 ENETRESET = syscall.Errno(0x34)
1336 ENETUNREACH = syscall.Errno(0x33)
1337 ENFILE = syscall.Errno(0x17)
1338 ENOATTR = syscall.Errno(0x5d)
1339 ENOBUFS = syscall.Errno(0x37)
1340 ENODATA = syscall.Errno(0x60)
1341 ENODEV = syscall.Errno(0x13)
1342 ENOENT = syscall.Errno(0x2)
1343 ENOEXEC = syscall.Errno(0x8)
1344 ENOLCK = syscall.Errno(0x4d)
1345 ENOLINK = syscall.Errno(0x61)
1346 ENOMEM = syscall.Errno(0xc)
1347 ENOMSG = syscall.Errno(0x5b)
1348 ENOPOLICY = syscall.Errno(0x67)
1349 ENOPROTOOPT = syscall.Errno(0x2a)
1350 ENOSPC = syscall.Errno(0x1c)
1351 ENOSR = syscall.Errno(0x62)
1352 ENOSTR = syscall.Errno(0x63)
1353 ENOSYS = syscall.Errno(0x4e)
1354 ENOTBLK = syscall.Errno(0xf)
1355 ENOTCONN = syscall.Errno(0x39)
1356 ENOTDIR = syscall.Errno(0x14)
1357 ENOTEMPTY = syscall.Errno(0x42)
1358 ENOTRECOVERABLE = syscall.Errno(0x68)
1359 ENOTSOCK = syscall.Errno(0x26)
1360 ENOTSUP = syscall.Errno(0x2d)
1361 ENOTTY = syscall.Errno(0x19)
1362 ENXIO = syscall.Errno(0x6)
1363 EOPNOTSUPP = syscall.Errno(0x66)
1364 EOVERFLOW = syscall.Errno(0x54)
1365 EOWNERDEAD = syscall.Errno(0x69)
1366 EPERM = syscall.Errno(0x1)
1367 EPFNOSUPPORT = syscall.Errno(0x2e)
1368 EPIPE = syscall.Errno(0x20)
1369 EPROCLIM = syscall.Errno(0x43)
1370 EPROCUNAVAIL = syscall.Errno(0x4c)
1371 EPROGMISMATCH = syscall.Errno(0x4b)
1372 EPROGUNAVAIL = syscall.Errno(0x4a)
1373 EPROTO = syscall.Errno(0x64)
1374 EPROTONOSUPPORT = syscall.Errno(0x2b)
1375 EPROTOTYPE = syscall.Errno(0x29)
1376 EPWROFF = syscall.Errno(0x52)
1377 EQFULL = syscall.Errno(0x6a)
1378 ERANGE = syscall.Errno(0x22)
1379 EREMOTE = syscall.Errno(0x47)
1380 EROFS = syscall.Errno(0x1e)
1381 ERPCMISMATCH = syscall.Errno(0x49)
1382 ESHLIBVERS = syscall.Errno(0x57)
1383 ESHUTDOWN = syscall.Errno(0x3a)
1384 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1385 ESPIPE = syscall.Errno(0x1d)
1386 ESRCH = syscall.Errno(0x3)
1387 ESTALE = syscall.Errno(0x46)
1388 ETIME = syscall.Errno(0x65)
1389 ETIMEDOUT = syscall.Errno(0x3c)
1390 ETOOMANYREFS = syscall.Errno(0x3b)
1391 ETXTBSY = syscall.Errno(0x1a)
1392 EUSERS = syscall.Errno(0x44)
1393 EWOULDBLOCK = syscall.Errno(0x23)
1394 EXDEV = syscall.Errno(0x12)
1395)
1396
1397// Signals
1398const (
1399 SIGABRT = syscall.Signal(0x6)
1400 SIGALRM = syscall.Signal(0xe)
1401 SIGBUS = syscall.Signal(0xa)
1402 SIGCHLD = syscall.Signal(0x14)
1403 SIGCONT = syscall.Signal(0x13)
1404 SIGEMT = syscall.Signal(0x7)
1405 SIGFPE = syscall.Signal(0x8)
1406 SIGHUP = syscall.Signal(0x1)
1407 SIGILL = syscall.Signal(0x4)
1408 SIGINFO = syscall.Signal(0x1d)
1409 SIGINT = syscall.Signal(0x2)
1410 SIGIO = syscall.Signal(0x17)
1411 SIGIOT = syscall.Signal(0x6)
1412 SIGKILL = syscall.Signal(0x9)
1413 SIGPIPE = syscall.Signal(0xd)
1414 SIGPROF = syscall.Signal(0x1b)
1415 SIGQUIT = syscall.Signal(0x3)
1416 SIGSEGV = syscall.Signal(0xb)
1417 SIGSTOP = syscall.Signal(0x11)
1418 SIGSYS = syscall.Signal(0xc)
1419 SIGTERM = syscall.Signal(0xf)
1420 SIGTRAP = syscall.Signal(0x5)
1421 SIGTSTP = syscall.Signal(0x12)
1422 SIGTTIN = syscall.Signal(0x15)
1423 SIGTTOU = syscall.Signal(0x16)
1424 SIGURG = syscall.Signal(0x10)
1425 SIGUSR1 = syscall.Signal(0x1e)
1426 SIGUSR2 = syscall.Signal(0x1f)
1427 SIGVTALRM = syscall.Signal(0x1a)
1428 SIGWINCH = syscall.Signal(0x1c)
1429 SIGXCPU = syscall.Signal(0x18)
1430 SIGXFSZ = syscall.Signal(0x19)
1431)
1432
1433// Error table
1434var errors = [...]string{
1435 1: "operation not permitted",
1436 2: "no such file or directory",
1437 3: "no such process",
1438 4: "interrupted system call",
1439 5: "input/output error",
1440 6: "device not configured",
1441 7: "argument list too long",
1442 8: "exec format error",
1443 9: "bad file descriptor",
1444 10: "no child processes",
1445 11: "resource deadlock avoided",
1446 12: "cannot allocate memory",
1447 13: "permission denied",
1448 14: "bad address",
1449 15: "block device required",
1450 16: "resource busy",
1451 17: "file exists",
1452 18: "cross-device link",
1453 19: "operation not supported by device",
1454 20: "not a directory",
1455 21: "is a directory",
1456 22: "invalid argument",
1457 23: "too many open files in system",
1458 24: "too many open files",
1459 25: "inappropriate ioctl for device",
1460 26: "text file busy",
1461 27: "file too large",
1462 28: "no space left on device",
1463 29: "illegal seek",
1464 30: "read-only file system",
1465 31: "too many links",
1466 32: "broken pipe",
1467 33: "numerical argument out of domain",
1468 34: "result too large",
1469 35: "resource temporarily unavailable",
1470 36: "operation now in progress",
1471 37: "operation already in progress",
1472 38: "socket operation on non-socket",
1473 39: "destination address required",
1474 40: "message too long",
1475 41: "protocol wrong type for socket",
1476 42: "protocol not available",
1477 43: "protocol not supported",
1478 44: "socket type not supported",
1479 45: "operation not supported",
1480 46: "protocol family not supported",
1481 47: "address family not supported by protocol family",
1482 48: "address already in use",
1483 49: "can't assign requested address",
1484 50: "network is down",
1485 51: "network is unreachable",
1486 52: "network dropped connection on reset",
1487 53: "software caused connection abort",
1488 54: "connection reset by peer",
1489 55: "no buffer space available",
1490 56: "socket is already connected",
1491 57: "socket is not connected",
1492 58: "can't send after socket shutdown",
1493 59: "too many references: can't splice",
1494 60: "operation timed out",
1495 61: "connection refused",
1496 62: "too many levels of symbolic links",
1497 63: "file name too long",
1498 64: "host is down",
1499 65: "no route to host",
1500 66: "directory not empty",
1501 67: "too many processes",
1502 68: "too many users",
1503 69: "disc quota exceeded",
1504 70: "stale NFS file handle",
1505 71: "too many levels of remote in path",
1506 72: "RPC struct is bad",
1507 73: "RPC version wrong",
1508 74: "RPC prog. not avail",
1509 75: "program version wrong",
1510 76: "bad procedure for program",
1511 77: "no locks available",
1512 78: "function not implemented",
1513 79: "inappropriate file type or format",
1514 80: "authentication error",
1515 81: "need authenticator",
1516 82: "device power is off",
1517 83: "device error",
1518 84: "value too large to be stored in data type",
1519 85: "bad executable (or shared library)",
1520 86: "bad CPU type in executable",
1521 87: "shared library version mismatch",
1522 88: "malformed Mach-o file",
1523 89: "operation canceled",
1524 90: "identifier removed",
1525 91: "no message of desired type",
1526 92: "illegal byte sequence",
1527 93: "attribute not found",
1528 94: "bad message",
1529 95: "EMULTIHOP (Reserved)",
1530 96: "no message available on STREAM",
1531 97: "ENOLINK (Reserved)",
1532 98: "no STREAM resources",
1533 99: "not a STREAM",
1534 100: "protocol error",
1535 101: "STREAM ioctl timeout",
1536 102: "operation not supported on socket",
1537 103: "policy not found",
1538 104: "state not recoverable",
1539 105: "previous owner died",
1540 106: "interface output queue is full",
1541}
1542
1543// Signal table
1544var signals = [...]string{
1545 1: "hangup",
1546 2: "interrupt",
1547 3: "quit",
1548 4: "illegal instruction",
1549 5: "trace/BPT trap",
1550 6: "abort trap",
1551 7: "EMT trap",
1552 8: "floating point exception",
1553 9: "killed",
1554 10: "bus error",
1555 11: "segmentation fault",
1556 12: "bad system call",
1557 13: "broken pipe",
1558 14: "alarm clock",
1559 15: "terminated",
1560 16: "urgent I/O condition",
1561 17: "suspended (signal)",
1562 18: "suspended",
1563 19: "continued",
1564 20: "child exited",
1565 21: "stopped (tty input)",
1566 22: "stopped (tty output)",
1567 23: "I/O possible",
1568 24: "cputime limit exceeded",
1569 25: "filesize limit exceeded",
1570 26: "virtual timer expired",
1571 27: "profiling timer expired",
1572 28: "window size changes",
1573 29: "information request",
1574 30: "user defined signal 1",
1575 31: "user defined signal 2",
1576}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_dragonfly_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_dragonfly_386.go
deleted file mode 100644
index 2a329f0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_dragonfly_386.go
+++ /dev/null
@@ -1,1530 +0,0 @@
1// mkerrors.sh -m32
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,dragonfly
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m32 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_ATM = 0x1e
16 AF_BLUETOOTH = 0x21
17 AF_CCITT = 0xa
18 AF_CHAOS = 0x5
19 AF_CNT = 0x15
20 AF_COIP = 0x14
21 AF_DATAKIT = 0x9
22 AF_DECnet = 0xc
23 AF_DLI = 0xd
24 AF_E164 = 0x1a
25 AF_ECMA = 0x8
26 AF_HYLINK = 0xf
27 AF_IEEE80211 = 0x23
28 AF_IMPLINK = 0x3
29 AF_INET = 0x2
30 AF_INET6 = 0x1c
31 AF_IPX = 0x17
32 AF_ISDN = 0x1a
33 AF_ISO = 0x7
34 AF_LAT = 0xe
35 AF_LINK = 0x12
36 AF_LOCAL = 0x1
37 AF_MAX = 0x24
38 AF_MPLS = 0x22
39 AF_NATM = 0x1d
40 AF_NETGRAPH = 0x20
41 AF_NS = 0x6
42 AF_OSI = 0x7
43 AF_PUP = 0x4
44 AF_ROUTE = 0x11
45 AF_SIP = 0x18
46 AF_SNA = 0xb
47 AF_UNIX = 0x1
48 AF_UNSPEC = 0x0
49 B0 = 0x0
50 B110 = 0x6e
51 B115200 = 0x1c200
52 B1200 = 0x4b0
53 B134 = 0x86
54 B14400 = 0x3840
55 B150 = 0x96
56 B1800 = 0x708
57 B19200 = 0x4b00
58 B200 = 0xc8
59 B230400 = 0x38400
60 B2400 = 0x960
61 B28800 = 0x7080
62 B300 = 0x12c
63 B38400 = 0x9600
64 B4800 = 0x12c0
65 B50 = 0x32
66 B57600 = 0xe100
67 B600 = 0x258
68 B7200 = 0x1c20
69 B75 = 0x4b
70 B76800 = 0x12c00
71 B9600 = 0x2580
72 BIOCFLUSH = 0x20004268
73 BIOCGBLEN = 0x40044266
74 BIOCGDLT = 0x4004426a
75 BIOCGDLTLIST = 0xc0084279
76 BIOCGETIF = 0x4020426b
77 BIOCGHDRCMPLT = 0x40044274
78 BIOCGRSIG = 0x40044272
79 BIOCGRTIMEOUT = 0x4008426e
80 BIOCGSEESENT = 0x40044276
81 BIOCGSTATS = 0x4008426f
82 BIOCIMMEDIATE = 0x80044270
83 BIOCLOCK = 0x2000427a
84 BIOCPROMISC = 0x20004269
85 BIOCSBLEN = 0xc0044266
86 BIOCSDLT = 0x80044278
87 BIOCSETF = 0x80084267
88 BIOCSETIF = 0x8020426c
89 BIOCSETWF = 0x8008427b
90 BIOCSHDRCMPLT = 0x80044275
91 BIOCSRSIG = 0x80044273
92 BIOCSRTIMEOUT = 0x8008426d
93 BIOCSSEESENT = 0x80044277
94 BIOCVERSION = 0x40044271
95 BPF_A = 0x10
96 BPF_ABS = 0x20
97 BPF_ADD = 0x0
98 BPF_ALIGNMENT = 0x4
99 BPF_ALU = 0x4
100 BPF_AND = 0x50
101 BPF_B = 0x10
102 BPF_DEFAULTBUFSIZE = 0x1000
103 BPF_DIV = 0x30
104 BPF_H = 0x8
105 BPF_IMM = 0x0
106 BPF_IND = 0x40
107 BPF_JA = 0x0
108 BPF_JEQ = 0x10
109 BPF_JGE = 0x30
110 BPF_JGT = 0x20
111 BPF_JMP = 0x5
112 BPF_JSET = 0x40
113 BPF_K = 0x0
114 BPF_LD = 0x0
115 BPF_LDX = 0x1
116 BPF_LEN = 0x80
117 BPF_LSH = 0x60
118 BPF_MAJOR_VERSION = 0x1
119 BPF_MAXBUFSIZE = 0x80000
120 BPF_MAXINSNS = 0x200
121 BPF_MAX_CLONES = 0x80
122 BPF_MEM = 0x60
123 BPF_MEMWORDS = 0x10
124 BPF_MINBUFSIZE = 0x20
125 BPF_MINOR_VERSION = 0x1
126 BPF_MISC = 0x7
127 BPF_MSH = 0xa0
128 BPF_MUL = 0x20
129 BPF_NEG = 0x80
130 BPF_OR = 0x40
131 BPF_RELEASE = 0x30bb6
132 BPF_RET = 0x6
133 BPF_RSH = 0x70
134 BPF_ST = 0x2
135 BPF_STX = 0x3
136 BPF_SUB = 0x10
137 BPF_TAX = 0x0
138 BPF_TXA = 0x80
139 BPF_W = 0x0
140 BPF_X = 0x8
141 BRKINT = 0x2
142 CFLUSH = 0xf
143 CLOCAL = 0x8000
144 CREAD = 0x800
145 CS5 = 0x0
146 CS6 = 0x100
147 CS7 = 0x200
148 CS8 = 0x300
149 CSIZE = 0x300
150 CSTART = 0x11
151 CSTATUS = 0x14
152 CSTOP = 0x13
153 CSTOPB = 0x400
154 CSUSP = 0x1a
155 CTL_MAXNAME = 0xc
156 CTL_NET = 0x4
157 DLT_A429 = 0xb8
158 DLT_A653_ICM = 0xb9
159 DLT_AIRONET_HEADER = 0x78
160 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
161 DLT_ARCNET = 0x7
162 DLT_ARCNET_LINUX = 0x81
163 DLT_ATM_CLIP = 0x13
164 DLT_ATM_RFC1483 = 0xb
165 DLT_AURORA = 0x7e
166 DLT_AX25 = 0x3
167 DLT_AX25_KISS = 0xca
168 DLT_BACNET_MS_TP = 0xa5
169 DLT_BLUETOOTH_HCI_H4 = 0xbb
170 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
171 DLT_CAN20B = 0xbe
172 DLT_CHAOS = 0x5
173 DLT_CHDLC = 0x68
174 DLT_CISCO_IOS = 0x76
175 DLT_C_HDLC = 0x68
176 DLT_C_HDLC_WITH_DIR = 0xcd
177 DLT_DOCSIS = 0x8f
178 DLT_ECONET = 0x73
179 DLT_EN10MB = 0x1
180 DLT_EN3MB = 0x2
181 DLT_ENC = 0x6d
182 DLT_ERF = 0xc5
183 DLT_ERF_ETH = 0xaf
184 DLT_ERF_POS = 0xb0
185 DLT_FDDI = 0xa
186 DLT_FLEXRAY = 0xd2
187 DLT_FRELAY = 0x6b
188 DLT_FRELAY_WITH_DIR = 0xce
189 DLT_GCOM_SERIAL = 0xad
190 DLT_GCOM_T1E1 = 0xac
191 DLT_GPF_F = 0xab
192 DLT_GPF_T = 0xaa
193 DLT_GPRS_LLC = 0xa9
194 DLT_HHDLC = 0x79
195 DLT_IBM_SN = 0x92
196 DLT_IBM_SP = 0x91
197 DLT_IEEE802 = 0x6
198 DLT_IEEE802_11 = 0x69
199 DLT_IEEE802_11_RADIO = 0x7f
200 DLT_IEEE802_11_RADIO_AVS = 0xa3
201 DLT_IEEE802_15_4 = 0xc3
202 DLT_IEEE802_15_4_LINUX = 0xbf
203 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
204 DLT_IEEE802_16_MAC_CPS = 0xbc
205 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
206 DLT_IPFILTER = 0x74
207 DLT_IPMB = 0xc7
208 DLT_IPMB_LINUX = 0xd1
209 DLT_IP_OVER_FC = 0x7a
210 DLT_JUNIPER_ATM1 = 0x89
211 DLT_JUNIPER_ATM2 = 0x87
212 DLT_JUNIPER_CHDLC = 0xb5
213 DLT_JUNIPER_ES = 0x84
214 DLT_JUNIPER_ETHER = 0xb2
215 DLT_JUNIPER_FRELAY = 0xb4
216 DLT_JUNIPER_GGSN = 0x85
217 DLT_JUNIPER_ISM = 0xc2
218 DLT_JUNIPER_MFR = 0x86
219 DLT_JUNIPER_MLFR = 0x83
220 DLT_JUNIPER_MLPPP = 0x82
221 DLT_JUNIPER_MONITOR = 0xa4
222 DLT_JUNIPER_PIC_PEER = 0xae
223 DLT_JUNIPER_PPP = 0xb3
224 DLT_JUNIPER_PPPOE = 0xa7
225 DLT_JUNIPER_PPPOE_ATM = 0xa8
226 DLT_JUNIPER_SERVICES = 0x88
227 DLT_JUNIPER_ST = 0xc8
228 DLT_JUNIPER_VP = 0xb7
229 DLT_LAPB_WITH_DIR = 0xcf
230 DLT_LAPD = 0xcb
231 DLT_LIN = 0xd4
232 DLT_LINUX_IRDA = 0x90
233 DLT_LINUX_LAPD = 0xb1
234 DLT_LINUX_SLL = 0x71
235 DLT_LOOP = 0x6c
236 DLT_LTALK = 0x72
237 DLT_MFR = 0xb6
238 DLT_MOST = 0xd3
239 DLT_MTP2 = 0x8c
240 DLT_MTP2_WITH_PHDR = 0x8b
241 DLT_MTP3 = 0x8d
242 DLT_NULL = 0x0
243 DLT_PCI_EXP = 0x7d
244 DLT_PFLOG = 0x75
245 DLT_PFSYNC = 0x12
246 DLT_PPI = 0xc0
247 DLT_PPP = 0x9
248 DLT_PPP_BSDOS = 0x10
249 DLT_PPP_ETHER = 0x33
250 DLT_PPP_PPPD = 0xa6
251 DLT_PPP_SERIAL = 0x32
252 DLT_PPP_WITH_DIR = 0xcc
253 DLT_PRISM_HEADER = 0x77
254 DLT_PRONET = 0x4
255 DLT_RAIF1 = 0xc6
256 DLT_RAW = 0xc
257 DLT_REDBACK_SMARTEDGE = 0x20
258 DLT_RIO = 0x7c
259 DLT_SCCP = 0x8e
260 DLT_SITA = 0xc4
261 DLT_SLIP = 0x8
262 DLT_SLIP_BSDOS = 0xf
263 DLT_SUNATM = 0x7b
264 DLT_SYMANTEC_FIREWALL = 0x63
265 DLT_TZSP = 0x80
266 DLT_USB = 0xba
267 DLT_USB_LINUX = 0xbd
268 DLT_X2E_SERIAL = 0xd5
269 DLT_X2E_XORAYA = 0xd6
270 DT_BLK = 0x6
271 DT_CHR = 0x2
272 DT_DBF = 0xf
273 DT_DIR = 0x4
274 DT_FIFO = 0x1
275 DT_LNK = 0xa
276 DT_REG = 0x8
277 DT_SOCK = 0xc
278 DT_UNKNOWN = 0x0
279 DT_WHT = 0xe
280 ECHO = 0x8
281 ECHOCTL = 0x40
282 ECHOE = 0x2
283 ECHOK = 0x4
284 ECHOKE = 0x1
285 ECHONL = 0x10
286 ECHOPRT = 0x20
287 EVFILT_AIO = -0x3
288 EVFILT_EXCEPT = -0x8
289 EVFILT_MARKER = 0xf
290 EVFILT_PROC = -0x5
291 EVFILT_READ = -0x1
292 EVFILT_SIGNAL = -0x6
293 EVFILT_SYSCOUNT = 0x8
294 EVFILT_TIMER = -0x7
295 EVFILT_VNODE = -0x4
296 EVFILT_WRITE = -0x2
297 EV_ADD = 0x1
298 EV_CLEAR = 0x20
299 EV_DELETE = 0x2
300 EV_DISABLE = 0x8
301 EV_ENABLE = 0x4
302 EV_EOF = 0x8000
303 EV_ERROR = 0x4000
304 EV_FLAG1 = 0x2000
305 EV_NODATA = 0x1000
306 EV_ONESHOT = 0x10
307 EV_SYSFLAGS = 0xf000
308 EXTA = 0x4b00
309 EXTB = 0x9600
310 EXTEXIT_LWP = 0x10000
311 EXTEXIT_PROC = 0x0
312 EXTEXIT_SETINT = 0x1
313 EXTEXIT_SIMPLE = 0x0
314 EXTPROC = 0x800
315 FD_CLOEXEC = 0x1
316 FD_SETSIZE = 0x400
317 FLUSHO = 0x800000
318 F_DUP2FD = 0xa
319 F_DUP2FD_CLOEXEC = 0x12
320 F_DUPFD = 0x0
321 F_DUPFD_CLOEXEC = 0x11
322 F_GETFD = 0x1
323 F_GETFL = 0x3
324 F_GETLK = 0x7
325 F_GETOWN = 0x5
326 F_OK = 0x0
327 F_RDLCK = 0x1
328 F_SETFD = 0x2
329 F_SETFL = 0x4
330 F_SETLK = 0x8
331 F_SETLKW = 0x9
332 F_SETOWN = 0x6
333 F_UNLCK = 0x2
334 F_WRLCK = 0x3
335 HUPCL = 0x4000
336 ICANON = 0x100
337 ICMP6_FILTER = 0x12
338 ICRNL = 0x100
339 IEXTEN = 0x400
340 IFAN_ARRIVAL = 0x0
341 IFAN_DEPARTURE = 0x1
342 IFF_ALLMULTI = 0x200
343 IFF_ALTPHYS = 0x4000
344 IFF_BROADCAST = 0x2
345 IFF_CANTCHANGE = 0x118e72
346 IFF_DEBUG = 0x4
347 IFF_LINK0 = 0x1000
348 IFF_LINK1 = 0x2000
349 IFF_LINK2 = 0x4000
350 IFF_LOOPBACK = 0x8
351 IFF_MONITOR = 0x40000
352 IFF_MULTICAST = 0x8000
353 IFF_NOARP = 0x80
354 IFF_NPOLLING = 0x100000
355 IFF_OACTIVE = 0x400
356 IFF_OACTIVE_COMPAT = 0x400
357 IFF_POINTOPOINT = 0x10
358 IFF_POLLING = 0x10000
359 IFF_POLLING_COMPAT = 0x10000
360 IFF_PPROMISC = 0x20000
361 IFF_PROMISC = 0x100
362 IFF_RUNNING = 0x40
363 IFF_SIMPLEX = 0x800
364 IFF_SMART = 0x20
365 IFF_STATICARP = 0x80000
366 IFF_UP = 0x1
367 IFNAMSIZ = 0x10
368 IFT_1822 = 0x2
369 IFT_A12MPPSWITCH = 0x82
370 IFT_AAL2 = 0xbb
371 IFT_AAL5 = 0x31
372 IFT_ADSL = 0x5e
373 IFT_AFLANE8023 = 0x3b
374 IFT_AFLANE8025 = 0x3c
375 IFT_ARAP = 0x58
376 IFT_ARCNET = 0x23
377 IFT_ARCNETPLUS = 0x24
378 IFT_ASYNC = 0x54
379 IFT_ATM = 0x25
380 IFT_ATMDXI = 0x69
381 IFT_ATMFUNI = 0x6a
382 IFT_ATMIMA = 0x6b
383 IFT_ATMLOGICAL = 0x50
384 IFT_ATMRADIO = 0xbd
385 IFT_ATMSUBINTERFACE = 0x86
386 IFT_ATMVCIENDPT = 0xc2
387 IFT_ATMVIRTUAL = 0x95
388 IFT_BGPPOLICYACCOUNTING = 0xa2
389 IFT_BRIDGE = 0xd1
390 IFT_BSC = 0x53
391 IFT_CARP = 0xf8
392 IFT_CCTEMUL = 0x3d
393 IFT_CEPT = 0x13
394 IFT_CES = 0x85
395 IFT_CHANNEL = 0x46
396 IFT_CNR = 0x55
397 IFT_COFFEE = 0x84
398 IFT_COMPOSITELINK = 0x9b
399 IFT_DCN = 0x8d
400 IFT_DIGITALPOWERLINE = 0x8a
401 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
402 IFT_DLSW = 0x4a
403 IFT_DOCSCABLEDOWNSTREAM = 0x80
404 IFT_DOCSCABLEMACLAYER = 0x7f
405 IFT_DOCSCABLEUPSTREAM = 0x81
406 IFT_DS0 = 0x51
407 IFT_DS0BUNDLE = 0x52
408 IFT_DS1FDL = 0xaa
409 IFT_DS3 = 0x1e
410 IFT_DTM = 0x8c
411 IFT_DVBASILN = 0xac
412 IFT_DVBASIOUT = 0xad
413 IFT_DVBRCCDOWNSTREAM = 0x93
414 IFT_DVBRCCMACLAYER = 0x92
415 IFT_DVBRCCUPSTREAM = 0x94
416 IFT_ENC = 0xf4
417 IFT_EON = 0x19
418 IFT_EPLRS = 0x57
419 IFT_ESCON = 0x49
420 IFT_ETHER = 0x6
421 IFT_FAITH = 0xf2
422 IFT_FAST = 0x7d
423 IFT_FASTETHER = 0x3e
424 IFT_FASTETHERFX = 0x45
425 IFT_FDDI = 0xf
426 IFT_FIBRECHANNEL = 0x38
427 IFT_FRAMERELAYINTERCONNECT = 0x3a
428 IFT_FRAMERELAYMPI = 0x5c
429 IFT_FRDLCIENDPT = 0xc1
430 IFT_FRELAY = 0x20
431 IFT_FRELAYDCE = 0x2c
432 IFT_FRF16MFRBUNDLE = 0xa3
433 IFT_FRFORWARD = 0x9e
434 IFT_G703AT2MB = 0x43
435 IFT_G703AT64K = 0x42
436 IFT_GIF = 0xf0
437 IFT_GIGABITETHERNET = 0x75
438 IFT_GR303IDT = 0xb2
439 IFT_GR303RDT = 0xb1
440 IFT_H323GATEKEEPER = 0xa4
441 IFT_H323PROXY = 0xa5
442 IFT_HDH1822 = 0x3
443 IFT_HDLC = 0x76
444 IFT_HDSL2 = 0xa8
445 IFT_HIPERLAN2 = 0xb7
446 IFT_HIPPI = 0x2f
447 IFT_HIPPIINTERFACE = 0x39
448 IFT_HOSTPAD = 0x5a
449 IFT_HSSI = 0x2e
450 IFT_HY = 0xe
451 IFT_IBM370PARCHAN = 0x48
452 IFT_IDSL = 0x9a
453 IFT_IEEE1394 = 0x90
454 IFT_IEEE80211 = 0x47
455 IFT_IEEE80212 = 0x37
456 IFT_IEEE8023ADLAG = 0xa1
457 IFT_IFGSN = 0x91
458 IFT_IMT = 0xbe
459 IFT_INTERLEAVE = 0x7c
460 IFT_IP = 0x7e
461 IFT_IPFORWARD = 0x8e
462 IFT_IPOVERATM = 0x72
463 IFT_IPOVERCDLC = 0x6d
464 IFT_IPOVERCLAW = 0x6e
465 IFT_IPSWITCH = 0x4e
466 IFT_ISDN = 0x3f
467 IFT_ISDNBASIC = 0x14
468 IFT_ISDNPRIMARY = 0x15
469 IFT_ISDNS = 0x4b
470 IFT_ISDNU = 0x4c
471 IFT_ISO88022LLC = 0x29
472 IFT_ISO88023 = 0x7
473 IFT_ISO88024 = 0x8
474 IFT_ISO88025 = 0x9
475 IFT_ISO88025CRFPINT = 0x62
476 IFT_ISO88025DTR = 0x56
477 IFT_ISO88025FIBER = 0x73
478 IFT_ISO88026 = 0xa
479 IFT_ISUP = 0xb3
480 IFT_L2VLAN = 0x87
481 IFT_L3IPVLAN = 0x88
482 IFT_L3IPXVLAN = 0x89
483 IFT_LAPB = 0x10
484 IFT_LAPD = 0x4d
485 IFT_LAPF = 0x77
486 IFT_LOCALTALK = 0x2a
487 IFT_LOOP = 0x18
488 IFT_MEDIAMAILOVERIP = 0x8b
489 IFT_MFSIGLINK = 0xa7
490 IFT_MIOX25 = 0x26
491 IFT_MODEM = 0x30
492 IFT_MPC = 0x71
493 IFT_MPLS = 0xa6
494 IFT_MPLSTUNNEL = 0x96
495 IFT_MSDSL = 0x8f
496 IFT_MVL = 0xbf
497 IFT_MYRINET = 0x63
498 IFT_NFAS = 0xaf
499 IFT_NSIP = 0x1b
500 IFT_OPTICALCHANNEL = 0xc3
501 IFT_OPTICALTRANSPORT = 0xc4
502 IFT_OTHER = 0x1
503 IFT_P10 = 0xc
504 IFT_P80 = 0xd
505 IFT_PARA = 0x22
506 IFT_PFLOG = 0xf5
507 IFT_PFSYNC = 0xf6
508 IFT_PLC = 0xae
509 IFT_POS = 0xab
510 IFT_PPP = 0x17
511 IFT_PPPMULTILINKBUNDLE = 0x6c
512 IFT_PROPBWAP2MP = 0xb8
513 IFT_PROPCNLS = 0x59
514 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
515 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
516 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
517 IFT_PROPMUX = 0x36
518 IFT_PROPVIRTUAL = 0x35
519 IFT_PROPWIRELESSP2P = 0x9d
520 IFT_PTPSERIAL = 0x16
521 IFT_PVC = 0xf1
522 IFT_QLLC = 0x44
523 IFT_RADIOMAC = 0xbc
524 IFT_RADSL = 0x5f
525 IFT_REACHDSL = 0xc0
526 IFT_RFC1483 = 0x9f
527 IFT_RS232 = 0x21
528 IFT_RSRB = 0x4f
529 IFT_SDLC = 0x11
530 IFT_SDSL = 0x60
531 IFT_SHDSL = 0xa9
532 IFT_SIP = 0x1f
533 IFT_SLIP = 0x1c
534 IFT_SMDSDXI = 0x2b
535 IFT_SMDSICIP = 0x34
536 IFT_SONET = 0x27
537 IFT_SONETOVERHEADCHANNEL = 0xb9
538 IFT_SONETPATH = 0x32
539 IFT_SONETVT = 0x33
540 IFT_SRP = 0x97
541 IFT_SS7SIGLINK = 0x9c
542 IFT_STACKTOSTACK = 0x6f
543 IFT_STARLAN = 0xb
544 IFT_STF = 0xf3
545 IFT_T1 = 0x12
546 IFT_TDLC = 0x74
547 IFT_TERMPAD = 0x5b
548 IFT_TR008 = 0xb0
549 IFT_TRANSPHDLC = 0x7b
550 IFT_TUNNEL = 0x83
551 IFT_ULTRA = 0x1d
552 IFT_USB = 0xa0
553 IFT_V11 = 0x40
554 IFT_V35 = 0x2d
555 IFT_V36 = 0x41
556 IFT_V37 = 0x78
557 IFT_VDSL = 0x61
558 IFT_VIRTUALIPADDRESS = 0x70
559 IFT_VOICEEM = 0x64
560 IFT_VOICEENCAP = 0x67
561 IFT_VOICEFXO = 0x65
562 IFT_VOICEFXS = 0x66
563 IFT_VOICEOVERATM = 0x98
564 IFT_VOICEOVERFRAMERELAY = 0x99
565 IFT_VOICEOVERIP = 0x68
566 IFT_X213 = 0x5d
567 IFT_X25 = 0x5
568 IFT_X25DDN = 0x4
569 IFT_X25HUNTGROUP = 0x7a
570 IFT_X25MLP = 0x79
571 IFT_X25PLE = 0x28
572 IFT_XETHER = 0x1a
573 IGNBRK = 0x1
574 IGNCR = 0x80
575 IGNPAR = 0x4
576 IMAXBEL = 0x2000
577 INLCR = 0x40
578 INPCK = 0x10
579 IN_CLASSA_HOST = 0xffffff
580 IN_CLASSA_MAX = 0x80
581 IN_CLASSA_NET = 0xff000000
582 IN_CLASSA_NSHIFT = 0x18
583 IN_CLASSB_HOST = 0xffff
584 IN_CLASSB_MAX = 0x10000
585 IN_CLASSB_NET = 0xffff0000
586 IN_CLASSB_NSHIFT = 0x10
587 IN_CLASSC_HOST = 0xff
588 IN_CLASSC_NET = 0xffffff00
589 IN_CLASSC_NSHIFT = 0x8
590 IN_CLASSD_HOST = 0xfffffff
591 IN_CLASSD_NET = 0xf0000000
592 IN_CLASSD_NSHIFT = 0x1c
593 IN_LOOPBACKNET = 0x7f
594 IPPROTO_3PC = 0x22
595 IPPROTO_ADFS = 0x44
596 IPPROTO_AH = 0x33
597 IPPROTO_AHIP = 0x3d
598 IPPROTO_APES = 0x63
599 IPPROTO_ARGUS = 0xd
600 IPPROTO_AX25 = 0x5d
601 IPPROTO_BHA = 0x31
602 IPPROTO_BLT = 0x1e
603 IPPROTO_BRSATMON = 0x4c
604 IPPROTO_CARP = 0x70
605 IPPROTO_CFTP = 0x3e
606 IPPROTO_CHAOS = 0x10
607 IPPROTO_CMTP = 0x26
608 IPPROTO_CPHB = 0x49
609 IPPROTO_CPNX = 0x48
610 IPPROTO_DDP = 0x25
611 IPPROTO_DGP = 0x56
612 IPPROTO_DIVERT = 0xfe
613 IPPROTO_DONE = 0x101
614 IPPROTO_DSTOPTS = 0x3c
615 IPPROTO_EGP = 0x8
616 IPPROTO_EMCON = 0xe
617 IPPROTO_ENCAP = 0x62
618 IPPROTO_EON = 0x50
619 IPPROTO_ESP = 0x32
620 IPPROTO_ETHERIP = 0x61
621 IPPROTO_FRAGMENT = 0x2c
622 IPPROTO_GGP = 0x3
623 IPPROTO_GMTP = 0x64
624 IPPROTO_GRE = 0x2f
625 IPPROTO_HELLO = 0x3f
626 IPPROTO_HMP = 0x14
627 IPPROTO_HOPOPTS = 0x0
628 IPPROTO_ICMP = 0x1
629 IPPROTO_ICMPV6 = 0x3a
630 IPPROTO_IDP = 0x16
631 IPPROTO_IDPR = 0x23
632 IPPROTO_IDRP = 0x2d
633 IPPROTO_IGMP = 0x2
634 IPPROTO_IGP = 0x55
635 IPPROTO_IGRP = 0x58
636 IPPROTO_IL = 0x28
637 IPPROTO_INLSP = 0x34
638 IPPROTO_INP = 0x20
639 IPPROTO_IP = 0x0
640 IPPROTO_IPCOMP = 0x6c
641 IPPROTO_IPCV = 0x47
642 IPPROTO_IPEIP = 0x5e
643 IPPROTO_IPIP = 0x4
644 IPPROTO_IPPC = 0x43
645 IPPROTO_IPV4 = 0x4
646 IPPROTO_IPV6 = 0x29
647 IPPROTO_IRTP = 0x1c
648 IPPROTO_KRYPTOLAN = 0x41
649 IPPROTO_LARP = 0x5b
650 IPPROTO_LEAF1 = 0x19
651 IPPROTO_LEAF2 = 0x1a
652 IPPROTO_MAX = 0x100
653 IPPROTO_MAXID = 0x34
654 IPPROTO_MEAS = 0x13
655 IPPROTO_MHRP = 0x30
656 IPPROTO_MICP = 0x5f
657 IPPROTO_MOBILE = 0x37
658 IPPROTO_MTP = 0x5c
659 IPPROTO_MUX = 0x12
660 IPPROTO_ND = 0x4d
661 IPPROTO_NHRP = 0x36
662 IPPROTO_NONE = 0x3b
663 IPPROTO_NSP = 0x1f
664 IPPROTO_NVPII = 0xb
665 IPPROTO_OSPFIGP = 0x59
666 IPPROTO_PFSYNC = 0xf0
667 IPPROTO_PGM = 0x71
668 IPPROTO_PIGP = 0x9
669 IPPROTO_PIM = 0x67
670 IPPROTO_PRM = 0x15
671 IPPROTO_PUP = 0xc
672 IPPROTO_PVP = 0x4b
673 IPPROTO_RAW = 0xff
674 IPPROTO_RCCMON = 0xa
675 IPPROTO_RDP = 0x1b
676 IPPROTO_ROUTING = 0x2b
677 IPPROTO_RSVP = 0x2e
678 IPPROTO_RVD = 0x42
679 IPPROTO_SATEXPAK = 0x40
680 IPPROTO_SATMON = 0x45
681 IPPROTO_SCCSP = 0x60
682 IPPROTO_SCTP = 0x84
683 IPPROTO_SDRP = 0x2a
684 IPPROTO_SEP = 0x21
685 IPPROTO_SKIP = 0x39
686 IPPROTO_SRPC = 0x5a
687 IPPROTO_ST = 0x7
688 IPPROTO_SVMTP = 0x52
689 IPPROTO_SWIPE = 0x35
690 IPPROTO_TCF = 0x57
691 IPPROTO_TCP = 0x6
692 IPPROTO_TLSP = 0x38
693 IPPROTO_TP = 0x1d
694 IPPROTO_TPXX = 0x27
695 IPPROTO_TRUNK1 = 0x17
696 IPPROTO_TRUNK2 = 0x18
697 IPPROTO_TTP = 0x54
698 IPPROTO_UDP = 0x11
699 IPPROTO_UNKNOWN = 0x102
700 IPPROTO_VINES = 0x53
701 IPPROTO_VISA = 0x46
702 IPPROTO_VMTP = 0x51
703 IPPROTO_WBEXPAK = 0x4f
704 IPPROTO_WBMON = 0x4e
705 IPPROTO_WSN = 0x4a
706 IPPROTO_XNET = 0xf
707 IPPROTO_XTP = 0x24
708 IPV6_AUTOFLOWLABEL = 0x3b
709 IPV6_BINDV6ONLY = 0x1b
710 IPV6_CHECKSUM = 0x1a
711 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
712 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
713 IPV6_DEFHLIM = 0x40
714 IPV6_DONTFRAG = 0x3e
715 IPV6_DSTOPTS = 0x32
716 IPV6_FAITH = 0x1d
717 IPV6_FLOWINFO_MASK = 0xffffff0f
718 IPV6_FLOWLABEL_MASK = 0xffff0f00
719 IPV6_FRAGTTL = 0x78
720 IPV6_FW_ADD = 0x1e
721 IPV6_FW_DEL = 0x1f
722 IPV6_FW_FLUSH = 0x20
723 IPV6_FW_GET = 0x22
724 IPV6_FW_ZERO = 0x21
725 IPV6_HLIMDEC = 0x1
726 IPV6_HOPLIMIT = 0x2f
727 IPV6_HOPOPTS = 0x31
728 IPV6_IPSEC_POLICY = 0x1c
729 IPV6_JOIN_GROUP = 0xc
730 IPV6_LEAVE_GROUP = 0xd
731 IPV6_MAXHLIM = 0xff
732 IPV6_MAXPACKET = 0xffff
733 IPV6_MMTU = 0x500
734 IPV6_MSFILTER = 0x4a
735 IPV6_MULTICAST_HOPS = 0xa
736 IPV6_MULTICAST_IF = 0x9
737 IPV6_MULTICAST_LOOP = 0xb
738 IPV6_NEXTHOP = 0x30
739 IPV6_PATHMTU = 0x2c
740 IPV6_PKTINFO = 0x2e
741 IPV6_PKTOPTIONS = 0x34
742 IPV6_PORTRANGE = 0xe
743 IPV6_PORTRANGE_DEFAULT = 0x0
744 IPV6_PORTRANGE_HIGH = 0x1
745 IPV6_PORTRANGE_LOW = 0x2
746 IPV6_PREFER_TEMPADDR = 0x3f
747 IPV6_RECVDSTOPTS = 0x28
748 IPV6_RECVHOPLIMIT = 0x25
749 IPV6_RECVHOPOPTS = 0x27
750 IPV6_RECVPATHMTU = 0x2b
751 IPV6_RECVPKTINFO = 0x24
752 IPV6_RECVRTHDR = 0x26
753 IPV6_RECVTCLASS = 0x39
754 IPV6_RTHDR = 0x33
755 IPV6_RTHDRDSTOPTS = 0x23
756 IPV6_RTHDR_LOOSE = 0x0
757 IPV6_RTHDR_STRICT = 0x1
758 IPV6_RTHDR_TYPE_0 = 0x0
759 IPV6_SOCKOPT_RESERVED1 = 0x3
760 IPV6_TCLASS = 0x3d
761 IPV6_UNICAST_HOPS = 0x4
762 IPV6_USE_MIN_MTU = 0x2a
763 IPV6_V6ONLY = 0x1b
764 IPV6_VERSION = 0x60
765 IPV6_VERSION_MASK = 0xf0
766 IP_ADD_MEMBERSHIP = 0xc
767 IP_DEFAULT_MULTICAST_LOOP = 0x1
768 IP_DEFAULT_MULTICAST_TTL = 0x1
769 IP_DF = 0x4000
770 IP_DROP_MEMBERSHIP = 0xd
771 IP_DUMMYNET_CONFIGURE = 0x3c
772 IP_DUMMYNET_DEL = 0x3d
773 IP_DUMMYNET_FLUSH = 0x3e
774 IP_DUMMYNET_GET = 0x40
775 IP_FAITH = 0x16
776 IP_FW_ADD = 0x32
777 IP_FW_DEL = 0x33
778 IP_FW_FLUSH = 0x34
779 IP_FW_GET = 0x36
780 IP_FW_RESETLOG = 0x37
781 IP_FW_ZERO = 0x35
782 IP_HDRINCL = 0x2
783 IP_IPSEC_POLICY = 0x15
784 IP_MAXPACKET = 0xffff
785 IP_MAX_MEMBERSHIPS = 0x14
786 IP_MF = 0x2000
787 IP_MINTTL = 0x42
788 IP_MSS = 0x240
789 IP_MULTICAST_IF = 0x9
790 IP_MULTICAST_LOOP = 0xb
791 IP_MULTICAST_TTL = 0xa
792 IP_MULTICAST_VIF = 0xe
793 IP_OFFMASK = 0x1fff
794 IP_OPTIONS = 0x1
795 IP_PORTRANGE = 0x13
796 IP_PORTRANGE_DEFAULT = 0x0
797 IP_PORTRANGE_HIGH = 0x1
798 IP_PORTRANGE_LOW = 0x2
799 IP_RECVDSTADDR = 0x7
800 IP_RECVIF = 0x14
801 IP_RECVOPTS = 0x5
802 IP_RECVRETOPTS = 0x6
803 IP_RECVTTL = 0x41
804 IP_RETOPTS = 0x8
805 IP_RF = 0x8000
806 IP_RSVP_OFF = 0x10
807 IP_RSVP_ON = 0xf
808 IP_RSVP_VIF_OFF = 0x12
809 IP_RSVP_VIF_ON = 0x11
810 IP_TOS = 0x3
811 IP_TTL = 0x4
812 ISIG = 0x80
813 ISTRIP = 0x20
814 IXANY = 0x800
815 IXOFF = 0x400
816 IXON = 0x200
817 LOCK_EX = 0x2
818 LOCK_NB = 0x4
819 LOCK_SH = 0x1
820 LOCK_UN = 0x8
821 MADV_AUTOSYNC = 0x7
822 MADV_CONTROL_END = 0xb
823 MADV_CONTROL_START = 0xa
824 MADV_CORE = 0x9
825 MADV_DONTNEED = 0x4
826 MADV_FREE = 0x5
827 MADV_INVAL = 0xa
828 MADV_NOCORE = 0x8
829 MADV_NORMAL = 0x0
830 MADV_NOSYNC = 0x6
831 MADV_RANDOM = 0x1
832 MADV_SEQUENTIAL = 0x2
833 MADV_SETMAP = 0xb
834 MADV_WILLNEED = 0x3
835 MAP_ANON = 0x1000
836 MAP_COPY = 0x2
837 MAP_FILE = 0x0
838 MAP_FIXED = 0x10
839 MAP_HASSEMAPHORE = 0x200
840 MAP_INHERIT = 0x80
841 MAP_NOCORE = 0x20000
842 MAP_NOEXTEND = 0x100
843 MAP_NORESERVE = 0x40
844 MAP_NOSYNC = 0x800
845 MAP_PRIVATE = 0x2
846 MAP_RENAME = 0x20
847 MAP_SHARED = 0x1
848 MAP_SIZEALIGN = 0x40000
849 MAP_STACK = 0x400
850 MAP_TRYFIXED = 0x10000
851 MAP_VPAGETABLE = 0x2000
852 MCL_CURRENT = 0x1
853 MCL_FUTURE = 0x2
854 MSG_CTRUNC = 0x20
855 MSG_DONTROUTE = 0x4
856 MSG_DONTWAIT = 0x80
857 MSG_EOF = 0x100
858 MSG_EOR = 0x8
859 MSG_FBLOCKING = 0x10000
860 MSG_FMASK = 0xffff0000
861 MSG_FNONBLOCKING = 0x20000
862 MSG_NOSIGNAL = 0x400
863 MSG_NOTIFICATION = 0x200
864 MSG_OOB = 0x1
865 MSG_PEEK = 0x2
866 MSG_SYNC = 0x800
867 MSG_TRUNC = 0x10
868 MSG_WAITALL = 0x40
869 MS_ASYNC = 0x1
870 MS_INVALIDATE = 0x2
871 MS_SYNC = 0x0
872 NAME_MAX = 0xff
873 NET_RT_DUMP = 0x1
874 NET_RT_FLAGS = 0x2
875 NET_RT_IFLIST = 0x3
876 NET_RT_MAXID = 0x4
877 NOFLSH = 0x80000000
878 NOTE_ATTRIB = 0x8
879 NOTE_CHILD = 0x4
880 NOTE_DELETE = 0x1
881 NOTE_EXEC = 0x20000000
882 NOTE_EXIT = 0x80000000
883 NOTE_EXTEND = 0x4
884 NOTE_FORK = 0x40000000
885 NOTE_LINK = 0x10
886 NOTE_LOWAT = 0x1
887 NOTE_OOB = 0x2
888 NOTE_PCTRLMASK = 0xf0000000
889 NOTE_PDATAMASK = 0xfffff
890 NOTE_RENAME = 0x20
891 NOTE_REVOKE = 0x40
892 NOTE_TRACK = 0x1
893 NOTE_TRACKERR = 0x2
894 NOTE_WRITE = 0x2
895 OCRNL = 0x10
896 ONLCR = 0x2
897 ONLRET = 0x40
898 ONOCR = 0x20
899 ONOEOT = 0x8
900 OPOST = 0x1
901 O_ACCMODE = 0x3
902 O_APPEND = 0x8
903 O_ASYNC = 0x40
904 O_CLOEXEC = 0x20000
905 O_CREAT = 0x200
906 O_DIRECT = 0x10000
907 O_DIRECTORY = 0x8000000
908 O_EXCL = 0x800
909 O_EXLOCK = 0x20
910 O_FAPPEND = 0x100000
911 O_FASYNCWRITE = 0x800000
912 O_FBLOCKING = 0x40000
913 O_FBUFFERED = 0x2000000
914 O_FMASK = 0x7fc0000
915 O_FNONBLOCKING = 0x80000
916 O_FOFFSET = 0x200000
917 O_FSYNC = 0x80
918 O_FSYNCWRITE = 0x400000
919 O_FUNBUFFERED = 0x1000000
920 O_MAPONREAD = 0x4000000
921 O_NDELAY = 0x4
922 O_NOCTTY = 0x8000
923 O_NOFOLLOW = 0x100
924 O_NONBLOCK = 0x4
925 O_RDONLY = 0x0
926 O_RDWR = 0x2
927 O_SHLOCK = 0x10
928 O_SYNC = 0x80
929 O_TRUNC = 0x400
930 O_WRONLY = 0x1
931 PARENB = 0x1000
932 PARMRK = 0x8
933 PARODD = 0x2000
934 PENDIN = 0x20000000
935 PRIO_PGRP = 0x1
936 PRIO_PROCESS = 0x0
937 PRIO_USER = 0x2
938 PROT_EXEC = 0x4
939 PROT_NONE = 0x0
940 PROT_READ = 0x1
941 PROT_WRITE = 0x2
942 RLIMIT_AS = 0xa
943 RLIMIT_CORE = 0x4
944 RLIMIT_CPU = 0x0
945 RLIMIT_DATA = 0x2
946 RLIMIT_FSIZE = 0x1
947 RLIMIT_NOFILE = 0x8
948 RLIMIT_STACK = 0x3
949 RLIM_INFINITY = 0x7fffffffffffffff
950 RTAX_AUTHOR = 0x6
951 RTAX_BRD = 0x7
952 RTAX_DST = 0x0
953 RTAX_GATEWAY = 0x1
954 RTAX_GENMASK = 0x3
955 RTAX_IFA = 0x5
956 RTAX_IFP = 0x4
957 RTAX_MAX = 0xb
958 RTAX_MPLS1 = 0x8
959 RTAX_MPLS2 = 0x9
960 RTAX_MPLS3 = 0xa
961 RTAX_NETMASK = 0x2
962 RTA_AUTHOR = 0x40
963 RTA_BRD = 0x80
964 RTA_DST = 0x1
965 RTA_GATEWAY = 0x2
966 RTA_GENMASK = 0x8
967 RTA_IFA = 0x20
968 RTA_IFP = 0x10
969 RTA_MPLS1 = 0x100
970 RTA_MPLS2 = 0x200
971 RTA_MPLS3 = 0x400
972 RTA_NETMASK = 0x4
973 RTF_BLACKHOLE = 0x1000
974 RTF_BROADCAST = 0x400000
975 RTF_CLONING = 0x100
976 RTF_DONE = 0x40
977 RTF_DYNAMIC = 0x10
978 RTF_GATEWAY = 0x2
979 RTF_HOST = 0x4
980 RTF_LLINFO = 0x400
981 RTF_LOCAL = 0x200000
982 RTF_MODIFIED = 0x20
983 RTF_MPLSOPS = 0x1000000
984 RTF_MULTICAST = 0x800000
985 RTF_PINNED = 0x100000
986 RTF_PRCLONING = 0x10000
987 RTF_PROTO1 = 0x8000
988 RTF_PROTO2 = 0x4000
989 RTF_PROTO3 = 0x40000
990 RTF_REJECT = 0x8
991 RTF_STATIC = 0x800
992 RTF_UP = 0x1
993 RTF_WASCLONED = 0x20000
994 RTF_XRESOLVE = 0x200
995 RTM_ADD = 0x1
996 RTM_CHANGE = 0x3
997 RTM_DELADDR = 0xd
998 RTM_DELETE = 0x2
999 RTM_DELMADDR = 0x10
1000 RTM_GET = 0x4
1001 RTM_IEEE80211 = 0x12
1002 RTM_IFANNOUNCE = 0x11
1003 RTM_IFINFO = 0xe
1004 RTM_LOCK = 0x8
1005 RTM_LOSING = 0x5
1006 RTM_MISS = 0x7
1007 RTM_NEWADDR = 0xc
1008 RTM_NEWMADDR = 0xf
1009 RTM_OLDADD = 0x9
1010 RTM_OLDDEL = 0xa
1011 RTM_REDIRECT = 0x6
1012 RTM_RESOLVE = 0xb
1013 RTM_RTTUNIT = 0xf4240
1014 RTM_VERSION = 0x6
1015 RTV_EXPIRE = 0x4
1016 RTV_HOPCOUNT = 0x2
1017 RTV_IWCAPSEGS = 0x400
1018 RTV_IWMAXSEGS = 0x200
1019 RTV_MSL = 0x100
1020 RTV_MTU = 0x1
1021 RTV_RPIPE = 0x8
1022 RTV_RTT = 0x40
1023 RTV_RTTVAR = 0x80
1024 RTV_SPIPE = 0x10
1025 RTV_SSTHRESH = 0x20
1026 RUSAGE_CHILDREN = -0x1
1027 RUSAGE_SELF = 0x0
1028 SCM_CREDS = 0x3
1029 SCM_RIGHTS = 0x1
1030 SCM_TIMESTAMP = 0x2
1031 SHUT_RD = 0x0
1032 SHUT_RDWR = 0x2
1033 SHUT_WR = 0x1
1034 SIOCADDMULTI = 0x80206931
1035 SIOCADDRT = 0x8030720a
1036 SIOCAIFADDR = 0x8040691a
1037 SIOCALIFADDR = 0x8118691b
1038 SIOCATMARK = 0x40047307
1039 SIOCDELMULTI = 0x80206932
1040 SIOCDELRT = 0x8030720b
1041 SIOCDIFADDR = 0x80206919
1042 SIOCDIFPHYADDR = 0x80206949
1043 SIOCDLIFADDR = 0x8118691d
1044 SIOCGDRVSPEC = 0xc01c697b
1045 SIOCGETSGCNT = 0xc0147210
1046 SIOCGETVIFCNT = 0xc014720f
1047 SIOCGHIWAT = 0x40047301
1048 SIOCGIFADDR = 0xc0206921
1049 SIOCGIFBRDADDR = 0xc0206923
1050 SIOCGIFCAP = 0xc020691f
1051 SIOCGIFCONF = 0xc0086924
1052 SIOCGIFDATA = 0xc0206926
1053 SIOCGIFDSTADDR = 0xc0206922
1054 SIOCGIFFLAGS = 0xc0206911
1055 SIOCGIFGENERIC = 0xc020693a
1056 SIOCGIFGMEMB = 0xc024698a
1057 SIOCGIFINDEX = 0xc0206920
1058 SIOCGIFMEDIA = 0xc0286938
1059 SIOCGIFMETRIC = 0xc0206917
1060 SIOCGIFMTU = 0xc0206933
1061 SIOCGIFNETMASK = 0xc0206925
1062 SIOCGIFPDSTADDR = 0xc0206948
1063 SIOCGIFPHYS = 0xc0206935
1064 SIOCGIFPOLLCPU = 0xc020697e
1065 SIOCGIFPSRCADDR = 0xc0206947
1066 SIOCGIFSTATUS = 0xc331693b
1067 SIOCGIFTSOLEN = 0xc0206980
1068 SIOCGLIFADDR = 0xc118691c
1069 SIOCGLIFPHYADDR = 0xc118694b
1070 SIOCGLOWAT = 0x40047303
1071 SIOCGPGRP = 0x40047309
1072 SIOCGPRIVATE_0 = 0xc0206950
1073 SIOCGPRIVATE_1 = 0xc0206951
1074 SIOCIFCREATE = 0xc020697a
1075 SIOCIFCREATE2 = 0xc020697c
1076 SIOCIFDESTROY = 0x80206979
1077 SIOCIFGCLONERS = 0xc00c6978
1078 SIOCSDRVSPEC = 0x801c697b
1079 SIOCSHIWAT = 0x80047300
1080 SIOCSIFADDR = 0x8020690c
1081 SIOCSIFBRDADDR = 0x80206913
1082 SIOCSIFCAP = 0x8020691e
1083 SIOCSIFDSTADDR = 0x8020690e
1084 SIOCSIFFLAGS = 0x80206910
1085 SIOCSIFGENERIC = 0x80206939
1086 SIOCSIFLLADDR = 0x8020693c
1087 SIOCSIFMEDIA = 0xc0206937
1088 SIOCSIFMETRIC = 0x80206918
1089 SIOCSIFMTU = 0x80206934
1090 SIOCSIFNAME = 0x80206928
1091 SIOCSIFNETMASK = 0x80206916
1092 SIOCSIFPHYADDR = 0x80406946
1093 SIOCSIFPHYS = 0x80206936
1094 SIOCSIFPOLLCPU = 0x8020697d
1095 SIOCSIFTSOLEN = 0x8020697f
1096 SIOCSLIFPHYADDR = 0x8118694a
1097 SIOCSLOWAT = 0x80047302
1098 SIOCSPGRP = 0x80047308
1099 SOCK_DGRAM = 0x2
1100 SOCK_MAXADDRLEN = 0xff
1101 SOCK_RAW = 0x3
1102 SOCK_RDM = 0x4
1103 SOCK_SEQPACKET = 0x5
1104 SOCK_STREAM = 0x1
1105 SOL_SOCKET = 0xffff
1106 SOMAXCONN = 0x80
1107 SO_ACCEPTCONN = 0x2
1108 SO_ACCEPTFILTER = 0x1000
1109 SO_BROADCAST = 0x20
1110 SO_DEBUG = 0x1
1111 SO_DONTROUTE = 0x10
1112 SO_ERROR = 0x1007
1113 SO_KEEPALIVE = 0x8
1114 SO_LINGER = 0x80
1115 SO_NOSIGPIPE = 0x800
1116 SO_OOBINLINE = 0x100
1117 SO_RCVBUF = 0x1002
1118 SO_RCVLOWAT = 0x1004
1119 SO_RCVTIMEO = 0x1006
1120 SO_REUSEADDR = 0x4
1121 SO_REUSEPORT = 0x200
1122 SO_SNDBUF = 0x1001
1123 SO_SNDLOWAT = 0x1003
1124 SO_SNDSPACE = 0x100a
1125 SO_SNDTIMEO = 0x1005
1126 SO_TIMESTAMP = 0x400
1127 SO_TYPE = 0x1008
1128 SO_USELOOPBACK = 0x40
1129 TCIFLUSH = 0x1
1130 TCIOFLUSH = 0x3
1131 TCOFLUSH = 0x2
1132 TCP_FASTKEEP = 0x80
1133 TCP_KEEPCNT = 0x400
1134 TCP_KEEPIDLE = 0x100
1135 TCP_KEEPINIT = 0x20
1136 TCP_KEEPINTVL = 0x200
1137 TCP_MAXBURST = 0x4
1138 TCP_MAXHLEN = 0x3c
1139 TCP_MAXOLEN = 0x28
1140 TCP_MAXSEG = 0x2
1141 TCP_MAXWIN = 0xffff
1142 TCP_MAX_WINSHIFT = 0xe
1143 TCP_MINMSS = 0x100
1144 TCP_MIN_WINSHIFT = 0x5
1145 TCP_MSS = 0x200
1146 TCP_NODELAY = 0x1
1147 TCP_NOOPT = 0x8
1148 TCP_NOPUSH = 0x4
1149 TCP_SIGNATURE_ENABLE = 0x10
1150 TCSAFLUSH = 0x2
1151 TIOCCBRK = 0x2000747a
1152 TIOCCDTR = 0x20007478
1153 TIOCCONS = 0x80047462
1154 TIOCDCDTIMESTAMP = 0x40087458
1155 TIOCDRAIN = 0x2000745e
1156 TIOCEXCL = 0x2000740d
1157 TIOCEXT = 0x80047460
1158 TIOCFLUSH = 0x80047410
1159 TIOCGDRAINWAIT = 0x40047456
1160 TIOCGETA = 0x402c7413
1161 TIOCGETD = 0x4004741a
1162 TIOCGPGRP = 0x40047477
1163 TIOCGSID = 0x40047463
1164 TIOCGSIZE = 0x40087468
1165 TIOCGWINSZ = 0x40087468
1166 TIOCISPTMASTER = 0x20007455
1167 TIOCMBIC = 0x8004746b
1168 TIOCMBIS = 0x8004746c
1169 TIOCMGDTRWAIT = 0x4004745a
1170 TIOCMGET = 0x4004746a
1171 TIOCMODG = 0x40047403
1172 TIOCMODS = 0x80047404
1173 TIOCMSDTRWAIT = 0x8004745b
1174 TIOCMSET = 0x8004746d
1175 TIOCM_CAR = 0x40
1176 TIOCM_CD = 0x40
1177 TIOCM_CTS = 0x20
1178 TIOCM_DSR = 0x100
1179 TIOCM_DTR = 0x2
1180 TIOCM_LE = 0x1
1181 TIOCM_RI = 0x80
1182 TIOCM_RNG = 0x80
1183 TIOCM_RTS = 0x4
1184 TIOCM_SR = 0x10
1185 TIOCM_ST = 0x8
1186 TIOCNOTTY = 0x20007471
1187 TIOCNXCL = 0x2000740e
1188 TIOCOUTQ = 0x40047473
1189 TIOCPKT = 0x80047470
1190 TIOCPKT_DATA = 0x0
1191 TIOCPKT_DOSTOP = 0x20
1192 TIOCPKT_FLUSHREAD = 0x1
1193 TIOCPKT_FLUSHWRITE = 0x2
1194 TIOCPKT_IOCTL = 0x40
1195 TIOCPKT_NOSTOP = 0x10
1196 TIOCPKT_START = 0x8
1197 TIOCPKT_STOP = 0x4
1198 TIOCREMOTE = 0x80047469
1199 TIOCSBRK = 0x2000747b
1200 TIOCSCTTY = 0x20007461
1201 TIOCSDRAINWAIT = 0x80047457
1202 TIOCSDTR = 0x20007479
1203 TIOCSETA = 0x802c7414
1204 TIOCSETAF = 0x802c7416
1205 TIOCSETAW = 0x802c7415
1206 TIOCSETD = 0x8004741b
1207 TIOCSIG = 0x2000745f
1208 TIOCSPGRP = 0x80047476
1209 TIOCSSIZE = 0x80087467
1210 TIOCSTART = 0x2000746e
1211 TIOCSTAT = 0x20007465
1212 TIOCSTI = 0x80017472
1213 TIOCSTOP = 0x2000746f
1214 TIOCSWINSZ = 0x80087467
1215 TIOCTIMESTAMP = 0x40087459
1216 TIOCUCNTL = 0x80047466
1217 TOSTOP = 0x400000
1218 VCHECKPT = 0x13
1219 VDISCARD = 0xf
1220 VDSUSP = 0xb
1221 VEOF = 0x0
1222 VEOL = 0x1
1223 VEOL2 = 0x2
1224 VERASE = 0x3
1225 VERASE2 = 0x7
1226 VINTR = 0x8
1227 VKILL = 0x5
1228 VLNEXT = 0xe
1229 VMIN = 0x10
1230 VQUIT = 0x9
1231 VREPRINT = 0x6
1232 VSTART = 0xc
1233 VSTATUS = 0x12
1234 VSTOP = 0xd
1235 VSUSP = 0xa
1236 VTIME = 0x11
1237 VWERASE = 0x4
1238 WCONTINUED = 0x4
1239 WCOREFLAG = 0x80
1240 WLINUXCLONE = 0x80000000
1241 WNOHANG = 0x1
1242 WSTOPPED = 0x7f
1243 WUNTRACED = 0x2
1244)
1245
1246// Errors
1247const (
1248 E2BIG = syscall.Errno(0x7)
1249 EACCES = syscall.Errno(0xd)
1250 EADDRINUSE = syscall.Errno(0x30)
1251 EADDRNOTAVAIL = syscall.Errno(0x31)
1252 EAFNOSUPPORT = syscall.Errno(0x2f)
1253 EAGAIN = syscall.Errno(0x23)
1254 EALREADY = syscall.Errno(0x25)
1255 EASYNC = syscall.Errno(0x63)
1256 EAUTH = syscall.Errno(0x50)
1257 EBADF = syscall.Errno(0x9)
1258 EBADMSG = syscall.Errno(0x59)
1259 EBADRPC = syscall.Errno(0x48)
1260 EBUSY = syscall.Errno(0x10)
1261 ECANCELED = syscall.Errno(0x55)
1262 ECHILD = syscall.Errno(0xa)
1263 ECONNABORTED = syscall.Errno(0x35)
1264 ECONNREFUSED = syscall.Errno(0x3d)
1265 ECONNRESET = syscall.Errno(0x36)
1266 EDEADLK = syscall.Errno(0xb)
1267 EDESTADDRREQ = syscall.Errno(0x27)
1268 EDOM = syscall.Errno(0x21)
1269 EDOOFUS = syscall.Errno(0x58)
1270 EDQUOT = syscall.Errno(0x45)
1271 EEXIST = syscall.Errno(0x11)
1272 EFAULT = syscall.Errno(0xe)
1273 EFBIG = syscall.Errno(0x1b)
1274 EFTYPE = syscall.Errno(0x4f)
1275 EHOSTDOWN = syscall.Errno(0x40)
1276 EHOSTUNREACH = syscall.Errno(0x41)
1277 EIDRM = syscall.Errno(0x52)
1278 EILSEQ = syscall.Errno(0x56)
1279 EINPROGRESS = syscall.Errno(0x24)
1280 EINTR = syscall.Errno(0x4)
1281 EINVAL = syscall.Errno(0x16)
1282 EIO = syscall.Errno(0x5)
1283 EISCONN = syscall.Errno(0x38)
1284 EISDIR = syscall.Errno(0x15)
1285 ELAST = syscall.Errno(0x63)
1286 ELOOP = syscall.Errno(0x3e)
1287 EMFILE = syscall.Errno(0x18)
1288 EMLINK = syscall.Errno(0x1f)
1289 EMSGSIZE = syscall.Errno(0x28)
1290 EMULTIHOP = syscall.Errno(0x5a)
1291 ENAMETOOLONG = syscall.Errno(0x3f)
1292 ENEEDAUTH = syscall.Errno(0x51)
1293 ENETDOWN = syscall.Errno(0x32)
1294 ENETRESET = syscall.Errno(0x34)
1295 ENETUNREACH = syscall.Errno(0x33)
1296 ENFILE = syscall.Errno(0x17)
1297 ENOATTR = syscall.Errno(0x57)
1298 ENOBUFS = syscall.Errno(0x37)
1299 ENODEV = syscall.Errno(0x13)
1300 ENOENT = syscall.Errno(0x2)
1301 ENOEXEC = syscall.Errno(0x8)
1302 ENOLCK = syscall.Errno(0x4d)
1303 ENOLINK = syscall.Errno(0x5b)
1304 ENOMEDIUM = syscall.Errno(0x5d)
1305 ENOMEM = syscall.Errno(0xc)
1306 ENOMSG = syscall.Errno(0x53)
1307 ENOPROTOOPT = syscall.Errno(0x2a)
1308 ENOSPC = syscall.Errno(0x1c)
1309 ENOSYS = syscall.Errno(0x4e)
1310 ENOTBLK = syscall.Errno(0xf)
1311 ENOTCONN = syscall.Errno(0x39)
1312 ENOTDIR = syscall.Errno(0x14)
1313 ENOTEMPTY = syscall.Errno(0x42)
1314 ENOTSOCK = syscall.Errno(0x26)
1315 ENOTSUP = syscall.Errno(0x2d)
1316 ENOTTY = syscall.Errno(0x19)
1317 ENXIO = syscall.Errno(0x6)
1318 EOPNOTSUPP = syscall.Errno(0x2d)
1319 EOVERFLOW = syscall.Errno(0x54)
1320 EPERM = syscall.Errno(0x1)
1321 EPFNOSUPPORT = syscall.Errno(0x2e)
1322 EPIPE = syscall.Errno(0x20)
1323 EPROCLIM = syscall.Errno(0x43)
1324 EPROCUNAVAIL = syscall.Errno(0x4c)
1325 EPROGMISMATCH = syscall.Errno(0x4b)
1326 EPROGUNAVAIL = syscall.Errno(0x4a)
1327 EPROTO = syscall.Errno(0x5c)
1328 EPROTONOSUPPORT = syscall.Errno(0x2b)
1329 EPROTOTYPE = syscall.Errno(0x29)
1330 ERANGE = syscall.Errno(0x22)
1331 EREMOTE = syscall.Errno(0x47)
1332 EROFS = syscall.Errno(0x1e)
1333 ERPCMISMATCH = syscall.Errno(0x49)
1334 ESHUTDOWN = syscall.Errno(0x3a)
1335 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1336 ESPIPE = syscall.Errno(0x1d)
1337 ESRCH = syscall.Errno(0x3)
1338 ESTALE = syscall.Errno(0x46)
1339 ETIMEDOUT = syscall.Errno(0x3c)
1340 ETOOMANYREFS = syscall.Errno(0x3b)
1341 ETXTBSY = syscall.Errno(0x1a)
1342 EUNUSED94 = syscall.Errno(0x5e)
1343 EUNUSED95 = syscall.Errno(0x5f)
1344 EUNUSED96 = syscall.Errno(0x60)
1345 EUNUSED97 = syscall.Errno(0x61)
1346 EUNUSED98 = syscall.Errno(0x62)
1347 EUSERS = syscall.Errno(0x44)
1348 EWOULDBLOCK = syscall.Errno(0x23)
1349 EXDEV = syscall.Errno(0x12)
1350)
1351
1352// Signals
1353const (
1354 SIGABRT = syscall.Signal(0x6)
1355 SIGALRM = syscall.Signal(0xe)
1356 SIGBUS = syscall.Signal(0xa)
1357 SIGCHLD = syscall.Signal(0x14)
1358 SIGCKPT = syscall.Signal(0x21)
1359 SIGCKPTEXIT = syscall.Signal(0x22)
1360 SIGCONT = syscall.Signal(0x13)
1361 SIGEMT = syscall.Signal(0x7)
1362 SIGFPE = syscall.Signal(0x8)
1363 SIGHUP = syscall.Signal(0x1)
1364 SIGILL = syscall.Signal(0x4)
1365 SIGINFO = syscall.Signal(0x1d)
1366 SIGINT = syscall.Signal(0x2)
1367 SIGIO = syscall.Signal(0x17)
1368 SIGIOT = syscall.Signal(0x6)
1369 SIGKILL = syscall.Signal(0x9)
1370 SIGPIPE = syscall.Signal(0xd)
1371 SIGPROF = syscall.Signal(0x1b)
1372 SIGQUIT = syscall.Signal(0x3)
1373 SIGSEGV = syscall.Signal(0xb)
1374 SIGSTOP = syscall.Signal(0x11)
1375 SIGSYS = syscall.Signal(0xc)
1376 SIGTERM = syscall.Signal(0xf)
1377 SIGTHR = syscall.Signal(0x20)
1378 SIGTRAP = syscall.Signal(0x5)
1379 SIGTSTP = syscall.Signal(0x12)
1380 SIGTTIN = syscall.Signal(0x15)
1381 SIGTTOU = syscall.Signal(0x16)
1382 SIGURG = syscall.Signal(0x10)
1383 SIGUSR1 = syscall.Signal(0x1e)
1384 SIGUSR2 = syscall.Signal(0x1f)
1385 SIGVTALRM = syscall.Signal(0x1a)
1386 SIGWINCH = syscall.Signal(0x1c)
1387 SIGXCPU = syscall.Signal(0x18)
1388 SIGXFSZ = syscall.Signal(0x19)
1389)
1390
1391// Error table
1392var errors = [...]string{
1393 1: "operation not permitted",
1394 2: "no such file or directory",
1395 3: "no such process",
1396 4: "interrupted system call",
1397 5: "input/output error",
1398 6: "device not configured",
1399 7: "argument list too long",
1400 8: "exec format error",
1401 9: "bad file descriptor",
1402 10: "no child processes",
1403 11: "resource deadlock avoided",
1404 12: "cannot allocate memory",
1405 13: "permission denied",
1406 14: "bad address",
1407 15: "block device required",
1408 16: "device busy",
1409 17: "file exists",
1410 18: "cross-device link",
1411 19: "operation not supported by device",
1412 20: "not a directory",
1413 21: "is a directory",
1414 22: "invalid argument",
1415 23: "too many open files in system",
1416 24: "too many open files",
1417 25: "inappropriate ioctl for device",
1418 26: "text file busy",
1419 27: "file too large",
1420 28: "no space left on device",
1421 29: "illegal seek",
1422 30: "read-only file system",
1423 31: "too many links",
1424 32: "broken pipe",
1425 33: "numerical argument out of domain",
1426 34: "result too large",
1427 35: "resource temporarily unavailable",
1428 36: "operation now in progress",
1429 37: "operation already in progress",
1430 38: "socket operation on non-socket",
1431 39: "destination address required",
1432 40: "message too long",
1433 41: "protocol wrong type for socket",
1434 42: "protocol not available",
1435 43: "protocol not supported",
1436 44: "socket type not supported",
1437 45: "operation not supported",
1438 46: "protocol family not supported",
1439 47: "address family not supported by protocol family",
1440 48: "address already in use",
1441 49: "can't assign requested address",
1442 50: "network is down",
1443 51: "network is unreachable",
1444 52: "network dropped connection on reset",
1445 53: "software caused connection abort",
1446 54: "connection reset by peer",
1447 55: "no buffer space available",
1448 56: "socket is already connected",
1449 57: "socket is not connected",
1450 58: "can't send after socket shutdown",
1451 59: "too many references: can't splice",
1452 60: "operation timed out",
1453 61: "connection refused",
1454 62: "too many levels of symbolic links",
1455 63: "file name too long",
1456 64: "host is down",
1457 65: "no route to host",
1458 66: "directory not empty",
1459 67: "too many processes",
1460 68: "too many users",
1461 69: "disc quota exceeded",
1462 70: "stale NFS file handle",
1463 71: "too many levels of remote in path",
1464 72: "RPC struct is bad",
1465 73: "RPC version wrong",
1466 74: "RPC prog. not avail",
1467 75: "program version wrong",
1468 76: "bad procedure for program",
1469 77: "no locks available",
1470 78: "function not implemented",
1471 79: "inappropriate file type or format",
1472 80: "authentication error",
1473 81: "need authenticator",
1474 82: "identifier removed",
1475 83: "no message of desired type",
1476 84: "value too large to be stored in data type",
1477 85: "operation canceled",
1478 86: "illegal byte sequence",
1479 87: "attribute not found",
1480 88: "programming error",
1481 89: "bad message",
1482 90: "multihop attempted",
1483 91: "link has been severed",
1484 92: "protocol error",
1485 93: "no medium found",
1486 94: "unknown error: 94",
1487 95: "unknown error: 95",
1488 96: "unknown error: 96",
1489 97: "unknown error: 97",
1490 98: "unknown error: 98",
1491 99: "unknown error: 99",
1492}
1493
1494// Signal table
1495var signals = [...]string{
1496 1: "hangup",
1497 2: "interrupt",
1498 3: "quit",
1499 4: "illegal instruction",
1500 5: "trace/BPT trap",
1501 6: "abort trap",
1502 7: "EMT trap",
1503 8: "floating point exception",
1504 9: "killed",
1505 10: "bus error",
1506 11: "segmentation fault",
1507 12: "bad system call",
1508 13: "broken pipe",
1509 14: "alarm clock",
1510 15: "terminated",
1511 16: "urgent I/O condition",
1512 17: "suspended (signal)",
1513 18: "suspended",
1514 19: "continued",
1515 20: "child exited",
1516 21: "stopped (tty input)",
1517 22: "stopped (tty output)",
1518 23: "I/O possible",
1519 24: "cputime limit exceeded",
1520 25: "filesize limit exceeded",
1521 26: "virtual timer expired",
1522 27: "profiling timer expired",
1523 28: "window size changes",
1524 29: "information request",
1525 30: "user defined signal 1",
1526 31: "user defined signal 2",
1527 32: "thread Scheduler",
1528 33: "checkPoint",
1529 34: "checkPointExit",
1530}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
deleted file mode 100644
index 0feceee..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
+++ /dev/null
@@ -1,1530 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,dragonfly
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_ATM = 0x1e
16 AF_BLUETOOTH = 0x21
17 AF_CCITT = 0xa
18 AF_CHAOS = 0x5
19 AF_CNT = 0x15
20 AF_COIP = 0x14
21 AF_DATAKIT = 0x9
22 AF_DECnet = 0xc
23 AF_DLI = 0xd
24 AF_E164 = 0x1a
25 AF_ECMA = 0x8
26 AF_HYLINK = 0xf
27 AF_IEEE80211 = 0x23
28 AF_IMPLINK = 0x3
29 AF_INET = 0x2
30 AF_INET6 = 0x1c
31 AF_IPX = 0x17
32 AF_ISDN = 0x1a
33 AF_ISO = 0x7
34 AF_LAT = 0xe
35 AF_LINK = 0x12
36 AF_LOCAL = 0x1
37 AF_MAX = 0x24
38 AF_MPLS = 0x22
39 AF_NATM = 0x1d
40 AF_NETGRAPH = 0x20
41 AF_NS = 0x6
42 AF_OSI = 0x7
43 AF_PUP = 0x4
44 AF_ROUTE = 0x11
45 AF_SIP = 0x18
46 AF_SNA = 0xb
47 AF_UNIX = 0x1
48 AF_UNSPEC = 0x0
49 B0 = 0x0
50 B110 = 0x6e
51 B115200 = 0x1c200
52 B1200 = 0x4b0
53 B134 = 0x86
54 B14400 = 0x3840
55 B150 = 0x96
56 B1800 = 0x708
57 B19200 = 0x4b00
58 B200 = 0xc8
59 B230400 = 0x38400
60 B2400 = 0x960
61 B28800 = 0x7080
62 B300 = 0x12c
63 B38400 = 0x9600
64 B4800 = 0x12c0
65 B50 = 0x32
66 B57600 = 0xe100
67 B600 = 0x258
68 B7200 = 0x1c20
69 B75 = 0x4b
70 B76800 = 0x12c00
71 B9600 = 0x2580
72 BIOCFLUSH = 0x20004268
73 BIOCGBLEN = 0x40044266
74 BIOCGDLT = 0x4004426a
75 BIOCGDLTLIST = 0xc0104279
76 BIOCGETIF = 0x4020426b
77 BIOCGHDRCMPLT = 0x40044274
78 BIOCGRSIG = 0x40044272
79 BIOCGRTIMEOUT = 0x4010426e
80 BIOCGSEESENT = 0x40044276
81 BIOCGSTATS = 0x4008426f
82 BIOCIMMEDIATE = 0x80044270
83 BIOCLOCK = 0x2000427a
84 BIOCPROMISC = 0x20004269
85 BIOCSBLEN = 0xc0044266
86 BIOCSDLT = 0x80044278
87 BIOCSETF = 0x80104267
88 BIOCSETIF = 0x8020426c
89 BIOCSETWF = 0x8010427b
90 BIOCSHDRCMPLT = 0x80044275
91 BIOCSRSIG = 0x80044273
92 BIOCSRTIMEOUT = 0x8010426d
93 BIOCSSEESENT = 0x80044277
94 BIOCVERSION = 0x40044271
95 BPF_A = 0x10
96 BPF_ABS = 0x20
97 BPF_ADD = 0x0
98 BPF_ALIGNMENT = 0x8
99 BPF_ALU = 0x4
100 BPF_AND = 0x50
101 BPF_B = 0x10
102 BPF_DEFAULTBUFSIZE = 0x1000
103 BPF_DIV = 0x30
104 BPF_H = 0x8
105 BPF_IMM = 0x0
106 BPF_IND = 0x40
107 BPF_JA = 0x0
108 BPF_JEQ = 0x10
109 BPF_JGE = 0x30
110 BPF_JGT = 0x20
111 BPF_JMP = 0x5
112 BPF_JSET = 0x40
113 BPF_K = 0x0
114 BPF_LD = 0x0
115 BPF_LDX = 0x1
116 BPF_LEN = 0x80
117 BPF_LSH = 0x60
118 BPF_MAJOR_VERSION = 0x1
119 BPF_MAXBUFSIZE = 0x80000
120 BPF_MAXINSNS = 0x200
121 BPF_MAX_CLONES = 0x80
122 BPF_MEM = 0x60
123 BPF_MEMWORDS = 0x10
124 BPF_MINBUFSIZE = 0x20
125 BPF_MINOR_VERSION = 0x1
126 BPF_MISC = 0x7
127 BPF_MSH = 0xa0
128 BPF_MUL = 0x20
129 BPF_NEG = 0x80
130 BPF_OR = 0x40
131 BPF_RELEASE = 0x30bb6
132 BPF_RET = 0x6
133 BPF_RSH = 0x70
134 BPF_ST = 0x2
135 BPF_STX = 0x3
136 BPF_SUB = 0x10
137 BPF_TAX = 0x0
138 BPF_TXA = 0x80
139 BPF_W = 0x0
140 BPF_X = 0x8
141 BRKINT = 0x2
142 CFLUSH = 0xf
143 CLOCAL = 0x8000
144 CREAD = 0x800
145 CS5 = 0x0
146 CS6 = 0x100
147 CS7 = 0x200
148 CS8 = 0x300
149 CSIZE = 0x300
150 CSTART = 0x11
151 CSTATUS = 0x14
152 CSTOP = 0x13
153 CSTOPB = 0x400
154 CSUSP = 0x1a
155 CTL_MAXNAME = 0xc
156 CTL_NET = 0x4
157 DLT_A429 = 0xb8
158 DLT_A653_ICM = 0xb9
159 DLT_AIRONET_HEADER = 0x78
160 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
161 DLT_ARCNET = 0x7
162 DLT_ARCNET_LINUX = 0x81
163 DLT_ATM_CLIP = 0x13
164 DLT_ATM_RFC1483 = 0xb
165 DLT_AURORA = 0x7e
166 DLT_AX25 = 0x3
167 DLT_AX25_KISS = 0xca
168 DLT_BACNET_MS_TP = 0xa5
169 DLT_BLUETOOTH_HCI_H4 = 0xbb
170 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
171 DLT_CAN20B = 0xbe
172 DLT_CHAOS = 0x5
173 DLT_CHDLC = 0x68
174 DLT_CISCO_IOS = 0x76
175 DLT_C_HDLC = 0x68
176 DLT_C_HDLC_WITH_DIR = 0xcd
177 DLT_DOCSIS = 0x8f
178 DLT_ECONET = 0x73
179 DLT_EN10MB = 0x1
180 DLT_EN3MB = 0x2
181 DLT_ENC = 0x6d
182 DLT_ERF = 0xc5
183 DLT_ERF_ETH = 0xaf
184 DLT_ERF_POS = 0xb0
185 DLT_FDDI = 0xa
186 DLT_FLEXRAY = 0xd2
187 DLT_FRELAY = 0x6b
188 DLT_FRELAY_WITH_DIR = 0xce
189 DLT_GCOM_SERIAL = 0xad
190 DLT_GCOM_T1E1 = 0xac
191 DLT_GPF_F = 0xab
192 DLT_GPF_T = 0xaa
193 DLT_GPRS_LLC = 0xa9
194 DLT_HHDLC = 0x79
195 DLT_IBM_SN = 0x92
196 DLT_IBM_SP = 0x91
197 DLT_IEEE802 = 0x6
198 DLT_IEEE802_11 = 0x69
199 DLT_IEEE802_11_RADIO = 0x7f
200 DLT_IEEE802_11_RADIO_AVS = 0xa3
201 DLT_IEEE802_15_4 = 0xc3
202 DLT_IEEE802_15_4_LINUX = 0xbf
203 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
204 DLT_IEEE802_16_MAC_CPS = 0xbc
205 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
206 DLT_IPFILTER = 0x74
207 DLT_IPMB = 0xc7
208 DLT_IPMB_LINUX = 0xd1
209 DLT_IP_OVER_FC = 0x7a
210 DLT_JUNIPER_ATM1 = 0x89
211 DLT_JUNIPER_ATM2 = 0x87
212 DLT_JUNIPER_CHDLC = 0xb5
213 DLT_JUNIPER_ES = 0x84
214 DLT_JUNIPER_ETHER = 0xb2
215 DLT_JUNIPER_FRELAY = 0xb4
216 DLT_JUNIPER_GGSN = 0x85
217 DLT_JUNIPER_ISM = 0xc2
218 DLT_JUNIPER_MFR = 0x86
219 DLT_JUNIPER_MLFR = 0x83
220 DLT_JUNIPER_MLPPP = 0x82
221 DLT_JUNIPER_MONITOR = 0xa4
222 DLT_JUNIPER_PIC_PEER = 0xae
223 DLT_JUNIPER_PPP = 0xb3
224 DLT_JUNIPER_PPPOE = 0xa7
225 DLT_JUNIPER_PPPOE_ATM = 0xa8
226 DLT_JUNIPER_SERVICES = 0x88
227 DLT_JUNIPER_ST = 0xc8
228 DLT_JUNIPER_VP = 0xb7
229 DLT_LAPB_WITH_DIR = 0xcf
230 DLT_LAPD = 0xcb
231 DLT_LIN = 0xd4
232 DLT_LINUX_IRDA = 0x90
233 DLT_LINUX_LAPD = 0xb1
234 DLT_LINUX_SLL = 0x71
235 DLT_LOOP = 0x6c
236 DLT_LTALK = 0x72
237 DLT_MFR = 0xb6
238 DLT_MOST = 0xd3
239 DLT_MTP2 = 0x8c
240 DLT_MTP2_WITH_PHDR = 0x8b
241 DLT_MTP3 = 0x8d
242 DLT_NULL = 0x0
243 DLT_PCI_EXP = 0x7d
244 DLT_PFLOG = 0x75
245 DLT_PFSYNC = 0x12
246 DLT_PPI = 0xc0
247 DLT_PPP = 0x9
248 DLT_PPP_BSDOS = 0x10
249 DLT_PPP_ETHER = 0x33
250 DLT_PPP_PPPD = 0xa6
251 DLT_PPP_SERIAL = 0x32
252 DLT_PPP_WITH_DIR = 0xcc
253 DLT_PRISM_HEADER = 0x77
254 DLT_PRONET = 0x4
255 DLT_RAIF1 = 0xc6
256 DLT_RAW = 0xc
257 DLT_REDBACK_SMARTEDGE = 0x20
258 DLT_RIO = 0x7c
259 DLT_SCCP = 0x8e
260 DLT_SITA = 0xc4
261 DLT_SLIP = 0x8
262 DLT_SLIP_BSDOS = 0xf
263 DLT_SUNATM = 0x7b
264 DLT_SYMANTEC_FIREWALL = 0x63
265 DLT_TZSP = 0x80
266 DLT_USB = 0xba
267 DLT_USB_LINUX = 0xbd
268 DLT_X2E_SERIAL = 0xd5
269 DLT_X2E_XORAYA = 0xd6
270 DT_BLK = 0x6
271 DT_CHR = 0x2
272 DT_DBF = 0xf
273 DT_DIR = 0x4
274 DT_FIFO = 0x1
275 DT_LNK = 0xa
276 DT_REG = 0x8
277 DT_SOCK = 0xc
278 DT_UNKNOWN = 0x0
279 DT_WHT = 0xe
280 ECHO = 0x8
281 ECHOCTL = 0x40
282 ECHOE = 0x2
283 ECHOK = 0x4
284 ECHOKE = 0x1
285 ECHONL = 0x10
286 ECHOPRT = 0x20
287 EVFILT_AIO = -0x3
288 EVFILT_EXCEPT = -0x8
289 EVFILT_MARKER = 0xf
290 EVFILT_PROC = -0x5
291 EVFILT_READ = -0x1
292 EVFILT_SIGNAL = -0x6
293 EVFILT_SYSCOUNT = 0x8
294 EVFILT_TIMER = -0x7
295 EVFILT_VNODE = -0x4
296 EVFILT_WRITE = -0x2
297 EV_ADD = 0x1
298 EV_CLEAR = 0x20
299 EV_DELETE = 0x2
300 EV_DISABLE = 0x8
301 EV_ENABLE = 0x4
302 EV_EOF = 0x8000
303 EV_ERROR = 0x4000
304 EV_FLAG1 = 0x2000
305 EV_NODATA = 0x1000
306 EV_ONESHOT = 0x10
307 EV_SYSFLAGS = 0xf000
308 EXTA = 0x4b00
309 EXTB = 0x9600
310 EXTEXIT_LWP = 0x10000
311 EXTEXIT_PROC = 0x0
312 EXTEXIT_SETINT = 0x1
313 EXTEXIT_SIMPLE = 0x0
314 EXTPROC = 0x800
315 FD_CLOEXEC = 0x1
316 FD_SETSIZE = 0x400
317 FLUSHO = 0x800000
318 F_DUP2FD = 0xa
319 F_DUP2FD_CLOEXEC = 0x12
320 F_DUPFD = 0x0
321 F_DUPFD_CLOEXEC = 0x11
322 F_GETFD = 0x1
323 F_GETFL = 0x3
324 F_GETLK = 0x7
325 F_GETOWN = 0x5
326 F_OK = 0x0
327 F_RDLCK = 0x1
328 F_SETFD = 0x2
329 F_SETFL = 0x4
330 F_SETLK = 0x8
331 F_SETLKW = 0x9
332 F_SETOWN = 0x6
333 F_UNLCK = 0x2
334 F_WRLCK = 0x3
335 HUPCL = 0x4000
336 ICANON = 0x100
337 ICMP6_FILTER = 0x12
338 ICRNL = 0x100
339 IEXTEN = 0x400
340 IFAN_ARRIVAL = 0x0
341 IFAN_DEPARTURE = 0x1
342 IFF_ALLMULTI = 0x200
343 IFF_ALTPHYS = 0x4000
344 IFF_BROADCAST = 0x2
345 IFF_CANTCHANGE = 0x118e72
346 IFF_DEBUG = 0x4
347 IFF_LINK0 = 0x1000
348 IFF_LINK1 = 0x2000
349 IFF_LINK2 = 0x4000
350 IFF_LOOPBACK = 0x8
351 IFF_MONITOR = 0x40000
352 IFF_MULTICAST = 0x8000
353 IFF_NOARP = 0x80
354 IFF_NPOLLING = 0x100000
355 IFF_OACTIVE = 0x400
356 IFF_OACTIVE_COMPAT = 0x400
357 IFF_POINTOPOINT = 0x10
358 IFF_POLLING = 0x10000
359 IFF_POLLING_COMPAT = 0x10000
360 IFF_PPROMISC = 0x20000
361 IFF_PROMISC = 0x100
362 IFF_RUNNING = 0x40
363 IFF_SIMPLEX = 0x800
364 IFF_SMART = 0x20
365 IFF_STATICARP = 0x80000
366 IFF_UP = 0x1
367 IFNAMSIZ = 0x10
368 IFT_1822 = 0x2
369 IFT_A12MPPSWITCH = 0x82
370 IFT_AAL2 = 0xbb
371 IFT_AAL5 = 0x31
372 IFT_ADSL = 0x5e
373 IFT_AFLANE8023 = 0x3b
374 IFT_AFLANE8025 = 0x3c
375 IFT_ARAP = 0x58
376 IFT_ARCNET = 0x23
377 IFT_ARCNETPLUS = 0x24
378 IFT_ASYNC = 0x54
379 IFT_ATM = 0x25
380 IFT_ATMDXI = 0x69
381 IFT_ATMFUNI = 0x6a
382 IFT_ATMIMA = 0x6b
383 IFT_ATMLOGICAL = 0x50
384 IFT_ATMRADIO = 0xbd
385 IFT_ATMSUBINTERFACE = 0x86
386 IFT_ATMVCIENDPT = 0xc2
387 IFT_ATMVIRTUAL = 0x95
388 IFT_BGPPOLICYACCOUNTING = 0xa2
389 IFT_BRIDGE = 0xd1
390 IFT_BSC = 0x53
391 IFT_CARP = 0xf8
392 IFT_CCTEMUL = 0x3d
393 IFT_CEPT = 0x13
394 IFT_CES = 0x85
395 IFT_CHANNEL = 0x46
396 IFT_CNR = 0x55
397 IFT_COFFEE = 0x84
398 IFT_COMPOSITELINK = 0x9b
399 IFT_DCN = 0x8d
400 IFT_DIGITALPOWERLINE = 0x8a
401 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
402 IFT_DLSW = 0x4a
403 IFT_DOCSCABLEDOWNSTREAM = 0x80
404 IFT_DOCSCABLEMACLAYER = 0x7f
405 IFT_DOCSCABLEUPSTREAM = 0x81
406 IFT_DS0 = 0x51
407 IFT_DS0BUNDLE = 0x52
408 IFT_DS1FDL = 0xaa
409 IFT_DS3 = 0x1e
410 IFT_DTM = 0x8c
411 IFT_DVBASILN = 0xac
412 IFT_DVBASIOUT = 0xad
413 IFT_DVBRCCDOWNSTREAM = 0x93
414 IFT_DVBRCCMACLAYER = 0x92
415 IFT_DVBRCCUPSTREAM = 0x94
416 IFT_ENC = 0xf4
417 IFT_EON = 0x19
418 IFT_EPLRS = 0x57
419 IFT_ESCON = 0x49
420 IFT_ETHER = 0x6
421 IFT_FAITH = 0xf2
422 IFT_FAST = 0x7d
423 IFT_FASTETHER = 0x3e
424 IFT_FASTETHERFX = 0x45
425 IFT_FDDI = 0xf
426 IFT_FIBRECHANNEL = 0x38
427 IFT_FRAMERELAYINTERCONNECT = 0x3a
428 IFT_FRAMERELAYMPI = 0x5c
429 IFT_FRDLCIENDPT = 0xc1
430 IFT_FRELAY = 0x20
431 IFT_FRELAYDCE = 0x2c
432 IFT_FRF16MFRBUNDLE = 0xa3
433 IFT_FRFORWARD = 0x9e
434 IFT_G703AT2MB = 0x43
435 IFT_G703AT64K = 0x42
436 IFT_GIF = 0xf0
437 IFT_GIGABITETHERNET = 0x75
438 IFT_GR303IDT = 0xb2
439 IFT_GR303RDT = 0xb1
440 IFT_H323GATEKEEPER = 0xa4
441 IFT_H323PROXY = 0xa5
442 IFT_HDH1822 = 0x3
443 IFT_HDLC = 0x76
444 IFT_HDSL2 = 0xa8
445 IFT_HIPERLAN2 = 0xb7
446 IFT_HIPPI = 0x2f
447 IFT_HIPPIINTERFACE = 0x39
448 IFT_HOSTPAD = 0x5a
449 IFT_HSSI = 0x2e
450 IFT_HY = 0xe
451 IFT_IBM370PARCHAN = 0x48
452 IFT_IDSL = 0x9a
453 IFT_IEEE1394 = 0x90
454 IFT_IEEE80211 = 0x47
455 IFT_IEEE80212 = 0x37
456 IFT_IEEE8023ADLAG = 0xa1
457 IFT_IFGSN = 0x91
458 IFT_IMT = 0xbe
459 IFT_INTERLEAVE = 0x7c
460 IFT_IP = 0x7e
461 IFT_IPFORWARD = 0x8e
462 IFT_IPOVERATM = 0x72
463 IFT_IPOVERCDLC = 0x6d
464 IFT_IPOVERCLAW = 0x6e
465 IFT_IPSWITCH = 0x4e
466 IFT_ISDN = 0x3f
467 IFT_ISDNBASIC = 0x14
468 IFT_ISDNPRIMARY = 0x15
469 IFT_ISDNS = 0x4b
470 IFT_ISDNU = 0x4c
471 IFT_ISO88022LLC = 0x29
472 IFT_ISO88023 = 0x7
473 IFT_ISO88024 = 0x8
474 IFT_ISO88025 = 0x9
475 IFT_ISO88025CRFPINT = 0x62
476 IFT_ISO88025DTR = 0x56
477 IFT_ISO88025FIBER = 0x73
478 IFT_ISO88026 = 0xa
479 IFT_ISUP = 0xb3
480 IFT_L2VLAN = 0x87
481 IFT_L3IPVLAN = 0x88
482 IFT_L3IPXVLAN = 0x89
483 IFT_LAPB = 0x10
484 IFT_LAPD = 0x4d
485 IFT_LAPF = 0x77
486 IFT_LOCALTALK = 0x2a
487 IFT_LOOP = 0x18
488 IFT_MEDIAMAILOVERIP = 0x8b
489 IFT_MFSIGLINK = 0xa7
490 IFT_MIOX25 = 0x26
491 IFT_MODEM = 0x30
492 IFT_MPC = 0x71
493 IFT_MPLS = 0xa6
494 IFT_MPLSTUNNEL = 0x96
495 IFT_MSDSL = 0x8f
496 IFT_MVL = 0xbf
497 IFT_MYRINET = 0x63
498 IFT_NFAS = 0xaf
499 IFT_NSIP = 0x1b
500 IFT_OPTICALCHANNEL = 0xc3
501 IFT_OPTICALTRANSPORT = 0xc4
502 IFT_OTHER = 0x1
503 IFT_P10 = 0xc
504 IFT_P80 = 0xd
505 IFT_PARA = 0x22
506 IFT_PFLOG = 0xf5
507 IFT_PFSYNC = 0xf6
508 IFT_PLC = 0xae
509 IFT_POS = 0xab
510 IFT_PPP = 0x17
511 IFT_PPPMULTILINKBUNDLE = 0x6c
512 IFT_PROPBWAP2MP = 0xb8
513 IFT_PROPCNLS = 0x59
514 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
515 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
516 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
517 IFT_PROPMUX = 0x36
518 IFT_PROPVIRTUAL = 0x35
519 IFT_PROPWIRELESSP2P = 0x9d
520 IFT_PTPSERIAL = 0x16
521 IFT_PVC = 0xf1
522 IFT_QLLC = 0x44
523 IFT_RADIOMAC = 0xbc
524 IFT_RADSL = 0x5f
525 IFT_REACHDSL = 0xc0
526 IFT_RFC1483 = 0x9f
527 IFT_RS232 = 0x21
528 IFT_RSRB = 0x4f
529 IFT_SDLC = 0x11
530 IFT_SDSL = 0x60
531 IFT_SHDSL = 0xa9
532 IFT_SIP = 0x1f
533 IFT_SLIP = 0x1c
534 IFT_SMDSDXI = 0x2b
535 IFT_SMDSICIP = 0x34
536 IFT_SONET = 0x27
537 IFT_SONETOVERHEADCHANNEL = 0xb9
538 IFT_SONETPATH = 0x32
539 IFT_SONETVT = 0x33
540 IFT_SRP = 0x97
541 IFT_SS7SIGLINK = 0x9c
542 IFT_STACKTOSTACK = 0x6f
543 IFT_STARLAN = 0xb
544 IFT_STF = 0xf3
545 IFT_T1 = 0x12
546 IFT_TDLC = 0x74
547 IFT_TERMPAD = 0x5b
548 IFT_TR008 = 0xb0
549 IFT_TRANSPHDLC = 0x7b
550 IFT_TUNNEL = 0x83
551 IFT_ULTRA = 0x1d
552 IFT_USB = 0xa0
553 IFT_V11 = 0x40
554 IFT_V35 = 0x2d
555 IFT_V36 = 0x41
556 IFT_V37 = 0x78
557 IFT_VDSL = 0x61
558 IFT_VIRTUALIPADDRESS = 0x70
559 IFT_VOICEEM = 0x64
560 IFT_VOICEENCAP = 0x67
561 IFT_VOICEFXO = 0x65
562 IFT_VOICEFXS = 0x66
563 IFT_VOICEOVERATM = 0x98
564 IFT_VOICEOVERFRAMERELAY = 0x99
565 IFT_VOICEOVERIP = 0x68
566 IFT_X213 = 0x5d
567 IFT_X25 = 0x5
568 IFT_X25DDN = 0x4
569 IFT_X25HUNTGROUP = 0x7a
570 IFT_X25MLP = 0x79
571 IFT_X25PLE = 0x28
572 IFT_XETHER = 0x1a
573 IGNBRK = 0x1
574 IGNCR = 0x80
575 IGNPAR = 0x4
576 IMAXBEL = 0x2000
577 INLCR = 0x40
578 INPCK = 0x10
579 IN_CLASSA_HOST = 0xffffff
580 IN_CLASSA_MAX = 0x80
581 IN_CLASSA_NET = 0xff000000
582 IN_CLASSA_NSHIFT = 0x18
583 IN_CLASSB_HOST = 0xffff
584 IN_CLASSB_MAX = 0x10000
585 IN_CLASSB_NET = 0xffff0000
586 IN_CLASSB_NSHIFT = 0x10
587 IN_CLASSC_HOST = 0xff
588 IN_CLASSC_NET = 0xffffff00
589 IN_CLASSC_NSHIFT = 0x8
590 IN_CLASSD_HOST = 0xfffffff
591 IN_CLASSD_NET = 0xf0000000
592 IN_CLASSD_NSHIFT = 0x1c
593 IN_LOOPBACKNET = 0x7f
594 IPPROTO_3PC = 0x22
595 IPPROTO_ADFS = 0x44
596 IPPROTO_AH = 0x33
597 IPPROTO_AHIP = 0x3d
598 IPPROTO_APES = 0x63
599 IPPROTO_ARGUS = 0xd
600 IPPROTO_AX25 = 0x5d
601 IPPROTO_BHA = 0x31
602 IPPROTO_BLT = 0x1e
603 IPPROTO_BRSATMON = 0x4c
604 IPPROTO_CARP = 0x70
605 IPPROTO_CFTP = 0x3e
606 IPPROTO_CHAOS = 0x10
607 IPPROTO_CMTP = 0x26
608 IPPROTO_CPHB = 0x49
609 IPPROTO_CPNX = 0x48
610 IPPROTO_DDP = 0x25
611 IPPROTO_DGP = 0x56
612 IPPROTO_DIVERT = 0xfe
613 IPPROTO_DONE = 0x101
614 IPPROTO_DSTOPTS = 0x3c
615 IPPROTO_EGP = 0x8
616 IPPROTO_EMCON = 0xe
617 IPPROTO_ENCAP = 0x62
618 IPPROTO_EON = 0x50
619 IPPROTO_ESP = 0x32
620 IPPROTO_ETHERIP = 0x61
621 IPPROTO_FRAGMENT = 0x2c
622 IPPROTO_GGP = 0x3
623 IPPROTO_GMTP = 0x64
624 IPPROTO_GRE = 0x2f
625 IPPROTO_HELLO = 0x3f
626 IPPROTO_HMP = 0x14
627 IPPROTO_HOPOPTS = 0x0
628 IPPROTO_ICMP = 0x1
629 IPPROTO_ICMPV6 = 0x3a
630 IPPROTO_IDP = 0x16
631 IPPROTO_IDPR = 0x23
632 IPPROTO_IDRP = 0x2d
633 IPPROTO_IGMP = 0x2
634 IPPROTO_IGP = 0x55
635 IPPROTO_IGRP = 0x58
636 IPPROTO_IL = 0x28
637 IPPROTO_INLSP = 0x34
638 IPPROTO_INP = 0x20
639 IPPROTO_IP = 0x0
640 IPPROTO_IPCOMP = 0x6c
641 IPPROTO_IPCV = 0x47
642 IPPROTO_IPEIP = 0x5e
643 IPPROTO_IPIP = 0x4
644 IPPROTO_IPPC = 0x43
645 IPPROTO_IPV4 = 0x4
646 IPPROTO_IPV6 = 0x29
647 IPPROTO_IRTP = 0x1c
648 IPPROTO_KRYPTOLAN = 0x41
649 IPPROTO_LARP = 0x5b
650 IPPROTO_LEAF1 = 0x19
651 IPPROTO_LEAF2 = 0x1a
652 IPPROTO_MAX = 0x100
653 IPPROTO_MAXID = 0x34
654 IPPROTO_MEAS = 0x13
655 IPPROTO_MHRP = 0x30
656 IPPROTO_MICP = 0x5f
657 IPPROTO_MOBILE = 0x37
658 IPPROTO_MTP = 0x5c
659 IPPROTO_MUX = 0x12
660 IPPROTO_ND = 0x4d
661 IPPROTO_NHRP = 0x36
662 IPPROTO_NONE = 0x3b
663 IPPROTO_NSP = 0x1f
664 IPPROTO_NVPII = 0xb
665 IPPROTO_OSPFIGP = 0x59
666 IPPROTO_PFSYNC = 0xf0
667 IPPROTO_PGM = 0x71
668 IPPROTO_PIGP = 0x9
669 IPPROTO_PIM = 0x67
670 IPPROTO_PRM = 0x15
671 IPPROTO_PUP = 0xc
672 IPPROTO_PVP = 0x4b
673 IPPROTO_RAW = 0xff
674 IPPROTO_RCCMON = 0xa
675 IPPROTO_RDP = 0x1b
676 IPPROTO_ROUTING = 0x2b
677 IPPROTO_RSVP = 0x2e
678 IPPROTO_RVD = 0x42
679 IPPROTO_SATEXPAK = 0x40
680 IPPROTO_SATMON = 0x45
681 IPPROTO_SCCSP = 0x60
682 IPPROTO_SCTP = 0x84
683 IPPROTO_SDRP = 0x2a
684 IPPROTO_SEP = 0x21
685 IPPROTO_SKIP = 0x39
686 IPPROTO_SRPC = 0x5a
687 IPPROTO_ST = 0x7
688 IPPROTO_SVMTP = 0x52
689 IPPROTO_SWIPE = 0x35
690 IPPROTO_TCF = 0x57
691 IPPROTO_TCP = 0x6
692 IPPROTO_TLSP = 0x38
693 IPPROTO_TP = 0x1d
694 IPPROTO_TPXX = 0x27
695 IPPROTO_TRUNK1 = 0x17
696 IPPROTO_TRUNK2 = 0x18
697 IPPROTO_TTP = 0x54
698 IPPROTO_UDP = 0x11
699 IPPROTO_UNKNOWN = 0x102
700 IPPROTO_VINES = 0x53
701 IPPROTO_VISA = 0x46
702 IPPROTO_VMTP = 0x51
703 IPPROTO_WBEXPAK = 0x4f
704 IPPROTO_WBMON = 0x4e
705 IPPROTO_WSN = 0x4a
706 IPPROTO_XNET = 0xf
707 IPPROTO_XTP = 0x24
708 IPV6_AUTOFLOWLABEL = 0x3b
709 IPV6_BINDV6ONLY = 0x1b
710 IPV6_CHECKSUM = 0x1a
711 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
712 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
713 IPV6_DEFHLIM = 0x40
714 IPV6_DONTFRAG = 0x3e
715 IPV6_DSTOPTS = 0x32
716 IPV6_FAITH = 0x1d
717 IPV6_FLOWINFO_MASK = 0xffffff0f
718 IPV6_FLOWLABEL_MASK = 0xffff0f00
719 IPV6_FRAGTTL = 0x78
720 IPV6_FW_ADD = 0x1e
721 IPV6_FW_DEL = 0x1f
722 IPV6_FW_FLUSH = 0x20
723 IPV6_FW_GET = 0x22
724 IPV6_FW_ZERO = 0x21
725 IPV6_HLIMDEC = 0x1
726 IPV6_HOPLIMIT = 0x2f
727 IPV6_HOPOPTS = 0x31
728 IPV6_IPSEC_POLICY = 0x1c
729 IPV6_JOIN_GROUP = 0xc
730 IPV6_LEAVE_GROUP = 0xd
731 IPV6_MAXHLIM = 0xff
732 IPV6_MAXPACKET = 0xffff
733 IPV6_MMTU = 0x500
734 IPV6_MSFILTER = 0x4a
735 IPV6_MULTICAST_HOPS = 0xa
736 IPV6_MULTICAST_IF = 0x9
737 IPV6_MULTICAST_LOOP = 0xb
738 IPV6_NEXTHOP = 0x30
739 IPV6_PATHMTU = 0x2c
740 IPV6_PKTINFO = 0x2e
741 IPV6_PKTOPTIONS = 0x34
742 IPV6_PORTRANGE = 0xe
743 IPV6_PORTRANGE_DEFAULT = 0x0
744 IPV6_PORTRANGE_HIGH = 0x1
745 IPV6_PORTRANGE_LOW = 0x2
746 IPV6_PREFER_TEMPADDR = 0x3f
747 IPV6_RECVDSTOPTS = 0x28
748 IPV6_RECVHOPLIMIT = 0x25
749 IPV6_RECVHOPOPTS = 0x27
750 IPV6_RECVPATHMTU = 0x2b
751 IPV6_RECVPKTINFO = 0x24
752 IPV6_RECVRTHDR = 0x26
753 IPV6_RECVTCLASS = 0x39
754 IPV6_RTHDR = 0x33
755 IPV6_RTHDRDSTOPTS = 0x23
756 IPV6_RTHDR_LOOSE = 0x0
757 IPV6_RTHDR_STRICT = 0x1
758 IPV6_RTHDR_TYPE_0 = 0x0
759 IPV6_SOCKOPT_RESERVED1 = 0x3
760 IPV6_TCLASS = 0x3d
761 IPV6_UNICAST_HOPS = 0x4
762 IPV6_USE_MIN_MTU = 0x2a
763 IPV6_V6ONLY = 0x1b
764 IPV6_VERSION = 0x60
765 IPV6_VERSION_MASK = 0xf0
766 IP_ADD_MEMBERSHIP = 0xc
767 IP_DEFAULT_MULTICAST_LOOP = 0x1
768 IP_DEFAULT_MULTICAST_TTL = 0x1
769 IP_DF = 0x4000
770 IP_DROP_MEMBERSHIP = 0xd
771 IP_DUMMYNET_CONFIGURE = 0x3c
772 IP_DUMMYNET_DEL = 0x3d
773 IP_DUMMYNET_FLUSH = 0x3e
774 IP_DUMMYNET_GET = 0x40
775 IP_FAITH = 0x16
776 IP_FW_ADD = 0x32
777 IP_FW_DEL = 0x33
778 IP_FW_FLUSH = 0x34
779 IP_FW_GET = 0x36
780 IP_FW_RESETLOG = 0x37
781 IP_FW_ZERO = 0x35
782 IP_HDRINCL = 0x2
783 IP_IPSEC_POLICY = 0x15
784 IP_MAXPACKET = 0xffff
785 IP_MAX_MEMBERSHIPS = 0x14
786 IP_MF = 0x2000
787 IP_MINTTL = 0x42
788 IP_MSS = 0x240
789 IP_MULTICAST_IF = 0x9
790 IP_MULTICAST_LOOP = 0xb
791 IP_MULTICAST_TTL = 0xa
792 IP_MULTICAST_VIF = 0xe
793 IP_OFFMASK = 0x1fff
794 IP_OPTIONS = 0x1
795 IP_PORTRANGE = 0x13
796 IP_PORTRANGE_DEFAULT = 0x0
797 IP_PORTRANGE_HIGH = 0x1
798 IP_PORTRANGE_LOW = 0x2
799 IP_RECVDSTADDR = 0x7
800 IP_RECVIF = 0x14
801 IP_RECVOPTS = 0x5
802 IP_RECVRETOPTS = 0x6
803 IP_RECVTTL = 0x41
804 IP_RETOPTS = 0x8
805 IP_RF = 0x8000
806 IP_RSVP_OFF = 0x10
807 IP_RSVP_ON = 0xf
808 IP_RSVP_VIF_OFF = 0x12
809 IP_RSVP_VIF_ON = 0x11
810 IP_TOS = 0x3
811 IP_TTL = 0x4
812 ISIG = 0x80
813 ISTRIP = 0x20
814 IXANY = 0x800
815 IXOFF = 0x400
816 IXON = 0x200
817 LOCK_EX = 0x2
818 LOCK_NB = 0x4
819 LOCK_SH = 0x1
820 LOCK_UN = 0x8
821 MADV_AUTOSYNC = 0x7
822 MADV_CONTROL_END = 0xb
823 MADV_CONTROL_START = 0xa
824 MADV_CORE = 0x9
825 MADV_DONTNEED = 0x4
826 MADV_FREE = 0x5
827 MADV_INVAL = 0xa
828 MADV_NOCORE = 0x8
829 MADV_NORMAL = 0x0
830 MADV_NOSYNC = 0x6
831 MADV_RANDOM = 0x1
832 MADV_SEQUENTIAL = 0x2
833 MADV_SETMAP = 0xb
834 MADV_WILLNEED = 0x3
835 MAP_ANON = 0x1000
836 MAP_COPY = 0x2
837 MAP_FILE = 0x0
838 MAP_FIXED = 0x10
839 MAP_HASSEMAPHORE = 0x200
840 MAP_INHERIT = 0x80
841 MAP_NOCORE = 0x20000
842 MAP_NOEXTEND = 0x100
843 MAP_NORESERVE = 0x40
844 MAP_NOSYNC = 0x800
845 MAP_PRIVATE = 0x2
846 MAP_RENAME = 0x20
847 MAP_SHARED = 0x1
848 MAP_SIZEALIGN = 0x40000
849 MAP_STACK = 0x400
850 MAP_TRYFIXED = 0x10000
851 MAP_VPAGETABLE = 0x2000
852 MCL_CURRENT = 0x1
853 MCL_FUTURE = 0x2
854 MSG_CTRUNC = 0x20
855 MSG_DONTROUTE = 0x4
856 MSG_DONTWAIT = 0x80
857 MSG_EOF = 0x100
858 MSG_EOR = 0x8
859 MSG_FBLOCKING = 0x10000
860 MSG_FMASK = 0xffff0000
861 MSG_FNONBLOCKING = 0x20000
862 MSG_NOSIGNAL = 0x400
863 MSG_NOTIFICATION = 0x200
864 MSG_OOB = 0x1
865 MSG_PEEK = 0x2
866 MSG_SYNC = 0x800
867 MSG_TRUNC = 0x10
868 MSG_WAITALL = 0x40
869 MS_ASYNC = 0x1
870 MS_INVALIDATE = 0x2
871 MS_SYNC = 0x0
872 NAME_MAX = 0xff
873 NET_RT_DUMP = 0x1
874 NET_RT_FLAGS = 0x2
875 NET_RT_IFLIST = 0x3
876 NET_RT_MAXID = 0x4
877 NOFLSH = 0x80000000
878 NOTE_ATTRIB = 0x8
879 NOTE_CHILD = 0x4
880 NOTE_DELETE = 0x1
881 NOTE_EXEC = 0x20000000
882 NOTE_EXIT = 0x80000000
883 NOTE_EXTEND = 0x4
884 NOTE_FORK = 0x40000000
885 NOTE_LINK = 0x10
886 NOTE_LOWAT = 0x1
887 NOTE_OOB = 0x2
888 NOTE_PCTRLMASK = 0xf0000000
889 NOTE_PDATAMASK = 0xfffff
890 NOTE_RENAME = 0x20
891 NOTE_REVOKE = 0x40
892 NOTE_TRACK = 0x1
893 NOTE_TRACKERR = 0x2
894 NOTE_WRITE = 0x2
895 OCRNL = 0x10
896 ONLCR = 0x2
897 ONLRET = 0x40
898 ONOCR = 0x20
899 ONOEOT = 0x8
900 OPOST = 0x1
901 O_ACCMODE = 0x3
902 O_APPEND = 0x8
903 O_ASYNC = 0x40
904 O_CLOEXEC = 0x20000
905 O_CREAT = 0x200
906 O_DIRECT = 0x10000
907 O_DIRECTORY = 0x8000000
908 O_EXCL = 0x800
909 O_EXLOCK = 0x20
910 O_FAPPEND = 0x100000
911 O_FASYNCWRITE = 0x800000
912 O_FBLOCKING = 0x40000
913 O_FBUFFERED = 0x2000000
914 O_FMASK = 0x7fc0000
915 O_FNONBLOCKING = 0x80000
916 O_FOFFSET = 0x200000
917 O_FSYNC = 0x80
918 O_FSYNCWRITE = 0x400000
919 O_FUNBUFFERED = 0x1000000
920 O_MAPONREAD = 0x4000000
921 O_NDELAY = 0x4
922 O_NOCTTY = 0x8000
923 O_NOFOLLOW = 0x100
924 O_NONBLOCK = 0x4
925 O_RDONLY = 0x0
926 O_RDWR = 0x2
927 O_SHLOCK = 0x10
928 O_SYNC = 0x80
929 O_TRUNC = 0x400
930 O_WRONLY = 0x1
931 PARENB = 0x1000
932 PARMRK = 0x8
933 PARODD = 0x2000
934 PENDIN = 0x20000000
935 PRIO_PGRP = 0x1
936 PRIO_PROCESS = 0x0
937 PRIO_USER = 0x2
938 PROT_EXEC = 0x4
939 PROT_NONE = 0x0
940 PROT_READ = 0x1
941 PROT_WRITE = 0x2
942 RLIMIT_AS = 0xa
943 RLIMIT_CORE = 0x4
944 RLIMIT_CPU = 0x0
945 RLIMIT_DATA = 0x2
946 RLIMIT_FSIZE = 0x1
947 RLIMIT_NOFILE = 0x8
948 RLIMIT_STACK = 0x3
949 RLIM_INFINITY = 0x7fffffffffffffff
950 RTAX_AUTHOR = 0x6
951 RTAX_BRD = 0x7
952 RTAX_DST = 0x0
953 RTAX_GATEWAY = 0x1
954 RTAX_GENMASK = 0x3
955 RTAX_IFA = 0x5
956 RTAX_IFP = 0x4
957 RTAX_MAX = 0xb
958 RTAX_MPLS1 = 0x8
959 RTAX_MPLS2 = 0x9
960 RTAX_MPLS3 = 0xa
961 RTAX_NETMASK = 0x2
962 RTA_AUTHOR = 0x40
963 RTA_BRD = 0x80
964 RTA_DST = 0x1
965 RTA_GATEWAY = 0x2
966 RTA_GENMASK = 0x8
967 RTA_IFA = 0x20
968 RTA_IFP = 0x10
969 RTA_MPLS1 = 0x100
970 RTA_MPLS2 = 0x200
971 RTA_MPLS3 = 0x400
972 RTA_NETMASK = 0x4
973 RTF_BLACKHOLE = 0x1000
974 RTF_BROADCAST = 0x400000
975 RTF_CLONING = 0x100
976 RTF_DONE = 0x40
977 RTF_DYNAMIC = 0x10
978 RTF_GATEWAY = 0x2
979 RTF_HOST = 0x4
980 RTF_LLINFO = 0x400
981 RTF_LOCAL = 0x200000
982 RTF_MODIFIED = 0x20
983 RTF_MPLSOPS = 0x1000000
984 RTF_MULTICAST = 0x800000
985 RTF_PINNED = 0x100000
986 RTF_PRCLONING = 0x10000
987 RTF_PROTO1 = 0x8000
988 RTF_PROTO2 = 0x4000
989 RTF_PROTO3 = 0x40000
990 RTF_REJECT = 0x8
991 RTF_STATIC = 0x800
992 RTF_UP = 0x1
993 RTF_WASCLONED = 0x20000
994 RTF_XRESOLVE = 0x200
995 RTM_ADD = 0x1
996 RTM_CHANGE = 0x3
997 RTM_DELADDR = 0xd
998 RTM_DELETE = 0x2
999 RTM_DELMADDR = 0x10
1000 RTM_GET = 0x4
1001 RTM_IEEE80211 = 0x12
1002 RTM_IFANNOUNCE = 0x11
1003 RTM_IFINFO = 0xe
1004 RTM_LOCK = 0x8
1005 RTM_LOSING = 0x5
1006 RTM_MISS = 0x7
1007 RTM_NEWADDR = 0xc
1008 RTM_NEWMADDR = 0xf
1009 RTM_OLDADD = 0x9
1010 RTM_OLDDEL = 0xa
1011 RTM_REDIRECT = 0x6
1012 RTM_RESOLVE = 0xb
1013 RTM_RTTUNIT = 0xf4240
1014 RTM_VERSION = 0x6
1015 RTV_EXPIRE = 0x4
1016 RTV_HOPCOUNT = 0x2
1017 RTV_IWCAPSEGS = 0x400
1018 RTV_IWMAXSEGS = 0x200
1019 RTV_MSL = 0x100
1020 RTV_MTU = 0x1
1021 RTV_RPIPE = 0x8
1022 RTV_RTT = 0x40
1023 RTV_RTTVAR = 0x80
1024 RTV_SPIPE = 0x10
1025 RTV_SSTHRESH = 0x20
1026 RUSAGE_CHILDREN = -0x1
1027 RUSAGE_SELF = 0x0
1028 SCM_CREDS = 0x3
1029 SCM_RIGHTS = 0x1
1030 SCM_TIMESTAMP = 0x2
1031 SHUT_RD = 0x0
1032 SHUT_RDWR = 0x2
1033 SHUT_WR = 0x1
1034 SIOCADDMULTI = 0x80206931
1035 SIOCADDRT = 0x8040720a
1036 SIOCAIFADDR = 0x8040691a
1037 SIOCALIFADDR = 0x8118691b
1038 SIOCATMARK = 0x40047307
1039 SIOCDELMULTI = 0x80206932
1040 SIOCDELRT = 0x8040720b
1041 SIOCDIFADDR = 0x80206919
1042 SIOCDIFPHYADDR = 0x80206949
1043 SIOCDLIFADDR = 0x8118691d
1044 SIOCGDRVSPEC = 0xc028697b
1045 SIOCGETSGCNT = 0xc0207210
1046 SIOCGETVIFCNT = 0xc028720f
1047 SIOCGHIWAT = 0x40047301
1048 SIOCGIFADDR = 0xc0206921
1049 SIOCGIFBRDADDR = 0xc0206923
1050 SIOCGIFCAP = 0xc020691f
1051 SIOCGIFCONF = 0xc0106924
1052 SIOCGIFDATA = 0xc0206926
1053 SIOCGIFDSTADDR = 0xc0206922
1054 SIOCGIFFLAGS = 0xc0206911
1055 SIOCGIFGENERIC = 0xc020693a
1056 SIOCGIFGMEMB = 0xc028698a
1057 SIOCGIFINDEX = 0xc0206920
1058 SIOCGIFMEDIA = 0xc0306938
1059 SIOCGIFMETRIC = 0xc0206917
1060 SIOCGIFMTU = 0xc0206933
1061 SIOCGIFNETMASK = 0xc0206925
1062 SIOCGIFPDSTADDR = 0xc0206948
1063 SIOCGIFPHYS = 0xc0206935
1064 SIOCGIFPOLLCPU = 0xc020697e
1065 SIOCGIFPSRCADDR = 0xc0206947
1066 SIOCGIFSTATUS = 0xc331693b
1067 SIOCGIFTSOLEN = 0xc0206980
1068 SIOCGLIFADDR = 0xc118691c
1069 SIOCGLIFPHYADDR = 0xc118694b
1070 SIOCGLOWAT = 0x40047303
1071 SIOCGPGRP = 0x40047309
1072 SIOCGPRIVATE_0 = 0xc0206950
1073 SIOCGPRIVATE_1 = 0xc0206951
1074 SIOCIFCREATE = 0xc020697a
1075 SIOCIFCREATE2 = 0xc020697c
1076 SIOCIFDESTROY = 0x80206979
1077 SIOCIFGCLONERS = 0xc0106978
1078 SIOCSDRVSPEC = 0x8028697b
1079 SIOCSHIWAT = 0x80047300
1080 SIOCSIFADDR = 0x8020690c
1081 SIOCSIFBRDADDR = 0x80206913
1082 SIOCSIFCAP = 0x8020691e
1083 SIOCSIFDSTADDR = 0x8020690e
1084 SIOCSIFFLAGS = 0x80206910
1085 SIOCSIFGENERIC = 0x80206939
1086 SIOCSIFLLADDR = 0x8020693c
1087 SIOCSIFMEDIA = 0xc0206937
1088 SIOCSIFMETRIC = 0x80206918
1089 SIOCSIFMTU = 0x80206934
1090 SIOCSIFNAME = 0x80206928
1091 SIOCSIFNETMASK = 0x80206916
1092 SIOCSIFPHYADDR = 0x80406946
1093 SIOCSIFPHYS = 0x80206936
1094 SIOCSIFPOLLCPU = 0x8020697d
1095 SIOCSIFTSOLEN = 0x8020697f
1096 SIOCSLIFPHYADDR = 0x8118694a
1097 SIOCSLOWAT = 0x80047302
1098 SIOCSPGRP = 0x80047308
1099 SOCK_DGRAM = 0x2
1100 SOCK_MAXADDRLEN = 0xff
1101 SOCK_RAW = 0x3
1102 SOCK_RDM = 0x4
1103 SOCK_SEQPACKET = 0x5
1104 SOCK_STREAM = 0x1
1105 SOL_SOCKET = 0xffff
1106 SOMAXCONN = 0x80
1107 SO_ACCEPTCONN = 0x2
1108 SO_ACCEPTFILTER = 0x1000
1109 SO_BROADCAST = 0x20
1110 SO_DEBUG = 0x1
1111 SO_DONTROUTE = 0x10
1112 SO_ERROR = 0x1007
1113 SO_KEEPALIVE = 0x8
1114 SO_LINGER = 0x80
1115 SO_NOSIGPIPE = 0x800
1116 SO_OOBINLINE = 0x100
1117 SO_RCVBUF = 0x1002
1118 SO_RCVLOWAT = 0x1004
1119 SO_RCVTIMEO = 0x1006
1120 SO_REUSEADDR = 0x4
1121 SO_REUSEPORT = 0x200
1122 SO_SNDBUF = 0x1001
1123 SO_SNDLOWAT = 0x1003
1124 SO_SNDSPACE = 0x100a
1125 SO_SNDTIMEO = 0x1005
1126 SO_TIMESTAMP = 0x400
1127 SO_TYPE = 0x1008
1128 SO_USELOOPBACK = 0x40
1129 TCIFLUSH = 0x1
1130 TCIOFLUSH = 0x3
1131 TCOFLUSH = 0x2
1132 TCP_FASTKEEP = 0x80
1133 TCP_KEEPCNT = 0x400
1134 TCP_KEEPIDLE = 0x100
1135 TCP_KEEPINIT = 0x20
1136 TCP_KEEPINTVL = 0x200
1137 TCP_MAXBURST = 0x4
1138 TCP_MAXHLEN = 0x3c
1139 TCP_MAXOLEN = 0x28
1140 TCP_MAXSEG = 0x2
1141 TCP_MAXWIN = 0xffff
1142 TCP_MAX_WINSHIFT = 0xe
1143 TCP_MINMSS = 0x100
1144 TCP_MIN_WINSHIFT = 0x5
1145 TCP_MSS = 0x200
1146 TCP_NODELAY = 0x1
1147 TCP_NOOPT = 0x8
1148 TCP_NOPUSH = 0x4
1149 TCP_SIGNATURE_ENABLE = 0x10
1150 TCSAFLUSH = 0x2
1151 TIOCCBRK = 0x2000747a
1152 TIOCCDTR = 0x20007478
1153 TIOCCONS = 0x80047462
1154 TIOCDCDTIMESTAMP = 0x40107458
1155 TIOCDRAIN = 0x2000745e
1156 TIOCEXCL = 0x2000740d
1157 TIOCEXT = 0x80047460
1158 TIOCFLUSH = 0x80047410
1159 TIOCGDRAINWAIT = 0x40047456
1160 TIOCGETA = 0x402c7413
1161 TIOCGETD = 0x4004741a
1162 TIOCGPGRP = 0x40047477
1163 TIOCGSID = 0x40047463
1164 TIOCGSIZE = 0x40087468
1165 TIOCGWINSZ = 0x40087468
1166 TIOCISPTMASTER = 0x20007455
1167 TIOCMBIC = 0x8004746b
1168 TIOCMBIS = 0x8004746c
1169 TIOCMGDTRWAIT = 0x4004745a
1170 TIOCMGET = 0x4004746a
1171 TIOCMODG = 0x40047403
1172 TIOCMODS = 0x80047404
1173 TIOCMSDTRWAIT = 0x8004745b
1174 TIOCMSET = 0x8004746d
1175 TIOCM_CAR = 0x40
1176 TIOCM_CD = 0x40
1177 TIOCM_CTS = 0x20
1178 TIOCM_DSR = 0x100
1179 TIOCM_DTR = 0x2
1180 TIOCM_LE = 0x1
1181 TIOCM_RI = 0x80
1182 TIOCM_RNG = 0x80
1183 TIOCM_RTS = 0x4
1184 TIOCM_SR = 0x10
1185 TIOCM_ST = 0x8
1186 TIOCNOTTY = 0x20007471
1187 TIOCNXCL = 0x2000740e
1188 TIOCOUTQ = 0x40047473
1189 TIOCPKT = 0x80047470
1190 TIOCPKT_DATA = 0x0
1191 TIOCPKT_DOSTOP = 0x20
1192 TIOCPKT_FLUSHREAD = 0x1
1193 TIOCPKT_FLUSHWRITE = 0x2
1194 TIOCPKT_IOCTL = 0x40
1195 TIOCPKT_NOSTOP = 0x10
1196 TIOCPKT_START = 0x8
1197 TIOCPKT_STOP = 0x4
1198 TIOCREMOTE = 0x80047469
1199 TIOCSBRK = 0x2000747b
1200 TIOCSCTTY = 0x20007461
1201 TIOCSDRAINWAIT = 0x80047457
1202 TIOCSDTR = 0x20007479
1203 TIOCSETA = 0x802c7414
1204 TIOCSETAF = 0x802c7416
1205 TIOCSETAW = 0x802c7415
1206 TIOCSETD = 0x8004741b
1207 TIOCSIG = 0x2000745f
1208 TIOCSPGRP = 0x80047476
1209 TIOCSSIZE = 0x80087467
1210 TIOCSTART = 0x2000746e
1211 TIOCSTAT = 0x20007465
1212 TIOCSTI = 0x80017472
1213 TIOCSTOP = 0x2000746f
1214 TIOCSWINSZ = 0x80087467
1215 TIOCTIMESTAMP = 0x40107459
1216 TIOCUCNTL = 0x80047466
1217 TOSTOP = 0x400000
1218 VCHECKPT = 0x13
1219 VDISCARD = 0xf
1220 VDSUSP = 0xb
1221 VEOF = 0x0
1222 VEOL = 0x1
1223 VEOL2 = 0x2
1224 VERASE = 0x3
1225 VERASE2 = 0x7
1226 VINTR = 0x8
1227 VKILL = 0x5
1228 VLNEXT = 0xe
1229 VMIN = 0x10
1230 VQUIT = 0x9
1231 VREPRINT = 0x6
1232 VSTART = 0xc
1233 VSTATUS = 0x12
1234 VSTOP = 0xd
1235 VSUSP = 0xa
1236 VTIME = 0x11
1237 VWERASE = 0x4
1238 WCONTINUED = 0x4
1239 WCOREFLAG = 0x80
1240 WLINUXCLONE = 0x80000000
1241 WNOHANG = 0x1
1242 WSTOPPED = 0x7f
1243 WUNTRACED = 0x2
1244)
1245
1246// Errors
1247const (
1248 E2BIG = syscall.Errno(0x7)
1249 EACCES = syscall.Errno(0xd)
1250 EADDRINUSE = syscall.Errno(0x30)
1251 EADDRNOTAVAIL = syscall.Errno(0x31)
1252 EAFNOSUPPORT = syscall.Errno(0x2f)
1253 EAGAIN = syscall.Errno(0x23)
1254 EALREADY = syscall.Errno(0x25)
1255 EASYNC = syscall.Errno(0x63)
1256 EAUTH = syscall.Errno(0x50)
1257 EBADF = syscall.Errno(0x9)
1258 EBADMSG = syscall.Errno(0x59)
1259 EBADRPC = syscall.Errno(0x48)
1260 EBUSY = syscall.Errno(0x10)
1261 ECANCELED = syscall.Errno(0x55)
1262 ECHILD = syscall.Errno(0xa)
1263 ECONNABORTED = syscall.Errno(0x35)
1264 ECONNREFUSED = syscall.Errno(0x3d)
1265 ECONNRESET = syscall.Errno(0x36)
1266 EDEADLK = syscall.Errno(0xb)
1267 EDESTADDRREQ = syscall.Errno(0x27)
1268 EDOM = syscall.Errno(0x21)
1269 EDOOFUS = syscall.Errno(0x58)
1270 EDQUOT = syscall.Errno(0x45)
1271 EEXIST = syscall.Errno(0x11)
1272 EFAULT = syscall.Errno(0xe)
1273 EFBIG = syscall.Errno(0x1b)
1274 EFTYPE = syscall.Errno(0x4f)
1275 EHOSTDOWN = syscall.Errno(0x40)
1276 EHOSTUNREACH = syscall.Errno(0x41)
1277 EIDRM = syscall.Errno(0x52)
1278 EILSEQ = syscall.Errno(0x56)
1279 EINPROGRESS = syscall.Errno(0x24)
1280 EINTR = syscall.Errno(0x4)
1281 EINVAL = syscall.Errno(0x16)
1282 EIO = syscall.Errno(0x5)
1283 EISCONN = syscall.Errno(0x38)
1284 EISDIR = syscall.Errno(0x15)
1285 ELAST = syscall.Errno(0x63)
1286 ELOOP = syscall.Errno(0x3e)
1287 EMFILE = syscall.Errno(0x18)
1288 EMLINK = syscall.Errno(0x1f)
1289 EMSGSIZE = syscall.Errno(0x28)
1290 EMULTIHOP = syscall.Errno(0x5a)
1291 ENAMETOOLONG = syscall.Errno(0x3f)
1292 ENEEDAUTH = syscall.Errno(0x51)
1293 ENETDOWN = syscall.Errno(0x32)
1294 ENETRESET = syscall.Errno(0x34)
1295 ENETUNREACH = syscall.Errno(0x33)
1296 ENFILE = syscall.Errno(0x17)
1297 ENOATTR = syscall.Errno(0x57)
1298 ENOBUFS = syscall.Errno(0x37)
1299 ENODEV = syscall.Errno(0x13)
1300 ENOENT = syscall.Errno(0x2)
1301 ENOEXEC = syscall.Errno(0x8)
1302 ENOLCK = syscall.Errno(0x4d)
1303 ENOLINK = syscall.Errno(0x5b)
1304 ENOMEDIUM = syscall.Errno(0x5d)
1305 ENOMEM = syscall.Errno(0xc)
1306 ENOMSG = syscall.Errno(0x53)
1307 ENOPROTOOPT = syscall.Errno(0x2a)
1308 ENOSPC = syscall.Errno(0x1c)
1309 ENOSYS = syscall.Errno(0x4e)
1310 ENOTBLK = syscall.Errno(0xf)
1311 ENOTCONN = syscall.Errno(0x39)
1312 ENOTDIR = syscall.Errno(0x14)
1313 ENOTEMPTY = syscall.Errno(0x42)
1314 ENOTSOCK = syscall.Errno(0x26)
1315 ENOTSUP = syscall.Errno(0x2d)
1316 ENOTTY = syscall.Errno(0x19)
1317 ENXIO = syscall.Errno(0x6)
1318 EOPNOTSUPP = syscall.Errno(0x2d)
1319 EOVERFLOW = syscall.Errno(0x54)
1320 EPERM = syscall.Errno(0x1)
1321 EPFNOSUPPORT = syscall.Errno(0x2e)
1322 EPIPE = syscall.Errno(0x20)
1323 EPROCLIM = syscall.Errno(0x43)
1324 EPROCUNAVAIL = syscall.Errno(0x4c)
1325 EPROGMISMATCH = syscall.Errno(0x4b)
1326 EPROGUNAVAIL = syscall.Errno(0x4a)
1327 EPROTO = syscall.Errno(0x5c)
1328 EPROTONOSUPPORT = syscall.Errno(0x2b)
1329 EPROTOTYPE = syscall.Errno(0x29)
1330 ERANGE = syscall.Errno(0x22)
1331 EREMOTE = syscall.Errno(0x47)
1332 EROFS = syscall.Errno(0x1e)
1333 ERPCMISMATCH = syscall.Errno(0x49)
1334 ESHUTDOWN = syscall.Errno(0x3a)
1335 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1336 ESPIPE = syscall.Errno(0x1d)
1337 ESRCH = syscall.Errno(0x3)
1338 ESTALE = syscall.Errno(0x46)
1339 ETIMEDOUT = syscall.Errno(0x3c)
1340 ETOOMANYREFS = syscall.Errno(0x3b)
1341 ETXTBSY = syscall.Errno(0x1a)
1342 EUNUSED94 = syscall.Errno(0x5e)
1343 EUNUSED95 = syscall.Errno(0x5f)
1344 EUNUSED96 = syscall.Errno(0x60)
1345 EUNUSED97 = syscall.Errno(0x61)
1346 EUNUSED98 = syscall.Errno(0x62)
1347 EUSERS = syscall.Errno(0x44)
1348 EWOULDBLOCK = syscall.Errno(0x23)
1349 EXDEV = syscall.Errno(0x12)
1350)
1351
1352// Signals
1353const (
1354 SIGABRT = syscall.Signal(0x6)
1355 SIGALRM = syscall.Signal(0xe)
1356 SIGBUS = syscall.Signal(0xa)
1357 SIGCHLD = syscall.Signal(0x14)
1358 SIGCKPT = syscall.Signal(0x21)
1359 SIGCKPTEXIT = syscall.Signal(0x22)
1360 SIGCONT = syscall.Signal(0x13)
1361 SIGEMT = syscall.Signal(0x7)
1362 SIGFPE = syscall.Signal(0x8)
1363 SIGHUP = syscall.Signal(0x1)
1364 SIGILL = syscall.Signal(0x4)
1365 SIGINFO = syscall.Signal(0x1d)
1366 SIGINT = syscall.Signal(0x2)
1367 SIGIO = syscall.Signal(0x17)
1368 SIGIOT = syscall.Signal(0x6)
1369 SIGKILL = syscall.Signal(0x9)
1370 SIGPIPE = syscall.Signal(0xd)
1371 SIGPROF = syscall.Signal(0x1b)
1372 SIGQUIT = syscall.Signal(0x3)
1373 SIGSEGV = syscall.Signal(0xb)
1374 SIGSTOP = syscall.Signal(0x11)
1375 SIGSYS = syscall.Signal(0xc)
1376 SIGTERM = syscall.Signal(0xf)
1377 SIGTHR = syscall.Signal(0x20)
1378 SIGTRAP = syscall.Signal(0x5)
1379 SIGTSTP = syscall.Signal(0x12)
1380 SIGTTIN = syscall.Signal(0x15)
1381 SIGTTOU = syscall.Signal(0x16)
1382 SIGURG = syscall.Signal(0x10)
1383 SIGUSR1 = syscall.Signal(0x1e)
1384 SIGUSR2 = syscall.Signal(0x1f)
1385 SIGVTALRM = syscall.Signal(0x1a)
1386 SIGWINCH = syscall.Signal(0x1c)
1387 SIGXCPU = syscall.Signal(0x18)
1388 SIGXFSZ = syscall.Signal(0x19)
1389)
1390
1391// Error table
1392var errors = [...]string{
1393 1: "operation not permitted",
1394 2: "no such file or directory",
1395 3: "no such process",
1396 4: "interrupted system call",
1397 5: "input/output error",
1398 6: "device not configured",
1399 7: "argument list too long",
1400 8: "exec format error",
1401 9: "bad file descriptor",
1402 10: "no child processes",
1403 11: "resource deadlock avoided",
1404 12: "cannot allocate memory",
1405 13: "permission denied",
1406 14: "bad address",
1407 15: "block device required",
1408 16: "device busy",
1409 17: "file exists",
1410 18: "cross-device link",
1411 19: "operation not supported by device",
1412 20: "not a directory",
1413 21: "is a directory",
1414 22: "invalid argument",
1415 23: "too many open files in system",
1416 24: "too many open files",
1417 25: "inappropriate ioctl for device",
1418 26: "text file busy",
1419 27: "file too large",
1420 28: "no space left on device",
1421 29: "illegal seek",
1422 30: "read-only file system",
1423 31: "too many links",
1424 32: "broken pipe",
1425 33: "numerical argument out of domain",
1426 34: "result too large",
1427 35: "resource temporarily unavailable",
1428 36: "operation now in progress",
1429 37: "operation already in progress",
1430 38: "socket operation on non-socket",
1431 39: "destination address required",
1432 40: "message too long",
1433 41: "protocol wrong type for socket",
1434 42: "protocol not available",
1435 43: "protocol not supported",
1436 44: "socket type not supported",
1437 45: "operation not supported",
1438 46: "protocol family not supported",
1439 47: "address family not supported by protocol family",
1440 48: "address already in use",
1441 49: "can't assign requested address",
1442 50: "network is down",
1443 51: "network is unreachable",
1444 52: "network dropped connection on reset",
1445 53: "software caused connection abort",
1446 54: "connection reset by peer",
1447 55: "no buffer space available",
1448 56: "socket is already connected",
1449 57: "socket is not connected",
1450 58: "can't send after socket shutdown",
1451 59: "too many references: can't splice",
1452 60: "operation timed out",
1453 61: "connection refused",
1454 62: "too many levels of symbolic links",
1455 63: "file name too long",
1456 64: "host is down",
1457 65: "no route to host",
1458 66: "directory not empty",
1459 67: "too many processes",
1460 68: "too many users",
1461 69: "disc quota exceeded",
1462 70: "stale NFS file handle",
1463 71: "too many levels of remote in path",
1464 72: "RPC struct is bad",
1465 73: "RPC version wrong",
1466 74: "RPC prog. not avail",
1467 75: "program version wrong",
1468 76: "bad procedure for program",
1469 77: "no locks available",
1470 78: "function not implemented",
1471 79: "inappropriate file type or format",
1472 80: "authentication error",
1473 81: "need authenticator",
1474 82: "identifier removed",
1475 83: "no message of desired type",
1476 84: "value too large to be stored in data type",
1477 85: "operation canceled",
1478 86: "illegal byte sequence",
1479 87: "attribute not found",
1480 88: "programming error",
1481 89: "bad message",
1482 90: "multihop attempted",
1483 91: "link has been severed",
1484 92: "protocol error",
1485 93: "no medium found",
1486 94: "unknown error: 94",
1487 95: "unknown error: 95",
1488 96: "unknown error: 96",
1489 97: "unknown error: 97",
1490 98: "unknown error: 98",
1491 99: "unknown error: 99",
1492}
1493
1494// Signal table
1495var signals = [...]string{
1496 1: "hangup",
1497 2: "interrupt",
1498 3: "quit",
1499 4: "illegal instruction",
1500 5: "trace/BPT trap",
1501 6: "abort trap",
1502 7: "EMT trap",
1503 8: "floating point exception",
1504 9: "killed",
1505 10: "bus error",
1506 11: "segmentation fault",
1507 12: "bad system call",
1508 13: "broken pipe",
1509 14: "alarm clock",
1510 15: "terminated",
1511 16: "urgent I/O condition",
1512 17: "suspended (signal)",
1513 18: "suspended",
1514 19: "continued",
1515 20: "child exited",
1516 21: "stopped (tty input)",
1517 22: "stopped (tty output)",
1518 23: "I/O possible",
1519 24: "cputime limit exceeded",
1520 25: "filesize limit exceeded",
1521 26: "virtual timer expired",
1522 27: "profiling timer expired",
1523 28: "window size changes",
1524 29: "information request",
1525 30: "user defined signal 1",
1526 31: "user defined signal 2",
1527 32: "thread Scheduler",
1528 33: "checkPoint",
1529 34: "checkPointExit",
1530}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_386.go
deleted file mode 100644
index 7b95751..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_386.go
+++ /dev/null
@@ -1,1743 +0,0 @@
1// mkerrors.sh -m32
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,freebsd
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m32 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_ARP = 0x23
16 AF_ATM = 0x1e
17 AF_BLUETOOTH = 0x24
18 AF_CCITT = 0xa
19 AF_CHAOS = 0x5
20 AF_CNT = 0x15
21 AF_COIP = 0x14
22 AF_DATAKIT = 0x9
23 AF_DECnet = 0xc
24 AF_DLI = 0xd
25 AF_E164 = 0x1a
26 AF_ECMA = 0x8
27 AF_HYLINK = 0xf
28 AF_IEEE80211 = 0x25
29 AF_IMPLINK = 0x3
30 AF_INET = 0x2
31 AF_INET6 = 0x1c
32 AF_INET6_SDP = 0x2a
33 AF_INET_SDP = 0x28
34 AF_IPX = 0x17
35 AF_ISDN = 0x1a
36 AF_ISO = 0x7
37 AF_LAT = 0xe
38 AF_LINK = 0x12
39 AF_LOCAL = 0x1
40 AF_MAX = 0x2a
41 AF_NATM = 0x1d
42 AF_NETBIOS = 0x6
43 AF_NETGRAPH = 0x20
44 AF_OSI = 0x7
45 AF_PUP = 0x4
46 AF_ROUTE = 0x11
47 AF_SCLUSTER = 0x22
48 AF_SIP = 0x18
49 AF_SLOW = 0x21
50 AF_SNA = 0xb
51 AF_UNIX = 0x1
52 AF_UNSPEC = 0x0
53 AF_VENDOR00 = 0x27
54 AF_VENDOR01 = 0x29
55 AF_VENDOR02 = 0x2b
56 AF_VENDOR03 = 0x2d
57 AF_VENDOR04 = 0x2f
58 AF_VENDOR05 = 0x31
59 AF_VENDOR06 = 0x33
60 AF_VENDOR07 = 0x35
61 AF_VENDOR08 = 0x37
62 AF_VENDOR09 = 0x39
63 AF_VENDOR10 = 0x3b
64 AF_VENDOR11 = 0x3d
65 AF_VENDOR12 = 0x3f
66 AF_VENDOR13 = 0x41
67 AF_VENDOR14 = 0x43
68 AF_VENDOR15 = 0x45
69 AF_VENDOR16 = 0x47
70 AF_VENDOR17 = 0x49
71 AF_VENDOR18 = 0x4b
72 AF_VENDOR19 = 0x4d
73 AF_VENDOR20 = 0x4f
74 AF_VENDOR21 = 0x51
75 AF_VENDOR22 = 0x53
76 AF_VENDOR23 = 0x55
77 AF_VENDOR24 = 0x57
78 AF_VENDOR25 = 0x59
79 AF_VENDOR26 = 0x5b
80 AF_VENDOR27 = 0x5d
81 AF_VENDOR28 = 0x5f
82 AF_VENDOR29 = 0x61
83 AF_VENDOR30 = 0x63
84 AF_VENDOR31 = 0x65
85 AF_VENDOR32 = 0x67
86 AF_VENDOR33 = 0x69
87 AF_VENDOR34 = 0x6b
88 AF_VENDOR35 = 0x6d
89 AF_VENDOR36 = 0x6f
90 AF_VENDOR37 = 0x71
91 AF_VENDOR38 = 0x73
92 AF_VENDOR39 = 0x75
93 AF_VENDOR40 = 0x77
94 AF_VENDOR41 = 0x79
95 AF_VENDOR42 = 0x7b
96 AF_VENDOR43 = 0x7d
97 AF_VENDOR44 = 0x7f
98 AF_VENDOR45 = 0x81
99 AF_VENDOR46 = 0x83
100 AF_VENDOR47 = 0x85
101 B0 = 0x0
102 B110 = 0x6e
103 B115200 = 0x1c200
104 B1200 = 0x4b0
105 B134 = 0x86
106 B14400 = 0x3840
107 B150 = 0x96
108 B1800 = 0x708
109 B19200 = 0x4b00
110 B200 = 0xc8
111 B230400 = 0x38400
112 B2400 = 0x960
113 B28800 = 0x7080
114 B300 = 0x12c
115 B38400 = 0x9600
116 B460800 = 0x70800
117 B4800 = 0x12c0
118 B50 = 0x32
119 B57600 = 0xe100
120 B600 = 0x258
121 B7200 = 0x1c20
122 B75 = 0x4b
123 B76800 = 0x12c00
124 B921600 = 0xe1000
125 B9600 = 0x2580
126 BIOCFEEDBACK = 0x8004427c
127 BIOCFLUSH = 0x20004268
128 BIOCGBLEN = 0x40044266
129 BIOCGDIRECTION = 0x40044276
130 BIOCGDLT = 0x4004426a
131 BIOCGDLTLIST = 0xc0084279
132 BIOCGETBUFMODE = 0x4004427d
133 BIOCGETIF = 0x4020426b
134 BIOCGETZMAX = 0x4004427f
135 BIOCGHDRCMPLT = 0x40044274
136 BIOCGRSIG = 0x40044272
137 BIOCGRTIMEOUT = 0x4008426e
138 BIOCGSEESENT = 0x40044276
139 BIOCGSTATS = 0x4008426f
140 BIOCGTSTAMP = 0x40044283
141 BIOCIMMEDIATE = 0x80044270
142 BIOCLOCK = 0x2000427a
143 BIOCPROMISC = 0x20004269
144 BIOCROTZBUF = 0x400c4280
145 BIOCSBLEN = 0xc0044266
146 BIOCSDIRECTION = 0x80044277
147 BIOCSDLT = 0x80044278
148 BIOCSETBUFMODE = 0x8004427e
149 BIOCSETF = 0x80084267
150 BIOCSETFNR = 0x80084282
151 BIOCSETIF = 0x8020426c
152 BIOCSETWF = 0x8008427b
153 BIOCSETZBUF = 0x800c4281
154 BIOCSHDRCMPLT = 0x80044275
155 BIOCSRSIG = 0x80044273
156 BIOCSRTIMEOUT = 0x8008426d
157 BIOCSSEESENT = 0x80044277
158 BIOCSTSTAMP = 0x80044284
159 BIOCVERSION = 0x40044271
160 BPF_A = 0x10
161 BPF_ABS = 0x20
162 BPF_ADD = 0x0
163 BPF_ALIGNMENT = 0x4
164 BPF_ALU = 0x4
165 BPF_AND = 0x50
166 BPF_B = 0x10
167 BPF_BUFMODE_BUFFER = 0x1
168 BPF_BUFMODE_ZBUF = 0x2
169 BPF_DIV = 0x30
170 BPF_H = 0x8
171 BPF_IMM = 0x0
172 BPF_IND = 0x40
173 BPF_JA = 0x0
174 BPF_JEQ = 0x10
175 BPF_JGE = 0x30
176 BPF_JGT = 0x20
177 BPF_JMP = 0x5
178 BPF_JSET = 0x40
179 BPF_K = 0x0
180 BPF_LD = 0x0
181 BPF_LDX = 0x1
182 BPF_LEN = 0x80
183 BPF_LSH = 0x60
184 BPF_MAJOR_VERSION = 0x1
185 BPF_MAXBUFSIZE = 0x80000
186 BPF_MAXINSNS = 0x200
187 BPF_MEM = 0x60
188 BPF_MEMWORDS = 0x10
189 BPF_MINBUFSIZE = 0x20
190 BPF_MINOR_VERSION = 0x1
191 BPF_MISC = 0x7
192 BPF_MSH = 0xa0
193 BPF_MUL = 0x20
194 BPF_NEG = 0x80
195 BPF_OR = 0x40
196 BPF_RELEASE = 0x30bb6
197 BPF_RET = 0x6
198 BPF_RSH = 0x70
199 BPF_ST = 0x2
200 BPF_STX = 0x3
201 BPF_SUB = 0x10
202 BPF_TAX = 0x0
203 BPF_TXA = 0x80
204 BPF_T_BINTIME = 0x2
205 BPF_T_BINTIME_FAST = 0x102
206 BPF_T_BINTIME_MONOTONIC = 0x202
207 BPF_T_BINTIME_MONOTONIC_FAST = 0x302
208 BPF_T_FAST = 0x100
209 BPF_T_FLAG_MASK = 0x300
210 BPF_T_FORMAT_MASK = 0x3
211 BPF_T_MICROTIME = 0x0
212 BPF_T_MICROTIME_FAST = 0x100
213 BPF_T_MICROTIME_MONOTONIC = 0x200
214 BPF_T_MICROTIME_MONOTONIC_FAST = 0x300
215 BPF_T_MONOTONIC = 0x200
216 BPF_T_MONOTONIC_FAST = 0x300
217 BPF_T_NANOTIME = 0x1
218 BPF_T_NANOTIME_FAST = 0x101
219 BPF_T_NANOTIME_MONOTONIC = 0x201
220 BPF_T_NANOTIME_MONOTONIC_FAST = 0x301
221 BPF_T_NONE = 0x3
222 BPF_T_NORMAL = 0x0
223 BPF_W = 0x0
224 BPF_X = 0x8
225 BRKINT = 0x2
226 CFLUSH = 0xf
227 CLOCAL = 0x8000
228 CLOCK_MONOTONIC = 0x4
229 CLOCK_MONOTONIC_FAST = 0xc
230 CLOCK_MONOTONIC_PRECISE = 0xb
231 CLOCK_PROCESS_CPUTIME_ID = 0xf
232 CLOCK_PROF = 0x2
233 CLOCK_REALTIME = 0x0
234 CLOCK_REALTIME_FAST = 0xa
235 CLOCK_REALTIME_PRECISE = 0x9
236 CLOCK_SECOND = 0xd
237 CLOCK_THREAD_CPUTIME_ID = 0xe
238 CLOCK_UPTIME = 0x5
239 CLOCK_UPTIME_FAST = 0x8
240 CLOCK_UPTIME_PRECISE = 0x7
241 CLOCK_VIRTUAL = 0x1
242 CREAD = 0x800
243 CS5 = 0x0
244 CS6 = 0x100
245 CS7 = 0x200
246 CS8 = 0x300
247 CSIZE = 0x300
248 CSTART = 0x11
249 CSTATUS = 0x14
250 CSTOP = 0x13
251 CSTOPB = 0x400
252 CSUSP = 0x1a
253 CTL_MAXNAME = 0x18
254 CTL_NET = 0x4
255 DLT_A429 = 0xb8
256 DLT_A653_ICM = 0xb9
257 DLT_AIRONET_HEADER = 0x78
258 DLT_AOS = 0xde
259 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
260 DLT_ARCNET = 0x7
261 DLT_ARCNET_LINUX = 0x81
262 DLT_ATM_CLIP = 0x13
263 DLT_ATM_RFC1483 = 0xb
264 DLT_AURORA = 0x7e
265 DLT_AX25 = 0x3
266 DLT_AX25_KISS = 0xca
267 DLT_BACNET_MS_TP = 0xa5
268 DLT_BLUETOOTH_HCI_H4 = 0xbb
269 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
270 DLT_CAN20B = 0xbe
271 DLT_CAN_SOCKETCAN = 0xe3
272 DLT_CHAOS = 0x5
273 DLT_CHDLC = 0x68
274 DLT_CISCO_IOS = 0x76
275 DLT_C_HDLC = 0x68
276 DLT_C_HDLC_WITH_DIR = 0xcd
277 DLT_DBUS = 0xe7
278 DLT_DECT = 0xdd
279 DLT_DOCSIS = 0x8f
280 DLT_DVB_CI = 0xeb
281 DLT_ECONET = 0x73
282 DLT_EN10MB = 0x1
283 DLT_EN3MB = 0x2
284 DLT_ENC = 0x6d
285 DLT_ERF = 0xc5
286 DLT_ERF_ETH = 0xaf
287 DLT_ERF_POS = 0xb0
288 DLT_FC_2 = 0xe0
289 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
290 DLT_FDDI = 0xa
291 DLT_FLEXRAY = 0xd2
292 DLT_FRELAY = 0x6b
293 DLT_FRELAY_WITH_DIR = 0xce
294 DLT_GCOM_SERIAL = 0xad
295 DLT_GCOM_T1E1 = 0xac
296 DLT_GPF_F = 0xab
297 DLT_GPF_T = 0xaa
298 DLT_GPRS_LLC = 0xa9
299 DLT_GSMTAP_ABIS = 0xda
300 DLT_GSMTAP_UM = 0xd9
301 DLT_HHDLC = 0x79
302 DLT_IBM_SN = 0x92
303 DLT_IBM_SP = 0x91
304 DLT_IEEE802 = 0x6
305 DLT_IEEE802_11 = 0x69
306 DLT_IEEE802_11_RADIO = 0x7f
307 DLT_IEEE802_11_RADIO_AVS = 0xa3
308 DLT_IEEE802_15_4 = 0xc3
309 DLT_IEEE802_15_4_LINUX = 0xbf
310 DLT_IEEE802_15_4_NOFCS = 0xe6
311 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
312 DLT_IEEE802_16_MAC_CPS = 0xbc
313 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
314 DLT_IPFILTER = 0x74
315 DLT_IPMB = 0xc7
316 DLT_IPMB_LINUX = 0xd1
317 DLT_IPNET = 0xe2
318 DLT_IPOIB = 0xf2
319 DLT_IPV4 = 0xe4
320 DLT_IPV6 = 0xe5
321 DLT_IP_OVER_FC = 0x7a
322 DLT_JUNIPER_ATM1 = 0x89
323 DLT_JUNIPER_ATM2 = 0x87
324 DLT_JUNIPER_ATM_CEMIC = 0xee
325 DLT_JUNIPER_CHDLC = 0xb5
326 DLT_JUNIPER_ES = 0x84
327 DLT_JUNIPER_ETHER = 0xb2
328 DLT_JUNIPER_FIBRECHANNEL = 0xea
329 DLT_JUNIPER_FRELAY = 0xb4
330 DLT_JUNIPER_GGSN = 0x85
331 DLT_JUNIPER_ISM = 0xc2
332 DLT_JUNIPER_MFR = 0x86
333 DLT_JUNIPER_MLFR = 0x83
334 DLT_JUNIPER_MLPPP = 0x82
335 DLT_JUNIPER_MONITOR = 0xa4
336 DLT_JUNIPER_PIC_PEER = 0xae
337 DLT_JUNIPER_PPP = 0xb3
338 DLT_JUNIPER_PPPOE = 0xa7
339 DLT_JUNIPER_PPPOE_ATM = 0xa8
340 DLT_JUNIPER_SERVICES = 0x88
341 DLT_JUNIPER_SRX_E2E = 0xe9
342 DLT_JUNIPER_ST = 0xc8
343 DLT_JUNIPER_VP = 0xb7
344 DLT_JUNIPER_VS = 0xe8
345 DLT_LAPB_WITH_DIR = 0xcf
346 DLT_LAPD = 0xcb
347 DLT_LIN = 0xd4
348 DLT_LINUX_EVDEV = 0xd8
349 DLT_LINUX_IRDA = 0x90
350 DLT_LINUX_LAPD = 0xb1
351 DLT_LINUX_PPP_WITHDIRECTION = 0xa6
352 DLT_LINUX_SLL = 0x71
353 DLT_LOOP = 0x6c
354 DLT_LTALK = 0x72
355 DLT_MATCHING_MAX = 0xf6
356 DLT_MATCHING_MIN = 0x68
357 DLT_MFR = 0xb6
358 DLT_MOST = 0xd3
359 DLT_MPEG_2_TS = 0xf3
360 DLT_MPLS = 0xdb
361 DLT_MTP2 = 0x8c
362 DLT_MTP2_WITH_PHDR = 0x8b
363 DLT_MTP3 = 0x8d
364 DLT_MUX27010 = 0xec
365 DLT_NETANALYZER = 0xf0
366 DLT_NETANALYZER_TRANSPARENT = 0xf1
367 DLT_NFC_LLCP = 0xf5
368 DLT_NFLOG = 0xef
369 DLT_NG40 = 0xf4
370 DLT_NULL = 0x0
371 DLT_PCI_EXP = 0x7d
372 DLT_PFLOG = 0x75
373 DLT_PFSYNC = 0x79
374 DLT_PPI = 0xc0
375 DLT_PPP = 0x9
376 DLT_PPP_BSDOS = 0x10
377 DLT_PPP_ETHER = 0x33
378 DLT_PPP_PPPD = 0xa6
379 DLT_PPP_SERIAL = 0x32
380 DLT_PPP_WITH_DIR = 0xcc
381 DLT_PPP_WITH_DIRECTION = 0xa6
382 DLT_PRISM_HEADER = 0x77
383 DLT_PRONET = 0x4
384 DLT_RAIF1 = 0xc6
385 DLT_RAW = 0xc
386 DLT_RIO = 0x7c
387 DLT_SCCP = 0x8e
388 DLT_SITA = 0xc4
389 DLT_SLIP = 0x8
390 DLT_SLIP_BSDOS = 0xf
391 DLT_STANAG_5066_D_PDU = 0xed
392 DLT_SUNATM = 0x7b
393 DLT_SYMANTEC_FIREWALL = 0x63
394 DLT_TZSP = 0x80
395 DLT_USB = 0xba
396 DLT_USB_LINUX = 0xbd
397 DLT_USB_LINUX_MMAPPED = 0xdc
398 DLT_USER0 = 0x93
399 DLT_USER1 = 0x94
400 DLT_USER10 = 0x9d
401 DLT_USER11 = 0x9e
402 DLT_USER12 = 0x9f
403 DLT_USER13 = 0xa0
404 DLT_USER14 = 0xa1
405 DLT_USER15 = 0xa2
406 DLT_USER2 = 0x95
407 DLT_USER3 = 0x96
408 DLT_USER4 = 0x97
409 DLT_USER5 = 0x98
410 DLT_USER6 = 0x99
411 DLT_USER7 = 0x9a
412 DLT_USER8 = 0x9b
413 DLT_USER9 = 0x9c
414 DLT_WIHART = 0xdf
415 DLT_X2E_SERIAL = 0xd5
416 DLT_X2E_XORAYA = 0xd6
417 DT_BLK = 0x6
418 DT_CHR = 0x2
419 DT_DIR = 0x4
420 DT_FIFO = 0x1
421 DT_LNK = 0xa
422 DT_REG = 0x8
423 DT_SOCK = 0xc
424 DT_UNKNOWN = 0x0
425 DT_WHT = 0xe
426 ECHO = 0x8
427 ECHOCTL = 0x40
428 ECHOE = 0x2
429 ECHOK = 0x4
430 ECHOKE = 0x1
431 ECHONL = 0x10
432 ECHOPRT = 0x20
433 EVFILT_AIO = -0x3
434 EVFILT_FS = -0x9
435 EVFILT_LIO = -0xa
436 EVFILT_PROC = -0x5
437 EVFILT_READ = -0x1
438 EVFILT_SIGNAL = -0x6
439 EVFILT_SYSCOUNT = 0xb
440 EVFILT_TIMER = -0x7
441 EVFILT_USER = -0xb
442 EVFILT_VNODE = -0x4
443 EVFILT_WRITE = -0x2
444 EV_ADD = 0x1
445 EV_CLEAR = 0x20
446 EV_DELETE = 0x2
447 EV_DISABLE = 0x8
448 EV_DISPATCH = 0x80
449 EV_DROP = 0x1000
450 EV_ENABLE = 0x4
451 EV_EOF = 0x8000
452 EV_ERROR = 0x4000
453 EV_FLAG1 = 0x2000
454 EV_ONESHOT = 0x10
455 EV_RECEIPT = 0x40
456 EV_SYSFLAGS = 0xf000
457 EXTA = 0x4b00
458 EXTATTR_NAMESPACE_EMPTY = 0x0
459 EXTATTR_NAMESPACE_SYSTEM = 0x2
460 EXTATTR_NAMESPACE_USER = 0x1
461 EXTB = 0x9600
462 EXTPROC = 0x800
463 FD_CLOEXEC = 0x1
464 FD_SETSIZE = 0x400
465 FLUSHO = 0x800000
466 F_CANCEL = 0x5
467 F_DUP2FD = 0xa
468 F_DUP2FD_CLOEXEC = 0x12
469 F_DUPFD = 0x0
470 F_DUPFD_CLOEXEC = 0x11
471 F_GETFD = 0x1
472 F_GETFL = 0x3
473 F_GETLK = 0xb
474 F_GETOWN = 0x5
475 F_OGETLK = 0x7
476 F_OK = 0x0
477 F_OSETLK = 0x8
478 F_OSETLKW = 0x9
479 F_RDAHEAD = 0x10
480 F_RDLCK = 0x1
481 F_READAHEAD = 0xf
482 F_SETFD = 0x2
483 F_SETFL = 0x4
484 F_SETLK = 0xc
485 F_SETLKW = 0xd
486 F_SETLK_REMOTE = 0xe
487 F_SETOWN = 0x6
488 F_UNLCK = 0x2
489 F_UNLCKSYS = 0x4
490 F_WRLCK = 0x3
491 HUPCL = 0x4000
492 ICANON = 0x100
493 ICMP6_FILTER = 0x12
494 ICRNL = 0x100
495 IEXTEN = 0x400
496 IFAN_ARRIVAL = 0x0
497 IFAN_DEPARTURE = 0x1
498 IFF_ALLMULTI = 0x200
499 IFF_ALTPHYS = 0x4000
500 IFF_BROADCAST = 0x2
501 IFF_CANTCHANGE = 0x218f72
502 IFF_CANTCONFIG = 0x10000
503 IFF_DEBUG = 0x4
504 IFF_DRV_OACTIVE = 0x400
505 IFF_DRV_RUNNING = 0x40
506 IFF_DYING = 0x200000
507 IFF_LINK0 = 0x1000
508 IFF_LINK1 = 0x2000
509 IFF_LINK2 = 0x4000
510 IFF_LOOPBACK = 0x8
511 IFF_MONITOR = 0x40000
512 IFF_MULTICAST = 0x8000
513 IFF_NOARP = 0x80
514 IFF_OACTIVE = 0x400
515 IFF_POINTOPOINT = 0x10
516 IFF_PPROMISC = 0x20000
517 IFF_PROMISC = 0x100
518 IFF_RENAMING = 0x400000
519 IFF_RUNNING = 0x40
520 IFF_SIMPLEX = 0x800
521 IFF_SMART = 0x20
522 IFF_STATICARP = 0x80000
523 IFF_UP = 0x1
524 IFNAMSIZ = 0x10
525 IFT_1822 = 0x2
526 IFT_A12MPPSWITCH = 0x82
527 IFT_AAL2 = 0xbb
528 IFT_AAL5 = 0x31
529 IFT_ADSL = 0x5e
530 IFT_AFLANE8023 = 0x3b
531 IFT_AFLANE8025 = 0x3c
532 IFT_ARAP = 0x58
533 IFT_ARCNET = 0x23
534 IFT_ARCNETPLUS = 0x24
535 IFT_ASYNC = 0x54
536 IFT_ATM = 0x25
537 IFT_ATMDXI = 0x69
538 IFT_ATMFUNI = 0x6a
539 IFT_ATMIMA = 0x6b
540 IFT_ATMLOGICAL = 0x50
541 IFT_ATMRADIO = 0xbd
542 IFT_ATMSUBINTERFACE = 0x86
543 IFT_ATMVCIENDPT = 0xc2
544 IFT_ATMVIRTUAL = 0x95
545 IFT_BGPPOLICYACCOUNTING = 0xa2
546 IFT_BRIDGE = 0xd1
547 IFT_BSC = 0x53
548 IFT_CARP = 0xf8
549 IFT_CCTEMUL = 0x3d
550 IFT_CEPT = 0x13
551 IFT_CES = 0x85
552 IFT_CHANNEL = 0x46
553 IFT_CNR = 0x55
554 IFT_COFFEE = 0x84
555 IFT_COMPOSITELINK = 0x9b
556 IFT_DCN = 0x8d
557 IFT_DIGITALPOWERLINE = 0x8a
558 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
559 IFT_DLSW = 0x4a
560 IFT_DOCSCABLEDOWNSTREAM = 0x80
561 IFT_DOCSCABLEMACLAYER = 0x7f
562 IFT_DOCSCABLEUPSTREAM = 0x81
563 IFT_DS0 = 0x51
564 IFT_DS0BUNDLE = 0x52
565 IFT_DS1FDL = 0xaa
566 IFT_DS3 = 0x1e
567 IFT_DTM = 0x8c
568 IFT_DVBASILN = 0xac
569 IFT_DVBASIOUT = 0xad
570 IFT_DVBRCCDOWNSTREAM = 0x93
571 IFT_DVBRCCMACLAYER = 0x92
572 IFT_DVBRCCUPSTREAM = 0x94
573 IFT_ENC = 0xf4
574 IFT_EON = 0x19
575 IFT_EPLRS = 0x57
576 IFT_ESCON = 0x49
577 IFT_ETHER = 0x6
578 IFT_FAITH = 0xf2
579 IFT_FAST = 0x7d
580 IFT_FASTETHER = 0x3e
581 IFT_FASTETHERFX = 0x45
582 IFT_FDDI = 0xf
583 IFT_FIBRECHANNEL = 0x38
584 IFT_FRAMERELAYINTERCONNECT = 0x3a
585 IFT_FRAMERELAYMPI = 0x5c
586 IFT_FRDLCIENDPT = 0xc1
587 IFT_FRELAY = 0x20
588 IFT_FRELAYDCE = 0x2c
589 IFT_FRF16MFRBUNDLE = 0xa3
590 IFT_FRFORWARD = 0x9e
591 IFT_G703AT2MB = 0x43
592 IFT_G703AT64K = 0x42
593 IFT_GIF = 0xf0
594 IFT_GIGABITETHERNET = 0x75
595 IFT_GR303IDT = 0xb2
596 IFT_GR303RDT = 0xb1
597 IFT_H323GATEKEEPER = 0xa4
598 IFT_H323PROXY = 0xa5
599 IFT_HDH1822 = 0x3
600 IFT_HDLC = 0x76
601 IFT_HDSL2 = 0xa8
602 IFT_HIPERLAN2 = 0xb7
603 IFT_HIPPI = 0x2f
604 IFT_HIPPIINTERFACE = 0x39
605 IFT_HOSTPAD = 0x5a
606 IFT_HSSI = 0x2e
607 IFT_HY = 0xe
608 IFT_IBM370PARCHAN = 0x48
609 IFT_IDSL = 0x9a
610 IFT_IEEE1394 = 0x90
611 IFT_IEEE80211 = 0x47
612 IFT_IEEE80212 = 0x37
613 IFT_IEEE8023ADLAG = 0xa1
614 IFT_IFGSN = 0x91
615 IFT_IMT = 0xbe
616 IFT_INFINIBAND = 0xc7
617 IFT_INTERLEAVE = 0x7c
618 IFT_IP = 0x7e
619 IFT_IPFORWARD = 0x8e
620 IFT_IPOVERATM = 0x72
621 IFT_IPOVERCDLC = 0x6d
622 IFT_IPOVERCLAW = 0x6e
623 IFT_IPSWITCH = 0x4e
624 IFT_IPXIP = 0xf9
625 IFT_ISDN = 0x3f
626 IFT_ISDNBASIC = 0x14
627 IFT_ISDNPRIMARY = 0x15
628 IFT_ISDNS = 0x4b
629 IFT_ISDNU = 0x4c
630 IFT_ISO88022LLC = 0x29
631 IFT_ISO88023 = 0x7
632 IFT_ISO88024 = 0x8
633 IFT_ISO88025 = 0x9
634 IFT_ISO88025CRFPINT = 0x62
635 IFT_ISO88025DTR = 0x56
636 IFT_ISO88025FIBER = 0x73
637 IFT_ISO88026 = 0xa
638 IFT_ISUP = 0xb3
639 IFT_L2VLAN = 0x87
640 IFT_L3IPVLAN = 0x88
641 IFT_L3IPXVLAN = 0x89
642 IFT_LAPB = 0x10
643 IFT_LAPD = 0x4d
644 IFT_LAPF = 0x77
645 IFT_LOCALTALK = 0x2a
646 IFT_LOOP = 0x18
647 IFT_MEDIAMAILOVERIP = 0x8b
648 IFT_MFSIGLINK = 0xa7
649 IFT_MIOX25 = 0x26
650 IFT_MODEM = 0x30
651 IFT_MPC = 0x71
652 IFT_MPLS = 0xa6
653 IFT_MPLSTUNNEL = 0x96
654 IFT_MSDSL = 0x8f
655 IFT_MVL = 0xbf
656 IFT_MYRINET = 0x63
657 IFT_NFAS = 0xaf
658 IFT_NSIP = 0x1b
659 IFT_OPTICALCHANNEL = 0xc3
660 IFT_OPTICALTRANSPORT = 0xc4
661 IFT_OTHER = 0x1
662 IFT_P10 = 0xc
663 IFT_P80 = 0xd
664 IFT_PARA = 0x22
665 IFT_PFLOG = 0xf6
666 IFT_PFSYNC = 0xf7
667 IFT_PLC = 0xae
668 IFT_POS = 0xab
669 IFT_PPP = 0x17
670 IFT_PPPMULTILINKBUNDLE = 0x6c
671 IFT_PROPBWAP2MP = 0xb8
672 IFT_PROPCNLS = 0x59
673 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
674 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
675 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
676 IFT_PROPMUX = 0x36
677 IFT_PROPVIRTUAL = 0x35
678 IFT_PROPWIRELESSP2P = 0x9d
679 IFT_PTPSERIAL = 0x16
680 IFT_PVC = 0xf1
681 IFT_QLLC = 0x44
682 IFT_RADIOMAC = 0xbc
683 IFT_RADSL = 0x5f
684 IFT_REACHDSL = 0xc0
685 IFT_RFC1483 = 0x9f
686 IFT_RS232 = 0x21
687 IFT_RSRB = 0x4f
688 IFT_SDLC = 0x11
689 IFT_SDSL = 0x60
690 IFT_SHDSL = 0xa9
691 IFT_SIP = 0x1f
692 IFT_SLIP = 0x1c
693 IFT_SMDSDXI = 0x2b
694 IFT_SMDSICIP = 0x34
695 IFT_SONET = 0x27
696 IFT_SONETOVERHEADCHANNEL = 0xb9
697 IFT_SONETPATH = 0x32
698 IFT_SONETVT = 0x33
699 IFT_SRP = 0x97
700 IFT_SS7SIGLINK = 0x9c
701 IFT_STACKTOSTACK = 0x6f
702 IFT_STARLAN = 0xb
703 IFT_STF = 0xd7
704 IFT_T1 = 0x12
705 IFT_TDLC = 0x74
706 IFT_TERMPAD = 0x5b
707 IFT_TR008 = 0xb0
708 IFT_TRANSPHDLC = 0x7b
709 IFT_TUNNEL = 0x83
710 IFT_ULTRA = 0x1d
711 IFT_USB = 0xa0
712 IFT_V11 = 0x40
713 IFT_V35 = 0x2d
714 IFT_V36 = 0x41
715 IFT_V37 = 0x78
716 IFT_VDSL = 0x61
717 IFT_VIRTUALIPADDRESS = 0x70
718 IFT_VOICEEM = 0x64
719 IFT_VOICEENCAP = 0x67
720 IFT_VOICEFXO = 0x65
721 IFT_VOICEFXS = 0x66
722 IFT_VOICEOVERATM = 0x98
723 IFT_VOICEOVERFRAMERELAY = 0x99
724 IFT_VOICEOVERIP = 0x68
725 IFT_X213 = 0x5d
726 IFT_X25 = 0x5
727 IFT_X25DDN = 0x4
728 IFT_X25HUNTGROUP = 0x7a
729 IFT_X25MLP = 0x79
730 IFT_X25PLE = 0x28
731 IFT_XETHER = 0x1a
732 IGNBRK = 0x1
733 IGNCR = 0x80
734 IGNPAR = 0x4
735 IMAXBEL = 0x2000
736 INLCR = 0x40
737 INPCK = 0x10
738 IN_CLASSA_HOST = 0xffffff
739 IN_CLASSA_MAX = 0x80
740 IN_CLASSA_NET = 0xff000000
741 IN_CLASSA_NSHIFT = 0x18
742 IN_CLASSB_HOST = 0xffff
743 IN_CLASSB_MAX = 0x10000
744 IN_CLASSB_NET = 0xffff0000
745 IN_CLASSB_NSHIFT = 0x10
746 IN_CLASSC_HOST = 0xff
747 IN_CLASSC_NET = 0xffffff00
748 IN_CLASSC_NSHIFT = 0x8
749 IN_CLASSD_HOST = 0xfffffff
750 IN_CLASSD_NET = 0xf0000000
751 IN_CLASSD_NSHIFT = 0x1c
752 IN_LOOPBACKNET = 0x7f
753 IN_RFC3021_MASK = 0xfffffffe
754 IPPROTO_3PC = 0x22
755 IPPROTO_ADFS = 0x44
756 IPPROTO_AH = 0x33
757 IPPROTO_AHIP = 0x3d
758 IPPROTO_APES = 0x63
759 IPPROTO_ARGUS = 0xd
760 IPPROTO_AX25 = 0x5d
761 IPPROTO_BHA = 0x31
762 IPPROTO_BLT = 0x1e
763 IPPROTO_BRSATMON = 0x4c
764 IPPROTO_CARP = 0x70
765 IPPROTO_CFTP = 0x3e
766 IPPROTO_CHAOS = 0x10
767 IPPROTO_CMTP = 0x26
768 IPPROTO_CPHB = 0x49
769 IPPROTO_CPNX = 0x48
770 IPPROTO_DDP = 0x25
771 IPPROTO_DGP = 0x56
772 IPPROTO_DIVERT = 0x102
773 IPPROTO_DONE = 0x101
774 IPPROTO_DSTOPTS = 0x3c
775 IPPROTO_EGP = 0x8
776 IPPROTO_EMCON = 0xe
777 IPPROTO_ENCAP = 0x62
778 IPPROTO_EON = 0x50
779 IPPROTO_ESP = 0x32
780 IPPROTO_ETHERIP = 0x61
781 IPPROTO_FRAGMENT = 0x2c
782 IPPROTO_GGP = 0x3
783 IPPROTO_GMTP = 0x64
784 IPPROTO_GRE = 0x2f
785 IPPROTO_HELLO = 0x3f
786 IPPROTO_HIP = 0x8b
787 IPPROTO_HMP = 0x14
788 IPPROTO_HOPOPTS = 0x0
789 IPPROTO_ICMP = 0x1
790 IPPROTO_ICMPV6 = 0x3a
791 IPPROTO_IDP = 0x16
792 IPPROTO_IDPR = 0x23
793 IPPROTO_IDRP = 0x2d
794 IPPROTO_IGMP = 0x2
795 IPPROTO_IGP = 0x55
796 IPPROTO_IGRP = 0x58
797 IPPROTO_IL = 0x28
798 IPPROTO_INLSP = 0x34
799 IPPROTO_INP = 0x20
800 IPPROTO_IP = 0x0
801 IPPROTO_IPCOMP = 0x6c
802 IPPROTO_IPCV = 0x47
803 IPPROTO_IPEIP = 0x5e
804 IPPROTO_IPIP = 0x4
805 IPPROTO_IPPC = 0x43
806 IPPROTO_IPV4 = 0x4
807 IPPROTO_IPV6 = 0x29
808 IPPROTO_IRTP = 0x1c
809 IPPROTO_KRYPTOLAN = 0x41
810 IPPROTO_LARP = 0x5b
811 IPPROTO_LEAF1 = 0x19
812 IPPROTO_LEAF2 = 0x1a
813 IPPROTO_MAX = 0x100
814 IPPROTO_MAXID = 0x34
815 IPPROTO_MEAS = 0x13
816 IPPROTO_MH = 0x87
817 IPPROTO_MHRP = 0x30
818 IPPROTO_MICP = 0x5f
819 IPPROTO_MOBILE = 0x37
820 IPPROTO_MPLS = 0x89
821 IPPROTO_MTP = 0x5c
822 IPPROTO_MUX = 0x12
823 IPPROTO_ND = 0x4d
824 IPPROTO_NHRP = 0x36
825 IPPROTO_NONE = 0x3b
826 IPPROTO_NSP = 0x1f
827 IPPROTO_NVPII = 0xb
828 IPPROTO_OLD_DIVERT = 0xfe
829 IPPROTO_OSPFIGP = 0x59
830 IPPROTO_PFSYNC = 0xf0
831 IPPROTO_PGM = 0x71
832 IPPROTO_PIGP = 0x9
833 IPPROTO_PIM = 0x67
834 IPPROTO_PRM = 0x15
835 IPPROTO_PUP = 0xc
836 IPPROTO_PVP = 0x4b
837 IPPROTO_RAW = 0xff
838 IPPROTO_RCCMON = 0xa
839 IPPROTO_RDP = 0x1b
840 IPPROTO_RESERVED_253 = 0xfd
841 IPPROTO_RESERVED_254 = 0xfe
842 IPPROTO_ROUTING = 0x2b
843 IPPROTO_RSVP = 0x2e
844 IPPROTO_RVD = 0x42
845 IPPROTO_SATEXPAK = 0x40
846 IPPROTO_SATMON = 0x45
847 IPPROTO_SCCSP = 0x60
848 IPPROTO_SCTP = 0x84
849 IPPROTO_SDRP = 0x2a
850 IPPROTO_SEND = 0x103
851 IPPROTO_SEP = 0x21
852 IPPROTO_SHIM6 = 0x8c
853 IPPROTO_SKIP = 0x39
854 IPPROTO_SPACER = 0x7fff
855 IPPROTO_SRPC = 0x5a
856 IPPROTO_ST = 0x7
857 IPPROTO_SVMTP = 0x52
858 IPPROTO_SWIPE = 0x35
859 IPPROTO_TCF = 0x57
860 IPPROTO_TCP = 0x6
861 IPPROTO_TLSP = 0x38
862 IPPROTO_TP = 0x1d
863 IPPROTO_TPXX = 0x27
864 IPPROTO_TRUNK1 = 0x17
865 IPPROTO_TRUNK2 = 0x18
866 IPPROTO_TTP = 0x54
867 IPPROTO_UDP = 0x11
868 IPPROTO_UDPLITE = 0x88
869 IPPROTO_VINES = 0x53
870 IPPROTO_VISA = 0x46
871 IPPROTO_VMTP = 0x51
872 IPPROTO_WBEXPAK = 0x4f
873 IPPROTO_WBMON = 0x4e
874 IPPROTO_WSN = 0x4a
875 IPPROTO_XNET = 0xf
876 IPPROTO_XTP = 0x24
877 IPV6_AUTOFLOWLABEL = 0x3b
878 IPV6_BINDANY = 0x40
879 IPV6_BINDV6ONLY = 0x1b
880 IPV6_CHECKSUM = 0x1a
881 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
882 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
883 IPV6_DEFHLIM = 0x40
884 IPV6_DONTFRAG = 0x3e
885 IPV6_DSTOPTS = 0x32
886 IPV6_FAITH = 0x1d
887 IPV6_FLOWINFO_MASK = 0xffffff0f
888 IPV6_FLOWLABEL_MASK = 0xffff0f00
889 IPV6_FRAGTTL = 0x78
890 IPV6_FW_ADD = 0x1e
891 IPV6_FW_DEL = 0x1f
892 IPV6_FW_FLUSH = 0x20
893 IPV6_FW_GET = 0x22
894 IPV6_FW_ZERO = 0x21
895 IPV6_HLIMDEC = 0x1
896 IPV6_HOPLIMIT = 0x2f
897 IPV6_HOPOPTS = 0x31
898 IPV6_IPSEC_POLICY = 0x1c
899 IPV6_JOIN_GROUP = 0xc
900 IPV6_LEAVE_GROUP = 0xd
901 IPV6_MAXHLIM = 0xff
902 IPV6_MAXOPTHDR = 0x800
903 IPV6_MAXPACKET = 0xffff
904 IPV6_MAX_GROUP_SRC_FILTER = 0x200
905 IPV6_MAX_MEMBERSHIPS = 0xfff
906 IPV6_MAX_SOCK_SRC_FILTER = 0x80
907 IPV6_MIN_MEMBERSHIPS = 0x1f
908 IPV6_MMTU = 0x500
909 IPV6_MSFILTER = 0x4a
910 IPV6_MULTICAST_HOPS = 0xa
911 IPV6_MULTICAST_IF = 0x9
912 IPV6_MULTICAST_LOOP = 0xb
913 IPV6_NEXTHOP = 0x30
914 IPV6_PATHMTU = 0x2c
915 IPV6_PKTINFO = 0x2e
916 IPV6_PORTRANGE = 0xe
917 IPV6_PORTRANGE_DEFAULT = 0x0
918 IPV6_PORTRANGE_HIGH = 0x1
919 IPV6_PORTRANGE_LOW = 0x2
920 IPV6_PREFER_TEMPADDR = 0x3f
921 IPV6_RECVDSTOPTS = 0x28
922 IPV6_RECVHOPLIMIT = 0x25
923 IPV6_RECVHOPOPTS = 0x27
924 IPV6_RECVPATHMTU = 0x2b
925 IPV6_RECVPKTINFO = 0x24
926 IPV6_RECVRTHDR = 0x26
927 IPV6_RECVTCLASS = 0x39
928 IPV6_RTHDR = 0x33
929 IPV6_RTHDRDSTOPTS = 0x23
930 IPV6_RTHDR_LOOSE = 0x0
931 IPV6_RTHDR_STRICT = 0x1
932 IPV6_RTHDR_TYPE_0 = 0x0
933 IPV6_SOCKOPT_RESERVED1 = 0x3
934 IPV6_TCLASS = 0x3d
935 IPV6_UNICAST_HOPS = 0x4
936 IPV6_USE_MIN_MTU = 0x2a
937 IPV6_V6ONLY = 0x1b
938 IPV6_VERSION = 0x60
939 IPV6_VERSION_MASK = 0xf0
940 IP_ADD_MEMBERSHIP = 0xc
941 IP_ADD_SOURCE_MEMBERSHIP = 0x46
942 IP_BINDANY = 0x18
943 IP_BLOCK_SOURCE = 0x48
944 IP_DEFAULT_MULTICAST_LOOP = 0x1
945 IP_DEFAULT_MULTICAST_TTL = 0x1
946 IP_DF = 0x4000
947 IP_DONTFRAG = 0x43
948 IP_DROP_MEMBERSHIP = 0xd
949 IP_DROP_SOURCE_MEMBERSHIP = 0x47
950 IP_DUMMYNET3 = 0x31
951 IP_DUMMYNET_CONFIGURE = 0x3c
952 IP_DUMMYNET_DEL = 0x3d
953 IP_DUMMYNET_FLUSH = 0x3e
954 IP_DUMMYNET_GET = 0x40
955 IP_FAITH = 0x16
956 IP_FW3 = 0x30
957 IP_FW_ADD = 0x32
958 IP_FW_DEL = 0x33
959 IP_FW_FLUSH = 0x34
960 IP_FW_GET = 0x36
961 IP_FW_NAT_CFG = 0x38
962 IP_FW_NAT_DEL = 0x39
963 IP_FW_NAT_GET_CONFIG = 0x3a
964 IP_FW_NAT_GET_LOG = 0x3b
965 IP_FW_RESETLOG = 0x37
966 IP_FW_TABLE_ADD = 0x28
967 IP_FW_TABLE_DEL = 0x29
968 IP_FW_TABLE_FLUSH = 0x2a
969 IP_FW_TABLE_GETSIZE = 0x2b
970 IP_FW_TABLE_LIST = 0x2c
971 IP_FW_ZERO = 0x35
972 IP_HDRINCL = 0x2
973 IP_IPSEC_POLICY = 0x15
974 IP_MAXPACKET = 0xffff
975 IP_MAX_GROUP_SRC_FILTER = 0x200
976 IP_MAX_MEMBERSHIPS = 0xfff
977 IP_MAX_SOCK_MUTE_FILTER = 0x80
978 IP_MAX_SOCK_SRC_FILTER = 0x80
979 IP_MAX_SOURCE_FILTER = 0x400
980 IP_MF = 0x2000
981 IP_MINTTL = 0x42
982 IP_MIN_MEMBERSHIPS = 0x1f
983 IP_MSFILTER = 0x4a
984 IP_MSS = 0x240
985 IP_MULTICAST_IF = 0x9
986 IP_MULTICAST_LOOP = 0xb
987 IP_MULTICAST_TTL = 0xa
988 IP_MULTICAST_VIF = 0xe
989 IP_OFFMASK = 0x1fff
990 IP_ONESBCAST = 0x17
991 IP_OPTIONS = 0x1
992 IP_PORTRANGE = 0x13
993 IP_PORTRANGE_DEFAULT = 0x0
994 IP_PORTRANGE_HIGH = 0x1
995 IP_PORTRANGE_LOW = 0x2
996 IP_RECVDSTADDR = 0x7
997 IP_RECVIF = 0x14
998 IP_RECVOPTS = 0x5
999 IP_RECVRETOPTS = 0x6
1000 IP_RECVTOS = 0x44
1001 IP_RECVTTL = 0x41
1002 IP_RETOPTS = 0x8
1003 IP_RF = 0x8000
1004 IP_RSVP_OFF = 0x10
1005 IP_RSVP_ON = 0xf
1006 IP_RSVP_VIF_OFF = 0x12
1007 IP_RSVP_VIF_ON = 0x11
1008 IP_SENDSRCADDR = 0x7
1009 IP_TOS = 0x3
1010 IP_TTL = 0x4
1011 IP_UNBLOCK_SOURCE = 0x49
1012 ISIG = 0x80
1013 ISTRIP = 0x20
1014 IXANY = 0x800
1015 IXOFF = 0x400
1016 IXON = 0x200
1017 LOCK_EX = 0x2
1018 LOCK_NB = 0x4
1019 LOCK_SH = 0x1
1020 LOCK_UN = 0x8
1021 MADV_AUTOSYNC = 0x7
1022 MADV_CORE = 0x9
1023 MADV_DONTNEED = 0x4
1024 MADV_FREE = 0x5
1025 MADV_NOCORE = 0x8
1026 MADV_NORMAL = 0x0
1027 MADV_NOSYNC = 0x6
1028 MADV_PROTECT = 0xa
1029 MADV_RANDOM = 0x1
1030 MADV_SEQUENTIAL = 0x2
1031 MADV_WILLNEED = 0x3
1032 MAP_ALIGNED_SUPER = 0x1000000
1033 MAP_ALIGNMENT_MASK = -0x1000000
1034 MAP_ALIGNMENT_SHIFT = 0x18
1035 MAP_ANON = 0x1000
1036 MAP_ANONYMOUS = 0x1000
1037 MAP_COPY = 0x2
1038 MAP_EXCL = 0x4000
1039 MAP_FILE = 0x0
1040 MAP_FIXED = 0x10
1041 MAP_HASSEMAPHORE = 0x200
1042 MAP_NOCORE = 0x20000
1043 MAP_NORESERVE = 0x40
1044 MAP_NOSYNC = 0x800
1045 MAP_PREFAULT_READ = 0x40000
1046 MAP_PRIVATE = 0x2
1047 MAP_RENAME = 0x20
1048 MAP_RESERVED0080 = 0x80
1049 MAP_RESERVED0100 = 0x100
1050 MAP_SHARED = 0x1
1051 MAP_STACK = 0x400
1052 MCL_CURRENT = 0x1
1053 MCL_FUTURE = 0x2
1054 MSG_CMSG_CLOEXEC = 0x40000
1055 MSG_COMPAT = 0x8000
1056 MSG_CTRUNC = 0x20
1057 MSG_DONTROUTE = 0x4
1058 MSG_DONTWAIT = 0x80
1059 MSG_EOF = 0x100
1060 MSG_EOR = 0x8
1061 MSG_NBIO = 0x4000
1062 MSG_NOSIGNAL = 0x20000
1063 MSG_NOTIFICATION = 0x2000
1064 MSG_OOB = 0x1
1065 MSG_PEEK = 0x2
1066 MSG_TRUNC = 0x10
1067 MSG_WAITALL = 0x40
1068 MS_ASYNC = 0x1
1069 MS_INVALIDATE = 0x2
1070 MS_SYNC = 0x0
1071 NAME_MAX = 0xff
1072 NET_RT_DUMP = 0x1
1073 NET_RT_FLAGS = 0x2
1074 NET_RT_IFLIST = 0x3
1075 NET_RT_IFLISTL = 0x5
1076 NET_RT_IFMALIST = 0x4
1077 NET_RT_MAXID = 0x6
1078 NOFLSH = 0x80000000
1079 NOTE_ATTRIB = 0x8
1080 NOTE_CHILD = 0x4
1081 NOTE_DELETE = 0x1
1082 NOTE_EXEC = 0x20000000
1083 NOTE_EXIT = 0x80000000
1084 NOTE_EXTEND = 0x4
1085 NOTE_FFAND = 0x40000000
1086 NOTE_FFCOPY = 0xc0000000
1087 NOTE_FFCTRLMASK = 0xc0000000
1088 NOTE_FFLAGSMASK = 0xffffff
1089 NOTE_FFNOP = 0x0
1090 NOTE_FFOR = 0x80000000
1091 NOTE_FORK = 0x40000000
1092 NOTE_LINK = 0x10
1093 NOTE_LOWAT = 0x1
1094 NOTE_PCTRLMASK = 0xf0000000
1095 NOTE_PDATAMASK = 0xfffff
1096 NOTE_RENAME = 0x20
1097 NOTE_REVOKE = 0x40
1098 NOTE_TRACK = 0x1
1099 NOTE_TRACKERR = 0x2
1100 NOTE_TRIGGER = 0x1000000
1101 NOTE_WRITE = 0x2
1102 OCRNL = 0x10
1103 ONLCR = 0x2
1104 ONLRET = 0x40
1105 ONOCR = 0x20
1106 ONOEOT = 0x8
1107 OPOST = 0x1
1108 O_ACCMODE = 0x3
1109 O_APPEND = 0x8
1110 O_ASYNC = 0x40
1111 O_CLOEXEC = 0x100000
1112 O_CREAT = 0x200
1113 O_DIRECT = 0x10000
1114 O_DIRECTORY = 0x20000
1115 O_EXCL = 0x800
1116 O_EXEC = 0x40000
1117 O_EXLOCK = 0x20
1118 O_FSYNC = 0x80
1119 O_NDELAY = 0x4
1120 O_NOCTTY = 0x8000
1121 O_NOFOLLOW = 0x100
1122 O_NONBLOCK = 0x4
1123 O_RDONLY = 0x0
1124 O_RDWR = 0x2
1125 O_SHLOCK = 0x10
1126 O_SYNC = 0x80
1127 O_TRUNC = 0x400
1128 O_TTY_INIT = 0x80000
1129 O_WRONLY = 0x1
1130 PARENB = 0x1000
1131 PARMRK = 0x8
1132 PARODD = 0x2000
1133 PENDIN = 0x20000000
1134 PRIO_PGRP = 0x1
1135 PRIO_PROCESS = 0x0
1136 PRIO_USER = 0x2
1137 PROT_EXEC = 0x4
1138 PROT_NONE = 0x0
1139 PROT_READ = 0x1
1140 PROT_WRITE = 0x2
1141 RLIMIT_AS = 0xa
1142 RLIMIT_CORE = 0x4
1143 RLIMIT_CPU = 0x0
1144 RLIMIT_DATA = 0x2
1145 RLIMIT_FSIZE = 0x1
1146 RLIMIT_NOFILE = 0x8
1147 RLIMIT_STACK = 0x3
1148 RLIM_INFINITY = 0x7fffffffffffffff
1149 RTAX_AUTHOR = 0x6
1150 RTAX_BRD = 0x7
1151 RTAX_DST = 0x0
1152 RTAX_GATEWAY = 0x1
1153 RTAX_GENMASK = 0x3
1154 RTAX_IFA = 0x5
1155 RTAX_IFP = 0x4
1156 RTAX_MAX = 0x8
1157 RTAX_NETMASK = 0x2
1158 RTA_AUTHOR = 0x40
1159 RTA_BRD = 0x80
1160 RTA_DST = 0x1
1161 RTA_GATEWAY = 0x2
1162 RTA_GENMASK = 0x8
1163 RTA_IFA = 0x20
1164 RTA_IFP = 0x10
1165 RTA_NETMASK = 0x4
1166 RTF_BLACKHOLE = 0x1000
1167 RTF_BROADCAST = 0x400000
1168 RTF_DONE = 0x40
1169 RTF_DYNAMIC = 0x10
1170 RTF_FMASK = 0x1004d808
1171 RTF_GATEWAY = 0x2
1172 RTF_GWFLAG_COMPAT = 0x80000000
1173 RTF_HOST = 0x4
1174 RTF_LLDATA = 0x400
1175 RTF_LLINFO = 0x400
1176 RTF_LOCAL = 0x200000
1177 RTF_MODIFIED = 0x20
1178 RTF_MULTICAST = 0x800000
1179 RTF_PINNED = 0x100000
1180 RTF_PRCLONING = 0x10000
1181 RTF_PROTO1 = 0x8000
1182 RTF_PROTO2 = 0x4000
1183 RTF_PROTO3 = 0x40000
1184 RTF_REJECT = 0x8
1185 RTF_RNH_LOCKED = 0x40000000
1186 RTF_STATIC = 0x800
1187 RTF_STICKY = 0x10000000
1188 RTF_UP = 0x1
1189 RTF_XRESOLVE = 0x200
1190 RTM_ADD = 0x1
1191 RTM_CHANGE = 0x3
1192 RTM_DELADDR = 0xd
1193 RTM_DELETE = 0x2
1194 RTM_DELMADDR = 0x10
1195 RTM_GET = 0x4
1196 RTM_IEEE80211 = 0x12
1197 RTM_IFANNOUNCE = 0x11
1198 RTM_IFINFO = 0xe
1199 RTM_LOCK = 0x8
1200 RTM_LOSING = 0x5
1201 RTM_MISS = 0x7
1202 RTM_NEWADDR = 0xc
1203 RTM_NEWMADDR = 0xf
1204 RTM_OLDADD = 0x9
1205 RTM_OLDDEL = 0xa
1206 RTM_REDIRECT = 0x6
1207 RTM_RESOLVE = 0xb
1208 RTM_RTTUNIT = 0xf4240
1209 RTM_VERSION = 0x5
1210 RTV_EXPIRE = 0x4
1211 RTV_HOPCOUNT = 0x2
1212 RTV_MTU = 0x1
1213 RTV_RPIPE = 0x8
1214 RTV_RTT = 0x40
1215 RTV_RTTVAR = 0x80
1216 RTV_SPIPE = 0x10
1217 RTV_SSTHRESH = 0x20
1218 RTV_WEIGHT = 0x100
1219 RT_ALL_FIBS = -0x1
1220 RT_CACHING_CONTEXT = 0x1
1221 RT_DEFAULT_FIB = 0x0
1222 RT_NORTREF = 0x2
1223 RUSAGE_CHILDREN = -0x1
1224 RUSAGE_SELF = 0x0
1225 RUSAGE_THREAD = 0x1
1226 SCM_BINTIME = 0x4
1227 SCM_CREDS = 0x3
1228 SCM_RIGHTS = 0x1
1229 SCM_TIMESTAMP = 0x2
1230 SHUT_RD = 0x0
1231 SHUT_RDWR = 0x2
1232 SHUT_WR = 0x1
1233 SIOCADDMULTI = 0x80206931
1234 SIOCADDRT = 0x8030720a
1235 SIOCAIFADDR = 0x8040691a
1236 SIOCAIFGROUP = 0x80246987
1237 SIOCALIFADDR = 0x8118691b
1238 SIOCATMARK = 0x40047307
1239 SIOCDELMULTI = 0x80206932
1240 SIOCDELRT = 0x8030720b
1241 SIOCDIFADDR = 0x80206919
1242 SIOCDIFGROUP = 0x80246989
1243 SIOCDIFPHYADDR = 0x80206949
1244 SIOCDLIFADDR = 0x8118691d
1245 SIOCGDRVSPEC = 0xc01c697b
1246 SIOCGETSGCNT = 0xc0147210
1247 SIOCGETVIFCNT = 0xc014720f
1248 SIOCGHIWAT = 0x40047301
1249 SIOCGIFADDR = 0xc0206921
1250 SIOCGIFBRDADDR = 0xc0206923
1251 SIOCGIFCAP = 0xc020691f
1252 SIOCGIFCONF = 0xc0086924
1253 SIOCGIFDESCR = 0xc020692a
1254 SIOCGIFDSTADDR = 0xc0206922
1255 SIOCGIFFIB = 0xc020695c
1256 SIOCGIFFLAGS = 0xc0206911
1257 SIOCGIFGENERIC = 0xc020693a
1258 SIOCGIFGMEMB = 0xc024698a
1259 SIOCGIFGROUP = 0xc0246988
1260 SIOCGIFINDEX = 0xc0206920
1261 SIOCGIFMAC = 0xc0206926
1262 SIOCGIFMEDIA = 0xc0286938
1263 SIOCGIFMETRIC = 0xc0206917
1264 SIOCGIFMTU = 0xc0206933
1265 SIOCGIFNETMASK = 0xc0206925
1266 SIOCGIFPDSTADDR = 0xc0206948
1267 SIOCGIFPHYS = 0xc0206935
1268 SIOCGIFPSRCADDR = 0xc0206947
1269 SIOCGIFSTATUS = 0xc331693b
1270 SIOCGLIFADDR = 0xc118691c
1271 SIOCGLIFPHYADDR = 0xc118694b
1272 SIOCGLOWAT = 0x40047303
1273 SIOCGPGRP = 0x40047309
1274 SIOCGPRIVATE_0 = 0xc0206950
1275 SIOCGPRIVATE_1 = 0xc0206951
1276 SIOCIFCREATE = 0xc020697a
1277 SIOCIFCREATE2 = 0xc020697c
1278 SIOCIFDESTROY = 0x80206979
1279 SIOCIFGCLONERS = 0xc00c6978
1280 SIOCSDRVSPEC = 0x801c697b
1281 SIOCSHIWAT = 0x80047300
1282 SIOCSIFADDR = 0x8020690c
1283 SIOCSIFBRDADDR = 0x80206913
1284 SIOCSIFCAP = 0x8020691e
1285 SIOCSIFDESCR = 0x80206929
1286 SIOCSIFDSTADDR = 0x8020690e
1287 SIOCSIFFIB = 0x8020695d
1288 SIOCSIFFLAGS = 0x80206910
1289 SIOCSIFGENERIC = 0x80206939
1290 SIOCSIFLLADDR = 0x8020693c
1291 SIOCSIFMAC = 0x80206927
1292 SIOCSIFMEDIA = 0xc0206937
1293 SIOCSIFMETRIC = 0x80206918
1294 SIOCSIFMTU = 0x80206934
1295 SIOCSIFNAME = 0x80206928
1296 SIOCSIFNETMASK = 0x80206916
1297 SIOCSIFPHYADDR = 0x80406946
1298 SIOCSIFPHYS = 0x80206936
1299 SIOCSIFRVNET = 0xc020695b
1300 SIOCSIFVNET = 0xc020695a
1301 SIOCSLIFPHYADDR = 0x8118694a
1302 SIOCSLOWAT = 0x80047302
1303 SIOCSPGRP = 0x80047308
1304 SOCK_CLOEXEC = 0x10000000
1305 SOCK_DGRAM = 0x2
1306 SOCK_MAXADDRLEN = 0xff
1307 SOCK_NONBLOCK = 0x20000000
1308 SOCK_RAW = 0x3
1309 SOCK_RDM = 0x4
1310 SOCK_SEQPACKET = 0x5
1311 SOCK_STREAM = 0x1
1312 SOL_SOCKET = 0xffff
1313 SOMAXCONN = 0x80
1314 SO_ACCEPTCONN = 0x2
1315 SO_ACCEPTFILTER = 0x1000
1316 SO_BINTIME = 0x2000
1317 SO_BROADCAST = 0x20
1318 SO_DEBUG = 0x1
1319 SO_DONTROUTE = 0x10
1320 SO_ERROR = 0x1007
1321 SO_KEEPALIVE = 0x8
1322 SO_LABEL = 0x1009
1323 SO_LINGER = 0x80
1324 SO_LISTENINCQLEN = 0x1013
1325 SO_LISTENQLEN = 0x1012
1326 SO_LISTENQLIMIT = 0x1011
1327 SO_NOSIGPIPE = 0x800
1328 SO_NO_DDP = 0x8000
1329 SO_NO_OFFLOAD = 0x4000
1330 SO_OOBINLINE = 0x100
1331 SO_PEERLABEL = 0x1010
1332 SO_PROTOCOL = 0x1016
1333 SO_PROTOTYPE = 0x1016
1334 SO_RCVBUF = 0x1002
1335 SO_RCVLOWAT = 0x1004
1336 SO_RCVTIMEO = 0x1006
1337 SO_REUSEADDR = 0x4
1338 SO_REUSEPORT = 0x200
1339 SO_SETFIB = 0x1014
1340 SO_SNDBUF = 0x1001
1341 SO_SNDLOWAT = 0x1003
1342 SO_SNDTIMEO = 0x1005
1343 SO_TIMESTAMP = 0x400
1344 SO_TYPE = 0x1008
1345 SO_USELOOPBACK = 0x40
1346 SO_USER_COOKIE = 0x1015
1347 SO_VENDOR = 0x80000000
1348 TCIFLUSH = 0x1
1349 TCIOFLUSH = 0x3
1350 TCOFLUSH = 0x2
1351 TCP_CA_NAME_MAX = 0x10
1352 TCP_CONGESTION = 0x40
1353 TCP_INFO = 0x20
1354 TCP_KEEPCNT = 0x400
1355 TCP_KEEPIDLE = 0x100
1356 TCP_KEEPINIT = 0x80
1357 TCP_KEEPINTVL = 0x200
1358 TCP_MAXBURST = 0x4
1359 TCP_MAXHLEN = 0x3c
1360 TCP_MAXOLEN = 0x28
1361 TCP_MAXSEG = 0x2
1362 TCP_MAXWIN = 0xffff
1363 TCP_MAX_SACK = 0x4
1364 TCP_MAX_WINSHIFT = 0xe
1365 TCP_MD5SIG = 0x10
1366 TCP_MINMSS = 0xd8
1367 TCP_MSS = 0x218
1368 TCP_NODELAY = 0x1
1369 TCP_NOOPT = 0x8
1370 TCP_NOPUSH = 0x4
1371 TCP_VENDOR = 0x80000000
1372 TCSAFLUSH = 0x2
1373 TIOCCBRK = 0x2000747a
1374 TIOCCDTR = 0x20007478
1375 TIOCCONS = 0x80047462
1376 TIOCDRAIN = 0x2000745e
1377 TIOCEXCL = 0x2000740d
1378 TIOCEXT = 0x80047460
1379 TIOCFLUSH = 0x80047410
1380 TIOCGDRAINWAIT = 0x40047456
1381 TIOCGETA = 0x402c7413
1382 TIOCGETD = 0x4004741a
1383 TIOCGPGRP = 0x40047477
1384 TIOCGPTN = 0x4004740f
1385 TIOCGSID = 0x40047463
1386 TIOCGWINSZ = 0x40087468
1387 TIOCMBIC = 0x8004746b
1388 TIOCMBIS = 0x8004746c
1389 TIOCMGDTRWAIT = 0x4004745a
1390 TIOCMGET = 0x4004746a
1391 TIOCMSDTRWAIT = 0x8004745b
1392 TIOCMSET = 0x8004746d
1393 TIOCM_CAR = 0x40
1394 TIOCM_CD = 0x40
1395 TIOCM_CTS = 0x20
1396 TIOCM_DCD = 0x40
1397 TIOCM_DSR = 0x100
1398 TIOCM_DTR = 0x2
1399 TIOCM_LE = 0x1
1400 TIOCM_RI = 0x80
1401 TIOCM_RNG = 0x80
1402 TIOCM_RTS = 0x4
1403 TIOCM_SR = 0x10
1404 TIOCM_ST = 0x8
1405 TIOCNOTTY = 0x20007471
1406 TIOCNXCL = 0x2000740e
1407 TIOCOUTQ = 0x40047473
1408 TIOCPKT = 0x80047470
1409 TIOCPKT_DATA = 0x0
1410 TIOCPKT_DOSTOP = 0x20
1411 TIOCPKT_FLUSHREAD = 0x1
1412 TIOCPKT_FLUSHWRITE = 0x2
1413 TIOCPKT_IOCTL = 0x40
1414 TIOCPKT_NOSTOP = 0x10
1415 TIOCPKT_START = 0x8
1416 TIOCPKT_STOP = 0x4
1417 TIOCPTMASTER = 0x2000741c
1418 TIOCSBRK = 0x2000747b
1419 TIOCSCTTY = 0x20007461
1420 TIOCSDRAINWAIT = 0x80047457
1421 TIOCSDTR = 0x20007479
1422 TIOCSETA = 0x802c7414
1423 TIOCSETAF = 0x802c7416
1424 TIOCSETAW = 0x802c7415
1425 TIOCSETD = 0x8004741b
1426 TIOCSIG = 0x2004745f
1427 TIOCSPGRP = 0x80047476
1428 TIOCSTART = 0x2000746e
1429 TIOCSTAT = 0x20007465
1430 TIOCSTI = 0x80017472
1431 TIOCSTOP = 0x2000746f
1432 TIOCSWINSZ = 0x80087467
1433 TIOCTIMESTAMP = 0x40087459
1434 TIOCUCNTL = 0x80047466
1435 TOSTOP = 0x400000
1436 VDISCARD = 0xf
1437 VDSUSP = 0xb
1438 VEOF = 0x0
1439 VEOL = 0x1
1440 VEOL2 = 0x2
1441 VERASE = 0x3
1442 VERASE2 = 0x7
1443 VINTR = 0x8
1444 VKILL = 0x5
1445 VLNEXT = 0xe
1446 VMIN = 0x10
1447 VQUIT = 0x9
1448 VREPRINT = 0x6
1449 VSTART = 0xc
1450 VSTATUS = 0x12
1451 VSTOP = 0xd
1452 VSUSP = 0xa
1453 VTIME = 0x11
1454 VWERASE = 0x4
1455 WCONTINUED = 0x4
1456 WCOREFLAG = 0x80
1457 WEXITED = 0x10
1458 WLINUXCLONE = 0x80000000
1459 WNOHANG = 0x1
1460 WNOWAIT = 0x8
1461 WSTOPPED = 0x2
1462 WTRAPPED = 0x20
1463 WUNTRACED = 0x2
1464)
1465
1466// Errors
1467const (
1468 E2BIG = syscall.Errno(0x7)
1469 EACCES = syscall.Errno(0xd)
1470 EADDRINUSE = syscall.Errno(0x30)
1471 EADDRNOTAVAIL = syscall.Errno(0x31)
1472 EAFNOSUPPORT = syscall.Errno(0x2f)
1473 EAGAIN = syscall.Errno(0x23)
1474 EALREADY = syscall.Errno(0x25)
1475 EAUTH = syscall.Errno(0x50)
1476 EBADF = syscall.Errno(0x9)
1477 EBADMSG = syscall.Errno(0x59)
1478 EBADRPC = syscall.Errno(0x48)
1479 EBUSY = syscall.Errno(0x10)
1480 ECANCELED = syscall.Errno(0x55)
1481 ECAPMODE = syscall.Errno(0x5e)
1482 ECHILD = syscall.Errno(0xa)
1483 ECONNABORTED = syscall.Errno(0x35)
1484 ECONNREFUSED = syscall.Errno(0x3d)
1485 ECONNRESET = syscall.Errno(0x36)
1486 EDEADLK = syscall.Errno(0xb)
1487 EDESTADDRREQ = syscall.Errno(0x27)
1488 EDOM = syscall.Errno(0x21)
1489 EDOOFUS = syscall.Errno(0x58)
1490 EDQUOT = syscall.Errno(0x45)
1491 EEXIST = syscall.Errno(0x11)
1492 EFAULT = syscall.Errno(0xe)
1493 EFBIG = syscall.Errno(0x1b)
1494 EFTYPE = syscall.Errno(0x4f)
1495 EHOSTDOWN = syscall.Errno(0x40)
1496 EHOSTUNREACH = syscall.Errno(0x41)
1497 EIDRM = syscall.Errno(0x52)
1498 EILSEQ = syscall.Errno(0x56)
1499 EINPROGRESS = syscall.Errno(0x24)
1500 EINTR = syscall.Errno(0x4)
1501 EINVAL = syscall.Errno(0x16)
1502 EIO = syscall.Errno(0x5)
1503 EISCONN = syscall.Errno(0x38)
1504 EISDIR = syscall.Errno(0x15)
1505 ELAST = syscall.Errno(0x60)
1506 ELOOP = syscall.Errno(0x3e)
1507 EMFILE = syscall.Errno(0x18)
1508 EMLINK = syscall.Errno(0x1f)
1509 EMSGSIZE = syscall.Errno(0x28)
1510 EMULTIHOP = syscall.Errno(0x5a)
1511 ENAMETOOLONG = syscall.Errno(0x3f)
1512 ENEEDAUTH = syscall.Errno(0x51)
1513 ENETDOWN = syscall.Errno(0x32)
1514 ENETRESET = syscall.Errno(0x34)
1515 ENETUNREACH = syscall.Errno(0x33)
1516 ENFILE = syscall.Errno(0x17)
1517 ENOATTR = syscall.Errno(0x57)
1518 ENOBUFS = syscall.Errno(0x37)
1519 ENODEV = syscall.Errno(0x13)
1520 ENOENT = syscall.Errno(0x2)
1521 ENOEXEC = syscall.Errno(0x8)
1522 ENOLCK = syscall.Errno(0x4d)
1523 ENOLINK = syscall.Errno(0x5b)
1524 ENOMEM = syscall.Errno(0xc)
1525 ENOMSG = syscall.Errno(0x53)
1526 ENOPROTOOPT = syscall.Errno(0x2a)
1527 ENOSPC = syscall.Errno(0x1c)
1528 ENOSYS = syscall.Errno(0x4e)
1529 ENOTBLK = syscall.Errno(0xf)
1530 ENOTCAPABLE = syscall.Errno(0x5d)
1531 ENOTCONN = syscall.Errno(0x39)
1532 ENOTDIR = syscall.Errno(0x14)
1533 ENOTEMPTY = syscall.Errno(0x42)
1534 ENOTRECOVERABLE = syscall.Errno(0x5f)
1535 ENOTSOCK = syscall.Errno(0x26)
1536 ENOTSUP = syscall.Errno(0x2d)
1537 ENOTTY = syscall.Errno(0x19)
1538 ENXIO = syscall.Errno(0x6)
1539 EOPNOTSUPP = syscall.Errno(0x2d)
1540 EOVERFLOW = syscall.Errno(0x54)
1541 EOWNERDEAD = syscall.Errno(0x60)
1542 EPERM = syscall.Errno(0x1)
1543 EPFNOSUPPORT = syscall.Errno(0x2e)
1544 EPIPE = syscall.Errno(0x20)
1545 EPROCLIM = syscall.Errno(0x43)
1546 EPROCUNAVAIL = syscall.Errno(0x4c)
1547 EPROGMISMATCH = syscall.Errno(0x4b)
1548 EPROGUNAVAIL = syscall.Errno(0x4a)
1549 EPROTO = syscall.Errno(0x5c)
1550 EPROTONOSUPPORT = syscall.Errno(0x2b)
1551 EPROTOTYPE = syscall.Errno(0x29)
1552 ERANGE = syscall.Errno(0x22)
1553 EREMOTE = syscall.Errno(0x47)
1554 EROFS = syscall.Errno(0x1e)
1555 ERPCMISMATCH = syscall.Errno(0x49)
1556 ESHUTDOWN = syscall.Errno(0x3a)
1557 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1558 ESPIPE = syscall.Errno(0x1d)
1559 ESRCH = syscall.Errno(0x3)
1560 ESTALE = syscall.Errno(0x46)
1561 ETIMEDOUT = syscall.Errno(0x3c)
1562 ETOOMANYREFS = syscall.Errno(0x3b)
1563 ETXTBSY = syscall.Errno(0x1a)
1564 EUSERS = syscall.Errno(0x44)
1565 EWOULDBLOCK = syscall.Errno(0x23)
1566 EXDEV = syscall.Errno(0x12)
1567)
1568
1569// Signals
1570const (
1571 SIGABRT = syscall.Signal(0x6)
1572 SIGALRM = syscall.Signal(0xe)
1573 SIGBUS = syscall.Signal(0xa)
1574 SIGCHLD = syscall.Signal(0x14)
1575 SIGCONT = syscall.Signal(0x13)
1576 SIGEMT = syscall.Signal(0x7)
1577 SIGFPE = syscall.Signal(0x8)
1578 SIGHUP = syscall.Signal(0x1)
1579 SIGILL = syscall.Signal(0x4)
1580 SIGINFO = syscall.Signal(0x1d)
1581 SIGINT = syscall.Signal(0x2)
1582 SIGIO = syscall.Signal(0x17)
1583 SIGIOT = syscall.Signal(0x6)
1584 SIGKILL = syscall.Signal(0x9)
1585 SIGLIBRT = syscall.Signal(0x21)
1586 SIGLWP = syscall.Signal(0x20)
1587 SIGPIPE = syscall.Signal(0xd)
1588 SIGPROF = syscall.Signal(0x1b)
1589 SIGQUIT = syscall.Signal(0x3)
1590 SIGSEGV = syscall.Signal(0xb)
1591 SIGSTOP = syscall.Signal(0x11)
1592 SIGSYS = syscall.Signal(0xc)
1593 SIGTERM = syscall.Signal(0xf)
1594 SIGTHR = syscall.Signal(0x20)
1595 SIGTRAP = syscall.Signal(0x5)
1596 SIGTSTP = syscall.Signal(0x12)
1597 SIGTTIN = syscall.Signal(0x15)
1598 SIGTTOU = syscall.Signal(0x16)
1599 SIGURG = syscall.Signal(0x10)
1600 SIGUSR1 = syscall.Signal(0x1e)
1601 SIGUSR2 = syscall.Signal(0x1f)
1602 SIGVTALRM = syscall.Signal(0x1a)
1603 SIGWINCH = syscall.Signal(0x1c)
1604 SIGXCPU = syscall.Signal(0x18)
1605 SIGXFSZ = syscall.Signal(0x19)
1606)
1607
1608// Error table
1609var errors = [...]string{
1610 1: "operation not permitted",
1611 2: "no such file or directory",
1612 3: "no such process",
1613 4: "interrupted system call",
1614 5: "input/output error",
1615 6: "device not configured",
1616 7: "argument list too long",
1617 8: "exec format error",
1618 9: "bad file descriptor",
1619 10: "no child processes",
1620 11: "resource deadlock avoided",
1621 12: "cannot allocate memory",
1622 13: "permission denied",
1623 14: "bad address",
1624 15: "block device required",
1625 16: "device busy",
1626 17: "file exists",
1627 18: "cross-device link",
1628 19: "operation not supported by device",
1629 20: "not a directory",
1630 21: "is a directory",
1631 22: "invalid argument",
1632 23: "too many open files in system",
1633 24: "too many open files",
1634 25: "inappropriate ioctl for device",
1635 26: "text file busy",
1636 27: "file too large",
1637 28: "no space left on device",
1638 29: "illegal seek",
1639 30: "read-only file system",
1640 31: "too many links",
1641 32: "broken pipe",
1642 33: "numerical argument out of domain",
1643 34: "result too large",
1644 35: "resource temporarily unavailable",
1645 36: "operation now in progress",
1646 37: "operation already in progress",
1647 38: "socket operation on non-socket",
1648 39: "destination address required",
1649 40: "message too long",
1650 41: "protocol wrong type for socket",
1651 42: "protocol not available",
1652 43: "protocol not supported",
1653 44: "socket type not supported",
1654 45: "operation not supported",
1655 46: "protocol family not supported",
1656 47: "address family not supported by protocol family",
1657 48: "address already in use",
1658 49: "can't assign requested address",
1659 50: "network is down",
1660 51: "network is unreachable",
1661 52: "network dropped connection on reset",
1662 53: "software caused connection abort",
1663 54: "connection reset by peer",
1664 55: "no buffer space available",
1665 56: "socket is already connected",
1666 57: "socket is not connected",
1667 58: "can't send after socket shutdown",
1668 59: "too many references: can't splice",
1669 60: "operation timed out",
1670 61: "connection refused",
1671 62: "too many levels of symbolic links",
1672 63: "file name too long",
1673 64: "host is down",
1674 65: "no route to host",
1675 66: "directory not empty",
1676 67: "too many processes",
1677 68: "too many users",
1678 69: "disc quota exceeded",
1679 70: "stale NFS file handle",
1680 71: "too many levels of remote in path",
1681 72: "RPC struct is bad",
1682 73: "RPC version wrong",
1683 74: "RPC prog. not avail",
1684 75: "program version wrong",
1685 76: "bad procedure for program",
1686 77: "no locks available",
1687 78: "function not implemented",
1688 79: "inappropriate file type or format",
1689 80: "authentication error",
1690 81: "need authenticator",
1691 82: "identifier removed",
1692 83: "no message of desired type",
1693 84: "value too large to be stored in data type",
1694 85: "operation canceled",
1695 86: "illegal byte sequence",
1696 87: "attribute not found",
1697 88: "programming error",
1698 89: "bad message",
1699 90: "multihop attempted",
1700 91: "link has been severed",
1701 92: "protocol error",
1702 93: "capabilities insufficient",
1703 94: "not permitted in capability mode",
1704 95: "state not recoverable",
1705 96: "previous owner died",
1706}
1707
1708// Signal table
1709var signals = [...]string{
1710 1: "hangup",
1711 2: "interrupt",
1712 3: "quit",
1713 4: "illegal instruction",
1714 5: "trace/BPT trap",
1715 6: "abort trap",
1716 7: "EMT trap",
1717 8: "floating point exception",
1718 9: "killed",
1719 10: "bus error",
1720 11: "segmentation fault",
1721 12: "bad system call",
1722 13: "broken pipe",
1723 14: "alarm clock",
1724 15: "terminated",
1725 16: "urgent I/O condition",
1726 17: "suspended (signal)",
1727 18: "suspended",
1728 19: "continued",
1729 20: "child exited",
1730 21: "stopped (tty input)",
1731 22: "stopped (tty output)",
1732 23: "I/O possible",
1733 24: "cputime limit exceeded",
1734 25: "filesize limit exceeded",
1735 26: "virtual timer expired",
1736 27: "profiling timer expired",
1737 28: "window size changes",
1738 29: "information request",
1739 30: "user defined signal 1",
1740 31: "user defined signal 2",
1741 32: "unknown signal",
1742 33: "unknown signal",
1743}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
deleted file mode 100644
index e48e779..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
+++ /dev/null
@@ -1,1748 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,freebsd
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_ARP = 0x23
16 AF_ATM = 0x1e
17 AF_BLUETOOTH = 0x24
18 AF_CCITT = 0xa
19 AF_CHAOS = 0x5
20 AF_CNT = 0x15
21 AF_COIP = 0x14
22 AF_DATAKIT = 0x9
23 AF_DECnet = 0xc
24 AF_DLI = 0xd
25 AF_E164 = 0x1a
26 AF_ECMA = 0x8
27 AF_HYLINK = 0xf
28 AF_IEEE80211 = 0x25
29 AF_IMPLINK = 0x3
30 AF_INET = 0x2
31 AF_INET6 = 0x1c
32 AF_INET6_SDP = 0x2a
33 AF_INET_SDP = 0x28
34 AF_IPX = 0x17
35 AF_ISDN = 0x1a
36 AF_ISO = 0x7
37 AF_LAT = 0xe
38 AF_LINK = 0x12
39 AF_LOCAL = 0x1
40 AF_MAX = 0x2a
41 AF_NATM = 0x1d
42 AF_NETBIOS = 0x6
43 AF_NETGRAPH = 0x20
44 AF_OSI = 0x7
45 AF_PUP = 0x4
46 AF_ROUTE = 0x11
47 AF_SCLUSTER = 0x22
48 AF_SIP = 0x18
49 AF_SLOW = 0x21
50 AF_SNA = 0xb
51 AF_UNIX = 0x1
52 AF_UNSPEC = 0x0
53 AF_VENDOR00 = 0x27
54 AF_VENDOR01 = 0x29
55 AF_VENDOR02 = 0x2b
56 AF_VENDOR03 = 0x2d
57 AF_VENDOR04 = 0x2f
58 AF_VENDOR05 = 0x31
59 AF_VENDOR06 = 0x33
60 AF_VENDOR07 = 0x35
61 AF_VENDOR08 = 0x37
62 AF_VENDOR09 = 0x39
63 AF_VENDOR10 = 0x3b
64 AF_VENDOR11 = 0x3d
65 AF_VENDOR12 = 0x3f
66 AF_VENDOR13 = 0x41
67 AF_VENDOR14 = 0x43
68 AF_VENDOR15 = 0x45
69 AF_VENDOR16 = 0x47
70 AF_VENDOR17 = 0x49
71 AF_VENDOR18 = 0x4b
72 AF_VENDOR19 = 0x4d
73 AF_VENDOR20 = 0x4f
74 AF_VENDOR21 = 0x51
75 AF_VENDOR22 = 0x53
76 AF_VENDOR23 = 0x55
77 AF_VENDOR24 = 0x57
78 AF_VENDOR25 = 0x59
79 AF_VENDOR26 = 0x5b
80 AF_VENDOR27 = 0x5d
81 AF_VENDOR28 = 0x5f
82 AF_VENDOR29 = 0x61
83 AF_VENDOR30 = 0x63
84 AF_VENDOR31 = 0x65
85 AF_VENDOR32 = 0x67
86 AF_VENDOR33 = 0x69
87 AF_VENDOR34 = 0x6b
88 AF_VENDOR35 = 0x6d
89 AF_VENDOR36 = 0x6f
90 AF_VENDOR37 = 0x71
91 AF_VENDOR38 = 0x73
92 AF_VENDOR39 = 0x75
93 AF_VENDOR40 = 0x77
94 AF_VENDOR41 = 0x79
95 AF_VENDOR42 = 0x7b
96 AF_VENDOR43 = 0x7d
97 AF_VENDOR44 = 0x7f
98 AF_VENDOR45 = 0x81
99 AF_VENDOR46 = 0x83
100 AF_VENDOR47 = 0x85
101 B0 = 0x0
102 B110 = 0x6e
103 B115200 = 0x1c200
104 B1200 = 0x4b0
105 B134 = 0x86
106 B14400 = 0x3840
107 B150 = 0x96
108 B1800 = 0x708
109 B19200 = 0x4b00
110 B200 = 0xc8
111 B230400 = 0x38400
112 B2400 = 0x960
113 B28800 = 0x7080
114 B300 = 0x12c
115 B38400 = 0x9600
116 B460800 = 0x70800
117 B4800 = 0x12c0
118 B50 = 0x32
119 B57600 = 0xe100
120 B600 = 0x258
121 B7200 = 0x1c20
122 B75 = 0x4b
123 B76800 = 0x12c00
124 B921600 = 0xe1000
125 B9600 = 0x2580
126 BIOCFEEDBACK = 0x8004427c
127 BIOCFLUSH = 0x20004268
128 BIOCGBLEN = 0x40044266
129 BIOCGDIRECTION = 0x40044276
130 BIOCGDLT = 0x4004426a
131 BIOCGDLTLIST = 0xc0104279
132 BIOCGETBUFMODE = 0x4004427d
133 BIOCGETIF = 0x4020426b
134 BIOCGETZMAX = 0x4008427f
135 BIOCGHDRCMPLT = 0x40044274
136 BIOCGRSIG = 0x40044272
137 BIOCGRTIMEOUT = 0x4010426e
138 BIOCGSEESENT = 0x40044276
139 BIOCGSTATS = 0x4008426f
140 BIOCGTSTAMP = 0x40044283
141 BIOCIMMEDIATE = 0x80044270
142 BIOCLOCK = 0x2000427a
143 BIOCPROMISC = 0x20004269
144 BIOCROTZBUF = 0x40184280
145 BIOCSBLEN = 0xc0044266
146 BIOCSDIRECTION = 0x80044277
147 BIOCSDLT = 0x80044278
148 BIOCSETBUFMODE = 0x8004427e
149 BIOCSETF = 0x80104267
150 BIOCSETFNR = 0x80104282
151 BIOCSETIF = 0x8020426c
152 BIOCSETWF = 0x8010427b
153 BIOCSETZBUF = 0x80184281
154 BIOCSHDRCMPLT = 0x80044275
155 BIOCSRSIG = 0x80044273
156 BIOCSRTIMEOUT = 0x8010426d
157 BIOCSSEESENT = 0x80044277
158 BIOCSTSTAMP = 0x80044284
159 BIOCVERSION = 0x40044271
160 BPF_A = 0x10
161 BPF_ABS = 0x20
162 BPF_ADD = 0x0
163 BPF_ALIGNMENT = 0x8
164 BPF_ALU = 0x4
165 BPF_AND = 0x50
166 BPF_B = 0x10
167 BPF_BUFMODE_BUFFER = 0x1
168 BPF_BUFMODE_ZBUF = 0x2
169 BPF_DIV = 0x30
170 BPF_H = 0x8
171 BPF_IMM = 0x0
172 BPF_IND = 0x40
173 BPF_JA = 0x0
174 BPF_JEQ = 0x10
175 BPF_JGE = 0x30
176 BPF_JGT = 0x20
177 BPF_JMP = 0x5
178 BPF_JSET = 0x40
179 BPF_K = 0x0
180 BPF_LD = 0x0
181 BPF_LDX = 0x1
182 BPF_LEN = 0x80
183 BPF_LSH = 0x60
184 BPF_MAJOR_VERSION = 0x1
185 BPF_MAXBUFSIZE = 0x80000
186 BPF_MAXINSNS = 0x200
187 BPF_MEM = 0x60
188 BPF_MEMWORDS = 0x10
189 BPF_MINBUFSIZE = 0x20
190 BPF_MINOR_VERSION = 0x1
191 BPF_MISC = 0x7
192 BPF_MSH = 0xa0
193 BPF_MUL = 0x20
194 BPF_NEG = 0x80
195 BPF_OR = 0x40
196 BPF_RELEASE = 0x30bb6
197 BPF_RET = 0x6
198 BPF_RSH = 0x70
199 BPF_ST = 0x2
200 BPF_STX = 0x3
201 BPF_SUB = 0x10
202 BPF_TAX = 0x0
203 BPF_TXA = 0x80
204 BPF_T_BINTIME = 0x2
205 BPF_T_BINTIME_FAST = 0x102
206 BPF_T_BINTIME_MONOTONIC = 0x202
207 BPF_T_BINTIME_MONOTONIC_FAST = 0x302
208 BPF_T_FAST = 0x100
209 BPF_T_FLAG_MASK = 0x300
210 BPF_T_FORMAT_MASK = 0x3
211 BPF_T_MICROTIME = 0x0
212 BPF_T_MICROTIME_FAST = 0x100
213 BPF_T_MICROTIME_MONOTONIC = 0x200
214 BPF_T_MICROTIME_MONOTONIC_FAST = 0x300
215 BPF_T_MONOTONIC = 0x200
216 BPF_T_MONOTONIC_FAST = 0x300
217 BPF_T_NANOTIME = 0x1
218 BPF_T_NANOTIME_FAST = 0x101
219 BPF_T_NANOTIME_MONOTONIC = 0x201
220 BPF_T_NANOTIME_MONOTONIC_FAST = 0x301
221 BPF_T_NONE = 0x3
222 BPF_T_NORMAL = 0x0
223 BPF_W = 0x0
224 BPF_X = 0x8
225 BRKINT = 0x2
226 CFLUSH = 0xf
227 CLOCAL = 0x8000
228 CLOCK_MONOTONIC = 0x4
229 CLOCK_MONOTONIC_FAST = 0xc
230 CLOCK_MONOTONIC_PRECISE = 0xb
231 CLOCK_PROCESS_CPUTIME_ID = 0xf
232 CLOCK_PROF = 0x2
233 CLOCK_REALTIME = 0x0
234 CLOCK_REALTIME_FAST = 0xa
235 CLOCK_REALTIME_PRECISE = 0x9
236 CLOCK_SECOND = 0xd
237 CLOCK_THREAD_CPUTIME_ID = 0xe
238 CLOCK_UPTIME = 0x5
239 CLOCK_UPTIME_FAST = 0x8
240 CLOCK_UPTIME_PRECISE = 0x7
241 CLOCK_VIRTUAL = 0x1
242 CREAD = 0x800
243 CS5 = 0x0
244 CS6 = 0x100
245 CS7 = 0x200
246 CS8 = 0x300
247 CSIZE = 0x300
248 CSTART = 0x11
249 CSTATUS = 0x14
250 CSTOP = 0x13
251 CSTOPB = 0x400
252 CSUSP = 0x1a
253 CTL_MAXNAME = 0x18
254 CTL_NET = 0x4
255 DLT_A429 = 0xb8
256 DLT_A653_ICM = 0xb9
257 DLT_AIRONET_HEADER = 0x78
258 DLT_AOS = 0xde
259 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
260 DLT_ARCNET = 0x7
261 DLT_ARCNET_LINUX = 0x81
262 DLT_ATM_CLIP = 0x13
263 DLT_ATM_RFC1483 = 0xb
264 DLT_AURORA = 0x7e
265 DLT_AX25 = 0x3
266 DLT_AX25_KISS = 0xca
267 DLT_BACNET_MS_TP = 0xa5
268 DLT_BLUETOOTH_HCI_H4 = 0xbb
269 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
270 DLT_CAN20B = 0xbe
271 DLT_CAN_SOCKETCAN = 0xe3
272 DLT_CHAOS = 0x5
273 DLT_CHDLC = 0x68
274 DLT_CISCO_IOS = 0x76
275 DLT_C_HDLC = 0x68
276 DLT_C_HDLC_WITH_DIR = 0xcd
277 DLT_DBUS = 0xe7
278 DLT_DECT = 0xdd
279 DLT_DOCSIS = 0x8f
280 DLT_DVB_CI = 0xeb
281 DLT_ECONET = 0x73
282 DLT_EN10MB = 0x1
283 DLT_EN3MB = 0x2
284 DLT_ENC = 0x6d
285 DLT_ERF = 0xc5
286 DLT_ERF_ETH = 0xaf
287 DLT_ERF_POS = 0xb0
288 DLT_FC_2 = 0xe0
289 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
290 DLT_FDDI = 0xa
291 DLT_FLEXRAY = 0xd2
292 DLT_FRELAY = 0x6b
293 DLT_FRELAY_WITH_DIR = 0xce
294 DLT_GCOM_SERIAL = 0xad
295 DLT_GCOM_T1E1 = 0xac
296 DLT_GPF_F = 0xab
297 DLT_GPF_T = 0xaa
298 DLT_GPRS_LLC = 0xa9
299 DLT_GSMTAP_ABIS = 0xda
300 DLT_GSMTAP_UM = 0xd9
301 DLT_HHDLC = 0x79
302 DLT_IBM_SN = 0x92
303 DLT_IBM_SP = 0x91
304 DLT_IEEE802 = 0x6
305 DLT_IEEE802_11 = 0x69
306 DLT_IEEE802_11_RADIO = 0x7f
307 DLT_IEEE802_11_RADIO_AVS = 0xa3
308 DLT_IEEE802_15_4 = 0xc3
309 DLT_IEEE802_15_4_LINUX = 0xbf
310 DLT_IEEE802_15_4_NOFCS = 0xe6
311 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
312 DLT_IEEE802_16_MAC_CPS = 0xbc
313 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
314 DLT_IPFILTER = 0x74
315 DLT_IPMB = 0xc7
316 DLT_IPMB_LINUX = 0xd1
317 DLT_IPNET = 0xe2
318 DLT_IPOIB = 0xf2
319 DLT_IPV4 = 0xe4
320 DLT_IPV6 = 0xe5
321 DLT_IP_OVER_FC = 0x7a
322 DLT_JUNIPER_ATM1 = 0x89
323 DLT_JUNIPER_ATM2 = 0x87
324 DLT_JUNIPER_ATM_CEMIC = 0xee
325 DLT_JUNIPER_CHDLC = 0xb5
326 DLT_JUNIPER_ES = 0x84
327 DLT_JUNIPER_ETHER = 0xb2
328 DLT_JUNIPER_FIBRECHANNEL = 0xea
329 DLT_JUNIPER_FRELAY = 0xb4
330 DLT_JUNIPER_GGSN = 0x85
331 DLT_JUNIPER_ISM = 0xc2
332 DLT_JUNIPER_MFR = 0x86
333 DLT_JUNIPER_MLFR = 0x83
334 DLT_JUNIPER_MLPPP = 0x82
335 DLT_JUNIPER_MONITOR = 0xa4
336 DLT_JUNIPER_PIC_PEER = 0xae
337 DLT_JUNIPER_PPP = 0xb3
338 DLT_JUNIPER_PPPOE = 0xa7
339 DLT_JUNIPER_PPPOE_ATM = 0xa8
340 DLT_JUNIPER_SERVICES = 0x88
341 DLT_JUNIPER_SRX_E2E = 0xe9
342 DLT_JUNIPER_ST = 0xc8
343 DLT_JUNIPER_VP = 0xb7
344 DLT_JUNIPER_VS = 0xe8
345 DLT_LAPB_WITH_DIR = 0xcf
346 DLT_LAPD = 0xcb
347 DLT_LIN = 0xd4
348 DLT_LINUX_EVDEV = 0xd8
349 DLT_LINUX_IRDA = 0x90
350 DLT_LINUX_LAPD = 0xb1
351 DLT_LINUX_PPP_WITHDIRECTION = 0xa6
352 DLT_LINUX_SLL = 0x71
353 DLT_LOOP = 0x6c
354 DLT_LTALK = 0x72
355 DLT_MATCHING_MAX = 0xf6
356 DLT_MATCHING_MIN = 0x68
357 DLT_MFR = 0xb6
358 DLT_MOST = 0xd3
359 DLT_MPEG_2_TS = 0xf3
360 DLT_MPLS = 0xdb
361 DLT_MTP2 = 0x8c
362 DLT_MTP2_WITH_PHDR = 0x8b
363 DLT_MTP3 = 0x8d
364 DLT_MUX27010 = 0xec
365 DLT_NETANALYZER = 0xf0
366 DLT_NETANALYZER_TRANSPARENT = 0xf1
367 DLT_NFC_LLCP = 0xf5
368 DLT_NFLOG = 0xef
369 DLT_NG40 = 0xf4
370 DLT_NULL = 0x0
371 DLT_PCI_EXP = 0x7d
372 DLT_PFLOG = 0x75
373 DLT_PFSYNC = 0x79
374 DLT_PPI = 0xc0
375 DLT_PPP = 0x9
376 DLT_PPP_BSDOS = 0x10
377 DLT_PPP_ETHER = 0x33
378 DLT_PPP_PPPD = 0xa6
379 DLT_PPP_SERIAL = 0x32
380 DLT_PPP_WITH_DIR = 0xcc
381 DLT_PPP_WITH_DIRECTION = 0xa6
382 DLT_PRISM_HEADER = 0x77
383 DLT_PRONET = 0x4
384 DLT_RAIF1 = 0xc6
385 DLT_RAW = 0xc
386 DLT_RIO = 0x7c
387 DLT_SCCP = 0x8e
388 DLT_SITA = 0xc4
389 DLT_SLIP = 0x8
390 DLT_SLIP_BSDOS = 0xf
391 DLT_STANAG_5066_D_PDU = 0xed
392 DLT_SUNATM = 0x7b
393 DLT_SYMANTEC_FIREWALL = 0x63
394 DLT_TZSP = 0x80
395 DLT_USB = 0xba
396 DLT_USB_LINUX = 0xbd
397 DLT_USB_LINUX_MMAPPED = 0xdc
398 DLT_USER0 = 0x93
399 DLT_USER1 = 0x94
400 DLT_USER10 = 0x9d
401 DLT_USER11 = 0x9e
402 DLT_USER12 = 0x9f
403 DLT_USER13 = 0xa0
404 DLT_USER14 = 0xa1
405 DLT_USER15 = 0xa2
406 DLT_USER2 = 0x95
407 DLT_USER3 = 0x96
408 DLT_USER4 = 0x97
409 DLT_USER5 = 0x98
410 DLT_USER6 = 0x99
411 DLT_USER7 = 0x9a
412 DLT_USER8 = 0x9b
413 DLT_USER9 = 0x9c
414 DLT_WIHART = 0xdf
415 DLT_X2E_SERIAL = 0xd5
416 DLT_X2E_XORAYA = 0xd6
417 DT_BLK = 0x6
418 DT_CHR = 0x2
419 DT_DIR = 0x4
420 DT_FIFO = 0x1
421 DT_LNK = 0xa
422 DT_REG = 0x8
423 DT_SOCK = 0xc
424 DT_UNKNOWN = 0x0
425 DT_WHT = 0xe
426 ECHO = 0x8
427 ECHOCTL = 0x40
428 ECHOE = 0x2
429 ECHOK = 0x4
430 ECHOKE = 0x1
431 ECHONL = 0x10
432 ECHOPRT = 0x20
433 EVFILT_AIO = -0x3
434 EVFILT_FS = -0x9
435 EVFILT_LIO = -0xa
436 EVFILT_PROC = -0x5
437 EVFILT_READ = -0x1
438 EVFILT_SIGNAL = -0x6
439 EVFILT_SYSCOUNT = 0xb
440 EVFILT_TIMER = -0x7
441 EVFILT_USER = -0xb
442 EVFILT_VNODE = -0x4
443 EVFILT_WRITE = -0x2
444 EV_ADD = 0x1
445 EV_CLEAR = 0x20
446 EV_DELETE = 0x2
447 EV_DISABLE = 0x8
448 EV_DISPATCH = 0x80
449 EV_DROP = 0x1000
450 EV_ENABLE = 0x4
451 EV_EOF = 0x8000
452 EV_ERROR = 0x4000
453 EV_FLAG1 = 0x2000
454 EV_ONESHOT = 0x10
455 EV_RECEIPT = 0x40
456 EV_SYSFLAGS = 0xf000
457 EXTA = 0x4b00
458 EXTATTR_NAMESPACE_EMPTY = 0x0
459 EXTATTR_NAMESPACE_SYSTEM = 0x2
460 EXTATTR_NAMESPACE_USER = 0x1
461 EXTB = 0x9600
462 EXTPROC = 0x800
463 FD_CLOEXEC = 0x1
464 FD_SETSIZE = 0x400
465 FLUSHO = 0x800000
466 F_CANCEL = 0x5
467 F_DUP2FD = 0xa
468 F_DUP2FD_CLOEXEC = 0x12
469 F_DUPFD = 0x0
470 F_DUPFD_CLOEXEC = 0x11
471 F_GETFD = 0x1
472 F_GETFL = 0x3
473 F_GETLK = 0xb
474 F_GETOWN = 0x5
475 F_OGETLK = 0x7
476 F_OK = 0x0
477 F_OSETLK = 0x8
478 F_OSETLKW = 0x9
479 F_RDAHEAD = 0x10
480 F_RDLCK = 0x1
481 F_READAHEAD = 0xf
482 F_SETFD = 0x2
483 F_SETFL = 0x4
484 F_SETLK = 0xc
485 F_SETLKW = 0xd
486 F_SETLK_REMOTE = 0xe
487 F_SETOWN = 0x6
488 F_UNLCK = 0x2
489 F_UNLCKSYS = 0x4
490 F_WRLCK = 0x3
491 HUPCL = 0x4000
492 ICANON = 0x100
493 ICMP6_FILTER = 0x12
494 ICRNL = 0x100
495 IEXTEN = 0x400
496 IFAN_ARRIVAL = 0x0
497 IFAN_DEPARTURE = 0x1
498 IFF_ALLMULTI = 0x200
499 IFF_ALTPHYS = 0x4000
500 IFF_BROADCAST = 0x2
501 IFF_CANTCHANGE = 0x218f72
502 IFF_CANTCONFIG = 0x10000
503 IFF_DEBUG = 0x4
504 IFF_DRV_OACTIVE = 0x400
505 IFF_DRV_RUNNING = 0x40
506 IFF_DYING = 0x200000
507 IFF_LINK0 = 0x1000
508 IFF_LINK1 = 0x2000
509 IFF_LINK2 = 0x4000
510 IFF_LOOPBACK = 0x8
511 IFF_MONITOR = 0x40000
512 IFF_MULTICAST = 0x8000
513 IFF_NOARP = 0x80
514 IFF_OACTIVE = 0x400
515 IFF_POINTOPOINT = 0x10
516 IFF_PPROMISC = 0x20000
517 IFF_PROMISC = 0x100
518 IFF_RENAMING = 0x400000
519 IFF_RUNNING = 0x40
520 IFF_SIMPLEX = 0x800
521 IFF_SMART = 0x20
522 IFF_STATICARP = 0x80000
523 IFF_UP = 0x1
524 IFNAMSIZ = 0x10
525 IFT_1822 = 0x2
526 IFT_A12MPPSWITCH = 0x82
527 IFT_AAL2 = 0xbb
528 IFT_AAL5 = 0x31
529 IFT_ADSL = 0x5e
530 IFT_AFLANE8023 = 0x3b
531 IFT_AFLANE8025 = 0x3c
532 IFT_ARAP = 0x58
533 IFT_ARCNET = 0x23
534 IFT_ARCNETPLUS = 0x24
535 IFT_ASYNC = 0x54
536 IFT_ATM = 0x25
537 IFT_ATMDXI = 0x69
538 IFT_ATMFUNI = 0x6a
539 IFT_ATMIMA = 0x6b
540 IFT_ATMLOGICAL = 0x50
541 IFT_ATMRADIO = 0xbd
542 IFT_ATMSUBINTERFACE = 0x86
543 IFT_ATMVCIENDPT = 0xc2
544 IFT_ATMVIRTUAL = 0x95
545 IFT_BGPPOLICYACCOUNTING = 0xa2
546 IFT_BRIDGE = 0xd1
547 IFT_BSC = 0x53
548 IFT_CARP = 0xf8
549 IFT_CCTEMUL = 0x3d
550 IFT_CEPT = 0x13
551 IFT_CES = 0x85
552 IFT_CHANNEL = 0x46
553 IFT_CNR = 0x55
554 IFT_COFFEE = 0x84
555 IFT_COMPOSITELINK = 0x9b
556 IFT_DCN = 0x8d
557 IFT_DIGITALPOWERLINE = 0x8a
558 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
559 IFT_DLSW = 0x4a
560 IFT_DOCSCABLEDOWNSTREAM = 0x80
561 IFT_DOCSCABLEMACLAYER = 0x7f
562 IFT_DOCSCABLEUPSTREAM = 0x81
563 IFT_DS0 = 0x51
564 IFT_DS0BUNDLE = 0x52
565 IFT_DS1FDL = 0xaa
566 IFT_DS3 = 0x1e
567 IFT_DTM = 0x8c
568 IFT_DVBASILN = 0xac
569 IFT_DVBASIOUT = 0xad
570 IFT_DVBRCCDOWNSTREAM = 0x93
571 IFT_DVBRCCMACLAYER = 0x92
572 IFT_DVBRCCUPSTREAM = 0x94
573 IFT_ENC = 0xf4
574 IFT_EON = 0x19
575 IFT_EPLRS = 0x57
576 IFT_ESCON = 0x49
577 IFT_ETHER = 0x6
578 IFT_FAITH = 0xf2
579 IFT_FAST = 0x7d
580 IFT_FASTETHER = 0x3e
581 IFT_FASTETHERFX = 0x45
582 IFT_FDDI = 0xf
583 IFT_FIBRECHANNEL = 0x38
584 IFT_FRAMERELAYINTERCONNECT = 0x3a
585 IFT_FRAMERELAYMPI = 0x5c
586 IFT_FRDLCIENDPT = 0xc1
587 IFT_FRELAY = 0x20
588 IFT_FRELAYDCE = 0x2c
589 IFT_FRF16MFRBUNDLE = 0xa3
590 IFT_FRFORWARD = 0x9e
591 IFT_G703AT2MB = 0x43
592 IFT_G703AT64K = 0x42
593 IFT_GIF = 0xf0
594 IFT_GIGABITETHERNET = 0x75
595 IFT_GR303IDT = 0xb2
596 IFT_GR303RDT = 0xb1
597 IFT_H323GATEKEEPER = 0xa4
598 IFT_H323PROXY = 0xa5
599 IFT_HDH1822 = 0x3
600 IFT_HDLC = 0x76
601 IFT_HDSL2 = 0xa8
602 IFT_HIPERLAN2 = 0xb7
603 IFT_HIPPI = 0x2f
604 IFT_HIPPIINTERFACE = 0x39
605 IFT_HOSTPAD = 0x5a
606 IFT_HSSI = 0x2e
607 IFT_HY = 0xe
608 IFT_IBM370PARCHAN = 0x48
609 IFT_IDSL = 0x9a
610 IFT_IEEE1394 = 0x90
611 IFT_IEEE80211 = 0x47
612 IFT_IEEE80212 = 0x37
613 IFT_IEEE8023ADLAG = 0xa1
614 IFT_IFGSN = 0x91
615 IFT_IMT = 0xbe
616 IFT_INFINIBAND = 0xc7
617 IFT_INTERLEAVE = 0x7c
618 IFT_IP = 0x7e
619 IFT_IPFORWARD = 0x8e
620 IFT_IPOVERATM = 0x72
621 IFT_IPOVERCDLC = 0x6d
622 IFT_IPOVERCLAW = 0x6e
623 IFT_IPSWITCH = 0x4e
624 IFT_IPXIP = 0xf9
625 IFT_ISDN = 0x3f
626 IFT_ISDNBASIC = 0x14
627 IFT_ISDNPRIMARY = 0x15
628 IFT_ISDNS = 0x4b
629 IFT_ISDNU = 0x4c
630 IFT_ISO88022LLC = 0x29
631 IFT_ISO88023 = 0x7
632 IFT_ISO88024 = 0x8
633 IFT_ISO88025 = 0x9
634 IFT_ISO88025CRFPINT = 0x62
635 IFT_ISO88025DTR = 0x56
636 IFT_ISO88025FIBER = 0x73
637 IFT_ISO88026 = 0xa
638 IFT_ISUP = 0xb3
639 IFT_L2VLAN = 0x87
640 IFT_L3IPVLAN = 0x88
641 IFT_L3IPXVLAN = 0x89
642 IFT_LAPB = 0x10
643 IFT_LAPD = 0x4d
644 IFT_LAPF = 0x77
645 IFT_LOCALTALK = 0x2a
646 IFT_LOOP = 0x18
647 IFT_MEDIAMAILOVERIP = 0x8b
648 IFT_MFSIGLINK = 0xa7
649 IFT_MIOX25 = 0x26
650 IFT_MODEM = 0x30
651 IFT_MPC = 0x71
652 IFT_MPLS = 0xa6
653 IFT_MPLSTUNNEL = 0x96
654 IFT_MSDSL = 0x8f
655 IFT_MVL = 0xbf
656 IFT_MYRINET = 0x63
657 IFT_NFAS = 0xaf
658 IFT_NSIP = 0x1b
659 IFT_OPTICALCHANNEL = 0xc3
660 IFT_OPTICALTRANSPORT = 0xc4
661 IFT_OTHER = 0x1
662 IFT_P10 = 0xc
663 IFT_P80 = 0xd
664 IFT_PARA = 0x22
665 IFT_PFLOG = 0xf6
666 IFT_PFSYNC = 0xf7
667 IFT_PLC = 0xae
668 IFT_POS = 0xab
669 IFT_PPP = 0x17
670 IFT_PPPMULTILINKBUNDLE = 0x6c
671 IFT_PROPBWAP2MP = 0xb8
672 IFT_PROPCNLS = 0x59
673 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
674 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
675 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
676 IFT_PROPMUX = 0x36
677 IFT_PROPVIRTUAL = 0x35
678 IFT_PROPWIRELESSP2P = 0x9d
679 IFT_PTPSERIAL = 0x16
680 IFT_PVC = 0xf1
681 IFT_QLLC = 0x44
682 IFT_RADIOMAC = 0xbc
683 IFT_RADSL = 0x5f
684 IFT_REACHDSL = 0xc0
685 IFT_RFC1483 = 0x9f
686 IFT_RS232 = 0x21
687 IFT_RSRB = 0x4f
688 IFT_SDLC = 0x11
689 IFT_SDSL = 0x60
690 IFT_SHDSL = 0xa9
691 IFT_SIP = 0x1f
692 IFT_SLIP = 0x1c
693 IFT_SMDSDXI = 0x2b
694 IFT_SMDSICIP = 0x34
695 IFT_SONET = 0x27
696 IFT_SONETOVERHEADCHANNEL = 0xb9
697 IFT_SONETPATH = 0x32
698 IFT_SONETVT = 0x33
699 IFT_SRP = 0x97
700 IFT_SS7SIGLINK = 0x9c
701 IFT_STACKTOSTACK = 0x6f
702 IFT_STARLAN = 0xb
703 IFT_STF = 0xd7
704 IFT_T1 = 0x12
705 IFT_TDLC = 0x74
706 IFT_TERMPAD = 0x5b
707 IFT_TR008 = 0xb0
708 IFT_TRANSPHDLC = 0x7b
709 IFT_TUNNEL = 0x83
710 IFT_ULTRA = 0x1d
711 IFT_USB = 0xa0
712 IFT_V11 = 0x40
713 IFT_V35 = 0x2d
714 IFT_V36 = 0x41
715 IFT_V37 = 0x78
716 IFT_VDSL = 0x61
717 IFT_VIRTUALIPADDRESS = 0x70
718 IFT_VOICEEM = 0x64
719 IFT_VOICEENCAP = 0x67
720 IFT_VOICEFXO = 0x65
721 IFT_VOICEFXS = 0x66
722 IFT_VOICEOVERATM = 0x98
723 IFT_VOICEOVERFRAMERELAY = 0x99
724 IFT_VOICEOVERIP = 0x68
725 IFT_X213 = 0x5d
726 IFT_X25 = 0x5
727 IFT_X25DDN = 0x4
728 IFT_X25HUNTGROUP = 0x7a
729 IFT_X25MLP = 0x79
730 IFT_X25PLE = 0x28
731 IFT_XETHER = 0x1a
732 IGNBRK = 0x1
733 IGNCR = 0x80
734 IGNPAR = 0x4
735 IMAXBEL = 0x2000
736 INLCR = 0x40
737 INPCK = 0x10
738 IN_CLASSA_HOST = 0xffffff
739 IN_CLASSA_MAX = 0x80
740 IN_CLASSA_NET = 0xff000000
741 IN_CLASSA_NSHIFT = 0x18
742 IN_CLASSB_HOST = 0xffff
743 IN_CLASSB_MAX = 0x10000
744 IN_CLASSB_NET = 0xffff0000
745 IN_CLASSB_NSHIFT = 0x10
746 IN_CLASSC_HOST = 0xff
747 IN_CLASSC_NET = 0xffffff00
748 IN_CLASSC_NSHIFT = 0x8
749 IN_CLASSD_HOST = 0xfffffff
750 IN_CLASSD_NET = 0xf0000000
751 IN_CLASSD_NSHIFT = 0x1c
752 IN_LOOPBACKNET = 0x7f
753 IN_RFC3021_MASK = 0xfffffffe
754 IPPROTO_3PC = 0x22
755 IPPROTO_ADFS = 0x44
756 IPPROTO_AH = 0x33
757 IPPROTO_AHIP = 0x3d
758 IPPROTO_APES = 0x63
759 IPPROTO_ARGUS = 0xd
760 IPPROTO_AX25 = 0x5d
761 IPPROTO_BHA = 0x31
762 IPPROTO_BLT = 0x1e
763 IPPROTO_BRSATMON = 0x4c
764 IPPROTO_CARP = 0x70
765 IPPROTO_CFTP = 0x3e
766 IPPROTO_CHAOS = 0x10
767 IPPROTO_CMTP = 0x26
768 IPPROTO_CPHB = 0x49
769 IPPROTO_CPNX = 0x48
770 IPPROTO_DDP = 0x25
771 IPPROTO_DGP = 0x56
772 IPPROTO_DIVERT = 0x102
773 IPPROTO_DONE = 0x101
774 IPPROTO_DSTOPTS = 0x3c
775 IPPROTO_EGP = 0x8
776 IPPROTO_EMCON = 0xe
777 IPPROTO_ENCAP = 0x62
778 IPPROTO_EON = 0x50
779 IPPROTO_ESP = 0x32
780 IPPROTO_ETHERIP = 0x61
781 IPPROTO_FRAGMENT = 0x2c
782 IPPROTO_GGP = 0x3
783 IPPROTO_GMTP = 0x64
784 IPPROTO_GRE = 0x2f
785 IPPROTO_HELLO = 0x3f
786 IPPROTO_HIP = 0x8b
787 IPPROTO_HMP = 0x14
788 IPPROTO_HOPOPTS = 0x0
789 IPPROTO_ICMP = 0x1
790 IPPROTO_ICMPV6 = 0x3a
791 IPPROTO_IDP = 0x16
792 IPPROTO_IDPR = 0x23
793 IPPROTO_IDRP = 0x2d
794 IPPROTO_IGMP = 0x2
795 IPPROTO_IGP = 0x55
796 IPPROTO_IGRP = 0x58
797 IPPROTO_IL = 0x28
798 IPPROTO_INLSP = 0x34
799 IPPROTO_INP = 0x20
800 IPPROTO_IP = 0x0
801 IPPROTO_IPCOMP = 0x6c
802 IPPROTO_IPCV = 0x47
803 IPPROTO_IPEIP = 0x5e
804 IPPROTO_IPIP = 0x4
805 IPPROTO_IPPC = 0x43
806 IPPROTO_IPV4 = 0x4
807 IPPROTO_IPV6 = 0x29
808 IPPROTO_IRTP = 0x1c
809 IPPROTO_KRYPTOLAN = 0x41
810 IPPROTO_LARP = 0x5b
811 IPPROTO_LEAF1 = 0x19
812 IPPROTO_LEAF2 = 0x1a
813 IPPROTO_MAX = 0x100
814 IPPROTO_MAXID = 0x34
815 IPPROTO_MEAS = 0x13
816 IPPROTO_MH = 0x87
817 IPPROTO_MHRP = 0x30
818 IPPROTO_MICP = 0x5f
819 IPPROTO_MOBILE = 0x37
820 IPPROTO_MPLS = 0x89
821 IPPROTO_MTP = 0x5c
822 IPPROTO_MUX = 0x12
823 IPPROTO_ND = 0x4d
824 IPPROTO_NHRP = 0x36
825 IPPROTO_NONE = 0x3b
826 IPPROTO_NSP = 0x1f
827 IPPROTO_NVPII = 0xb
828 IPPROTO_OLD_DIVERT = 0xfe
829 IPPROTO_OSPFIGP = 0x59
830 IPPROTO_PFSYNC = 0xf0
831 IPPROTO_PGM = 0x71
832 IPPROTO_PIGP = 0x9
833 IPPROTO_PIM = 0x67
834 IPPROTO_PRM = 0x15
835 IPPROTO_PUP = 0xc
836 IPPROTO_PVP = 0x4b
837 IPPROTO_RAW = 0xff
838 IPPROTO_RCCMON = 0xa
839 IPPROTO_RDP = 0x1b
840 IPPROTO_RESERVED_253 = 0xfd
841 IPPROTO_RESERVED_254 = 0xfe
842 IPPROTO_ROUTING = 0x2b
843 IPPROTO_RSVP = 0x2e
844 IPPROTO_RVD = 0x42
845 IPPROTO_SATEXPAK = 0x40
846 IPPROTO_SATMON = 0x45
847 IPPROTO_SCCSP = 0x60
848 IPPROTO_SCTP = 0x84
849 IPPROTO_SDRP = 0x2a
850 IPPROTO_SEND = 0x103
851 IPPROTO_SEP = 0x21
852 IPPROTO_SHIM6 = 0x8c
853 IPPROTO_SKIP = 0x39
854 IPPROTO_SPACER = 0x7fff
855 IPPROTO_SRPC = 0x5a
856 IPPROTO_ST = 0x7
857 IPPROTO_SVMTP = 0x52
858 IPPROTO_SWIPE = 0x35
859 IPPROTO_TCF = 0x57
860 IPPROTO_TCP = 0x6
861 IPPROTO_TLSP = 0x38
862 IPPROTO_TP = 0x1d
863 IPPROTO_TPXX = 0x27
864 IPPROTO_TRUNK1 = 0x17
865 IPPROTO_TRUNK2 = 0x18
866 IPPROTO_TTP = 0x54
867 IPPROTO_UDP = 0x11
868 IPPROTO_UDPLITE = 0x88
869 IPPROTO_VINES = 0x53
870 IPPROTO_VISA = 0x46
871 IPPROTO_VMTP = 0x51
872 IPPROTO_WBEXPAK = 0x4f
873 IPPROTO_WBMON = 0x4e
874 IPPROTO_WSN = 0x4a
875 IPPROTO_XNET = 0xf
876 IPPROTO_XTP = 0x24
877 IPV6_AUTOFLOWLABEL = 0x3b
878 IPV6_BINDANY = 0x40
879 IPV6_BINDV6ONLY = 0x1b
880 IPV6_CHECKSUM = 0x1a
881 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
882 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
883 IPV6_DEFHLIM = 0x40
884 IPV6_DONTFRAG = 0x3e
885 IPV6_DSTOPTS = 0x32
886 IPV6_FAITH = 0x1d
887 IPV6_FLOWINFO_MASK = 0xffffff0f
888 IPV6_FLOWLABEL_MASK = 0xffff0f00
889 IPV6_FRAGTTL = 0x78
890 IPV6_FW_ADD = 0x1e
891 IPV6_FW_DEL = 0x1f
892 IPV6_FW_FLUSH = 0x20
893 IPV6_FW_GET = 0x22
894 IPV6_FW_ZERO = 0x21
895 IPV6_HLIMDEC = 0x1
896 IPV6_HOPLIMIT = 0x2f
897 IPV6_HOPOPTS = 0x31
898 IPV6_IPSEC_POLICY = 0x1c
899 IPV6_JOIN_GROUP = 0xc
900 IPV6_LEAVE_GROUP = 0xd
901 IPV6_MAXHLIM = 0xff
902 IPV6_MAXOPTHDR = 0x800
903 IPV6_MAXPACKET = 0xffff
904 IPV6_MAX_GROUP_SRC_FILTER = 0x200
905 IPV6_MAX_MEMBERSHIPS = 0xfff
906 IPV6_MAX_SOCK_SRC_FILTER = 0x80
907 IPV6_MIN_MEMBERSHIPS = 0x1f
908 IPV6_MMTU = 0x500
909 IPV6_MSFILTER = 0x4a
910 IPV6_MULTICAST_HOPS = 0xa
911 IPV6_MULTICAST_IF = 0x9
912 IPV6_MULTICAST_LOOP = 0xb
913 IPV6_NEXTHOP = 0x30
914 IPV6_PATHMTU = 0x2c
915 IPV6_PKTINFO = 0x2e
916 IPV6_PORTRANGE = 0xe
917 IPV6_PORTRANGE_DEFAULT = 0x0
918 IPV6_PORTRANGE_HIGH = 0x1
919 IPV6_PORTRANGE_LOW = 0x2
920 IPV6_PREFER_TEMPADDR = 0x3f
921 IPV6_RECVDSTOPTS = 0x28
922 IPV6_RECVHOPLIMIT = 0x25
923 IPV6_RECVHOPOPTS = 0x27
924 IPV6_RECVPATHMTU = 0x2b
925 IPV6_RECVPKTINFO = 0x24
926 IPV6_RECVRTHDR = 0x26
927 IPV6_RECVTCLASS = 0x39
928 IPV6_RTHDR = 0x33
929 IPV6_RTHDRDSTOPTS = 0x23
930 IPV6_RTHDR_LOOSE = 0x0
931 IPV6_RTHDR_STRICT = 0x1
932 IPV6_RTHDR_TYPE_0 = 0x0
933 IPV6_SOCKOPT_RESERVED1 = 0x3
934 IPV6_TCLASS = 0x3d
935 IPV6_UNICAST_HOPS = 0x4
936 IPV6_USE_MIN_MTU = 0x2a
937 IPV6_V6ONLY = 0x1b
938 IPV6_VERSION = 0x60
939 IPV6_VERSION_MASK = 0xf0
940 IP_ADD_MEMBERSHIP = 0xc
941 IP_ADD_SOURCE_MEMBERSHIP = 0x46
942 IP_BINDANY = 0x18
943 IP_BLOCK_SOURCE = 0x48
944 IP_DEFAULT_MULTICAST_LOOP = 0x1
945 IP_DEFAULT_MULTICAST_TTL = 0x1
946 IP_DF = 0x4000
947 IP_DONTFRAG = 0x43
948 IP_DROP_MEMBERSHIP = 0xd
949 IP_DROP_SOURCE_MEMBERSHIP = 0x47
950 IP_DUMMYNET3 = 0x31
951 IP_DUMMYNET_CONFIGURE = 0x3c
952 IP_DUMMYNET_DEL = 0x3d
953 IP_DUMMYNET_FLUSH = 0x3e
954 IP_DUMMYNET_GET = 0x40
955 IP_FAITH = 0x16
956 IP_FW3 = 0x30
957 IP_FW_ADD = 0x32
958 IP_FW_DEL = 0x33
959 IP_FW_FLUSH = 0x34
960 IP_FW_GET = 0x36
961 IP_FW_NAT_CFG = 0x38
962 IP_FW_NAT_DEL = 0x39
963 IP_FW_NAT_GET_CONFIG = 0x3a
964 IP_FW_NAT_GET_LOG = 0x3b
965 IP_FW_RESETLOG = 0x37
966 IP_FW_TABLE_ADD = 0x28
967 IP_FW_TABLE_DEL = 0x29
968 IP_FW_TABLE_FLUSH = 0x2a
969 IP_FW_TABLE_GETSIZE = 0x2b
970 IP_FW_TABLE_LIST = 0x2c
971 IP_FW_ZERO = 0x35
972 IP_HDRINCL = 0x2
973 IP_IPSEC_POLICY = 0x15
974 IP_MAXPACKET = 0xffff
975 IP_MAX_GROUP_SRC_FILTER = 0x200
976 IP_MAX_MEMBERSHIPS = 0xfff
977 IP_MAX_SOCK_MUTE_FILTER = 0x80
978 IP_MAX_SOCK_SRC_FILTER = 0x80
979 IP_MAX_SOURCE_FILTER = 0x400
980 IP_MF = 0x2000
981 IP_MINTTL = 0x42
982 IP_MIN_MEMBERSHIPS = 0x1f
983 IP_MSFILTER = 0x4a
984 IP_MSS = 0x240
985 IP_MULTICAST_IF = 0x9
986 IP_MULTICAST_LOOP = 0xb
987 IP_MULTICAST_TTL = 0xa
988 IP_MULTICAST_VIF = 0xe
989 IP_OFFMASK = 0x1fff
990 IP_ONESBCAST = 0x17
991 IP_OPTIONS = 0x1
992 IP_PORTRANGE = 0x13
993 IP_PORTRANGE_DEFAULT = 0x0
994 IP_PORTRANGE_HIGH = 0x1
995 IP_PORTRANGE_LOW = 0x2
996 IP_RECVDSTADDR = 0x7
997 IP_RECVIF = 0x14
998 IP_RECVOPTS = 0x5
999 IP_RECVRETOPTS = 0x6
1000 IP_RECVTOS = 0x44
1001 IP_RECVTTL = 0x41
1002 IP_RETOPTS = 0x8
1003 IP_RF = 0x8000
1004 IP_RSVP_OFF = 0x10
1005 IP_RSVP_ON = 0xf
1006 IP_RSVP_VIF_OFF = 0x12
1007 IP_RSVP_VIF_ON = 0x11
1008 IP_SENDSRCADDR = 0x7
1009 IP_TOS = 0x3
1010 IP_TTL = 0x4
1011 IP_UNBLOCK_SOURCE = 0x49
1012 ISIG = 0x80
1013 ISTRIP = 0x20
1014 IXANY = 0x800
1015 IXOFF = 0x400
1016 IXON = 0x200
1017 LOCK_EX = 0x2
1018 LOCK_NB = 0x4
1019 LOCK_SH = 0x1
1020 LOCK_UN = 0x8
1021 MADV_AUTOSYNC = 0x7
1022 MADV_CORE = 0x9
1023 MADV_DONTNEED = 0x4
1024 MADV_FREE = 0x5
1025 MADV_NOCORE = 0x8
1026 MADV_NORMAL = 0x0
1027 MADV_NOSYNC = 0x6
1028 MADV_PROTECT = 0xa
1029 MADV_RANDOM = 0x1
1030 MADV_SEQUENTIAL = 0x2
1031 MADV_WILLNEED = 0x3
1032 MAP_32BIT = 0x80000
1033 MAP_ALIGNED_SUPER = 0x1000000
1034 MAP_ALIGNMENT_MASK = -0x1000000
1035 MAP_ALIGNMENT_SHIFT = 0x18
1036 MAP_ANON = 0x1000
1037 MAP_ANONYMOUS = 0x1000
1038 MAP_COPY = 0x2
1039 MAP_EXCL = 0x4000
1040 MAP_FILE = 0x0
1041 MAP_FIXED = 0x10
1042 MAP_HASSEMAPHORE = 0x200
1043 MAP_NOCORE = 0x20000
1044 MAP_NORESERVE = 0x40
1045 MAP_NOSYNC = 0x800
1046 MAP_PREFAULT_READ = 0x40000
1047 MAP_PRIVATE = 0x2
1048 MAP_RENAME = 0x20
1049 MAP_RESERVED0080 = 0x80
1050 MAP_RESERVED0100 = 0x100
1051 MAP_SHARED = 0x1
1052 MAP_STACK = 0x400
1053 MCL_CURRENT = 0x1
1054 MCL_FUTURE = 0x2
1055 MSG_CMSG_CLOEXEC = 0x40000
1056 MSG_COMPAT = 0x8000
1057 MSG_CTRUNC = 0x20
1058 MSG_DONTROUTE = 0x4
1059 MSG_DONTWAIT = 0x80
1060 MSG_EOF = 0x100
1061 MSG_EOR = 0x8
1062 MSG_NBIO = 0x4000
1063 MSG_NOSIGNAL = 0x20000
1064 MSG_NOTIFICATION = 0x2000
1065 MSG_OOB = 0x1
1066 MSG_PEEK = 0x2
1067 MSG_TRUNC = 0x10
1068 MSG_WAITALL = 0x40
1069 MS_ASYNC = 0x1
1070 MS_INVALIDATE = 0x2
1071 MS_SYNC = 0x0
1072 NAME_MAX = 0xff
1073 NET_RT_DUMP = 0x1
1074 NET_RT_FLAGS = 0x2
1075 NET_RT_IFLIST = 0x3
1076 NET_RT_IFLISTL = 0x5
1077 NET_RT_IFMALIST = 0x4
1078 NET_RT_MAXID = 0x6
1079 NOFLSH = 0x80000000
1080 NOTE_ATTRIB = 0x8
1081 NOTE_CHILD = 0x4
1082 NOTE_DELETE = 0x1
1083 NOTE_EXEC = 0x20000000
1084 NOTE_EXIT = 0x80000000
1085 NOTE_EXTEND = 0x4
1086 NOTE_FFAND = 0x40000000
1087 NOTE_FFCOPY = 0xc0000000
1088 NOTE_FFCTRLMASK = 0xc0000000
1089 NOTE_FFLAGSMASK = 0xffffff
1090 NOTE_FFNOP = 0x0
1091 NOTE_FFOR = 0x80000000
1092 NOTE_FORK = 0x40000000
1093 NOTE_LINK = 0x10
1094 NOTE_LOWAT = 0x1
1095 NOTE_MSECONDS = 0x2
1096 NOTE_NSECONDS = 0x8
1097 NOTE_PCTRLMASK = 0xf0000000
1098 NOTE_PDATAMASK = 0xfffff
1099 NOTE_RENAME = 0x20
1100 NOTE_REVOKE = 0x40
1101 NOTE_SECONDS = 0x1
1102 NOTE_TRACK = 0x1
1103 NOTE_TRACKERR = 0x2
1104 NOTE_TRIGGER = 0x1000000
1105 NOTE_USECONDS = 0x4
1106 NOTE_WRITE = 0x2
1107 OCRNL = 0x10
1108 ONLCR = 0x2
1109 ONLRET = 0x40
1110 ONOCR = 0x20
1111 ONOEOT = 0x8
1112 OPOST = 0x1
1113 O_ACCMODE = 0x3
1114 O_APPEND = 0x8
1115 O_ASYNC = 0x40
1116 O_CLOEXEC = 0x100000
1117 O_CREAT = 0x200
1118 O_DIRECT = 0x10000
1119 O_DIRECTORY = 0x20000
1120 O_EXCL = 0x800
1121 O_EXEC = 0x40000
1122 O_EXLOCK = 0x20
1123 O_FSYNC = 0x80
1124 O_NDELAY = 0x4
1125 O_NOCTTY = 0x8000
1126 O_NOFOLLOW = 0x100
1127 O_NONBLOCK = 0x4
1128 O_RDONLY = 0x0
1129 O_RDWR = 0x2
1130 O_SHLOCK = 0x10
1131 O_SYNC = 0x80
1132 O_TRUNC = 0x400
1133 O_TTY_INIT = 0x80000
1134 O_WRONLY = 0x1
1135 PARENB = 0x1000
1136 PARMRK = 0x8
1137 PARODD = 0x2000
1138 PENDIN = 0x20000000
1139 PRIO_PGRP = 0x1
1140 PRIO_PROCESS = 0x0
1141 PRIO_USER = 0x2
1142 PROT_EXEC = 0x4
1143 PROT_NONE = 0x0
1144 PROT_READ = 0x1
1145 PROT_WRITE = 0x2
1146 RLIMIT_AS = 0xa
1147 RLIMIT_CORE = 0x4
1148 RLIMIT_CPU = 0x0
1149 RLIMIT_DATA = 0x2
1150 RLIMIT_FSIZE = 0x1
1151 RLIMIT_NOFILE = 0x8
1152 RLIMIT_STACK = 0x3
1153 RLIM_INFINITY = 0x7fffffffffffffff
1154 RTAX_AUTHOR = 0x6
1155 RTAX_BRD = 0x7
1156 RTAX_DST = 0x0
1157 RTAX_GATEWAY = 0x1
1158 RTAX_GENMASK = 0x3
1159 RTAX_IFA = 0x5
1160 RTAX_IFP = 0x4
1161 RTAX_MAX = 0x8
1162 RTAX_NETMASK = 0x2
1163 RTA_AUTHOR = 0x40
1164 RTA_BRD = 0x80
1165 RTA_DST = 0x1
1166 RTA_GATEWAY = 0x2
1167 RTA_GENMASK = 0x8
1168 RTA_IFA = 0x20
1169 RTA_IFP = 0x10
1170 RTA_NETMASK = 0x4
1171 RTF_BLACKHOLE = 0x1000
1172 RTF_BROADCAST = 0x400000
1173 RTF_DONE = 0x40
1174 RTF_DYNAMIC = 0x10
1175 RTF_FMASK = 0x1004d808
1176 RTF_GATEWAY = 0x2
1177 RTF_GWFLAG_COMPAT = 0x80000000
1178 RTF_HOST = 0x4
1179 RTF_LLDATA = 0x400
1180 RTF_LLINFO = 0x400
1181 RTF_LOCAL = 0x200000
1182 RTF_MODIFIED = 0x20
1183 RTF_MULTICAST = 0x800000
1184 RTF_PINNED = 0x100000
1185 RTF_PRCLONING = 0x10000
1186 RTF_PROTO1 = 0x8000
1187 RTF_PROTO2 = 0x4000
1188 RTF_PROTO3 = 0x40000
1189 RTF_REJECT = 0x8
1190 RTF_RNH_LOCKED = 0x40000000
1191 RTF_STATIC = 0x800
1192 RTF_STICKY = 0x10000000
1193 RTF_UP = 0x1
1194 RTF_XRESOLVE = 0x200
1195 RTM_ADD = 0x1
1196 RTM_CHANGE = 0x3
1197 RTM_DELADDR = 0xd
1198 RTM_DELETE = 0x2
1199 RTM_DELMADDR = 0x10
1200 RTM_GET = 0x4
1201 RTM_IEEE80211 = 0x12
1202 RTM_IFANNOUNCE = 0x11
1203 RTM_IFINFO = 0xe
1204 RTM_LOCK = 0x8
1205 RTM_LOSING = 0x5
1206 RTM_MISS = 0x7
1207 RTM_NEWADDR = 0xc
1208 RTM_NEWMADDR = 0xf
1209 RTM_OLDADD = 0x9
1210 RTM_OLDDEL = 0xa
1211 RTM_REDIRECT = 0x6
1212 RTM_RESOLVE = 0xb
1213 RTM_RTTUNIT = 0xf4240
1214 RTM_VERSION = 0x5
1215 RTV_EXPIRE = 0x4
1216 RTV_HOPCOUNT = 0x2
1217 RTV_MTU = 0x1
1218 RTV_RPIPE = 0x8
1219 RTV_RTT = 0x40
1220 RTV_RTTVAR = 0x80
1221 RTV_SPIPE = 0x10
1222 RTV_SSTHRESH = 0x20
1223 RTV_WEIGHT = 0x100
1224 RT_ALL_FIBS = -0x1
1225 RT_CACHING_CONTEXT = 0x1
1226 RT_DEFAULT_FIB = 0x0
1227 RT_NORTREF = 0x2
1228 RUSAGE_CHILDREN = -0x1
1229 RUSAGE_SELF = 0x0
1230 RUSAGE_THREAD = 0x1
1231 SCM_BINTIME = 0x4
1232 SCM_CREDS = 0x3
1233 SCM_RIGHTS = 0x1
1234 SCM_TIMESTAMP = 0x2
1235 SHUT_RD = 0x0
1236 SHUT_RDWR = 0x2
1237 SHUT_WR = 0x1
1238 SIOCADDMULTI = 0x80206931
1239 SIOCADDRT = 0x8040720a
1240 SIOCAIFADDR = 0x8040691a
1241 SIOCAIFGROUP = 0x80286987
1242 SIOCALIFADDR = 0x8118691b
1243 SIOCATMARK = 0x40047307
1244 SIOCDELMULTI = 0x80206932
1245 SIOCDELRT = 0x8040720b
1246 SIOCDIFADDR = 0x80206919
1247 SIOCDIFGROUP = 0x80286989
1248 SIOCDIFPHYADDR = 0x80206949
1249 SIOCDLIFADDR = 0x8118691d
1250 SIOCGDRVSPEC = 0xc028697b
1251 SIOCGETSGCNT = 0xc0207210
1252 SIOCGETVIFCNT = 0xc028720f
1253 SIOCGHIWAT = 0x40047301
1254 SIOCGIFADDR = 0xc0206921
1255 SIOCGIFBRDADDR = 0xc0206923
1256 SIOCGIFCAP = 0xc020691f
1257 SIOCGIFCONF = 0xc0106924
1258 SIOCGIFDESCR = 0xc020692a
1259 SIOCGIFDSTADDR = 0xc0206922
1260 SIOCGIFFIB = 0xc020695c
1261 SIOCGIFFLAGS = 0xc0206911
1262 SIOCGIFGENERIC = 0xc020693a
1263 SIOCGIFGMEMB = 0xc028698a
1264 SIOCGIFGROUP = 0xc0286988
1265 SIOCGIFINDEX = 0xc0206920
1266 SIOCGIFMAC = 0xc0206926
1267 SIOCGIFMEDIA = 0xc0306938
1268 SIOCGIFMETRIC = 0xc0206917
1269 SIOCGIFMTU = 0xc0206933
1270 SIOCGIFNETMASK = 0xc0206925
1271 SIOCGIFPDSTADDR = 0xc0206948
1272 SIOCGIFPHYS = 0xc0206935
1273 SIOCGIFPSRCADDR = 0xc0206947
1274 SIOCGIFSTATUS = 0xc331693b
1275 SIOCGLIFADDR = 0xc118691c
1276 SIOCGLIFPHYADDR = 0xc118694b
1277 SIOCGLOWAT = 0x40047303
1278 SIOCGPGRP = 0x40047309
1279 SIOCGPRIVATE_0 = 0xc0206950
1280 SIOCGPRIVATE_1 = 0xc0206951
1281 SIOCIFCREATE = 0xc020697a
1282 SIOCIFCREATE2 = 0xc020697c
1283 SIOCIFDESTROY = 0x80206979
1284 SIOCIFGCLONERS = 0xc0106978
1285 SIOCSDRVSPEC = 0x8028697b
1286 SIOCSHIWAT = 0x80047300
1287 SIOCSIFADDR = 0x8020690c
1288 SIOCSIFBRDADDR = 0x80206913
1289 SIOCSIFCAP = 0x8020691e
1290 SIOCSIFDESCR = 0x80206929
1291 SIOCSIFDSTADDR = 0x8020690e
1292 SIOCSIFFIB = 0x8020695d
1293 SIOCSIFFLAGS = 0x80206910
1294 SIOCSIFGENERIC = 0x80206939
1295 SIOCSIFLLADDR = 0x8020693c
1296 SIOCSIFMAC = 0x80206927
1297 SIOCSIFMEDIA = 0xc0206937
1298 SIOCSIFMETRIC = 0x80206918
1299 SIOCSIFMTU = 0x80206934
1300 SIOCSIFNAME = 0x80206928
1301 SIOCSIFNETMASK = 0x80206916
1302 SIOCSIFPHYADDR = 0x80406946
1303 SIOCSIFPHYS = 0x80206936
1304 SIOCSIFRVNET = 0xc020695b
1305 SIOCSIFVNET = 0xc020695a
1306 SIOCSLIFPHYADDR = 0x8118694a
1307 SIOCSLOWAT = 0x80047302
1308 SIOCSPGRP = 0x80047308
1309 SOCK_CLOEXEC = 0x10000000
1310 SOCK_DGRAM = 0x2
1311 SOCK_MAXADDRLEN = 0xff
1312 SOCK_NONBLOCK = 0x20000000
1313 SOCK_RAW = 0x3
1314 SOCK_RDM = 0x4
1315 SOCK_SEQPACKET = 0x5
1316 SOCK_STREAM = 0x1
1317 SOL_SOCKET = 0xffff
1318 SOMAXCONN = 0x80
1319 SO_ACCEPTCONN = 0x2
1320 SO_ACCEPTFILTER = 0x1000
1321 SO_BINTIME = 0x2000
1322 SO_BROADCAST = 0x20
1323 SO_DEBUG = 0x1
1324 SO_DONTROUTE = 0x10
1325 SO_ERROR = 0x1007
1326 SO_KEEPALIVE = 0x8
1327 SO_LABEL = 0x1009
1328 SO_LINGER = 0x80
1329 SO_LISTENINCQLEN = 0x1013
1330 SO_LISTENQLEN = 0x1012
1331 SO_LISTENQLIMIT = 0x1011
1332 SO_NOSIGPIPE = 0x800
1333 SO_NO_DDP = 0x8000
1334 SO_NO_OFFLOAD = 0x4000
1335 SO_OOBINLINE = 0x100
1336 SO_PEERLABEL = 0x1010
1337 SO_PROTOCOL = 0x1016
1338 SO_PROTOTYPE = 0x1016
1339 SO_RCVBUF = 0x1002
1340 SO_RCVLOWAT = 0x1004
1341 SO_RCVTIMEO = 0x1006
1342 SO_REUSEADDR = 0x4
1343 SO_REUSEPORT = 0x200
1344 SO_SETFIB = 0x1014
1345 SO_SNDBUF = 0x1001
1346 SO_SNDLOWAT = 0x1003
1347 SO_SNDTIMEO = 0x1005
1348 SO_TIMESTAMP = 0x400
1349 SO_TYPE = 0x1008
1350 SO_USELOOPBACK = 0x40
1351 SO_USER_COOKIE = 0x1015
1352 SO_VENDOR = 0x80000000
1353 TCIFLUSH = 0x1
1354 TCIOFLUSH = 0x3
1355 TCOFLUSH = 0x2
1356 TCP_CA_NAME_MAX = 0x10
1357 TCP_CONGESTION = 0x40
1358 TCP_INFO = 0x20
1359 TCP_KEEPCNT = 0x400
1360 TCP_KEEPIDLE = 0x100
1361 TCP_KEEPINIT = 0x80
1362 TCP_KEEPINTVL = 0x200
1363 TCP_MAXBURST = 0x4
1364 TCP_MAXHLEN = 0x3c
1365 TCP_MAXOLEN = 0x28
1366 TCP_MAXSEG = 0x2
1367 TCP_MAXWIN = 0xffff
1368 TCP_MAX_SACK = 0x4
1369 TCP_MAX_WINSHIFT = 0xe
1370 TCP_MD5SIG = 0x10
1371 TCP_MINMSS = 0xd8
1372 TCP_MSS = 0x218
1373 TCP_NODELAY = 0x1
1374 TCP_NOOPT = 0x8
1375 TCP_NOPUSH = 0x4
1376 TCP_VENDOR = 0x80000000
1377 TCSAFLUSH = 0x2
1378 TIOCCBRK = 0x2000747a
1379 TIOCCDTR = 0x20007478
1380 TIOCCONS = 0x80047462
1381 TIOCDRAIN = 0x2000745e
1382 TIOCEXCL = 0x2000740d
1383 TIOCEXT = 0x80047460
1384 TIOCFLUSH = 0x80047410
1385 TIOCGDRAINWAIT = 0x40047456
1386 TIOCGETA = 0x402c7413
1387 TIOCGETD = 0x4004741a
1388 TIOCGPGRP = 0x40047477
1389 TIOCGPTN = 0x4004740f
1390 TIOCGSID = 0x40047463
1391 TIOCGWINSZ = 0x40087468
1392 TIOCMBIC = 0x8004746b
1393 TIOCMBIS = 0x8004746c
1394 TIOCMGDTRWAIT = 0x4004745a
1395 TIOCMGET = 0x4004746a
1396 TIOCMSDTRWAIT = 0x8004745b
1397 TIOCMSET = 0x8004746d
1398 TIOCM_CAR = 0x40
1399 TIOCM_CD = 0x40
1400 TIOCM_CTS = 0x20
1401 TIOCM_DCD = 0x40
1402 TIOCM_DSR = 0x100
1403 TIOCM_DTR = 0x2
1404 TIOCM_LE = 0x1
1405 TIOCM_RI = 0x80
1406 TIOCM_RNG = 0x80
1407 TIOCM_RTS = 0x4
1408 TIOCM_SR = 0x10
1409 TIOCM_ST = 0x8
1410 TIOCNOTTY = 0x20007471
1411 TIOCNXCL = 0x2000740e
1412 TIOCOUTQ = 0x40047473
1413 TIOCPKT = 0x80047470
1414 TIOCPKT_DATA = 0x0
1415 TIOCPKT_DOSTOP = 0x20
1416 TIOCPKT_FLUSHREAD = 0x1
1417 TIOCPKT_FLUSHWRITE = 0x2
1418 TIOCPKT_IOCTL = 0x40
1419 TIOCPKT_NOSTOP = 0x10
1420 TIOCPKT_START = 0x8
1421 TIOCPKT_STOP = 0x4
1422 TIOCPTMASTER = 0x2000741c
1423 TIOCSBRK = 0x2000747b
1424 TIOCSCTTY = 0x20007461
1425 TIOCSDRAINWAIT = 0x80047457
1426 TIOCSDTR = 0x20007479
1427 TIOCSETA = 0x802c7414
1428 TIOCSETAF = 0x802c7416
1429 TIOCSETAW = 0x802c7415
1430 TIOCSETD = 0x8004741b
1431 TIOCSIG = 0x2004745f
1432 TIOCSPGRP = 0x80047476
1433 TIOCSTART = 0x2000746e
1434 TIOCSTAT = 0x20007465
1435 TIOCSTI = 0x80017472
1436 TIOCSTOP = 0x2000746f
1437 TIOCSWINSZ = 0x80087467
1438 TIOCTIMESTAMP = 0x40107459
1439 TIOCUCNTL = 0x80047466
1440 TOSTOP = 0x400000
1441 VDISCARD = 0xf
1442 VDSUSP = 0xb
1443 VEOF = 0x0
1444 VEOL = 0x1
1445 VEOL2 = 0x2
1446 VERASE = 0x3
1447 VERASE2 = 0x7
1448 VINTR = 0x8
1449 VKILL = 0x5
1450 VLNEXT = 0xe
1451 VMIN = 0x10
1452 VQUIT = 0x9
1453 VREPRINT = 0x6
1454 VSTART = 0xc
1455 VSTATUS = 0x12
1456 VSTOP = 0xd
1457 VSUSP = 0xa
1458 VTIME = 0x11
1459 VWERASE = 0x4
1460 WCONTINUED = 0x4
1461 WCOREFLAG = 0x80
1462 WEXITED = 0x10
1463 WLINUXCLONE = 0x80000000
1464 WNOHANG = 0x1
1465 WNOWAIT = 0x8
1466 WSTOPPED = 0x2
1467 WTRAPPED = 0x20
1468 WUNTRACED = 0x2
1469)
1470
1471// Errors
1472const (
1473 E2BIG = syscall.Errno(0x7)
1474 EACCES = syscall.Errno(0xd)
1475 EADDRINUSE = syscall.Errno(0x30)
1476 EADDRNOTAVAIL = syscall.Errno(0x31)
1477 EAFNOSUPPORT = syscall.Errno(0x2f)
1478 EAGAIN = syscall.Errno(0x23)
1479 EALREADY = syscall.Errno(0x25)
1480 EAUTH = syscall.Errno(0x50)
1481 EBADF = syscall.Errno(0x9)
1482 EBADMSG = syscall.Errno(0x59)
1483 EBADRPC = syscall.Errno(0x48)
1484 EBUSY = syscall.Errno(0x10)
1485 ECANCELED = syscall.Errno(0x55)
1486 ECAPMODE = syscall.Errno(0x5e)
1487 ECHILD = syscall.Errno(0xa)
1488 ECONNABORTED = syscall.Errno(0x35)
1489 ECONNREFUSED = syscall.Errno(0x3d)
1490 ECONNRESET = syscall.Errno(0x36)
1491 EDEADLK = syscall.Errno(0xb)
1492 EDESTADDRREQ = syscall.Errno(0x27)
1493 EDOM = syscall.Errno(0x21)
1494 EDOOFUS = syscall.Errno(0x58)
1495 EDQUOT = syscall.Errno(0x45)
1496 EEXIST = syscall.Errno(0x11)
1497 EFAULT = syscall.Errno(0xe)
1498 EFBIG = syscall.Errno(0x1b)
1499 EFTYPE = syscall.Errno(0x4f)
1500 EHOSTDOWN = syscall.Errno(0x40)
1501 EHOSTUNREACH = syscall.Errno(0x41)
1502 EIDRM = syscall.Errno(0x52)
1503 EILSEQ = syscall.Errno(0x56)
1504 EINPROGRESS = syscall.Errno(0x24)
1505 EINTR = syscall.Errno(0x4)
1506 EINVAL = syscall.Errno(0x16)
1507 EIO = syscall.Errno(0x5)
1508 EISCONN = syscall.Errno(0x38)
1509 EISDIR = syscall.Errno(0x15)
1510 ELAST = syscall.Errno(0x60)
1511 ELOOP = syscall.Errno(0x3e)
1512 EMFILE = syscall.Errno(0x18)
1513 EMLINK = syscall.Errno(0x1f)
1514 EMSGSIZE = syscall.Errno(0x28)
1515 EMULTIHOP = syscall.Errno(0x5a)
1516 ENAMETOOLONG = syscall.Errno(0x3f)
1517 ENEEDAUTH = syscall.Errno(0x51)
1518 ENETDOWN = syscall.Errno(0x32)
1519 ENETRESET = syscall.Errno(0x34)
1520 ENETUNREACH = syscall.Errno(0x33)
1521 ENFILE = syscall.Errno(0x17)
1522 ENOATTR = syscall.Errno(0x57)
1523 ENOBUFS = syscall.Errno(0x37)
1524 ENODEV = syscall.Errno(0x13)
1525 ENOENT = syscall.Errno(0x2)
1526 ENOEXEC = syscall.Errno(0x8)
1527 ENOLCK = syscall.Errno(0x4d)
1528 ENOLINK = syscall.Errno(0x5b)
1529 ENOMEM = syscall.Errno(0xc)
1530 ENOMSG = syscall.Errno(0x53)
1531 ENOPROTOOPT = syscall.Errno(0x2a)
1532 ENOSPC = syscall.Errno(0x1c)
1533 ENOSYS = syscall.Errno(0x4e)
1534 ENOTBLK = syscall.Errno(0xf)
1535 ENOTCAPABLE = syscall.Errno(0x5d)
1536 ENOTCONN = syscall.Errno(0x39)
1537 ENOTDIR = syscall.Errno(0x14)
1538 ENOTEMPTY = syscall.Errno(0x42)
1539 ENOTRECOVERABLE = syscall.Errno(0x5f)
1540 ENOTSOCK = syscall.Errno(0x26)
1541 ENOTSUP = syscall.Errno(0x2d)
1542 ENOTTY = syscall.Errno(0x19)
1543 ENXIO = syscall.Errno(0x6)
1544 EOPNOTSUPP = syscall.Errno(0x2d)
1545 EOVERFLOW = syscall.Errno(0x54)
1546 EOWNERDEAD = syscall.Errno(0x60)
1547 EPERM = syscall.Errno(0x1)
1548 EPFNOSUPPORT = syscall.Errno(0x2e)
1549 EPIPE = syscall.Errno(0x20)
1550 EPROCLIM = syscall.Errno(0x43)
1551 EPROCUNAVAIL = syscall.Errno(0x4c)
1552 EPROGMISMATCH = syscall.Errno(0x4b)
1553 EPROGUNAVAIL = syscall.Errno(0x4a)
1554 EPROTO = syscall.Errno(0x5c)
1555 EPROTONOSUPPORT = syscall.Errno(0x2b)
1556 EPROTOTYPE = syscall.Errno(0x29)
1557 ERANGE = syscall.Errno(0x22)
1558 EREMOTE = syscall.Errno(0x47)
1559 EROFS = syscall.Errno(0x1e)
1560 ERPCMISMATCH = syscall.Errno(0x49)
1561 ESHUTDOWN = syscall.Errno(0x3a)
1562 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1563 ESPIPE = syscall.Errno(0x1d)
1564 ESRCH = syscall.Errno(0x3)
1565 ESTALE = syscall.Errno(0x46)
1566 ETIMEDOUT = syscall.Errno(0x3c)
1567 ETOOMANYREFS = syscall.Errno(0x3b)
1568 ETXTBSY = syscall.Errno(0x1a)
1569 EUSERS = syscall.Errno(0x44)
1570 EWOULDBLOCK = syscall.Errno(0x23)
1571 EXDEV = syscall.Errno(0x12)
1572)
1573
1574// Signals
1575const (
1576 SIGABRT = syscall.Signal(0x6)
1577 SIGALRM = syscall.Signal(0xe)
1578 SIGBUS = syscall.Signal(0xa)
1579 SIGCHLD = syscall.Signal(0x14)
1580 SIGCONT = syscall.Signal(0x13)
1581 SIGEMT = syscall.Signal(0x7)
1582 SIGFPE = syscall.Signal(0x8)
1583 SIGHUP = syscall.Signal(0x1)
1584 SIGILL = syscall.Signal(0x4)
1585 SIGINFO = syscall.Signal(0x1d)
1586 SIGINT = syscall.Signal(0x2)
1587 SIGIO = syscall.Signal(0x17)
1588 SIGIOT = syscall.Signal(0x6)
1589 SIGKILL = syscall.Signal(0x9)
1590 SIGLIBRT = syscall.Signal(0x21)
1591 SIGLWP = syscall.Signal(0x20)
1592 SIGPIPE = syscall.Signal(0xd)
1593 SIGPROF = syscall.Signal(0x1b)
1594 SIGQUIT = syscall.Signal(0x3)
1595 SIGSEGV = syscall.Signal(0xb)
1596 SIGSTOP = syscall.Signal(0x11)
1597 SIGSYS = syscall.Signal(0xc)
1598 SIGTERM = syscall.Signal(0xf)
1599 SIGTHR = syscall.Signal(0x20)
1600 SIGTRAP = syscall.Signal(0x5)
1601 SIGTSTP = syscall.Signal(0x12)
1602 SIGTTIN = syscall.Signal(0x15)
1603 SIGTTOU = syscall.Signal(0x16)
1604 SIGURG = syscall.Signal(0x10)
1605 SIGUSR1 = syscall.Signal(0x1e)
1606 SIGUSR2 = syscall.Signal(0x1f)
1607 SIGVTALRM = syscall.Signal(0x1a)
1608 SIGWINCH = syscall.Signal(0x1c)
1609 SIGXCPU = syscall.Signal(0x18)
1610 SIGXFSZ = syscall.Signal(0x19)
1611)
1612
1613// Error table
1614var errors = [...]string{
1615 1: "operation not permitted",
1616 2: "no such file or directory",
1617 3: "no such process",
1618 4: "interrupted system call",
1619 5: "input/output error",
1620 6: "device not configured",
1621 7: "argument list too long",
1622 8: "exec format error",
1623 9: "bad file descriptor",
1624 10: "no child processes",
1625 11: "resource deadlock avoided",
1626 12: "cannot allocate memory",
1627 13: "permission denied",
1628 14: "bad address",
1629 15: "block device required",
1630 16: "device busy",
1631 17: "file exists",
1632 18: "cross-device link",
1633 19: "operation not supported by device",
1634 20: "not a directory",
1635 21: "is a directory",
1636 22: "invalid argument",
1637 23: "too many open files in system",
1638 24: "too many open files",
1639 25: "inappropriate ioctl for device",
1640 26: "text file busy",
1641 27: "file too large",
1642 28: "no space left on device",
1643 29: "illegal seek",
1644 30: "read-only file system",
1645 31: "too many links",
1646 32: "broken pipe",
1647 33: "numerical argument out of domain",
1648 34: "result too large",
1649 35: "resource temporarily unavailable",
1650 36: "operation now in progress",
1651 37: "operation already in progress",
1652 38: "socket operation on non-socket",
1653 39: "destination address required",
1654 40: "message too long",
1655 41: "protocol wrong type for socket",
1656 42: "protocol not available",
1657 43: "protocol not supported",
1658 44: "socket type not supported",
1659 45: "operation not supported",
1660 46: "protocol family not supported",
1661 47: "address family not supported by protocol family",
1662 48: "address already in use",
1663 49: "can't assign requested address",
1664 50: "network is down",
1665 51: "network is unreachable",
1666 52: "network dropped connection on reset",
1667 53: "software caused connection abort",
1668 54: "connection reset by peer",
1669 55: "no buffer space available",
1670 56: "socket is already connected",
1671 57: "socket is not connected",
1672 58: "can't send after socket shutdown",
1673 59: "too many references: can't splice",
1674 60: "operation timed out",
1675 61: "connection refused",
1676 62: "too many levels of symbolic links",
1677 63: "file name too long",
1678 64: "host is down",
1679 65: "no route to host",
1680 66: "directory not empty",
1681 67: "too many processes",
1682 68: "too many users",
1683 69: "disc quota exceeded",
1684 70: "stale NFS file handle",
1685 71: "too many levels of remote in path",
1686 72: "RPC struct is bad",
1687 73: "RPC version wrong",
1688 74: "RPC prog. not avail",
1689 75: "program version wrong",
1690 76: "bad procedure for program",
1691 77: "no locks available",
1692 78: "function not implemented",
1693 79: "inappropriate file type or format",
1694 80: "authentication error",
1695 81: "need authenticator",
1696 82: "identifier removed",
1697 83: "no message of desired type",
1698 84: "value too large to be stored in data type",
1699 85: "operation canceled",
1700 86: "illegal byte sequence",
1701 87: "attribute not found",
1702 88: "programming error",
1703 89: "bad message",
1704 90: "multihop attempted",
1705 91: "link has been severed",
1706 92: "protocol error",
1707 93: "capabilities insufficient",
1708 94: "not permitted in capability mode",
1709 95: "state not recoverable",
1710 96: "previous owner died",
1711}
1712
1713// Signal table
1714var signals = [...]string{
1715 1: "hangup",
1716 2: "interrupt",
1717 3: "quit",
1718 4: "illegal instruction",
1719 5: "trace/BPT trap",
1720 6: "abort trap",
1721 7: "EMT trap",
1722 8: "floating point exception",
1723 9: "killed",
1724 10: "bus error",
1725 11: "segmentation fault",
1726 12: "bad system call",
1727 13: "broken pipe",
1728 14: "alarm clock",
1729 15: "terminated",
1730 16: "urgent I/O condition",
1731 17: "suspended (signal)",
1732 18: "suspended",
1733 19: "continued",
1734 20: "child exited",
1735 21: "stopped (tty input)",
1736 22: "stopped (tty output)",
1737 23: "I/O possible",
1738 24: "cputime limit exceeded",
1739 25: "filesize limit exceeded",
1740 26: "virtual timer expired",
1741 27: "profiling timer expired",
1742 28: "window size changes",
1743 29: "information request",
1744 30: "user defined signal 1",
1745 31: "user defined signal 2",
1746 32: "unknown signal",
1747 33: "unknown signal",
1748}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_arm.go
deleted file mode 100644
index 2afbe2d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_freebsd_arm.go
+++ /dev/null
@@ -1,1729 +0,0 @@
1// mkerrors.sh
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm,freebsd
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_ARP = 0x23
16 AF_ATM = 0x1e
17 AF_BLUETOOTH = 0x24
18 AF_CCITT = 0xa
19 AF_CHAOS = 0x5
20 AF_CNT = 0x15
21 AF_COIP = 0x14
22 AF_DATAKIT = 0x9
23 AF_DECnet = 0xc
24 AF_DLI = 0xd
25 AF_E164 = 0x1a
26 AF_ECMA = 0x8
27 AF_HYLINK = 0xf
28 AF_IEEE80211 = 0x25
29 AF_IMPLINK = 0x3
30 AF_INET = 0x2
31 AF_INET6 = 0x1c
32 AF_INET6_SDP = 0x2a
33 AF_INET_SDP = 0x28
34 AF_IPX = 0x17
35 AF_ISDN = 0x1a
36 AF_ISO = 0x7
37 AF_LAT = 0xe
38 AF_LINK = 0x12
39 AF_LOCAL = 0x1
40 AF_MAX = 0x2a
41 AF_NATM = 0x1d
42 AF_NETBIOS = 0x6
43 AF_NETGRAPH = 0x20
44 AF_OSI = 0x7
45 AF_PUP = 0x4
46 AF_ROUTE = 0x11
47 AF_SCLUSTER = 0x22
48 AF_SIP = 0x18
49 AF_SLOW = 0x21
50 AF_SNA = 0xb
51 AF_UNIX = 0x1
52 AF_UNSPEC = 0x0
53 AF_VENDOR00 = 0x27
54 AF_VENDOR01 = 0x29
55 AF_VENDOR02 = 0x2b
56 AF_VENDOR03 = 0x2d
57 AF_VENDOR04 = 0x2f
58 AF_VENDOR05 = 0x31
59 AF_VENDOR06 = 0x33
60 AF_VENDOR07 = 0x35
61 AF_VENDOR08 = 0x37
62 AF_VENDOR09 = 0x39
63 AF_VENDOR10 = 0x3b
64 AF_VENDOR11 = 0x3d
65 AF_VENDOR12 = 0x3f
66 AF_VENDOR13 = 0x41
67 AF_VENDOR14 = 0x43
68 AF_VENDOR15 = 0x45
69 AF_VENDOR16 = 0x47
70 AF_VENDOR17 = 0x49
71 AF_VENDOR18 = 0x4b
72 AF_VENDOR19 = 0x4d
73 AF_VENDOR20 = 0x4f
74 AF_VENDOR21 = 0x51
75 AF_VENDOR22 = 0x53
76 AF_VENDOR23 = 0x55
77 AF_VENDOR24 = 0x57
78 AF_VENDOR25 = 0x59
79 AF_VENDOR26 = 0x5b
80 AF_VENDOR27 = 0x5d
81 AF_VENDOR28 = 0x5f
82 AF_VENDOR29 = 0x61
83 AF_VENDOR30 = 0x63
84 AF_VENDOR31 = 0x65
85 AF_VENDOR32 = 0x67
86 AF_VENDOR33 = 0x69
87 AF_VENDOR34 = 0x6b
88 AF_VENDOR35 = 0x6d
89 AF_VENDOR36 = 0x6f
90 AF_VENDOR37 = 0x71
91 AF_VENDOR38 = 0x73
92 AF_VENDOR39 = 0x75
93 AF_VENDOR40 = 0x77
94 AF_VENDOR41 = 0x79
95 AF_VENDOR42 = 0x7b
96 AF_VENDOR43 = 0x7d
97 AF_VENDOR44 = 0x7f
98 AF_VENDOR45 = 0x81
99 AF_VENDOR46 = 0x83
100 AF_VENDOR47 = 0x85
101 B0 = 0x0
102 B110 = 0x6e
103 B115200 = 0x1c200
104 B1200 = 0x4b0
105 B134 = 0x86
106 B14400 = 0x3840
107 B150 = 0x96
108 B1800 = 0x708
109 B19200 = 0x4b00
110 B200 = 0xc8
111 B230400 = 0x38400
112 B2400 = 0x960
113 B28800 = 0x7080
114 B300 = 0x12c
115 B38400 = 0x9600
116 B460800 = 0x70800
117 B4800 = 0x12c0
118 B50 = 0x32
119 B57600 = 0xe100
120 B600 = 0x258
121 B7200 = 0x1c20
122 B75 = 0x4b
123 B76800 = 0x12c00
124 B921600 = 0xe1000
125 B9600 = 0x2580
126 BIOCFEEDBACK = 0x8004427c
127 BIOCFLUSH = 0x20004268
128 BIOCGBLEN = 0x40044266
129 BIOCGDIRECTION = 0x40044276
130 BIOCGDLT = 0x4004426a
131 BIOCGDLTLIST = 0xc0084279
132 BIOCGETBUFMODE = 0x4004427d
133 BIOCGETIF = 0x4020426b
134 BIOCGETZMAX = 0x4004427f
135 BIOCGHDRCMPLT = 0x40044274
136 BIOCGRSIG = 0x40044272
137 BIOCGRTIMEOUT = 0x4008426e
138 BIOCGSEESENT = 0x40044276
139 BIOCGSTATS = 0x4008426f
140 BIOCGTSTAMP = 0x40044283
141 BIOCIMMEDIATE = 0x80044270
142 BIOCLOCK = 0x2000427a
143 BIOCPROMISC = 0x20004269
144 BIOCROTZBUF = 0x400c4280
145 BIOCSBLEN = 0xc0044266
146 BIOCSDIRECTION = 0x80044277
147 BIOCSDLT = 0x80044278
148 BIOCSETBUFMODE = 0x8004427e
149 BIOCSETF = 0x80084267
150 BIOCSETFNR = 0x80084282
151 BIOCSETIF = 0x8020426c
152 BIOCSETWF = 0x8008427b
153 BIOCSETZBUF = 0x800c4281
154 BIOCSHDRCMPLT = 0x80044275
155 BIOCSRSIG = 0x80044273
156 BIOCSRTIMEOUT = 0x8008426d
157 BIOCSSEESENT = 0x80044277
158 BIOCSTSTAMP = 0x80044284
159 BIOCVERSION = 0x40044271
160 BPF_A = 0x10
161 BPF_ABS = 0x20
162 BPF_ADD = 0x0
163 BPF_ALIGNMENT = 0x4
164 BPF_ALU = 0x4
165 BPF_AND = 0x50
166 BPF_B = 0x10
167 BPF_BUFMODE_BUFFER = 0x1
168 BPF_BUFMODE_ZBUF = 0x2
169 BPF_DIV = 0x30
170 BPF_H = 0x8
171 BPF_IMM = 0x0
172 BPF_IND = 0x40
173 BPF_JA = 0x0
174 BPF_JEQ = 0x10
175 BPF_JGE = 0x30
176 BPF_JGT = 0x20
177 BPF_JMP = 0x5
178 BPF_JSET = 0x40
179 BPF_K = 0x0
180 BPF_LD = 0x0
181 BPF_LDX = 0x1
182 BPF_LEN = 0x80
183 BPF_LSH = 0x60
184 BPF_MAJOR_VERSION = 0x1
185 BPF_MAXBUFSIZE = 0x80000
186 BPF_MAXINSNS = 0x200
187 BPF_MEM = 0x60
188 BPF_MEMWORDS = 0x10
189 BPF_MINBUFSIZE = 0x20
190 BPF_MINOR_VERSION = 0x1
191 BPF_MISC = 0x7
192 BPF_MSH = 0xa0
193 BPF_MUL = 0x20
194 BPF_NEG = 0x80
195 BPF_OR = 0x40
196 BPF_RELEASE = 0x30bb6
197 BPF_RET = 0x6
198 BPF_RSH = 0x70
199 BPF_ST = 0x2
200 BPF_STX = 0x3
201 BPF_SUB = 0x10
202 BPF_TAX = 0x0
203 BPF_TXA = 0x80
204 BPF_T_BINTIME = 0x2
205 BPF_T_BINTIME_FAST = 0x102
206 BPF_T_BINTIME_MONOTONIC = 0x202
207 BPF_T_BINTIME_MONOTONIC_FAST = 0x302
208 BPF_T_FAST = 0x100
209 BPF_T_FLAG_MASK = 0x300
210 BPF_T_FORMAT_MASK = 0x3
211 BPF_T_MICROTIME = 0x0
212 BPF_T_MICROTIME_FAST = 0x100
213 BPF_T_MICROTIME_MONOTONIC = 0x200
214 BPF_T_MICROTIME_MONOTONIC_FAST = 0x300
215 BPF_T_MONOTONIC = 0x200
216 BPF_T_MONOTONIC_FAST = 0x300
217 BPF_T_NANOTIME = 0x1
218 BPF_T_NANOTIME_FAST = 0x101
219 BPF_T_NANOTIME_MONOTONIC = 0x201
220 BPF_T_NANOTIME_MONOTONIC_FAST = 0x301
221 BPF_T_NONE = 0x3
222 BPF_T_NORMAL = 0x0
223 BPF_W = 0x0
224 BPF_X = 0x8
225 BRKINT = 0x2
226 CFLUSH = 0xf
227 CLOCAL = 0x8000
228 CREAD = 0x800
229 CS5 = 0x0
230 CS6 = 0x100
231 CS7 = 0x200
232 CS8 = 0x300
233 CSIZE = 0x300
234 CSTART = 0x11
235 CSTATUS = 0x14
236 CSTOP = 0x13
237 CSTOPB = 0x400
238 CSUSP = 0x1a
239 CTL_MAXNAME = 0x18
240 CTL_NET = 0x4
241 DLT_A429 = 0xb8
242 DLT_A653_ICM = 0xb9
243 DLT_AIRONET_HEADER = 0x78
244 DLT_AOS = 0xde
245 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
246 DLT_ARCNET = 0x7
247 DLT_ARCNET_LINUX = 0x81
248 DLT_ATM_CLIP = 0x13
249 DLT_ATM_RFC1483 = 0xb
250 DLT_AURORA = 0x7e
251 DLT_AX25 = 0x3
252 DLT_AX25_KISS = 0xca
253 DLT_BACNET_MS_TP = 0xa5
254 DLT_BLUETOOTH_HCI_H4 = 0xbb
255 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
256 DLT_CAN20B = 0xbe
257 DLT_CAN_SOCKETCAN = 0xe3
258 DLT_CHAOS = 0x5
259 DLT_CHDLC = 0x68
260 DLT_CISCO_IOS = 0x76
261 DLT_C_HDLC = 0x68
262 DLT_C_HDLC_WITH_DIR = 0xcd
263 DLT_DBUS = 0xe7
264 DLT_DECT = 0xdd
265 DLT_DOCSIS = 0x8f
266 DLT_DVB_CI = 0xeb
267 DLT_ECONET = 0x73
268 DLT_EN10MB = 0x1
269 DLT_EN3MB = 0x2
270 DLT_ENC = 0x6d
271 DLT_ERF = 0xc5
272 DLT_ERF_ETH = 0xaf
273 DLT_ERF_POS = 0xb0
274 DLT_FC_2 = 0xe0
275 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
276 DLT_FDDI = 0xa
277 DLT_FLEXRAY = 0xd2
278 DLT_FRELAY = 0x6b
279 DLT_FRELAY_WITH_DIR = 0xce
280 DLT_GCOM_SERIAL = 0xad
281 DLT_GCOM_T1E1 = 0xac
282 DLT_GPF_F = 0xab
283 DLT_GPF_T = 0xaa
284 DLT_GPRS_LLC = 0xa9
285 DLT_GSMTAP_ABIS = 0xda
286 DLT_GSMTAP_UM = 0xd9
287 DLT_HHDLC = 0x79
288 DLT_IBM_SN = 0x92
289 DLT_IBM_SP = 0x91
290 DLT_IEEE802 = 0x6
291 DLT_IEEE802_11 = 0x69
292 DLT_IEEE802_11_RADIO = 0x7f
293 DLT_IEEE802_11_RADIO_AVS = 0xa3
294 DLT_IEEE802_15_4 = 0xc3
295 DLT_IEEE802_15_4_LINUX = 0xbf
296 DLT_IEEE802_15_4_NOFCS = 0xe6
297 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
298 DLT_IEEE802_16_MAC_CPS = 0xbc
299 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
300 DLT_IPFILTER = 0x74
301 DLT_IPMB = 0xc7
302 DLT_IPMB_LINUX = 0xd1
303 DLT_IPNET = 0xe2
304 DLT_IPOIB = 0xf2
305 DLT_IPV4 = 0xe4
306 DLT_IPV6 = 0xe5
307 DLT_IP_OVER_FC = 0x7a
308 DLT_JUNIPER_ATM1 = 0x89
309 DLT_JUNIPER_ATM2 = 0x87
310 DLT_JUNIPER_ATM_CEMIC = 0xee
311 DLT_JUNIPER_CHDLC = 0xb5
312 DLT_JUNIPER_ES = 0x84
313 DLT_JUNIPER_ETHER = 0xb2
314 DLT_JUNIPER_FIBRECHANNEL = 0xea
315 DLT_JUNIPER_FRELAY = 0xb4
316 DLT_JUNIPER_GGSN = 0x85
317 DLT_JUNIPER_ISM = 0xc2
318 DLT_JUNIPER_MFR = 0x86
319 DLT_JUNIPER_MLFR = 0x83
320 DLT_JUNIPER_MLPPP = 0x82
321 DLT_JUNIPER_MONITOR = 0xa4
322 DLT_JUNIPER_PIC_PEER = 0xae
323 DLT_JUNIPER_PPP = 0xb3
324 DLT_JUNIPER_PPPOE = 0xa7
325 DLT_JUNIPER_PPPOE_ATM = 0xa8
326 DLT_JUNIPER_SERVICES = 0x88
327 DLT_JUNIPER_SRX_E2E = 0xe9
328 DLT_JUNIPER_ST = 0xc8
329 DLT_JUNIPER_VP = 0xb7
330 DLT_JUNIPER_VS = 0xe8
331 DLT_LAPB_WITH_DIR = 0xcf
332 DLT_LAPD = 0xcb
333 DLT_LIN = 0xd4
334 DLT_LINUX_EVDEV = 0xd8
335 DLT_LINUX_IRDA = 0x90
336 DLT_LINUX_LAPD = 0xb1
337 DLT_LINUX_PPP_WITHDIRECTION = 0xa6
338 DLT_LINUX_SLL = 0x71
339 DLT_LOOP = 0x6c
340 DLT_LTALK = 0x72
341 DLT_MATCHING_MAX = 0xf6
342 DLT_MATCHING_MIN = 0x68
343 DLT_MFR = 0xb6
344 DLT_MOST = 0xd3
345 DLT_MPEG_2_TS = 0xf3
346 DLT_MPLS = 0xdb
347 DLT_MTP2 = 0x8c
348 DLT_MTP2_WITH_PHDR = 0x8b
349 DLT_MTP3 = 0x8d
350 DLT_MUX27010 = 0xec
351 DLT_NETANALYZER = 0xf0
352 DLT_NETANALYZER_TRANSPARENT = 0xf1
353 DLT_NFC_LLCP = 0xf5
354 DLT_NFLOG = 0xef
355 DLT_NG40 = 0xf4
356 DLT_NULL = 0x0
357 DLT_PCI_EXP = 0x7d
358 DLT_PFLOG = 0x75
359 DLT_PFSYNC = 0x79
360 DLT_PPI = 0xc0
361 DLT_PPP = 0x9
362 DLT_PPP_BSDOS = 0x10
363 DLT_PPP_ETHER = 0x33
364 DLT_PPP_PPPD = 0xa6
365 DLT_PPP_SERIAL = 0x32
366 DLT_PPP_WITH_DIR = 0xcc
367 DLT_PPP_WITH_DIRECTION = 0xa6
368 DLT_PRISM_HEADER = 0x77
369 DLT_PRONET = 0x4
370 DLT_RAIF1 = 0xc6
371 DLT_RAW = 0xc
372 DLT_RIO = 0x7c
373 DLT_SCCP = 0x8e
374 DLT_SITA = 0xc4
375 DLT_SLIP = 0x8
376 DLT_SLIP_BSDOS = 0xf
377 DLT_STANAG_5066_D_PDU = 0xed
378 DLT_SUNATM = 0x7b
379 DLT_SYMANTEC_FIREWALL = 0x63
380 DLT_TZSP = 0x80
381 DLT_USB = 0xba
382 DLT_USB_LINUX = 0xbd
383 DLT_USB_LINUX_MMAPPED = 0xdc
384 DLT_USER0 = 0x93
385 DLT_USER1 = 0x94
386 DLT_USER10 = 0x9d
387 DLT_USER11 = 0x9e
388 DLT_USER12 = 0x9f
389 DLT_USER13 = 0xa0
390 DLT_USER14 = 0xa1
391 DLT_USER15 = 0xa2
392 DLT_USER2 = 0x95
393 DLT_USER3 = 0x96
394 DLT_USER4 = 0x97
395 DLT_USER5 = 0x98
396 DLT_USER6 = 0x99
397 DLT_USER7 = 0x9a
398 DLT_USER8 = 0x9b
399 DLT_USER9 = 0x9c
400 DLT_WIHART = 0xdf
401 DLT_X2E_SERIAL = 0xd5
402 DLT_X2E_XORAYA = 0xd6
403 DT_BLK = 0x6
404 DT_CHR = 0x2
405 DT_DIR = 0x4
406 DT_FIFO = 0x1
407 DT_LNK = 0xa
408 DT_REG = 0x8
409 DT_SOCK = 0xc
410 DT_UNKNOWN = 0x0
411 DT_WHT = 0xe
412 ECHO = 0x8
413 ECHOCTL = 0x40
414 ECHOE = 0x2
415 ECHOK = 0x4
416 ECHOKE = 0x1
417 ECHONL = 0x10
418 ECHOPRT = 0x20
419 EVFILT_AIO = -0x3
420 EVFILT_FS = -0x9
421 EVFILT_LIO = -0xa
422 EVFILT_PROC = -0x5
423 EVFILT_READ = -0x1
424 EVFILT_SIGNAL = -0x6
425 EVFILT_SYSCOUNT = 0xb
426 EVFILT_TIMER = -0x7
427 EVFILT_USER = -0xb
428 EVFILT_VNODE = -0x4
429 EVFILT_WRITE = -0x2
430 EV_ADD = 0x1
431 EV_CLEAR = 0x20
432 EV_DELETE = 0x2
433 EV_DISABLE = 0x8
434 EV_DISPATCH = 0x80
435 EV_DROP = 0x1000
436 EV_ENABLE = 0x4
437 EV_EOF = 0x8000
438 EV_ERROR = 0x4000
439 EV_FLAG1 = 0x2000
440 EV_ONESHOT = 0x10
441 EV_RECEIPT = 0x40
442 EV_SYSFLAGS = 0xf000
443 EXTA = 0x4b00
444 EXTATTR_NAMESPACE_EMPTY = 0x0
445 EXTATTR_NAMESPACE_SYSTEM = 0x2
446 EXTATTR_NAMESPACE_USER = 0x1
447 EXTB = 0x9600
448 EXTPROC = 0x800
449 FD_CLOEXEC = 0x1
450 FD_SETSIZE = 0x400
451 FLUSHO = 0x800000
452 F_CANCEL = 0x5
453 F_DUP2FD = 0xa
454 F_DUP2FD_CLOEXEC = 0x12
455 F_DUPFD = 0x0
456 F_DUPFD_CLOEXEC = 0x11
457 F_GETFD = 0x1
458 F_GETFL = 0x3
459 F_GETLK = 0xb
460 F_GETOWN = 0x5
461 F_OGETLK = 0x7
462 F_OK = 0x0
463 F_OSETLK = 0x8
464 F_OSETLKW = 0x9
465 F_RDAHEAD = 0x10
466 F_RDLCK = 0x1
467 F_READAHEAD = 0xf
468 F_SETFD = 0x2
469 F_SETFL = 0x4
470 F_SETLK = 0xc
471 F_SETLKW = 0xd
472 F_SETLK_REMOTE = 0xe
473 F_SETOWN = 0x6
474 F_UNLCK = 0x2
475 F_UNLCKSYS = 0x4
476 F_WRLCK = 0x3
477 HUPCL = 0x4000
478 ICANON = 0x100
479 ICMP6_FILTER = 0x12
480 ICRNL = 0x100
481 IEXTEN = 0x400
482 IFAN_ARRIVAL = 0x0
483 IFAN_DEPARTURE = 0x1
484 IFF_ALLMULTI = 0x200
485 IFF_ALTPHYS = 0x4000
486 IFF_BROADCAST = 0x2
487 IFF_CANTCHANGE = 0x218f72
488 IFF_CANTCONFIG = 0x10000
489 IFF_DEBUG = 0x4
490 IFF_DRV_OACTIVE = 0x400
491 IFF_DRV_RUNNING = 0x40
492 IFF_DYING = 0x200000
493 IFF_LINK0 = 0x1000
494 IFF_LINK1 = 0x2000
495 IFF_LINK2 = 0x4000
496 IFF_LOOPBACK = 0x8
497 IFF_MONITOR = 0x40000
498 IFF_MULTICAST = 0x8000
499 IFF_NOARP = 0x80
500 IFF_OACTIVE = 0x400
501 IFF_POINTOPOINT = 0x10
502 IFF_PPROMISC = 0x20000
503 IFF_PROMISC = 0x100
504 IFF_RENAMING = 0x400000
505 IFF_RUNNING = 0x40
506 IFF_SIMPLEX = 0x800
507 IFF_SMART = 0x20
508 IFF_STATICARP = 0x80000
509 IFF_UP = 0x1
510 IFNAMSIZ = 0x10
511 IFT_1822 = 0x2
512 IFT_A12MPPSWITCH = 0x82
513 IFT_AAL2 = 0xbb
514 IFT_AAL5 = 0x31
515 IFT_ADSL = 0x5e
516 IFT_AFLANE8023 = 0x3b
517 IFT_AFLANE8025 = 0x3c
518 IFT_ARAP = 0x58
519 IFT_ARCNET = 0x23
520 IFT_ARCNETPLUS = 0x24
521 IFT_ASYNC = 0x54
522 IFT_ATM = 0x25
523 IFT_ATMDXI = 0x69
524 IFT_ATMFUNI = 0x6a
525 IFT_ATMIMA = 0x6b
526 IFT_ATMLOGICAL = 0x50
527 IFT_ATMRADIO = 0xbd
528 IFT_ATMSUBINTERFACE = 0x86
529 IFT_ATMVCIENDPT = 0xc2
530 IFT_ATMVIRTUAL = 0x95
531 IFT_BGPPOLICYACCOUNTING = 0xa2
532 IFT_BRIDGE = 0xd1
533 IFT_BSC = 0x53
534 IFT_CARP = 0xf8
535 IFT_CCTEMUL = 0x3d
536 IFT_CEPT = 0x13
537 IFT_CES = 0x85
538 IFT_CHANNEL = 0x46
539 IFT_CNR = 0x55
540 IFT_COFFEE = 0x84
541 IFT_COMPOSITELINK = 0x9b
542 IFT_DCN = 0x8d
543 IFT_DIGITALPOWERLINE = 0x8a
544 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
545 IFT_DLSW = 0x4a
546 IFT_DOCSCABLEDOWNSTREAM = 0x80
547 IFT_DOCSCABLEMACLAYER = 0x7f
548 IFT_DOCSCABLEUPSTREAM = 0x81
549 IFT_DS0 = 0x51
550 IFT_DS0BUNDLE = 0x52
551 IFT_DS1FDL = 0xaa
552 IFT_DS3 = 0x1e
553 IFT_DTM = 0x8c
554 IFT_DVBASILN = 0xac
555 IFT_DVBASIOUT = 0xad
556 IFT_DVBRCCDOWNSTREAM = 0x93
557 IFT_DVBRCCMACLAYER = 0x92
558 IFT_DVBRCCUPSTREAM = 0x94
559 IFT_ENC = 0xf4
560 IFT_EON = 0x19
561 IFT_EPLRS = 0x57
562 IFT_ESCON = 0x49
563 IFT_ETHER = 0x6
564 IFT_FAITH = 0xf2
565 IFT_FAST = 0x7d
566 IFT_FASTETHER = 0x3e
567 IFT_FASTETHERFX = 0x45
568 IFT_FDDI = 0xf
569 IFT_FIBRECHANNEL = 0x38
570 IFT_FRAMERELAYINTERCONNECT = 0x3a
571 IFT_FRAMERELAYMPI = 0x5c
572 IFT_FRDLCIENDPT = 0xc1
573 IFT_FRELAY = 0x20
574 IFT_FRELAYDCE = 0x2c
575 IFT_FRF16MFRBUNDLE = 0xa3
576 IFT_FRFORWARD = 0x9e
577 IFT_G703AT2MB = 0x43
578 IFT_G703AT64K = 0x42
579 IFT_GIF = 0xf0
580 IFT_GIGABITETHERNET = 0x75
581 IFT_GR303IDT = 0xb2
582 IFT_GR303RDT = 0xb1
583 IFT_H323GATEKEEPER = 0xa4
584 IFT_H323PROXY = 0xa5
585 IFT_HDH1822 = 0x3
586 IFT_HDLC = 0x76
587 IFT_HDSL2 = 0xa8
588 IFT_HIPERLAN2 = 0xb7
589 IFT_HIPPI = 0x2f
590 IFT_HIPPIINTERFACE = 0x39
591 IFT_HOSTPAD = 0x5a
592 IFT_HSSI = 0x2e
593 IFT_HY = 0xe
594 IFT_IBM370PARCHAN = 0x48
595 IFT_IDSL = 0x9a
596 IFT_IEEE1394 = 0x90
597 IFT_IEEE80211 = 0x47
598 IFT_IEEE80212 = 0x37
599 IFT_IEEE8023ADLAG = 0xa1
600 IFT_IFGSN = 0x91
601 IFT_IMT = 0xbe
602 IFT_INFINIBAND = 0xc7
603 IFT_INTERLEAVE = 0x7c
604 IFT_IP = 0x7e
605 IFT_IPFORWARD = 0x8e
606 IFT_IPOVERATM = 0x72
607 IFT_IPOVERCDLC = 0x6d
608 IFT_IPOVERCLAW = 0x6e
609 IFT_IPSWITCH = 0x4e
610 IFT_IPXIP = 0xf9
611 IFT_ISDN = 0x3f
612 IFT_ISDNBASIC = 0x14
613 IFT_ISDNPRIMARY = 0x15
614 IFT_ISDNS = 0x4b
615 IFT_ISDNU = 0x4c
616 IFT_ISO88022LLC = 0x29
617 IFT_ISO88023 = 0x7
618 IFT_ISO88024 = 0x8
619 IFT_ISO88025 = 0x9
620 IFT_ISO88025CRFPINT = 0x62
621 IFT_ISO88025DTR = 0x56
622 IFT_ISO88025FIBER = 0x73
623 IFT_ISO88026 = 0xa
624 IFT_ISUP = 0xb3
625 IFT_L2VLAN = 0x87
626 IFT_L3IPVLAN = 0x88
627 IFT_L3IPXVLAN = 0x89
628 IFT_LAPB = 0x10
629 IFT_LAPD = 0x4d
630 IFT_LAPF = 0x77
631 IFT_LOCALTALK = 0x2a
632 IFT_LOOP = 0x18
633 IFT_MEDIAMAILOVERIP = 0x8b
634 IFT_MFSIGLINK = 0xa7
635 IFT_MIOX25 = 0x26
636 IFT_MODEM = 0x30
637 IFT_MPC = 0x71
638 IFT_MPLS = 0xa6
639 IFT_MPLSTUNNEL = 0x96
640 IFT_MSDSL = 0x8f
641 IFT_MVL = 0xbf
642 IFT_MYRINET = 0x63
643 IFT_NFAS = 0xaf
644 IFT_NSIP = 0x1b
645 IFT_OPTICALCHANNEL = 0xc3
646 IFT_OPTICALTRANSPORT = 0xc4
647 IFT_OTHER = 0x1
648 IFT_P10 = 0xc
649 IFT_P80 = 0xd
650 IFT_PARA = 0x22
651 IFT_PFLOG = 0xf6
652 IFT_PFSYNC = 0xf7
653 IFT_PLC = 0xae
654 IFT_POS = 0xab
655 IFT_PPP = 0x17
656 IFT_PPPMULTILINKBUNDLE = 0x6c
657 IFT_PROPBWAP2MP = 0xb8
658 IFT_PROPCNLS = 0x59
659 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
660 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
661 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
662 IFT_PROPMUX = 0x36
663 IFT_PROPVIRTUAL = 0x35
664 IFT_PROPWIRELESSP2P = 0x9d
665 IFT_PTPSERIAL = 0x16
666 IFT_PVC = 0xf1
667 IFT_QLLC = 0x44
668 IFT_RADIOMAC = 0xbc
669 IFT_RADSL = 0x5f
670 IFT_REACHDSL = 0xc0
671 IFT_RFC1483 = 0x9f
672 IFT_RS232 = 0x21
673 IFT_RSRB = 0x4f
674 IFT_SDLC = 0x11
675 IFT_SDSL = 0x60
676 IFT_SHDSL = 0xa9
677 IFT_SIP = 0x1f
678 IFT_SLIP = 0x1c
679 IFT_SMDSDXI = 0x2b
680 IFT_SMDSICIP = 0x34
681 IFT_SONET = 0x27
682 IFT_SONETOVERHEADCHANNEL = 0xb9
683 IFT_SONETPATH = 0x32
684 IFT_SONETVT = 0x33
685 IFT_SRP = 0x97
686 IFT_SS7SIGLINK = 0x9c
687 IFT_STACKTOSTACK = 0x6f
688 IFT_STARLAN = 0xb
689 IFT_STF = 0xd7
690 IFT_T1 = 0x12
691 IFT_TDLC = 0x74
692 IFT_TERMPAD = 0x5b
693 IFT_TR008 = 0xb0
694 IFT_TRANSPHDLC = 0x7b
695 IFT_TUNNEL = 0x83
696 IFT_ULTRA = 0x1d
697 IFT_USB = 0xa0
698 IFT_V11 = 0x40
699 IFT_V35 = 0x2d
700 IFT_V36 = 0x41
701 IFT_V37 = 0x78
702 IFT_VDSL = 0x61
703 IFT_VIRTUALIPADDRESS = 0x70
704 IFT_VOICEEM = 0x64
705 IFT_VOICEENCAP = 0x67
706 IFT_VOICEFXO = 0x65
707 IFT_VOICEFXS = 0x66
708 IFT_VOICEOVERATM = 0x98
709 IFT_VOICEOVERFRAMERELAY = 0x99
710 IFT_VOICEOVERIP = 0x68
711 IFT_X213 = 0x5d
712 IFT_X25 = 0x5
713 IFT_X25DDN = 0x4
714 IFT_X25HUNTGROUP = 0x7a
715 IFT_X25MLP = 0x79
716 IFT_X25PLE = 0x28
717 IFT_XETHER = 0x1a
718 IGNBRK = 0x1
719 IGNCR = 0x80
720 IGNPAR = 0x4
721 IMAXBEL = 0x2000
722 INLCR = 0x40
723 INPCK = 0x10
724 IN_CLASSA_HOST = 0xffffff
725 IN_CLASSA_MAX = 0x80
726 IN_CLASSA_NET = 0xff000000
727 IN_CLASSA_NSHIFT = 0x18
728 IN_CLASSB_HOST = 0xffff
729 IN_CLASSB_MAX = 0x10000
730 IN_CLASSB_NET = 0xffff0000
731 IN_CLASSB_NSHIFT = 0x10
732 IN_CLASSC_HOST = 0xff
733 IN_CLASSC_NET = 0xffffff00
734 IN_CLASSC_NSHIFT = 0x8
735 IN_CLASSD_HOST = 0xfffffff
736 IN_CLASSD_NET = 0xf0000000
737 IN_CLASSD_NSHIFT = 0x1c
738 IN_LOOPBACKNET = 0x7f
739 IN_RFC3021_MASK = 0xfffffffe
740 IPPROTO_3PC = 0x22
741 IPPROTO_ADFS = 0x44
742 IPPROTO_AH = 0x33
743 IPPROTO_AHIP = 0x3d
744 IPPROTO_APES = 0x63
745 IPPROTO_ARGUS = 0xd
746 IPPROTO_AX25 = 0x5d
747 IPPROTO_BHA = 0x31
748 IPPROTO_BLT = 0x1e
749 IPPROTO_BRSATMON = 0x4c
750 IPPROTO_CARP = 0x70
751 IPPROTO_CFTP = 0x3e
752 IPPROTO_CHAOS = 0x10
753 IPPROTO_CMTP = 0x26
754 IPPROTO_CPHB = 0x49
755 IPPROTO_CPNX = 0x48
756 IPPROTO_DDP = 0x25
757 IPPROTO_DGP = 0x56
758 IPPROTO_DIVERT = 0x102
759 IPPROTO_DONE = 0x101
760 IPPROTO_DSTOPTS = 0x3c
761 IPPROTO_EGP = 0x8
762 IPPROTO_EMCON = 0xe
763 IPPROTO_ENCAP = 0x62
764 IPPROTO_EON = 0x50
765 IPPROTO_ESP = 0x32
766 IPPROTO_ETHERIP = 0x61
767 IPPROTO_FRAGMENT = 0x2c
768 IPPROTO_GGP = 0x3
769 IPPROTO_GMTP = 0x64
770 IPPROTO_GRE = 0x2f
771 IPPROTO_HELLO = 0x3f
772 IPPROTO_HIP = 0x8b
773 IPPROTO_HMP = 0x14
774 IPPROTO_HOPOPTS = 0x0
775 IPPROTO_ICMP = 0x1
776 IPPROTO_ICMPV6 = 0x3a
777 IPPROTO_IDP = 0x16
778 IPPROTO_IDPR = 0x23
779 IPPROTO_IDRP = 0x2d
780 IPPROTO_IGMP = 0x2
781 IPPROTO_IGP = 0x55
782 IPPROTO_IGRP = 0x58
783 IPPROTO_IL = 0x28
784 IPPROTO_INLSP = 0x34
785 IPPROTO_INP = 0x20
786 IPPROTO_IP = 0x0
787 IPPROTO_IPCOMP = 0x6c
788 IPPROTO_IPCV = 0x47
789 IPPROTO_IPEIP = 0x5e
790 IPPROTO_IPIP = 0x4
791 IPPROTO_IPPC = 0x43
792 IPPROTO_IPV4 = 0x4
793 IPPROTO_IPV6 = 0x29
794 IPPROTO_IRTP = 0x1c
795 IPPROTO_KRYPTOLAN = 0x41
796 IPPROTO_LARP = 0x5b
797 IPPROTO_LEAF1 = 0x19
798 IPPROTO_LEAF2 = 0x1a
799 IPPROTO_MAX = 0x100
800 IPPROTO_MAXID = 0x34
801 IPPROTO_MEAS = 0x13
802 IPPROTO_MH = 0x87
803 IPPROTO_MHRP = 0x30
804 IPPROTO_MICP = 0x5f
805 IPPROTO_MOBILE = 0x37
806 IPPROTO_MPLS = 0x89
807 IPPROTO_MTP = 0x5c
808 IPPROTO_MUX = 0x12
809 IPPROTO_ND = 0x4d
810 IPPROTO_NHRP = 0x36
811 IPPROTO_NONE = 0x3b
812 IPPROTO_NSP = 0x1f
813 IPPROTO_NVPII = 0xb
814 IPPROTO_OLD_DIVERT = 0xfe
815 IPPROTO_OSPFIGP = 0x59
816 IPPROTO_PFSYNC = 0xf0
817 IPPROTO_PGM = 0x71
818 IPPROTO_PIGP = 0x9
819 IPPROTO_PIM = 0x67
820 IPPROTO_PRM = 0x15
821 IPPROTO_PUP = 0xc
822 IPPROTO_PVP = 0x4b
823 IPPROTO_RAW = 0xff
824 IPPROTO_RCCMON = 0xa
825 IPPROTO_RDP = 0x1b
826 IPPROTO_RESERVED_253 = 0xfd
827 IPPROTO_RESERVED_254 = 0xfe
828 IPPROTO_ROUTING = 0x2b
829 IPPROTO_RSVP = 0x2e
830 IPPROTO_RVD = 0x42
831 IPPROTO_SATEXPAK = 0x40
832 IPPROTO_SATMON = 0x45
833 IPPROTO_SCCSP = 0x60
834 IPPROTO_SCTP = 0x84
835 IPPROTO_SDRP = 0x2a
836 IPPROTO_SEND = 0x103
837 IPPROTO_SEP = 0x21
838 IPPROTO_SHIM6 = 0x8c
839 IPPROTO_SKIP = 0x39
840 IPPROTO_SPACER = 0x7fff
841 IPPROTO_SRPC = 0x5a
842 IPPROTO_ST = 0x7
843 IPPROTO_SVMTP = 0x52
844 IPPROTO_SWIPE = 0x35
845 IPPROTO_TCF = 0x57
846 IPPROTO_TCP = 0x6
847 IPPROTO_TLSP = 0x38
848 IPPROTO_TP = 0x1d
849 IPPROTO_TPXX = 0x27
850 IPPROTO_TRUNK1 = 0x17
851 IPPROTO_TRUNK2 = 0x18
852 IPPROTO_TTP = 0x54
853 IPPROTO_UDP = 0x11
854 IPPROTO_UDPLITE = 0x88
855 IPPROTO_VINES = 0x53
856 IPPROTO_VISA = 0x46
857 IPPROTO_VMTP = 0x51
858 IPPROTO_WBEXPAK = 0x4f
859 IPPROTO_WBMON = 0x4e
860 IPPROTO_WSN = 0x4a
861 IPPROTO_XNET = 0xf
862 IPPROTO_XTP = 0x24
863 IPV6_AUTOFLOWLABEL = 0x3b
864 IPV6_BINDANY = 0x40
865 IPV6_BINDV6ONLY = 0x1b
866 IPV6_CHECKSUM = 0x1a
867 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
868 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
869 IPV6_DEFHLIM = 0x40
870 IPV6_DONTFRAG = 0x3e
871 IPV6_DSTOPTS = 0x32
872 IPV6_FAITH = 0x1d
873 IPV6_FLOWINFO_MASK = 0xffffff0f
874 IPV6_FLOWLABEL_MASK = 0xffff0f00
875 IPV6_FRAGTTL = 0x78
876 IPV6_FW_ADD = 0x1e
877 IPV6_FW_DEL = 0x1f
878 IPV6_FW_FLUSH = 0x20
879 IPV6_FW_GET = 0x22
880 IPV6_FW_ZERO = 0x21
881 IPV6_HLIMDEC = 0x1
882 IPV6_HOPLIMIT = 0x2f
883 IPV6_HOPOPTS = 0x31
884 IPV6_IPSEC_POLICY = 0x1c
885 IPV6_JOIN_GROUP = 0xc
886 IPV6_LEAVE_GROUP = 0xd
887 IPV6_MAXHLIM = 0xff
888 IPV6_MAXOPTHDR = 0x800
889 IPV6_MAXPACKET = 0xffff
890 IPV6_MAX_GROUP_SRC_FILTER = 0x200
891 IPV6_MAX_MEMBERSHIPS = 0xfff
892 IPV6_MAX_SOCK_SRC_FILTER = 0x80
893 IPV6_MIN_MEMBERSHIPS = 0x1f
894 IPV6_MMTU = 0x500
895 IPV6_MSFILTER = 0x4a
896 IPV6_MULTICAST_HOPS = 0xa
897 IPV6_MULTICAST_IF = 0x9
898 IPV6_MULTICAST_LOOP = 0xb
899 IPV6_NEXTHOP = 0x30
900 IPV6_PATHMTU = 0x2c
901 IPV6_PKTINFO = 0x2e
902 IPV6_PORTRANGE = 0xe
903 IPV6_PORTRANGE_DEFAULT = 0x0
904 IPV6_PORTRANGE_HIGH = 0x1
905 IPV6_PORTRANGE_LOW = 0x2
906 IPV6_PREFER_TEMPADDR = 0x3f
907 IPV6_RECVDSTOPTS = 0x28
908 IPV6_RECVHOPLIMIT = 0x25
909 IPV6_RECVHOPOPTS = 0x27
910 IPV6_RECVPATHMTU = 0x2b
911 IPV6_RECVPKTINFO = 0x24
912 IPV6_RECVRTHDR = 0x26
913 IPV6_RECVTCLASS = 0x39
914 IPV6_RTHDR = 0x33
915 IPV6_RTHDRDSTOPTS = 0x23
916 IPV6_RTHDR_LOOSE = 0x0
917 IPV6_RTHDR_STRICT = 0x1
918 IPV6_RTHDR_TYPE_0 = 0x0
919 IPV6_SOCKOPT_RESERVED1 = 0x3
920 IPV6_TCLASS = 0x3d
921 IPV6_UNICAST_HOPS = 0x4
922 IPV6_USE_MIN_MTU = 0x2a
923 IPV6_V6ONLY = 0x1b
924 IPV6_VERSION = 0x60
925 IPV6_VERSION_MASK = 0xf0
926 IP_ADD_MEMBERSHIP = 0xc
927 IP_ADD_SOURCE_MEMBERSHIP = 0x46
928 IP_BINDANY = 0x18
929 IP_BLOCK_SOURCE = 0x48
930 IP_DEFAULT_MULTICAST_LOOP = 0x1
931 IP_DEFAULT_MULTICAST_TTL = 0x1
932 IP_DF = 0x4000
933 IP_DONTFRAG = 0x43
934 IP_DROP_MEMBERSHIP = 0xd
935 IP_DROP_SOURCE_MEMBERSHIP = 0x47
936 IP_DUMMYNET3 = 0x31
937 IP_DUMMYNET_CONFIGURE = 0x3c
938 IP_DUMMYNET_DEL = 0x3d
939 IP_DUMMYNET_FLUSH = 0x3e
940 IP_DUMMYNET_GET = 0x40
941 IP_FAITH = 0x16
942 IP_FW3 = 0x30
943 IP_FW_ADD = 0x32
944 IP_FW_DEL = 0x33
945 IP_FW_FLUSH = 0x34
946 IP_FW_GET = 0x36
947 IP_FW_NAT_CFG = 0x38
948 IP_FW_NAT_DEL = 0x39
949 IP_FW_NAT_GET_CONFIG = 0x3a
950 IP_FW_NAT_GET_LOG = 0x3b
951 IP_FW_RESETLOG = 0x37
952 IP_FW_TABLE_ADD = 0x28
953 IP_FW_TABLE_DEL = 0x29
954 IP_FW_TABLE_FLUSH = 0x2a
955 IP_FW_TABLE_GETSIZE = 0x2b
956 IP_FW_TABLE_LIST = 0x2c
957 IP_FW_ZERO = 0x35
958 IP_HDRINCL = 0x2
959 IP_IPSEC_POLICY = 0x15
960 IP_MAXPACKET = 0xffff
961 IP_MAX_GROUP_SRC_FILTER = 0x200
962 IP_MAX_MEMBERSHIPS = 0xfff
963 IP_MAX_SOCK_MUTE_FILTER = 0x80
964 IP_MAX_SOCK_SRC_FILTER = 0x80
965 IP_MAX_SOURCE_FILTER = 0x400
966 IP_MF = 0x2000
967 IP_MINTTL = 0x42
968 IP_MIN_MEMBERSHIPS = 0x1f
969 IP_MSFILTER = 0x4a
970 IP_MSS = 0x240
971 IP_MULTICAST_IF = 0x9
972 IP_MULTICAST_LOOP = 0xb
973 IP_MULTICAST_TTL = 0xa
974 IP_MULTICAST_VIF = 0xe
975 IP_OFFMASK = 0x1fff
976 IP_ONESBCAST = 0x17
977 IP_OPTIONS = 0x1
978 IP_PORTRANGE = 0x13
979 IP_PORTRANGE_DEFAULT = 0x0
980 IP_PORTRANGE_HIGH = 0x1
981 IP_PORTRANGE_LOW = 0x2
982 IP_RECVDSTADDR = 0x7
983 IP_RECVIF = 0x14
984 IP_RECVOPTS = 0x5
985 IP_RECVRETOPTS = 0x6
986 IP_RECVTOS = 0x44
987 IP_RECVTTL = 0x41
988 IP_RETOPTS = 0x8
989 IP_RF = 0x8000
990 IP_RSVP_OFF = 0x10
991 IP_RSVP_ON = 0xf
992 IP_RSVP_VIF_OFF = 0x12
993 IP_RSVP_VIF_ON = 0x11
994 IP_SENDSRCADDR = 0x7
995 IP_TOS = 0x3
996 IP_TTL = 0x4
997 IP_UNBLOCK_SOURCE = 0x49
998 ISIG = 0x80
999 ISTRIP = 0x20
1000 IXANY = 0x800
1001 IXOFF = 0x400
1002 IXON = 0x200
1003 LOCK_EX = 0x2
1004 LOCK_NB = 0x4
1005 LOCK_SH = 0x1
1006 LOCK_UN = 0x8
1007 MADV_AUTOSYNC = 0x7
1008 MADV_CORE = 0x9
1009 MADV_DONTNEED = 0x4
1010 MADV_FREE = 0x5
1011 MADV_NOCORE = 0x8
1012 MADV_NORMAL = 0x0
1013 MADV_NOSYNC = 0x6
1014 MADV_PROTECT = 0xa
1015 MADV_RANDOM = 0x1
1016 MADV_SEQUENTIAL = 0x2
1017 MADV_WILLNEED = 0x3
1018 MAP_ALIGNED_SUPER = 0x1000000
1019 MAP_ALIGNMENT_MASK = -0x1000000
1020 MAP_ALIGNMENT_SHIFT = 0x18
1021 MAP_ANON = 0x1000
1022 MAP_ANONYMOUS = 0x1000
1023 MAP_COPY = 0x2
1024 MAP_EXCL = 0x4000
1025 MAP_FILE = 0x0
1026 MAP_FIXED = 0x10
1027 MAP_HASSEMAPHORE = 0x200
1028 MAP_NOCORE = 0x20000
1029 MAP_NORESERVE = 0x40
1030 MAP_NOSYNC = 0x800
1031 MAP_PREFAULT_READ = 0x40000
1032 MAP_PRIVATE = 0x2
1033 MAP_RENAME = 0x20
1034 MAP_RESERVED0080 = 0x80
1035 MAP_RESERVED0100 = 0x100
1036 MAP_SHARED = 0x1
1037 MAP_STACK = 0x400
1038 MCL_CURRENT = 0x1
1039 MCL_FUTURE = 0x2
1040 MSG_CMSG_CLOEXEC = 0x40000
1041 MSG_COMPAT = 0x8000
1042 MSG_CTRUNC = 0x20
1043 MSG_DONTROUTE = 0x4
1044 MSG_DONTWAIT = 0x80
1045 MSG_EOF = 0x100
1046 MSG_EOR = 0x8
1047 MSG_NBIO = 0x4000
1048 MSG_NOSIGNAL = 0x20000
1049 MSG_NOTIFICATION = 0x2000
1050 MSG_OOB = 0x1
1051 MSG_PEEK = 0x2
1052 MSG_TRUNC = 0x10
1053 MSG_WAITALL = 0x40
1054 MS_ASYNC = 0x1
1055 MS_INVALIDATE = 0x2
1056 MS_SYNC = 0x0
1057 NAME_MAX = 0xff
1058 NET_RT_DUMP = 0x1
1059 NET_RT_FLAGS = 0x2
1060 NET_RT_IFLIST = 0x3
1061 NET_RT_IFLISTL = 0x5
1062 NET_RT_IFMALIST = 0x4
1063 NET_RT_MAXID = 0x6
1064 NOFLSH = 0x80000000
1065 NOTE_ATTRIB = 0x8
1066 NOTE_CHILD = 0x4
1067 NOTE_DELETE = 0x1
1068 NOTE_EXEC = 0x20000000
1069 NOTE_EXIT = 0x80000000
1070 NOTE_EXTEND = 0x4
1071 NOTE_FFAND = 0x40000000
1072 NOTE_FFCOPY = 0xc0000000
1073 NOTE_FFCTRLMASK = 0xc0000000
1074 NOTE_FFLAGSMASK = 0xffffff
1075 NOTE_FFNOP = 0x0
1076 NOTE_FFOR = 0x80000000
1077 NOTE_FORK = 0x40000000
1078 NOTE_LINK = 0x10
1079 NOTE_LOWAT = 0x1
1080 NOTE_PCTRLMASK = 0xf0000000
1081 NOTE_PDATAMASK = 0xfffff
1082 NOTE_RENAME = 0x20
1083 NOTE_REVOKE = 0x40
1084 NOTE_TRACK = 0x1
1085 NOTE_TRACKERR = 0x2
1086 NOTE_TRIGGER = 0x1000000
1087 NOTE_WRITE = 0x2
1088 OCRNL = 0x10
1089 ONLCR = 0x2
1090 ONLRET = 0x40
1091 ONOCR = 0x20
1092 ONOEOT = 0x8
1093 OPOST = 0x1
1094 O_ACCMODE = 0x3
1095 O_APPEND = 0x8
1096 O_ASYNC = 0x40
1097 O_CLOEXEC = 0x100000
1098 O_CREAT = 0x200
1099 O_DIRECT = 0x10000
1100 O_DIRECTORY = 0x20000
1101 O_EXCL = 0x800
1102 O_EXEC = 0x40000
1103 O_EXLOCK = 0x20
1104 O_FSYNC = 0x80
1105 O_NDELAY = 0x4
1106 O_NOCTTY = 0x8000
1107 O_NOFOLLOW = 0x100
1108 O_NONBLOCK = 0x4
1109 O_RDONLY = 0x0
1110 O_RDWR = 0x2
1111 O_SHLOCK = 0x10
1112 O_SYNC = 0x80
1113 O_TRUNC = 0x400
1114 O_TTY_INIT = 0x80000
1115 O_WRONLY = 0x1
1116 PARENB = 0x1000
1117 PARMRK = 0x8
1118 PARODD = 0x2000
1119 PENDIN = 0x20000000
1120 PRIO_PGRP = 0x1
1121 PRIO_PROCESS = 0x0
1122 PRIO_USER = 0x2
1123 PROT_EXEC = 0x4
1124 PROT_NONE = 0x0
1125 PROT_READ = 0x1
1126 PROT_WRITE = 0x2
1127 RLIMIT_AS = 0xa
1128 RLIMIT_CORE = 0x4
1129 RLIMIT_CPU = 0x0
1130 RLIMIT_DATA = 0x2
1131 RLIMIT_FSIZE = 0x1
1132 RLIMIT_NOFILE = 0x8
1133 RLIMIT_STACK = 0x3
1134 RLIM_INFINITY = 0x7fffffffffffffff
1135 RTAX_AUTHOR = 0x6
1136 RTAX_BRD = 0x7
1137 RTAX_DST = 0x0
1138 RTAX_GATEWAY = 0x1
1139 RTAX_GENMASK = 0x3
1140 RTAX_IFA = 0x5
1141 RTAX_IFP = 0x4
1142 RTAX_MAX = 0x8
1143 RTAX_NETMASK = 0x2
1144 RTA_AUTHOR = 0x40
1145 RTA_BRD = 0x80
1146 RTA_DST = 0x1
1147 RTA_GATEWAY = 0x2
1148 RTA_GENMASK = 0x8
1149 RTA_IFA = 0x20
1150 RTA_IFP = 0x10
1151 RTA_NETMASK = 0x4
1152 RTF_BLACKHOLE = 0x1000
1153 RTF_BROADCAST = 0x400000
1154 RTF_DONE = 0x40
1155 RTF_DYNAMIC = 0x10
1156 RTF_FMASK = 0x1004d808
1157 RTF_GATEWAY = 0x2
1158 RTF_GWFLAG_COMPAT = 0x80000000
1159 RTF_HOST = 0x4
1160 RTF_LLDATA = 0x400
1161 RTF_LLINFO = 0x400
1162 RTF_LOCAL = 0x200000
1163 RTF_MODIFIED = 0x20
1164 RTF_MULTICAST = 0x800000
1165 RTF_PINNED = 0x100000
1166 RTF_PRCLONING = 0x10000
1167 RTF_PROTO1 = 0x8000
1168 RTF_PROTO2 = 0x4000
1169 RTF_PROTO3 = 0x40000
1170 RTF_REJECT = 0x8
1171 RTF_RNH_LOCKED = 0x40000000
1172 RTF_STATIC = 0x800
1173 RTF_STICKY = 0x10000000
1174 RTF_UP = 0x1
1175 RTF_XRESOLVE = 0x200
1176 RTM_ADD = 0x1
1177 RTM_CHANGE = 0x3
1178 RTM_DELADDR = 0xd
1179 RTM_DELETE = 0x2
1180 RTM_DELMADDR = 0x10
1181 RTM_GET = 0x4
1182 RTM_IEEE80211 = 0x12
1183 RTM_IFANNOUNCE = 0x11
1184 RTM_IFINFO = 0xe
1185 RTM_LOCK = 0x8
1186 RTM_LOSING = 0x5
1187 RTM_MISS = 0x7
1188 RTM_NEWADDR = 0xc
1189 RTM_NEWMADDR = 0xf
1190 RTM_OLDADD = 0x9
1191 RTM_OLDDEL = 0xa
1192 RTM_REDIRECT = 0x6
1193 RTM_RESOLVE = 0xb
1194 RTM_RTTUNIT = 0xf4240
1195 RTM_VERSION = 0x5
1196 RTV_EXPIRE = 0x4
1197 RTV_HOPCOUNT = 0x2
1198 RTV_MTU = 0x1
1199 RTV_RPIPE = 0x8
1200 RTV_RTT = 0x40
1201 RTV_RTTVAR = 0x80
1202 RTV_SPIPE = 0x10
1203 RTV_SSTHRESH = 0x20
1204 RTV_WEIGHT = 0x100
1205 RT_ALL_FIBS = -0x1
1206 RT_CACHING_CONTEXT = 0x1
1207 RT_DEFAULT_FIB = 0x0
1208 RT_NORTREF = 0x2
1209 RUSAGE_CHILDREN = -0x1
1210 RUSAGE_SELF = 0x0
1211 RUSAGE_THREAD = 0x1
1212 SCM_BINTIME = 0x4
1213 SCM_CREDS = 0x3
1214 SCM_RIGHTS = 0x1
1215 SCM_TIMESTAMP = 0x2
1216 SHUT_RD = 0x0
1217 SHUT_RDWR = 0x2
1218 SHUT_WR = 0x1
1219 SIOCADDMULTI = 0x80206931
1220 SIOCADDRT = 0x8030720a
1221 SIOCAIFADDR = 0x8040691a
1222 SIOCAIFGROUP = 0x80246987
1223 SIOCALIFADDR = 0x8118691b
1224 SIOCATMARK = 0x40047307
1225 SIOCDELMULTI = 0x80206932
1226 SIOCDELRT = 0x8030720b
1227 SIOCDIFADDR = 0x80206919
1228 SIOCDIFGROUP = 0x80246989
1229 SIOCDIFPHYADDR = 0x80206949
1230 SIOCDLIFADDR = 0x8118691d
1231 SIOCGDRVSPEC = 0xc01c697b
1232 SIOCGETSGCNT = 0xc0147210
1233 SIOCGETVIFCNT = 0xc014720f
1234 SIOCGHIWAT = 0x40047301
1235 SIOCGIFADDR = 0xc0206921
1236 SIOCGIFBRDADDR = 0xc0206923
1237 SIOCGIFCAP = 0xc020691f
1238 SIOCGIFCONF = 0xc0086924
1239 SIOCGIFDESCR = 0xc020692a
1240 SIOCGIFDSTADDR = 0xc0206922
1241 SIOCGIFFIB = 0xc020695c
1242 SIOCGIFFLAGS = 0xc0206911
1243 SIOCGIFGENERIC = 0xc020693a
1244 SIOCGIFGMEMB = 0xc024698a
1245 SIOCGIFGROUP = 0xc0246988
1246 SIOCGIFINDEX = 0xc0206920
1247 SIOCGIFMAC = 0xc0206926
1248 SIOCGIFMEDIA = 0xc0286938
1249 SIOCGIFMETRIC = 0xc0206917
1250 SIOCGIFMTU = 0xc0206933
1251 SIOCGIFNETMASK = 0xc0206925
1252 SIOCGIFPDSTADDR = 0xc0206948
1253 SIOCGIFPHYS = 0xc0206935
1254 SIOCGIFPSRCADDR = 0xc0206947
1255 SIOCGIFSTATUS = 0xc331693b
1256 SIOCGLIFADDR = 0xc118691c
1257 SIOCGLIFPHYADDR = 0xc118694b
1258 SIOCGLOWAT = 0x40047303
1259 SIOCGPGRP = 0x40047309
1260 SIOCGPRIVATE_0 = 0xc0206950
1261 SIOCGPRIVATE_1 = 0xc0206951
1262 SIOCIFCREATE = 0xc020697a
1263 SIOCIFCREATE2 = 0xc020697c
1264 SIOCIFDESTROY = 0x80206979
1265 SIOCIFGCLONERS = 0xc00c6978
1266 SIOCSDRVSPEC = 0x801c697b
1267 SIOCSHIWAT = 0x80047300
1268 SIOCSIFADDR = 0x8020690c
1269 SIOCSIFBRDADDR = 0x80206913
1270 SIOCSIFCAP = 0x8020691e
1271 SIOCSIFDESCR = 0x80206929
1272 SIOCSIFDSTADDR = 0x8020690e
1273 SIOCSIFFIB = 0x8020695d
1274 SIOCSIFFLAGS = 0x80206910
1275 SIOCSIFGENERIC = 0x80206939
1276 SIOCSIFLLADDR = 0x8020693c
1277 SIOCSIFMAC = 0x80206927
1278 SIOCSIFMEDIA = 0xc0206937
1279 SIOCSIFMETRIC = 0x80206918
1280 SIOCSIFMTU = 0x80206934
1281 SIOCSIFNAME = 0x80206928
1282 SIOCSIFNETMASK = 0x80206916
1283 SIOCSIFPHYADDR = 0x80406946
1284 SIOCSIFPHYS = 0x80206936
1285 SIOCSIFRVNET = 0xc020695b
1286 SIOCSIFVNET = 0xc020695a
1287 SIOCSLIFPHYADDR = 0x8118694a
1288 SIOCSLOWAT = 0x80047302
1289 SIOCSPGRP = 0x80047308
1290 SOCK_CLOEXEC = 0x10000000
1291 SOCK_DGRAM = 0x2
1292 SOCK_MAXADDRLEN = 0xff
1293 SOCK_NONBLOCK = 0x20000000
1294 SOCK_RAW = 0x3
1295 SOCK_RDM = 0x4
1296 SOCK_SEQPACKET = 0x5
1297 SOCK_STREAM = 0x1
1298 SOL_SOCKET = 0xffff
1299 SOMAXCONN = 0x80
1300 SO_ACCEPTCONN = 0x2
1301 SO_ACCEPTFILTER = 0x1000
1302 SO_BINTIME = 0x2000
1303 SO_BROADCAST = 0x20
1304 SO_DEBUG = 0x1
1305 SO_DONTROUTE = 0x10
1306 SO_ERROR = 0x1007
1307 SO_KEEPALIVE = 0x8
1308 SO_LABEL = 0x1009
1309 SO_LINGER = 0x80
1310 SO_LISTENINCQLEN = 0x1013
1311 SO_LISTENQLEN = 0x1012
1312 SO_LISTENQLIMIT = 0x1011
1313 SO_NOSIGPIPE = 0x800
1314 SO_NO_DDP = 0x8000
1315 SO_NO_OFFLOAD = 0x4000
1316 SO_OOBINLINE = 0x100
1317 SO_PEERLABEL = 0x1010
1318 SO_PROTOCOL = 0x1016
1319 SO_PROTOTYPE = 0x1016
1320 SO_RCVBUF = 0x1002
1321 SO_RCVLOWAT = 0x1004
1322 SO_RCVTIMEO = 0x1006
1323 SO_REUSEADDR = 0x4
1324 SO_REUSEPORT = 0x200
1325 SO_SETFIB = 0x1014
1326 SO_SNDBUF = 0x1001
1327 SO_SNDLOWAT = 0x1003
1328 SO_SNDTIMEO = 0x1005
1329 SO_TIMESTAMP = 0x400
1330 SO_TYPE = 0x1008
1331 SO_USELOOPBACK = 0x40
1332 SO_USER_COOKIE = 0x1015
1333 SO_VENDOR = 0x80000000
1334 TCIFLUSH = 0x1
1335 TCIOFLUSH = 0x3
1336 TCOFLUSH = 0x2
1337 TCP_CA_NAME_MAX = 0x10
1338 TCP_CONGESTION = 0x40
1339 TCP_INFO = 0x20
1340 TCP_KEEPCNT = 0x400
1341 TCP_KEEPIDLE = 0x100
1342 TCP_KEEPINIT = 0x80
1343 TCP_KEEPINTVL = 0x200
1344 TCP_MAXBURST = 0x4
1345 TCP_MAXHLEN = 0x3c
1346 TCP_MAXOLEN = 0x28
1347 TCP_MAXSEG = 0x2
1348 TCP_MAXWIN = 0xffff
1349 TCP_MAX_SACK = 0x4
1350 TCP_MAX_WINSHIFT = 0xe
1351 TCP_MD5SIG = 0x10
1352 TCP_MINMSS = 0xd8
1353 TCP_MSS = 0x218
1354 TCP_NODELAY = 0x1
1355 TCP_NOOPT = 0x8
1356 TCP_NOPUSH = 0x4
1357 TCP_VENDOR = 0x80000000
1358 TCSAFLUSH = 0x2
1359 TIOCCBRK = 0x2000747a
1360 TIOCCDTR = 0x20007478
1361 TIOCCONS = 0x80047462
1362 TIOCDRAIN = 0x2000745e
1363 TIOCEXCL = 0x2000740d
1364 TIOCEXT = 0x80047460
1365 TIOCFLUSH = 0x80047410
1366 TIOCGDRAINWAIT = 0x40047456
1367 TIOCGETA = 0x402c7413
1368 TIOCGETD = 0x4004741a
1369 TIOCGPGRP = 0x40047477
1370 TIOCGPTN = 0x4004740f
1371 TIOCGSID = 0x40047463
1372 TIOCGWINSZ = 0x40087468
1373 TIOCMBIC = 0x8004746b
1374 TIOCMBIS = 0x8004746c
1375 TIOCMGDTRWAIT = 0x4004745a
1376 TIOCMGET = 0x4004746a
1377 TIOCMSDTRWAIT = 0x8004745b
1378 TIOCMSET = 0x8004746d
1379 TIOCM_CAR = 0x40
1380 TIOCM_CD = 0x40
1381 TIOCM_CTS = 0x20
1382 TIOCM_DCD = 0x40
1383 TIOCM_DSR = 0x100
1384 TIOCM_DTR = 0x2
1385 TIOCM_LE = 0x1
1386 TIOCM_RI = 0x80
1387 TIOCM_RNG = 0x80
1388 TIOCM_RTS = 0x4
1389 TIOCM_SR = 0x10
1390 TIOCM_ST = 0x8
1391 TIOCNOTTY = 0x20007471
1392 TIOCNXCL = 0x2000740e
1393 TIOCOUTQ = 0x40047473
1394 TIOCPKT = 0x80047470
1395 TIOCPKT_DATA = 0x0
1396 TIOCPKT_DOSTOP = 0x20
1397 TIOCPKT_FLUSHREAD = 0x1
1398 TIOCPKT_FLUSHWRITE = 0x2
1399 TIOCPKT_IOCTL = 0x40
1400 TIOCPKT_NOSTOP = 0x10
1401 TIOCPKT_START = 0x8
1402 TIOCPKT_STOP = 0x4
1403 TIOCPTMASTER = 0x2000741c
1404 TIOCSBRK = 0x2000747b
1405 TIOCSCTTY = 0x20007461
1406 TIOCSDRAINWAIT = 0x80047457
1407 TIOCSDTR = 0x20007479
1408 TIOCSETA = 0x802c7414
1409 TIOCSETAF = 0x802c7416
1410 TIOCSETAW = 0x802c7415
1411 TIOCSETD = 0x8004741b
1412 TIOCSIG = 0x2004745f
1413 TIOCSPGRP = 0x80047476
1414 TIOCSTART = 0x2000746e
1415 TIOCSTAT = 0x20007465
1416 TIOCSTI = 0x80017472
1417 TIOCSTOP = 0x2000746f
1418 TIOCSWINSZ = 0x80087467
1419 TIOCTIMESTAMP = 0x40087459
1420 TIOCUCNTL = 0x80047466
1421 TOSTOP = 0x400000
1422 VDISCARD = 0xf
1423 VDSUSP = 0xb
1424 VEOF = 0x0
1425 VEOL = 0x1
1426 VEOL2 = 0x2
1427 VERASE = 0x3
1428 VERASE2 = 0x7
1429 VINTR = 0x8
1430 VKILL = 0x5
1431 VLNEXT = 0xe
1432 VMIN = 0x10
1433 VQUIT = 0x9
1434 VREPRINT = 0x6
1435 VSTART = 0xc
1436 VSTATUS = 0x12
1437 VSTOP = 0xd
1438 VSUSP = 0xa
1439 VTIME = 0x11
1440 VWERASE = 0x4
1441 WCONTINUED = 0x4
1442 WCOREFLAG = 0x80
1443 WEXITED = 0x10
1444 WLINUXCLONE = 0x80000000
1445 WNOHANG = 0x1
1446 WNOWAIT = 0x8
1447 WSTOPPED = 0x2
1448 WTRAPPED = 0x20
1449 WUNTRACED = 0x2
1450)
1451
1452// Errors
1453const (
1454 E2BIG = syscall.Errno(0x7)
1455 EACCES = syscall.Errno(0xd)
1456 EADDRINUSE = syscall.Errno(0x30)
1457 EADDRNOTAVAIL = syscall.Errno(0x31)
1458 EAFNOSUPPORT = syscall.Errno(0x2f)
1459 EAGAIN = syscall.Errno(0x23)
1460 EALREADY = syscall.Errno(0x25)
1461 EAUTH = syscall.Errno(0x50)
1462 EBADF = syscall.Errno(0x9)
1463 EBADMSG = syscall.Errno(0x59)
1464 EBADRPC = syscall.Errno(0x48)
1465 EBUSY = syscall.Errno(0x10)
1466 ECANCELED = syscall.Errno(0x55)
1467 ECAPMODE = syscall.Errno(0x5e)
1468 ECHILD = syscall.Errno(0xa)
1469 ECONNABORTED = syscall.Errno(0x35)
1470 ECONNREFUSED = syscall.Errno(0x3d)
1471 ECONNRESET = syscall.Errno(0x36)
1472 EDEADLK = syscall.Errno(0xb)
1473 EDESTADDRREQ = syscall.Errno(0x27)
1474 EDOM = syscall.Errno(0x21)
1475 EDOOFUS = syscall.Errno(0x58)
1476 EDQUOT = syscall.Errno(0x45)
1477 EEXIST = syscall.Errno(0x11)
1478 EFAULT = syscall.Errno(0xe)
1479 EFBIG = syscall.Errno(0x1b)
1480 EFTYPE = syscall.Errno(0x4f)
1481 EHOSTDOWN = syscall.Errno(0x40)
1482 EHOSTUNREACH = syscall.Errno(0x41)
1483 EIDRM = syscall.Errno(0x52)
1484 EILSEQ = syscall.Errno(0x56)
1485 EINPROGRESS = syscall.Errno(0x24)
1486 EINTR = syscall.Errno(0x4)
1487 EINVAL = syscall.Errno(0x16)
1488 EIO = syscall.Errno(0x5)
1489 EISCONN = syscall.Errno(0x38)
1490 EISDIR = syscall.Errno(0x15)
1491 ELAST = syscall.Errno(0x60)
1492 ELOOP = syscall.Errno(0x3e)
1493 EMFILE = syscall.Errno(0x18)
1494 EMLINK = syscall.Errno(0x1f)
1495 EMSGSIZE = syscall.Errno(0x28)
1496 EMULTIHOP = syscall.Errno(0x5a)
1497 ENAMETOOLONG = syscall.Errno(0x3f)
1498 ENEEDAUTH = syscall.Errno(0x51)
1499 ENETDOWN = syscall.Errno(0x32)
1500 ENETRESET = syscall.Errno(0x34)
1501 ENETUNREACH = syscall.Errno(0x33)
1502 ENFILE = syscall.Errno(0x17)
1503 ENOATTR = syscall.Errno(0x57)
1504 ENOBUFS = syscall.Errno(0x37)
1505 ENODEV = syscall.Errno(0x13)
1506 ENOENT = syscall.Errno(0x2)
1507 ENOEXEC = syscall.Errno(0x8)
1508 ENOLCK = syscall.Errno(0x4d)
1509 ENOLINK = syscall.Errno(0x5b)
1510 ENOMEM = syscall.Errno(0xc)
1511 ENOMSG = syscall.Errno(0x53)
1512 ENOPROTOOPT = syscall.Errno(0x2a)
1513 ENOSPC = syscall.Errno(0x1c)
1514 ENOSYS = syscall.Errno(0x4e)
1515 ENOTBLK = syscall.Errno(0xf)
1516 ENOTCAPABLE = syscall.Errno(0x5d)
1517 ENOTCONN = syscall.Errno(0x39)
1518 ENOTDIR = syscall.Errno(0x14)
1519 ENOTEMPTY = syscall.Errno(0x42)
1520 ENOTRECOVERABLE = syscall.Errno(0x5f)
1521 ENOTSOCK = syscall.Errno(0x26)
1522 ENOTSUP = syscall.Errno(0x2d)
1523 ENOTTY = syscall.Errno(0x19)
1524 ENXIO = syscall.Errno(0x6)
1525 EOPNOTSUPP = syscall.Errno(0x2d)
1526 EOVERFLOW = syscall.Errno(0x54)
1527 EOWNERDEAD = syscall.Errno(0x60)
1528 EPERM = syscall.Errno(0x1)
1529 EPFNOSUPPORT = syscall.Errno(0x2e)
1530 EPIPE = syscall.Errno(0x20)
1531 EPROCLIM = syscall.Errno(0x43)
1532 EPROCUNAVAIL = syscall.Errno(0x4c)
1533 EPROGMISMATCH = syscall.Errno(0x4b)
1534 EPROGUNAVAIL = syscall.Errno(0x4a)
1535 EPROTO = syscall.Errno(0x5c)
1536 EPROTONOSUPPORT = syscall.Errno(0x2b)
1537 EPROTOTYPE = syscall.Errno(0x29)
1538 ERANGE = syscall.Errno(0x22)
1539 EREMOTE = syscall.Errno(0x47)
1540 EROFS = syscall.Errno(0x1e)
1541 ERPCMISMATCH = syscall.Errno(0x49)
1542 ESHUTDOWN = syscall.Errno(0x3a)
1543 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1544 ESPIPE = syscall.Errno(0x1d)
1545 ESRCH = syscall.Errno(0x3)
1546 ESTALE = syscall.Errno(0x46)
1547 ETIMEDOUT = syscall.Errno(0x3c)
1548 ETOOMANYREFS = syscall.Errno(0x3b)
1549 ETXTBSY = syscall.Errno(0x1a)
1550 EUSERS = syscall.Errno(0x44)
1551 EWOULDBLOCK = syscall.Errno(0x23)
1552 EXDEV = syscall.Errno(0x12)
1553)
1554
1555// Signals
1556const (
1557 SIGABRT = syscall.Signal(0x6)
1558 SIGALRM = syscall.Signal(0xe)
1559 SIGBUS = syscall.Signal(0xa)
1560 SIGCHLD = syscall.Signal(0x14)
1561 SIGCONT = syscall.Signal(0x13)
1562 SIGEMT = syscall.Signal(0x7)
1563 SIGFPE = syscall.Signal(0x8)
1564 SIGHUP = syscall.Signal(0x1)
1565 SIGILL = syscall.Signal(0x4)
1566 SIGINFO = syscall.Signal(0x1d)
1567 SIGINT = syscall.Signal(0x2)
1568 SIGIO = syscall.Signal(0x17)
1569 SIGIOT = syscall.Signal(0x6)
1570 SIGKILL = syscall.Signal(0x9)
1571 SIGLIBRT = syscall.Signal(0x21)
1572 SIGLWP = syscall.Signal(0x20)
1573 SIGPIPE = syscall.Signal(0xd)
1574 SIGPROF = syscall.Signal(0x1b)
1575 SIGQUIT = syscall.Signal(0x3)
1576 SIGSEGV = syscall.Signal(0xb)
1577 SIGSTOP = syscall.Signal(0x11)
1578 SIGSYS = syscall.Signal(0xc)
1579 SIGTERM = syscall.Signal(0xf)
1580 SIGTHR = syscall.Signal(0x20)
1581 SIGTRAP = syscall.Signal(0x5)
1582 SIGTSTP = syscall.Signal(0x12)
1583 SIGTTIN = syscall.Signal(0x15)
1584 SIGTTOU = syscall.Signal(0x16)
1585 SIGURG = syscall.Signal(0x10)
1586 SIGUSR1 = syscall.Signal(0x1e)
1587 SIGUSR2 = syscall.Signal(0x1f)
1588 SIGVTALRM = syscall.Signal(0x1a)
1589 SIGWINCH = syscall.Signal(0x1c)
1590 SIGXCPU = syscall.Signal(0x18)
1591 SIGXFSZ = syscall.Signal(0x19)
1592)
1593
1594// Error table
1595var errors = [...]string{
1596 1: "operation not permitted",
1597 2: "no such file or directory",
1598 3: "no such process",
1599 4: "interrupted system call",
1600 5: "input/output error",
1601 6: "device not configured",
1602 7: "argument list too long",
1603 8: "exec format error",
1604 9: "bad file descriptor",
1605 10: "no child processes",
1606 11: "resource deadlock avoided",
1607 12: "cannot allocate memory",
1608 13: "permission denied",
1609 14: "bad address",
1610 15: "block device required",
1611 16: "device busy",
1612 17: "file exists",
1613 18: "cross-device link",
1614 19: "operation not supported by device",
1615 20: "not a directory",
1616 21: "is a directory",
1617 22: "invalid argument",
1618 23: "too many open files in system",
1619 24: "too many open files",
1620 25: "inappropriate ioctl for device",
1621 26: "text file busy",
1622 27: "file too large",
1623 28: "no space left on device",
1624 29: "illegal seek",
1625 30: "read-only file system",
1626 31: "too many links",
1627 32: "broken pipe",
1628 33: "numerical argument out of domain",
1629 34: "result too large",
1630 35: "resource temporarily unavailable",
1631 36: "operation now in progress",
1632 37: "operation already in progress",
1633 38: "socket operation on non-socket",
1634 39: "destination address required",
1635 40: "message too long",
1636 41: "protocol wrong type for socket",
1637 42: "protocol not available",
1638 43: "protocol not supported",
1639 44: "socket type not supported",
1640 45: "operation not supported",
1641 46: "protocol family not supported",
1642 47: "address family not supported by protocol family",
1643 48: "address already in use",
1644 49: "can't assign requested address",
1645 50: "network is down",
1646 51: "network is unreachable",
1647 52: "network dropped connection on reset",
1648 53: "software caused connection abort",
1649 54: "connection reset by peer",
1650 55: "no buffer space available",
1651 56: "socket is already connected",
1652 57: "socket is not connected",
1653 58: "can't send after socket shutdown",
1654 59: "too many references: can't splice",
1655 60: "operation timed out",
1656 61: "connection refused",
1657 62: "too many levels of symbolic links",
1658 63: "file name too long",
1659 64: "host is down",
1660 65: "no route to host",
1661 66: "directory not empty",
1662 67: "too many processes",
1663 68: "too many users",
1664 69: "disc quota exceeded",
1665 70: "stale NFS file handle",
1666 71: "too many levels of remote in path",
1667 72: "RPC struct is bad",
1668 73: "RPC version wrong",
1669 74: "RPC prog. not avail",
1670 75: "program version wrong",
1671 76: "bad procedure for program",
1672 77: "no locks available",
1673 78: "function not implemented",
1674 79: "inappropriate file type or format",
1675 80: "authentication error",
1676 81: "need authenticator",
1677 82: "identifier removed",
1678 83: "no message of desired type",
1679 84: "value too large to be stored in data type",
1680 85: "operation canceled",
1681 86: "illegal byte sequence",
1682 87: "attribute not found",
1683 88: "programming error",
1684 89: "bad message",
1685 90: "multihop attempted",
1686 91: "link has been severed",
1687 92: "protocol error",
1688 93: "capabilities insufficient",
1689 94: "not permitted in capability mode",
1690 95: "state not recoverable",
1691 96: "previous owner died",
1692}
1693
1694// Signal table
1695var signals = [...]string{
1696 1: "hangup",
1697 2: "interrupt",
1698 3: "quit",
1699 4: "illegal instruction",
1700 5: "trace/BPT trap",
1701 6: "abort trap",
1702 7: "EMT trap",
1703 8: "floating point exception",
1704 9: "killed",
1705 10: "bus error",
1706 11: "segmentation fault",
1707 12: "bad system call",
1708 13: "broken pipe",
1709 14: "alarm clock",
1710 15: "terminated",
1711 16: "urgent I/O condition",
1712 17: "suspended (signal)",
1713 18: "suspended",
1714 19: "continued",
1715 20: "child exited",
1716 21: "stopped (tty input)",
1717 22: "stopped (tty output)",
1718 23: "I/O possible",
1719 24: "cputime limit exceeded",
1720 25: "filesize limit exceeded",
1721 26: "virtual timer expired",
1722 27: "profiling timer expired",
1723 28: "window size changes",
1724 29: "information request",
1725 30: "user defined signal 1",
1726 31: "user defined signal 2",
1727 32: "unknown signal",
1728 33: "unknown signal",
1729}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_386.go
deleted file mode 100644
index d370be0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_386.go
+++ /dev/null
@@ -1,1817 +0,0 @@
1// mkerrors.sh -m32
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,linux
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m32 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_ALG = 0x26
15 AF_APPLETALK = 0x5
16 AF_ASH = 0x12
17 AF_ATMPVC = 0x8
18 AF_ATMSVC = 0x14
19 AF_AX25 = 0x3
20 AF_BLUETOOTH = 0x1f
21 AF_BRIDGE = 0x7
22 AF_CAIF = 0x25
23 AF_CAN = 0x1d
24 AF_DECnet = 0xc
25 AF_ECONET = 0x13
26 AF_FILE = 0x1
27 AF_IEEE802154 = 0x24
28 AF_INET = 0x2
29 AF_INET6 = 0xa
30 AF_IPX = 0x4
31 AF_IRDA = 0x17
32 AF_ISDN = 0x22
33 AF_IUCV = 0x20
34 AF_KEY = 0xf
35 AF_LLC = 0x1a
36 AF_LOCAL = 0x1
37 AF_MAX = 0x28
38 AF_NETBEUI = 0xd
39 AF_NETLINK = 0x10
40 AF_NETROM = 0x6
41 AF_NFC = 0x27
42 AF_PACKET = 0x11
43 AF_PHONET = 0x23
44 AF_PPPOX = 0x18
45 AF_RDS = 0x15
46 AF_ROSE = 0xb
47 AF_ROUTE = 0x10
48 AF_RXRPC = 0x21
49 AF_SECURITY = 0xe
50 AF_SNA = 0x16
51 AF_TIPC = 0x1e
52 AF_UNIX = 0x1
53 AF_UNSPEC = 0x0
54 AF_WANPIPE = 0x19
55 AF_X25 = 0x9
56 ARPHRD_ADAPT = 0x108
57 ARPHRD_APPLETLK = 0x8
58 ARPHRD_ARCNET = 0x7
59 ARPHRD_ASH = 0x30d
60 ARPHRD_ATM = 0x13
61 ARPHRD_AX25 = 0x3
62 ARPHRD_BIF = 0x307
63 ARPHRD_CAIF = 0x336
64 ARPHRD_CAN = 0x118
65 ARPHRD_CHAOS = 0x5
66 ARPHRD_CISCO = 0x201
67 ARPHRD_CSLIP = 0x101
68 ARPHRD_CSLIP6 = 0x103
69 ARPHRD_DDCMP = 0x205
70 ARPHRD_DLCI = 0xf
71 ARPHRD_ECONET = 0x30e
72 ARPHRD_EETHER = 0x2
73 ARPHRD_ETHER = 0x1
74 ARPHRD_EUI64 = 0x1b
75 ARPHRD_FCAL = 0x311
76 ARPHRD_FCFABRIC = 0x313
77 ARPHRD_FCPL = 0x312
78 ARPHRD_FCPP = 0x310
79 ARPHRD_FDDI = 0x306
80 ARPHRD_FRAD = 0x302
81 ARPHRD_HDLC = 0x201
82 ARPHRD_HIPPI = 0x30c
83 ARPHRD_HWX25 = 0x110
84 ARPHRD_IEEE1394 = 0x18
85 ARPHRD_IEEE802 = 0x6
86 ARPHRD_IEEE80211 = 0x321
87 ARPHRD_IEEE80211_PRISM = 0x322
88 ARPHRD_IEEE80211_RADIOTAP = 0x323
89 ARPHRD_IEEE802154 = 0x324
90 ARPHRD_IEEE802_TR = 0x320
91 ARPHRD_INFINIBAND = 0x20
92 ARPHRD_IPDDP = 0x309
93 ARPHRD_IPGRE = 0x30a
94 ARPHRD_IRDA = 0x30f
95 ARPHRD_LAPB = 0x204
96 ARPHRD_LOCALTLK = 0x305
97 ARPHRD_LOOPBACK = 0x304
98 ARPHRD_METRICOM = 0x17
99 ARPHRD_NETROM = 0x0
100 ARPHRD_NONE = 0xfffe
101 ARPHRD_PHONET = 0x334
102 ARPHRD_PHONET_PIPE = 0x335
103 ARPHRD_PIMREG = 0x30b
104 ARPHRD_PPP = 0x200
105 ARPHRD_PRONET = 0x4
106 ARPHRD_RAWHDLC = 0x206
107 ARPHRD_ROSE = 0x10e
108 ARPHRD_RSRVD = 0x104
109 ARPHRD_SIT = 0x308
110 ARPHRD_SKIP = 0x303
111 ARPHRD_SLIP = 0x100
112 ARPHRD_SLIP6 = 0x102
113 ARPHRD_TUNNEL = 0x300
114 ARPHRD_TUNNEL6 = 0x301
115 ARPHRD_VOID = 0xffff
116 ARPHRD_X25 = 0x10f
117 B0 = 0x0
118 B1000000 = 0x1008
119 B110 = 0x3
120 B115200 = 0x1002
121 B1152000 = 0x1009
122 B1200 = 0x9
123 B134 = 0x4
124 B150 = 0x5
125 B1500000 = 0x100a
126 B1800 = 0xa
127 B19200 = 0xe
128 B200 = 0x6
129 B2000000 = 0x100b
130 B230400 = 0x1003
131 B2400 = 0xb
132 B2500000 = 0x100c
133 B300 = 0x7
134 B3000000 = 0x100d
135 B3500000 = 0x100e
136 B38400 = 0xf
137 B4000000 = 0x100f
138 B460800 = 0x1004
139 B4800 = 0xc
140 B50 = 0x1
141 B500000 = 0x1005
142 B57600 = 0x1001
143 B576000 = 0x1006
144 B600 = 0x8
145 B75 = 0x2
146 B921600 = 0x1007
147 B9600 = 0xd
148 BOTHER = 0x1000
149 BPF_A = 0x10
150 BPF_ABS = 0x20
151 BPF_ADD = 0x0
152 BPF_ALU = 0x4
153 BPF_AND = 0x50
154 BPF_B = 0x10
155 BPF_DIV = 0x30
156 BPF_H = 0x8
157 BPF_IMM = 0x0
158 BPF_IND = 0x40
159 BPF_JA = 0x0
160 BPF_JEQ = 0x10
161 BPF_JGE = 0x30
162 BPF_JGT = 0x20
163 BPF_JMP = 0x5
164 BPF_JSET = 0x40
165 BPF_K = 0x0
166 BPF_LD = 0x0
167 BPF_LDX = 0x1
168 BPF_LEN = 0x80
169 BPF_LSH = 0x60
170 BPF_MAJOR_VERSION = 0x1
171 BPF_MAXINSNS = 0x1000
172 BPF_MEM = 0x60
173 BPF_MEMWORDS = 0x10
174 BPF_MINOR_VERSION = 0x1
175 BPF_MISC = 0x7
176 BPF_MSH = 0xa0
177 BPF_MUL = 0x20
178 BPF_NEG = 0x80
179 BPF_OR = 0x40
180 BPF_RET = 0x6
181 BPF_RSH = 0x70
182 BPF_ST = 0x2
183 BPF_STX = 0x3
184 BPF_SUB = 0x10
185 BPF_TAX = 0x0
186 BPF_TXA = 0x80
187 BPF_W = 0x0
188 BPF_X = 0x8
189 BRKINT = 0x2
190 BS0 = 0x0
191 BS1 = 0x2000
192 BSDLY = 0x2000
193 CBAUD = 0x100f
194 CBAUDEX = 0x1000
195 CFLUSH = 0xf
196 CIBAUD = 0x100f0000
197 CLOCAL = 0x800
198 CLOCK_BOOTTIME = 0x7
199 CLOCK_BOOTTIME_ALARM = 0x9
200 CLOCK_DEFAULT = 0x0
201 CLOCK_EXT = 0x1
202 CLOCK_INT = 0x2
203 CLOCK_MONOTONIC = 0x1
204 CLOCK_MONOTONIC_COARSE = 0x6
205 CLOCK_MONOTONIC_RAW = 0x4
206 CLOCK_PROCESS_CPUTIME_ID = 0x2
207 CLOCK_REALTIME = 0x0
208 CLOCK_REALTIME_ALARM = 0x8
209 CLOCK_REALTIME_COARSE = 0x5
210 CLOCK_THREAD_CPUTIME_ID = 0x3
211 CLOCK_TXFROMRX = 0x4
212 CLOCK_TXINT = 0x3
213 CLONE_CHILD_CLEARTID = 0x200000
214 CLONE_CHILD_SETTID = 0x1000000
215 CLONE_DETACHED = 0x400000
216 CLONE_FILES = 0x400
217 CLONE_FS = 0x200
218 CLONE_IO = 0x80000000
219 CLONE_NEWIPC = 0x8000000
220 CLONE_NEWNET = 0x40000000
221 CLONE_NEWNS = 0x20000
222 CLONE_NEWPID = 0x20000000
223 CLONE_NEWUSER = 0x10000000
224 CLONE_NEWUTS = 0x4000000
225 CLONE_PARENT = 0x8000
226 CLONE_PARENT_SETTID = 0x100000
227 CLONE_PTRACE = 0x2000
228 CLONE_SETTLS = 0x80000
229 CLONE_SIGHAND = 0x800
230 CLONE_SYSVSEM = 0x40000
231 CLONE_THREAD = 0x10000
232 CLONE_UNTRACED = 0x800000
233 CLONE_VFORK = 0x4000
234 CLONE_VM = 0x100
235 CMSPAR = 0x40000000
236 CR0 = 0x0
237 CR1 = 0x200
238 CR2 = 0x400
239 CR3 = 0x600
240 CRDLY = 0x600
241 CREAD = 0x80
242 CRTSCTS = 0x80000000
243 CS5 = 0x0
244 CS6 = 0x10
245 CS7 = 0x20
246 CS8 = 0x30
247 CSIGNAL = 0xff
248 CSIZE = 0x30
249 CSTART = 0x11
250 CSTATUS = 0x0
251 CSTOP = 0x13
252 CSTOPB = 0x40
253 CSUSP = 0x1a
254 DT_BLK = 0x6
255 DT_CHR = 0x2
256 DT_DIR = 0x4
257 DT_FIFO = 0x1
258 DT_LNK = 0xa
259 DT_REG = 0x8
260 DT_SOCK = 0xc
261 DT_UNKNOWN = 0x0
262 DT_WHT = 0xe
263 ECHO = 0x8
264 ECHOCTL = 0x200
265 ECHOE = 0x10
266 ECHOK = 0x20
267 ECHOKE = 0x800
268 ECHONL = 0x40
269 ECHOPRT = 0x400
270 ENCODING_DEFAULT = 0x0
271 ENCODING_FM_MARK = 0x3
272 ENCODING_FM_SPACE = 0x4
273 ENCODING_MANCHESTER = 0x5
274 ENCODING_NRZ = 0x1
275 ENCODING_NRZI = 0x2
276 EPOLLERR = 0x8
277 EPOLLET = 0x80000000
278 EPOLLHUP = 0x10
279 EPOLLIN = 0x1
280 EPOLLMSG = 0x400
281 EPOLLONESHOT = 0x40000000
282 EPOLLOUT = 0x4
283 EPOLLPRI = 0x2
284 EPOLLRDBAND = 0x80
285 EPOLLRDHUP = 0x2000
286 EPOLLRDNORM = 0x40
287 EPOLLWRBAND = 0x200
288 EPOLLWRNORM = 0x100
289 EPOLL_CLOEXEC = 0x80000
290 EPOLL_CTL_ADD = 0x1
291 EPOLL_CTL_DEL = 0x2
292 EPOLL_CTL_MOD = 0x3
293 EPOLL_NONBLOCK = 0x800
294 ETH_P_1588 = 0x88f7
295 ETH_P_8021AD = 0x88a8
296 ETH_P_8021AH = 0x88e7
297 ETH_P_8021Q = 0x8100
298 ETH_P_802_2 = 0x4
299 ETH_P_802_3 = 0x1
300 ETH_P_AARP = 0x80f3
301 ETH_P_AF_IUCV = 0xfbfb
302 ETH_P_ALL = 0x3
303 ETH_P_AOE = 0x88a2
304 ETH_P_ARCNET = 0x1a
305 ETH_P_ARP = 0x806
306 ETH_P_ATALK = 0x809b
307 ETH_P_ATMFATE = 0x8884
308 ETH_P_ATMMPOA = 0x884c
309 ETH_P_AX25 = 0x2
310 ETH_P_BPQ = 0x8ff
311 ETH_P_CAIF = 0xf7
312 ETH_P_CAN = 0xc
313 ETH_P_CONTROL = 0x16
314 ETH_P_CUST = 0x6006
315 ETH_P_DDCMP = 0x6
316 ETH_P_DEC = 0x6000
317 ETH_P_DIAG = 0x6005
318 ETH_P_DNA_DL = 0x6001
319 ETH_P_DNA_RC = 0x6002
320 ETH_P_DNA_RT = 0x6003
321 ETH_P_DSA = 0x1b
322 ETH_P_ECONET = 0x18
323 ETH_P_EDSA = 0xdada
324 ETH_P_FCOE = 0x8906
325 ETH_P_FIP = 0x8914
326 ETH_P_HDLC = 0x19
327 ETH_P_IEEE802154 = 0xf6
328 ETH_P_IEEEPUP = 0xa00
329 ETH_P_IEEEPUPAT = 0xa01
330 ETH_P_IP = 0x800
331 ETH_P_IPV6 = 0x86dd
332 ETH_P_IPX = 0x8137
333 ETH_P_IRDA = 0x17
334 ETH_P_LAT = 0x6004
335 ETH_P_LINK_CTL = 0x886c
336 ETH_P_LOCALTALK = 0x9
337 ETH_P_LOOP = 0x60
338 ETH_P_MOBITEX = 0x15
339 ETH_P_MPLS_MC = 0x8848
340 ETH_P_MPLS_UC = 0x8847
341 ETH_P_PAE = 0x888e
342 ETH_P_PAUSE = 0x8808
343 ETH_P_PHONET = 0xf5
344 ETH_P_PPPTALK = 0x10
345 ETH_P_PPP_DISC = 0x8863
346 ETH_P_PPP_MP = 0x8
347 ETH_P_PPP_SES = 0x8864
348 ETH_P_PUP = 0x200
349 ETH_P_PUPAT = 0x201
350 ETH_P_QINQ1 = 0x9100
351 ETH_P_QINQ2 = 0x9200
352 ETH_P_QINQ3 = 0x9300
353 ETH_P_RARP = 0x8035
354 ETH_P_SCA = 0x6007
355 ETH_P_SLOW = 0x8809
356 ETH_P_SNAP = 0x5
357 ETH_P_TDLS = 0x890d
358 ETH_P_TEB = 0x6558
359 ETH_P_TIPC = 0x88ca
360 ETH_P_TRAILER = 0x1c
361 ETH_P_TR_802_2 = 0x11
362 ETH_P_WAN_PPP = 0x7
363 ETH_P_WCCP = 0x883e
364 ETH_P_X25 = 0x805
365 EXTA = 0xe
366 EXTB = 0xf
367 EXTPROC = 0x10000
368 FD_CLOEXEC = 0x1
369 FD_SETSIZE = 0x400
370 FF0 = 0x0
371 FF1 = 0x8000
372 FFDLY = 0x8000
373 FLUSHO = 0x1000
374 F_DUPFD = 0x0
375 F_DUPFD_CLOEXEC = 0x406
376 F_EXLCK = 0x4
377 F_GETFD = 0x1
378 F_GETFL = 0x3
379 F_GETLEASE = 0x401
380 F_GETLK = 0xc
381 F_GETLK64 = 0xc
382 F_GETOWN = 0x9
383 F_GETOWN_EX = 0x10
384 F_GETPIPE_SZ = 0x408
385 F_GETSIG = 0xb
386 F_LOCK = 0x1
387 F_NOTIFY = 0x402
388 F_OK = 0x0
389 F_RDLCK = 0x0
390 F_SETFD = 0x2
391 F_SETFL = 0x4
392 F_SETLEASE = 0x400
393 F_SETLK = 0xd
394 F_SETLK64 = 0xd
395 F_SETLKW = 0xe
396 F_SETLKW64 = 0xe
397 F_SETOWN = 0x8
398 F_SETOWN_EX = 0xf
399 F_SETPIPE_SZ = 0x407
400 F_SETSIG = 0xa
401 F_SHLCK = 0x8
402 F_TEST = 0x3
403 F_TLOCK = 0x2
404 F_ULOCK = 0x0
405 F_UNLCK = 0x2
406 F_WRLCK = 0x1
407 HUPCL = 0x400
408 IBSHIFT = 0x10
409 ICANON = 0x2
410 ICMPV6_FILTER = 0x1
411 ICRNL = 0x100
412 IEXTEN = 0x8000
413 IFA_F_DADFAILED = 0x8
414 IFA_F_DEPRECATED = 0x20
415 IFA_F_HOMEADDRESS = 0x10
416 IFA_F_NODAD = 0x2
417 IFA_F_OPTIMISTIC = 0x4
418 IFA_F_PERMANENT = 0x80
419 IFA_F_SECONDARY = 0x1
420 IFA_F_TEMPORARY = 0x1
421 IFA_F_TENTATIVE = 0x40
422 IFA_MAX = 0x7
423 IFF_802_1Q_VLAN = 0x1
424 IFF_ALLMULTI = 0x200
425 IFF_AUTOMEDIA = 0x4000
426 IFF_BONDING = 0x20
427 IFF_BRIDGE_PORT = 0x4000
428 IFF_BROADCAST = 0x2
429 IFF_DEBUG = 0x4
430 IFF_DISABLE_NETPOLL = 0x1000
431 IFF_DONT_BRIDGE = 0x800
432 IFF_DORMANT = 0x20000
433 IFF_DYNAMIC = 0x8000
434 IFF_EBRIDGE = 0x2
435 IFF_ECHO = 0x40000
436 IFF_ISATAP = 0x80
437 IFF_LOOPBACK = 0x8
438 IFF_LOWER_UP = 0x10000
439 IFF_MACVLAN_PORT = 0x2000
440 IFF_MASTER = 0x400
441 IFF_MASTER_8023AD = 0x8
442 IFF_MASTER_ALB = 0x10
443 IFF_MASTER_ARPMON = 0x100
444 IFF_MULTICAST = 0x1000
445 IFF_NOARP = 0x80
446 IFF_NOTRAILERS = 0x20
447 IFF_NO_PI = 0x1000
448 IFF_ONE_QUEUE = 0x2000
449 IFF_OVS_DATAPATH = 0x8000
450 IFF_POINTOPOINT = 0x10
451 IFF_PORTSEL = 0x2000
452 IFF_PROMISC = 0x100
453 IFF_RUNNING = 0x40
454 IFF_SLAVE = 0x800
455 IFF_SLAVE_INACTIVE = 0x4
456 IFF_SLAVE_NEEDARP = 0x40
457 IFF_TAP = 0x2
458 IFF_TUN = 0x1
459 IFF_TUN_EXCL = 0x8000
460 IFF_TX_SKB_SHARING = 0x10000
461 IFF_UNICAST_FLT = 0x20000
462 IFF_UP = 0x1
463 IFF_VNET_HDR = 0x4000
464 IFF_VOLATILE = 0x70c5a
465 IFF_WAN_HDLC = 0x200
466 IFF_XMIT_DST_RELEASE = 0x400
467 IFNAMSIZ = 0x10
468 IGNBRK = 0x1
469 IGNCR = 0x80
470 IGNPAR = 0x4
471 IMAXBEL = 0x2000
472 INLCR = 0x40
473 INPCK = 0x10
474 IN_ACCESS = 0x1
475 IN_ALL_EVENTS = 0xfff
476 IN_ATTRIB = 0x4
477 IN_CLASSA_HOST = 0xffffff
478 IN_CLASSA_MAX = 0x80
479 IN_CLASSA_NET = 0xff000000
480 IN_CLASSA_NSHIFT = 0x18
481 IN_CLASSB_HOST = 0xffff
482 IN_CLASSB_MAX = 0x10000
483 IN_CLASSB_NET = 0xffff0000
484 IN_CLASSB_NSHIFT = 0x10
485 IN_CLASSC_HOST = 0xff
486 IN_CLASSC_NET = 0xffffff00
487 IN_CLASSC_NSHIFT = 0x8
488 IN_CLOEXEC = 0x80000
489 IN_CLOSE = 0x18
490 IN_CLOSE_NOWRITE = 0x10
491 IN_CLOSE_WRITE = 0x8
492 IN_CREATE = 0x100
493 IN_DELETE = 0x200
494 IN_DELETE_SELF = 0x400
495 IN_DONT_FOLLOW = 0x2000000
496 IN_EXCL_UNLINK = 0x4000000
497 IN_IGNORED = 0x8000
498 IN_ISDIR = 0x40000000
499 IN_LOOPBACKNET = 0x7f
500 IN_MASK_ADD = 0x20000000
501 IN_MODIFY = 0x2
502 IN_MOVE = 0xc0
503 IN_MOVED_FROM = 0x40
504 IN_MOVED_TO = 0x80
505 IN_MOVE_SELF = 0x800
506 IN_NONBLOCK = 0x800
507 IN_ONESHOT = 0x80000000
508 IN_ONLYDIR = 0x1000000
509 IN_OPEN = 0x20
510 IN_Q_OVERFLOW = 0x4000
511 IN_UNMOUNT = 0x2000
512 IPPROTO_AH = 0x33
513 IPPROTO_COMP = 0x6c
514 IPPROTO_DCCP = 0x21
515 IPPROTO_DSTOPTS = 0x3c
516 IPPROTO_EGP = 0x8
517 IPPROTO_ENCAP = 0x62
518 IPPROTO_ESP = 0x32
519 IPPROTO_FRAGMENT = 0x2c
520 IPPROTO_GRE = 0x2f
521 IPPROTO_HOPOPTS = 0x0
522 IPPROTO_ICMP = 0x1
523 IPPROTO_ICMPV6 = 0x3a
524 IPPROTO_IDP = 0x16
525 IPPROTO_IGMP = 0x2
526 IPPROTO_IP = 0x0
527 IPPROTO_IPIP = 0x4
528 IPPROTO_IPV6 = 0x29
529 IPPROTO_MTP = 0x5c
530 IPPROTO_NONE = 0x3b
531 IPPROTO_PIM = 0x67
532 IPPROTO_PUP = 0xc
533 IPPROTO_RAW = 0xff
534 IPPROTO_ROUTING = 0x2b
535 IPPROTO_RSVP = 0x2e
536 IPPROTO_SCTP = 0x84
537 IPPROTO_TCP = 0x6
538 IPPROTO_TP = 0x1d
539 IPPROTO_UDP = 0x11
540 IPPROTO_UDPLITE = 0x88
541 IPV6_2292DSTOPTS = 0x4
542 IPV6_2292HOPLIMIT = 0x8
543 IPV6_2292HOPOPTS = 0x3
544 IPV6_2292PKTINFO = 0x2
545 IPV6_2292PKTOPTIONS = 0x6
546 IPV6_2292RTHDR = 0x5
547 IPV6_ADDRFORM = 0x1
548 IPV6_ADD_MEMBERSHIP = 0x14
549 IPV6_AUTHHDR = 0xa
550 IPV6_CHECKSUM = 0x7
551 IPV6_DROP_MEMBERSHIP = 0x15
552 IPV6_DSTOPTS = 0x3b
553 IPV6_HOPLIMIT = 0x34
554 IPV6_HOPOPTS = 0x36
555 IPV6_IPSEC_POLICY = 0x22
556 IPV6_JOIN_ANYCAST = 0x1b
557 IPV6_JOIN_GROUP = 0x14
558 IPV6_LEAVE_ANYCAST = 0x1c
559 IPV6_LEAVE_GROUP = 0x15
560 IPV6_MTU = 0x18
561 IPV6_MTU_DISCOVER = 0x17
562 IPV6_MULTICAST_HOPS = 0x12
563 IPV6_MULTICAST_IF = 0x11
564 IPV6_MULTICAST_LOOP = 0x13
565 IPV6_NEXTHOP = 0x9
566 IPV6_PKTINFO = 0x32
567 IPV6_PMTUDISC_DO = 0x2
568 IPV6_PMTUDISC_DONT = 0x0
569 IPV6_PMTUDISC_PROBE = 0x3
570 IPV6_PMTUDISC_WANT = 0x1
571 IPV6_RECVDSTOPTS = 0x3a
572 IPV6_RECVERR = 0x19
573 IPV6_RECVHOPLIMIT = 0x33
574 IPV6_RECVHOPOPTS = 0x35
575 IPV6_RECVPKTINFO = 0x31
576 IPV6_RECVRTHDR = 0x38
577 IPV6_RECVTCLASS = 0x42
578 IPV6_ROUTER_ALERT = 0x16
579 IPV6_RTHDR = 0x39
580 IPV6_RTHDRDSTOPTS = 0x37
581 IPV6_RTHDR_LOOSE = 0x0
582 IPV6_RTHDR_STRICT = 0x1
583 IPV6_RTHDR_TYPE_0 = 0x0
584 IPV6_RXDSTOPTS = 0x3b
585 IPV6_RXHOPOPTS = 0x36
586 IPV6_TCLASS = 0x43
587 IPV6_UNICAST_HOPS = 0x10
588 IPV6_V6ONLY = 0x1a
589 IPV6_XFRM_POLICY = 0x23
590 IP_ADD_MEMBERSHIP = 0x23
591 IP_ADD_SOURCE_MEMBERSHIP = 0x27
592 IP_BLOCK_SOURCE = 0x26
593 IP_DEFAULT_MULTICAST_LOOP = 0x1
594 IP_DEFAULT_MULTICAST_TTL = 0x1
595 IP_DF = 0x4000
596 IP_DROP_MEMBERSHIP = 0x24
597 IP_DROP_SOURCE_MEMBERSHIP = 0x28
598 IP_FREEBIND = 0xf
599 IP_HDRINCL = 0x3
600 IP_IPSEC_POLICY = 0x10
601 IP_MAXPACKET = 0xffff
602 IP_MAX_MEMBERSHIPS = 0x14
603 IP_MF = 0x2000
604 IP_MINTTL = 0x15
605 IP_MSFILTER = 0x29
606 IP_MSS = 0x240
607 IP_MTU = 0xe
608 IP_MTU_DISCOVER = 0xa
609 IP_MULTICAST_ALL = 0x31
610 IP_MULTICAST_IF = 0x20
611 IP_MULTICAST_LOOP = 0x22
612 IP_MULTICAST_TTL = 0x21
613 IP_OFFMASK = 0x1fff
614 IP_OPTIONS = 0x4
615 IP_ORIGDSTADDR = 0x14
616 IP_PASSSEC = 0x12
617 IP_PKTINFO = 0x8
618 IP_PKTOPTIONS = 0x9
619 IP_PMTUDISC = 0xa
620 IP_PMTUDISC_DO = 0x2
621 IP_PMTUDISC_DONT = 0x0
622 IP_PMTUDISC_PROBE = 0x3
623 IP_PMTUDISC_WANT = 0x1
624 IP_RECVERR = 0xb
625 IP_RECVOPTS = 0x6
626 IP_RECVORIGDSTADDR = 0x14
627 IP_RECVRETOPTS = 0x7
628 IP_RECVTOS = 0xd
629 IP_RECVTTL = 0xc
630 IP_RETOPTS = 0x7
631 IP_RF = 0x8000
632 IP_ROUTER_ALERT = 0x5
633 IP_TOS = 0x1
634 IP_TRANSPARENT = 0x13
635 IP_TTL = 0x2
636 IP_UNBLOCK_SOURCE = 0x25
637 IP_XFRM_POLICY = 0x11
638 ISIG = 0x1
639 ISTRIP = 0x20
640 IUCLC = 0x200
641 IUTF8 = 0x4000
642 IXANY = 0x800
643 IXOFF = 0x1000
644 IXON = 0x400
645 LINUX_REBOOT_CMD_CAD_OFF = 0x0
646 LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
647 LINUX_REBOOT_CMD_HALT = 0xcdef0123
648 LINUX_REBOOT_CMD_KEXEC = 0x45584543
649 LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc
650 LINUX_REBOOT_CMD_RESTART = 0x1234567
651 LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4
652 LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
653 LINUX_REBOOT_MAGIC1 = 0xfee1dead
654 LINUX_REBOOT_MAGIC2 = 0x28121969
655 LOCK_EX = 0x2
656 LOCK_NB = 0x4
657 LOCK_SH = 0x1
658 LOCK_UN = 0x8
659 MADV_DOFORK = 0xb
660 MADV_DONTFORK = 0xa
661 MADV_DONTNEED = 0x4
662 MADV_HUGEPAGE = 0xe
663 MADV_HWPOISON = 0x64
664 MADV_MERGEABLE = 0xc
665 MADV_NOHUGEPAGE = 0xf
666 MADV_NORMAL = 0x0
667 MADV_RANDOM = 0x1
668 MADV_REMOVE = 0x9
669 MADV_SEQUENTIAL = 0x2
670 MADV_UNMERGEABLE = 0xd
671 MADV_WILLNEED = 0x3
672 MAP_32BIT = 0x40
673 MAP_ANON = 0x20
674 MAP_ANONYMOUS = 0x20
675 MAP_DENYWRITE = 0x800
676 MAP_EXECUTABLE = 0x1000
677 MAP_FILE = 0x0
678 MAP_FIXED = 0x10
679 MAP_GROWSDOWN = 0x100
680 MAP_HUGETLB = 0x40000
681 MAP_LOCKED = 0x2000
682 MAP_NONBLOCK = 0x10000
683 MAP_NORESERVE = 0x4000
684 MAP_POPULATE = 0x8000
685 MAP_PRIVATE = 0x2
686 MAP_SHARED = 0x1
687 MAP_STACK = 0x20000
688 MAP_TYPE = 0xf
689 MCL_CURRENT = 0x1
690 MCL_FUTURE = 0x2
691 MNT_DETACH = 0x2
692 MNT_EXPIRE = 0x4
693 MNT_FORCE = 0x1
694 MSG_CMSG_CLOEXEC = 0x40000000
695 MSG_CONFIRM = 0x800
696 MSG_CTRUNC = 0x8
697 MSG_DONTROUTE = 0x4
698 MSG_DONTWAIT = 0x40
699 MSG_EOR = 0x80
700 MSG_ERRQUEUE = 0x2000
701 MSG_FASTOPEN = 0x20000000
702 MSG_FIN = 0x200
703 MSG_MORE = 0x8000
704 MSG_NOSIGNAL = 0x4000
705 MSG_OOB = 0x1
706 MSG_PEEK = 0x2
707 MSG_PROXY = 0x10
708 MSG_RST = 0x1000
709 MSG_SYN = 0x400
710 MSG_TRUNC = 0x20
711 MSG_TRYHARD = 0x4
712 MSG_WAITALL = 0x100
713 MSG_WAITFORONE = 0x10000
714 MS_ACTIVE = 0x40000000
715 MS_ASYNC = 0x1
716 MS_BIND = 0x1000
717 MS_DIRSYNC = 0x80
718 MS_INVALIDATE = 0x2
719 MS_I_VERSION = 0x800000
720 MS_KERNMOUNT = 0x400000
721 MS_MANDLOCK = 0x40
722 MS_MGC_MSK = 0xffff0000
723 MS_MGC_VAL = 0xc0ed0000
724 MS_MOVE = 0x2000
725 MS_NOATIME = 0x400
726 MS_NODEV = 0x4
727 MS_NODIRATIME = 0x800
728 MS_NOEXEC = 0x8
729 MS_NOSUID = 0x2
730 MS_NOUSER = -0x80000000
731 MS_POSIXACL = 0x10000
732 MS_PRIVATE = 0x40000
733 MS_RDONLY = 0x1
734 MS_REC = 0x4000
735 MS_RELATIME = 0x200000
736 MS_REMOUNT = 0x20
737 MS_RMT_MASK = 0x800051
738 MS_SHARED = 0x100000
739 MS_SILENT = 0x8000
740 MS_SLAVE = 0x80000
741 MS_STRICTATIME = 0x1000000
742 MS_SYNC = 0x4
743 MS_SYNCHRONOUS = 0x10
744 MS_UNBINDABLE = 0x20000
745 NAME_MAX = 0xff
746 NETLINK_ADD_MEMBERSHIP = 0x1
747 NETLINK_AUDIT = 0x9
748 NETLINK_BROADCAST_ERROR = 0x4
749 NETLINK_CONNECTOR = 0xb
750 NETLINK_CRYPTO = 0x15
751 NETLINK_DNRTMSG = 0xe
752 NETLINK_DROP_MEMBERSHIP = 0x2
753 NETLINK_ECRYPTFS = 0x13
754 NETLINK_FIB_LOOKUP = 0xa
755 NETLINK_FIREWALL = 0x3
756 NETLINK_GENERIC = 0x10
757 NETLINK_INET_DIAG = 0x4
758 NETLINK_IP6_FW = 0xd
759 NETLINK_ISCSI = 0x8
760 NETLINK_KOBJECT_UEVENT = 0xf
761 NETLINK_NETFILTER = 0xc
762 NETLINK_NFLOG = 0x5
763 NETLINK_NO_ENOBUFS = 0x5
764 NETLINK_PKTINFO = 0x3
765 NETLINK_RDMA = 0x14
766 NETLINK_ROUTE = 0x0
767 NETLINK_SCSITRANSPORT = 0x12
768 NETLINK_SELINUX = 0x7
769 NETLINK_UNUSED = 0x1
770 NETLINK_USERSOCK = 0x2
771 NETLINK_XFRM = 0x6
772 NL0 = 0x0
773 NL1 = 0x100
774 NLA_ALIGNTO = 0x4
775 NLA_F_NESTED = 0x8000
776 NLA_F_NET_BYTEORDER = 0x4000
777 NLA_HDRLEN = 0x4
778 NLDLY = 0x100
779 NLMSG_ALIGNTO = 0x4
780 NLMSG_DONE = 0x3
781 NLMSG_ERROR = 0x2
782 NLMSG_HDRLEN = 0x10
783 NLMSG_MIN_TYPE = 0x10
784 NLMSG_NOOP = 0x1
785 NLMSG_OVERRUN = 0x4
786 NLM_F_ACK = 0x4
787 NLM_F_APPEND = 0x800
788 NLM_F_ATOMIC = 0x400
789 NLM_F_CREATE = 0x400
790 NLM_F_DUMP = 0x300
791 NLM_F_DUMP_INTR = 0x10
792 NLM_F_ECHO = 0x8
793 NLM_F_EXCL = 0x200
794 NLM_F_MATCH = 0x200
795 NLM_F_MULTI = 0x2
796 NLM_F_REPLACE = 0x100
797 NLM_F_REQUEST = 0x1
798 NLM_F_ROOT = 0x100
799 NOFLSH = 0x80
800 OCRNL = 0x8
801 OFDEL = 0x80
802 OFILL = 0x40
803 OLCUC = 0x2
804 ONLCR = 0x4
805 ONLRET = 0x20
806 ONOCR = 0x10
807 OPOST = 0x1
808 O_ACCMODE = 0x3
809 O_APPEND = 0x400
810 O_ASYNC = 0x2000
811 O_CLOEXEC = 0x80000
812 O_CREAT = 0x40
813 O_DIRECT = 0x4000
814 O_DIRECTORY = 0x10000
815 O_DSYNC = 0x1000
816 O_EXCL = 0x80
817 O_FSYNC = 0x101000
818 O_LARGEFILE = 0x8000
819 O_NDELAY = 0x800
820 O_NOATIME = 0x40000
821 O_NOCTTY = 0x100
822 O_NOFOLLOW = 0x20000
823 O_NONBLOCK = 0x800
824 O_PATH = 0x200000
825 O_RDONLY = 0x0
826 O_RDWR = 0x2
827 O_RSYNC = 0x101000
828 O_SYNC = 0x101000
829 O_TRUNC = 0x200
830 O_WRONLY = 0x1
831 PACKET_ADD_MEMBERSHIP = 0x1
832 PACKET_AUXDATA = 0x8
833 PACKET_BROADCAST = 0x1
834 PACKET_COPY_THRESH = 0x7
835 PACKET_DROP_MEMBERSHIP = 0x2
836 PACKET_FANOUT = 0x12
837 PACKET_FANOUT_CPU = 0x2
838 PACKET_FANOUT_FLAG_DEFRAG = 0x8000
839 PACKET_FANOUT_HASH = 0x0
840 PACKET_FANOUT_LB = 0x1
841 PACKET_FASTROUTE = 0x6
842 PACKET_HDRLEN = 0xb
843 PACKET_HOST = 0x0
844 PACKET_LOOPBACK = 0x5
845 PACKET_LOSS = 0xe
846 PACKET_MR_ALLMULTI = 0x2
847 PACKET_MR_MULTICAST = 0x0
848 PACKET_MR_PROMISC = 0x1
849 PACKET_MR_UNICAST = 0x3
850 PACKET_MULTICAST = 0x2
851 PACKET_ORIGDEV = 0x9
852 PACKET_OTHERHOST = 0x3
853 PACKET_OUTGOING = 0x4
854 PACKET_RECV_OUTPUT = 0x3
855 PACKET_RESERVE = 0xc
856 PACKET_RX_RING = 0x5
857 PACKET_STATISTICS = 0x6
858 PACKET_TIMESTAMP = 0x11
859 PACKET_TX_RING = 0xd
860 PACKET_TX_TIMESTAMP = 0x10
861 PACKET_VERSION = 0xa
862 PACKET_VNET_HDR = 0xf
863 PARENB = 0x100
864 PARITY_CRC16_PR0 = 0x2
865 PARITY_CRC16_PR0_CCITT = 0x4
866 PARITY_CRC16_PR1 = 0x3
867 PARITY_CRC16_PR1_CCITT = 0x5
868 PARITY_CRC32_PR0_CCITT = 0x6
869 PARITY_CRC32_PR1_CCITT = 0x7
870 PARITY_DEFAULT = 0x0
871 PARITY_NONE = 0x1
872 PARMRK = 0x8
873 PARODD = 0x200
874 PENDIN = 0x4000
875 PRIO_PGRP = 0x1
876 PRIO_PROCESS = 0x0
877 PRIO_USER = 0x2
878 PROT_EXEC = 0x4
879 PROT_GROWSDOWN = 0x1000000
880 PROT_GROWSUP = 0x2000000
881 PROT_NONE = 0x0
882 PROT_READ = 0x1
883 PROT_WRITE = 0x2
884 PR_CAPBSET_DROP = 0x18
885 PR_CAPBSET_READ = 0x17
886 PR_ENDIAN_BIG = 0x0
887 PR_ENDIAN_LITTLE = 0x1
888 PR_ENDIAN_PPC_LITTLE = 0x2
889 PR_FPEMU_NOPRINT = 0x1
890 PR_FPEMU_SIGFPE = 0x2
891 PR_FP_EXC_ASYNC = 0x2
892 PR_FP_EXC_DISABLED = 0x0
893 PR_FP_EXC_DIV = 0x10000
894 PR_FP_EXC_INV = 0x100000
895 PR_FP_EXC_NONRECOV = 0x1
896 PR_FP_EXC_OVF = 0x20000
897 PR_FP_EXC_PRECISE = 0x3
898 PR_FP_EXC_RES = 0x80000
899 PR_FP_EXC_SW_ENABLE = 0x80
900 PR_FP_EXC_UND = 0x40000
901 PR_GET_DUMPABLE = 0x3
902 PR_GET_ENDIAN = 0x13
903 PR_GET_FPEMU = 0x9
904 PR_GET_FPEXC = 0xb
905 PR_GET_KEEPCAPS = 0x7
906 PR_GET_NAME = 0x10
907 PR_GET_NO_NEW_PRIVS = 0x27
908 PR_GET_PDEATHSIG = 0x2
909 PR_GET_SECCOMP = 0x15
910 PR_GET_SECUREBITS = 0x1b
911 PR_GET_TIMERSLACK = 0x1e
912 PR_GET_TIMING = 0xd
913 PR_GET_TSC = 0x19
914 PR_GET_UNALIGN = 0x5
915 PR_MCE_KILL = 0x21
916 PR_MCE_KILL_CLEAR = 0x0
917 PR_MCE_KILL_DEFAULT = 0x2
918 PR_MCE_KILL_EARLY = 0x1
919 PR_MCE_KILL_GET = 0x22
920 PR_MCE_KILL_LATE = 0x0
921 PR_MCE_KILL_SET = 0x1
922 PR_SET_DUMPABLE = 0x4
923 PR_SET_ENDIAN = 0x14
924 PR_SET_FPEMU = 0xa
925 PR_SET_FPEXC = 0xc
926 PR_SET_KEEPCAPS = 0x8
927 PR_SET_MM = 0x23
928 PR_SET_MM_BRK = 0x7
929 PR_SET_MM_END_CODE = 0x2
930 PR_SET_MM_END_DATA = 0x4
931 PR_SET_MM_START_BRK = 0x6
932 PR_SET_MM_START_CODE = 0x1
933 PR_SET_MM_START_DATA = 0x3
934 PR_SET_MM_START_STACK = 0x5
935 PR_SET_NAME = 0xf
936 PR_SET_NO_NEW_PRIVS = 0x26
937 PR_SET_PDEATHSIG = 0x1
938 PR_SET_PTRACER = 0x59616d61
939 PR_SET_PTRACER_ANY = 0xffffffff
940 PR_SET_SECCOMP = 0x16
941 PR_SET_SECUREBITS = 0x1c
942 PR_SET_TIMERSLACK = 0x1d
943 PR_SET_TIMING = 0xe
944 PR_SET_TSC = 0x1a
945 PR_SET_UNALIGN = 0x6
946 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
947 PR_TASK_PERF_EVENTS_ENABLE = 0x20
948 PR_TIMING_STATISTICAL = 0x0
949 PR_TIMING_TIMESTAMP = 0x1
950 PR_TSC_ENABLE = 0x1
951 PR_TSC_SIGSEGV = 0x2
952 PR_UNALIGN_NOPRINT = 0x1
953 PR_UNALIGN_SIGBUS = 0x2
954 PTRACE_ATTACH = 0x10
955 PTRACE_CONT = 0x7
956 PTRACE_DETACH = 0x11
957 PTRACE_EVENT_CLONE = 0x3
958 PTRACE_EVENT_EXEC = 0x4
959 PTRACE_EVENT_EXIT = 0x6
960 PTRACE_EVENT_FORK = 0x1
961 PTRACE_EVENT_SECCOMP = 0x7
962 PTRACE_EVENT_STOP = 0x80
963 PTRACE_EVENT_VFORK = 0x2
964 PTRACE_EVENT_VFORK_DONE = 0x5
965 PTRACE_GETEVENTMSG = 0x4201
966 PTRACE_GETFPREGS = 0xe
967 PTRACE_GETFPXREGS = 0x12
968 PTRACE_GETREGS = 0xc
969 PTRACE_GETREGSET = 0x4204
970 PTRACE_GETSIGINFO = 0x4202
971 PTRACE_GET_THREAD_AREA = 0x19
972 PTRACE_INTERRUPT = 0x4207
973 PTRACE_KILL = 0x8
974 PTRACE_LISTEN = 0x4208
975 PTRACE_OLDSETOPTIONS = 0x15
976 PTRACE_O_MASK = 0xff
977 PTRACE_O_TRACECLONE = 0x8
978 PTRACE_O_TRACEEXEC = 0x10
979 PTRACE_O_TRACEEXIT = 0x40
980 PTRACE_O_TRACEFORK = 0x2
981 PTRACE_O_TRACESECCOMP = 0x80
982 PTRACE_O_TRACESYSGOOD = 0x1
983 PTRACE_O_TRACEVFORK = 0x4
984 PTRACE_O_TRACEVFORKDONE = 0x20
985 PTRACE_PEEKDATA = 0x2
986 PTRACE_PEEKTEXT = 0x1
987 PTRACE_PEEKUSR = 0x3
988 PTRACE_POKEDATA = 0x5
989 PTRACE_POKETEXT = 0x4
990 PTRACE_POKEUSR = 0x6
991 PTRACE_SEIZE = 0x4206
992 PTRACE_SEIZE_DEVEL = 0x80000000
993 PTRACE_SETFPREGS = 0xf
994 PTRACE_SETFPXREGS = 0x13
995 PTRACE_SETOPTIONS = 0x4200
996 PTRACE_SETREGS = 0xd
997 PTRACE_SETREGSET = 0x4205
998 PTRACE_SETSIGINFO = 0x4203
999 PTRACE_SET_THREAD_AREA = 0x1a
1000 PTRACE_SINGLEBLOCK = 0x21
1001 PTRACE_SINGLESTEP = 0x9
1002 PTRACE_SYSCALL = 0x18
1003 PTRACE_SYSEMU = 0x1f
1004 PTRACE_SYSEMU_SINGLESTEP = 0x20
1005 PTRACE_TRACEME = 0x0
1006 RLIMIT_AS = 0x9
1007 RLIMIT_CORE = 0x4
1008 RLIMIT_CPU = 0x0
1009 RLIMIT_DATA = 0x2
1010 RLIMIT_FSIZE = 0x1
1011 RLIMIT_NOFILE = 0x7
1012 RLIMIT_STACK = 0x3
1013 RLIM_INFINITY = -0x1
1014 RTAX_ADVMSS = 0x8
1015 RTAX_CWND = 0x7
1016 RTAX_FEATURES = 0xc
1017 RTAX_FEATURE_ALLFRAG = 0x8
1018 RTAX_FEATURE_ECN = 0x1
1019 RTAX_FEATURE_SACK = 0x2
1020 RTAX_FEATURE_TIMESTAMP = 0x4
1021 RTAX_HOPLIMIT = 0xa
1022 RTAX_INITCWND = 0xb
1023 RTAX_INITRWND = 0xe
1024 RTAX_LOCK = 0x1
1025 RTAX_MAX = 0xe
1026 RTAX_MTU = 0x2
1027 RTAX_REORDERING = 0x9
1028 RTAX_RTO_MIN = 0xd
1029 RTAX_RTT = 0x4
1030 RTAX_RTTVAR = 0x5
1031 RTAX_SSTHRESH = 0x6
1032 RTAX_UNSPEC = 0x0
1033 RTAX_WINDOW = 0x3
1034 RTA_ALIGNTO = 0x4
1035 RTA_MAX = 0x10
1036 RTCF_DIRECTSRC = 0x4000000
1037 RTCF_DOREDIRECT = 0x1000000
1038 RTCF_LOG = 0x2000000
1039 RTCF_MASQ = 0x400000
1040 RTCF_NAT = 0x800000
1041 RTCF_VALVE = 0x200000
1042 RTF_ADDRCLASSMASK = 0xf8000000
1043 RTF_ADDRCONF = 0x40000
1044 RTF_ALLONLINK = 0x20000
1045 RTF_BROADCAST = 0x10000000
1046 RTF_CACHE = 0x1000000
1047 RTF_DEFAULT = 0x10000
1048 RTF_DYNAMIC = 0x10
1049 RTF_FLOW = 0x2000000
1050 RTF_GATEWAY = 0x2
1051 RTF_HOST = 0x4
1052 RTF_INTERFACE = 0x40000000
1053 RTF_IRTT = 0x100
1054 RTF_LINKRT = 0x100000
1055 RTF_LOCAL = 0x80000000
1056 RTF_MODIFIED = 0x20
1057 RTF_MSS = 0x40
1058 RTF_MTU = 0x40
1059 RTF_MULTICAST = 0x20000000
1060 RTF_NAT = 0x8000000
1061 RTF_NOFORWARD = 0x1000
1062 RTF_NONEXTHOP = 0x200000
1063 RTF_NOPMTUDISC = 0x4000
1064 RTF_POLICY = 0x4000000
1065 RTF_REINSTATE = 0x8
1066 RTF_REJECT = 0x200
1067 RTF_STATIC = 0x400
1068 RTF_THROW = 0x2000
1069 RTF_UP = 0x1
1070 RTF_WINDOW = 0x80
1071 RTF_XRESOLVE = 0x800
1072 RTM_BASE = 0x10
1073 RTM_DELACTION = 0x31
1074 RTM_DELADDR = 0x15
1075 RTM_DELADDRLABEL = 0x49
1076 RTM_DELLINK = 0x11
1077 RTM_DELNEIGH = 0x1d
1078 RTM_DELQDISC = 0x25
1079 RTM_DELROUTE = 0x19
1080 RTM_DELRULE = 0x21
1081 RTM_DELTCLASS = 0x29
1082 RTM_DELTFILTER = 0x2d
1083 RTM_F_CLONED = 0x200
1084 RTM_F_EQUALIZE = 0x400
1085 RTM_F_NOTIFY = 0x100
1086 RTM_F_PREFIX = 0x800
1087 RTM_GETACTION = 0x32
1088 RTM_GETADDR = 0x16
1089 RTM_GETADDRLABEL = 0x4a
1090 RTM_GETANYCAST = 0x3e
1091 RTM_GETDCB = 0x4e
1092 RTM_GETLINK = 0x12
1093 RTM_GETMULTICAST = 0x3a
1094 RTM_GETNEIGH = 0x1e
1095 RTM_GETNEIGHTBL = 0x42
1096 RTM_GETQDISC = 0x26
1097 RTM_GETROUTE = 0x1a
1098 RTM_GETRULE = 0x22
1099 RTM_GETTCLASS = 0x2a
1100 RTM_GETTFILTER = 0x2e
1101 RTM_MAX = 0x4f
1102 RTM_NEWACTION = 0x30
1103 RTM_NEWADDR = 0x14
1104 RTM_NEWADDRLABEL = 0x48
1105 RTM_NEWLINK = 0x10
1106 RTM_NEWNDUSEROPT = 0x44
1107 RTM_NEWNEIGH = 0x1c
1108 RTM_NEWNEIGHTBL = 0x40
1109 RTM_NEWPREFIX = 0x34
1110 RTM_NEWQDISC = 0x24
1111 RTM_NEWROUTE = 0x18
1112 RTM_NEWRULE = 0x20
1113 RTM_NEWTCLASS = 0x28
1114 RTM_NEWTFILTER = 0x2c
1115 RTM_NR_FAMILIES = 0x10
1116 RTM_NR_MSGTYPES = 0x40
1117 RTM_SETDCB = 0x4f
1118 RTM_SETLINK = 0x13
1119 RTM_SETNEIGHTBL = 0x43
1120 RTNH_ALIGNTO = 0x4
1121 RTNH_F_DEAD = 0x1
1122 RTNH_F_ONLINK = 0x4
1123 RTNH_F_PERVASIVE = 0x2
1124 RTN_MAX = 0xb
1125 RTPROT_BIRD = 0xc
1126 RTPROT_BOOT = 0x3
1127 RTPROT_DHCP = 0x10
1128 RTPROT_DNROUTED = 0xd
1129 RTPROT_GATED = 0x8
1130 RTPROT_KERNEL = 0x2
1131 RTPROT_MRT = 0xa
1132 RTPROT_NTK = 0xf
1133 RTPROT_RA = 0x9
1134 RTPROT_REDIRECT = 0x1
1135 RTPROT_STATIC = 0x4
1136 RTPROT_UNSPEC = 0x0
1137 RTPROT_XORP = 0xe
1138 RTPROT_ZEBRA = 0xb
1139 RT_CLASS_DEFAULT = 0xfd
1140 RT_CLASS_LOCAL = 0xff
1141 RT_CLASS_MAIN = 0xfe
1142 RT_CLASS_MAX = 0xff
1143 RT_CLASS_UNSPEC = 0x0
1144 RUSAGE_CHILDREN = -0x1
1145 RUSAGE_SELF = 0x0
1146 RUSAGE_THREAD = 0x1
1147 SCM_CREDENTIALS = 0x2
1148 SCM_RIGHTS = 0x1
1149 SCM_TIMESTAMP = 0x1d
1150 SCM_TIMESTAMPING = 0x25
1151 SCM_TIMESTAMPNS = 0x23
1152 SHUT_RD = 0x0
1153 SHUT_RDWR = 0x2
1154 SHUT_WR = 0x1
1155 SIOCADDDLCI = 0x8980
1156 SIOCADDMULTI = 0x8931
1157 SIOCADDRT = 0x890b
1158 SIOCATMARK = 0x8905
1159 SIOCDARP = 0x8953
1160 SIOCDELDLCI = 0x8981
1161 SIOCDELMULTI = 0x8932
1162 SIOCDELRT = 0x890c
1163 SIOCDEVPRIVATE = 0x89f0
1164 SIOCDIFADDR = 0x8936
1165 SIOCDRARP = 0x8960
1166 SIOCGARP = 0x8954
1167 SIOCGIFADDR = 0x8915
1168 SIOCGIFBR = 0x8940
1169 SIOCGIFBRDADDR = 0x8919
1170 SIOCGIFCONF = 0x8912
1171 SIOCGIFCOUNT = 0x8938
1172 SIOCGIFDSTADDR = 0x8917
1173 SIOCGIFENCAP = 0x8925
1174 SIOCGIFFLAGS = 0x8913
1175 SIOCGIFHWADDR = 0x8927
1176 SIOCGIFINDEX = 0x8933
1177 SIOCGIFMAP = 0x8970
1178 SIOCGIFMEM = 0x891f
1179 SIOCGIFMETRIC = 0x891d
1180 SIOCGIFMTU = 0x8921
1181 SIOCGIFNAME = 0x8910
1182 SIOCGIFNETMASK = 0x891b
1183 SIOCGIFPFLAGS = 0x8935
1184 SIOCGIFSLAVE = 0x8929
1185 SIOCGIFTXQLEN = 0x8942
1186 SIOCGPGRP = 0x8904
1187 SIOCGRARP = 0x8961
1188 SIOCGSTAMP = 0x8906
1189 SIOCGSTAMPNS = 0x8907
1190 SIOCPROTOPRIVATE = 0x89e0
1191 SIOCRTMSG = 0x890d
1192 SIOCSARP = 0x8955
1193 SIOCSIFADDR = 0x8916
1194 SIOCSIFBR = 0x8941
1195 SIOCSIFBRDADDR = 0x891a
1196 SIOCSIFDSTADDR = 0x8918
1197 SIOCSIFENCAP = 0x8926
1198 SIOCSIFFLAGS = 0x8914
1199 SIOCSIFHWADDR = 0x8924
1200 SIOCSIFHWBROADCAST = 0x8937
1201 SIOCSIFLINK = 0x8911
1202 SIOCSIFMAP = 0x8971
1203 SIOCSIFMEM = 0x8920
1204 SIOCSIFMETRIC = 0x891e
1205 SIOCSIFMTU = 0x8922
1206 SIOCSIFNAME = 0x8923
1207 SIOCSIFNETMASK = 0x891c
1208 SIOCSIFPFLAGS = 0x8934
1209 SIOCSIFSLAVE = 0x8930
1210 SIOCSIFTXQLEN = 0x8943
1211 SIOCSPGRP = 0x8902
1212 SIOCSRARP = 0x8962
1213 SOCK_CLOEXEC = 0x80000
1214 SOCK_DCCP = 0x6
1215 SOCK_DGRAM = 0x2
1216 SOCK_NONBLOCK = 0x800
1217 SOCK_PACKET = 0xa
1218 SOCK_RAW = 0x3
1219 SOCK_RDM = 0x4
1220 SOCK_SEQPACKET = 0x5
1221 SOCK_STREAM = 0x1
1222 SOL_AAL = 0x109
1223 SOL_ATM = 0x108
1224 SOL_DECNET = 0x105
1225 SOL_ICMPV6 = 0x3a
1226 SOL_IP = 0x0
1227 SOL_IPV6 = 0x29
1228 SOL_IRDA = 0x10a
1229 SOL_PACKET = 0x107
1230 SOL_RAW = 0xff
1231 SOL_SOCKET = 0x1
1232 SOL_TCP = 0x6
1233 SOL_X25 = 0x106
1234 SOMAXCONN = 0x80
1235 SO_ACCEPTCONN = 0x1e
1236 SO_ATTACH_FILTER = 0x1a
1237 SO_BINDTODEVICE = 0x19
1238 SO_BROADCAST = 0x6
1239 SO_BSDCOMPAT = 0xe
1240 SO_DEBUG = 0x1
1241 SO_DETACH_FILTER = 0x1b
1242 SO_DOMAIN = 0x27
1243 SO_DONTROUTE = 0x5
1244 SO_ERROR = 0x4
1245 SO_KEEPALIVE = 0x9
1246 SO_LINGER = 0xd
1247 SO_MARK = 0x24
1248 SO_NO_CHECK = 0xb
1249 SO_OOBINLINE = 0xa
1250 SO_PASSCRED = 0x10
1251 SO_PASSSEC = 0x22
1252 SO_PEERCRED = 0x11
1253 SO_PEERNAME = 0x1c
1254 SO_PEERSEC = 0x1f
1255 SO_PRIORITY = 0xc
1256 SO_PROTOCOL = 0x26
1257 SO_RCVBUF = 0x8
1258 SO_RCVBUFFORCE = 0x21
1259 SO_RCVLOWAT = 0x12
1260 SO_RCVTIMEO = 0x14
1261 SO_REUSEADDR = 0x2
1262 SO_RXQ_OVFL = 0x28
1263 SO_SECURITY_AUTHENTICATION = 0x16
1264 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
1265 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
1266 SO_SNDBUF = 0x7
1267 SO_SNDBUFFORCE = 0x20
1268 SO_SNDLOWAT = 0x13
1269 SO_SNDTIMEO = 0x15
1270 SO_TIMESTAMP = 0x1d
1271 SO_TIMESTAMPING = 0x25
1272 SO_TIMESTAMPNS = 0x23
1273 SO_TYPE = 0x3
1274 S_BLKSIZE = 0x200
1275 S_IEXEC = 0x40
1276 S_IFBLK = 0x6000
1277 S_IFCHR = 0x2000
1278 S_IFDIR = 0x4000
1279 S_IFIFO = 0x1000
1280 S_IFLNK = 0xa000
1281 S_IFMT = 0xf000
1282 S_IFREG = 0x8000
1283 S_IFSOCK = 0xc000
1284 S_IREAD = 0x100
1285 S_IRGRP = 0x20
1286 S_IROTH = 0x4
1287 S_IRUSR = 0x100
1288 S_IRWXG = 0x38
1289 S_IRWXO = 0x7
1290 S_IRWXU = 0x1c0
1291 S_ISGID = 0x400
1292 S_ISUID = 0x800
1293 S_ISVTX = 0x200
1294 S_IWGRP = 0x10
1295 S_IWOTH = 0x2
1296 S_IWRITE = 0x80
1297 S_IWUSR = 0x80
1298 S_IXGRP = 0x8
1299 S_IXOTH = 0x1
1300 S_IXUSR = 0x40
1301 TAB0 = 0x0
1302 TAB1 = 0x800
1303 TAB2 = 0x1000
1304 TAB3 = 0x1800
1305 TABDLY = 0x1800
1306 TCFLSH = 0x540b
1307 TCGETA = 0x5405
1308 TCGETS = 0x5401
1309 TCGETS2 = 0x802c542a
1310 TCGETX = 0x5432
1311 TCIFLUSH = 0x0
1312 TCIOFF = 0x2
1313 TCIOFLUSH = 0x2
1314 TCION = 0x3
1315 TCOFLUSH = 0x1
1316 TCOOFF = 0x0
1317 TCOON = 0x1
1318 TCP_CONGESTION = 0xd
1319 TCP_CORK = 0x3
1320 TCP_DEFER_ACCEPT = 0x9
1321 TCP_INFO = 0xb
1322 TCP_KEEPCNT = 0x6
1323 TCP_KEEPIDLE = 0x4
1324 TCP_KEEPINTVL = 0x5
1325 TCP_LINGER2 = 0x8
1326 TCP_MAXSEG = 0x2
1327 TCP_MAXWIN = 0xffff
1328 TCP_MAX_WINSHIFT = 0xe
1329 TCP_MD5SIG = 0xe
1330 TCP_MD5SIG_MAXKEYLEN = 0x50
1331 TCP_MSS = 0x200
1332 TCP_NODELAY = 0x1
1333 TCP_QUICKACK = 0xc
1334 TCP_SYNCNT = 0x7
1335 TCP_WINDOW_CLAMP = 0xa
1336 TCSAFLUSH = 0x2
1337 TCSBRK = 0x5409
1338 TCSBRKP = 0x5425
1339 TCSETA = 0x5406
1340 TCSETAF = 0x5408
1341 TCSETAW = 0x5407
1342 TCSETS = 0x5402
1343 TCSETS2 = 0x402c542b
1344 TCSETSF = 0x5404
1345 TCSETSF2 = 0x402c542d
1346 TCSETSW = 0x5403
1347 TCSETSW2 = 0x402c542c
1348 TCSETX = 0x5433
1349 TCSETXF = 0x5434
1350 TCSETXW = 0x5435
1351 TCXONC = 0x540a
1352 TIOCCBRK = 0x5428
1353 TIOCCONS = 0x541d
1354 TIOCEXCL = 0x540c
1355 TIOCGDEV = 0x80045432
1356 TIOCGETD = 0x5424
1357 TIOCGEXCL = 0x80045440
1358 TIOCGICOUNT = 0x545d
1359 TIOCGLCKTRMIOS = 0x5456
1360 TIOCGPGRP = 0x540f
1361 TIOCGPKT = 0x80045438
1362 TIOCGPTLCK = 0x80045439
1363 TIOCGPTN = 0x80045430
1364 TIOCGRS485 = 0x542e
1365 TIOCGSERIAL = 0x541e
1366 TIOCGSID = 0x5429
1367 TIOCGSOFTCAR = 0x5419
1368 TIOCGWINSZ = 0x5413
1369 TIOCINQ = 0x541b
1370 TIOCLINUX = 0x541c
1371 TIOCMBIC = 0x5417
1372 TIOCMBIS = 0x5416
1373 TIOCMGET = 0x5415
1374 TIOCMIWAIT = 0x545c
1375 TIOCMSET = 0x5418
1376 TIOCM_CAR = 0x40
1377 TIOCM_CD = 0x40
1378 TIOCM_CTS = 0x20
1379 TIOCM_DSR = 0x100
1380 TIOCM_DTR = 0x2
1381 TIOCM_LE = 0x1
1382 TIOCM_RI = 0x80
1383 TIOCM_RNG = 0x80
1384 TIOCM_RTS = 0x4
1385 TIOCM_SR = 0x10
1386 TIOCM_ST = 0x8
1387 TIOCNOTTY = 0x5422
1388 TIOCNXCL = 0x540d
1389 TIOCOUTQ = 0x5411
1390 TIOCPKT = 0x5420
1391 TIOCPKT_DATA = 0x0
1392 TIOCPKT_DOSTOP = 0x20
1393 TIOCPKT_FLUSHREAD = 0x1
1394 TIOCPKT_FLUSHWRITE = 0x2
1395 TIOCPKT_IOCTL = 0x40
1396 TIOCPKT_NOSTOP = 0x10
1397 TIOCPKT_START = 0x8
1398 TIOCPKT_STOP = 0x4
1399 TIOCSBRK = 0x5427
1400 TIOCSCTTY = 0x540e
1401 TIOCSERCONFIG = 0x5453
1402 TIOCSERGETLSR = 0x5459
1403 TIOCSERGETMULTI = 0x545a
1404 TIOCSERGSTRUCT = 0x5458
1405 TIOCSERGWILD = 0x5454
1406 TIOCSERSETMULTI = 0x545b
1407 TIOCSERSWILD = 0x5455
1408 TIOCSER_TEMT = 0x1
1409 TIOCSETD = 0x5423
1410 TIOCSIG = 0x40045436
1411 TIOCSLCKTRMIOS = 0x5457
1412 TIOCSPGRP = 0x5410
1413 TIOCSPTLCK = 0x40045431
1414 TIOCSRS485 = 0x542f
1415 TIOCSSERIAL = 0x541f
1416 TIOCSSOFTCAR = 0x541a
1417 TIOCSTI = 0x5412
1418 TIOCSWINSZ = 0x5414
1419 TIOCVHANGUP = 0x5437
1420 TOSTOP = 0x100
1421 TUNATTACHFILTER = 0x400854d5
1422 TUNDETACHFILTER = 0x400854d6
1423 TUNGETFEATURES = 0x800454cf
1424 TUNGETIFF = 0x800454d2
1425 TUNGETSNDBUF = 0x800454d3
1426 TUNGETVNETHDRSZ = 0x800454d7
1427 TUNSETDEBUG = 0x400454c9
1428 TUNSETGROUP = 0x400454ce
1429 TUNSETIFF = 0x400454ca
1430 TUNSETLINK = 0x400454cd
1431 TUNSETNOCSUM = 0x400454c8
1432 TUNSETOFFLOAD = 0x400454d0
1433 TUNSETOWNER = 0x400454cc
1434 TUNSETPERSIST = 0x400454cb
1435 TUNSETSNDBUF = 0x400454d4
1436 TUNSETTXFILTER = 0x400454d1
1437 TUNSETVNETHDRSZ = 0x400454d8
1438 VDISCARD = 0xd
1439 VEOF = 0x4
1440 VEOL = 0xb
1441 VEOL2 = 0x10
1442 VERASE = 0x2
1443 VINTR = 0x0
1444 VKILL = 0x3
1445 VLNEXT = 0xf
1446 VMIN = 0x6
1447 VQUIT = 0x1
1448 VREPRINT = 0xc
1449 VSTART = 0x8
1450 VSTOP = 0x9
1451 VSUSP = 0xa
1452 VSWTC = 0x7
1453 VT0 = 0x0
1454 VT1 = 0x4000
1455 VTDLY = 0x4000
1456 VTIME = 0x5
1457 VWERASE = 0xe
1458 WALL = 0x40000000
1459 WCLONE = 0x80000000
1460 WCONTINUED = 0x8
1461 WEXITED = 0x4
1462 WNOHANG = 0x1
1463 WNOTHREAD = 0x20000000
1464 WNOWAIT = 0x1000000
1465 WORDSIZE = 0x20
1466 WSTOPPED = 0x2
1467 WUNTRACED = 0x2
1468 XCASE = 0x4
1469 XTABS = 0x1800
1470)
1471
1472// Errors
1473const (
1474 E2BIG = syscall.Errno(0x7)
1475 EACCES = syscall.Errno(0xd)
1476 EADDRINUSE = syscall.Errno(0x62)
1477 EADDRNOTAVAIL = syscall.Errno(0x63)
1478 EADV = syscall.Errno(0x44)
1479 EAFNOSUPPORT = syscall.Errno(0x61)
1480 EAGAIN = syscall.Errno(0xb)
1481 EALREADY = syscall.Errno(0x72)
1482 EBADE = syscall.Errno(0x34)
1483 EBADF = syscall.Errno(0x9)
1484 EBADFD = syscall.Errno(0x4d)
1485 EBADMSG = syscall.Errno(0x4a)
1486 EBADR = syscall.Errno(0x35)
1487 EBADRQC = syscall.Errno(0x38)
1488 EBADSLT = syscall.Errno(0x39)
1489 EBFONT = syscall.Errno(0x3b)
1490 EBUSY = syscall.Errno(0x10)
1491 ECANCELED = syscall.Errno(0x7d)
1492 ECHILD = syscall.Errno(0xa)
1493 ECHRNG = syscall.Errno(0x2c)
1494 ECOMM = syscall.Errno(0x46)
1495 ECONNABORTED = syscall.Errno(0x67)
1496 ECONNREFUSED = syscall.Errno(0x6f)
1497 ECONNRESET = syscall.Errno(0x68)
1498 EDEADLK = syscall.Errno(0x23)
1499 EDEADLOCK = syscall.Errno(0x23)
1500 EDESTADDRREQ = syscall.Errno(0x59)
1501 EDOM = syscall.Errno(0x21)
1502 EDOTDOT = syscall.Errno(0x49)
1503 EDQUOT = syscall.Errno(0x7a)
1504 EEXIST = syscall.Errno(0x11)
1505 EFAULT = syscall.Errno(0xe)
1506 EFBIG = syscall.Errno(0x1b)
1507 EHOSTDOWN = syscall.Errno(0x70)
1508 EHOSTUNREACH = syscall.Errno(0x71)
1509 EHWPOISON = syscall.Errno(0x85)
1510 EIDRM = syscall.Errno(0x2b)
1511 EILSEQ = syscall.Errno(0x54)
1512 EINPROGRESS = syscall.Errno(0x73)
1513 EINTR = syscall.Errno(0x4)
1514 EINVAL = syscall.Errno(0x16)
1515 EIO = syscall.Errno(0x5)
1516 EISCONN = syscall.Errno(0x6a)
1517 EISDIR = syscall.Errno(0x15)
1518 EISNAM = syscall.Errno(0x78)
1519 EKEYEXPIRED = syscall.Errno(0x7f)
1520 EKEYREJECTED = syscall.Errno(0x81)
1521 EKEYREVOKED = syscall.Errno(0x80)
1522 EL2HLT = syscall.Errno(0x33)
1523 EL2NSYNC = syscall.Errno(0x2d)
1524 EL3HLT = syscall.Errno(0x2e)
1525 EL3RST = syscall.Errno(0x2f)
1526 ELIBACC = syscall.Errno(0x4f)
1527 ELIBBAD = syscall.Errno(0x50)
1528 ELIBEXEC = syscall.Errno(0x53)
1529 ELIBMAX = syscall.Errno(0x52)
1530 ELIBSCN = syscall.Errno(0x51)
1531 ELNRNG = syscall.Errno(0x30)
1532 ELOOP = syscall.Errno(0x28)
1533 EMEDIUMTYPE = syscall.Errno(0x7c)
1534 EMFILE = syscall.Errno(0x18)
1535 EMLINK = syscall.Errno(0x1f)
1536 EMSGSIZE = syscall.Errno(0x5a)
1537 EMULTIHOP = syscall.Errno(0x48)
1538 ENAMETOOLONG = syscall.Errno(0x24)
1539 ENAVAIL = syscall.Errno(0x77)
1540 ENETDOWN = syscall.Errno(0x64)
1541 ENETRESET = syscall.Errno(0x66)
1542 ENETUNREACH = syscall.Errno(0x65)
1543 ENFILE = syscall.Errno(0x17)
1544 ENOANO = syscall.Errno(0x37)
1545 ENOBUFS = syscall.Errno(0x69)
1546 ENOCSI = syscall.Errno(0x32)
1547 ENODATA = syscall.Errno(0x3d)
1548 ENODEV = syscall.Errno(0x13)
1549 ENOENT = syscall.Errno(0x2)
1550 ENOEXEC = syscall.Errno(0x8)
1551 ENOKEY = syscall.Errno(0x7e)
1552 ENOLCK = syscall.Errno(0x25)
1553 ENOLINK = syscall.Errno(0x43)
1554 ENOMEDIUM = syscall.Errno(0x7b)
1555 ENOMEM = syscall.Errno(0xc)
1556 ENOMSG = syscall.Errno(0x2a)
1557 ENONET = syscall.Errno(0x40)
1558 ENOPKG = syscall.Errno(0x41)
1559 ENOPROTOOPT = syscall.Errno(0x5c)
1560 ENOSPC = syscall.Errno(0x1c)
1561 ENOSR = syscall.Errno(0x3f)
1562 ENOSTR = syscall.Errno(0x3c)
1563 ENOSYS = syscall.Errno(0x26)
1564 ENOTBLK = syscall.Errno(0xf)
1565 ENOTCONN = syscall.Errno(0x6b)
1566 ENOTDIR = syscall.Errno(0x14)
1567 ENOTEMPTY = syscall.Errno(0x27)
1568 ENOTNAM = syscall.Errno(0x76)
1569 ENOTRECOVERABLE = syscall.Errno(0x83)
1570 ENOTSOCK = syscall.Errno(0x58)
1571 ENOTSUP = syscall.Errno(0x5f)
1572 ENOTTY = syscall.Errno(0x19)
1573 ENOTUNIQ = syscall.Errno(0x4c)
1574 ENXIO = syscall.Errno(0x6)
1575 EOPNOTSUPP = syscall.Errno(0x5f)
1576 EOVERFLOW = syscall.Errno(0x4b)
1577 EOWNERDEAD = syscall.Errno(0x82)
1578 EPERM = syscall.Errno(0x1)
1579 EPFNOSUPPORT = syscall.Errno(0x60)
1580 EPIPE = syscall.Errno(0x20)
1581 EPROTO = syscall.Errno(0x47)
1582 EPROTONOSUPPORT = syscall.Errno(0x5d)
1583 EPROTOTYPE = syscall.Errno(0x5b)
1584 ERANGE = syscall.Errno(0x22)
1585 EREMCHG = syscall.Errno(0x4e)
1586 EREMOTE = syscall.Errno(0x42)
1587 EREMOTEIO = syscall.Errno(0x79)
1588 ERESTART = syscall.Errno(0x55)
1589 ERFKILL = syscall.Errno(0x84)
1590 EROFS = syscall.Errno(0x1e)
1591 ESHUTDOWN = syscall.Errno(0x6c)
1592 ESOCKTNOSUPPORT = syscall.Errno(0x5e)
1593 ESPIPE = syscall.Errno(0x1d)
1594 ESRCH = syscall.Errno(0x3)
1595 ESRMNT = syscall.Errno(0x45)
1596 ESTALE = syscall.Errno(0x74)
1597 ESTRPIPE = syscall.Errno(0x56)
1598 ETIME = syscall.Errno(0x3e)
1599 ETIMEDOUT = syscall.Errno(0x6e)
1600 ETOOMANYREFS = syscall.Errno(0x6d)
1601 ETXTBSY = syscall.Errno(0x1a)
1602 EUCLEAN = syscall.Errno(0x75)
1603 EUNATCH = syscall.Errno(0x31)
1604 EUSERS = syscall.Errno(0x57)
1605 EWOULDBLOCK = syscall.Errno(0xb)
1606 EXDEV = syscall.Errno(0x12)
1607 EXFULL = syscall.Errno(0x36)
1608)
1609
1610// Signals
1611const (
1612 SIGABRT = syscall.Signal(0x6)
1613 SIGALRM = syscall.Signal(0xe)
1614 SIGBUS = syscall.Signal(0x7)
1615 SIGCHLD = syscall.Signal(0x11)
1616 SIGCLD = syscall.Signal(0x11)
1617 SIGCONT = syscall.Signal(0x12)
1618 SIGFPE = syscall.Signal(0x8)
1619 SIGHUP = syscall.Signal(0x1)
1620 SIGILL = syscall.Signal(0x4)
1621 SIGINT = syscall.Signal(0x2)
1622 SIGIO = syscall.Signal(0x1d)
1623 SIGIOT = syscall.Signal(0x6)
1624 SIGKILL = syscall.Signal(0x9)
1625 SIGPIPE = syscall.Signal(0xd)
1626 SIGPOLL = syscall.Signal(0x1d)
1627 SIGPROF = syscall.Signal(0x1b)
1628 SIGPWR = syscall.Signal(0x1e)
1629 SIGQUIT = syscall.Signal(0x3)
1630 SIGSEGV = syscall.Signal(0xb)
1631 SIGSTKFLT = syscall.Signal(0x10)
1632 SIGSTOP = syscall.Signal(0x13)
1633 SIGSYS = syscall.Signal(0x1f)
1634 SIGTERM = syscall.Signal(0xf)
1635 SIGTRAP = syscall.Signal(0x5)
1636 SIGTSTP = syscall.Signal(0x14)
1637 SIGTTIN = syscall.Signal(0x15)
1638 SIGTTOU = syscall.Signal(0x16)
1639 SIGUNUSED = syscall.Signal(0x1f)
1640 SIGURG = syscall.Signal(0x17)
1641 SIGUSR1 = syscall.Signal(0xa)
1642 SIGUSR2 = syscall.Signal(0xc)
1643 SIGVTALRM = syscall.Signal(0x1a)
1644 SIGWINCH = syscall.Signal(0x1c)
1645 SIGXCPU = syscall.Signal(0x18)
1646 SIGXFSZ = syscall.Signal(0x19)
1647)
1648
1649// Error table
1650var errors = [...]string{
1651 1: "operation not permitted",
1652 2: "no such file or directory",
1653 3: "no such process",
1654 4: "interrupted system call",
1655 5: "input/output error",
1656 6: "no such device or address",
1657 7: "argument list too long",
1658 8: "exec format error",
1659 9: "bad file descriptor",
1660 10: "no child processes",
1661 11: "resource temporarily unavailable",
1662 12: "cannot allocate memory",
1663 13: "permission denied",
1664 14: "bad address",
1665 15: "block device required",
1666 16: "device or resource busy",
1667 17: "file exists",
1668 18: "invalid cross-device link",
1669 19: "no such device",
1670 20: "not a directory",
1671 21: "is a directory",
1672 22: "invalid argument",
1673 23: "too many open files in system",
1674 24: "too many open files",
1675 25: "inappropriate ioctl for device",
1676 26: "text file busy",
1677 27: "file too large",
1678 28: "no space left on device",
1679 29: "illegal seek",
1680 30: "read-only file system",
1681 31: "too many links",
1682 32: "broken pipe",
1683 33: "numerical argument out of domain",
1684 34: "numerical result out of range",
1685 35: "resource deadlock avoided",
1686 36: "file name too long",
1687 37: "no locks available",
1688 38: "function not implemented",
1689 39: "directory not empty",
1690 40: "too many levels of symbolic links",
1691 42: "no message of desired type",
1692 43: "identifier removed",
1693 44: "channel number out of range",
1694 45: "level 2 not synchronized",
1695 46: "level 3 halted",
1696 47: "level 3 reset",
1697 48: "link number out of range",
1698 49: "protocol driver not attached",
1699 50: "no CSI structure available",
1700 51: "level 2 halted",
1701 52: "invalid exchange",
1702 53: "invalid request descriptor",
1703 54: "exchange full",
1704 55: "no anode",
1705 56: "invalid request code",
1706 57: "invalid slot",
1707 59: "bad font file format",
1708 60: "device not a stream",
1709 61: "no data available",
1710 62: "timer expired",
1711 63: "out of streams resources",
1712 64: "machine is not on the network",
1713 65: "package not installed",
1714 66: "object is remote",
1715 67: "link has been severed",
1716 68: "advertise error",
1717 69: "srmount error",
1718 70: "communication error on send",
1719 71: "protocol error",
1720 72: "multihop attempted",
1721 73: "RFS specific error",
1722 74: "bad message",
1723 75: "value too large for defined data type",
1724 76: "name not unique on network",
1725 77: "file descriptor in bad state",
1726 78: "remote address changed",
1727 79: "can not access a needed shared library",
1728 80: "accessing a corrupted shared library",
1729 81: ".lib section in a.out corrupted",
1730 82: "attempting to link in too many shared libraries",
1731 83: "cannot exec a shared library directly",
1732 84: "invalid or incomplete multibyte or wide character",
1733 85: "interrupted system call should be restarted",
1734 86: "streams pipe error",
1735 87: "too many users",
1736 88: "socket operation on non-socket",
1737 89: "destination address required",
1738 90: "message too long",
1739 91: "protocol wrong type for socket",
1740 92: "protocol not available",
1741 93: "protocol not supported",
1742 94: "socket type not supported",
1743 95: "operation not supported",
1744 96: "protocol family not supported",
1745 97: "address family not supported by protocol",
1746 98: "address already in use",
1747 99: "cannot assign requested address",
1748 100: "network is down",
1749 101: "network is unreachable",
1750 102: "network dropped connection on reset",
1751 103: "software caused connection abort",
1752 104: "connection reset by peer",
1753 105: "no buffer space available",
1754 106: "transport endpoint is already connected",
1755 107: "transport endpoint is not connected",
1756 108: "cannot send after transport endpoint shutdown",
1757 109: "too many references: cannot splice",
1758 110: "connection timed out",
1759 111: "connection refused",
1760 112: "host is down",
1761 113: "no route to host",
1762 114: "operation already in progress",
1763 115: "operation now in progress",
1764 116: "stale NFS file handle",
1765 117: "structure needs cleaning",
1766 118: "not a XENIX named type file",
1767 119: "no XENIX semaphores available",
1768 120: "is a named type file",
1769 121: "remote I/O error",
1770 122: "disk quota exceeded",
1771 123: "no medium found",
1772 124: "wrong medium type",
1773 125: "operation canceled",
1774 126: "required key not available",
1775 127: "key has expired",
1776 128: "key has been revoked",
1777 129: "key was rejected by service",
1778 130: "owner died",
1779 131: "state not recoverable",
1780 132: "operation not possible due to RF-kill",
1781 133: "unknown error 133",
1782}
1783
1784// Signal table
1785var signals = [...]string{
1786 1: "hangup",
1787 2: "interrupt",
1788 3: "quit",
1789 4: "illegal instruction",
1790 5: "trace/breakpoint trap",
1791 6: "aborted",
1792 7: "bus error",
1793 8: "floating point exception",
1794 9: "killed",
1795 10: "user defined signal 1",
1796 11: "segmentation fault",
1797 12: "user defined signal 2",
1798 13: "broken pipe",
1799 14: "alarm clock",
1800 15: "terminated",
1801 16: "stack fault",
1802 17: "child exited",
1803 18: "continued",
1804 19: "stopped (signal)",
1805 20: "stopped",
1806 21: "stopped (tty input)",
1807 22: "stopped (tty output)",
1808 23: "urgent I/O condition",
1809 24: "CPU time limit exceeded",
1810 25: "file size limit exceeded",
1811 26: "virtual timer expired",
1812 27: "profiling timer expired",
1813 28: "window changed",
1814 29: "I/O possible",
1815 30: "power failure",
1816 31: "bad system call",
1817}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_amd64.go
deleted file mode 100644
index b83fb40..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_amd64.go
+++ /dev/null
@@ -1,1818 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,linux
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_ALG = 0x26
15 AF_APPLETALK = 0x5
16 AF_ASH = 0x12
17 AF_ATMPVC = 0x8
18 AF_ATMSVC = 0x14
19 AF_AX25 = 0x3
20 AF_BLUETOOTH = 0x1f
21 AF_BRIDGE = 0x7
22 AF_CAIF = 0x25
23 AF_CAN = 0x1d
24 AF_DECnet = 0xc
25 AF_ECONET = 0x13
26 AF_FILE = 0x1
27 AF_IEEE802154 = 0x24
28 AF_INET = 0x2
29 AF_INET6 = 0xa
30 AF_IPX = 0x4
31 AF_IRDA = 0x17
32 AF_ISDN = 0x22
33 AF_IUCV = 0x20
34 AF_KEY = 0xf
35 AF_LLC = 0x1a
36 AF_LOCAL = 0x1
37 AF_MAX = 0x28
38 AF_NETBEUI = 0xd
39 AF_NETLINK = 0x10
40 AF_NETROM = 0x6
41 AF_NFC = 0x27
42 AF_PACKET = 0x11
43 AF_PHONET = 0x23
44 AF_PPPOX = 0x18
45 AF_RDS = 0x15
46 AF_ROSE = 0xb
47 AF_ROUTE = 0x10
48 AF_RXRPC = 0x21
49 AF_SECURITY = 0xe
50 AF_SNA = 0x16
51 AF_TIPC = 0x1e
52 AF_UNIX = 0x1
53 AF_UNSPEC = 0x0
54 AF_WANPIPE = 0x19
55 AF_X25 = 0x9
56 ARPHRD_ADAPT = 0x108
57 ARPHRD_APPLETLK = 0x8
58 ARPHRD_ARCNET = 0x7
59 ARPHRD_ASH = 0x30d
60 ARPHRD_ATM = 0x13
61 ARPHRD_AX25 = 0x3
62 ARPHRD_BIF = 0x307
63 ARPHRD_CAIF = 0x336
64 ARPHRD_CAN = 0x118
65 ARPHRD_CHAOS = 0x5
66 ARPHRD_CISCO = 0x201
67 ARPHRD_CSLIP = 0x101
68 ARPHRD_CSLIP6 = 0x103
69 ARPHRD_DDCMP = 0x205
70 ARPHRD_DLCI = 0xf
71 ARPHRD_ECONET = 0x30e
72 ARPHRD_EETHER = 0x2
73 ARPHRD_ETHER = 0x1
74 ARPHRD_EUI64 = 0x1b
75 ARPHRD_FCAL = 0x311
76 ARPHRD_FCFABRIC = 0x313
77 ARPHRD_FCPL = 0x312
78 ARPHRD_FCPP = 0x310
79 ARPHRD_FDDI = 0x306
80 ARPHRD_FRAD = 0x302
81 ARPHRD_HDLC = 0x201
82 ARPHRD_HIPPI = 0x30c
83 ARPHRD_HWX25 = 0x110
84 ARPHRD_IEEE1394 = 0x18
85 ARPHRD_IEEE802 = 0x6
86 ARPHRD_IEEE80211 = 0x321
87 ARPHRD_IEEE80211_PRISM = 0x322
88 ARPHRD_IEEE80211_RADIOTAP = 0x323
89 ARPHRD_IEEE802154 = 0x324
90 ARPHRD_IEEE802_TR = 0x320
91 ARPHRD_INFINIBAND = 0x20
92 ARPHRD_IPDDP = 0x309
93 ARPHRD_IPGRE = 0x30a
94 ARPHRD_IRDA = 0x30f
95 ARPHRD_LAPB = 0x204
96 ARPHRD_LOCALTLK = 0x305
97 ARPHRD_LOOPBACK = 0x304
98 ARPHRD_METRICOM = 0x17
99 ARPHRD_NETROM = 0x0
100 ARPHRD_NONE = 0xfffe
101 ARPHRD_PHONET = 0x334
102 ARPHRD_PHONET_PIPE = 0x335
103 ARPHRD_PIMREG = 0x30b
104 ARPHRD_PPP = 0x200
105 ARPHRD_PRONET = 0x4
106 ARPHRD_RAWHDLC = 0x206
107 ARPHRD_ROSE = 0x10e
108 ARPHRD_RSRVD = 0x104
109 ARPHRD_SIT = 0x308
110 ARPHRD_SKIP = 0x303
111 ARPHRD_SLIP = 0x100
112 ARPHRD_SLIP6 = 0x102
113 ARPHRD_TUNNEL = 0x300
114 ARPHRD_TUNNEL6 = 0x301
115 ARPHRD_VOID = 0xffff
116 ARPHRD_X25 = 0x10f
117 B0 = 0x0
118 B1000000 = 0x1008
119 B110 = 0x3
120 B115200 = 0x1002
121 B1152000 = 0x1009
122 B1200 = 0x9
123 B134 = 0x4
124 B150 = 0x5
125 B1500000 = 0x100a
126 B1800 = 0xa
127 B19200 = 0xe
128 B200 = 0x6
129 B2000000 = 0x100b
130 B230400 = 0x1003
131 B2400 = 0xb
132 B2500000 = 0x100c
133 B300 = 0x7
134 B3000000 = 0x100d
135 B3500000 = 0x100e
136 B38400 = 0xf
137 B4000000 = 0x100f
138 B460800 = 0x1004
139 B4800 = 0xc
140 B50 = 0x1
141 B500000 = 0x1005
142 B57600 = 0x1001
143 B576000 = 0x1006
144 B600 = 0x8
145 B75 = 0x2
146 B921600 = 0x1007
147 B9600 = 0xd
148 BOTHER = 0x1000
149 BPF_A = 0x10
150 BPF_ABS = 0x20
151 BPF_ADD = 0x0
152 BPF_ALU = 0x4
153 BPF_AND = 0x50
154 BPF_B = 0x10
155 BPF_DIV = 0x30
156 BPF_H = 0x8
157 BPF_IMM = 0x0
158 BPF_IND = 0x40
159 BPF_JA = 0x0
160 BPF_JEQ = 0x10
161 BPF_JGE = 0x30
162 BPF_JGT = 0x20
163 BPF_JMP = 0x5
164 BPF_JSET = 0x40
165 BPF_K = 0x0
166 BPF_LD = 0x0
167 BPF_LDX = 0x1
168 BPF_LEN = 0x80
169 BPF_LSH = 0x60
170 BPF_MAJOR_VERSION = 0x1
171 BPF_MAXINSNS = 0x1000
172 BPF_MEM = 0x60
173 BPF_MEMWORDS = 0x10
174 BPF_MINOR_VERSION = 0x1
175 BPF_MISC = 0x7
176 BPF_MSH = 0xa0
177 BPF_MUL = 0x20
178 BPF_NEG = 0x80
179 BPF_OR = 0x40
180 BPF_RET = 0x6
181 BPF_RSH = 0x70
182 BPF_ST = 0x2
183 BPF_STX = 0x3
184 BPF_SUB = 0x10
185 BPF_TAX = 0x0
186 BPF_TXA = 0x80
187 BPF_W = 0x0
188 BPF_X = 0x8
189 BRKINT = 0x2
190 BS0 = 0x0
191 BS1 = 0x2000
192 BSDLY = 0x2000
193 CBAUD = 0x100f
194 CBAUDEX = 0x1000
195 CFLUSH = 0xf
196 CIBAUD = 0x100f0000
197 CLOCAL = 0x800
198 CLOCK_BOOTTIME = 0x7
199 CLOCK_BOOTTIME_ALARM = 0x9
200 CLOCK_DEFAULT = 0x0
201 CLOCK_EXT = 0x1
202 CLOCK_INT = 0x2
203 CLOCK_MONOTONIC = 0x1
204 CLOCK_MONOTONIC_COARSE = 0x6
205 CLOCK_MONOTONIC_RAW = 0x4
206 CLOCK_PROCESS_CPUTIME_ID = 0x2
207 CLOCK_REALTIME = 0x0
208 CLOCK_REALTIME_ALARM = 0x8
209 CLOCK_REALTIME_COARSE = 0x5
210 CLOCK_THREAD_CPUTIME_ID = 0x3
211 CLOCK_TXFROMRX = 0x4
212 CLOCK_TXINT = 0x3
213 CLONE_CHILD_CLEARTID = 0x200000
214 CLONE_CHILD_SETTID = 0x1000000
215 CLONE_DETACHED = 0x400000
216 CLONE_FILES = 0x400
217 CLONE_FS = 0x200
218 CLONE_IO = 0x80000000
219 CLONE_NEWIPC = 0x8000000
220 CLONE_NEWNET = 0x40000000
221 CLONE_NEWNS = 0x20000
222 CLONE_NEWPID = 0x20000000
223 CLONE_NEWUSER = 0x10000000
224 CLONE_NEWUTS = 0x4000000
225 CLONE_PARENT = 0x8000
226 CLONE_PARENT_SETTID = 0x100000
227 CLONE_PTRACE = 0x2000
228 CLONE_SETTLS = 0x80000
229 CLONE_SIGHAND = 0x800
230 CLONE_SYSVSEM = 0x40000
231 CLONE_THREAD = 0x10000
232 CLONE_UNTRACED = 0x800000
233 CLONE_VFORK = 0x4000
234 CLONE_VM = 0x100
235 CMSPAR = 0x40000000
236 CR0 = 0x0
237 CR1 = 0x200
238 CR2 = 0x400
239 CR3 = 0x600
240 CRDLY = 0x600
241 CREAD = 0x80
242 CRTSCTS = 0x80000000
243 CS5 = 0x0
244 CS6 = 0x10
245 CS7 = 0x20
246 CS8 = 0x30
247 CSIGNAL = 0xff
248 CSIZE = 0x30
249 CSTART = 0x11
250 CSTATUS = 0x0
251 CSTOP = 0x13
252 CSTOPB = 0x40
253 CSUSP = 0x1a
254 DT_BLK = 0x6
255 DT_CHR = 0x2
256 DT_DIR = 0x4
257 DT_FIFO = 0x1
258 DT_LNK = 0xa
259 DT_REG = 0x8
260 DT_SOCK = 0xc
261 DT_UNKNOWN = 0x0
262 DT_WHT = 0xe
263 ECHO = 0x8
264 ECHOCTL = 0x200
265 ECHOE = 0x10
266 ECHOK = 0x20
267 ECHOKE = 0x800
268 ECHONL = 0x40
269 ECHOPRT = 0x400
270 ENCODING_DEFAULT = 0x0
271 ENCODING_FM_MARK = 0x3
272 ENCODING_FM_SPACE = 0x4
273 ENCODING_MANCHESTER = 0x5
274 ENCODING_NRZ = 0x1
275 ENCODING_NRZI = 0x2
276 EPOLLERR = 0x8
277 EPOLLET = 0x80000000
278 EPOLLHUP = 0x10
279 EPOLLIN = 0x1
280 EPOLLMSG = 0x400
281 EPOLLONESHOT = 0x40000000
282 EPOLLOUT = 0x4
283 EPOLLPRI = 0x2
284 EPOLLRDBAND = 0x80
285 EPOLLRDHUP = 0x2000
286 EPOLLRDNORM = 0x40
287 EPOLLWRBAND = 0x200
288 EPOLLWRNORM = 0x100
289 EPOLL_CLOEXEC = 0x80000
290 EPOLL_CTL_ADD = 0x1
291 EPOLL_CTL_DEL = 0x2
292 EPOLL_CTL_MOD = 0x3
293 EPOLL_NONBLOCK = 0x800
294 ETH_P_1588 = 0x88f7
295 ETH_P_8021AD = 0x88a8
296 ETH_P_8021AH = 0x88e7
297 ETH_P_8021Q = 0x8100
298 ETH_P_802_2 = 0x4
299 ETH_P_802_3 = 0x1
300 ETH_P_AARP = 0x80f3
301 ETH_P_AF_IUCV = 0xfbfb
302 ETH_P_ALL = 0x3
303 ETH_P_AOE = 0x88a2
304 ETH_P_ARCNET = 0x1a
305 ETH_P_ARP = 0x806
306 ETH_P_ATALK = 0x809b
307 ETH_P_ATMFATE = 0x8884
308 ETH_P_ATMMPOA = 0x884c
309 ETH_P_AX25 = 0x2
310 ETH_P_BPQ = 0x8ff
311 ETH_P_CAIF = 0xf7
312 ETH_P_CAN = 0xc
313 ETH_P_CONTROL = 0x16
314 ETH_P_CUST = 0x6006
315 ETH_P_DDCMP = 0x6
316 ETH_P_DEC = 0x6000
317 ETH_P_DIAG = 0x6005
318 ETH_P_DNA_DL = 0x6001
319 ETH_P_DNA_RC = 0x6002
320 ETH_P_DNA_RT = 0x6003
321 ETH_P_DSA = 0x1b
322 ETH_P_ECONET = 0x18
323 ETH_P_EDSA = 0xdada
324 ETH_P_FCOE = 0x8906
325 ETH_P_FIP = 0x8914
326 ETH_P_HDLC = 0x19
327 ETH_P_IEEE802154 = 0xf6
328 ETH_P_IEEEPUP = 0xa00
329 ETH_P_IEEEPUPAT = 0xa01
330 ETH_P_IP = 0x800
331 ETH_P_IPV6 = 0x86dd
332 ETH_P_IPX = 0x8137
333 ETH_P_IRDA = 0x17
334 ETH_P_LAT = 0x6004
335 ETH_P_LINK_CTL = 0x886c
336 ETH_P_LOCALTALK = 0x9
337 ETH_P_LOOP = 0x60
338 ETH_P_MOBITEX = 0x15
339 ETH_P_MPLS_MC = 0x8848
340 ETH_P_MPLS_UC = 0x8847
341 ETH_P_PAE = 0x888e
342 ETH_P_PAUSE = 0x8808
343 ETH_P_PHONET = 0xf5
344 ETH_P_PPPTALK = 0x10
345 ETH_P_PPP_DISC = 0x8863
346 ETH_P_PPP_MP = 0x8
347 ETH_P_PPP_SES = 0x8864
348 ETH_P_PUP = 0x200
349 ETH_P_PUPAT = 0x201
350 ETH_P_QINQ1 = 0x9100
351 ETH_P_QINQ2 = 0x9200
352 ETH_P_QINQ3 = 0x9300
353 ETH_P_RARP = 0x8035
354 ETH_P_SCA = 0x6007
355 ETH_P_SLOW = 0x8809
356 ETH_P_SNAP = 0x5
357 ETH_P_TDLS = 0x890d
358 ETH_P_TEB = 0x6558
359 ETH_P_TIPC = 0x88ca
360 ETH_P_TRAILER = 0x1c
361 ETH_P_TR_802_2 = 0x11
362 ETH_P_WAN_PPP = 0x7
363 ETH_P_WCCP = 0x883e
364 ETH_P_X25 = 0x805
365 EXTA = 0xe
366 EXTB = 0xf
367 EXTPROC = 0x10000
368 FD_CLOEXEC = 0x1
369 FD_SETSIZE = 0x400
370 FF0 = 0x0
371 FF1 = 0x8000
372 FFDLY = 0x8000
373 FLUSHO = 0x1000
374 F_DUPFD = 0x0
375 F_DUPFD_CLOEXEC = 0x406
376 F_EXLCK = 0x4
377 F_GETFD = 0x1
378 F_GETFL = 0x3
379 F_GETLEASE = 0x401
380 F_GETLK = 0x5
381 F_GETLK64 = 0x5
382 F_GETOWN = 0x9
383 F_GETOWN_EX = 0x10
384 F_GETPIPE_SZ = 0x408
385 F_GETSIG = 0xb
386 F_LOCK = 0x1
387 F_NOTIFY = 0x402
388 F_OK = 0x0
389 F_RDLCK = 0x0
390 F_SETFD = 0x2
391 F_SETFL = 0x4
392 F_SETLEASE = 0x400
393 F_SETLK = 0x6
394 F_SETLK64 = 0x6
395 F_SETLKW = 0x7
396 F_SETLKW64 = 0x7
397 F_SETOWN = 0x8
398 F_SETOWN_EX = 0xf
399 F_SETPIPE_SZ = 0x407
400 F_SETSIG = 0xa
401 F_SHLCK = 0x8
402 F_TEST = 0x3
403 F_TLOCK = 0x2
404 F_ULOCK = 0x0
405 F_UNLCK = 0x2
406 F_WRLCK = 0x1
407 HUPCL = 0x400
408 IBSHIFT = 0x10
409 ICANON = 0x2
410 ICMPV6_FILTER = 0x1
411 ICRNL = 0x100
412 IEXTEN = 0x8000
413 IFA_F_DADFAILED = 0x8
414 IFA_F_DEPRECATED = 0x20
415 IFA_F_HOMEADDRESS = 0x10
416 IFA_F_NODAD = 0x2
417 IFA_F_OPTIMISTIC = 0x4
418 IFA_F_PERMANENT = 0x80
419 IFA_F_SECONDARY = 0x1
420 IFA_F_TEMPORARY = 0x1
421 IFA_F_TENTATIVE = 0x40
422 IFA_MAX = 0x7
423 IFF_802_1Q_VLAN = 0x1
424 IFF_ALLMULTI = 0x200
425 IFF_AUTOMEDIA = 0x4000
426 IFF_BONDING = 0x20
427 IFF_BRIDGE_PORT = 0x4000
428 IFF_BROADCAST = 0x2
429 IFF_DEBUG = 0x4
430 IFF_DISABLE_NETPOLL = 0x1000
431 IFF_DONT_BRIDGE = 0x800
432 IFF_DORMANT = 0x20000
433 IFF_DYNAMIC = 0x8000
434 IFF_EBRIDGE = 0x2
435 IFF_ECHO = 0x40000
436 IFF_ISATAP = 0x80
437 IFF_LOOPBACK = 0x8
438 IFF_LOWER_UP = 0x10000
439 IFF_MACVLAN_PORT = 0x2000
440 IFF_MASTER = 0x400
441 IFF_MASTER_8023AD = 0x8
442 IFF_MASTER_ALB = 0x10
443 IFF_MASTER_ARPMON = 0x100
444 IFF_MULTICAST = 0x1000
445 IFF_NOARP = 0x80
446 IFF_NOTRAILERS = 0x20
447 IFF_NO_PI = 0x1000
448 IFF_ONE_QUEUE = 0x2000
449 IFF_OVS_DATAPATH = 0x8000
450 IFF_POINTOPOINT = 0x10
451 IFF_PORTSEL = 0x2000
452 IFF_PROMISC = 0x100
453 IFF_RUNNING = 0x40
454 IFF_SLAVE = 0x800
455 IFF_SLAVE_INACTIVE = 0x4
456 IFF_SLAVE_NEEDARP = 0x40
457 IFF_TAP = 0x2
458 IFF_TUN = 0x1
459 IFF_TUN_EXCL = 0x8000
460 IFF_TX_SKB_SHARING = 0x10000
461 IFF_UNICAST_FLT = 0x20000
462 IFF_UP = 0x1
463 IFF_VNET_HDR = 0x4000
464 IFF_VOLATILE = 0x70c5a
465 IFF_WAN_HDLC = 0x200
466 IFF_XMIT_DST_RELEASE = 0x400
467 IFNAMSIZ = 0x10
468 IGNBRK = 0x1
469 IGNCR = 0x80
470 IGNPAR = 0x4
471 IMAXBEL = 0x2000
472 INLCR = 0x40
473 INPCK = 0x10
474 IN_ACCESS = 0x1
475 IN_ALL_EVENTS = 0xfff
476 IN_ATTRIB = 0x4
477 IN_CLASSA_HOST = 0xffffff
478 IN_CLASSA_MAX = 0x80
479 IN_CLASSA_NET = 0xff000000
480 IN_CLASSA_NSHIFT = 0x18
481 IN_CLASSB_HOST = 0xffff
482 IN_CLASSB_MAX = 0x10000
483 IN_CLASSB_NET = 0xffff0000
484 IN_CLASSB_NSHIFT = 0x10
485 IN_CLASSC_HOST = 0xff
486 IN_CLASSC_NET = 0xffffff00
487 IN_CLASSC_NSHIFT = 0x8
488 IN_CLOEXEC = 0x80000
489 IN_CLOSE = 0x18
490 IN_CLOSE_NOWRITE = 0x10
491 IN_CLOSE_WRITE = 0x8
492 IN_CREATE = 0x100
493 IN_DELETE = 0x200
494 IN_DELETE_SELF = 0x400
495 IN_DONT_FOLLOW = 0x2000000
496 IN_EXCL_UNLINK = 0x4000000
497 IN_IGNORED = 0x8000
498 IN_ISDIR = 0x40000000
499 IN_LOOPBACKNET = 0x7f
500 IN_MASK_ADD = 0x20000000
501 IN_MODIFY = 0x2
502 IN_MOVE = 0xc0
503 IN_MOVED_FROM = 0x40
504 IN_MOVED_TO = 0x80
505 IN_MOVE_SELF = 0x800
506 IN_NONBLOCK = 0x800
507 IN_ONESHOT = 0x80000000
508 IN_ONLYDIR = 0x1000000
509 IN_OPEN = 0x20
510 IN_Q_OVERFLOW = 0x4000
511 IN_UNMOUNT = 0x2000
512 IPPROTO_AH = 0x33
513 IPPROTO_COMP = 0x6c
514 IPPROTO_DCCP = 0x21
515 IPPROTO_DSTOPTS = 0x3c
516 IPPROTO_EGP = 0x8
517 IPPROTO_ENCAP = 0x62
518 IPPROTO_ESP = 0x32
519 IPPROTO_FRAGMENT = 0x2c
520 IPPROTO_GRE = 0x2f
521 IPPROTO_HOPOPTS = 0x0
522 IPPROTO_ICMP = 0x1
523 IPPROTO_ICMPV6 = 0x3a
524 IPPROTO_IDP = 0x16
525 IPPROTO_IGMP = 0x2
526 IPPROTO_IP = 0x0
527 IPPROTO_IPIP = 0x4
528 IPPROTO_IPV6 = 0x29
529 IPPROTO_MTP = 0x5c
530 IPPROTO_NONE = 0x3b
531 IPPROTO_PIM = 0x67
532 IPPROTO_PUP = 0xc
533 IPPROTO_RAW = 0xff
534 IPPROTO_ROUTING = 0x2b
535 IPPROTO_RSVP = 0x2e
536 IPPROTO_SCTP = 0x84
537 IPPROTO_TCP = 0x6
538 IPPROTO_TP = 0x1d
539 IPPROTO_UDP = 0x11
540 IPPROTO_UDPLITE = 0x88
541 IPV6_2292DSTOPTS = 0x4
542 IPV6_2292HOPLIMIT = 0x8
543 IPV6_2292HOPOPTS = 0x3
544 IPV6_2292PKTINFO = 0x2
545 IPV6_2292PKTOPTIONS = 0x6
546 IPV6_2292RTHDR = 0x5
547 IPV6_ADDRFORM = 0x1
548 IPV6_ADD_MEMBERSHIP = 0x14
549 IPV6_AUTHHDR = 0xa
550 IPV6_CHECKSUM = 0x7
551 IPV6_DROP_MEMBERSHIP = 0x15
552 IPV6_DSTOPTS = 0x3b
553 IPV6_HOPLIMIT = 0x34
554 IPV6_HOPOPTS = 0x36
555 IPV6_IPSEC_POLICY = 0x22
556 IPV6_JOIN_ANYCAST = 0x1b
557 IPV6_JOIN_GROUP = 0x14
558 IPV6_LEAVE_ANYCAST = 0x1c
559 IPV6_LEAVE_GROUP = 0x15
560 IPV6_MTU = 0x18
561 IPV6_MTU_DISCOVER = 0x17
562 IPV6_MULTICAST_HOPS = 0x12
563 IPV6_MULTICAST_IF = 0x11
564 IPV6_MULTICAST_LOOP = 0x13
565 IPV6_NEXTHOP = 0x9
566 IPV6_PKTINFO = 0x32
567 IPV6_PMTUDISC_DO = 0x2
568 IPV6_PMTUDISC_DONT = 0x0
569 IPV6_PMTUDISC_PROBE = 0x3
570 IPV6_PMTUDISC_WANT = 0x1
571 IPV6_RECVDSTOPTS = 0x3a
572 IPV6_RECVERR = 0x19
573 IPV6_RECVHOPLIMIT = 0x33
574 IPV6_RECVHOPOPTS = 0x35
575 IPV6_RECVPKTINFO = 0x31
576 IPV6_RECVRTHDR = 0x38
577 IPV6_RECVTCLASS = 0x42
578 IPV6_ROUTER_ALERT = 0x16
579 IPV6_RTHDR = 0x39
580 IPV6_RTHDRDSTOPTS = 0x37
581 IPV6_RTHDR_LOOSE = 0x0
582 IPV6_RTHDR_STRICT = 0x1
583 IPV6_RTHDR_TYPE_0 = 0x0
584 IPV6_RXDSTOPTS = 0x3b
585 IPV6_RXHOPOPTS = 0x36
586 IPV6_TCLASS = 0x43
587 IPV6_UNICAST_HOPS = 0x10
588 IPV6_V6ONLY = 0x1a
589 IPV6_XFRM_POLICY = 0x23
590 IP_ADD_MEMBERSHIP = 0x23
591 IP_ADD_SOURCE_MEMBERSHIP = 0x27
592 IP_BLOCK_SOURCE = 0x26
593 IP_DEFAULT_MULTICAST_LOOP = 0x1
594 IP_DEFAULT_MULTICAST_TTL = 0x1
595 IP_DF = 0x4000
596 IP_DROP_MEMBERSHIP = 0x24
597 IP_DROP_SOURCE_MEMBERSHIP = 0x28
598 IP_FREEBIND = 0xf
599 IP_HDRINCL = 0x3
600 IP_IPSEC_POLICY = 0x10
601 IP_MAXPACKET = 0xffff
602 IP_MAX_MEMBERSHIPS = 0x14
603 IP_MF = 0x2000
604 IP_MINTTL = 0x15
605 IP_MSFILTER = 0x29
606 IP_MSS = 0x240
607 IP_MTU = 0xe
608 IP_MTU_DISCOVER = 0xa
609 IP_MULTICAST_ALL = 0x31
610 IP_MULTICAST_IF = 0x20
611 IP_MULTICAST_LOOP = 0x22
612 IP_MULTICAST_TTL = 0x21
613 IP_OFFMASK = 0x1fff
614 IP_OPTIONS = 0x4
615 IP_ORIGDSTADDR = 0x14
616 IP_PASSSEC = 0x12
617 IP_PKTINFO = 0x8
618 IP_PKTOPTIONS = 0x9
619 IP_PMTUDISC = 0xa
620 IP_PMTUDISC_DO = 0x2
621 IP_PMTUDISC_DONT = 0x0
622 IP_PMTUDISC_PROBE = 0x3
623 IP_PMTUDISC_WANT = 0x1
624 IP_RECVERR = 0xb
625 IP_RECVOPTS = 0x6
626 IP_RECVORIGDSTADDR = 0x14
627 IP_RECVRETOPTS = 0x7
628 IP_RECVTOS = 0xd
629 IP_RECVTTL = 0xc
630 IP_RETOPTS = 0x7
631 IP_RF = 0x8000
632 IP_ROUTER_ALERT = 0x5
633 IP_TOS = 0x1
634 IP_TRANSPARENT = 0x13
635 IP_TTL = 0x2
636 IP_UNBLOCK_SOURCE = 0x25
637 IP_XFRM_POLICY = 0x11
638 ISIG = 0x1
639 ISTRIP = 0x20
640 IUCLC = 0x200
641 IUTF8 = 0x4000
642 IXANY = 0x800
643 IXOFF = 0x1000
644 IXON = 0x400
645 LINUX_REBOOT_CMD_CAD_OFF = 0x0
646 LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
647 LINUX_REBOOT_CMD_HALT = 0xcdef0123
648 LINUX_REBOOT_CMD_KEXEC = 0x45584543
649 LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc
650 LINUX_REBOOT_CMD_RESTART = 0x1234567
651 LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4
652 LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
653 LINUX_REBOOT_MAGIC1 = 0xfee1dead
654 LINUX_REBOOT_MAGIC2 = 0x28121969
655 LOCK_EX = 0x2
656 LOCK_NB = 0x4
657 LOCK_SH = 0x1
658 LOCK_UN = 0x8
659 MADV_DOFORK = 0xb
660 MADV_DONTFORK = 0xa
661 MADV_DONTNEED = 0x4
662 MADV_HUGEPAGE = 0xe
663 MADV_HWPOISON = 0x64
664 MADV_MERGEABLE = 0xc
665 MADV_NOHUGEPAGE = 0xf
666 MADV_NORMAL = 0x0
667 MADV_RANDOM = 0x1
668 MADV_REMOVE = 0x9
669 MADV_SEQUENTIAL = 0x2
670 MADV_UNMERGEABLE = 0xd
671 MADV_WILLNEED = 0x3
672 MAP_32BIT = 0x40
673 MAP_ANON = 0x20
674 MAP_ANONYMOUS = 0x20
675 MAP_DENYWRITE = 0x800
676 MAP_EXECUTABLE = 0x1000
677 MAP_FILE = 0x0
678 MAP_FIXED = 0x10
679 MAP_GROWSDOWN = 0x100
680 MAP_HUGETLB = 0x40000
681 MAP_LOCKED = 0x2000
682 MAP_NONBLOCK = 0x10000
683 MAP_NORESERVE = 0x4000
684 MAP_POPULATE = 0x8000
685 MAP_PRIVATE = 0x2
686 MAP_SHARED = 0x1
687 MAP_STACK = 0x20000
688 MAP_TYPE = 0xf
689 MCL_CURRENT = 0x1
690 MCL_FUTURE = 0x2
691 MNT_DETACH = 0x2
692 MNT_EXPIRE = 0x4
693 MNT_FORCE = 0x1
694 MSG_CMSG_CLOEXEC = 0x40000000
695 MSG_CONFIRM = 0x800
696 MSG_CTRUNC = 0x8
697 MSG_DONTROUTE = 0x4
698 MSG_DONTWAIT = 0x40
699 MSG_EOR = 0x80
700 MSG_ERRQUEUE = 0x2000
701 MSG_FASTOPEN = 0x20000000
702 MSG_FIN = 0x200
703 MSG_MORE = 0x8000
704 MSG_NOSIGNAL = 0x4000
705 MSG_OOB = 0x1
706 MSG_PEEK = 0x2
707 MSG_PROXY = 0x10
708 MSG_RST = 0x1000
709 MSG_SYN = 0x400
710 MSG_TRUNC = 0x20
711 MSG_TRYHARD = 0x4
712 MSG_WAITALL = 0x100
713 MSG_WAITFORONE = 0x10000
714 MS_ACTIVE = 0x40000000
715 MS_ASYNC = 0x1
716 MS_BIND = 0x1000
717 MS_DIRSYNC = 0x80
718 MS_INVALIDATE = 0x2
719 MS_I_VERSION = 0x800000
720 MS_KERNMOUNT = 0x400000
721 MS_MANDLOCK = 0x40
722 MS_MGC_MSK = 0xffff0000
723 MS_MGC_VAL = 0xc0ed0000
724 MS_MOVE = 0x2000
725 MS_NOATIME = 0x400
726 MS_NODEV = 0x4
727 MS_NODIRATIME = 0x800
728 MS_NOEXEC = 0x8
729 MS_NOSUID = 0x2
730 MS_NOUSER = -0x80000000
731 MS_POSIXACL = 0x10000
732 MS_PRIVATE = 0x40000
733 MS_RDONLY = 0x1
734 MS_REC = 0x4000
735 MS_RELATIME = 0x200000
736 MS_REMOUNT = 0x20
737 MS_RMT_MASK = 0x800051
738 MS_SHARED = 0x100000
739 MS_SILENT = 0x8000
740 MS_SLAVE = 0x80000
741 MS_STRICTATIME = 0x1000000
742 MS_SYNC = 0x4
743 MS_SYNCHRONOUS = 0x10
744 MS_UNBINDABLE = 0x20000
745 NAME_MAX = 0xff
746 NETLINK_ADD_MEMBERSHIP = 0x1
747 NETLINK_AUDIT = 0x9
748 NETLINK_BROADCAST_ERROR = 0x4
749 NETLINK_CONNECTOR = 0xb
750 NETLINK_CRYPTO = 0x15
751 NETLINK_DNRTMSG = 0xe
752 NETLINK_DROP_MEMBERSHIP = 0x2
753 NETLINK_ECRYPTFS = 0x13
754 NETLINK_FIB_LOOKUP = 0xa
755 NETLINK_FIREWALL = 0x3
756 NETLINK_GENERIC = 0x10
757 NETLINK_INET_DIAG = 0x4
758 NETLINK_IP6_FW = 0xd
759 NETLINK_ISCSI = 0x8
760 NETLINK_KOBJECT_UEVENT = 0xf
761 NETLINK_NETFILTER = 0xc
762 NETLINK_NFLOG = 0x5
763 NETLINK_NO_ENOBUFS = 0x5
764 NETLINK_PKTINFO = 0x3
765 NETLINK_RDMA = 0x14
766 NETLINK_ROUTE = 0x0
767 NETLINK_SCSITRANSPORT = 0x12
768 NETLINK_SELINUX = 0x7
769 NETLINK_UNUSED = 0x1
770 NETLINK_USERSOCK = 0x2
771 NETLINK_XFRM = 0x6
772 NL0 = 0x0
773 NL1 = 0x100
774 NLA_ALIGNTO = 0x4
775 NLA_F_NESTED = 0x8000
776 NLA_F_NET_BYTEORDER = 0x4000
777 NLA_HDRLEN = 0x4
778 NLDLY = 0x100
779 NLMSG_ALIGNTO = 0x4
780 NLMSG_DONE = 0x3
781 NLMSG_ERROR = 0x2
782 NLMSG_HDRLEN = 0x10
783 NLMSG_MIN_TYPE = 0x10
784 NLMSG_NOOP = 0x1
785 NLMSG_OVERRUN = 0x4
786 NLM_F_ACK = 0x4
787 NLM_F_APPEND = 0x800
788 NLM_F_ATOMIC = 0x400
789 NLM_F_CREATE = 0x400
790 NLM_F_DUMP = 0x300
791 NLM_F_DUMP_INTR = 0x10
792 NLM_F_ECHO = 0x8
793 NLM_F_EXCL = 0x200
794 NLM_F_MATCH = 0x200
795 NLM_F_MULTI = 0x2
796 NLM_F_REPLACE = 0x100
797 NLM_F_REQUEST = 0x1
798 NLM_F_ROOT = 0x100
799 NOFLSH = 0x80
800 OCRNL = 0x8
801 OFDEL = 0x80
802 OFILL = 0x40
803 OLCUC = 0x2
804 ONLCR = 0x4
805 ONLRET = 0x20
806 ONOCR = 0x10
807 OPOST = 0x1
808 O_ACCMODE = 0x3
809 O_APPEND = 0x400
810 O_ASYNC = 0x2000
811 O_CLOEXEC = 0x80000
812 O_CREAT = 0x40
813 O_DIRECT = 0x4000
814 O_DIRECTORY = 0x10000
815 O_DSYNC = 0x1000
816 O_EXCL = 0x80
817 O_FSYNC = 0x101000
818 O_LARGEFILE = 0x0
819 O_NDELAY = 0x800
820 O_NOATIME = 0x40000
821 O_NOCTTY = 0x100
822 O_NOFOLLOW = 0x20000
823 O_NONBLOCK = 0x800
824 O_PATH = 0x200000
825 O_RDONLY = 0x0
826 O_RDWR = 0x2
827 O_RSYNC = 0x101000
828 O_SYNC = 0x101000
829 O_TRUNC = 0x200
830 O_WRONLY = 0x1
831 PACKET_ADD_MEMBERSHIP = 0x1
832 PACKET_AUXDATA = 0x8
833 PACKET_BROADCAST = 0x1
834 PACKET_COPY_THRESH = 0x7
835 PACKET_DROP_MEMBERSHIP = 0x2
836 PACKET_FANOUT = 0x12
837 PACKET_FANOUT_CPU = 0x2
838 PACKET_FANOUT_FLAG_DEFRAG = 0x8000
839 PACKET_FANOUT_HASH = 0x0
840 PACKET_FANOUT_LB = 0x1
841 PACKET_FASTROUTE = 0x6
842 PACKET_HDRLEN = 0xb
843 PACKET_HOST = 0x0
844 PACKET_LOOPBACK = 0x5
845 PACKET_LOSS = 0xe
846 PACKET_MR_ALLMULTI = 0x2
847 PACKET_MR_MULTICAST = 0x0
848 PACKET_MR_PROMISC = 0x1
849 PACKET_MR_UNICAST = 0x3
850 PACKET_MULTICAST = 0x2
851 PACKET_ORIGDEV = 0x9
852 PACKET_OTHERHOST = 0x3
853 PACKET_OUTGOING = 0x4
854 PACKET_RECV_OUTPUT = 0x3
855 PACKET_RESERVE = 0xc
856 PACKET_RX_RING = 0x5
857 PACKET_STATISTICS = 0x6
858 PACKET_TIMESTAMP = 0x11
859 PACKET_TX_RING = 0xd
860 PACKET_TX_TIMESTAMP = 0x10
861 PACKET_VERSION = 0xa
862 PACKET_VNET_HDR = 0xf
863 PARENB = 0x100
864 PARITY_CRC16_PR0 = 0x2
865 PARITY_CRC16_PR0_CCITT = 0x4
866 PARITY_CRC16_PR1 = 0x3
867 PARITY_CRC16_PR1_CCITT = 0x5
868 PARITY_CRC32_PR0_CCITT = 0x6
869 PARITY_CRC32_PR1_CCITT = 0x7
870 PARITY_DEFAULT = 0x0
871 PARITY_NONE = 0x1
872 PARMRK = 0x8
873 PARODD = 0x200
874 PENDIN = 0x4000
875 PRIO_PGRP = 0x1
876 PRIO_PROCESS = 0x0
877 PRIO_USER = 0x2
878 PROT_EXEC = 0x4
879 PROT_GROWSDOWN = 0x1000000
880 PROT_GROWSUP = 0x2000000
881 PROT_NONE = 0x0
882 PROT_READ = 0x1
883 PROT_WRITE = 0x2
884 PR_CAPBSET_DROP = 0x18
885 PR_CAPBSET_READ = 0x17
886 PR_ENDIAN_BIG = 0x0
887 PR_ENDIAN_LITTLE = 0x1
888 PR_ENDIAN_PPC_LITTLE = 0x2
889 PR_FPEMU_NOPRINT = 0x1
890 PR_FPEMU_SIGFPE = 0x2
891 PR_FP_EXC_ASYNC = 0x2
892 PR_FP_EXC_DISABLED = 0x0
893 PR_FP_EXC_DIV = 0x10000
894 PR_FP_EXC_INV = 0x100000
895 PR_FP_EXC_NONRECOV = 0x1
896 PR_FP_EXC_OVF = 0x20000
897 PR_FP_EXC_PRECISE = 0x3
898 PR_FP_EXC_RES = 0x80000
899 PR_FP_EXC_SW_ENABLE = 0x80
900 PR_FP_EXC_UND = 0x40000
901 PR_GET_DUMPABLE = 0x3
902 PR_GET_ENDIAN = 0x13
903 PR_GET_FPEMU = 0x9
904 PR_GET_FPEXC = 0xb
905 PR_GET_KEEPCAPS = 0x7
906 PR_GET_NAME = 0x10
907 PR_GET_NO_NEW_PRIVS = 0x27
908 PR_GET_PDEATHSIG = 0x2
909 PR_GET_SECCOMP = 0x15
910 PR_GET_SECUREBITS = 0x1b
911 PR_GET_TIMERSLACK = 0x1e
912 PR_GET_TIMING = 0xd
913 PR_GET_TSC = 0x19
914 PR_GET_UNALIGN = 0x5
915 PR_MCE_KILL = 0x21
916 PR_MCE_KILL_CLEAR = 0x0
917 PR_MCE_KILL_DEFAULT = 0x2
918 PR_MCE_KILL_EARLY = 0x1
919 PR_MCE_KILL_GET = 0x22
920 PR_MCE_KILL_LATE = 0x0
921 PR_MCE_KILL_SET = 0x1
922 PR_SET_DUMPABLE = 0x4
923 PR_SET_ENDIAN = 0x14
924 PR_SET_FPEMU = 0xa
925 PR_SET_FPEXC = 0xc
926 PR_SET_KEEPCAPS = 0x8
927 PR_SET_MM = 0x23
928 PR_SET_MM_BRK = 0x7
929 PR_SET_MM_END_CODE = 0x2
930 PR_SET_MM_END_DATA = 0x4
931 PR_SET_MM_START_BRK = 0x6
932 PR_SET_MM_START_CODE = 0x1
933 PR_SET_MM_START_DATA = 0x3
934 PR_SET_MM_START_STACK = 0x5
935 PR_SET_NAME = 0xf
936 PR_SET_NO_NEW_PRIVS = 0x26
937 PR_SET_PDEATHSIG = 0x1
938 PR_SET_PTRACER = 0x59616d61
939 PR_SET_PTRACER_ANY = -0x1
940 PR_SET_SECCOMP = 0x16
941 PR_SET_SECUREBITS = 0x1c
942 PR_SET_TIMERSLACK = 0x1d
943 PR_SET_TIMING = 0xe
944 PR_SET_TSC = 0x1a
945 PR_SET_UNALIGN = 0x6
946 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
947 PR_TASK_PERF_EVENTS_ENABLE = 0x20
948 PR_TIMING_STATISTICAL = 0x0
949 PR_TIMING_TIMESTAMP = 0x1
950 PR_TSC_ENABLE = 0x1
951 PR_TSC_SIGSEGV = 0x2
952 PR_UNALIGN_NOPRINT = 0x1
953 PR_UNALIGN_SIGBUS = 0x2
954 PTRACE_ARCH_PRCTL = 0x1e
955 PTRACE_ATTACH = 0x10
956 PTRACE_CONT = 0x7
957 PTRACE_DETACH = 0x11
958 PTRACE_EVENT_CLONE = 0x3
959 PTRACE_EVENT_EXEC = 0x4
960 PTRACE_EVENT_EXIT = 0x6
961 PTRACE_EVENT_FORK = 0x1
962 PTRACE_EVENT_SECCOMP = 0x7
963 PTRACE_EVENT_STOP = 0x80
964 PTRACE_EVENT_VFORK = 0x2
965 PTRACE_EVENT_VFORK_DONE = 0x5
966 PTRACE_GETEVENTMSG = 0x4201
967 PTRACE_GETFPREGS = 0xe
968 PTRACE_GETFPXREGS = 0x12
969 PTRACE_GETREGS = 0xc
970 PTRACE_GETREGSET = 0x4204
971 PTRACE_GETSIGINFO = 0x4202
972 PTRACE_GET_THREAD_AREA = 0x19
973 PTRACE_INTERRUPT = 0x4207
974 PTRACE_KILL = 0x8
975 PTRACE_LISTEN = 0x4208
976 PTRACE_OLDSETOPTIONS = 0x15
977 PTRACE_O_MASK = 0xff
978 PTRACE_O_TRACECLONE = 0x8
979 PTRACE_O_TRACEEXEC = 0x10
980 PTRACE_O_TRACEEXIT = 0x40
981 PTRACE_O_TRACEFORK = 0x2
982 PTRACE_O_TRACESECCOMP = 0x80
983 PTRACE_O_TRACESYSGOOD = 0x1
984 PTRACE_O_TRACEVFORK = 0x4
985 PTRACE_O_TRACEVFORKDONE = 0x20
986 PTRACE_PEEKDATA = 0x2
987 PTRACE_PEEKTEXT = 0x1
988 PTRACE_PEEKUSR = 0x3
989 PTRACE_POKEDATA = 0x5
990 PTRACE_POKETEXT = 0x4
991 PTRACE_POKEUSR = 0x6
992 PTRACE_SEIZE = 0x4206
993 PTRACE_SEIZE_DEVEL = 0x80000000
994 PTRACE_SETFPREGS = 0xf
995 PTRACE_SETFPXREGS = 0x13
996 PTRACE_SETOPTIONS = 0x4200
997 PTRACE_SETREGS = 0xd
998 PTRACE_SETREGSET = 0x4205
999 PTRACE_SETSIGINFO = 0x4203
1000 PTRACE_SET_THREAD_AREA = 0x1a
1001 PTRACE_SINGLEBLOCK = 0x21
1002 PTRACE_SINGLESTEP = 0x9
1003 PTRACE_SYSCALL = 0x18
1004 PTRACE_SYSEMU = 0x1f
1005 PTRACE_SYSEMU_SINGLESTEP = 0x20
1006 PTRACE_TRACEME = 0x0
1007 RLIMIT_AS = 0x9
1008 RLIMIT_CORE = 0x4
1009 RLIMIT_CPU = 0x0
1010 RLIMIT_DATA = 0x2
1011 RLIMIT_FSIZE = 0x1
1012 RLIMIT_NOFILE = 0x7
1013 RLIMIT_STACK = 0x3
1014 RLIM_INFINITY = -0x1
1015 RTAX_ADVMSS = 0x8
1016 RTAX_CWND = 0x7
1017 RTAX_FEATURES = 0xc
1018 RTAX_FEATURE_ALLFRAG = 0x8
1019 RTAX_FEATURE_ECN = 0x1
1020 RTAX_FEATURE_SACK = 0x2
1021 RTAX_FEATURE_TIMESTAMP = 0x4
1022 RTAX_HOPLIMIT = 0xa
1023 RTAX_INITCWND = 0xb
1024 RTAX_INITRWND = 0xe
1025 RTAX_LOCK = 0x1
1026 RTAX_MAX = 0xe
1027 RTAX_MTU = 0x2
1028 RTAX_REORDERING = 0x9
1029 RTAX_RTO_MIN = 0xd
1030 RTAX_RTT = 0x4
1031 RTAX_RTTVAR = 0x5
1032 RTAX_SSTHRESH = 0x6
1033 RTAX_UNSPEC = 0x0
1034 RTAX_WINDOW = 0x3
1035 RTA_ALIGNTO = 0x4
1036 RTA_MAX = 0x10
1037 RTCF_DIRECTSRC = 0x4000000
1038 RTCF_DOREDIRECT = 0x1000000
1039 RTCF_LOG = 0x2000000
1040 RTCF_MASQ = 0x400000
1041 RTCF_NAT = 0x800000
1042 RTCF_VALVE = 0x200000
1043 RTF_ADDRCLASSMASK = 0xf8000000
1044 RTF_ADDRCONF = 0x40000
1045 RTF_ALLONLINK = 0x20000
1046 RTF_BROADCAST = 0x10000000
1047 RTF_CACHE = 0x1000000
1048 RTF_DEFAULT = 0x10000
1049 RTF_DYNAMIC = 0x10
1050 RTF_FLOW = 0x2000000
1051 RTF_GATEWAY = 0x2
1052 RTF_HOST = 0x4
1053 RTF_INTERFACE = 0x40000000
1054 RTF_IRTT = 0x100
1055 RTF_LINKRT = 0x100000
1056 RTF_LOCAL = 0x80000000
1057 RTF_MODIFIED = 0x20
1058 RTF_MSS = 0x40
1059 RTF_MTU = 0x40
1060 RTF_MULTICAST = 0x20000000
1061 RTF_NAT = 0x8000000
1062 RTF_NOFORWARD = 0x1000
1063 RTF_NONEXTHOP = 0x200000
1064 RTF_NOPMTUDISC = 0x4000
1065 RTF_POLICY = 0x4000000
1066 RTF_REINSTATE = 0x8
1067 RTF_REJECT = 0x200
1068 RTF_STATIC = 0x400
1069 RTF_THROW = 0x2000
1070 RTF_UP = 0x1
1071 RTF_WINDOW = 0x80
1072 RTF_XRESOLVE = 0x800
1073 RTM_BASE = 0x10
1074 RTM_DELACTION = 0x31
1075 RTM_DELADDR = 0x15
1076 RTM_DELADDRLABEL = 0x49
1077 RTM_DELLINK = 0x11
1078 RTM_DELNEIGH = 0x1d
1079 RTM_DELQDISC = 0x25
1080 RTM_DELROUTE = 0x19
1081 RTM_DELRULE = 0x21
1082 RTM_DELTCLASS = 0x29
1083 RTM_DELTFILTER = 0x2d
1084 RTM_F_CLONED = 0x200
1085 RTM_F_EQUALIZE = 0x400
1086 RTM_F_NOTIFY = 0x100
1087 RTM_F_PREFIX = 0x800
1088 RTM_GETACTION = 0x32
1089 RTM_GETADDR = 0x16
1090 RTM_GETADDRLABEL = 0x4a
1091 RTM_GETANYCAST = 0x3e
1092 RTM_GETDCB = 0x4e
1093 RTM_GETLINK = 0x12
1094 RTM_GETMULTICAST = 0x3a
1095 RTM_GETNEIGH = 0x1e
1096 RTM_GETNEIGHTBL = 0x42
1097 RTM_GETQDISC = 0x26
1098 RTM_GETROUTE = 0x1a
1099 RTM_GETRULE = 0x22
1100 RTM_GETTCLASS = 0x2a
1101 RTM_GETTFILTER = 0x2e
1102 RTM_MAX = 0x4f
1103 RTM_NEWACTION = 0x30
1104 RTM_NEWADDR = 0x14
1105 RTM_NEWADDRLABEL = 0x48
1106 RTM_NEWLINK = 0x10
1107 RTM_NEWNDUSEROPT = 0x44
1108 RTM_NEWNEIGH = 0x1c
1109 RTM_NEWNEIGHTBL = 0x40
1110 RTM_NEWPREFIX = 0x34
1111 RTM_NEWQDISC = 0x24
1112 RTM_NEWROUTE = 0x18
1113 RTM_NEWRULE = 0x20
1114 RTM_NEWTCLASS = 0x28
1115 RTM_NEWTFILTER = 0x2c
1116 RTM_NR_FAMILIES = 0x10
1117 RTM_NR_MSGTYPES = 0x40
1118 RTM_SETDCB = 0x4f
1119 RTM_SETLINK = 0x13
1120 RTM_SETNEIGHTBL = 0x43
1121 RTNH_ALIGNTO = 0x4
1122 RTNH_F_DEAD = 0x1
1123 RTNH_F_ONLINK = 0x4
1124 RTNH_F_PERVASIVE = 0x2
1125 RTN_MAX = 0xb
1126 RTPROT_BIRD = 0xc
1127 RTPROT_BOOT = 0x3
1128 RTPROT_DHCP = 0x10
1129 RTPROT_DNROUTED = 0xd
1130 RTPROT_GATED = 0x8
1131 RTPROT_KERNEL = 0x2
1132 RTPROT_MRT = 0xa
1133 RTPROT_NTK = 0xf
1134 RTPROT_RA = 0x9
1135 RTPROT_REDIRECT = 0x1
1136 RTPROT_STATIC = 0x4
1137 RTPROT_UNSPEC = 0x0
1138 RTPROT_XORP = 0xe
1139 RTPROT_ZEBRA = 0xb
1140 RT_CLASS_DEFAULT = 0xfd
1141 RT_CLASS_LOCAL = 0xff
1142 RT_CLASS_MAIN = 0xfe
1143 RT_CLASS_MAX = 0xff
1144 RT_CLASS_UNSPEC = 0x0
1145 RUSAGE_CHILDREN = -0x1
1146 RUSAGE_SELF = 0x0
1147 RUSAGE_THREAD = 0x1
1148 SCM_CREDENTIALS = 0x2
1149 SCM_RIGHTS = 0x1
1150 SCM_TIMESTAMP = 0x1d
1151 SCM_TIMESTAMPING = 0x25
1152 SCM_TIMESTAMPNS = 0x23
1153 SHUT_RD = 0x0
1154 SHUT_RDWR = 0x2
1155 SHUT_WR = 0x1
1156 SIOCADDDLCI = 0x8980
1157 SIOCADDMULTI = 0x8931
1158 SIOCADDRT = 0x890b
1159 SIOCATMARK = 0x8905
1160 SIOCDARP = 0x8953
1161 SIOCDELDLCI = 0x8981
1162 SIOCDELMULTI = 0x8932
1163 SIOCDELRT = 0x890c
1164 SIOCDEVPRIVATE = 0x89f0
1165 SIOCDIFADDR = 0x8936
1166 SIOCDRARP = 0x8960
1167 SIOCGARP = 0x8954
1168 SIOCGIFADDR = 0x8915
1169 SIOCGIFBR = 0x8940
1170 SIOCGIFBRDADDR = 0x8919
1171 SIOCGIFCONF = 0x8912
1172 SIOCGIFCOUNT = 0x8938
1173 SIOCGIFDSTADDR = 0x8917
1174 SIOCGIFENCAP = 0x8925
1175 SIOCGIFFLAGS = 0x8913
1176 SIOCGIFHWADDR = 0x8927
1177 SIOCGIFINDEX = 0x8933
1178 SIOCGIFMAP = 0x8970
1179 SIOCGIFMEM = 0x891f
1180 SIOCGIFMETRIC = 0x891d
1181 SIOCGIFMTU = 0x8921
1182 SIOCGIFNAME = 0x8910
1183 SIOCGIFNETMASK = 0x891b
1184 SIOCGIFPFLAGS = 0x8935
1185 SIOCGIFSLAVE = 0x8929
1186 SIOCGIFTXQLEN = 0x8942
1187 SIOCGPGRP = 0x8904
1188 SIOCGRARP = 0x8961
1189 SIOCGSTAMP = 0x8906
1190 SIOCGSTAMPNS = 0x8907
1191 SIOCPROTOPRIVATE = 0x89e0
1192 SIOCRTMSG = 0x890d
1193 SIOCSARP = 0x8955
1194 SIOCSIFADDR = 0x8916
1195 SIOCSIFBR = 0x8941
1196 SIOCSIFBRDADDR = 0x891a
1197 SIOCSIFDSTADDR = 0x8918
1198 SIOCSIFENCAP = 0x8926
1199 SIOCSIFFLAGS = 0x8914
1200 SIOCSIFHWADDR = 0x8924
1201 SIOCSIFHWBROADCAST = 0x8937
1202 SIOCSIFLINK = 0x8911
1203 SIOCSIFMAP = 0x8971
1204 SIOCSIFMEM = 0x8920
1205 SIOCSIFMETRIC = 0x891e
1206 SIOCSIFMTU = 0x8922
1207 SIOCSIFNAME = 0x8923
1208 SIOCSIFNETMASK = 0x891c
1209 SIOCSIFPFLAGS = 0x8934
1210 SIOCSIFSLAVE = 0x8930
1211 SIOCSIFTXQLEN = 0x8943
1212 SIOCSPGRP = 0x8902
1213 SIOCSRARP = 0x8962
1214 SOCK_CLOEXEC = 0x80000
1215 SOCK_DCCP = 0x6
1216 SOCK_DGRAM = 0x2
1217 SOCK_NONBLOCK = 0x800
1218 SOCK_PACKET = 0xa
1219 SOCK_RAW = 0x3
1220 SOCK_RDM = 0x4
1221 SOCK_SEQPACKET = 0x5
1222 SOCK_STREAM = 0x1
1223 SOL_AAL = 0x109
1224 SOL_ATM = 0x108
1225 SOL_DECNET = 0x105
1226 SOL_ICMPV6 = 0x3a
1227 SOL_IP = 0x0
1228 SOL_IPV6 = 0x29
1229 SOL_IRDA = 0x10a
1230 SOL_PACKET = 0x107
1231 SOL_RAW = 0xff
1232 SOL_SOCKET = 0x1
1233 SOL_TCP = 0x6
1234 SOL_X25 = 0x106
1235 SOMAXCONN = 0x80
1236 SO_ACCEPTCONN = 0x1e
1237 SO_ATTACH_FILTER = 0x1a
1238 SO_BINDTODEVICE = 0x19
1239 SO_BROADCAST = 0x6
1240 SO_BSDCOMPAT = 0xe
1241 SO_DEBUG = 0x1
1242 SO_DETACH_FILTER = 0x1b
1243 SO_DOMAIN = 0x27
1244 SO_DONTROUTE = 0x5
1245 SO_ERROR = 0x4
1246 SO_KEEPALIVE = 0x9
1247 SO_LINGER = 0xd
1248 SO_MARK = 0x24
1249 SO_NO_CHECK = 0xb
1250 SO_OOBINLINE = 0xa
1251 SO_PASSCRED = 0x10
1252 SO_PASSSEC = 0x22
1253 SO_PEERCRED = 0x11
1254 SO_PEERNAME = 0x1c
1255 SO_PEERSEC = 0x1f
1256 SO_PRIORITY = 0xc
1257 SO_PROTOCOL = 0x26
1258 SO_RCVBUF = 0x8
1259 SO_RCVBUFFORCE = 0x21
1260 SO_RCVLOWAT = 0x12
1261 SO_RCVTIMEO = 0x14
1262 SO_REUSEADDR = 0x2
1263 SO_RXQ_OVFL = 0x28
1264 SO_SECURITY_AUTHENTICATION = 0x16
1265 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
1266 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
1267 SO_SNDBUF = 0x7
1268 SO_SNDBUFFORCE = 0x20
1269 SO_SNDLOWAT = 0x13
1270 SO_SNDTIMEO = 0x15
1271 SO_TIMESTAMP = 0x1d
1272 SO_TIMESTAMPING = 0x25
1273 SO_TIMESTAMPNS = 0x23
1274 SO_TYPE = 0x3
1275 S_BLKSIZE = 0x200
1276 S_IEXEC = 0x40
1277 S_IFBLK = 0x6000
1278 S_IFCHR = 0x2000
1279 S_IFDIR = 0x4000
1280 S_IFIFO = 0x1000
1281 S_IFLNK = 0xa000
1282 S_IFMT = 0xf000
1283 S_IFREG = 0x8000
1284 S_IFSOCK = 0xc000
1285 S_IREAD = 0x100
1286 S_IRGRP = 0x20
1287 S_IROTH = 0x4
1288 S_IRUSR = 0x100
1289 S_IRWXG = 0x38
1290 S_IRWXO = 0x7
1291 S_IRWXU = 0x1c0
1292 S_ISGID = 0x400
1293 S_ISUID = 0x800
1294 S_ISVTX = 0x200
1295 S_IWGRP = 0x10
1296 S_IWOTH = 0x2
1297 S_IWRITE = 0x80
1298 S_IWUSR = 0x80
1299 S_IXGRP = 0x8
1300 S_IXOTH = 0x1
1301 S_IXUSR = 0x40
1302 TAB0 = 0x0
1303 TAB1 = 0x800
1304 TAB2 = 0x1000
1305 TAB3 = 0x1800
1306 TABDLY = 0x1800
1307 TCFLSH = 0x540b
1308 TCGETA = 0x5405
1309 TCGETS = 0x5401
1310 TCGETS2 = 0x802c542a
1311 TCGETX = 0x5432
1312 TCIFLUSH = 0x0
1313 TCIOFF = 0x2
1314 TCIOFLUSH = 0x2
1315 TCION = 0x3
1316 TCOFLUSH = 0x1
1317 TCOOFF = 0x0
1318 TCOON = 0x1
1319 TCP_CONGESTION = 0xd
1320 TCP_CORK = 0x3
1321 TCP_DEFER_ACCEPT = 0x9
1322 TCP_INFO = 0xb
1323 TCP_KEEPCNT = 0x6
1324 TCP_KEEPIDLE = 0x4
1325 TCP_KEEPINTVL = 0x5
1326 TCP_LINGER2 = 0x8
1327 TCP_MAXSEG = 0x2
1328 TCP_MAXWIN = 0xffff
1329 TCP_MAX_WINSHIFT = 0xe
1330 TCP_MD5SIG = 0xe
1331 TCP_MD5SIG_MAXKEYLEN = 0x50
1332 TCP_MSS = 0x200
1333 TCP_NODELAY = 0x1
1334 TCP_QUICKACK = 0xc
1335 TCP_SYNCNT = 0x7
1336 TCP_WINDOW_CLAMP = 0xa
1337 TCSAFLUSH = 0x2
1338 TCSBRK = 0x5409
1339 TCSBRKP = 0x5425
1340 TCSETA = 0x5406
1341 TCSETAF = 0x5408
1342 TCSETAW = 0x5407
1343 TCSETS = 0x5402
1344 TCSETS2 = 0x402c542b
1345 TCSETSF = 0x5404
1346 TCSETSF2 = 0x402c542d
1347 TCSETSW = 0x5403
1348 TCSETSW2 = 0x402c542c
1349 TCSETX = 0x5433
1350 TCSETXF = 0x5434
1351 TCSETXW = 0x5435
1352 TCXONC = 0x540a
1353 TIOCCBRK = 0x5428
1354 TIOCCONS = 0x541d
1355 TIOCEXCL = 0x540c
1356 TIOCGDEV = 0x80045432
1357 TIOCGETD = 0x5424
1358 TIOCGEXCL = 0x80045440
1359 TIOCGICOUNT = 0x545d
1360 TIOCGLCKTRMIOS = 0x5456
1361 TIOCGPGRP = 0x540f
1362 TIOCGPKT = 0x80045438
1363 TIOCGPTLCK = 0x80045439
1364 TIOCGPTN = 0x80045430
1365 TIOCGRS485 = 0x542e
1366 TIOCGSERIAL = 0x541e
1367 TIOCGSID = 0x5429
1368 TIOCGSOFTCAR = 0x5419
1369 TIOCGWINSZ = 0x5413
1370 TIOCINQ = 0x541b
1371 TIOCLINUX = 0x541c
1372 TIOCMBIC = 0x5417
1373 TIOCMBIS = 0x5416
1374 TIOCMGET = 0x5415
1375 TIOCMIWAIT = 0x545c
1376 TIOCMSET = 0x5418
1377 TIOCM_CAR = 0x40
1378 TIOCM_CD = 0x40
1379 TIOCM_CTS = 0x20
1380 TIOCM_DSR = 0x100
1381 TIOCM_DTR = 0x2
1382 TIOCM_LE = 0x1
1383 TIOCM_RI = 0x80
1384 TIOCM_RNG = 0x80
1385 TIOCM_RTS = 0x4
1386 TIOCM_SR = 0x10
1387 TIOCM_ST = 0x8
1388 TIOCNOTTY = 0x5422
1389 TIOCNXCL = 0x540d
1390 TIOCOUTQ = 0x5411
1391 TIOCPKT = 0x5420
1392 TIOCPKT_DATA = 0x0
1393 TIOCPKT_DOSTOP = 0x20
1394 TIOCPKT_FLUSHREAD = 0x1
1395 TIOCPKT_FLUSHWRITE = 0x2
1396 TIOCPKT_IOCTL = 0x40
1397 TIOCPKT_NOSTOP = 0x10
1398 TIOCPKT_START = 0x8
1399 TIOCPKT_STOP = 0x4
1400 TIOCSBRK = 0x5427
1401 TIOCSCTTY = 0x540e
1402 TIOCSERCONFIG = 0x5453
1403 TIOCSERGETLSR = 0x5459
1404 TIOCSERGETMULTI = 0x545a
1405 TIOCSERGSTRUCT = 0x5458
1406 TIOCSERGWILD = 0x5454
1407 TIOCSERSETMULTI = 0x545b
1408 TIOCSERSWILD = 0x5455
1409 TIOCSER_TEMT = 0x1
1410 TIOCSETD = 0x5423
1411 TIOCSIG = 0x40045436
1412 TIOCSLCKTRMIOS = 0x5457
1413 TIOCSPGRP = 0x5410
1414 TIOCSPTLCK = 0x40045431
1415 TIOCSRS485 = 0x542f
1416 TIOCSSERIAL = 0x541f
1417 TIOCSSOFTCAR = 0x541a
1418 TIOCSTI = 0x5412
1419 TIOCSWINSZ = 0x5414
1420 TIOCVHANGUP = 0x5437
1421 TOSTOP = 0x100
1422 TUNATTACHFILTER = 0x401054d5
1423 TUNDETACHFILTER = 0x401054d6
1424 TUNGETFEATURES = 0x800454cf
1425 TUNGETIFF = 0x800454d2
1426 TUNGETSNDBUF = 0x800454d3
1427 TUNGETVNETHDRSZ = 0x800454d7
1428 TUNSETDEBUG = 0x400454c9
1429 TUNSETGROUP = 0x400454ce
1430 TUNSETIFF = 0x400454ca
1431 TUNSETLINK = 0x400454cd
1432 TUNSETNOCSUM = 0x400454c8
1433 TUNSETOFFLOAD = 0x400454d0
1434 TUNSETOWNER = 0x400454cc
1435 TUNSETPERSIST = 0x400454cb
1436 TUNSETSNDBUF = 0x400454d4
1437 TUNSETTXFILTER = 0x400454d1
1438 TUNSETVNETHDRSZ = 0x400454d8
1439 VDISCARD = 0xd
1440 VEOF = 0x4
1441 VEOL = 0xb
1442 VEOL2 = 0x10
1443 VERASE = 0x2
1444 VINTR = 0x0
1445 VKILL = 0x3
1446 VLNEXT = 0xf
1447 VMIN = 0x6
1448 VQUIT = 0x1
1449 VREPRINT = 0xc
1450 VSTART = 0x8
1451 VSTOP = 0x9
1452 VSUSP = 0xa
1453 VSWTC = 0x7
1454 VT0 = 0x0
1455 VT1 = 0x4000
1456 VTDLY = 0x4000
1457 VTIME = 0x5
1458 VWERASE = 0xe
1459 WALL = 0x40000000
1460 WCLONE = 0x80000000
1461 WCONTINUED = 0x8
1462 WEXITED = 0x4
1463 WNOHANG = 0x1
1464 WNOTHREAD = 0x20000000
1465 WNOWAIT = 0x1000000
1466 WORDSIZE = 0x40
1467 WSTOPPED = 0x2
1468 WUNTRACED = 0x2
1469 XCASE = 0x4
1470 XTABS = 0x1800
1471)
1472
1473// Errors
1474const (
1475 E2BIG = syscall.Errno(0x7)
1476 EACCES = syscall.Errno(0xd)
1477 EADDRINUSE = syscall.Errno(0x62)
1478 EADDRNOTAVAIL = syscall.Errno(0x63)
1479 EADV = syscall.Errno(0x44)
1480 EAFNOSUPPORT = syscall.Errno(0x61)
1481 EAGAIN = syscall.Errno(0xb)
1482 EALREADY = syscall.Errno(0x72)
1483 EBADE = syscall.Errno(0x34)
1484 EBADF = syscall.Errno(0x9)
1485 EBADFD = syscall.Errno(0x4d)
1486 EBADMSG = syscall.Errno(0x4a)
1487 EBADR = syscall.Errno(0x35)
1488 EBADRQC = syscall.Errno(0x38)
1489 EBADSLT = syscall.Errno(0x39)
1490 EBFONT = syscall.Errno(0x3b)
1491 EBUSY = syscall.Errno(0x10)
1492 ECANCELED = syscall.Errno(0x7d)
1493 ECHILD = syscall.Errno(0xa)
1494 ECHRNG = syscall.Errno(0x2c)
1495 ECOMM = syscall.Errno(0x46)
1496 ECONNABORTED = syscall.Errno(0x67)
1497 ECONNREFUSED = syscall.Errno(0x6f)
1498 ECONNRESET = syscall.Errno(0x68)
1499 EDEADLK = syscall.Errno(0x23)
1500 EDEADLOCK = syscall.Errno(0x23)
1501 EDESTADDRREQ = syscall.Errno(0x59)
1502 EDOM = syscall.Errno(0x21)
1503 EDOTDOT = syscall.Errno(0x49)
1504 EDQUOT = syscall.Errno(0x7a)
1505 EEXIST = syscall.Errno(0x11)
1506 EFAULT = syscall.Errno(0xe)
1507 EFBIG = syscall.Errno(0x1b)
1508 EHOSTDOWN = syscall.Errno(0x70)
1509 EHOSTUNREACH = syscall.Errno(0x71)
1510 EHWPOISON = syscall.Errno(0x85)
1511 EIDRM = syscall.Errno(0x2b)
1512 EILSEQ = syscall.Errno(0x54)
1513 EINPROGRESS = syscall.Errno(0x73)
1514 EINTR = syscall.Errno(0x4)
1515 EINVAL = syscall.Errno(0x16)
1516 EIO = syscall.Errno(0x5)
1517 EISCONN = syscall.Errno(0x6a)
1518 EISDIR = syscall.Errno(0x15)
1519 EISNAM = syscall.Errno(0x78)
1520 EKEYEXPIRED = syscall.Errno(0x7f)
1521 EKEYREJECTED = syscall.Errno(0x81)
1522 EKEYREVOKED = syscall.Errno(0x80)
1523 EL2HLT = syscall.Errno(0x33)
1524 EL2NSYNC = syscall.Errno(0x2d)
1525 EL3HLT = syscall.Errno(0x2e)
1526 EL3RST = syscall.Errno(0x2f)
1527 ELIBACC = syscall.Errno(0x4f)
1528 ELIBBAD = syscall.Errno(0x50)
1529 ELIBEXEC = syscall.Errno(0x53)
1530 ELIBMAX = syscall.Errno(0x52)
1531 ELIBSCN = syscall.Errno(0x51)
1532 ELNRNG = syscall.Errno(0x30)
1533 ELOOP = syscall.Errno(0x28)
1534 EMEDIUMTYPE = syscall.Errno(0x7c)
1535 EMFILE = syscall.Errno(0x18)
1536 EMLINK = syscall.Errno(0x1f)
1537 EMSGSIZE = syscall.Errno(0x5a)
1538 EMULTIHOP = syscall.Errno(0x48)
1539 ENAMETOOLONG = syscall.Errno(0x24)
1540 ENAVAIL = syscall.Errno(0x77)
1541 ENETDOWN = syscall.Errno(0x64)
1542 ENETRESET = syscall.Errno(0x66)
1543 ENETUNREACH = syscall.Errno(0x65)
1544 ENFILE = syscall.Errno(0x17)
1545 ENOANO = syscall.Errno(0x37)
1546 ENOBUFS = syscall.Errno(0x69)
1547 ENOCSI = syscall.Errno(0x32)
1548 ENODATA = syscall.Errno(0x3d)
1549 ENODEV = syscall.Errno(0x13)
1550 ENOENT = syscall.Errno(0x2)
1551 ENOEXEC = syscall.Errno(0x8)
1552 ENOKEY = syscall.Errno(0x7e)
1553 ENOLCK = syscall.Errno(0x25)
1554 ENOLINK = syscall.Errno(0x43)
1555 ENOMEDIUM = syscall.Errno(0x7b)
1556 ENOMEM = syscall.Errno(0xc)
1557 ENOMSG = syscall.Errno(0x2a)
1558 ENONET = syscall.Errno(0x40)
1559 ENOPKG = syscall.Errno(0x41)
1560 ENOPROTOOPT = syscall.Errno(0x5c)
1561 ENOSPC = syscall.Errno(0x1c)
1562 ENOSR = syscall.Errno(0x3f)
1563 ENOSTR = syscall.Errno(0x3c)
1564 ENOSYS = syscall.Errno(0x26)
1565 ENOTBLK = syscall.Errno(0xf)
1566 ENOTCONN = syscall.Errno(0x6b)
1567 ENOTDIR = syscall.Errno(0x14)
1568 ENOTEMPTY = syscall.Errno(0x27)
1569 ENOTNAM = syscall.Errno(0x76)
1570 ENOTRECOVERABLE = syscall.Errno(0x83)
1571 ENOTSOCK = syscall.Errno(0x58)
1572 ENOTSUP = syscall.Errno(0x5f)
1573 ENOTTY = syscall.Errno(0x19)
1574 ENOTUNIQ = syscall.Errno(0x4c)
1575 ENXIO = syscall.Errno(0x6)
1576 EOPNOTSUPP = syscall.Errno(0x5f)
1577 EOVERFLOW = syscall.Errno(0x4b)
1578 EOWNERDEAD = syscall.Errno(0x82)
1579 EPERM = syscall.Errno(0x1)
1580 EPFNOSUPPORT = syscall.Errno(0x60)
1581 EPIPE = syscall.Errno(0x20)
1582 EPROTO = syscall.Errno(0x47)
1583 EPROTONOSUPPORT = syscall.Errno(0x5d)
1584 EPROTOTYPE = syscall.Errno(0x5b)
1585 ERANGE = syscall.Errno(0x22)
1586 EREMCHG = syscall.Errno(0x4e)
1587 EREMOTE = syscall.Errno(0x42)
1588 EREMOTEIO = syscall.Errno(0x79)
1589 ERESTART = syscall.Errno(0x55)
1590 ERFKILL = syscall.Errno(0x84)
1591 EROFS = syscall.Errno(0x1e)
1592 ESHUTDOWN = syscall.Errno(0x6c)
1593 ESOCKTNOSUPPORT = syscall.Errno(0x5e)
1594 ESPIPE = syscall.Errno(0x1d)
1595 ESRCH = syscall.Errno(0x3)
1596 ESRMNT = syscall.Errno(0x45)
1597 ESTALE = syscall.Errno(0x74)
1598 ESTRPIPE = syscall.Errno(0x56)
1599 ETIME = syscall.Errno(0x3e)
1600 ETIMEDOUT = syscall.Errno(0x6e)
1601 ETOOMANYREFS = syscall.Errno(0x6d)
1602 ETXTBSY = syscall.Errno(0x1a)
1603 EUCLEAN = syscall.Errno(0x75)
1604 EUNATCH = syscall.Errno(0x31)
1605 EUSERS = syscall.Errno(0x57)
1606 EWOULDBLOCK = syscall.Errno(0xb)
1607 EXDEV = syscall.Errno(0x12)
1608 EXFULL = syscall.Errno(0x36)
1609)
1610
1611// Signals
1612const (
1613 SIGABRT = syscall.Signal(0x6)
1614 SIGALRM = syscall.Signal(0xe)
1615 SIGBUS = syscall.Signal(0x7)
1616 SIGCHLD = syscall.Signal(0x11)
1617 SIGCLD = syscall.Signal(0x11)
1618 SIGCONT = syscall.Signal(0x12)
1619 SIGFPE = syscall.Signal(0x8)
1620 SIGHUP = syscall.Signal(0x1)
1621 SIGILL = syscall.Signal(0x4)
1622 SIGINT = syscall.Signal(0x2)
1623 SIGIO = syscall.Signal(0x1d)
1624 SIGIOT = syscall.Signal(0x6)
1625 SIGKILL = syscall.Signal(0x9)
1626 SIGPIPE = syscall.Signal(0xd)
1627 SIGPOLL = syscall.Signal(0x1d)
1628 SIGPROF = syscall.Signal(0x1b)
1629 SIGPWR = syscall.Signal(0x1e)
1630 SIGQUIT = syscall.Signal(0x3)
1631 SIGSEGV = syscall.Signal(0xb)
1632 SIGSTKFLT = syscall.Signal(0x10)
1633 SIGSTOP = syscall.Signal(0x13)
1634 SIGSYS = syscall.Signal(0x1f)
1635 SIGTERM = syscall.Signal(0xf)
1636 SIGTRAP = syscall.Signal(0x5)
1637 SIGTSTP = syscall.Signal(0x14)
1638 SIGTTIN = syscall.Signal(0x15)
1639 SIGTTOU = syscall.Signal(0x16)
1640 SIGUNUSED = syscall.Signal(0x1f)
1641 SIGURG = syscall.Signal(0x17)
1642 SIGUSR1 = syscall.Signal(0xa)
1643 SIGUSR2 = syscall.Signal(0xc)
1644 SIGVTALRM = syscall.Signal(0x1a)
1645 SIGWINCH = syscall.Signal(0x1c)
1646 SIGXCPU = syscall.Signal(0x18)
1647 SIGXFSZ = syscall.Signal(0x19)
1648)
1649
1650// Error table
1651var errors = [...]string{
1652 1: "operation not permitted",
1653 2: "no such file or directory",
1654 3: "no such process",
1655 4: "interrupted system call",
1656 5: "input/output error",
1657 6: "no such device or address",
1658 7: "argument list too long",
1659 8: "exec format error",
1660 9: "bad file descriptor",
1661 10: "no child processes",
1662 11: "resource temporarily unavailable",
1663 12: "cannot allocate memory",
1664 13: "permission denied",
1665 14: "bad address",
1666 15: "block device required",
1667 16: "device or resource busy",
1668 17: "file exists",
1669 18: "invalid cross-device link",
1670 19: "no such device",
1671 20: "not a directory",
1672 21: "is a directory",
1673 22: "invalid argument",
1674 23: "too many open files in system",
1675 24: "too many open files",
1676 25: "inappropriate ioctl for device",
1677 26: "text file busy",
1678 27: "file too large",
1679 28: "no space left on device",
1680 29: "illegal seek",
1681 30: "read-only file system",
1682 31: "too many links",
1683 32: "broken pipe",
1684 33: "numerical argument out of domain",
1685 34: "numerical result out of range",
1686 35: "resource deadlock avoided",
1687 36: "file name too long",
1688 37: "no locks available",
1689 38: "function not implemented",
1690 39: "directory not empty",
1691 40: "too many levels of symbolic links",
1692 42: "no message of desired type",
1693 43: "identifier removed",
1694 44: "channel number out of range",
1695 45: "level 2 not synchronized",
1696 46: "level 3 halted",
1697 47: "level 3 reset",
1698 48: "link number out of range",
1699 49: "protocol driver not attached",
1700 50: "no CSI structure available",
1701 51: "level 2 halted",
1702 52: "invalid exchange",
1703 53: "invalid request descriptor",
1704 54: "exchange full",
1705 55: "no anode",
1706 56: "invalid request code",
1707 57: "invalid slot",
1708 59: "bad font file format",
1709 60: "device not a stream",
1710 61: "no data available",
1711 62: "timer expired",
1712 63: "out of streams resources",
1713 64: "machine is not on the network",
1714 65: "package not installed",
1715 66: "object is remote",
1716 67: "link has been severed",
1717 68: "advertise error",
1718 69: "srmount error",
1719 70: "communication error on send",
1720 71: "protocol error",
1721 72: "multihop attempted",
1722 73: "RFS specific error",
1723 74: "bad message",
1724 75: "value too large for defined data type",
1725 76: "name not unique on network",
1726 77: "file descriptor in bad state",
1727 78: "remote address changed",
1728 79: "can not access a needed shared library",
1729 80: "accessing a corrupted shared library",
1730 81: ".lib section in a.out corrupted",
1731 82: "attempting to link in too many shared libraries",
1732 83: "cannot exec a shared library directly",
1733 84: "invalid or incomplete multibyte or wide character",
1734 85: "interrupted system call should be restarted",
1735 86: "streams pipe error",
1736 87: "too many users",
1737 88: "socket operation on non-socket",
1738 89: "destination address required",
1739 90: "message too long",
1740 91: "protocol wrong type for socket",
1741 92: "protocol not available",
1742 93: "protocol not supported",
1743 94: "socket type not supported",
1744 95: "operation not supported",
1745 96: "protocol family not supported",
1746 97: "address family not supported by protocol",
1747 98: "address already in use",
1748 99: "cannot assign requested address",
1749 100: "network is down",
1750 101: "network is unreachable",
1751 102: "network dropped connection on reset",
1752 103: "software caused connection abort",
1753 104: "connection reset by peer",
1754 105: "no buffer space available",
1755 106: "transport endpoint is already connected",
1756 107: "transport endpoint is not connected",
1757 108: "cannot send after transport endpoint shutdown",
1758 109: "too many references: cannot splice",
1759 110: "connection timed out",
1760 111: "connection refused",
1761 112: "host is down",
1762 113: "no route to host",
1763 114: "operation already in progress",
1764 115: "operation now in progress",
1765 116: "stale NFS file handle",
1766 117: "structure needs cleaning",
1767 118: "not a XENIX named type file",
1768 119: "no XENIX semaphores available",
1769 120: "is a named type file",
1770 121: "remote I/O error",
1771 122: "disk quota exceeded",
1772 123: "no medium found",
1773 124: "wrong medium type",
1774 125: "operation canceled",
1775 126: "required key not available",
1776 127: "key has expired",
1777 128: "key has been revoked",
1778 129: "key was rejected by service",
1779 130: "owner died",
1780 131: "state not recoverable",
1781 132: "operation not possible due to RF-kill",
1782 133: "unknown error 133",
1783}
1784
1785// Signal table
1786var signals = [...]string{
1787 1: "hangup",
1788 2: "interrupt",
1789 3: "quit",
1790 4: "illegal instruction",
1791 5: "trace/breakpoint trap",
1792 6: "aborted",
1793 7: "bus error",
1794 8: "floating point exception",
1795 9: "killed",
1796 10: "user defined signal 1",
1797 11: "segmentation fault",
1798 12: "user defined signal 2",
1799 13: "broken pipe",
1800 14: "alarm clock",
1801 15: "terminated",
1802 16: "stack fault",
1803 17: "child exited",
1804 18: "continued",
1805 19: "stopped (signal)",
1806 20: "stopped",
1807 21: "stopped (tty input)",
1808 22: "stopped (tty output)",
1809 23: "urgent I/O condition",
1810 24: "CPU time limit exceeded",
1811 25: "file size limit exceeded",
1812 26: "virtual timer expired",
1813 27: "profiling timer expired",
1814 28: "window changed",
1815 29: "I/O possible",
1816 30: "power failure",
1817 31: "bad system call",
1818}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_arm.go
deleted file mode 100644
index 1cc76a7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_arm.go
+++ /dev/null
@@ -1,1742 +0,0 @@
1// mkerrors.sh
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm,linux
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_ALG = 0x26
15 AF_APPLETALK = 0x5
16 AF_ASH = 0x12
17 AF_ATMPVC = 0x8
18 AF_ATMSVC = 0x14
19 AF_AX25 = 0x3
20 AF_BLUETOOTH = 0x1f
21 AF_BRIDGE = 0x7
22 AF_CAIF = 0x25
23 AF_CAN = 0x1d
24 AF_DECnet = 0xc
25 AF_ECONET = 0x13
26 AF_FILE = 0x1
27 AF_IEEE802154 = 0x24
28 AF_INET = 0x2
29 AF_INET6 = 0xa
30 AF_IPX = 0x4
31 AF_IRDA = 0x17
32 AF_ISDN = 0x22
33 AF_IUCV = 0x20
34 AF_KEY = 0xf
35 AF_LLC = 0x1a
36 AF_LOCAL = 0x1
37 AF_MAX = 0x27
38 AF_NETBEUI = 0xd
39 AF_NETLINK = 0x10
40 AF_NETROM = 0x6
41 AF_PACKET = 0x11
42 AF_PHONET = 0x23
43 AF_PPPOX = 0x18
44 AF_RDS = 0x15
45 AF_ROSE = 0xb
46 AF_ROUTE = 0x10
47 AF_RXRPC = 0x21
48 AF_SECURITY = 0xe
49 AF_SNA = 0x16
50 AF_TIPC = 0x1e
51 AF_UNIX = 0x1
52 AF_UNSPEC = 0x0
53 AF_WANPIPE = 0x19
54 AF_X25 = 0x9
55 ARPHRD_ADAPT = 0x108
56 ARPHRD_APPLETLK = 0x8
57 ARPHRD_ARCNET = 0x7
58 ARPHRD_ASH = 0x30d
59 ARPHRD_ATM = 0x13
60 ARPHRD_AX25 = 0x3
61 ARPHRD_BIF = 0x307
62 ARPHRD_CHAOS = 0x5
63 ARPHRD_CISCO = 0x201
64 ARPHRD_CSLIP = 0x101
65 ARPHRD_CSLIP6 = 0x103
66 ARPHRD_DDCMP = 0x205
67 ARPHRD_DLCI = 0xf
68 ARPHRD_ECONET = 0x30e
69 ARPHRD_EETHER = 0x2
70 ARPHRD_ETHER = 0x1
71 ARPHRD_EUI64 = 0x1b
72 ARPHRD_FCAL = 0x311
73 ARPHRD_FCFABRIC = 0x313
74 ARPHRD_FCPL = 0x312
75 ARPHRD_FCPP = 0x310
76 ARPHRD_FDDI = 0x306
77 ARPHRD_FRAD = 0x302
78 ARPHRD_HDLC = 0x201
79 ARPHRD_HIPPI = 0x30c
80 ARPHRD_HWX25 = 0x110
81 ARPHRD_IEEE1394 = 0x18
82 ARPHRD_IEEE802 = 0x6
83 ARPHRD_IEEE80211 = 0x321
84 ARPHRD_IEEE80211_PRISM = 0x322
85 ARPHRD_IEEE80211_RADIOTAP = 0x323
86 ARPHRD_IEEE802154 = 0x324
87 ARPHRD_IEEE802154_PHY = 0x325
88 ARPHRD_IEEE802_TR = 0x320
89 ARPHRD_INFINIBAND = 0x20
90 ARPHRD_IPDDP = 0x309
91 ARPHRD_IPGRE = 0x30a
92 ARPHRD_IRDA = 0x30f
93 ARPHRD_LAPB = 0x204
94 ARPHRD_LOCALTLK = 0x305
95 ARPHRD_LOOPBACK = 0x304
96 ARPHRD_METRICOM = 0x17
97 ARPHRD_NETROM = 0x0
98 ARPHRD_NONE = 0xfffe
99 ARPHRD_PIMREG = 0x30b
100 ARPHRD_PPP = 0x200
101 ARPHRD_PRONET = 0x4
102 ARPHRD_RAWHDLC = 0x206
103 ARPHRD_ROSE = 0x10e
104 ARPHRD_RSRVD = 0x104
105 ARPHRD_SIT = 0x308
106 ARPHRD_SKIP = 0x303
107 ARPHRD_SLIP = 0x100
108 ARPHRD_SLIP6 = 0x102
109 ARPHRD_TUNNEL = 0x300
110 ARPHRD_TUNNEL6 = 0x301
111 ARPHRD_VOID = 0xffff
112 ARPHRD_X25 = 0x10f
113 B0 = 0x0
114 B1000000 = 0x1008
115 B110 = 0x3
116 B115200 = 0x1002
117 B1152000 = 0x1009
118 B1200 = 0x9
119 B134 = 0x4
120 B150 = 0x5
121 B1500000 = 0x100a
122 B1800 = 0xa
123 B19200 = 0xe
124 B200 = 0x6
125 B2000000 = 0x100b
126 B230400 = 0x1003
127 B2400 = 0xb
128 B2500000 = 0x100c
129 B300 = 0x7
130 B3000000 = 0x100d
131 B3500000 = 0x100e
132 B38400 = 0xf
133 B4000000 = 0x100f
134 B460800 = 0x1004
135 B4800 = 0xc
136 B50 = 0x1
137 B500000 = 0x1005
138 B57600 = 0x1001
139 B576000 = 0x1006
140 B600 = 0x8
141 B75 = 0x2
142 B921600 = 0x1007
143 B9600 = 0xd
144 BOTHER = 0x1000
145 BPF_A = 0x10
146 BPF_ABS = 0x20
147 BPF_ADD = 0x0
148 BPF_ALU = 0x4
149 BPF_AND = 0x50
150 BPF_B = 0x10
151 BPF_DIV = 0x30
152 BPF_H = 0x8
153 BPF_IMM = 0x0
154 BPF_IND = 0x40
155 BPF_JA = 0x0
156 BPF_JEQ = 0x10
157 BPF_JGE = 0x30
158 BPF_JGT = 0x20
159 BPF_JMP = 0x5
160 BPF_JSET = 0x40
161 BPF_K = 0x0
162 BPF_LD = 0x0
163 BPF_LDX = 0x1
164 BPF_LEN = 0x80
165 BPF_LSH = 0x60
166 BPF_MAJOR_VERSION = 0x1
167 BPF_MAXINSNS = 0x1000
168 BPF_MEM = 0x60
169 BPF_MEMWORDS = 0x10
170 BPF_MINOR_VERSION = 0x1
171 BPF_MISC = 0x7
172 BPF_MSH = 0xa0
173 BPF_MUL = 0x20
174 BPF_NEG = 0x80
175 BPF_OR = 0x40
176 BPF_RET = 0x6
177 BPF_RSH = 0x70
178 BPF_ST = 0x2
179 BPF_STX = 0x3
180 BPF_SUB = 0x10
181 BPF_TAX = 0x0
182 BPF_TXA = 0x80
183 BPF_W = 0x0
184 BPF_X = 0x8
185 BRKINT = 0x2
186 BS0 = 0x0
187 BS1 = 0x2000
188 BSDLY = 0x2000
189 CBAUD = 0x100f
190 CBAUDEX = 0x1000
191 CFLUSH = 0xf
192 CIBAUD = 0x100f0000
193 CLOCAL = 0x800
194 CLOCK_BOOTTIME = 0x7
195 CLOCK_BOOTTIME_ALARM = 0x9
196 CLOCK_DEFAULT = 0x0
197 CLOCK_EXT = 0x1
198 CLOCK_INT = 0x2
199 CLOCK_MONOTONIC = 0x1
200 CLOCK_MONOTONIC_COARSE = 0x6
201 CLOCK_MONOTONIC_RAW = 0x4
202 CLOCK_PROCESS_CPUTIME_ID = 0x2
203 CLOCK_REALTIME = 0x0
204 CLOCK_REALTIME_ALARM = 0x8
205 CLOCK_REALTIME_COARSE = 0x5
206 CLOCK_THREAD_CPUTIME_ID = 0x3
207 CLOCK_TXFROMRX = 0x4
208 CLOCK_TXINT = 0x3
209 CLONE_CHILD_CLEARTID = 0x200000
210 CLONE_CHILD_SETTID = 0x1000000
211 CLONE_DETACHED = 0x400000
212 CLONE_FILES = 0x400
213 CLONE_FS = 0x200
214 CLONE_IO = 0x80000000
215 CLONE_NEWIPC = 0x8000000
216 CLONE_NEWNET = 0x40000000
217 CLONE_NEWNS = 0x20000
218 CLONE_NEWPID = 0x20000000
219 CLONE_NEWUSER = 0x10000000
220 CLONE_NEWUTS = 0x4000000
221 CLONE_PARENT = 0x8000
222 CLONE_PARENT_SETTID = 0x100000
223 CLONE_PTRACE = 0x2000
224 CLONE_SETTLS = 0x80000
225 CLONE_SIGHAND = 0x800
226 CLONE_SYSVSEM = 0x40000
227 CLONE_THREAD = 0x10000
228 CLONE_UNTRACED = 0x800000
229 CLONE_VFORK = 0x4000
230 CLONE_VM = 0x100
231 CMSPAR = 0x40000000
232 CR0 = 0x0
233 CR1 = 0x200
234 CR2 = 0x400
235 CR3 = 0x600
236 CRDLY = 0x600
237 CREAD = 0x80
238 CRTSCTS = 0x80000000
239 CS5 = 0x0
240 CS6 = 0x10
241 CS7 = 0x20
242 CS8 = 0x30
243 CSIGNAL = 0xff
244 CSIZE = 0x30
245 CSTART = 0x11
246 CSTATUS = 0x0
247 CSTOP = 0x13
248 CSTOPB = 0x40
249 CSUSP = 0x1a
250 DT_BLK = 0x6
251 DT_CHR = 0x2
252 DT_DIR = 0x4
253 DT_FIFO = 0x1
254 DT_LNK = 0xa
255 DT_REG = 0x8
256 DT_SOCK = 0xc
257 DT_UNKNOWN = 0x0
258 DT_WHT = 0xe
259 ELF_NGREG = 0x12
260 ELF_PRARGSZ = 0x50
261 ECHO = 0x8
262 ECHOCTL = 0x200
263 ECHOE = 0x10
264 ECHOK = 0x20
265 ECHOKE = 0x800
266 ECHONL = 0x40
267 ECHOPRT = 0x400
268 EPOLLERR = 0x8
269 EPOLLET = -0x80000000
270 EPOLLHUP = 0x10
271 EPOLLIN = 0x1
272 EPOLLMSG = 0x400
273 EPOLLONESHOT = 0x40000000
274 EPOLLOUT = 0x4
275 EPOLLPRI = 0x2
276 EPOLLRDBAND = 0x80
277 EPOLLRDHUP = 0x2000
278 EPOLLRDNORM = 0x40
279 EPOLLWRBAND = 0x200
280 EPOLLWRNORM = 0x100
281 EPOLL_CLOEXEC = 0x80000
282 EPOLL_CTL_ADD = 0x1
283 EPOLL_CTL_DEL = 0x2
284 EPOLL_CTL_MOD = 0x3
285 EPOLL_NONBLOCK = 0x800
286 ETH_P_1588 = 0x88f7
287 ETH_P_8021Q = 0x8100
288 ETH_P_802_2 = 0x4
289 ETH_P_802_3 = 0x1
290 ETH_P_AARP = 0x80f3
291 ETH_P_ALL = 0x3
292 ETH_P_AOE = 0x88a2
293 ETH_P_ARCNET = 0x1a
294 ETH_P_ARP = 0x806
295 ETH_P_ATALK = 0x809b
296 ETH_P_ATMFATE = 0x8884
297 ETH_P_ATMMPOA = 0x884c
298 ETH_P_AX25 = 0x2
299 ETH_P_BPQ = 0x8ff
300 ETH_P_CAIF = 0xf7
301 ETH_P_CAN = 0xc
302 ETH_P_CONTROL = 0x16
303 ETH_P_CUST = 0x6006
304 ETH_P_DDCMP = 0x6
305 ETH_P_DEC = 0x6000
306 ETH_P_DIAG = 0x6005
307 ETH_P_DNA_DL = 0x6001
308 ETH_P_DNA_RC = 0x6002
309 ETH_P_DNA_RT = 0x6003
310 ETH_P_DSA = 0x1b
311 ETH_P_ECONET = 0x18
312 ETH_P_EDSA = 0xdada
313 ETH_P_FCOE = 0x8906
314 ETH_P_FIP = 0x8914
315 ETH_P_HDLC = 0x19
316 ETH_P_IEEE802154 = 0xf6
317 ETH_P_IEEEPUP = 0xa00
318 ETH_P_IEEEPUPAT = 0xa01
319 ETH_P_IP = 0x800
320 ETH_P_IPV6 = 0x86dd
321 ETH_P_IPX = 0x8137
322 ETH_P_IRDA = 0x17
323 ETH_P_LAT = 0x6004
324 ETH_P_LINK_CTL = 0x886c
325 ETH_P_LOCALTALK = 0x9
326 ETH_P_LOOP = 0x60
327 ETH_P_MOBITEX = 0x15
328 ETH_P_MPLS_MC = 0x8848
329 ETH_P_MPLS_UC = 0x8847
330 ETH_P_PAE = 0x888e
331 ETH_P_PAUSE = 0x8808
332 ETH_P_PHONET = 0xf5
333 ETH_P_PPPTALK = 0x10
334 ETH_P_PPP_DISC = 0x8863
335 ETH_P_PPP_MP = 0x8
336 ETH_P_PPP_SES = 0x8864
337 ETH_P_PUP = 0x200
338 ETH_P_PUPAT = 0x201
339 ETH_P_RARP = 0x8035
340 ETH_P_SCA = 0x6007
341 ETH_P_SLOW = 0x8809
342 ETH_P_SNAP = 0x5
343 ETH_P_TEB = 0x6558
344 ETH_P_TIPC = 0x88ca
345 ETH_P_TRAILER = 0x1c
346 ETH_P_TR_802_2 = 0x11
347 ETH_P_WAN_PPP = 0x7
348 ETH_P_WCCP = 0x883e
349 ETH_P_X25 = 0x805
350 EXTA = 0xe
351 EXTB = 0xf
352 EXTPROC = 0x10000
353 FD_CLOEXEC = 0x1
354 FD_SETSIZE = 0x400
355 FF0 = 0x0
356 FF1 = 0x8000
357 FFDLY = 0x8000
358 FLUSHO = 0x1000
359 F_DUPFD = 0x0
360 F_DUPFD_CLOEXEC = 0x406
361 F_EXLCK = 0x4
362 F_GETFD = 0x1
363 F_GETFL = 0x3
364 F_GETLEASE = 0x401
365 F_GETLK = 0xc
366 F_GETLK64 = 0xc
367 F_GETOWN = 0x9
368 F_GETOWN_EX = 0x10
369 F_GETPIPE_SZ = 0x408
370 F_GETSIG = 0xb
371 F_LOCK = 0x1
372 F_NOTIFY = 0x402
373 F_OK = 0x0
374 F_RDLCK = 0x0
375 F_SETFD = 0x2
376 F_SETFL = 0x4
377 F_SETLEASE = 0x400
378 F_SETLK = 0xd
379 F_SETLK64 = 0xd
380 F_SETLKW = 0xe
381 F_SETLKW64 = 0xe
382 F_SETOWN = 0x8
383 F_SETOWN_EX = 0xf
384 F_SETPIPE_SZ = 0x407
385 F_SETSIG = 0xa
386 F_SHLCK = 0x8
387 F_TEST = 0x3
388 F_TLOCK = 0x2
389 F_ULOCK = 0x0
390 F_UNLCK = 0x2
391 F_WRLCK = 0x1
392 HUPCL = 0x400
393 IBSHIFT = 0x10
394 ICANON = 0x2
395 ICMPV6_FILTER = 0x1
396 ICRNL = 0x100
397 IEXTEN = 0x8000
398 IFA_F_DADFAILED = 0x8
399 IFA_F_DEPRECATED = 0x20
400 IFA_F_HOMEADDRESS = 0x10
401 IFA_F_NODAD = 0x2
402 IFA_F_OPTIMISTIC = 0x4
403 IFA_F_PERMANENT = 0x80
404 IFA_F_SECONDARY = 0x1
405 IFA_F_TEMPORARY = 0x1
406 IFA_F_TENTATIVE = 0x40
407 IFA_MAX = 0x7
408 IFF_ALLMULTI = 0x200
409 IFF_AUTOMEDIA = 0x4000
410 IFF_BROADCAST = 0x2
411 IFF_DEBUG = 0x4
412 IFF_DYNAMIC = 0x8000
413 IFF_LOOPBACK = 0x8
414 IFF_MASTER = 0x400
415 IFF_MULTICAST = 0x1000
416 IFF_NOARP = 0x80
417 IFF_NOTRAILERS = 0x20
418 IFF_NO_PI = 0x1000
419 IFF_ONE_QUEUE = 0x2000
420 IFF_POINTOPOINT = 0x10
421 IFF_PORTSEL = 0x2000
422 IFF_PROMISC = 0x100
423 IFF_RUNNING = 0x40
424 IFF_SLAVE = 0x800
425 IFF_TAP = 0x2
426 IFF_TUN = 0x1
427 IFF_TUN_EXCL = 0x8000
428 IFF_UP = 0x1
429 IFF_VNET_HDR = 0x4000
430 IFNAMSIZ = 0x10
431 IGNBRK = 0x1
432 IGNCR = 0x80
433 IGNPAR = 0x4
434 IMAXBEL = 0x2000
435 INLCR = 0x40
436 INPCK = 0x10
437 IN_ACCESS = 0x1
438 IN_ALL_EVENTS = 0xfff
439 IN_ATTRIB = 0x4
440 IN_CLASSA_HOST = 0xffffff
441 IN_CLASSA_MAX = 0x80
442 IN_CLASSA_NET = 0xff000000
443 IN_CLASSA_NSHIFT = 0x18
444 IN_CLASSB_HOST = 0xffff
445 IN_CLASSB_MAX = 0x10000
446 IN_CLASSB_NET = 0xffff0000
447 IN_CLASSB_NSHIFT = 0x10
448 IN_CLASSC_HOST = 0xff
449 IN_CLASSC_NET = 0xffffff00
450 IN_CLASSC_NSHIFT = 0x8
451 IN_CLOEXEC = 0x80000
452 IN_CLOSE = 0x18
453 IN_CLOSE_NOWRITE = 0x10
454 IN_CLOSE_WRITE = 0x8
455 IN_CREATE = 0x100
456 IN_DELETE = 0x200
457 IN_DELETE_SELF = 0x400
458 IN_DONT_FOLLOW = 0x2000000
459 IN_EXCL_UNLINK = 0x4000000
460 IN_IGNORED = 0x8000
461 IN_ISDIR = 0x40000000
462 IN_LOOPBACKNET = 0x7f
463 IN_MASK_ADD = 0x20000000
464 IN_MODIFY = 0x2
465 IN_MOVE = 0xc0
466 IN_MOVED_FROM = 0x40
467 IN_MOVED_TO = 0x80
468 IN_MOVE_SELF = 0x800
469 IN_NONBLOCK = 0x800
470 IN_ONESHOT = 0x80000000
471 IN_ONLYDIR = 0x1000000
472 IN_OPEN = 0x20
473 IN_Q_OVERFLOW = 0x4000
474 IN_UNMOUNT = 0x2000
475 IPPROTO_AH = 0x33
476 IPPROTO_COMP = 0x6c
477 IPPROTO_DCCP = 0x21
478 IPPROTO_DSTOPTS = 0x3c
479 IPPROTO_EGP = 0x8
480 IPPROTO_ENCAP = 0x62
481 IPPROTO_ESP = 0x32
482 IPPROTO_FRAGMENT = 0x2c
483 IPPROTO_GRE = 0x2f
484 IPPROTO_HOPOPTS = 0x0
485 IPPROTO_ICMP = 0x1
486 IPPROTO_ICMPV6 = 0x3a
487 IPPROTO_IDP = 0x16
488 IPPROTO_IGMP = 0x2
489 IPPROTO_IP = 0x0
490 IPPROTO_IPIP = 0x4
491 IPPROTO_IPV6 = 0x29
492 IPPROTO_MTP = 0x5c
493 IPPROTO_NONE = 0x3b
494 IPPROTO_PIM = 0x67
495 IPPROTO_PUP = 0xc
496 IPPROTO_RAW = 0xff
497 IPPROTO_ROUTING = 0x2b
498 IPPROTO_RSVP = 0x2e
499 IPPROTO_SCTP = 0x84
500 IPPROTO_TCP = 0x6
501 IPPROTO_TP = 0x1d
502 IPPROTO_UDP = 0x11
503 IPPROTO_UDPLITE = 0x88
504 IPV6_2292DSTOPTS = 0x4
505 IPV6_2292HOPLIMIT = 0x8
506 IPV6_2292HOPOPTS = 0x3
507 IPV6_2292PKTINFO = 0x2
508 IPV6_2292PKTOPTIONS = 0x6
509 IPV6_2292RTHDR = 0x5
510 IPV6_ADDRFORM = 0x1
511 IPV6_ADD_MEMBERSHIP = 0x14
512 IPV6_AUTHHDR = 0xa
513 IPV6_CHECKSUM = 0x7
514 IPV6_DROP_MEMBERSHIP = 0x15
515 IPV6_DSTOPTS = 0x3b
516 IPV6_HOPLIMIT = 0x34
517 IPV6_HOPOPTS = 0x36
518 IPV6_IPSEC_POLICY = 0x22
519 IPV6_JOIN_ANYCAST = 0x1b
520 IPV6_JOIN_GROUP = 0x14
521 IPV6_LEAVE_ANYCAST = 0x1c
522 IPV6_LEAVE_GROUP = 0x15
523 IPV6_MTU = 0x18
524 IPV6_MTU_DISCOVER = 0x17
525 IPV6_MULTICAST_HOPS = 0x12
526 IPV6_MULTICAST_IF = 0x11
527 IPV6_MULTICAST_LOOP = 0x13
528 IPV6_NEXTHOP = 0x9
529 IPV6_PKTINFO = 0x32
530 IPV6_PMTUDISC_DO = 0x2
531 IPV6_PMTUDISC_DONT = 0x0
532 IPV6_PMTUDISC_PROBE = 0x3
533 IPV6_PMTUDISC_WANT = 0x1
534 IPV6_RECVDSTOPTS = 0x3a
535 IPV6_RECVERR = 0x19
536 IPV6_RECVHOPLIMIT = 0x33
537 IPV6_RECVHOPOPTS = 0x35
538 IPV6_RECVPKTINFO = 0x31
539 IPV6_RECVRTHDR = 0x38
540 IPV6_RECVTCLASS = 0x42
541 IPV6_ROUTER_ALERT = 0x16
542 IPV6_RTHDR = 0x39
543 IPV6_RTHDRDSTOPTS = 0x37
544 IPV6_RTHDR_LOOSE = 0x0
545 IPV6_RTHDR_STRICT = 0x1
546 IPV6_RTHDR_TYPE_0 = 0x0
547 IPV6_RXDSTOPTS = 0x3b
548 IPV6_RXHOPOPTS = 0x36
549 IPV6_TCLASS = 0x43
550 IPV6_UNICAST_HOPS = 0x10
551 IPV6_V6ONLY = 0x1a
552 IPV6_XFRM_POLICY = 0x23
553 IP_ADD_MEMBERSHIP = 0x23
554 IP_ADD_SOURCE_MEMBERSHIP = 0x27
555 IP_BLOCK_SOURCE = 0x26
556 IP_DEFAULT_MULTICAST_LOOP = 0x1
557 IP_DEFAULT_MULTICAST_TTL = 0x1
558 IP_DF = 0x4000
559 IP_DROP_MEMBERSHIP = 0x24
560 IP_DROP_SOURCE_MEMBERSHIP = 0x28
561 IP_FREEBIND = 0xf
562 IP_HDRINCL = 0x3
563 IP_IPSEC_POLICY = 0x10
564 IP_MAXPACKET = 0xffff
565 IP_MAX_MEMBERSHIPS = 0x14
566 IP_MF = 0x2000
567 IP_MINTTL = 0x15
568 IP_MSFILTER = 0x29
569 IP_MSS = 0x240
570 IP_MTU = 0xe
571 IP_MTU_DISCOVER = 0xa
572 IP_MULTICAST_IF = 0x20
573 IP_MULTICAST_LOOP = 0x22
574 IP_MULTICAST_TTL = 0x21
575 IP_OFFMASK = 0x1fff
576 IP_OPTIONS = 0x4
577 IP_ORIGDSTADDR = 0x14
578 IP_PASSSEC = 0x12
579 IP_PKTINFO = 0x8
580 IP_PKTOPTIONS = 0x9
581 IP_PMTUDISC = 0xa
582 IP_PMTUDISC_DO = 0x2
583 IP_PMTUDISC_DONT = 0x0
584 IP_PMTUDISC_PROBE = 0x3
585 IP_PMTUDISC_WANT = 0x1
586 IP_RECVERR = 0xb
587 IP_RECVOPTS = 0x6
588 IP_RECVORIGDSTADDR = 0x14
589 IP_RECVRETOPTS = 0x7
590 IP_RECVTOS = 0xd
591 IP_RECVTTL = 0xc
592 IP_RETOPTS = 0x7
593 IP_RF = 0x8000
594 IP_ROUTER_ALERT = 0x5
595 IP_TOS = 0x1
596 IP_TRANSPARENT = 0x13
597 IP_TTL = 0x2
598 IP_UNBLOCK_SOURCE = 0x25
599 IP_XFRM_POLICY = 0x11
600 ISIG = 0x1
601 ISTRIP = 0x20
602 IUCLC = 0x200
603 IUTF8 = 0x4000
604 IXANY = 0x800
605 IXOFF = 0x1000
606 IXON = 0x400
607 LINUX_REBOOT_CMD_CAD_OFF = 0x0
608 LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
609 LINUX_REBOOT_CMD_HALT = 0xcdef0123
610 LINUX_REBOOT_CMD_KEXEC = 0x45584543
611 LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc
612 LINUX_REBOOT_CMD_RESTART = 0x1234567
613 LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4
614 LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
615 LINUX_REBOOT_MAGIC1 = 0xfee1dead
616 LINUX_REBOOT_MAGIC2 = 0x28121969
617 LOCK_EX = 0x2
618 LOCK_NB = 0x4
619 LOCK_SH = 0x1
620 LOCK_UN = 0x8
621 MADV_DOFORK = 0xb
622 MADV_DONTFORK = 0xa
623 MADV_DONTNEED = 0x4
624 MADV_HUGEPAGE = 0xe
625 MADV_HWPOISON = 0x64
626 MADV_MERGEABLE = 0xc
627 MADV_NOHUGEPAGE = 0xf
628 MADV_NORMAL = 0x0
629 MADV_RANDOM = 0x1
630 MADV_REMOVE = 0x9
631 MADV_SEQUENTIAL = 0x2
632 MADV_UNMERGEABLE = 0xd
633 MADV_WILLNEED = 0x3
634 MAP_ANON = 0x20
635 MAP_ANONYMOUS = 0x20
636 MAP_DENYWRITE = 0x800
637 MAP_EXECUTABLE = 0x1000
638 MAP_FILE = 0x0
639 MAP_FIXED = 0x10
640 MAP_GROWSDOWN = 0x100
641 MAP_LOCKED = 0x2000
642 MAP_NONBLOCK = 0x10000
643 MAP_NORESERVE = 0x4000
644 MAP_POPULATE = 0x8000
645 MAP_PRIVATE = 0x2
646 MAP_SHARED = 0x1
647 MAP_TYPE = 0xf
648 MCL_CURRENT = 0x1
649 MCL_FUTURE = 0x2
650 MNT_DETACH = 0x2
651 MNT_EXPIRE = 0x4
652 MNT_FORCE = 0x1
653 MSG_CMSG_CLOEXEC = 0x40000000
654 MSG_CONFIRM = 0x800
655 MSG_CTRUNC = 0x8
656 MSG_DONTROUTE = 0x4
657 MSG_DONTWAIT = 0x40
658 MSG_EOR = 0x80
659 MSG_ERRQUEUE = 0x2000
660 MSG_FASTOPEN = 0x20000000
661 MSG_FIN = 0x200
662 MSG_MORE = 0x8000
663 MSG_NOSIGNAL = 0x4000
664 MSG_OOB = 0x1
665 MSG_PEEK = 0x2
666 MSG_PROXY = 0x10
667 MSG_RST = 0x1000
668 MSG_SYN = 0x400
669 MSG_TRUNC = 0x20
670 MSG_TRYHARD = 0x4
671 MSG_WAITALL = 0x100
672 MSG_WAITFORONE = 0x10000
673 MS_ACTIVE = 0x40000000
674 MS_ASYNC = 0x1
675 MS_BIND = 0x1000
676 MS_DIRSYNC = 0x80
677 MS_INVALIDATE = 0x2
678 MS_I_VERSION = 0x800000
679 MS_KERNMOUNT = 0x400000
680 MS_MANDLOCK = 0x40
681 MS_MGC_MSK = 0xffff0000
682 MS_MGC_VAL = 0xc0ed0000
683 MS_MOVE = 0x2000
684 MS_NOATIME = 0x400
685 MS_NODEV = 0x4
686 MS_NODIRATIME = 0x800
687 MS_NOEXEC = 0x8
688 MS_NOSUID = 0x2
689 MS_NOUSER = -0x80000000
690 MS_POSIXACL = 0x10000
691 MS_PRIVATE = 0x40000
692 MS_RDONLY = 0x1
693 MS_REC = 0x4000
694 MS_RELATIME = 0x200000
695 MS_REMOUNT = 0x20
696 MS_RMT_MASK = 0x800051
697 MS_SHARED = 0x100000
698 MS_SILENT = 0x8000
699 MS_SLAVE = 0x80000
700 MS_STRICTATIME = 0x1000000
701 MS_SYNC = 0x4
702 MS_SYNCHRONOUS = 0x10
703 MS_UNBINDABLE = 0x20000
704 NAME_MAX = 0xff
705 NETLINK_ADD_MEMBERSHIP = 0x1
706 NETLINK_AUDIT = 0x9
707 NETLINK_BROADCAST_ERROR = 0x4
708 NETLINK_CONNECTOR = 0xb
709 NETLINK_DNRTMSG = 0xe
710 NETLINK_DROP_MEMBERSHIP = 0x2
711 NETLINK_ECRYPTFS = 0x13
712 NETLINK_FIB_LOOKUP = 0xa
713 NETLINK_FIREWALL = 0x3
714 NETLINK_GENERIC = 0x10
715 NETLINK_INET_DIAG = 0x4
716 NETLINK_IP6_FW = 0xd
717 NETLINK_ISCSI = 0x8
718 NETLINK_KOBJECT_UEVENT = 0xf
719 NETLINK_NETFILTER = 0xc
720 NETLINK_NFLOG = 0x5
721 NETLINK_NO_ENOBUFS = 0x5
722 NETLINK_PKTINFO = 0x3
723 NETLINK_RDMA = 0x14
724 NETLINK_ROUTE = 0x0
725 NETLINK_SCSITRANSPORT = 0x12
726 NETLINK_SELINUX = 0x7
727 NETLINK_UNUSED = 0x1
728 NETLINK_USERSOCK = 0x2
729 NETLINK_XFRM = 0x6
730 NL0 = 0x0
731 NL1 = 0x100
732 NLA_ALIGNTO = 0x4
733 NLA_F_NESTED = 0x8000
734 NLA_F_NET_BYTEORDER = 0x4000
735 NLA_HDRLEN = 0x4
736 NLDLY = 0x100
737 NLMSG_ALIGNTO = 0x4
738 NLMSG_DONE = 0x3
739 NLMSG_ERROR = 0x2
740 NLMSG_HDRLEN = 0x10
741 NLMSG_MIN_TYPE = 0x10
742 NLMSG_NOOP = 0x1
743 NLMSG_OVERRUN = 0x4
744 NLM_F_ACK = 0x4
745 NLM_F_APPEND = 0x800
746 NLM_F_ATOMIC = 0x400
747 NLM_F_CREATE = 0x400
748 NLM_F_DUMP = 0x300
749 NLM_F_ECHO = 0x8
750 NLM_F_EXCL = 0x200
751 NLM_F_MATCH = 0x200
752 NLM_F_MULTI = 0x2
753 NLM_F_REPLACE = 0x100
754 NLM_F_REQUEST = 0x1
755 NLM_F_ROOT = 0x100
756 NOFLSH = 0x80
757 OCRNL = 0x8
758 OFDEL = 0x80
759 OFILL = 0x40
760 OLCUC = 0x2
761 ONLCR = 0x4
762 ONLRET = 0x20
763 ONOCR = 0x10
764 OPOST = 0x1
765 O_ACCMODE = 0x3
766 O_APPEND = 0x400
767 O_ASYNC = 0x2000
768 O_CLOEXEC = 0x80000
769 O_CREAT = 0x40
770 O_DIRECT = 0x10000
771 O_DIRECTORY = 0x4000
772 O_DSYNC = 0x1000
773 O_EXCL = 0x80
774 O_FSYNC = 0x1000
775 O_LARGEFILE = 0x20000
776 O_NDELAY = 0x800
777 O_NOATIME = 0x40000
778 O_NOCTTY = 0x100
779 O_NOFOLLOW = 0x8000
780 O_NONBLOCK = 0x800
781 O_PATH = 0x200000
782 O_RDONLY = 0x0
783 O_RDWR = 0x2
784 O_RSYNC = 0x1000
785 O_SYNC = 0x1000
786 O_TRUNC = 0x200
787 O_WRONLY = 0x1
788 PACKET_ADD_MEMBERSHIP = 0x1
789 PACKET_BROADCAST = 0x1
790 PACKET_DROP_MEMBERSHIP = 0x2
791 PACKET_FASTROUTE = 0x6
792 PACKET_HOST = 0x0
793 PACKET_LOOPBACK = 0x5
794 PACKET_MR_ALLMULTI = 0x2
795 PACKET_MR_MULTICAST = 0x0
796 PACKET_MR_PROMISC = 0x1
797 PACKET_MULTICAST = 0x2
798 PACKET_OTHERHOST = 0x3
799 PACKET_OUTGOING = 0x4
800 PACKET_RECV_OUTPUT = 0x3
801 PACKET_RX_RING = 0x5
802 PACKET_STATISTICS = 0x6
803 PARENB = 0x100
804 PARMRK = 0x8
805 PARODD = 0x200
806 PENDIN = 0x4000
807 PRIO_PGRP = 0x1
808 PRIO_PROCESS = 0x0
809 PRIO_USER = 0x2
810 PROT_EXEC = 0x4
811 PROT_GROWSDOWN = 0x1000000
812 PROT_GROWSUP = 0x2000000
813 PROT_NONE = 0x0
814 PROT_READ = 0x1
815 PROT_WRITE = 0x2
816 PR_CAPBSET_DROP = 0x18
817 PR_CAPBSET_READ = 0x17
818 PR_CLEAR_SECCOMP_FILTER = 0x25
819 PR_ENDIAN_BIG = 0x0
820 PR_ENDIAN_LITTLE = 0x1
821 PR_ENDIAN_PPC_LITTLE = 0x2
822 PR_FPEMU_NOPRINT = 0x1
823 PR_FPEMU_SIGFPE = 0x2
824 PR_FP_EXC_ASYNC = 0x2
825 PR_FP_EXC_DISABLED = 0x0
826 PR_FP_EXC_DIV = 0x10000
827 PR_FP_EXC_INV = 0x100000
828 PR_FP_EXC_NONRECOV = 0x1
829 PR_FP_EXC_OVF = 0x20000
830 PR_FP_EXC_PRECISE = 0x3
831 PR_FP_EXC_RES = 0x80000
832 PR_FP_EXC_SW_ENABLE = 0x80
833 PR_FP_EXC_UND = 0x40000
834 PR_GET_DUMPABLE = 0x3
835 PR_GET_ENDIAN = 0x13
836 PR_GET_FPEMU = 0x9
837 PR_GET_FPEXC = 0xb
838 PR_GET_KEEPCAPS = 0x7
839 PR_GET_NAME = 0x10
840 PR_GET_PDEATHSIG = 0x2
841 PR_GET_SECCOMP = 0x15
842 PR_GET_SECCOMP_FILTER = 0x23
843 PR_GET_SECUREBITS = 0x1b
844 PR_GET_TIMERSLACK = 0x1e
845 PR_GET_TIMING = 0xd
846 PR_GET_TSC = 0x19
847 PR_GET_UNALIGN = 0x5
848 PR_MCE_KILL = 0x21
849 PR_MCE_KILL_CLEAR = 0x0
850 PR_MCE_KILL_DEFAULT = 0x2
851 PR_MCE_KILL_EARLY = 0x1
852 PR_MCE_KILL_GET = 0x22
853 PR_MCE_KILL_LATE = 0x0
854 PR_MCE_KILL_SET = 0x1
855 PR_SECCOMP_FILTER_EVENT = 0x1
856 PR_SECCOMP_FILTER_SYSCALL = 0x0
857 PR_SET_DUMPABLE = 0x4
858 PR_SET_ENDIAN = 0x14
859 PR_SET_FPEMU = 0xa
860 PR_SET_FPEXC = 0xc
861 PR_SET_KEEPCAPS = 0x8
862 PR_SET_NAME = 0xf
863 PR_SET_PDEATHSIG = 0x1
864 PR_SET_PTRACER = 0x59616d61
865 PR_SET_SECCOMP = 0x16
866 PR_SET_SECCOMP_FILTER = 0x24
867 PR_SET_SECUREBITS = 0x1c
868 PR_SET_TIMERSLACK = 0x1d
869 PR_SET_TIMING = 0xe
870 PR_SET_TSC = 0x1a
871 PR_SET_UNALIGN = 0x6
872 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
873 PR_TASK_PERF_EVENTS_ENABLE = 0x20
874 PR_TIMING_STATISTICAL = 0x0
875 PR_TIMING_TIMESTAMP = 0x1
876 PR_TSC_ENABLE = 0x1
877 PR_TSC_SIGSEGV = 0x2
878 PR_UNALIGN_NOPRINT = 0x1
879 PR_UNALIGN_SIGBUS = 0x2
880 PTRACE_ATTACH = 0x10
881 PTRACE_CONT = 0x7
882 PTRACE_DETACH = 0x11
883 PTRACE_EVENT_CLONE = 0x3
884 PTRACE_EVENT_EXEC = 0x4
885 PTRACE_EVENT_EXIT = 0x6
886 PTRACE_EVENT_FORK = 0x1
887 PTRACE_EVENT_VFORK = 0x2
888 PTRACE_EVENT_VFORK_DONE = 0x5
889 PTRACE_GETCRUNCHREGS = 0x19
890 PTRACE_GETEVENTMSG = 0x4201
891 PTRACE_GETFPREGS = 0xe
892 PTRACE_GETHBPREGS = 0x1d
893 PTRACE_GETREGS = 0xc
894 PTRACE_GETREGSET = 0x4204
895 PTRACE_GETSIGINFO = 0x4202
896 PTRACE_GETVFPREGS = 0x1b
897 PTRACE_GETWMMXREGS = 0x12
898 PTRACE_GET_THREAD_AREA = 0x16
899 PTRACE_KILL = 0x8
900 PTRACE_OLDSETOPTIONS = 0x15
901 PTRACE_O_MASK = 0x7f
902 PTRACE_O_TRACECLONE = 0x8
903 PTRACE_O_TRACEEXEC = 0x10
904 PTRACE_O_TRACEEXIT = 0x40
905 PTRACE_O_TRACEFORK = 0x2
906 PTRACE_O_TRACESYSGOOD = 0x1
907 PTRACE_O_TRACEVFORK = 0x4
908 PTRACE_O_TRACEVFORKDONE = 0x20
909 PTRACE_PEEKDATA = 0x2
910 PTRACE_PEEKTEXT = 0x1
911 PTRACE_PEEKUSR = 0x3
912 PTRACE_POKEDATA = 0x5
913 PTRACE_POKETEXT = 0x4
914 PTRACE_POKEUSR = 0x6
915 PTRACE_SETCRUNCHREGS = 0x1a
916 PTRACE_SETFPREGS = 0xf
917 PTRACE_SETHBPREGS = 0x1e
918 PTRACE_SETOPTIONS = 0x4200
919 PTRACE_SETREGS = 0xd
920 PTRACE_SETREGSET = 0x4205
921 PTRACE_SETSIGINFO = 0x4203
922 PTRACE_SETVFPREGS = 0x1c
923 PTRACE_SETWMMXREGS = 0x13
924 PTRACE_SET_SYSCALL = 0x17
925 PTRACE_SINGLESTEP = 0x9
926 PTRACE_SYSCALL = 0x18
927 PTRACE_TRACEME = 0x0
928 PT_DATA_ADDR = 0x10004
929 PT_TEXT_ADDR = 0x10000
930 PT_TEXT_END_ADDR = 0x10008
931 RLIMIT_AS = 0x9
932 RLIMIT_CORE = 0x4
933 RLIMIT_CPU = 0x0
934 RLIMIT_DATA = 0x2
935 RLIMIT_FSIZE = 0x1
936 RLIMIT_NOFILE = 0x7
937 RLIMIT_STACK = 0x3
938 RLIM_INFINITY = -0x1
939 RTAX_ADVMSS = 0x8
940 RTAX_CWND = 0x7
941 RTAX_FEATURES = 0xc
942 RTAX_FEATURE_ALLFRAG = 0x8
943 RTAX_FEATURE_ECN = 0x1
944 RTAX_FEATURE_SACK = 0x2
945 RTAX_FEATURE_TIMESTAMP = 0x4
946 RTAX_HOPLIMIT = 0xa
947 RTAX_INITCWND = 0xb
948 RTAX_INITRWND = 0xe
949 RTAX_LOCK = 0x1
950 RTAX_MAX = 0xe
951 RTAX_MTU = 0x2
952 RTAX_REORDERING = 0x9
953 RTAX_RTO_MIN = 0xd
954 RTAX_RTT = 0x4
955 RTAX_RTTVAR = 0x5
956 RTAX_SSTHRESH = 0x6
957 RTAX_UNSPEC = 0x0
958 RTAX_WINDOW = 0x3
959 RTA_ALIGNTO = 0x4
960 RTA_MAX = 0x10
961 RTCF_DIRECTSRC = 0x4000000
962 RTCF_DOREDIRECT = 0x1000000
963 RTCF_LOG = 0x2000000
964 RTCF_MASQ = 0x400000
965 RTCF_NAT = 0x800000
966 RTCF_VALVE = 0x200000
967 RTF_ADDRCLASSMASK = 0xf8000000
968 RTF_ADDRCONF = 0x40000
969 RTF_ALLONLINK = 0x20000
970 RTF_BROADCAST = 0x10000000
971 RTF_CACHE = 0x1000000
972 RTF_DEFAULT = 0x10000
973 RTF_DYNAMIC = 0x10
974 RTF_FLOW = 0x2000000
975 RTF_GATEWAY = 0x2
976 RTF_HOST = 0x4
977 RTF_INTERFACE = 0x40000000
978 RTF_IRTT = 0x100
979 RTF_LINKRT = 0x100000
980 RTF_LOCAL = 0x80000000
981 RTF_MODIFIED = 0x20
982 RTF_MSS = 0x40
983 RTF_MTU = 0x40
984 RTF_MULTICAST = 0x20000000
985 RTF_NAT = 0x8000000
986 RTF_NOFORWARD = 0x1000
987 RTF_NONEXTHOP = 0x200000
988 RTF_NOPMTUDISC = 0x4000
989 RTF_POLICY = 0x4000000
990 RTF_REINSTATE = 0x8
991 RTF_REJECT = 0x200
992 RTF_STATIC = 0x400
993 RTF_THROW = 0x2000
994 RTF_UP = 0x1
995 RTF_WINDOW = 0x80
996 RTF_XRESOLVE = 0x800
997 RTM_BASE = 0x10
998 RTM_DELACTION = 0x31
999 RTM_DELADDR = 0x15
1000 RTM_DELADDRLABEL = 0x49
1001 RTM_DELLINK = 0x11
1002 RTM_DELNEIGH = 0x1d
1003 RTM_DELQDISC = 0x25
1004 RTM_DELROUTE = 0x19
1005 RTM_DELRULE = 0x21
1006 RTM_DELTCLASS = 0x29
1007 RTM_DELTFILTER = 0x2d
1008 RTM_F_CLONED = 0x200
1009 RTM_F_EQUALIZE = 0x400
1010 RTM_F_NOTIFY = 0x100
1011 RTM_F_PREFIX = 0x800
1012 RTM_GETACTION = 0x32
1013 RTM_GETADDR = 0x16
1014 RTM_GETADDRLABEL = 0x4a
1015 RTM_GETANYCAST = 0x3e
1016 RTM_GETDCB = 0x4e
1017 RTM_GETLINK = 0x12
1018 RTM_GETMULTICAST = 0x3a
1019 RTM_GETNEIGH = 0x1e
1020 RTM_GETNEIGHTBL = 0x42
1021 RTM_GETQDISC = 0x26
1022 RTM_GETROUTE = 0x1a
1023 RTM_GETRULE = 0x22
1024 RTM_GETTCLASS = 0x2a
1025 RTM_GETTFILTER = 0x2e
1026 RTM_MAX = 0x4f
1027 RTM_NEWACTION = 0x30
1028 RTM_NEWADDR = 0x14
1029 RTM_NEWADDRLABEL = 0x48
1030 RTM_NEWLINK = 0x10
1031 RTM_NEWNDUSEROPT = 0x44
1032 RTM_NEWNEIGH = 0x1c
1033 RTM_NEWNEIGHTBL = 0x40
1034 RTM_NEWPREFIX = 0x34
1035 RTM_NEWQDISC = 0x24
1036 RTM_NEWROUTE = 0x18
1037 RTM_NEWRULE = 0x20
1038 RTM_NEWTCLASS = 0x28
1039 RTM_NEWTFILTER = 0x2c
1040 RTM_NR_FAMILIES = 0x10
1041 RTM_NR_MSGTYPES = 0x40
1042 RTM_SETDCB = 0x4f
1043 RTM_SETLINK = 0x13
1044 RTM_SETNEIGHTBL = 0x43
1045 RTNH_ALIGNTO = 0x4
1046 RTNH_F_DEAD = 0x1
1047 RTNH_F_ONLINK = 0x4
1048 RTNH_F_PERVASIVE = 0x2
1049 RTN_MAX = 0xb
1050 RTPROT_BIRD = 0xc
1051 RTPROT_BOOT = 0x3
1052 RTPROT_DHCP = 0x10
1053 RTPROT_DNROUTED = 0xd
1054 RTPROT_GATED = 0x8
1055 RTPROT_KERNEL = 0x2
1056 RTPROT_MRT = 0xa
1057 RTPROT_NTK = 0xf
1058 RTPROT_RA = 0x9
1059 RTPROT_REDIRECT = 0x1
1060 RTPROT_STATIC = 0x4
1061 RTPROT_UNSPEC = 0x0
1062 RTPROT_XORP = 0xe
1063 RTPROT_ZEBRA = 0xb
1064 RT_CLASS_DEFAULT = 0xfd
1065 RT_CLASS_LOCAL = 0xff
1066 RT_CLASS_MAIN = 0xfe
1067 RT_CLASS_MAX = 0xff
1068 RT_CLASS_UNSPEC = 0x0
1069 RUSAGE_CHILDREN = -0x1
1070 RUSAGE_SELF = 0x0
1071 RUSAGE_THREAD = 0x1
1072 SCM_CREDENTIALS = 0x2
1073 SCM_RIGHTS = 0x1
1074 SCM_TIMESTAMP = 0x1d
1075 SCM_TIMESTAMPING = 0x25
1076 SCM_TIMESTAMPNS = 0x23
1077 SHUT_RD = 0x0
1078 SHUT_RDWR = 0x2
1079 SHUT_WR = 0x1
1080 SIOCADDDLCI = 0x8980
1081 SIOCADDMULTI = 0x8931
1082 SIOCADDRT = 0x890b
1083 SIOCATMARK = 0x8905
1084 SIOCDARP = 0x8953
1085 SIOCDELDLCI = 0x8981
1086 SIOCDELMULTI = 0x8932
1087 SIOCDELRT = 0x890c
1088 SIOCDEVPRIVATE = 0x89f0
1089 SIOCDIFADDR = 0x8936
1090 SIOCDRARP = 0x8960
1091 SIOCGARP = 0x8954
1092 SIOCGIFADDR = 0x8915
1093 SIOCGIFBR = 0x8940
1094 SIOCGIFBRDADDR = 0x8919
1095 SIOCGIFCONF = 0x8912
1096 SIOCGIFCOUNT = 0x8938
1097 SIOCGIFDSTADDR = 0x8917
1098 SIOCGIFENCAP = 0x8925
1099 SIOCGIFFLAGS = 0x8913
1100 SIOCGIFHWADDR = 0x8927
1101 SIOCGIFINDEX = 0x8933
1102 SIOCGIFMAP = 0x8970
1103 SIOCGIFMEM = 0x891f
1104 SIOCGIFMETRIC = 0x891d
1105 SIOCGIFMTU = 0x8921
1106 SIOCGIFNAME = 0x8910
1107 SIOCGIFNETMASK = 0x891b
1108 SIOCGIFPFLAGS = 0x8935
1109 SIOCGIFSLAVE = 0x8929
1110 SIOCGIFTXQLEN = 0x8942
1111 SIOCGPGRP = 0x8904
1112 SIOCGRARP = 0x8961
1113 SIOCGSTAMP = 0x8906
1114 SIOCGSTAMPNS = 0x8907
1115 SIOCPROTOPRIVATE = 0x89e0
1116 SIOCRTMSG = 0x890d
1117 SIOCSARP = 0x8955
1118 SIOCSIFADDR = 0x8916
1119 SIOCSIFBR = 0x8941
1120 SIOCSIFBRDADDR = 0x891a
1121 SIOCSIFDSTADDR = 0x8918
1122 SIOCSIFENCAP = 0x8926
1123 SIOCSIFFLAGS = 0x8914
1124 SIOCSIFHWADDR = 0x8924
1125 SIOCSIFHWBROADCAST = 0x8937
1126 SIOCSIFLINK = 0x8911
1127 SIOCSIFMAP = 0x8971
1128 SIOCSIFMEM = 0x8920
1129 SIOCSIFMETRIC = 0x891e
1130 SIOCSIFMTU = 0x8922
1131 SIOCSIFNAME = 0x8923
1132 SIOCSIFNETMASK = 0x891c
1133 SIOCSIFPFLAGS = 0x8934
1134 SIOCSIFSLAVE = 0x8930
1135 SIOCSIFTXQLEN = 0x8943
1136 SIOCSPGRP = 0x8902
1137 SIOCSRARP = 0x8962
1138 SOCK_CLOEXEC = 0x80000
1139 SOCK_DCCP = 0x6
1140 SOCK_DGRAM = 0x2
1141 SOCK_NONBLOCK = 0x800
1142 SOCK_PACKET = 0xa
1143 SOCK_RAW = 0x3
1144 SOCK_RDM = 0x4
1145 SOCK_SEQPACKET = 0x5
1146 SOCK_STREAM = 0x1
1147 SOL_AAL = 0x109
1148 SOL_ATM = 0x108
1149 SOL_DECNET = 0x105
1150 SOL_ICMPV6 = 0x3a
1151 SOL_IP = 0x0
1152 SOL_IPV6 = 0x29
1153 SOL_IRDA = 0x10a
1154 SOL_PACKET = 0x107
1155 SOL_RAW = 0xff
1156 SOL_SOCKET = 0x1
1157 SOL_TCP = 0x6
1158 SOL_X25 = 0x106
1159 SOMAXCONN = 0x80
1160 SO_ACCEPTCONN = 0x1e
1161 SO_ATTACH_FILTER = 0x1a
1162 SO_BINDTODEVICE = 0x19
1163 SO_BROADCAST = 0x6
1164 SO_BSDCOMPAT = 0xe
1165 SO_DEBUG = 0x1
1166 SO_DETACH_FILTER = 0x1b
1167 SO_DOMAIN = 0x27
1168 SO_DONTROUTE = 0x5
1169 SO_ERROR = 0x4
1170 SO_KEEPALIVE = 0x9
1171 SO_LINGER = 0xd
1172 SO_MARK = 0x24
1173 SO_NO_CHECK = 0xb
1174 SO_OOBINLINE = 0xa
1175 SO_PASSCRED = 0x10
1176 SO_PASSSEC = 0x22
1177 SO_PEERCRED = 0x11
1178 SO_PEERNAME = 0x1c
1179 SO_PEERSEC = 0x1f
1180 SO_PRIORITY = 0xc
1181 SO_PROTOCOL = 0x26
1182 SO_RCVBUF = 0x8
1183 SO_RCVBUFFORCE = 0x21
1184 SO_RCVLOWAT = 0x12
1185 SO_RCVTIMEO = 0x14
1186 SO_REUSEADDR = 0x2
1187 SO_RXQ_OVFL = 0x28
1188 SO_SECURITY_AUTHENTICATION = 0x16
1189 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
1190 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
1191 SO_SNDBUF = 0x7
1192 SO_SNDBUFFORCE = 0x20
1193 SO_SNDLOWAT = 0x13
1194 SO_SNDTIMEO = 0x15
1195 SO_TIMESTAMP = 0x1d
1196 SO_TIMESTAMPING = 0x25
1197 SO_TIMESTAMPNS = 0x23
1198 SO_TYPE = 0x3
1199 S_BLKSIZE = 0x200
1200 S_IEXEC = 0x40
1201 S_IFBLK = 0x6000
1202 S_IFCHR = 0x2000
1203 S_IFDIR = 0x4000
1204 S_IFIFO = 0x1000
1205 S_IFLNK = 0xa000
1206 S_IFMT = 0xf000
1207 S_IFREG = 0x8000
1208 S_IFSOCK = 0xc000
1209 S_IREAD = 0x100
1210 S_IRGRP = 0x20
1211 S_IROTH = 0x4
1212 S_IRUSR = 0x100
1213 S_IRWXG = 0x38
1214 S_IRWXO = 0x7
1215 S_IRWXU = 0x1c0
1216 S_ISGID = 0x400
1217 S_ISUID = 0x800
1218 S_ISVTX = 0x200
1219 S_IWGRP = 0x10
1220 S_IWOTH = 0x2
1221 S_IWRITE = 0x80
1222 S_IWUSR = 0x80
1223 S_IXGRP = 0x8
1224 S_IXOTH = 0x1
1225 S_IXUSR = 0x40
1226 TAB0 = 0x0
1227 TAB1 = 0x800
1228 TAB2 = 0x1000
1229 TAB3 = 0x1800
1230 TABDLY = 0x1800
1231 TCFLSH = 0x540b
1232 TCGETA = 0x5405
1233 TCGETS = 0x5401
1234 TCGETS2 = 0x802c542a
1235 TCGETX = 0x5432
1236 TCIFLUSH = 0x0
1237 TCIOFF = 0x2
1238 TCIOFLUSH = 0x2
1239 TCION = 0x3
1240 TCOFLUSH = 0x1
1241 TCOOFF = 0x0
1242 TCOON = 0x1
1243 TCP_CONGESTION = 0xd
1244 TCP_CORK = 0x3
1245 TCP_DEFER_ACCEPT = 0x9
1246 TCP_INFO = 0xb
1247 TCP_KEEPCNT = 0x6
1248 TCP_KEEPIDLE = 0x4
1249 TCP_KEEPINTVL = 0x5
1250 TCP_LINGER2 = 0x8
1251 TCP_MAXSEG = 0x2
1252 TCP_MAXWIN = 0xffff
1253 TCP_MAX_WINSHIFT = 0xe
1254 TCP_MD5SIG = 0xe
1255 TCP_MD5SIG_MAXKEYLEN = 0x50
1256 TCP_MSS = 0x200
1257 TCP_NODELAY = 0x1
1258 TCP_QUICKACK = 0xc
1259 TCP_SYNCNT = 0x7
1260 TCP_WINDOW_CLAMP = 0xa
1261 TCSAFLUSH = 0x2
1262 TCSBRK = 0x5409
1263 TCSBRKP = 0x5425
1264 TCSETA = 0x5406
1265 TCSETAF = 0x5408
1266 TCSETAW = 0x5407
1267 TCSETS = 0x5402
1268 TCSETS2 = 0x402c542b
1269 TCSETSF = 0x5404
1270 TCSETSF2 = 0x402c542d
1271 TCSETSW = 0x5403
1272 TCSETSW2 = 0x402c542c
1273 TCSETX = 0x5433
1274 TCSETXF = 0x5434
1275 TCSETXW = 0x5435
1276 TCXONC = 0x540a
1277 TIOCCBRK = 0x5428
1278 TIOCCONS = 0x541d
1279 TIOCEXCL = 0x540c
1280 TIOCGDEV = 0x80045432
1281 TIOCGETD = 0x5424
1282 TIOCGEXCL = 0x80045440
1283 TIOCGICOUNT = 0x545d
1284 TIOCGLCKTRMIOS = 0x5456
1285 TIOCGPGRP = 0x540f
1286 TIOCGPKT = 0x80045438
1287 TIOCGPTLCK = 0x80045439
1288 TIOCGPTN = 0x80045430
1289 TIOCGRS485 = 0x542e
1290 TIOCGSERIAL = 0x541e
1291 TIOCGSID = 0x5429
1292 TIOCGSOFTCAR = 0x5419
1293 TIOCGWINSZ = 0x5413
1294 TIOCINQ = 0x541b
1295 TIOCLINUX = 0x541c
1296 TIOCMBIC = 0x5417
1297 TIOCMBIS = 0x5416
1298 TIOCMGET = 0x5415
1299 TIOCMIWAIT = 0x545c
1300 TIOCMSET = 0x5418
1301 TIOCM_CAR = 0x40
1302 TIOCM_CD = 0x40
1303 TIOCM_CTS = 0x20
1304 TIOCM_DSR = 0x100
1305 TIOCM_DTR = 0x2
1306 TIOCM_LE = 0x1
1307 TIOCM_RI = 0x80
1308 TIOCM_RNG = 0x80
1309 TIOCM_RTS = 0x4
1310 TIOCM_SR = 0x10
1311 TIOCM_ST = 0x8
1312 TIOCNOTTY = 0x5422
1313 TIOCNXCL = 0x540d
1314 TIOCOUTQ = 0x5411
1315 TIOCPKT = 0x5420
1316 TIOCPKT_DATA = 0x0
1317 TIOCPKT_DOSTOP = 0x20
1318 TIOCPKT_FLUSHREAD = 0x1
1319 TIOCPKT_FLUSHWRITE = 0x2
1320 TIOCPKT_IOCTL = 0x40
1321 TIOCPKT_NOSTOP = 0x10
1322 TIOCPKT_START = 0x8
1323 TIOCPKT_STOP = 0x4
1324 TIOCSBRK = 0x5427
1325 TIOCSCTTY = 0x540e
1326 TIOCSERCONFIG = 0x5453
1327 TIOCSERGETLSR = 0x5459
1328 TIOCSERGETMULTI = 0x545a
1329 TIOCSERGSTRUCT = 0x5458
1330 TIOCSERGWILD = 0x5454
1331 TIOCSERSETMULTI = 0x545b
1332 TIOCSERSWILD = 0x5455
1333 TIOCSER_TEMT = 0x1
1334 TIOCSETD = 0x5423
1335 TIOCSIG = 0x40045436
1336 TIOCSLCKTRMIOS = 0x5457
1337 TIOCSPGRP = 0x5410
1338 TIOCSPTLCK = 0x40045431
1339 TIOCSRS485 = 0x542f
1340 TIOCSSERIAL = 0x541f
1341 TIOCSSOFTCAR = 0x541a
1342 TIOCSTI = 0x5412
1343 TIOCSWINSZ = 0x5414
1344 TIOCVHANGUP = 0x5437
1345 TOSTOP = 0x100
1346 TUNATTACHFILTER = 0x400854d5
1347 TUNDETACHFILTER = 0x400854d6
1348 TUNGETFEATURES = 0x800454cf
1349 TUNGETIFF = 0x800454d2
1350 TUNGETSNDBUF = 0x800454d3
1351 TUNGETVNETHDRSZ = 0x800454d7
1352 TUNSETDEBUG = 0x400454c9
1353 TUNSETGROUP = 0x400454ce
1354 TUNSETIFF = 0x400454ca
1355 TUNSETLINK = 0x400454cd
1356 TUNSETNOCSUM = 0x400454c8
1357 TUNSETOFFLOAD = 0x400454d0
1358 TUNSETOWNER = 0x400454cc
1359 TUNSETPERSIST = 0x400454cb
1360 TUNSETSNDBUF = 0x400454d4
1361 TUNSETTXFILTER = 0x400454d1
1362 TUNSETVNETHDRSZ = 0x400454d8
1363 VDISCARD = 0xd
1364 VEOF = 0x4
1365 VEOL = 0xb
1366 VEOL2 = 0x10
1367 VERASE = 0x2
1368 VINTR = 0x0
1369 VKILL = 0x3
1370 VLNEXT = 0xf
1371 VMIN = 0x6
1372 VQUIT = 0x1
1373 VREPRINT = 0xc
1374 VSTART = 0x8
1375 VSTOP = 0x9
1376 VSUSP = 0xa
1377 VSWTC = 0x7
1378 VT0 = 0x0
1379 VT1 = 0x4000
1380 VTDLY = 0x4000
1381 VTIME = 0x5
1382 VWERASE = 0xe
1383 WALL = 0x40000000
1384 WCLONE = 0x80000000
1385 WCONTINUED = 0x8
1386 WEXITED = 0x4
1387 WNOHANG = 0x1
1388 WNOTHREAD = 0x20000000
1389 WNOWAIT = 0x1000000
1390 WORDSIZE = 0x20
1391 WSTOPPED = 0x2
1392 WUNTRACED = 0x2
1393 XCASE = 0x4
1394 XTABS = 0x1800
1395)
1396
1397// Errors
1398const (
1399 E2BIG = syscall.Errno(0x7)
1400 EACCES = syscall.Errno(0xd)
1401 EADDRINUSE = syscall.Errno(0x62)
1402 EADDRNOTAVAIL = syscall.Errno(0x63)
1403 EADV = syscall.Errno(0x44)
1404 EAFNOSUPPORT = syscall.Errno(0x61)
1405 EAGAIN = syscall.Errno(0xb)
1406 EALREADY = syscall.Errno(0x72)
1407 EBADE = syscall.Errno(0x34)
1408 EBADF = syscall.Errno(0x9)
1409 EBADFD = syscall.Errno(0x4d)
1410 EBADMSG = syscall.Errno(0x4a)
1411 EBADR = syscall.Errno(0x35)
1412 EBADRQC = syscall.Errno(0x38)
1413 EBADSLT = syscall.Errno(0x39)
1414 EBFONT = syscall.Errno(0x3b)
1415 EBUSY = syscall.Errno(0x10)
1416 ECANCELED = syscall.Errno(0x7d)
1417 ECHILD = syscall.Errno(0xa)
1418 ECHRNG = syscall.Errno(0x2c)
1419 ECOMM = syscall.Errno(0x46)
1420 ECONNABORTED = syscall.Errno(0x67)
1421 ECONNREFUSED = syscall.Errno(0x6f)
1422 ECONNRESET = syscall.Errno(0x68)
1423 EDEADLK = syscall.Errno(0x23)
1424 EDEADLOCK = syscall.Errno(0x23)
1425 EDESTADDRREQ = syscall.Errno(0x59)
1426 EDOM = syscall.Errno(0x21)
1427 EDOTDOT = syscall.Errno(0x49)
1428 EDQUOT = syscall.Errno(0x7a)
1429 EEXIST = syscall.Errno(0x11)
1430 EFAULT = syscall.Errno(0xe)
1431 EFBIG = syscall.Errno(0x1b)
1432 EHOSTDOWN = syscall.Errno(0x70)
1433 EHOSTUNREACH = syscall.Errno(0x71)
1434 EHWPOISON = syscall.Errno(0x85)
1435 EIDRM = syscall.Errno(0x2b)
1436 EILSEQ = syscall.Errno(0x54)
1437 EINPROGRESS = syscall.Errno(0x73)
1438 EINTR = syscall.Errno(0x4)
1439 EINVAL = syscall.Errno(0x16)
1440 EIO = syscall.Errno(0x5)
1441 EISCONN = syscall.Errno(0x6a)
1442 EISDIR = syscall.Errno(0x15)
1443 EISNAM = syscall.Errno(0x78)
1444 EKEYEXPIRED = syscall.Errno(0x7f)
1445 EKEYREJECTED = syscall.Errno(0x81)
1446 EKEYREVOKED = syscall.Errno(0x80)
1447 EL2HLT = syscall.Errno(0x33)
1448 EL2NSYNC = syscall.Errno(0x2d)
1449 EL3HLT = syscall.Errno(0x2e)
1450 EL3RST = syscall.Errno(0x2f)
1451 ELIBACC = syscall.Errno(0x4f)
1452 ELIBBAD = syscall.Errno(0x50)
1453 ELIBEXEC = syscall.Errno(0x53)
1454 ELIBMAX = syscall.Errno(0x52)
1455 ELIBSCN = syscall.Errno(0x51)
1456 ELNRNG = syscall.Errno(0x30)
1457 ELOOP = syscall.Errno(0x28)
1458 EMEDIUMTYPE = syscall.Errno(0x7c)
1459 EMFILE = syscall.Errno(0x18)
1460 EMLINK = syscall.Errno(0x1f)
1461 EMSGSIZE = syscall.Errno(0x5a)
1462 EMULTIHOP = syscall.Errno(0x48)
1463 ENAMETOOLONG = syscall.Errno(0x24)
1464 ENAVAIL = syscall.Errno(0x77)
1465 ENETDOWN = syscall.Errno(0x64)
1466 ENETRESET = syscall.Errno(0x66)
1467 ENETUNREACH = syscall.Errno(0x65)
1468 ENFILE = syscall.Errno(0x17)
1469 ENOANO = syscall.Errno(0x37)
1470 ENOBUFS = syscall.Errno(0x69)
1471 ENOCSI = syscall.Errno(0x32)
1472 ENODATA = syscall.Errno(0x3d)
1473 ENODEV = syscall.Errno(0x13)
1474 ENOENT = syscall.Errno(0x2)
1475 ENOEXEC = syscall.Errno(0x8)
1476 ENOKEY = syscall.Errno(0x7e)
1477 ENOLCK = syscall.Errno(0x25)
1478 ENOLINK = syscall.Errno(0x43)
1479 ENOMEDIUM = syscall.Errno(0x7b)
1480 ENOMEM = syscall.Errno(0xc)
1481 ENOMSG = syscall.Errno(0x2a)
1482 ENONET = syscall.Errno(0x40)
1483 ENOPKG = syscall.Errno(0x41)
1484 ENOPROTOOPT = syscall.Errno(0x5c)
1485 ENOSPC = syscall.Errno(0x1c)
1486 ENOSR = syscall.Errno(0x3f)
1487 ENOSTR = syscall.Errno(0x3c)
1488 ENOSYS = syscall.Errno(0x26)
1489 ENOTBLK = syscall.Errno(0xf)
1490 ENOTCONN = syscall.Errno(0x6b)
1491 ENOTDIR = syscall.Errno(0x14)
1492 ENOTEMPTY = syscall.Errno(0x27)
1493 ENOTNAM = syscall.Errno(0x76)
1494 ENOTRECOVERABLE = syscall.Errno(0x83)
1495 ENOTSOCK = syscall.Errno(0x58)
1496 ENOTSUP = syscall.Errno(0x5f)
1497 ENOTTY = syscall.Errno(0x19)
1498 ENOTUNIQ = syscall.Errno(0x4c)
1499 ENXIO = syscall.Errno(0x6)
1500 EOPNOTSUPP = syscall.Errno(0x5f)
1501 EOVERFLOW = syscall.Errno(0x4b)
1502 EOWNERDEAD = syscall.Errno(0x82)
1503 EPERM = syscall.Errno(0x1)
1504 EPFNOSUPPORT = syscall.Errno(0x60)
1505 EPIPE = syscall.Errno(0x20)
1506 EPROTO = syscall.Errno(0x47)
1507 EPROTONOSUPPORT = syscall.Errno(0x5d)
1508 EPROTOTYPE = syscall.Errno(0x5b)
1509 ERANGE = syscall.Errno(0x22)
1510 EREMCHG = syscall.Errno(0x4e)
1511 EREMOTE = syscall.Errno(0x42)
1512 EREMOTEIO = syscall.Errno(0x79)
1513 ERESTART = syscall.Errno(0x55)
1514 ERFKILL = syscall.Errno(0x84)
1515 EROFS = syscall.Errno(0x1e)
1516 ESHUTDOWN = syscall.Errno(0x6c)
1517 ESOCKTNOSUPPORT = syscall.Errno(0x5e)
1518 ESPIPE = syscall.Errno(0x1d)
1519 ESRCH = syscall.Errno(0x3)
1520 ESRMNT = syscall.Errno(0x45)
1521 ESTALE = syscall.Errno(0x74)
1522 ESTRPIPE = syscall.Errno(0x56)
1523 ETIME = syscall.Errno(0x3e)
1524 ETIMEDOUT = syscall.Errno(0x6e)
1525 ETOOMANYREFS = syscall.Errno(0x6d)
1526 ETXTBSY = syscall.Errno(0x1a)
1527 EUCLEAN = syscall.Errno(0x75)
1528 EUNATCH = syscall.Errno(0x31)
1529 EUSERS = syscall.Errno(0x57)
1530 EWOULDBLOCK = syscall.Errno(0xb)
1531 EXDEV = syscall.Errno(0x12)
1532 EXFULL = syscall.Errno(0x36)
1533)
1534
1535// Signals
1536const (
1537 SIGABRT = syscall.Signal(0x6)
1538 SIGALRM = syscall.Signal(0xe)
1539 SIGBUS = syscall.Signal(0x7)
1540 SIGCHLD = syscall.Signal(0x11)
1541 SIGCLD = syscall.Signal(0x11)
1542 SIGCONT = syscall.Signal(0x12)
1543 SIGFPE = syscall.Signal(0x8)
1544 SIGHUP = syscall.Signal(0x1)
1545 SIGILL = syscall.Signal(0x4)
1546 SIGINT = syscall.Signal(0x2)
1547 SIGIO = syscall.Signal(0x1d)
1548 SIGIOT = syscall.Signal(0x6)
1549 SIGKILL = syscall.Signal(0x9)
1550 SIGPIPE = syscall.Signal(0xd)
1551 SIGPOLL = syscall.Signal(0x1d)
1552 SIGPROF = syscall.Signal(0x1b)
1553 SIGPWR = syscall.Signal(0x1e)
1554 SIGQUIT = syscall.Signal(0x3)
1555 SIGSEGV = syscall.Signal(0xb)
1556 SIGSTKFLT = syscall.Signal(0x10)
1557 SIGSTOP = syscall.Signal(0x13)
1558 SIGSYS = syscall.Signal(0x1f)
1559 SIGTERM = syscall.Signal(0xf)
1560 SIGTRAP = syscall.Signal(0x5)
1561 SIGTSTP = syscall.Signal(0x14)
1562 SIGTTIN = syscall.Signal(0x15)
1563 SIGTTOU = syscall.Signal(0x16)
1564 SIGUNUSED = syscall.Signal(0x1f)
1565 SIGURG = syscall.Signal(0x17)
1566 SIGUSR1 = syscall.Signal(0xa)
1567 SIGUSR2 = syscall.Signal(0xc)
1568 SIGVTALRM = syscall.Signal(0x1a)
1569 SIGWINCH = syscall.Signal(0x1c)
1570 SIGXCPU = syscall.Signal(0x18)
1571 SIGXFSZ = syscall.Signal(0x19)
1572)
1573
1574// Error table
1575var errors = [...]string{
1576 1: "operation not permitted",
1577 2: "no such file or directory",
1578 3: "no such process",
1579 4: "interrupted system call",
1580 5: "input/output error",
1581 6: "no such device or address",
1582 7: "argument list too long",
1583 8: "exec format error",
1584 9: "bad file descriptor",
1585 10: "no child processes",
1586 11: "resource temporarily unavailable",
1587 12: "cannot allocate memory",
1588 13: "permission denied",
1589 14: "bad address",
1590 15: "block device required",
1591 16: "device or resource busy",
1592 17: "file exists",
1593 18: "invalid cross-device link",
1594 19: "no such device",
1595 20: "not a directory",
1596 21: "is a directory",
1597 22: "invalid argument",
1598 23: "too many open files in system",
1599 24: "too many open files",
1600 25: "inappropriate ioctl for device",
1601 26: "text file busy",
1602 27: "file too large",
1603 28: "no space left on device",
1604 29: "illegal seek",
1605 30: "read-only file system",
1606 31: "too many links",
1607 32: "broken pipe",
1608 33: "numerical argument out of domain",
1609 34: "numerical result out of range",
1610 35: "resource deadlock avoided",
1611 36: "file name too long",
1612 37: "no locks available",
1613 38: "function not implemented",
1614 39: "directory not empty",
1615 40: "too many levels of symbolic links",
1616 42: "no message of desired type",
1617 43: "identifier removed",
1618 44: "channel number out of range",
1619 45: "level 2 not synchronized",
1620 46: "level 3 halted",
1621 47: "level 3 reset",
1622 48: "link number out of range",
1623 49: "protocol driver not attached",
1624 50: "no CSI structure available",
1625 51: "level 2 halted",
1626 52: "invalid exchange",
1627 53: "invalid request descriptor",
1628 54: "exchange full",
1629 55: "no anode",
1630 56: "invalid request code",
1631 57: "invalid slot",
1632 59: "bad font file format",
1633 60: "device not a stream",
1634 61: "no data available",
1635 62: "timer expired",
1636 63: "out of streams resources",
1637 64: "machine is not on the network",
1638 65: "package not installed",
1639 66: "object is remote",
1640 67: "link has been severed",
1641 68: "advertise error",
1642 69: "srmount error",
1643 70: "communication error on send",
1644 71: "protocol error",
1645 72: "multihop attempted",
1646 73: "RFS specific error",
1647 74: "bad message",
1648 75: "value too large for defined data type",
1649 76: "name not unique on network",
1650 77: "file descriptor in bad state",
1651 78: "remote address changed",
1652 79: "can not access a needed shared library",
1653 80: "accessing a corrupted shared library",
1654 81: ".lib section in a.out corrupted",
1655 82: "attempting to link in too many shared libraries",
1656 83: "cannot exec a shared library directly",
1657 84: "invalid or incomplete multibyte or wide character",
1658 85: "interrupted system call should be restarted",
1659 86: "streams pipe error",
1660 87: "too many users",
1661 88: "socket operation on non-socket",
1662 89: "destination address required",
1663 90: "message too long",
1664 91: "protocol wrong type for socket",
1665 92: "protocol not available",
1666 93: "protocol not supported",
1667 94: "socket type not supported",
1668 95: "operation not supported",
1669 96: "protocol family not supported",
1670 97: "address family not supported by protocol",
1671 98: "address already in use",
1672 99: "cannot assign requested address",
1673 100: "network is down",
1674 101: "network is unreachable",
1675 102: "network dropped connection on reset",
1676 103: "software caused connection abort",
1677 104: "connection reset by peer",
1678 105: "no buffer space available",
1679 106: "transport endpoint is already connected",
1680 107: "transport endpoint is not connected",
1681 108: "cannot send after transport endpoint shutdown",
1682 109: "too many references: cannot splice",
1683 110: "connection timed out",
1684 111: "connection refused",
1685 112: "host is down",
1686 113: "no route to host",
1687 114: "operation already in progress",
1688 115: "operation now in progress",
1689 116: "stale NFS file handle",
1690 117: "structure needs cleaning",
1691 118: "not a XENIX named type file",
1692 119: "no XENIX semaphores available",
1693 120: "is a named type file",
1694 121: "remote I/O error",
1695 122: "disk quota exceeded",
1696 123: "no medium found",
1697 124: "wrong medium type",
1698 125: "operation canceled",
1699 126: "required key not available",
1700 127: "key has expired",
1701 128: "key has been revoked",
1702 129: "key was rejected by service",
1703 130: "owner died",
1704 131: "state not recoverable",
1705 132: "operation not possible due to RF-kill",
1706 133: "unknown error 133",
1707}
1708
1709// Signal table
1710var signals = [...]string{
1711 1: "hangup",
1712 2: "interrupt",
1713 3: "quit",
1714 4: "illegal instruction",
1715 5: "trace/breakpoint trap",
1716 6: "aborted",
1717 7: "bus error",
1718 8: "floating point exception",
1719 9: "killed",
1720 10: "user defined signal 1",
1721 11: "segmentation fault",
1722 12: "user defined signal 2",
1723 13: "broken pipe",
1724 14: "alarm clock",
1725 15: "terminated",
1726 16: "stack fault",
1727 17: "child exited",
1728 18: "continued",
1729 19: "stopped (signal)",
1730 20: "stopped",
1731 21: "stopped (tty input)",
1732 22: "stopped (tty output)",
1733 23: "urgent I/O condition",
1734 24: "CPU time limit exceeded",
1735 25: "file size limit exceeded",
1736 26: "virtual timer expired",
1737 27: "profiling timer expired",
1738 28: "window changed",
1739 29: "I/O possible",
1740 30: "power failure",
1741 31: "bad system call",
1742}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_arm64.go
deleted file mode 100644
index 47027b7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_arm64.go
+++ /dev/null
@@ -1,1896 +0,0 @@
1// mkerrors.sh
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm64,linux
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_ALG = 0x26
15 AF_APPLETALK = 0x5
16 AF_ASH = 0x12
17 AF_ATMPVC = 0x8
18 AF_ATMSVC = 0x14
19 AF_AX25 = 0x3
20 AF_BLUETOOTH = 0x1f
21 AF_BRIDGE = 0x7
22 AF_CAIF = 0x25
23 AF_CAN = 0x1d
24 AF_DECnet = 0xc
25 AF_ECONET = 0x13
26 AF_FILE = 0x1
27 AF_IEEE802154 = 0x24
28 AF_INET = 0x2
29 AF_INET6 = 0xa
30 AF_IPX = 0x4
31 AF_IRDA = 0x17
32 AF_ISDN = 0x22
33 AF_IUCV = 0x20
34 AF_KEY = 0xf
35 AF_LLC = 0x1a
36 AF_LOCAL = 0x1
37 AF_MAX = 0x29
38 AF_NETBEUI = 0xd
39 AF_NETLINK = 0x10
40 AF_NETROM = 0x6
41 AF_NFC = 0x27
42 AF_PACKET = 0x11
43 AF_PHONET = 0x23
44 AF_PPPOX = 0x18
45 AF_RDS = 0x15
46 AF_ROSE = 0xb
47 AF_ROUTE = 0x10
48 AF_RXRPC = 0x21
49 AF_SECURITY = 0xe
50 AF_SNA = 0x16
51 AF_TIPC = 0x1e
52 AF_UNIX = 0x1
53 AF_UNSPEC = 0x0
54 AF_VSOCK = 0x28
55 AF_WANPIPE = 0x19
56 AF_X25 = 0x9
57 ARPHRD_ADAPT = 0x108
58 ARPHRD_APPLETLK = 0x8
59 ARPHRD_ARCNET = 0x7
60 ARPHRD_ASH = 0x30d
61 ARPHRD_ATM = 0x13
62 ARPHRD_AX25 = 0x3
63 ARPHRD_BIF = 0x307
64 ARPHRD_CAIF = 0x336
65 ARPHRD_CAN = 0x118
66 ARPHRD_CHAOS = 0x5
67 ARPHRD_CISCO = 0x201
68 ARPHRD_CSLIP = 0x101
69 ARPHRD_CSLIP6 = 0x103
70 ARPHRD_DDCMP = 0x205
71 ARPHRD_DLCI = 0xf
72 ARPHRD_ECONET = 0x30e
73 ARPHRD_EETHER = 0x2
74 ARPHRD_ETHER = 0x1
75 ARPHRD_EUI64 = 0x1b
76 ARPHRD_FCAL = 0x311
77 ARPHRD_FCFABRIC = 0x313
78 ARPHRD_FCPL = 0x312
79 ARPHRD_FCPP = 0x310
80 ARPHRD_FDDI = 0x306
81 ARPHRD_FRAD = 0x302
82 ARPHRD_HDLC = 0x201
83 ARPHRD_HIPPI = 0x30c
84 ARPHRD_HWX25 = 0x110
85 ARPHRD_IEEE1394 = 0x18
86 ARPHRD_IEEE802 = 0x6
87 ARPHRD_IEEE80211 = 0x321
88 ARPHRD_IEEE80211_PRISM = 0x322
89 ARPHRD_IEEE80211_RADIOTAP = 0x323
90 ARPHRD_IEEE802154 = 0x324
91 ARPHRD_IEEE802154_MONITOR = 0x325
92 ARPHRD_IEEE802_TR = 0x320
93 ARPHRD_INFINIBAND = 0x20
94 ARPHRD_IP6GRE = 0x337
95 ARPHRD_IPDDP = 0x309
96 ARPHRD_IPGRE = 0x30a
97 ARPHRD_IRDA = 0x30f
98 ARPHRD_LAPB = 0x204
99 ARPHRD_LOCALTLK = 0x305
100 ARPHRD_LOOPBACK = 0x304
101 ARPHRD_METRICOM = 0x17
102 ARPHRD_NETLINK = 0x338
103 ARPHRD_NETROM = 0x0
104 ARPHRD_NONE = 0xfffe
105 ARPHRD_PHONET = 0x334
106 ARPHRD_PHONET_PIPE = 0x335
107 ARPHRD_PIMREG = 0x30b
108 ARPHRD_PPP = 0x200
109 ARPHRD_PRONET = 0x4
110 ARPHRD_RAWHDLC = 0x206
111 ARPHRD_ROSE = 0x10e
112 ARPHRD_RSRVD = 0x104
113 ARPHRD_SIT = 0x308
114 ARPHRD_SKIP = 0x303
115 ARPHRD_SLIP = 0x100
116 ARPHRD_SLIP6 = 0x102
117 ARPHRD_TUNNEL = 0x300
118 ARPHRD_TUNNEL6 = 0x301
119 ARPHRD_VOID = 0xffff
120 ARPHRD_X25 = 0x10f
121 B0 = 0x0
122 B1000000 = 0x1008
123 B110 = 0x3
124 B115200 = 0x1002
125 B1152000 = 0x1009
126 B1200 = 0x9
127 B134 = 0x4
128 B150 = 0x5
129 B1500000 = 0x100a
130 B1800 = 0xa
131 B19200 = 0xe
132 B200 = 0x6
133 B2000000 = 0x100b
134 B230400 = 0x1003
135 B2400 = 0xb
136 B2500000 = 0x100c
137 B300 = 0x7
138 B3000000 = 0x100d
139 B3500000 = 0x100e
140 B38400 = 0xf
141 B4000000 = 0x100f
142 B460800 = 0x1004
143 B4800 = 0xc
144 B50 = 0x1
145 B500000 = 0x1005
146 B57600 = 0x1001
147 B576000 = 0x1006
148 B600 = 0x8
149 B75 = 0x2
150 B921600 = 0x1007
151 B9600 = 0xd
152 BOTHER = 0x1000
153 BPF_A = 0x10
154 BPF_ABS = 0x20
155 BPF_ADD = 0x0
156 BPF_ALU = 0x4
157 BPF_AND = 0x50
158 BPF_B = 0x10
159 BPF_DIV = 0x30
160 BPF_H = 0x8
161 BPF_IMM = 0x0
162 BPF_IND = 0x40
163 BPF_JA = 0x0
164 BPF_JEQ = 0x10
165 BPF_JGE = 0x30
166 BPF_JGT = 0x20
167 BPF_JMP = 0x5
168 BPF_JSET = 0x40
169 BPF_K = 0x0
170 BPF_LD = 0x0
171 BPF_LDX = 0x1
172 BPF_LEN = 0x80
173 BPF_LSH = 0x60
174 BPF_MAJOR_VERSION = 0x1
175 BPF_MAXINSNS = 0x1000
176 BPF_MEM = 0x60
177 BPF_MEMWORDS = 0x10
178 BPF_MINOR_VERSION = 0x1
179 BPF_MISC = 0x7
180 BPF_MOD = 0x90
181 BPF_MSH = 0xa0
182 BPF_MUL = 0x20
183 BPF_NEG = 0x80
184 BPF_OR = 0x40
185 BPF_RET = 0x6
186 BPF_RSH = 0x70
187 BPF_ST = 0x2
188 BPF_STX = 0x3
189 BPF_SUB = 0x10
190 BPF_TAX = 0x0
191 BPF_TXA = 0x80
192 BPF_W = 0x0
193 BPF_X = 0x8
194 BPF_XOR = 0xa0
195 BRKINT = 0x2
196 BS0 = 0x0
197 BS1 = 0x2000
198 BSDLY = 0x2000
199 CBAUD = 0x100f
200 CBAUDEX = 0x1000
201 CFLUSH = 0xf
202 CIBAUD = 0x100f0000
203 CLOCAL = 0x800
204 CLOCK_BOOTTIME = 0x7
205 CLOCK_BOOTTIME_ALARM = 0x9
206 CLOCK_DEFAULT = 0x0
207 CLOCK_EXT = 0x1
208 CLOCK_INT = 0x2
209 CLOCK_MONOTONIC = 0x1
210 CLOCK_MONOTONIC_COARSE = 0x6
211 CLOCK_MONOTONIC_RAW = 0x4
212 CLOCK_PROCESS_CPUTIME_ID = 0x2
213 CLOCK_REALTIME = 0x0
214 CLOCK_REALTIME_ALARM = 0x8
215 CLOCK_REALTIME_COARSE = 0x5
216 CLOCK_THREAD_CPUTIME_ID = 0x3
217 CLOCK_TXFROMRX = 0x4
218 CLOCK_TXINT = 0x3
219 CLONE_CHILD_CLEARTID = 0x200000
220 CLONE_CHILD_SETTID = 0x1000000
221 CLONE_DETACHED = 0x400000
222 CLONE_FILES = 0x400
223 CLONE_FS = 0x200
224 CLONE_IO = 0x80000000
225 CLONE_NEWIPC = 0x8000000
226 CLONE_NEWNET = 0x40000000
227 CLONE_NEWNS = 0x20000
228 CLONE_NEWPID = 0x20000000
229 CLONE_NEWUSER = 0x10000000
230 CLONE_NEWUTS = 0x4000000
231 CLONE_PARENT = 0x8000
232 CLONE_PARENT_SETTID = 0x100000
233 CLONE_PTRACE = 0x2000
234 CLONE_SETTLS = 0x80000
235 CLONE_SIGHAND = 0x800
236 CLONE_SYSVSEM = 0x40000
237 CLONE_THREAD = 0x10000
238 CLONE_UNTRACED = 0x800000
239 CLONE_VFORK = 0x4000
240 CLONE_VM = 0x100
241 CMSPAR = 0x40000000
242 CR0 = 0x0
243 CR1 = 0x200
244 CR2 = 0x400
245 CR3 = 0x600
246 CRDLY = 0x600
247 CREAD = 0x80
248 CRTSCTS = 0x80000000
249 CS5 = 0x0
250 CS6 = 0x10
251 CS7 = 0x20
252 CS8 = 0x30
253 CSIGNAL = 0xff
254 CSIZE = 0x30
255 CSTART = 0x11
256 CSTATUS = 0x0
257 CSTOP = 0x13
258 CSTOPB = 0x40
259 CSUSP = 0x1a
260 DT_BLK = 0x6
261 DT_CHR = 0x2
262 DT_DIR = 0x4
263 DT_FIFO = 0x1
264 DT_LNK = 0xa
265 DT_REG = 0x8
266 DT_SOCK = 0xc
267 DT_UNKNOWN = 0x0
268 DT_WHT = 0xe
269 ECHO = 0x8
270 ECHOCTL = 0x200
271 ECHOE = 0x10
272 ECHOK = 0x20
273 ECHOKE = 0x800
274 ECHONL = 0x40
275 ECHOPRT = 0x400
276 ELF_NGREG = 0x22
277 ELF_PRARGSZ = 0x50
278 ENCODING_DEFAULT = 0x0
279 ENCODING_FM_MARK = 0x3
280 ENCODING_FM_SPACE = 0x4
281 ENCODING_MANCHESTER = 0x5
282 ENCODING_NRZ = 0x1
283 ENCODING_NRZI = 0x2
284 EPOLLERR = 0x8
285 EPOLLET = 0x80000000
286 EPOLLHUP = 0x10
287 EPOLLIN = 0x1
288 EPOLLMSG = 0x400
289 EPOLLONESHOT = 0x40000000
290 EPOLLOUT = 0x4
291 EPOLLPRI = 0x2
292 EPOLLRDBAND = 0x80
293 EPOLLRDHUP = 0x2000
294 EPOLLRDNORM = 0x40
295 EPOLLWAKEUP = 0x20000000
296 EPOLLWRBAND = 0x200
297 EPOLLWRNORM = 0x100
298 EPOLL_CLOEXEC = 0x80000
299 EPOLL_CTL_ADD = 0x1
300 EPOLL_CTL_DEL = 0x2
301 EPOLL_CTL_MOD = 0x3
302 ETH_P_1588 = 0x88f7
303 ETH_P_8021AD = 0x88a8
304 ETH_P_8021AH = 0x88e7
305 ETH_P_8021Q = 0x8100
306 ETH_P_802_2 = 0x4
307 ETH_P_802_3 = 0x1
308 ETH_P_802_3_MIN = 0x600
309 ETH_P_802_EX1 = 0x88b5
310 ETH_P_AARP = 0x80f3
311 ETH_P_AF_IUCV = 0xfbfb
312 ETH_P_ALL = 0x3
313 ETH_P_AOE = 0x88a2
314 ETH_P_ARCNET = 0x1a
315 ETH_P_ARP = 0x806
316 ETH_P_ATALK = 0x809b
317 ETH_P_ATMFATE = 0x8884
318 ETH_P_ATMMPOA = 0x884c
319 ETH_P_AX25 = 0x2
320 ETH_P_BATMAN = 0x4305
321 ETH_P_BPQ = 0x8ff
322 ETH_P_CAIF = 0xf7
323 ETH_P_CAN = 0xc
324 ETH_P_CANFD = 0xd
325 ETH_P_CONTROL = 0x16
326 ETH_P_CUST = 0x6006
327 ETH_P_DDCMP = 0x6
328 ETH_P_DEC = 0x6000
329 ETH_P_DIAG = 0x6005
330 ETH_P_DNA_DL = 0x6001
331 ETH_P_DNA_RC = 0x6002
332 ETH_P_DNA_RT = 0x6003
333 ETH_P_DSA = 0x1b
334 ETH_P_ECONET = 0x18
335 ETH_P_EDSA = 0xdada
336 ETH_P_FCOE = 0x8906
337 ETH_P_FIP = 0x8914
338 ETH_P_HDLC = 0x19
339 ETH_P_IEEE802154 = 0xf6
340 ETH_P_IEEEPUP = 0xa00
341 ETH_P_IEEEPUPAT = 0xa01
342 ETH_P_IP = 0x800
343 ETH_P_IPV6 = 0x86dd
344 ETH_P_IPX = 0x8137
345 ETH_P_IRDA = 0x17
346 ETH_P_LAT = 0x6004
347 ETH_P_LINK_CTL = 0x886c
348 ETH_P_LOCALTALK = 0x9
349 ETH_P_LOOP = 0x60
350 ETH_P_MOBITEX = 0x15
351 ETH_P_MPLS_MC = 0x8848
352 ETH_P_MPLS_UC = 0x8847
353 ETH_P_MVRP = 0x88f5
354 ETH_P_PAE = 0x888e
355 ETH_P_PAUSE = 0x8808
356 ETH_P_PHONET = 0xf5
357 ETH_P_PPPTALK = 0x10
358 ETH_P_PPP_DISC = 0x8863
359 ETH_P_PPP_MP = 0x8
360 ETH_P_PPP_SES = 0x8864
361 ETH_P_PRP = 0x88fb
362 ETH_P_PUP = 0x200
363 ETH_P_PUPAT = 0x201
364 ETH_P_QINQ1 = 0x9100
365 ETH_P_QINQ2 = 0x9200
366 ETH_P_QINQ3 = 0x9300
367 ETH_P_RARP = 0x8035
368 ETH_P_SCA = 0x6007
369 ETH_P_SLOW = 0x8809
370 ETH_P_SNAP = 0x5
371 ETH_P_TDLS = 0x890d
372 ETH_P_TEB = 0x6558
373 ETH_P_TIPC = 0x88ca
374 ETH_P_TRAILER = 0x1c
375 ETH_P_TR_802_2 = 0x11
376 ETH_P_WAN_PPP = 0x7
377 ETH_P_WCCP = 0x883e
378 ETH_P_X25 = 0x805
379 EXTA = 0xe
380 EXTB = 0xf
381 EXTPROC = 0x10000
382 FD_CLOEXEC = 0x1
383 FD_SETSIZE = 0x400
384 FF0 = 0x0
385 FF1 = 0x8000
386 FFDLY = 0x8000
387 FLUSHO = 0x1000
388 F_DUPFD = 0x0
389 F_DUPFD_CLOEXEC = 0x406
390 F_EXLCK = 0x4
391 F_GETFD = 0x1
392 F_GETFL = 0x3
393 F_GETLEASE = 0x401
394 F_GETLK = 0x5
395 F_GETLK64 = 0x5
396 F_GETOWN = 0x9
397 F_GETOWN_EX = 0x10
398 F_GETPIPE_SZ = 0x408
399 F_GETSIG = 0xb
400 F_LOCK = 0x1
401 F_NOTIFY = 0x402
402 F_OK = 0x0
403 F_RDLCK = 0x0
404 F_SETFD = 0x2
405 F_SETFL = 0x4
406 F_SETLEASE = 0x400
407 F_SETLK = 0x6
408 F_SETLK64 = 0x6
409 F_SETLKW = 0x7
410 F_SETLKW64 = 0x7
411 F_SETOWN = 0x8
412 F_SETOWN_EX = 0xf
413 F_SETPIPE_SZ = 0x407
414 F_SETSIG = 0xa
415 F_SHLCK = 0x8
416 F_TEST = 0x3
417 F_TLOCK = 0x2
418 F_ULOCK = 0x0
419 F_UNLCK = 0x2
420 F_WRLCK = 0x1
421 HUPCL = 0x400
422 IBSHIFT = 0x10
423 ICANON = 0x2
424 ICMPV6_FILTER = 0x1
425 ICRNL = 0x100
426 IEXTEN = 0x8000
427 IFA_F_DADFAILED = 0x8
428 IFA_F_DEPRECATED = 0x20
429 IFA_F_HOMEADDRESS = 0x10
430 IFA_F_NODAD = 0x2
431 IFA_F_OPTIMISTIC = 0x4
432 IFA_F_PERMANENT = 0x80
433 IFA_F_SECONDARY = 0x1
434 IFA_F_TEMPORARY = 0x1
435 IFA_F_TENTATIVE = 0x40
436 IFA_MAX = 0x7
437 IFF_802_1Q_VLAN = 0x1
438 IFF_ALLMULTI = 0x200
439 IFF_ATTACH_QUEUE = 0x200
440 IFF_AUTOMEDIA = 0x4000
441 IFF_BONDING = 0x20
442 IFF_BRIDGE_PORT = 0x4000
443 IFF_BROADCAST = 0x2
444 IFF_DEBUG = 0x4
445 IFF_DETACH_QUEUE = 0x400
446 IFF_DISABLE_NETPOLL = 0x1000
447 IFF_DONT_BRIDGE = 0x800
448 IFF_DORMANT = 0x20000
449 IFF_DYNAMIC = 0x8000
450 IFF_EBRIDGE = 0x2
451 IFF_ECHO = 0x40000
452 IFF_ISATAP = 0x80
453 IFF_LIVE_ADDR_CHANGE = 0x100000
454 IFF_LOOPBACK = 0x8
455 IFF_LOWER_UP = 0x10000
456 IFF_MACVLAN = 0x200000
457 IFF_MACVLAN_PORT = 0x2000
458 IFF_MASTER = 0x400
459 IFF_MASTER_8023AD = 0x8
460 IFF_MASTER_ALB = 0x10
461 IFF_MASTER_ARPMON = 0x100
462 IFF_MULTICAST = 0x1000
463 IFF_MULTI_QUEUE = 0x100
464 IFF_NOARP = 0x80
465 IFF_NOFILTER = 0x1000
466 IFF_NOTRAILERS = 0x20
467 IFF_NO_PI = 0x1000
468 IFF_ONE_QUEUE = 0x2000
469 IFF_OVS_DATAPATH = 0x8000
470 IFF_PERSIST = 0x800
471 IFF_POINTOPOINT = 0x10
472 IFF_PORTSEL = 0x2000
473 IFF_PROMISC = 0x100
474 IFF_RUNNING = 0x40
475 IFF_SLAVE = 0x800
476 IFF_SLAVE_INACTIVE = 0x4
477 IFF_SLAVE_NEEDARP = 0x40
478 IFF_SUPP_NOFCS = 0x80000
479 IFF_TAP = 0x2
480 IFF_TEAM_PORT = 0x40000
481 IFF_TUN = 0x1
482 IFF_TUN_EXCL = 0x8000
483 IFF_TX_SKB_SHARING = 0x10000
484 IFF_UNICAST_FLT = 0x20000
485 IFF_UP = 0x1
486 IFF_VNET_HDR = 0x4000
487 IFF_VOLATILE = 0x70c5a
488 IFF_WAN_HDLC = 0x200
489 IFF_XMIT_DST_RELEASE = 0x400
490 IFNAMSIZ = 0x10
491 IGNBRK = 0x1
492 IGNCR = 0x80
493 IGNPAR = 0x4
494 IMAXBEL = 0x2000
495 INLCR = 0x40
496 INPCK = 0x10
497 IN_ACCESS = 0x1
498 IN_ALL_EVENTS = 0xfff
499 IN_ATTRIB = 0x4
500 IN_CLASSA_HOST = 0xffffff
501 IN_CLASSA_MAX = 0x80
502 IN_CLASSA_NET = 0xff000000
503 IN_CLASSA_NSHIFT = 0x18
504 IN_CLASSB_HOST = 0xffff
505 IN_CLASSB_MAX = 0x10000
506 IN_CLASSB_NET = 0xffff0000
507 IN_CLASSB_NSHIFT = 0x10
508 IN_CLASSC_HOST = 0xff
509 IN_CLASSC_NET = 0xffffff00
510 IN_CLASSC_NSHIFT = 0x8
511 IN_CLOEXEC = 0x80000
512 IN_CLOSE = 0x18
513 IN_CLOSE_NOWRITE = 0x10
514 IN_CLOSE_WRITE = 0x8
515 IN_CREATE = 0x100
516 IN_DELETE = 0x200
517 IN_DELETE_SELF = 0x400
518 IN_DONT_FOLLOW = 0x2000000
519 IN_EXCL_UNLINK = 0x4000000
520 IN_IGNORED = 0x8000
521 IN_ISDIR = 0x40000000
522 IN_LOOPBACKNET = 0x7f
523 IN_MASK_ADD = 0x20000000
524 IN_MODIFY = 0x2
525 IN_MOVE = 0xc0
526 IN_MOVED_FROM = 0x40
527 IN_MOVED_TO = 0x80
528 IN_MOVE_SELF = 0x800
529 IN_NONBLOCK = 0x800
530 IN_ONESHOT = 0x80000000
531 IN_ONLYDIR = 0x1000000
532 IN_OPEN = 0x20
533 IN_Q_OVERFLOW = 0x4000
534 IN_UNMOUNT = 0x2000
535 IPPROTO_AH = 0x33
536 IPPROTO_BEETPH = 0x5e
537 IPPROTO_COMP = 0x6c
538 IPPROTO_DCCP = 0x21
539 IPPROTO_DSTOPTS = 0x3c
540 IPPROTO_EGP = 0x8
541 IPPROTO_ENCAP = 0x62
542 IPPROTO_ESP = 0x32
543 IPPROTO_FRAGMENT = 0x2c
544 IPPROTO_GRE = 0x2f
545 IPPROTO_HOPOPTS = 0x0
546 IPPROTO_ICMP = 0x1
547 IPPROTO_ICMPV6 = 0x3a
548 IPPROTO_IDP = 0x16
549 IPPROTO_IGMP = 0x2
550 IPPROTO_IP = 0x0
551 IPPROTO_IPIP = 0x4
552 IPPROTO_IPV6 = 0x29
553 IPPROTO_MH = 0x87
554 IPPROTO_MTP = 0x5c
555 IPPROTO_NONE = 0x3b
556 IPPROTO_PIM = 0x67
557 IPPROTO_PUP = 0xc
558 IPPROTO_RAW = 0xff
559 IPPROTO_ROUTING = 0x2b
560 IPPROTO_RSVP = 0x2e
561 IPPROTO_SCTP = 0x84
562 IPPROTO_TCP = 0x6
563 IPPROTO_TP = 0x1d
564 IPPROTO_UDP = 0x11
565 IPPROTO_UDPLITE = 0x88
566 IPV6_2292DSTOPTS = 0x4
567 IPV6_2292HOPLIMIT = 0x8
568 IPV6_2292HOPOPTS = 0x3
569 IPV6_2292PKTINFO = 0x2
570 IPV6_2292PKTOPTIONS = 0x6
571 IPV6_2292RTHDR = 0x5
572 IPV6_ADDRFORM = 0x1
573 IPV6_ADD_MEMBERSHIP = 0x14
574 IPV6_AUTHHDR = 0xa
575 IPV6_CHECKSUM = 0x7
576 IPV6_DROP_MEMBERSHIP = 0x15
577 IPV6_DSTOPTS = 0x3b
578 IPV6_HOPLIMIT = 0x34
579 IPV6_HOPOPTS = 0x36
580 IPV6_IPSEC_POLICY = 0x22
581 IPV6_JOIN_ANYCAST = 0x1b
582 IPV6_JOIN_GROUP = 0x14
583 IPV6_LEAVE_ANYCAST = 0x1c
584 IPV6_LEAVE_GROUP = 0x15
585 IPV6_MTU = 0x18
586 IPV6_MTU_DISCOVER = 0x17
587 IPV6_MULTICAST_HOPS = 0x12
588 IPV6_MULTICAST_IF = 0x11
589 IPV6_MULTICAST_LOOP = 0x13
590 IPV6_NEXTHOP = 0x9
591 IPV6_PKTINFO = 0x32
592 IPV6_PMTUDISC_DO = 0x2
593 IPV6_PMTUDISC_DONT = 0x0
594 IPV6_PMTUDISC_PROBE = 0x3
595 IPV6_PMTUDISC_WANT = 0x1
596 IPV6_RECVDSTOPTS = 0x3a
597 IPV6_RECVERR = 0x19
598 IPV6_RECVHOPLIMIT = 0x33
599 IPV6_RECVHOPOPTS = 0x35
600 IPV6_RECVPKTINFO = 0x31
601 IPV6_RECVRTHDR = 0x38
602 IPV6_RECVTCLASS = 0x42
603 IPV6_ROUTER_ALERT = 0x16
604 IPV6_RTHDR = 0x39
605 IPV6_RTHDRDSTOPTS = 0x37
606 IPV6_RTHDR_LOOSE = 0x0
607 IPV6_RTHDR_STRICT = 0x1
608 IPV6_RTHDR_TYPE_0 = 0x0
609 IPV6_RXDSTOPTS = 0x3b
610 IPV6_RXHOPOPTS = 0x36
611 IPV6_TCLASS = 0x43
612 IPV6_UNICAST_HOPS = 0x10
613 IPV6_V6ONLY = 0x1a
614 IPV6_XFRM_POLICY = 0x23
615 IP_ADD_MEMBERSHIP = 0x23
616 IP_ADD_SOURCE_MEMBERSHIP = 0x27
617 IP_BLOCK_SOURCE = 0x26
618 IP_DEFAULT_MULTICAST_LOOP = 0x1
619 IP_DEFAULT_MULTICAST_TTL = 0x1
620 IP_DF = 0x4000
621 IP_DROP_MEMBERSHIP = 0x24
622 IP_DROP_SOURCE_MEMBERSHIP = 0x28
623 IP_FREEBIND = 0xf
624 IP_HDRINCL = 0x3
625 IP_IPSEC_POLICY = 0x10
626 IP_MAXPACKET = 0xffff
627 IP_MAX_MEMBERSHIPS = 0x14
628 IP_MF = 0x2000
629 IP_MINTTL = 0x15
630 IP_MSFILTER = 0x29
631 IP_MSS = 0x240
632 IP_MTU = 0xe
633 IP_MTU_DISCOVER = 0xa
634 IP_MULTICAST_ALL = 0x31
635 IP_MULTICAST_IF = 0x20
636 IP_MULTICAST_LOOP = 0x22
637 IP_MULTICAST_TTL = 0x21
638 IP_OFFMASK = 0x1fff
639 IP_OPTIONS = 0x4
640 IP_ORIGDSTADDR = 0x14
641 IP_PASSSEC = 0x12
642 IP_PKTINFO = 0x8
643 IP_PKTOPTIONS = 0x9
644 IP_PMTUDISC = 0xa
645 IP_PMTUDISC_DO = 0x2
646 IP_PMTUDISC_DONT = 0x0
647 IP_PMTUDISC_PROBE = 0x3
648 IP_PMTUDISC_WANT = 0x1
649 IP_RECVERR = 0xb
650 IP_RECVOPTS = 0x6
651 IP_RECVORIGDSTADDR = 0x14
652 IP_RECVRETOPTS = 0x7
653 IP_RECVTOS = 0xd
654 IP_RECVTTL = 0xc
655 IP_RETOPTS = 0x7
656 IP_RF = 0x8000
657 IP_ROUTER_ALERT = 0x5
658 IP_TOS = 0x1
659 IP_TRANSPARENT = 0x13
660 IP_TTL = 0x2
661 IP_UNBLOCK_SOURCE = 0x25
662 IP_UNICAST_IF = 0x32
663 IP_XFRM_POLICY = 0x11
664 ISIG = 0x1
665 ISTRIP = 0x20
666 IUCLC = 0x200
667 IUTF8 = 0x4000
668 IXANY = 0x800
669 IXOFF = 0x1000
670 IXON = 0x400
671 LINUX_REBOOT_CMD_CAD_OFF = 0x0
672 LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
673 LINUX_REBOOT_CMD_HALT = 0xcdef0123
674 LINUX_REBOOT_CMD_KEXEC = 0x45584543
675 LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc
676 LINUX_REBOOT_CMD_RESTART = 0x1234567
677 LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4
678 LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
679 LINUX_REBOOT_MAGIC1 = 0xfee1dead
680 LINUX_REBOOT_MAGIC2 = 0x28121969
681 LOCK_EX = 0x2
682 LOCK_NB = 0x4
683 LOCK_SH = 0x1
684 LOCK_UN = 0x8
685 MADV_DODUMP = 0x11
686 MADV_DOFORK = 0xb
687 MADV_DONTDUMP = 0x10
688 MADV_DONTFORK = 0xa
689 MADV_DONTNEED = 0x4
690 MADV_HUGEPAGE = 0xe
691 MADV_HWPOISON = 0x64
692 MADV_MERGEABLE = 0xc
693 MADV_NOHUGEPAGE = 0xf
694 MADV_NORMAL = 0x0
695 MADV_RANDOM = 0x1
696 MADV_REMOVE = 0x9
697 MADV_SEQUENTIAL = 0x2
698 MADV_UNMERGEABLE = 0xd
699 MADV_WILLNEED = 0x3
700 MAP_ANON = 0x20
701 MAP_ANONYMOUS = 0x20
702 MAP_DENYWRITE = 0x800
703 MAP_EXECUTABLE = 0x1000
704 MAP_FILE = 0x0
705 MAP_FIXED = 0x10
706 MAP_GROWSDOWN = 0x100
707 MAP_HUGETLB = 0x40000
708 MAP_HUGE_MASK = 0x3f
709 MAP_HUGE_SHIFT = 0x1a
710 MAP_LOCKED = 0x2000
711 MAP_NONBLOCK = 0x10000
712 MAP_NORESERVE = 0x4000
713 MAP_POPULATE = 0x8000
714 MAP_PRIVATE = 0x2
715 MAP_SHARED = 0x1
716 MAP_STACK = 0x20000
717 MAP_TYPE = 0xf
718 MCL_CURRENT = 0x1
719 MCL_FUTURE = 0x2
720 MNT_DETACH = 0x2
721 MNT_EXPIRE = 0x4
722 MNT_FORCE = 0x1
723 MSG_CMSG_CLOEXEC = 0x40000000
724 MSG_CONFIRM = 0x800
725 MSG_CTRUNC = 0x8
726 MSG_DONTROUTE = 0x4
727 MSG_DONTWAIT = 0x40
728 MSG_EOR = 0x80
729 MSG_ERRQUEUE = 0x2000
730 MSG_FASTOPEN = 0x20000000
731 MSG_FIN = 0x200
732 MSG_MORE = 0x8000
733 MSG_NOSIGNAL = 0x4000
734 MSG_OOB = 0x1
735 MSG_PEEK = 0x2
736 MSG_PROXY = 0x10
737 MSG_RST = 0x1000
738 MSG_SYN = 0x400
739 MSG_TRUNC = 0x20
740 MSG_TRYHARD = 0x4
741 MSG_WAITALL = 0x100
742 MSG_WAITFORONE = 0x10000
743 MS_ACTIVE = 0x40000000
744 MS_ASYNC = 0x1
745 MS_BIND = 0x1000
746 MS_DIRSYNC = 0x80
747 MS_INVALIDATE = 0x2
748 MS_I_VERSION = 0x800000
749 MS_KERNMOUNT = 0x400000
750 MS_MANDLOCK = 0x40
751 MS_MGC_MSK = 0xffff0000
752 MS_MGC_VAL = 0xc0ed0000
753 MS_MOVE = 0x2000
754 MS_NOATIME = 0x400
755 MS_NODEV = 0x4
756 MS_NODIRATIME = 0x800
757 MS_NOEXEC = 0x8
758 MS_NOSUID = 0x2
759 MS_NOUSER = -0x80000000
760 MS_POSIXACL = 0x10000
761 MS_PRIVATE = 0x40000
762 MS_RDONLY = 0x1
763 MS_REC = 0x4000
764 MS_RELATIME = 0x200000
765 MS_REMOUNT = 0x20
766 MS_RMT_MASK = 0x800051
767 MS_SHARED = 0x100000
768 MS_SILENT = 0x8000
769 MS_SLAVE = 0x80000
770 MS_STRICTATIME = 0x1000000
771 MS_SYNC = 0x4
772 MS_SYNCHRONOUS = 0x10
773 MS_UNBINDABLE = 0x20000
774 NAME_MAX = 0xff
775 NETLINK_ADD_MEMBERSHIP = 0x1
776 NETLINK_AUDIT = 0x9
777 NETLINK_BROADCAST_ERROR = 0x4
778 NETLINK_CONNECTOR = 0xb
779 NETLINK_CRYPTO = 0x15
780 NETLINK_DNRTMSG = 0xe
781 NETLINK_DROP_MEMBERSHIP = 0x2
782 NETLINK_ECRYPTFS = 0x13
783 NETLINK_FIB_LOOKUP = 0xa
784 NETLINK_FIREWALL = 0x3
785 NETLINK_GENERIC = 0x10
786 NETLINK_INET_DIAG = 0x4
787 NETLINK_IP6_FW = 0xd
788 NETLINK_ISCSI = 0x8
789 NETLINK_KOBJECT_UEVENT = 0xf
790 NETLINK_NETFILTER = 0xc
791 NETLINK_NFLOG = 0x5
792 NETLINK_NO_ENOBUFS = 0x5
793 NETLINK_PKTINFO = 0x3
794 NETLINK_RDMA = 0x14
795 NETLINK_ROUTE = 0x0
796 NETLINK_RX_RING = 0x6
797 NETLINK_SCSITRANSPORT = 0x12
798 NETLINK_SELINUX = 0x7
799 NETLINK_SOCK_DIAG = 0x4
800 NETLINK_TX_RING = 0x7
801 NETLINK_UNUSED = 0x1
802 NETLINK_USERSOCK = 0x2
803 NETLINK_XFRM = 0x6
804 NL0 = 0x0
805 NL1 = 0x100
806 NLA_ALIGNTO = 0x4
807 NLA_F_NESTED = 0x8000
808 NLA_F_NET_BYTEORDER = 0x4000
809 NLA_HDRLEN = 0x4
810 NLDLY = 0x100
811 NLMSG_ALIGNTO = 0x4
812 NLMSG_DONE = 0x3
813 NLMSG_ERROR = 0x2
814 NLMSG_HDRLEN = 0x10
815 NLMSG_MIN_TYPE = 0x10
816 NLMSG_NOOP = 0x1
817 NLMSG_OVERRUN = 0x4
818 NLM_F_ACK = 0x4
819 NLM_F_APPEND = 0x800
820 NLM_F_ATOMIC = 0x400
821 NLM_F_CREATE = 0x400
822 NLM_F_DUMP = 0x300
823 NLM_F_DUMP_INTR = 0x10
824 NLM_F_ECHO = 0x8
825 NLM_F_EXCL = 0x200
826 NLM_F_MATCH = 0x200
827 NLM_F_MULTI = 0x2
828 NLM_F_REPLACE = 0x100
829 NLM_F_REQUEST = 0x1
830 NLM_F_ROOT = 0x100
831 NOFLSH = 0x80
832 OCRNL = 0x8
833 OFDEL = 0x80
834 OFILL = 0x40
835 OLCUC = 0x2
836 ONLCR = 0x4
837 ONLRET = 0x20
838 ONOCR = 0x10
839 OPOST = 0x1
840 O_ACCMODE = 0x3
841 O_APPEND = 0x400
842 O_ASYNC = 0x2000
843 O_CLOEXEC = 0x80000
844 O_CREAT = 0x40
845 O_DIRECT = 0x10000
846 O_DIRECTORY = 0x4000
847 O_DSYNC = 0x1000
848 O_EXCL = 0x80
849 O_FSYNC = 0x101000
850 O_LARGEFILE = 0x0
851 O_NDELAY = 0x800
852 O_NOATIME = 0x40000
853 O_NOCTTY = 0x100
854 O_NOFOLLOW = 0x8000
855 O_NONBLOCK = 0x800
856 O_PATH = 0x200000
857 O_RDONLY = 0x0
858 O_RDWR = 0x2
859 O_RSYNC = 0x101000
860 O_SYNC = 0x101000
861 O_TMPFILE = 0x410000
862 O_TRUNC = 0x200
863 O_WRONLY = 0x1
864 PACKET_ADD_MEMBERSHIP = 0x1
865 PACKET_AUXDATA = 0x8
866 PACKET_BROADCAST = 0x1
867 PACKET_COPY_THRESH = 0x7
868 PACKET_DROP_MEMBERSHIP = 0x2
869 PACKET_FANOUT = 0x12
870 PACKET_FANOUT_CPU = 0x2
871 PACKET_FANOUT_FLAG_DEFRAG = 0x8000
872 PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
873 PACKET_FANOUT_HASH = 0x0
874 PACKET_FANOUT_LB = 0x1
875 PACKET_FANOUT_RND = 0x4
876 PACKET_FANOUT_ROLLOVER = 0x3
877 PACKET_FASTROUTE = 0x6
878 PACKET_HDRLEN = 0xb
879 PACKET_HOST = 0x0
880 PACKET_LOOPBACK = 0x5
881 PACKET_LOSS = 0xe
882 PACKET_MR_ALLMULTI = 0x2
883 PACKET_MR_MULTICAST = 0x0
884 PACKET_MR_PROMISC = 0x1
885 PACKET_MR_UNICAST = 0x3
886 PACKET_MULTICAST = 0x2
887 PACKET_ORIGDEV = 0x9
888 PACKET_OTHERHOST = 0x3
889 PACKET_OUTGOING = 0x4
890 PACKET_RECV_OUTPUT = 0x3
891 PACKET_RESERVE = 0xc
892 PACKET_RX_RING = 0x5
893 PACKET_STATISTICS = 0x6
894 PACKET_TIMESTAMP = 0x11
895 PACKET_TX_HAS_OFF = 0x13
896 PACKET_TX_RING = 0xd
897 PACKET_TX_TIMESTAMP = 0x10
898 PACKET_VERSION = 0xa
899 PACKET_VNET_HDR = 0xf
900 PARENB = 0x100
901 PARITY_CRC16_PR0 = 0x2
902 PARITY_CRC16_PR0_CCITT = 0x4
903 PARITY_CRC16_PR1 = 0x3
904 PARITY_CRC16_PR1_CCITT = 0x5
905 PARITY_CRC32_PR0_CCITT = 0x6
906 PARITY_CRC32_PR1_CCITT = 0x7
907 PARITY_DEFAULT = 0x0
908 PARITY_NONE = 0x1
909 PARMRK = 0x8
910 PARODD = 0x200
911 PENDIN = 0x4000
912 PRIO_PGRP = 0x1
913 PRIO_PROCESS = 0x0
914 PRIO_USER = 0x2
915 PROT_EXEC = 0x4
916 PROT_GROWSDOWN = 0x1000000
917 PROT_GROWSUP = 0x2000000
918 PROT_NONE = 0x0
919 PROT_READ = 0x1
920 PROT_WRITE = 0x2
921 PR_CAPBSET_DROP = 0x18
922 PR_CAPBSET_READ = 0x17
923 PR_ENDIAN_BIG = 0x0
924 PR_ENDIAN_LITTLE = 0x1
925 PR_ENDIAN_PPC_LITTLE = 0x2
926 PR_FPEMU_NOPRINT = 0x1
927 PR_FPEMU_SIGFPE = 0x2
928 PR_FP_EXC_ASYNC = 0x2
929 PR_FP_EXC_DISABLED = 0x0
930 PR_FP_EXC_DIV = 0x10000
931 PR_FP_EXC_INV = 0x100000
932 PR_FP_EXC_NONRECOV = 0x1
933 PR_FP_EXC_OVF = 0x20000
934 PR_FP_EXC_PRECISE = 0x3
935 PR_FP_EXC_RES = 0x80000
936 PR_FP_EXC_SW_ENABLE = 0x80
937 PR_FP_EXC_UND = 0x40000
938 PR_GET_CHILD_SUBREAPER = 0x25
939 PR_GET_DUMPABLE = 0x3
940 PR_GET_ENDIAN = 0x13
941 PR_GET_FPEMU = 0x9
942 PR_GET_FPEXC = 0xb
943 PR_GET_KEEPCAPS = 0x7
944 PR_GET_NAME = 0x10
945 PR_GET_NO_NEW_PRIVS = 0x27
946 PR_GET_PDEATHSIG = 0x2
947 PR_GET_SECCOMP = 0x15
948 PR_GET_SECUREBITS = 0x1b
949 PR_GET_TID_ADDRESS = 0x28
950 PR_GET_TIMERSLACK = 0x1e
951 PR_GET_TIMING = 0xd
952 PR_GET_TSC = 0x19
953 PR_GET_UNALIGN = 0x5
954 PR_MCE_KILL = 0x21
955 PR_MCE_KILL_CLEAR = 0x0
956 PR_MCE_KILL_DEFAULT = 0x2
957 PR_MCE_KILL_EARLY = 0x1
958 PR_MCE_KILL_GET = 0x22
959 PR_MCE_KILL_LATE = 0x0
960 PR_MCE_KILL_SET = 0x1
961 PR_SET_CHILD_SUBREAPER = 0x24
962 PR_SET_DUMPABLE = 0x4
963 PR_SET_ENDIAN = 0x14
964 PR_SET_FPEMU = 0xa
965 PR_SET_FPEXC = 0xc
966 PR_SET_KEEPCAPS = 0x8
967 PR_SET_MM = 0x23
968 PR_SET_MM_ARG_END = 0x9
969 PR_SET_MM_ARG_START = 0x8
970 PR_SET_MM_AUXV = 0xc
971 PR_SET_MM_BRK = 0x7
972 PR_SET_MM_END_CODE = 0x2
973 PR_SET_MM_END_DATA = 0x4
974 PR_SET_MM_ENV_END = 0xb
975 PR_SET_MM_ENV_START = 0xa
976 PR_SET_MM_EXE_FILE = 0xd
977 PR_SET_MM_START_BRK = 0x6
978 PR_SET_MM_START_CODE = 0x1
979 PR_SET_MM_START_DATA = 0x3
980 PR_SET_MM_START_STACK = 0x5
981 PR_SET_NAME = 0xf
982 PR_SET_NO_NEW_PRIVS = 0x26
983 PR_SET_PDEATHSIG = 0x1
984 PR_SET_PTRACER = 0x59616d61
985 PR_SET_PTRACER_ANY = -0x1
986 PR_SET_SECCOMP = 0x16
987 PR_SET_SECUREBITS = 0x1c
988 PR_SET_TIMERSLACK = 0x1d
989 PR_SET_TIMING = 0xe
990 PR_SET_TSC = 0x1a
991 PR_SET_UNALIGN = 0x6
992 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
993 PR_TASK_PERF_EVENTS_ENABLE = 0x20
994 PR_TIMING_STATISTICAL = 0x0
995 PR_TIMING_TIMESTAMP = 0x1
996 PR_TSC_ENABLE = 0x1
997 PR_TSC_SIGSEGV = 0x2
998 PR_UNALIGN_NOPRINT = 0x1
999 PR_UNALIGN_SIGBUS = 0x2
1000 PTRACE_ATTACH = 0x10
1001 PTRACE_CONT = 0x7
1002 PTRACE_DETACH = 0x11
1003 PTRACE_EVENT_CLONE = 0x3
1004 PTRACE_EVENT_EXEC = 0x4
1005 PTRACE_EVENT_EXIT = 0x6
1006 PTRACE_EVENT_FORK = 0x1
1007 PTRACE_EVENT_SECCOMP = 0x7
1008 PTRACE_EVENT_STOP = 0x80
1009 PTRACE_EVENT_VFORK = 0x2
1010 PTRACE_EVENT_VFORK_DONE = 0x5
1011 PTRACE_GETEVENTMSG = 0x4201
1012 PTRACE_GETREGS = 0xc
1013 PTRACE_GETREGSET = 0x4204
1014 PTRACE_GETSIGINFO = 0x4202
1015 PTRACE_GETSIGMASK = 0x420a
1016 PTRACE_INTERRUPT = 0x4207
1017 PTRACE_KILL = 0x8
1018 PTRACE_LISTEN = 0x4208
1019 PTRACE_O_EXITKILL = 0x100000
1020 PTRACE_O_MASK = 0x1000ff
1021 PTRACE_O_TRACECLONE = 0x8
1022 PTRACE_O_TRACEEXEC = 0x10
1023 PTRACE_O_TRACEEXIT = 0x40
1024 PTRACE_O_TRACEFORK = 0x2
1025 PTRACE_O_TRACESECCOMP = 0x80
1026 PTRACE_O_TRACESYSGOOD = 0x1
1027 PTRACE_O_TRACEVFORK = 0x4
1028 PTRACE_O_TRACEVFORKDONE = 0x20
1029 PTRACE_PEEKDATA = 0x2
1030 PTRACE_PEEKSIGINFO = 0x4209
1031 PTRACE_PEEKSIGINFO_SHARED = 0x1
1032 PTRACE_PEEKTEXT = 0x1
1033 PTRACE_PEEKUSR = 0x3
1034 PTRACE_POKEDATA = 0x5
1035 PTRACE_POKETEXT = 0x4
1036 PTRACE_POKEUSR = 0x6
1037 PTRACE_SEIZE = 0x4206
1038 PTRACE_SETOPTIONS = 0x4200
1039 PTRACE_SETREGS = 0xd
1040 PTRACE_SETREGSET = 0x4205
1041 PTRACE_SETSIGINFO = 0x4203
1042 PTRACE_SETSIGMASK = 0x420b
1043 PTRACE_SINGLESTEP = 0x9
1044 PTRACE_SYSCALL = 0x18
1045 PTRACE_TRACEME = 0x0
1046 RLIMIT_AS = 0x9
1047 RLIMIT_CORE = 0x4
1048 RLIMIT_CPU = 0x0
1049 RLIMIT_DATA = 0x2
1050 RLIMIT_FSIZE = 0x1
1051 RLIMIT_NOFILE = 0x7
1052 RLIMIT_STACK = 0x3
1053 RLIM_INFINITY = -0x1
1054 RTAX_ADVMSS = 0x8
1055 RTAX_CWND = 0x7
1056 RTAX_FEATURES = 0xc
1057 RTAX_FEATURE_ALLFRAG = 0x8
1058 RTAX_FEATURE_ECN = 0x1
1059 RTAX_FEATURE_SACK = 0x2
1060 RTAX_FEATURE_TIMESTAMP = 0x4
1061 RTAX_HOPLIMIT = 0xa
1062 RTAX_INITCWND = 0xb
1063 RTAX_INITRWND = 0xe
1064 RTAX_LOCK = 0x1
1065 RTAX_MAX = 0xf
1066 RTAX_MTU = 0x2
1067 RTAX_QUICKACK = 0xf
1068 RTAX_REORDERING = 0x9
1069 RTAX_RTO_MIN = 0xd
1070 RTAX_RTT = 0x4
1071 RTAX_RTTVAR = 0x5
1072 RTAX_SSTHRESH = 0x6
1073 RTAX_UNSPEC = 0x0
1074 RTAX_WINDOW = 0x3
1075 RTA_ALIGNTO = 0x4
1076 RTA_MAX = 0x11
1077 RTCF_DIRECTSRC = 0x4000000
1078 RTCF_DOREDIRECT = 0x1000000
1079 RTCF_LOG = 0x2000000
1080 RTCF_MASQ = 0x400000
1081 RTCF_NAT = 0x800000
1082 RTCF_VALVE = 0x200000
1083 RTF_ADDRCLASSMASK = 0xf8000000
1084 RTF_ADDRCONF = 0x40000
1085 RTF_ALLONLINK = 0x20000
1086 RTF_BROADCAST = 0x10000000
1087 RTF_CACHE = 0x1000000
1088 RTF_DEFAULT = 0x10000
1089 RTF_DYNAMIC = 0x10
1090 RTF_FLOW = 0x2000000
1091 RTF_GATEWAY = 0x2
1092 RTF_HOST = 0x4
1093 RTF_INTERFACE = 0x40000000
1094 RTF_IRTT = 0x100
1095 RTF_LINKRT = 0x100000
1096 RTF_LOCAL = 0x80000000
1097 RTF_MODIFIED = 0x20
1098 RTF_MSS = 0x40
1099 RTF_MTU = 0x40
1100 RTF_MULTICAST = 0x20000000
1101 RTF_NAT = 0x8000000
1102 RTF_NOFORWARD = 0x1000
1103 RTF_NONEXTHOP = 0x200000
1104 RTF_NOPMTUDISC = 0x4000
1105 RTF_POLICY = 0x4000000
1106 RTF_REINSTATE = 0x8
1107 RTF_REJECT = 0x200
1108 RTF_STATIC = 0x400
1109 RTF_THROW = 0x2000
1110 RTF_UP = 0x1
1111 RTF_WINDOW = 0x80
1112 RTF_XRESOLVE = 0x800
1113 RTM_BASE = 0x10
1114 RTM_DELACTION = 0x31
1115 RTM_DELADDR = 0x15
1116 RTM_DELADDRLABEL = 0x49
1117 RTM_DELLINK = 0x11
1118 RTM_DELMDB = 0x55
1119 RTM_DELNEIGH = 0x1d
1120 RTM_DELQDISC = 0x25
1121 RTM_DELROUTE = 0x19
1122 RTM_DELRULE = 0x21
1123 RTM_DELTCLASS = 0x29
1124 RTM_DELTFILTER = 0x2d
1125 RTM_F_CLONED = 0x200
1126 RTM_F_EQUALIZE = 0x400
1127 RTM_F_NOTIFY = 0x100
1128 RTM_F_PREFIX = 0x800
1129 RTM_GETACTION = 0x32
1130 RTM_GETADDR = 0x16
1131 RTM_GETADDRLABEL = 0x4a
1132 RTM_GETANYCAST = 0x3e
1133 RTM_GETDCB = 0x4e
1134 RTM_GETLINK = 0x12
1135 RTM_GETMDB = 0x56
1136 RTM_GETMULTICAST = 0x3a
1137 RTM_GETNEIGH = 0x1e
1138 RTM_GETNEIGHTBL = 0x42
1139 RTM_GETNETCONF = 0x52
1140 RTM_GETQDISC = 0x26
1141 RTM_GETROUTE = 0x1a
1142 RTM_GETRULE = 0x22
1143 RTM_GETTCLASS = 0x2a
1144 RTM_GETTFILTER = 0x2e
1145 RTM_MAX = 0x57
1146 RTM_NEWACTION = 0x30
1147 RTM_NEWADDR = 0x14
1148 RTM_NEWADDRLABEL = 0x48
1149 RTM_NEWLINK = 0x10
1150 RTM_NEWMDB = 0x54
1151 RTM_NEWNDUSEROPT = 0x44
1152 RTM_NEWNEIGH = 0x1c
1153 RTM_NEWNEIGHTBL = 0x40
1154 RTM_NEWNETCONF = 0x50
1155 RTM_NEWPREFIX = 0x34
1156 RTM_NEWQDISC = 0x24
1157 RTM_NEWROUTE = 0x18
1158 RTM_NEWRULE = 0x20
1159 RTM_NEWTCLASS = 0x28
1160 RTM_NEWTFILTER = 0x2c
1161 RTM_NR_FAMILIES = 0x12
1162 RTM_NR_MSGTYPES = 0x48
1163 RTM_SETDCB = 0x4f
1164 RTM_SETLINK = 0x13
1165 RTM_SETNEIGHTBL = 0x43
1166 RTNH_ALIGNTO = 0x4
1167 RTNH_F_DEAD = 0x1
1168 RTNH_F_ONLINK = 0x4
1169 RTNH_F_PERVASIVE = 0x2
1170 RTN_MAX = 0xb
1171 RTPROT_BIRD = 0xc
1172 RTPROT_BOOT = 0x3
1173 RTPROT_DHCP = 0x10
1174 RTPROT_DNROUTED = 0xd
1175 RTPROT_GATED = 0x8
1176 RTPROT_KERNEL = 0x2
1177 RTPROT_MROUTED = 0x11
1178 RTPROT_MRT = 0xa
1179 RTPROT_NTK = 0xf
1180 RTPROT_RA = 0x9
1181 RTPROT_REDIRECT = 0x1
1182 RTPROT_STATIC = 0x4
1183 RTPROT_UNSPEC = 0x0
1184 RTPROT_XORP = 0xe
1185 RTPROT_ZEBRA = 0xb
1186 RT_CLASS_DEFAULT = 0xfd
1187 RT_CLASS_LOCAL = 0xff
1188 RT_CLASS_MAIN = 0xfe
1189 RT_CLASS_MAX = 0xff
1190 RT_CLASS_UNSPEC = 0x0
1191 RUSAGE_CHILDREN = -0x1
1192 RUSAGE_SELF = 0x0
1193 RUSAGE_THREAD = 0x1
1194 SCM_CREDENTIALS = 0x2
1195 SCM_RIGHTS = 0x1
1196 SCM_TIMESTAMP = 0x1d
1197 SCM_TIMESTAMPING = 0x25
1198 SCM_TIMESTAMPNS = 0x23
1199 SCM_WIFI_STATUS = 0x29
1200 SHUT_RD = 0x0
1201 SHUT_RDWR = 0x2
1202 SHUT_WR = 0x1
1203 SIOCADDDLCI = 0x8980
1204 SIOCADDMULTI = 0x8931
1205 SIOCADDRT = 0x890b
1206 SIOCATMARK = 0x8905
1207 SIOCDARP = 0x8953
1208 SIOCDELDLCI = 0x8981
1209 SIOCDELMULTI = 0x8932
1210 SIOCDELRT = 0x890c
1211 SIOCDEVPRIVATE = 0x89f0
1212 SIOCDIFADDR = 0x8936
1213 SIOCDRARP = 0x8960
1214 SIOCGARP = 0x8954
1215 SIOCGIFADDR = 0x8915
1216 SIOCGIFBR = 0x8940
1217 SIOCGIFBRDADDR = 0x8919
1218 SIOCGIFCONF = 0x8912
1219 SIOCGIFCOUNT = 0x8938
1220 SIOCGIFDSTADDR = 0x8917
1221 SIOCGIFENCAP = 0x8925
1222 SIOCGIFFLAGS = 0x8913
1223 SIOCGIFHWADDR = 0x8927
1224 SIOCGIFINDEX = 0x8933
1225 SIOCGIFMAP = 0x8970
1226 SIOCGIFMEM = 0x891f
1227 SIOCGIFMETRIC = 0x891d
1228 SIOCGIFMTU = 0x8921
1229 SIOCGIFNAME = 0x8910
1230 SIOCGIFNETMASK = 0x891b
1231 SIOCGIFPFLAGS = 0x8935
1232 SIOCGIFSLAVE = 0x8929
1233 SIOCGIFTXQLEN = 0x8942
1234 SIOCGPGRP = 0x8904
1235 SIOCGRARP = 0x8961
1236 SIOCGSTAMP = 0x8906
1237 SIOCGSTAMPNS = 0x8907
1238 SIOCPROTOPRIVATE = 0x89e0
1239 SIOCRTMSG = 0x890d
1240 SIOCSARP = 0x8955
1241 SIOCSIFADDR = 0x8916
1242 SIOCSIFBR = 0x8941
1243 SIOCSIFBRDADDR = 0x891a
1244 SIOCSIFDSTADDR = 0x8918
1245 SIOCSIFENCAP = 0x8926
1246 SIOCSIFFLAGS = 0x8914
1247 SIOCSIFHWADDR = 0x8924
1248 SIOCSIFHWBROADCAST = 0x8937
1249 SIOCSIFLINK = 0x8911
1250 SIOCSIFMAP = 0x8971
1251 SIOCSIFMEM = 0x8920
1252 SIOCSIFMETRIC = 0x891e
1253 SIOCSIFMTU = 0x8922
1254 SIOCSIFNAME = 0x8923
1255 SIOCSIFNETMASK = 0x891c
1256 SIOCSIFPFLAGS = 0x8934
1257 SIOCSIFSLAVE = 0x8930
1258 SIOCSIFTXQLEN = 0x8943
1259 SIOCSPGRP = 0x8902
1260 SIOCSRARP = 0x8962
1261 SOCK_CLOEXEC = 0x80000
1262 SOCK_DCCP = 0x6
1263 SOCK_DGRAM = 0x2
1264 SOCK_NONBLOCK = 0x800
1265 SOCK_PACKET = 0xa
1266 SOCK_RAW = 0x3
1267 SOCK_RDM = 0x4
1268 SOCK_SEQPACKET = 0x5
1269 SOCK_STREAM = 0x1
1270 SOL_AAL = 0x109
1271 SOL_ATM = 0x108
1272 SOL_DECNET = 0x105
1273 SOL_ICMPV6 = 0x3a
1274 SOL_IP = 0x0
1275 SOL_IPV6 = 0x29
1276 SOL_IRDA = 0x10a
1277 SOL_PACKET = 0x107
1278 SOL_RAW = 0xff
1279 SOL_SOCKET = 0x1
1280 SOL_TCP = 0x6
1281 SOL_X25 = 0x106
1282 SOMAXCONN = 0x80
1283 SO_ACCEPTCONN = 0x1e
1284 SO_ATTACH_FILTER = 0x1a
1285 SO_BINDTODEVICE = 0x19
1286 SO_BROADCAST = 0x6
1287 SO_BSDCOMPAT = 0xe
1288 SO_BUSY_POLL = 0x2e
1289 SO_DEBUG = 0x1
1290 SO_DETACH_FILTER = 0x1b
1291 SO_DOMAIN = 0x27
1292 SO_DONTROUTE = 0x5
1293 SO_ERROR = 0x4
1294 SO_GET_FILTER = 0x1a
1295 SO_KEEPALIVE = 0x9
1296 SO_LINGER = 0xd
1297 SO_LOCK_FILTER = 0x2c
1298 SO_MARK = 0x24
1299 SO_MAX_PACING_RATE = 0x2f
1300 SO_NOFCS = 0x2b
1301 SO_NO_CHECK = 0xb
1302 SO_OOBINLINE = 0xa
1303 SO_PASSCRED = 0x10
1304 SO_PASSSEC = 0x22
1305 SO_PEEK_OFF = 0x2a
1306 SO_PEERCRED = 0x11
1307 SO_PEERNAME = 0x1c
1308 SO_PEERSEC = 0x1f
1309 SO_PRIORITY = 0xc
1310 SO_PROTOCOL = 0x26
1311 SO_RCVBUF = 0x8
1312 SO_RCVBUFFORCE = 0x21
1313 SO_RCVLOWAT = 0x12
1314 SO_RCVTIMEO = 0x14
1315 SO_REUSEADDR = 0x2
1316 SO_REUSEPORT = 0xf
1317 SO_RXQ_OVFL = 0x28
1318 SO_SECURITY_AUTHENTICATION = 0x16
1319 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
1320 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
1321 SO_SELECT_ERR_QUEUE = 0x2d
1322 SO_SNDBUF = 0x7
1323 SO_SNDBUFFORCE = 0x20
1324 SO_SNDLOWAT = 0x13
1325 SO_SNDTIMEO = 0x15
1326 SO_TIMESTAMP = 0x1d
1327 SO_TIMESTAMPING = 0x25
1328 SO_TIMESTAMPNS = 0x23
1329 SO_TYPE = 0x3
1330 SO_WIFI_STATUS = 0x29
1331 S_BLKSIZE = 0x200
1332 S_IEXEC = 0x40
1333 S_IFBLK = 0x6000
1334 S_IFCHR = 0x2000
1335 S_IFDIR = 0x4000
1336 S_IFIFO = 0x1000
1337 S_IFLNK = 0xa000
1338 S_IFMT = 0xf000
1339 S_IFREG = 0x8000
1340 S_IFSOCK = 0xc000
1341 S_IREAD = 0x100
1342 S_IRGRP = 0x20
1343 S_IROTH = 0x4
1344 S_IRUSR = 0x100
1345 S_IRWXG = 0x38
1346 S_IRWXO = 0x7
1347 S_IRWXU = 0x1c0
1348 S_ISGID = 0x400
1349 S_ISUID = 0x800
1350 S_ISVTX = 0x200
1351 S_IWGRP = 0x10
1352 S_IWOTH = 0x2
1353 S_IWRITE = 0x80
1354 S_IWUSR = 0x80
1355 S_IXGRP = 0x8
1356 S_IXOTH = 0x1
1357 S_IXUSR = 0x40
1358 TAB0 = 0x0
1359 TAB1 = 0x800
1360 TAB2 = 0x1000
1361 TAB3 = 0x1800
1362 TABDLY = 0x1800
1363 TCFLSH = 0x540b
1364 TCGETA = 0x5405
1365 TCGETS = 0x5401
1366 TCGETS2 = 0x802c542a
1367 TCGETX = 0x5432
1368 TCIFLUSH = 0x0
1369 TCIOFF = 0x2
1370 TCIOFLUSH = 0x2
1371 TCION = 0x3
1372 TCOFLUSH = 0x1
1373 TCOOFF = 0x0
1374 TCOON = 0x1
1375 TCP_CONGESTION = 0xd
1376 TCP_COOKIE_IN_ALWAYS = 0x1
1377 TCP_COOKIE_MAX = 0x10
1378 TCP_COOKIE_MIN = 0x8
1379 TCP_COOKIE_OUT_NEVER = 0x2
1380 TCP_COOKIE_PAIR_SIZE = 0x20
1381 TCP_COOKIE_TRANSACTIONS = 0xf
1382 TCP_CORK = 0x3
1383 TCP_DEFER_ACCEPT = 0x9
1384 TCP_FASTOPEN = 0x17
1385 TCP_INFO = 0xb
1386 TCP_KEEPCNT = 0x6
1387 TCP_KEEPIDLE = 0x4
1388 TCP_KEEPINTVL = 0x5
1389 TCP_LINGER2 = 0x8
1390 TCP_MAXSEG = 0x2
1391 TCP_MAXWIN = 0xffff
1392 TCP_MAX_WINSHIFT = 0xe
1393 TCP_MD5SIG = 0xe
1394 TCP_MD5SIG_MAXKEYLEN = 0x50
1395 TCP_MSS = 0x200
1396 TCP_MSS_DEFAULT = 0x218
1397 TCP_MSS_DESIRED = 0x4c4
1398 TCP_NODELAY = 0x1
1399 TCP_QUEUE_SEQ = 0x15
1400 TCP_QUICKACK = 0xc
1401 TCP_REPAIR = 0x13
1402 TCP_REPAIR_OPTIONS = 0x16
1403 TCP_REPAIR_QUEUE = 0x14
1404 TCP_SYNCNT = 0x7
1405 TCP_S_DATA_IN = 0x4
1406 TCP_S_DATA_OUT = 0x8
1407 TCP_THIN_DUPACK = 0x11
1408 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1409 TCP_TIMESTAMP = 0x18
1410 TCP_USER_TIMEOUT = 0x12
1411 TCP_WINDOW_CLAMP = 0xa
1412 TCSAFLUSH = 0x2
1413 TCSBRK = 0x5409
1414 TCSBRKP = 0x5425
1415 TCSETA = 0x5406
1416 TCSETAF = 0x5408
1417 TCSETAW = 0x5407
1418 TCSETS = 0x5402
1419 TCSETS2 = 0x402c542b
1420 TCSETSF = 0x5404
1421 TCSETSF2 = 0x402c542d
1422 TCSETSW = 0x5403
1423 TCSETSW2 = 0x402c542c
1424 TCSETX = 0x5433
1425 TCSETXF = 0x5434
1426 TCSETXW = 0x5435
1427 TCXONC = 0x540a
1428 TIOCCBRK = 0x5428
1429 TIOCCONS = 0x541d
1430 TIOCEXCL = 0x540c
1431 TIOCGDEV = 0x80045432
1432 TIOCGETD = 0x5424
1433 TIOCGEXCL = 0x80045440
1434 TIOCGICOUNT = 0x545d
1435 TIOCGLCKTRMIOS = 0x5456
1436 TIOCGPGRP = 0x540f
1437 TIOCGPKT = 0x80045438
1438 TIOCGPTLCK = 0x80045439
1439 TIOCGPTN = 0x80045430
1440 TIOCGRS485 = 0x542e
1441 TIOCGSERIAL = 0x541e
1442 TIOCGSID = 0x5429
1443 TIOCGSOFTCAR = 0x5419
1444 TIOCGWINSZ = 0x5413
1445 TIOCINQ = 0x541b
1446 TIOCLINUX = 0x541c
1447 TIOCMBIC = 0x5417
1448 TIOCMBIS = 0x5416
1449 TIOCMGET = 0x5415
1450 TIOCMIWAIT = 0x545c
1451 TIOCMSET = 0x5418
1452 TIOCM_CAR = 0x40
1453 TIOCM_CD = 0x40
1454 TIOCM_CTS = 0x20
1455 TIOCM_DSR = 0x100
1456 TIOCM_DTR = 0x2
1457 TIOCM_LE = 0x1
1458 TIOCM_RI = 0x80
1459 TIOCM_RNG = 0x80
1460 TIOCM_RTS = 0x4
1461 TIOCM_SR = 0x10
1462 TIOCM_ST = 0x8
1463 TIOCNOTTY = 0x5422
1464 TIOCNXCL = 0x540d
1465 TIOCOUTQ = 0x5411
1466 TIOCPKT = 0x5420
1467 TIOCPKT_DATA = 0x0
1468 TIOCPKT_DOSTOP = 0x20
1469 TIOCPKT_FLUSHREAD = 0x1
1470 TIOCPKT_FLUSHWRITE = 0x2
1471 TIOCPKT_IOCTL = 0x40
1472 TIOCPKT_NOSTOP = 0x10
1473 TIOCPKT_START = 0x8
1474 TIOCPKT_STOP = 0x4
1475 TIOCSBRK = 0x5427
1476 TIOCSCTTY = 0x540e
1477 TIOCSERCONFIG = 0x5453
1478 TIOCSERGETLSR = 0x5459
1479 TIOCSERGETMULTI = 0x545a
1480 TIOCSERGSTRUCT = 0x5458
1481 TIOCSERGWILD = 0x5454
1482 TIOCSERSETMULTI = 0x545b
1483 TIOCSERSWILD = 0x5455
1484 TIOCSER_TEMT = 0x1
1485 TIOCSETD = 0x5423
1486 TIOCSIG = 0x40045436
1487 TIOCSLCKTRMIOS = 0x5457
1488 TIOCSPGRP = 0x5410
1489 TIOCSPTLCK = 0x40045431
1490 TIOCSRS485 = 0x542f
1491 TIOCSSERIAL = 0x541f
1492 TIOCSSOFTCAR = 0x541a
1493 TIOCSTI = 0x5412
1494 TIOCSWINSZ = 0x5414
1495 TIOCVHANGUP = 0x5437
1496 TOSTOP = 0x100
1497 TUNATTACHFILTER = 0x401054d5
1498 TUNDETACHFILTER = 0x401054d6
1499 TUNGETFEATURES = 0x800454cf
1500 TUNGETFILTER = 0x801054db
1501 TUNGETIFF = 0x800454d2
1502 TUNGETSNDBUF = 0x800454d3
1503 TUNGETVNETHDRSZ = 0x800454d7
1504 TUNSETDEBUG = 0x400454c9
1505 TUNSETGROUP = 0x400454ce
1506 TUNSETIFF = 0x400454ca
1507 TUNSETIFINDEX = 0x400454da
1508 TUNSETLINK = 0x400454cd
1509 TUNSETNOCSUM = 0x400454c8
1510 TUNSETOFFLOAD = 0x400454d0
1511 TUNSETOWNER = 0x400454cc
1512 TUNSETPERSIST = 0x400454cb
1513 TUNSETQUEUE = 0x400454d9
1514 TUNSETSNDBUF = 0x400454d4
1515 TUNSETTXFILTER = 0x400454d1
1516 TUNSETVNETHDRSZ = 0x400454d8
1517 VDISCARD = 0xd
1518 VEOF = 0x4
1519 VEOL = 0xb
1520 VEOL2 = 0x10
1521 VERASE = 0x2
1522 VINTR = 0x0
1523 VKILL = 0x3
1524 VLNEXT = 0xf
1525 VMIN = 0x6
1526 VQUIT = 0x1
1527 VREPRINT = 0xc
1528 VSTART = 0x8
1529 VSTOP = 0x9
1530 VSUSP = 0xa
1531 VSWTC = 0x7
1532 VT0 = 0x0
1533 VT1 = 0x4000
1534 VTDLY = 0x4000
1535 VTIME = 0x5
1536 VWERASE = 0xe
1537 WALL = 0x40000000
1538 WCLONE = 0x80000000
1539 WCONTINUED = 0x8
1540 WEXITED = 0x4
1541 WNOHANG = 0x1
1542 WNOTHREAD = 0x20000000
1543 WNOWAIT = 0x1000000
1544 WORDSIZE = 0x40
1545 WSTOPPED = 0x2
1546 WUNTRACED = 0x2
1547 XCASE = 0x4
1548 XTABS = 0x1800
1549)
1550
1551// Errors
1552const (
1553 E2BIG = syscall.Errno(0x7)
1554 EACCES = syscall.Errno(0xd)
1555 EADDRINUSE = syscall.Errno(0x62)
1556 EADDRNOTAVAIL = syscall.Errno(0x63)
1557 EADV = syscall.Errno(0x44)
1558 EAFNOSUPPORT = syscall.Errno(0x61)
1559 EAGAIN = syscall.Errno(0xb)
1560 EALREADY = syscall.Errno(0x72)
1561 EBADE = syscall.Errno(0x34)
1562 EBADF = syscall.Errno(0x9)
1563 EBADFD = syscall.Errno(0x4d)
1564 EBADMSG = syscall.Errno(0x4a)
1565 EBADR = syscall.Errno(0x35)
1566 EBADRQC = syscall.Errno(0x38)
1567 EBADSLT = syscall.Errno(0x39)
1568 EBFONT = syscall.Errno(0x3b)
1569 EBUSY = syscall.Errno(0x10)
1570 ECANCELED = syscall.Errno(0x7d)
1571 ECHILD = syscall.Errno(0xa)
1572 ECHRNG = syscall.Errno(0x2c)
1573 ECOMM = syscall.Errno(0x46)
1574 ECONNABORTED = syscall.Errno(0x67)
1575 ECONNREFUSED = syscall.Errno(0x6f)
1576 ECONNRESET = syscall.Errno(0x68)
1577 EDEADLK = syscall.Errno(0x23)
1578 EDEADLOCK = syscall.Errno(0x23)
1579 EDESTADDRREQ = syscall.Errno(0x59)
1580 EDOM = syscall.Errno(0x21)
1581 EDOTDOT = syscall.Errno(0x49)
1582 EDQUOT = syscall.Errno(0x7a)
1583 EEXIST = syscall.Errno(0x11)
1584 EFAULT = syscall.Errno(0xe)
1585 EFBIG = syscall.Errno(0x1b)
1586 EHOSTDOWN = syscall.Errno(0x70)
1587 EHOSTUNREACH = syscall.Errno(0x71)
1588 EHWPOISON = syscall.Errno(0x85)
1589 EIDRM = syscall.Errno(0x2b)
1590 EILSEQ = syscall.Errno(0x54)
1591 EINPROGRESS = syscall.Errno(0x73)
1592 EINTR = syscall.Errno(0x4)
1593 EINVAL = syscall.Errno(0x16)
1594 EIO = syscall.Errno(0x5)
1595 EISCONN = syscall.Errno(0x6a)
1596 EISDIR = syscall.Errno(0x15)
1597 EISNAM = syscall.Errno(0x78)
1598 EKEYEXPIRED = syscall.Errno(0x7f)
1599 EKEYREJECTED = syscall.Errno(0x81)
1600 EKEYREVOKED = syscall.Errno(0x80)
1601 EL2HLT = syscall.Errno(0x33)
1602 EL2NSYNC = syscall.Errno(0x2d)
1603 EL3HLT = syscall.Errno(0x2e)
1604 EL3RST = syscall.Errno(0x2f)
1605 ELIBACC = syscall.Errno(0x4f)
1606 ELIBBAD = syscall.Errno(0x50)
1607 ELIBEXEC = syscall.Errno(0x53)
1608 ELIBMAX = syscall.Errno(0x52)
1609 ELIBSCN = syscall.Errno(0x51)
1610 ELNRNG = syscall.Errno(0x30)
1611 ELOOP = syscall.Errno(0x28)
1612 EMEDIUMTYPE = syscall.Errno(0x7c)
1613 EMFILE = syscall.Errno(0x18)
1614 EMLINK = syscall.Errno(0x1f)
1615 EMSGSIZE = syscall.Errno(0x5a)
1616 EMULTIHOP = syscall.Errno(0x48)
1617 ENAMETOOLONG = syscall.Errno(0x24)
1618 ENAVAIL = syscall.Errno(0x77)
1619 ENETDOWN = syscall.Errno(0x64)
1620 ENETRESET = syscall.Errno(0x66)
1621 ENETUNREACH = syscall.Errno(0x65)
1622 ENFILE = syscall.Errno(0x17)
1623 ENOANO = syscall.Errno(0x37)
1624 ENOBUFS = syscall.Errno(0x69)
1625 ENOCSI = syscall.Errno(0x32)
1626 ENODATA = syscall.Errno(0x3d)
1627 ENODEV = syscall.Errno(0x13)
1628 ENOENT = syscall.Errno(0x2)
1629 ENOEXEC = syscall.Errno(0x8)
1630 ENOKEY = syscall.Errno(0x7e)
1631 ENOLCK = syscall.Errno(0x25)
1632 ENOLINK = syscall.Errno(0x43)
1633 ENOMEDIUM = syscall.Errno(0x7b)
1634 ENOMEM = syscall.Errno(0xc)
1635 ENOMSG = syscall.Errno(0x2a)
1636 ENONET = syscall.Errno(0x40)
1637 ENOPKG = syscall.Errno(0x41)
1638 ENOPROTOOPT = syscall.Errno(0x5c)
1639 ENOSPC = syscall.Errno(0x1c)
1640 ENOSR = syscall.Errno(0x3f)
1641 ENOSTR = syscall.Errno(0x3c)
1642 ENOSYS = syscall.Errno(0x26)
1643 ENOTBLK = syscall.Errno(0xf)
1644 ENOTCONN = syscall.Errno(0x6b)
1645 ENOTDIR = syscall.Errno(0x14)
1646 ENOTEMPTY = syscall.Errno(0x27)
1647 ENOTNAM = syscall.Errno(0x76)
1648 ENOTRECOVERABLE = syscall.Errno(0x83)
1649 ENOTSOCK = syscall.Errno(0x58)
1650 ENOTSUP = syscall.Errno(0x5f)
1651 ENOTTY = syscall.Errno(0x19)
1652 ENOTUNIQ = syscall.Errno(0x4c)
1653 ENXIO = syscall.Errno(0x6)
1654 EOPNOTSUPP = syscall.Errno(0x5f)
1655 EOVERFLOW = syscall.Errno(0x4b)
1656 EOWNERDEAD = syscall.Errno(0x82)
1657 EPERM = syscall.Errno(0x1)
1658 EPFNOSUPPORT = syscall.Errno(0x60)
1659 EPIPE = syscall.Errno(0x20)
1660 EPROTO = syscall.Errno(0x47)
1661 EPROTONOSUPPORT = syscall.Errno(0x5d)
1662 EPROTOTYPE = syscall.Errno(0x5b)
1663 ERANGE = syscall.Errno(0x22)
1664 EREMCHG = syscall.Errno(0x4e)
1665 EREMOTE = syscall.Errno(0x42)
1666 EREMOTEIO = syscall.Errno(0x79)
1667 ERESTART = syscall.Errno(0x55)
1668 ERFKILL = syscall.Errno(0x84)
1669 EROFS = syscall.Errno(0x1e)
1670 ESHUTDOWN = syscall.Errno(0x6c)
1671 ESOCKTNOSUPPORT = syscall.Errno(0x5e)
1672 ESPIPE = syscall.Errno(0x1d)
1673 ESRCH = syscall.Errno(0x3)
1674 ESRMNT = syscall.Errno(0x45)
1675 ESTALE = syscall.Errno(0x74)
1676 ESTRPIPE = syscall.Errno(0x56)
1677 ETIME = syscall.Errno(0x3e)
1678 ETIMEDOUT = syscall.Errno(0x6e)
1679 ETOOMANYREFS = syscall.Errno(0x6d)
1680 ETXTBSY = syscall.Errno(0x1a)
1681 EUCLEAN = syscall.Errno(0x75)
1682 EUNATCH = syscall.Errno(0x31)
1683 EUSERS = syscall.Errno(0x57)
1684 EWOULDBLOCK = syscall.Errno(0xb)
1685 EXDEV = syscall.Errno(0x12)
1686 EXFULL = syscall.Errno(0x36)
1687)
1688
1689// Signals
1690const (
1691 SIGABRT = syscall.Signal(0x6)
1692 SIGALRM = syscall.Signal(0xe)
1693 SIGBUS = syscall.Signal(0x7)
1694 SIGCHLD = syscall.Signal(0x11)
1695 SIGCLD = syscall.Signal(0x11)
1696 SIGCONT = syscall.Signal(0x12)
1697 SIGFPE = syscall.Signal(0x8)
1698 SIGHUP = syscall.Signal(0x1)
1699 SIGILL = syscall.Signal(0x4)
1700 SIGINT = syscall.Signal(0x2)
1701 SIGIO = syscall.Signal(0x1d)
1702 SIGIOT = syscall.Signal(0x6)
1703 SIGKILL = syscall.Signal(0x9)
1704 SIGPIPE = syscall.Signal(0xd)
1705 SIGPOLL = syscall.Signal(0x1d)
1706 SIGPROF = syscall.Signal(0x1b)
1707 SIGPWR = syscall.Signal(0x1e)
1708 SIGQUIT = syscall.Signal(0x3)
1709 SIGSEGV = syscall.Signal(0xb)
1710 SIGSTKFLT = syscall.Signal(0x10)
1711 SIGSTOP = syscall.Signal(0x13)
1712 SIGSYS = syscall.Signal(0x1f)
1713 SIGTERM = syscall.Signal(0xf)
1714 SIGTRAP = syscall.Signal(0x5)
1715 SIGTSTP = syscall.Signal(0x14)
1716 SIGTTIN = syscall.Signal(0x15)
1717 SIGTTOU = syscall.Signal(0x16)
1718 SIGUNUSED = syscall.Signal(0x1f)
1719 SIGURG = syscall.Signal(0x17)
1720 SIGUSR1 = syscall.Signal(0xa)
1721 SIGUSR2 = syscall.Signal(0xc)
1722 SIGVTALRM = syscall.Signal(0x1a)
1723 SIGWINCH = syscall.Signal(0x1c)
1724 SIGXCPU = syscall.Signal(0x18)
1725 SIGXFSZ = syscall.Signal(0x19)
1726)
1727
1728// Error table
1729var errors = [...]string{
1730 1: "operation not permitted",
1731 2: "no such file or directory",
1732 3: "no such process",
1733 4: "interrupted system call",
1734 5: "input/output error",
1735 6: "no such device or address",
1736 7: "argument list too long",
1737 8: "exec format error",
1738 9: "bad file descriptor",
1739 10: "no child processes",
1740 11: "resource temporarily unavailable",
1741 12: "cannot allocate memory",
1742 13: "permission denied",
1743 14: "bad address",
1744 15: "block device required",
1745 16: "device or resource busy",
1746 17: "file exists",
1747 18: "invalid cross-device link",
1748 19: "no such device",
1749 20: "not a directory",
1750 21: "is a directory",
1751 22: "invalid argument",
1752 23: "too many open files in system",
1753 24: "too many open files",
1754 25: "inappropriate ioctl for device",
1755 26: "text file busy",
1756 27: "file too large",
1757 28: "no space left on device",
1758 29: "illegal seek",
1759 30: "read-only file system",
1760 31: "too many links",
1761 32: "broken pipe",
1762 33: "numerical argument out of domain",
1763 34: "numerical result out of range",
1764 35: "resource deadlock avoided",
1765 36: "file name too long",
1766 37: "no locks available",
1767 38: "function not implemented",
1768 39: "directory not empty",
1769 40: "too many levels of symbolic links",
1770 42: "no message of desired type",
1771 43: "identifier removed",
1772 44: "channel number out of range",
1773 45: "level 2 not synchronized",
1774 46: "level 3 halted",
1775 47: "level 3 reset",
1776 48: "link number out of range",
1777 49: "protocol driver not attached",
1778 50: "no CSI structure available",
1779 51: "level 2 halted",
1780 52: "invalid exchange",
1781 53: "invalid request descriptor",
1782 54: "exchange full",
1783 55: "no anode",
1784 56: "invalid request code",
1785 57: "invalid slot",
1786 59: "bad font file format",
1787 60: "device not a stream",
1788 61: "no data available",
1789 62: "timer expired",
1790 63: "out of streams resources",
1791 64: "machine is not on the network",
1792 65: "package not installed",
1793 66: "object is remote",
1794 67: "link has been severed",
1795 68: "advertise error",
1796 69: "srmount error",
1797 70: "communication error on send",
1798 71: "protocol error",
1799 72: "multihop attempted",
1800 73: "RFS specific error",
1801 74: "bad message",
1802 75: "value too large for defined data type",
1803 76: "name not unique on network",
1804 77: "file descriptor in bad state",
1805 78: "remote address changed",
1806 79: "can not access a needed shared library",
1807 80: "accessing a corrupted shared library",
1808 81: ".lib section in a.out corrupted",
1809 82: "attempting to link in too many shared libraries",
1810 83: "cannot exec a shared library directly",
1811 84: "invalid or incomplete multibyte or wide character",
1812 85: "interrupted system call should be restarted",
1813 86: "streams pipe error",
1814 87: "too many users",
1815 88: "socket operation on non-socket",
1816 89: "destination address required",
1817 90: "message too long",
1818 91: "protocol wrong type for socket",
1819 92: "protocol not available",
1820 93: "protocol not supported",
1821 94: "socket type not supported",
1822 95: "operation not supported",
1823 96: "protocol family not supported",
1824 97: "address family not supported by protocol",
1825 98: "address already in use",
1826 99: "cannot assign requested address",
1827 100: "network is down",
1828 101: "network is unreachable",
1829 102: "network dropped connection on reset",
1830 103: "software caused connection abort",
1831 104: "connection reset by peer",
1832 105: "no buffer space available",
1833 106: "transport endpoint is already connected",
1834 107: "transport endpoint is not connected",
1835 108: "cannot send after transport endpoint shutdown",
1836 109: "too many references: cannot splice",
1837 110: "connection timed out",
1838 111: "connection refused",
1839 112: "host is down",
1840 113: "no route to host",
1841 114: "operation already in progress",
1842 115: "operation now in progress",
1843 116: "stale file handle",
1844 117: "structure needs cleaning",
1845 118: "not a XENIX named type file",
1846 119: "no XENIX semaphores available",
1847 120: "is a named type file",
1848 121: "remote I/O error",
1849 122: "disk quota exceeded",
1850 123: "no medium found",
1851 124: "wrong medium type",
1852 125: "operation canceled",
1853 126: "required key not available",
1854 127: "key has expired",
1855 128: "key has been revoked",
1856 129: "key was rejected by service",
1857 130: "owner died",
1858 131: "state not recoverable",
1859 132: "operation not possible due to RF-kill",
1860 133: "memory page has hardware error",
1861}
1862
1863// Signal table
1864var signals = [...]string{
1865 1: "hangup",
1866 2: "interrupt",
1867 3: "quit",
1868 4: "illegal instruction",
1869 5: "trace/breakpoint trap",
1870 6: "aborted",
1871 7: "bus error",
1872 8: "floating point exception",
1873 9: "killed",
1874 10: "user defined signal 1",
1875 11: "segmentation fault",
1876 12: "user defined signal 2",
1877 13: "broken pipe",
1878 14: "alarm clock",
1879 15: "terminated",
1880 16: "stack fault",
1881 17: "child exited",
1882 18: "continued",
1883 19: "stopped (signal)",
1884 20: "stopped",
1885 21: "stopped (tty input)",
1886 22: "stopped (tty output)",
1887 23: "urgent I/O condition",
1888 24: "CPU time limit exceeded",
1889 25: "file size limit exceeded",
1890 26: "virtual timer expired",
1891 27: "profiling timer expired",
1892 28: "window changed",
1893 29: "I/O possible",
1894 30: "power failure",
1895 31: "bad system call",
1896}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_ppc64.go
deleted file mode 100644
index 5b90d07..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_ppc64.go
+++ /dev/null
@@ -1,1969 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build ppc64,linux
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_ALG = 0x26
15 AF_APPLETALK = 0x5
16 AF_ASH = 0x12
17 AF_ATMPVC = 0x8
18 AF_ATMSVC = 0x14
19 AF_AX25 = 0x3
20 AF_BLUETOOTH = 0x1f
21 AF_BRIDGE = 0x7
22 AF_CAIF = 0x25
23 AF_CAN = 0x1d
24 AF_DECnet = 0xc
25 AF_ECONET = 0x13
26 AF_FILE = 0x1
27 AF_IEEE802154 = 0x24
28 AF_INET = 0x2
29 AF_INET6 = 0xa
30 AF_IPX = 0x4
31 AF_IRDA = 0x17
32 AF_ISDN = 0x22
33 AF_IUCV = 0x20
34 AF_KEY = 0xf
35 AF_LLC = 0x1a
36 AF_LOCAL = 0x1
37 AF_MAX = 0x29
38 AF_NETBEUI = 0xd
39 AF_NETLINK = 0x10
40 AF_NETROM = 0x6
41 AF_NFC = 0x27
42 AF_PACKET = 0x11
43 AF_PHONET = 0x23
44 AF_PPPOX = 0x18
45 AF_RDS = 0x15
46 AF_ROSE = 0xb
47 AF_ROUTE = 0x10
48 AF_RXRPC = 0x21
49 AF_SECURITY = 0xe
50 AF_SNA = 0x16
51 AF_TIPC = 0x1e
52 AF_UNIX = 0x1
53 AF_UNSPEC = 0x0
54 AF_VSOCK = 0x28
55 AF_WANPIPE = 0x19
56 AF_X25 = 0x9
57 ARPHRD_6LOWPAN = 0x339
58 ARPHRD_ADAPT = 0x108
59 ARPHRD_APPLETLK = 0x8
60 ARPHRD_ARCNET = 0x7
61 ARPHRD_ASH = 0x30d
62 ARPHRD_ATM = 0x13
63 ARPHRD_AX25 = 0x3
64 ARPHRD_BIF = 0x307
65 ARPHRD_CAIF = 0x336
66 ARPHRD_CAN = 0x118
67 ARPHRD_CHAOS = 0x5
68 ARPHRD_CISCO = 0x201
69 ARPHRD_CSLIP = 0x101
70 ARPHRD_CSLIP6 = 0x103
71 ARPHRD_DDCMP = 0x205
72 ARPHRD_DLCI = 0xf
73 ARPHRD_ECONET = 0x30e
74 ARPHRD_EETHER = 0x2
75 ARPHRD_ETHER = 0x1
76 ARPHRD_EUI64 = 0x1b
77 ARPHRD_FCAL = 0x311
78 ARPHRD_FCFABRIC = 0x313
79 ARPHRD_FCPL = 0x312
80 ARPHRD_FCPP = 0x310
81 ARPHRD_FDDI = 0x306
82 ARPHRD_FRAD = 0x302
83 ARPHRD_HDLC = 0x201
84 ARPHRD_HIPPI = 0x30c
85 ARPHRD_HWX25 = 0x110
86 ARPHRD_IEEE1394 = 0x18
87 ARPHRD_IEEE802 = 0x6
88 ARPHRD_IEEE80211 = 0x321
89 ARPHRD_IEEE80211_PRISM = 0x322
90 ARPHRD_IEEE80211_RADIOTAP = 0x323
91 ARPHRD_IEEE802154 = 0x324
92 ARPHRD_IEEE802154_MONITOR = 0x325
93 ARPHRD_IEEE802_TR = 0x320
94 ARPHRD_INFINIBAND = 0x20
95 ARPHRD_IP6GRE = 0x337
96 ARPHRD_IPDDP = 0x309
97 ARPHRD_IPGRE = 0x30a
98 ARPHRD_IRDA = 0x30f
99 ARPHRD_LAPB = 0x204
100 ARPHRD_LOCALTLK = 0x305
101 ARPHRD_LOOPBACK = 0x304
102 ARPHRD_METRICOM = 0x17
103 ARPHRD_NETLINK = 0x338
104 ARPHRD_NETROM = 0x0
105 ARPHRD_NONE = 0xfffe
106 ARPHRD_PHONET = 0x334
107 ARPHRD_PHONET_PIPE = 0x335
108 ARPHRD_PIMREG = 0x30b
109 ARPHRD_PPP = 0x200
110 ARPHRD_PRONET = 0x4
111 ARPHRD_RAWHDLC = 0x206
112 ARPHRD_ROSE = 0x10e
113 ARPHRD_RSRVD = 0x104
114 ARPHRD_SIT = 0x308
115 ARPHRD_SKIP = 0x303
116 ARPHRD_SLIP = 0x100
117 ARPHRD_SLIP6 = 0x102
118 ARPHRD_TUNNEL = 0x300
119 ARPHRD_TUNNEL6 = 0x301
120 ARPHRD_VOID = 0xffff
121 ARPHRD_X25 = 0x10f
122 B0 = 0x0
123 B1000000 = 0x17
124 B110 = 0x3
125 B115200 = 0x11
126 B1152000 = 0x18
127 B1200 = 0x9
128 B134 = 0x4
129 B150 = 0x5
130 B1500000 = 0x19
131 B1800 = 0xa
132 B19200 = 0xe
133 B200 = 0x6
134 B2000000 = 0x1a
135 B230400 = 0x12
136 B2400 = 0xb
137 B2500000 = 0x1b
138 B300 = 0x7
139 B3000000 = 0x1c
140 B3500000 = 0x1d
141 B38400 = 0xf
142 B4000000 = 0x1e
143 B460800 = 0x13
144 B4800 = 0xc
145 B50 = 0x1
146 B500000 = 0x14
147 B57600 = 0x10
148 B576000 = 0x15
149 B600 = 0x8
150 B75 = 0x2
151 B921600 = 0x16
152 B9600 = 0xd
153 BOTHER = 0x1f
154 BPF_A = 0x10
155 BPF_ABS = 0x20
156 BPF_ADD = 0x0
157 BPF_ALU = 0x4
158 BPF_AND = 0x50
159 BPF_B = 0x10
160 BPF_DIV = 0x30
161 BPF_H = 0x8
162 BPF_IMM = 0x0
163 BPF_IND = 0x40
164 BPF_JA = 0x0
165 BPF_JEQ = 0x10
166 BPF_JGE = 0x30
167 BPF_JGT = 0x20
168 BPF_JMP = 0x5
169 BPF_JSET = 0x40
170 BPF_K = 0x0
171 BPF_LD = 0x0
172 BPF_LDX = 0x1
173 BPF_LEN = 0x80
174 BPF_LSH = 0x60
175 BPF_MAJOR_VERSION = 0x1
176 BPF_MAXINSNS = 0x1000
177 BPF_MEM = 0x60
178 BPF_MEMWORDS = 0x10
179 BPF_MINOR_VERSION = 0x1
180 BPF_MISC = 0x7
181 BPF_MOD = 0x90
182 BPF_MSH = 0xa0
183 BPF_MUL = 0x20
184 BPF_NEG = 0x80
185 BPF_OR = 0x40
186 BPF_RET = 0x6
187 BPF_RSH = 0x70
188 BPF_ST = 0x2
189 BPF_STX = 0x3
190 BPF_SUB = 0x10
191 BPF_TAX = 0x0
192 BPF_TXA = 0x80
193 BPF_W = 0x0
194 BPF_X = 0x8
195 BPF_XOR = 0xa0
196 BRKINT = 0x2
197 BS0 = 0x0
198 BS1 = 0x8000
199 BSDLY = 0x8000
200 CBAUD = 0xff
201 CBAUDEX = 0x0
202 CFLUSH = 0xf
203 CIBAUD = 0xff0000
204 CLOCAL = 0x8000
205 CLOCK_BOOTTIME = 0x7
206 CLOCK_BOOTTIME_ALARM = 0x9
207 CLOCK_DEFAULT = 0x0
208 CLOCK_EXT = 0x1
209 CLOCK_INT = 0x2
210 CLOCK_MONOTONIC = 0x1
211 CLOCK_MONOTONIC_COARSE = 0x6
212 CLOCK_MONOTONIC_RAW = 0x4
213 CLOCK_PROCESS_CPUTIME_ID = 0x2
214 CLOCK_REALTIME = 0x0
215 CLOCK_REALTIME_ALARM = 0x8
216 CLOCK_REALTIME_COARSE = 0x5
217 CLOCK_THREAD_CPUTIME_ID = 0x3
218 CLOCK_TXFROMRX = 0x4
219 CLOCK_TXINT = 0x3
220 CLONE_CHILD_CLEARTID = 0x200000
221 CLONE_CHILD_SETTID = 0x1000000
222 CLONE_DETACHED = 0x400000
223 CLONE_FILES = 0x400
224 CLONE_FS = 0x200
225 CLONE_IO = 0x80000000
226 CLONE_NEWIPC = 0x8000000
227 CLONE_NEWNET = 0x40000000
228 CLONE_NEWNS = 0x20000
229 CLONE_NEWPID = 0x20000000
230 CLONE_NEWUSER = 0x10000000
231 CLONE_NEWUTS = 0x4000000
232 CLONE_PARENT = 0x8000
233 CLONE_PARENT_SETTID = 0x100000
234 CLONE_PTRACE = 0x2000
235 CLONE_SETTLS = 0x80000
236 CLONE_SIGHAND = 0x800
237 CLONE_SYSVSEM = 0x40000
238 CLONE_THREAD = 0x10000
239 CLONE_UNTRACED = 0x800000
240 CLONE_VFORK = 0x4000
241 CLONE_VM = 0x100
242 CMSPAR = 0x40000000
243 CR0 = 0x0
244 CR1 = 0x1000
245 CR2 = 0x2000
246 CR3 = 0x3000
247 CRDLY = 0x3000
248 CREAD = 0x800
249 CRTSCTS = 0x80000000
250 CS5 = 0x0
251 CS6 = 0x100
252 CS7 = 0x200
253 CS8 = 0x300
254 CSIGNAL = 0xff
255 CSIZE = 0x300
256 CSTART = 0x11
257 CSTATUS = 0x0
258 CSTOP = 0x13
259 CSTOPB = 0x400
260 CSUSP = 0x1a
261 DT_BLK = 0x6
262 DT_CHR = 0x2
263 DT_DIR = 0x4
264 DT_FIFO = 0x1
265 DT_LNK = 0xa
266 DT_REG = 0x8
267 DT_SOCK = 0xc
268 DT_UNKNOWN = 0x0
269 DT_WHT = 0xe
270 ECHO = 0x8
271 ECHOCTL = 0x40
272 ECHOE = 0x2
273 ECHOK = 0x4
274 ECHOKE = 0x1
275 ECHONL = 0x10
276 ECHOPRT = 0x20
277 ENCODING_DEFAULT = 0x0
278 ENCODING_FM_MARK = 0x3
279 ENCODING_FM_SPACE = 0x4
280 ENCODING_MANCHESTER = 0x5
281 ENCODING_NRZ = 0x1
282 ENCODING_NRZI = 0x2
283 EPOLLERR = 0x8
284 EPOLLET = 0x80000000
285 EPOLLHUP = 0x10
286 EPOLLIN = 0x1
287 EPOLLMSG = 0x400
288 EPOLLONESHOT = 0x40000000
289 EPOLLOUT = 0x4
290 EPOLLPRI = 0x2
291 EPOLLRDBAND = 0x80
292 EPOLLRDHUP = 0x2000
293 EPOLLRDNORM = 0x40
294 EPOLLWAKEUP = 0x20000000
295 EPOLLWRBAND = 0x200
296 EPOLLWRNORM = 0x100
297 EPOLL_CLOEXEC = 0x80000
298 EPOLL_CTL_ADD = 0x1
299 EPOLL_CTL_DEL = 0x2
300 EPOLL_CTL_MOD = 0x3
301 ETH_P_1588 = 0x88f7
302 ETH_P_8021AD = 0x88a8
303 ETH_P_8021AH = 0x88e7
304 ETH_P_8021Q = 0x8100
305 ETH_P_80221 = 0x8917
306 ETH_P_802_2 = 0x4
307 ETH_P_802_3 = 0x1
308 ETH_P_802_3_MIN = 0x600
309 ETH_P_802_EX1 = 0x88b5
310 ETH_P_AARP = 0x80f3
311 ETH_P_AF_IUCV = 0xfbfb
312 ETH_P_ALL = 0x3
313 ETH_P_AOE = 0x88a2
314 ETH_P_ARCNET = 0x1a
315 ETH_P_ARP = 0x806
316 ETH_P_ATALK = 0x809b
317 ETH_P_ATMFATE = 0x8884
318 ETH_P_ATMMPOA = 0x884c
319 ETH_P_AX25 = 0x2
320 ETH_P_BATMAN = 0x4305
321 ETH_P_BPQ = 0x8ff
322 ETH_P_CAIF = 0xf7
323 ETH_P_CAN = 0xc
324 ETH_P_CANFD = 0xd
325 ETH_P_CONTROL = 0x16
326 ETH_P_CUST = 0x6006
327 ETH_P_DDCMP = 0x6
328 ETH_P_DEC = 0x6000
329 ETH_P_DIAG = 0x6005
330 ETH_P_DNA_DL = 0x6001
331 ETH_P_DNA_RC = 0x6002
332 ETH_P_DNA_RT = 0x6003
333 ETH_P_DSA = 0x1b
334 ETH_P_ECONET = 0x18
335 ETH_P_EDSA = 0xdada
336 ETH_P_FCOE = 0x8906
337 ETH_P_FIP = 0x8914
338 ETH_P_HDLC = 0x19
339 ETH_P_IEEE802154 = 0xf6
340 ETH_P_IEEEPUP = 0xa00
341 ETH_P_IEEEPUPAT = 0xa01
342 ETH_P_IP = 0x800
343 ETH_P_IPV6 = 0x86dd
344 ETH_P_IPX = 0x8137
345 ETH_P_IRDA = 0x17
346 ETH_P_LAT = 0x6004
347 ETH_P_LINK_CTL = 0x886c
348 ETH_P_LOCALTALK = 0x9
349 ETH_P_LOOP = 0x60
350 ETH_P_LOOPBACK = 0x9000
351 ETH_P_MOBITEX = 0x15
352 ETH_P_MPLS_MC = 0x8848
353 ETH_P_MPLS_UC = 0x8847
354 ETH_P_MVRP = 0x88f5
355 ETH_P_PAE = 0x888e
356 ETH_P_PAUSE = 0x8808
357 ETH_P_PHONET = 0xf5
358 ETH_P_PPPTALK = 0x10
359 ETH_P_PPP_DISC = 0x8863
360 ETH_P_PPP_MP = 0x8
361 ETH_P_PPP_SES = 0x8864
362 ETH_P_PRP = 0x88fb
363 ETH_P_PUP = 0x200
364 ETH_P_PUPAT = 0x201
365 ETH_P_QINQ1 = 0x9100
366 ETH_P_QINQ2 = 0x9200
367 ETH_P_QINQ3 = 0x9300
368 ETH_P_RARP = 0x8035
369 ETH_P_SCA = 0x6007
370 ETH_P_SLOW = 0x8809
371 ETH_P_SNAP = 0x5
372 ETH_P_TDLS = 0x890d
373 ETH_P_TEB = 0x6558
374 ETH_P_TIPC = 0x88ca
375 ETH_P_TRAILER = 0x1c
376 ETH_P_TR_802_2 = 0x11
377 ETH_P_WAN_PPP = 0x7
378 ETH_P_WCCP = 0x883e
379 ETH_P_X25 = 0x805
380 ETH_P_XDSA = 0xf8
381 EXTA = 0xe
382 EXTB = 0xf
383 EXTPROC = 0x10000000
384 FD_CLOEXEC = 0x1
385 FD_SETSIZE = 0x400
386 FF0 = 0x0
387 FF1 = 0x4000
388 FFDLY = 0x4000
389 FLUSHO = 0x800000
390 F_DUPFD = 0x0
391 F_DUPFD_CLOEXEC = 0x406
392 F_EXLCK = 0x4
393 F_GETFD = 0x1
394 F_GETFL = 0x3
395 F_GETLEASE = 0x401
396 F_GETLK = 0x5
397 F_GETLK64 = 0xc
398 F_GETOWN = 0x9
399 F_GETOWN_EX = 0x10
400 F_GETPIPE_SZ = 0x408
401 F_GETSIG = 0xb
402 F_LOCK = 0x1
403 F_NOTIFY = 0x402
404 F_OFD_GETLK = 0x24
405 F_OFD_SETLK = 0x25
406 F_OFD_SETLKW = 0x26
407 F_OK = 0x0
408 F_RDLCK = 0x0
409 F_SETFD = 0x2
410 F_SETFL = 0x4
411 F_SETLEASE = 0x400
412 F_SETLK = 0x6
413 F_SETLK64 = 0xd
414 F_SETLKW = 0x7
415 F_SETLKW64 = 0xe
416 F_SETOWN = 0x8
417 F_SETOWN_EX = 0xf
418 F_SETPIPE_SZ = 0x407
419 F_SETSIG = 0xa
420 F_SHLCK = 0x8
421 F_TEST = 0x3
422 F_TLOCK = 0x2
423 F_ULOCK = 0x0
424 F_UNLCK = 0x2
425 F_WRLCK = 0x1
426 HUPCL = 0x4000
427 IBSHIFT = 0x10
428 ICANON = 0x100
429 ICMPV6_FILTER = 0x1
430 ICRNL = 0x100
431 IEXTEN = 0x400
432 IFA_F_DADFAILED = 0x8
433 IFA_F_DEPRECATED = 0x20
434 IFA_F_HOMEADDRESS = 0x10
435 IFA_F_MANAGETEMPADDR = 0x100
436 IFA_F_NODAD = 0x2
437 IFA_F_NOPREFIXROUTE = 0x200
438 IFA_F_OPTIMISTIC = 0x4
439 IFA_F_PERMANENT = 0x80
440 IFA_F_SECONDARY = 0x1
441 IFA_F_TEMPORARY = 0x1
442 IFA_F_TENTATIVE = 0x40
443 IFA_MAX = 0x8
444 IFF_ALLMULTI = 0x200
445 IFF_ATTACH_QUEUE = 0x200
446 IFF_AUTOMEDIA = 0x4000
447 IFF_BROADCAST = 0x2
448 IFF_DEBUG = 0x4
449 IFF_DETACH_QUEUE = 0x400
450 IFF_DORMANT = 0x20000
451 IFF_DYNAMIC = 0x8000
452 IFF_ECHO = 0x40000
453 IFF_LOOPBACK = 0x8
454 IFF_LOWER_UP = 0x10000
455 IFF_MASTER = 0x400
456 IFF_MULTICAST = 0x1000
457 IFF_MULTI_QUEUE = 0x100
458 IFF_NOARP = 0x80
459 IFF_NOFILTER = 0x1000
460 IFF_NOTRAILERS = 0x20
461 IFF_NO_PI = 0x1000
462 IFF_ONE_QUEUE = 0x2000
463 IFF_PERSIST = 0x800
464 IFF_POINTOPOINT = 0x10
465 IFF_PORTSEL = 0x2000
466 IFF_PROMISC = 0x100
467 IFF_RUNNING = 0x40
468 IFF_SLAVE = 0x800
469 IFF_TAP = 0x2
470 IFF_TUN = 0x1
471 IFF_TUN_EXCL = 0x8000
472 IFF_UP = 0x1
473 IFF_VNET_HDR = 0x4000
474 IFF_VOLATILE = 0x70c5a
475 IFNAMSIZ = 0x10
476 IGNBRK = 0x1
477 IGNCR = 0x80
478 IGNPAR = 0x4
479 IMAXBEL = 0x2000
480 INLCR = 0x40
481 INPCK = 0x10
482 IN_ACCESS = 0x1
483 IN_ALL_EVENTS = 0xfff
484 IN_ATTRIB = 0x4
485 IN_CLASSA_HOST = 0xffffff
486 IN_CLASSA_MAX = 0x80
487 IN_CLASSA_NET = 0xff000000
488 IN_CLASSA_NSHIFT = 0x18
489 IN_CLASSB_HOST = 0xffff
490 IN_CLASSB_MAX = 0x10000
491 IN_CLASSB_NET = 0xffff0000
492 IN_CLASSB_NSHIFT = 0x10
493 IN_CLASSC_HOST = 0xff
494 IN_CLASSC_NET = 0xffffff00
495 IN_CLASSC_NSHIFT = 0x8
496 IN_CLOEXEC = 0x80000
497 IN_CLOSE = 0x18
498 IN_CLOSE_NOWRITE = 0x10
499 IN_CLOSE_WRITE = 0x8
500 IN_CREATE = 0x100
501 IN_DELETE = 0x200
502 IN_DELETE_SELF = 0x400
503 IN_DONT_FOLLOW = 0x2000000
504 IN_EXCL_UNLINK = 0x4000000
505 IN_IGNORED = 0x8000
506 IN_ISDIR = 0x40000000
507 IN_LOOPBACKNET = 0x7f
508 IN_MASK_ADD = 0x20000000
509 IN_MODIFY = 0x2
510 IN_MOVE = 0xc0
511 IN_MOVED_FROM = 0x40
512 IN_MOVED_TO = 0x80
513 IN_MOVE_SELF = 0x800
514 IN_NONBLOCK = 0x800
515 IN_ONESHOT = 0x80000000
516 IN_ONLYDIR = 0x1000000
517 IN_OPEN = 0x20
518 IN_Q_OVERFLOW = 0x4000
519 IN_UNMOUNT = 0x2000
520 IPPROTO_AH = 0x33
521 IPPROTO_BEETPH = 0x5e
522 IPPROTO_COMP = 0x6c
523 IPPROTO_DCCP = 0x21
524 IPPROTO_DSTOPTS = 0x3c
525 IPPROTO_EGP = 0x8
526 IPPROTO_ENCAP = 0x62
527 IPPROTO_ESP = 0x32
528 IPPROTO_FRAGMENT = 0x2c
529 IPPROTO_GRE = 0x2f
530 IPPROTO_HOPOPTS = 0x0
531 IPPROTO_ICMP = 0x1
532 IPPROTO_ICMPV6 = 0x3a
533 IPPROTO_IDP = 0x16
534 IPPROTO_IGMP = 0x2
535 IPPROTO_IP = 0x0
536 IPPROTO_IPIP = 0x4
537 IPPROTO_IPV6 = 0x29
538 IPPROTO_MH = 0x87
539 IPPROTO_MTP = 0x5c
540 IPPROTO_NONE = 0x3b
541 IPPROTO_PIM = 0x67
542 IPPROTO_PUP = 0xc
543 IPPROTO_RAW = 0xff
544 IPPROTO_ROUTING = 0x2b
545 IPPROTO_RSVP = 0x2e
546 IPPROTO_SCTP = 0x84
547 IPPROTO_TCP = 0x6
548 IPPROTO_TP = 0x1d
549 IPPROTO_UDP = 0x11
550 IPPROTO_UDPLITE = 0x88
551 IPV6_2292DSTOPTS = 0x4
552 IPV6_2292HOPLIMIT = 0x8
553 IPV6_2292HOPOPTS = 0x3
554 IPV6_2292PKTINFO = 0x2
555 IPV6_2292PKTOPTIONS = 0x6
556 IPV6_2292RTHDR = 0x5
557 IPV6_ADDRFORM = 0x1
558 IPV6_ADD_MEMBERSHIP = 0x14
559 IPV6_AUTHHDR = 0xa
560 IPV6_CHECKSUM = 0x7
561 IPV6_DROP_MEMBERSHIP = 0x15
562 IPV6_DSTOPTS = 0x3b
563 IPV6_HOPLIMIT = 0x34
564 IPV6_HOPOPTS = 0x36
565 IPV6_IPSEC_POLICY = 0x22
566 IPV6_JOIN_ANYCAST = 0x1b
567 IPV6_JOIN_GROUP = 0x14
568 IPV6_LEAVE_ANYCAST = 0x1c
569 IPV6_LEAVE_GROUP = 0x15
570 IPV6_MTU = 0x18
571 IPV6_MTU_DISCOVER = 0x17
572 IPV6_MULTICAST_HOPS = 0x12
573 IPV6_MULTICAST_IF = 0x11
574 IPV6_MULTICAST_LOOP = 0x13
575 IPV6_NEXTHOP = 0x9
576 IPV6_PKTINFO = 0x32
577 IPV6_PMTUDISC_DO = 0x2
578 IPV6_PMTUDISC_DONT = 0x0
579 IPV6_PMTUDISC_INTERFACE = 0x4
580 IPV6_PMTUDISC_OMIT = 0x5
581 IPV6_PMTUDISC_PROBE = 0x3
582 IPV6_PMTUDISC_WANT = 0x1
583 IPV6_RECVDSTOPTS = 0x3a
584 IPV6_RECVERR = 0x19
585 IPV6_RECVHOPLIMIT = 0x33
586 IPV6_RECVHOPOPTS = 0x35
587 IPV6_RECVPKTINFO = 0x31
588 IPV6_RECVRTHDR = 0x38
589 IPV6_RECVTCLASS = 0x42
590 IPV6_ROUTER_ALERT = 0x16
591 IPV6_RTHDR = 0x39
592 IPV6_RTHDRDSTOPTS = 0x37
593 IPV6_RTHDR_LOOSE = 0x0
594 IPV6_RTHDR_STRICT = 0x1
595 IPV6_RTHDR_TYPE_0 = 0x0
596 IPV6_RXDSTOPTS = 0x3b
597 IPV6_RXHOPOPTS = 0x36
598 IPV6_TCLASS = 0x43
599 IPV6_UNICAST_HOPS = 0x10
600 IPV6_V6ONLY = 0x1a
601 IPV6_XFRM_POLICY = 0x23
602 IP_ADD_MEMBERSHIP = 0x23
603 IP_ADD_SOURCE_MEMBERSHIP = 0x27
604 IP_BLOCK_SOURCE = 0x26
605 IP_DEFAULT_MULTICAST_LOOP = 0x1
606 IP_DEFAULT_MULTICAST_TTL = 0x1
607 IP_DF = 0x4000
608 IP_DROP_MEMBERSHIP = 0x24
609 IP_DROP_SOURCE_MEMBERSHIP = 0x28
610 IP_FREEBIND = 0xf
611 IP_HDRINCL = 0x3
612 IP_IPSEC_POLICY = 0x10
613 IP_MAXPACKET = 0xffff
614 IP_MAX_MEMBERSHIPS = 0x14
615 IP_MF = 0x2000
616 IP_MINTTL = 0x15
617 IP_MSFILTER = 0x29
618 IP_MSS = 0x240
619 IP_MTU = 0xe
620 IP_MTU_DISCOVER = 0xa
621 IP_MULTICAST_ALL = 0x31
622 IP_MULTICAST_IF = 0x20
623 IP_MULTICAST_LOOP = 0x22
624 IP_MULTICAST_TTL = 0x21
625 IP_NODEFRAG = 0x16
626 IP_OFFMASK = 0x1fff
627 IP_OPTIONS = 0x4
628 IP_ORIGDSTADDR = 0x14
629 IP_PASSSEC = 0x12
630 IP_PKTINFO = 0x8
631 IP_PKTOPTIONS = 0x9
632 IP_PMTUDISC = 0xa
633 IP_PMTUDISC_DO = 0x2
634 IP_PMTUDISC_DONT = 0x0
635 IP_PMTUDISC_INTERFACE = 0x4
636 IP_PMTUDISC_OMIT = 0x5
637 IP_PMTUDISC_PROBE = 0x3
638 IP_PMTUDISC_WANT = 0x1
639 IP_RECVERR = 0xb
640 IP_RECVOPTS = 0x6
641 IP_RECVORIGDSTADDR = 0x14
642 IP_RECVRETOPTS = 0x7
643 IP_RECVTOS = 0xd
644 IP_RECVTTL = 0xc
645 IP_RETOPTS = 0x7
646 IP_RF = 0x8000
647 IP_ROUTER_ALERT = 0x5
648 IP_TOS = 0x1
649 IP_TRANSPARENT = 0x13
650 IP_TTL = 0x2
651 IP_UNBLOCK_SOURCE = 0x25
652 IP_UNICAST_IF = 0x32
653 IP_XFRM_POLICY = 0x11
654 ISIG = 0x80
655 ISTRIP = 0x20
656 IUCLC = 0x1000
657 IUTF8 = 0x4000
658 IXANY = 0x800
659 IXOFF = 0x400
660 IXON = 0x200
661 LINUX_REBOOT_CMD_CAD_OFF = 0x0
662 LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
663 LINUX_REBOOT_CMD_HALT = 0xcdef0123
664 LINUX_REBOOT_CMD_KEXEC = 0x45584543
665 LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc
666 LINUX_REBOOT_CMD_RESTART = 0x1234567
667 LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4
668 LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
669 LINUX_REBOOT_MAGIC1 = 0xfee1dead
670 LINUX_REBOOT_MAGIC2 = 0x28121969
671 LOCK_EX = 0x2
672 LOCK_NB = 0x4
673 LOCK_SH = 0x1
674 LOCK_UN = 0x8
675 MADV_DODUMP = 0x11
676 MADV_DOFORK = 0xb
677 MADV_DONTDUMP = 0x10
678 MADV_DONTFORK = 0xa
679 MADV_DONTNEED = 0x4
680 MADV_HUGEPAGE = 0xe
681 MADV_HWPOISON = 0x64
682 MADV_MERGEABLE = 0xc
683 MADV_NOHUGEPAGE = 0xf
684 MADV_NORMAL = 0x0
685 MADV_RANDOM = 0x1
686 MADV_REMOVE = 0x9
687 MADV_SEQUENTIAL = 0x2
688 MADV_UNMERGEABLE = 0xd
689 MADV_WILLNEED = 0x3
690 MAP_ANON = 0x20
691 MAP_ANONYMOUS = 0x20
692 MAP_DENYWRITE = 0x800
693 MAP_EXECUTABLE = 0x1000
694 MAP_FILE = 0x0
695 MAP_FIXED = 0x10
696 MAP_GROWSDOWN = 0x100
697 MAP_HUGETLB = 0x40000
698 MAP_HUGE_MASK = 0x3f
699 MAP_HUGE_SHIFT = 0x1a
700 MAP_LOCKED = 0x80
701 MAP_NONBLOCK = 0x10000
702 MAP_NORESERVE = 0x40
703 MAP_POPULATE = 0x8000
704 MAP_PRIVATE = 0x2
705 MAP_SHARED = 0x1
706 MAP_STACK = 0x20000
707 MAP_TYPE = 0xf
708 MCL_CURRENT = 0x2000
709 MCL_FUTURE = 0x4000
710 MNT_DETACH = 0x2
711 MNT_EXPIRE = 0x4
712 MNT_FORCE = 0x1
713 MSG_CMSG_CLOEXEC = 0x40000000
714 MSG_CONFIRM = 0x800
715 MSG_CTRUNC = 0x8
716 MSG_DONTROUTE = 0x4
717 MSG_DONTWAIT = 0x40
718 MSG_EOR = 0x80
719 MSG_ERRQUEUE = 0x2000
720 MSG_FASTOPEN = 0x20000000
721 MSG_FIN = 0x200
722 MSG_MORE = 0x8000
723 MSG_NOSIGNAL = 0x4000
724 MSG_OOB = 0x1
725 MSG_PEEK = 0x2
726 MSG_PROXY = 0x10
727 MSG_RST = 0x1000
728 MSG_SYN = 0x400
729 MSG_TRUNC = 0x20
730 MSG_TRYHARD = 0x4
731 MSG_WAITALL = 0x100
732 MSG_WAITFORONE = 0x10000
733 MS_ACTIVE = 0x40000000
734 MS_ASYNC = 0x1
735 MS_BIND = 0x1000
736 MS_DIRSYNC = 0x80
737 MS_INVALIDATE = 0x2
738 MS_I_VERSION = 0x800000
739 MS_KERNMOUNT = 0x400000
740 MS_MANDLOCK = 0x40
741 MS_MGC_MSK = 0xffff0000
742 MS_MGC_VAL = 0xc0ed0000
743 MS_MOVE = 0x2000
744 MS_NOATIME = 0x400
745 MS_NODEV = 0x4
746 MS_NODIRATIME = 0x800
747 MS_NOEXEC = 0x8
748 MS_NOSUID = 0x2
749 MS_NOUSER = -0x80000000
750 MS_POSIXACL = 0x10000
751 MS_PRIVATE = 0x40000
752 MS_RDONLY = 0x1
753 MS_REC = 0x4000
754 MS_RELATIME = 0x200000
755 MS_REMOUNT = 0x20
756 MS_RMT_MASK = 0x800051
757 MS_SHARED = 0x100000
758 MS_SILENT = 0x8000
759 MS_SLAVE = 0x80000
760 MS_STRICTATIME = 0x1000000
761 MS_SYNC = 0x4
762 MS_SYNCHRONOUS = 0x10
763 MS_UNBINDABLE = 0x20000
764 NAME_MAX = 0xff
765 NETLINK_ADD_MEMBERSHIP = 0x1
766 NETLINK_AUDIT = 0x9
767 NETLINK_BROADCAST_ERROR = 0x4
768 NETLINK_CONNECTOR = 0xb
769 NETLINK_CRYPTO = 0x15
770 NETLINK_DNRTMSG = 0xe
771 NETLINK_DROP_MEMBERSHIP = 0x2
772 NETLINK_ECRYPTFS = 0x13
773 NETLINK_FIB_LOOKUP = 0xa
774 NETLINK_FIREWALL = 0x3
775 NETLINK_GENERIC = 0x10
776 NETLINK_INET_DIAG = 0x4
777 NETLINK_IP6_FW = 0xd
778 NETLINK_ISCSI = 0x8
779 NETLINK_KOBJECT_UEVENT = 0xf
780 NETLINK_NETFILTER = 0xc
781 NETLINK_NFLOG = 0x5
782 NETLINK_NO_ENOBUFS = 0x5
783 NETLINK_PKTINFO = 0x3
784 NETLINK_RDMA = 0x14
785 NETLINK_ROUTE = 0x0
786 NETLINK_RX_RING = 0x6
787 NETLINK_SCSITRANSPORT = 0x12
788 NETLINK_SELINUX = 0x7
789 NETLINK_SOCK_DIAG = 0x4
790 NETLINK_TX_RING = 0x7
791 NETLINK_UNUSED = 0x1
792 NETLINK_USERSOCK = 0x2
793 NETLINK_XFRM = 0x6
794 NL0 = 0x0
795 NL1 = 0x100
796 NL2 = 0x200
797 NL3 = 0x300
798 NLA_ALIGNTO = 0x4
799 NLA_F_NESTED = 0x8000
800 NLA_F_NET_BYTEORDER = 0x4000
801 NLA_HDRLEN = 0x4
802 NLDLY = 0x300
803 NLMSG_ALIGNTO = 0x4
804 NLMSG_DONE = 0x3
805 NLMSG_ERROR = 0x2
806 NLMSG_HDRLEN = 0x10
807 NLMSG_MIN_TYPE = 0x10
808 NLMSG_NOOP = 0x1
809 NLMSG_OVERRUN = 0x4
810 NLM_F_ACK = 0x4
811 NLM_F_APPEND = 0x800
812 NLM_F_ATOMIC = 0x400
813 NLM_F_CREATE = 0x400
814 NLM_F_DUMP = 0x300
815 NLM_F_DUMP_INTR = 0x10
816 NLM_F_ECHO = 0x8
817 NLM_F_EXCL = 0x200
818 NLM_F_MATCH = 0x200
819 NLM_F_MULTI = 0x2
820 NLM_F_REPLACE = 0x100
821 NLM_F_REQUEST = 0x1
822 NLM_F_ROOT = 0x100
823 NOFLSH = 0x80000000
824 OCRNL = 0x8
825 OFDEL = 0x80
826 OFILL = 0x40
827 OLCUC = 0x4
828 ONLCR = 0x2
829 ONLRET = 0x20
830 ONOCR = 0x10
831 OPOST = 0x1
832 O_ACCMODE = 0x3
833 O_APPEND = 0x400
834 O_ASYNC = 0x2000
835 O_CLOEXEC = 0x80000
836 O_CREAT = 0x40
837 O_DIRECT = 0x20000
838 O_DIRECTORY = 0x4000
839 O_DSYNC = 0x1000
840 O_EXCL = 0x80
841 O_FSYNC = 0x101000
842 O_LARGEFILE = 0x0
843 O_NDELAY = 0x800
844 O_NOATIME = 0x40000
845 O_NOCTTY = 0x100
846 O_NOFOLLOW = 0x8000
847 O_NONBLOCK = 0x800
848 O_PATH = 0x200000
849 O_RDONLY = 0x0
850 O_RDWR = 0x2
851 O_RSYNC = 0x101000
852 O_SYNC = 0x101000
853 O_TMPFILE = 0x410000
854 O_TRUNC = 0x200
855 O_WRONLY = 0x1
856 PACKET_ADD_MEMBERSHIP = 0x1
857 PACKET_AUXDATA = 0x8
858 PACKET_BROADCAST = 0x1
859 PACKET_COPY_THRESH = 0x7
860 PACKET_DROP_MEMBERSHIP = 0x2
861 PACKET_FANOUT = 0x12
862 PACKET_FANOUT_CPU = 0x2
863 PACKET_FANOUT_FLAG_DEFRAG = 0x8000
864 PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
865 PACKET_FANOUT_HASH = 0x0
866 PACKET_FANOUT_LB = 0x1
867 PACKET_FANOUT_QM = 0x5
868 PACKET_FANOUT_RND = 0x4
869 PACKET_FANOUT_ROLLOVER = 0x3
870 PACKET_FASTROUTE = 0x6
871 PACKET_HDRLEN = 0xb
872 PACKET_HOST = 0x0
873 PACKET_KERNEL = 0x7
874 PACKET_LOOPBACK = 0x5
875 PACKET_LOSS = 0xe
876 PACKET_MR_ALLMULTI = 0x2
877 PACKET_MR_MULTICAST = 0x0
878 PACKET_MR_PROMISC = 0x1
879 PACKET_MR_UNICAST = 0x3
880 PACKET_MULTICAST = 0x2
881 PACKET_ORIGDEV = 0x9
882 PACKET_OTHERHOST = 0x3
883 PACKET_OUTGOING = 0x4
884 PACKET_QDISC_BYPASS = 0x14
885 PACKET_RECV_OUTPUT = 0x3
886 PACKET_RESERVE = 0xc
887 PACKET_RX_RING = 0x5
888 PACKET_STATISTICS = 0x6
889 PACKET_TIMESTAMP = 0x11
890 PACKET_TX_HAS_OFF = 0x13
891 PACKET_TX_RING = 0xd
892 PACKET_TX_TIMESTAMP = 0x10
893 PACKET_USER = 0x6
894 PACKET_VERSION = 0xa
895 PACKET_VNET_HDR = 0xf
896 PARENB = 0x1000
897 PARITY_CRC16_PR0 = 0x2
898 PARITY_CRC16_PR0_CCITT = 0x4
899 PARITY_CRC16_PR1 = 0x3
900 PARITY_CRC16_PR1_CCITT = 0x5
901 PARITY_CRC32_PR0_CCITT = 0x6
902 PARITY_CRC32_PR1_CCITT = 0x7
903 PARITY_DEFAULT = 0x0
904 PARITY_NONE = 0x1
905 PARMRK = 0x8
906 PARODD = 0x2000
907 PENDIN = 0x20000000
908 PRIO_PGRP = 0x1
909 PRIO_PROCESS = 0x0
910 PRIO_USER = 0x2
911 PROT_EXEC = 0x4
912 PROT_GROWSDOWN = 0x1000000
913 PROT_GROWSUP = 0x2000000
914 PROT_NONE = 0x0
915 PROT_READ = 0x1
916 PROT_SAO = 0x10
917 PROT_WRITE = 0x2
918 PR_CAPBSET_DROP = 0x18
919 PR_CAPBSET_READ = 0x17
920 PR_ENDIAN_BIG = 0x0
921 PR_ENDIAN_LITTLE = 0x1
922 PR_ENDIAN_PPC_LITTLE = 0x2
923 PR_FPEMU_NOPRINT = 0x1
924 PR_FPEMU_SIGFPE = 0x2
925 PR_FP_EXC_ASYNC = 0x2
926 PR_FP_EXC_DISABLED = 0x0
927 PR_FP_EXC_DIV = 0x10000
928 PR_FP_EXC_INV = 0x100000
929 PR_FP_EXC_NONRECOV = 0x1
930 PR_FP_EXC_OVF = 0x20000
931 PR_FP_EXC_PRECISE = 0x3
932 PR_FP_EXC_RES = 0x80000
933 PR_FP_EXC_SW_ENABLE = 0x80
934 PR_FP_EXC_UND = 0x40000
935 PR_GET_CHILD_SUBREAPER = 0x25
936 PR_GET_DUMPABLE = 0x3
937 PR_GET_ENDIAN = 0x13
938 PR_GET_FPEMU = 0x9
939 PR_GET_FPEXC = 0xb
940 PR_GET_KEEPCAPS = 0x7
941 PR_GET_NAME = 0x10
942 PR_GET_NO_NEW_PRIVS = 0x27
943 PR_GET_PDEATHSIG = 0x2
944 PR_GET_SECCOMP = 0x15
945 PR_GET_SECUREBITS = 0x1b
946 PR_GET_THP_DISABLE = 0x2a
947 PR_GET_TID_ADDRESS = 0x28
948 PR_GET_TIMERSLACK = 0x1e
949 PR_GET_TIMING = 0xd
950 PR_GET_TSC = 0x19
951 PR_GET_UNALIGN = 0x5
952 PR_MCE_KILL = 0x21
953 PR_MCE_KILL_CLEAR = 0x0
954 PR_MCE_KILL_DEFAULT = 0x2
955 PR_MCE_KILL_EARLY = 0x1
956 PR_MCE_KILL_GET = 0x22
957 PR_MCE_KILL_LATE = 0x0
958 PR_MCE_KILL_SET = 0x1
959 PR_SET_CHILD_SUBREAPER = 0x24
960 PR_SET_DUMPABLE = 0x4
961 PR_SET_ENDIAN = 0x14
962 PR_SET_FPEMU = 0xa
963 PR_SET_FPEXC = 0xc
964 PR_SET_KEEPCAPS = 0x8
965 PR_SET_MM = 0x23
966 PR_SET_MM_ARG_END = 0x9
967 PR_SET_MM_ARG_START = 0x8
968 PR_SET_MM_AUXV = 0xc
969 PR_SET_MM_BRK = 0x7
970 PR_SET_MM_END_CODE = 0x2
971 PR_SET_MM_END_DATA = 0x4
972 PR_SET_MM_ENV_END = 0xb
973 PR_SET_MM_ENV_START = 0xa
974 PR_SET_MM_EXE_FILE = 0xd
975 PR_SET_MM_MAP = 0xe
976 PR_SET_MM_MAP_SIZE = 0xf
977 PR_SET_MM_START_BRK = 0x6
978 PR_SET_MM_START_CODE = 0x1
979 PR_SET_MM_START_DATA = 0x3
980 PR_SET_MM_START_STACK = 0x5
981 PR_SET_NAME = 0xf
982 PR_SET_NO_NEW_PRIVS = 0x26
983 PR_SET_PDEATHSIG = 0x1
984 PR_SET_PTRACER = 0x59616d61
985 PR_SET_PTRACER_ANY = -0x1
986 PR_SET_SECCOMP = 0x16
987 PR_SET_SECUREBITS = 0x1c
988 PR_SET_THP_DISABLE = 0x29
989 PR_SET_TIMERSLACK = 0x1d
990 PR_SET_TIMING = 0xe
991 PR_SET_TSC = 0x1a
992 PR_SET_UNALIGN = 0x6
993 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
994 PR_TASK_PERF_EVENTS_ENABLE = 0x20
995 PR_TIMING_STATISTICAL = 0x0
996 PR_TIMING_TIMESTAMP = 0x1
997 PR_TSC_ENABLE = 0x1
998 PR_TSC_SIGSEGV = 0x2
999 PR_UNALIGN_NOPRINT = 0x1
1000 PR_UNALIGN_SIGBUS = 0x2
1001 PTRACE_ATTACH = 0x10
1002 PTRACE_CONT = 0x7
1003 PTRACE_DETACH = 0x11
1004 PTRACE_EVENT_CLONE = 0x3
1005 PTRACE_EVENT_EXEC = 0x4
1006 PTRACE_EVENT_EXIT = 0x6
1007 PTRACE_EVENT_FORK = 0x1
1008 PTRACE_EVENT_SECCOMP = 0x7
1009 PTRACE_EVENT_STOP = 0x80
1010 PTRACE_EVENT_VFORK = 0x2
1011 PTRACE_EVENT_VFORK_DONE = 0x5
1012 PTRACE_GETEVENTMSG = 0x4201
1013 PTRACE_GETEVRREGS = 0x14
1014 PTRACE_GETFPREGS = 0xe
1015 PTRACE_GETREGS = 0xc
1016 PTRACE_GETREGS64 = 0x16
1017 PTRACE_GETREGSET = 0x4204
1018 PTRACE_GETSIGINFO = 0x4202
1019 PTRACE_GETSIGMASK = 0x420a
1020 PTRACE_GETVRREGS = 0x12
1021 PTRACE_GETVSRREGS = 0x1b
1022 PTRACE_GET_DEBUGREG = 0x19
1023 PTRACE_INTERRUPT = 0x4207
1024 PTRACE_KILL = 0x8
1025 PTRACE_LISTEN = 0x4208
1026 PTRACE_O_EXITKILL = 0x100000
1027 PTRACE_O_MASK = 0x1000ff
1028 PTRACE_O_TRACECLONE = 0x8
1029 PTRACE_O_TRACEEXEC = 0x10
1030 PTRACE_O_TRACEEXIT = 0x40
1031 PTRACE_O_TRACEFORK = 0x2
1032 PTRACE_O_TRACESECCOMP = 0x80
1033 PTRACE_O_TRACESYSGOOD = 0x1
1034 PTRACE_O_TRACEVFORK = 0x4
1035 PTRACE_O_TRACEVFORKDONE = 0x20
1036 PTRACE_PEEKDATA = 0x2
1037 PTRACE_PEEKSIGINFO = 0x4209
1038 PTRACE_PEEKSIGINFO_SHARED = 0x1
1039 PTRACE_PEEKTEXT = 0x1
1040 PTRACE_PEEKUSR = 0x3
1041 PTRACE_POKEDATA = 0x5
1042 PTRACE_POKETEXT = 0x4
1043 PTRACE_POKEUSR = 0x6
1044 PTRACE_SEIZE = 0x4206
1045 PTRACE_SETEVRREGS = 0x15
1046 PTRACE_SETFPREGS = 0xf
1047 PTRACE_SETOPTIONS = 0x4200
1048 PTRACE_SETREGS = 0xd
1049 PTRACE_SETREGS64 = 0x17
1050 PTRACE_SETREGSET = 0x4205
1051 PTRACE_SETSIGINFO = 0x4203
1052 PTRACE_SETSIGMASK = 0x420b
1053 PTRACE_SETVRREGS = 0x13
1054 PTRACE_SETVSRREGS = 0x1c
1055 PTRACE_SET_DEBUGREG = 0x1a
1056 PTRACE_SINGLEBLOCK = 0x100
1057 PTRACE_SINGLESTEP = 0x9
1058 PTRACE_SYSCALL = 0x18
1059 PTRACE_TRACEME = 0x0
1060 PT_CCR = 0x26
1061 PT_CTR = 0x23
1062 PT_DAR = 0x29
1063 PT_DSCR = 0x2c
1064 PT_DSISR = 0x2a
1065 PT_FPR0 = 0x30
1066 PT_FPSCR = 0x50
1067 PT_LNK = 0x24
1068 PT_MSR = 0x21
1069 PT_NIP = 0x20
1070 PT_ORIG_R3 = 0x22
1071 PT_R0 = 0x0
1072 PT_R1 = 0x1
1073 PT_R10 = 0xa
1074 PT_R11 = 0xb
1075 PT_R12 = 0xc
1076 PT_R13 = 0xd
1077 PT_R14 = 0xe
1078 PT_R15 = 0xf
1079 PT_R16 = 0x10
1080 PT_R17 = 0x11
1081 PT_R18 = 0x12
1082 PT_R19 = 0x13
1083 PT_R2 = 0x2
1084 PT_R20 = 0x14
1085 PT_R21 = 0x15
1086 PT_R22 = 0x16
1087 PT_R23 = 0x17
1088 PT_R24 = 0x18
1089 PT_R25 = 0x19
1090 PT_R26 = 0x1a
1091 PT_R27 = 0x1b
1092 PT_R28 = 0x1c
1093 PT_R29 = 0x1d
1094 PT_R3 = 0x3
1095 PT_R30 = 0x1e
1096 PT_R31 = 0x1f
1097 PT_R4 = 0x4
1098 PT_R5 = 0x5
1099 PT_R6 = 0x6
1100 PT_R7 = 0x7
1101 PT_R8 = 0x8
1102 PT_R9 = 0x9
1103 PT_REGS_COUNT = 0x2c
1104 PT_RESULT = 0x2b
1105 PT_SOFTE = 0x27
1106 PT_TRAP = 0x28
1107 PT_VR0 = 0x52
1108 PT_VRSAVE = 0x94
1109 PT_VSCR = 0x93
1110 PT_VSR0 = 0x96
1111 PT_VSR31 = 0xd4
1112 PT_XER = 0x25
1113 RLIMIT_AS = 0x9
1114 RLIMIT_CORE = 0x4
1115 RLIMIT_CPU = 0x0
1116 RLIMIT_DATA = 0x2
1117 RLIMIT_FSIZE = 0x1
1118 RLIMIT_NOFILE = 0x7
1119 RLIMIT_STACK = 0x3
1120 RLIM_INFINITY = -0x1
1121 RTAX_ADVMSS = 0x8
1122 RTAX_CWND = 0x7
1123 RTAX_FEATURES = 0xc
1124 RTAX_FEATURE_ALLFRAG = 0x8
1125 RTAX_FEATURE_ECN = 0x1
1126 RTAX_FEATURE_SACK = 0x2
1127 RTAX_FEATURE_TIMESTAMP = 0x4
1128 RTAX_HOPLIMIT = 0xa
1129 RTAX_INITCWND = 0xb
1130 RTAX_INITRWND = 0xe
1131 RTAX_LOCK = 0x1
1132 RTAX_MAX = 0xf
1133 RTAX_MTU = 0x2
1134 RTAX_QUICKACK = 0xf
1135 RTAX_REORDERING = 0x9
1136 RTAX_RTO_MIN = 0xd
1137 RTAX_RTT = 0x4
1138 RTAX_RTTVAR = 0x5
1139 RTAX_SSTHRESH = 0x6
1140 RTAX_UNSPEC = 0x0
1141 RTAX_WINDOW = 0x3
1142 RTA_ALIGNTO = 0x4
1143 RTA_MAX = 0x11
1144 RTCF_DIRECTSRC = 0x4000000
1145 RTCF_DOREDIRECT = 0x1000000
1146 RTCF_LOG = 0x2000000
1147 RTCF_MASQ = 0x400000
1148 RTCF_NAT = 0x800000
1149 RTCF_VALVE = 0x200000
1150 RTF_ADDRCLASSMASK = 0xf8000000
1151 RTF_ADDRCONF = 0x40000
1152 RTF_ALLONLINK = 0x20000
1153 RTF_BROADCAST = 0x10000000
1154 RTF_CACHE = 0x1000000
1155 RTF_DEFAULT = 0x10000
1156 RTF_DYNAMIC = 0x10
1157 RTF_FLOW = 0x2000000
1158 RTF_GATEWAY = 0x2
1159 RTF_HOST = 0x4
1160 RTF_INTERFACE = 0x40000000
1161 RTF_IRTT = 0x100
1162 RTF_LINKRT = 0x100000
1163 RTF_LOCAL = 0x80000000
1164 RTF_MODIFIED = 0x20
1165 RTF_MSS = 0x40
1166 RTF_MTU = 0x40
1167 RTF_MULTICAST = 0x20000000
1168 RTF_NAT = 0x8000000
1169 RTF_NOFORWARD = 0x1000
1170 RTF_NONEXTHOP = 0x200000
1171 RTF_NOPMTUDISC = 0x4000
1172 RTF_POLICY = 0x4000000
1173 RTF_REINSTATE = 0x8
1174 RTF_REJECT = 0x200
1175 RTF_STATIC = 0x400
1176 RTF_THROW = 0x2000
1177 RTF_UP = 0x1
1178 RTF_WINDOW = 0x80
1179 RTF_XRESOLVE = 0x800
1180 RTM_BASE = 0x10
1181 RTM_DELACTION = 0x31
1182 RTM_DELADDR = 0x15
1183 RTM_DELADDRLABEL = 0x49
1184 RTM_DELLINK = 0x11
1185 RTM_DELMDB = 0x55
1186 RTM_DELNEIGH = 0x1d
1187 RTM_DELQDISC = 0x25
1188 RTM_DELROUTE = 0x19
1189 RTM_DELRULE = 0x21
1190 RTM_DELTCLASS = 0x29
1191 RTM_DELTFILTER = 0x2d
1192 RTM_F_CLONED = 0x200
1193 RTM_F_EQUALIZE = 0x400
1194 RTM_F_NOTIFY = 0x100
1195 RTM_F_PREFIX = 0x800
1196 RTM_GETACTION = 0x32
1197 RTM_GETADDR = 0x16
1198 RTM_GETADDRLABEL = 0x4a
1199 RTM_GETANYCAST = 0x3e
1200 RTM_GETDCB = 0x4e
1201 RTM_GETLINK = 0x12
1202 RTM_GETMDB = 0x56
1203 RTM_GETMULTICAST = 0x3a
1204 RTM_GETNEIGH = 0x1e
1205 RTM_GETNEIGHTBL = 0x42
1206 RTM_GETNETCONF = 0x52
1207 RTM_GETQDISC = 0x26
1208 RTM_GETROUTE = 0x1a
1209 RTM_GETRULE = 0x22
1210 RTM_GETTCLASS = 0x2a
1211 RTM_GETTFILTER = 0x2e
1212 RTM_MAX = 0x57
1213 RTM_NEWACTION = 0x30
1214 RTM_NEWADDR = 0x14
1215 RTM_NEWADDRLABEL = 0x48
1216 RTM_NEWLINK = 0x10
1217 RTM_NEWMDB = 0x54
1218 RTM_NEWNDUSEROPT = 0x44
1219 RTM_NEWNEIGH = 0x1c
1220 RTM_NEWNEIGHTBL = 0x40
1221 RTM_NEWNETCONF = 0x50
1222 RTM_NEWPREFIX = 0x34
1223 RTM_NEWQDISC = 0x24
1224 RTM_NEWROUTE = 0x18
1225 RTM_NEWRULE = 0x20
1226 RTM_NEWTCLASS = 0x28
1227 RTM_NEWTFILTER = 0x2c
1228 RTM_NR_FAMILIES = 0x12
1229 RTM_NR_MSGTYPES = 0x48
1230 RTM_SETDCB = 0x4f
1231 RTM_SETLINK = 0x13
1232 RTM_SETNEIGHTBL = 0x43
1233 RTNH_ALIGNTO = 0x4
1234 RTNH_F_DEAD = 0x1
1235 RTNH_F_ONLINK = 0x4
1236 RTNH_F_PERVASIVE = 0x2
1237 RTN_MAX = 0xb
1238 RTPROT_BIRD = 0xc
1239 RTPROT_BOOT = 0x3
1240 RTPROT_DHCP = 0x10
1241 RTPROT_DNROUTED = 0xd
1242 RTPROT_GATED = 0x8
1243 RTPROT_KERNEL = 0x2
1244 RTPROT_MROUTED = 0x11
1245 RTPROT_MRT = 0xa
1246 RTPROT_NTK = 0xf
1247 RTPROT_RA = 0x9
1248 RTPROT_REDIRECT = 0x1
1249 RTPROT_STATIC = 0x4
1250 RTPROT_UNSPEC = 0x0
1251 RTPROT_XORP = 0xe
1252 RTPROT_ZEBRA = 0xb
1253 RT_CLASS_DEFAULT = 0xfd
1254 RT_CLASS_LOCAL = 0xff
1255 RT_CLASS_MAIN = 0xfe
1256 RT_CLASS_MAX = 0xff
1257 RT_CLASS_UNSPEC = 0x0
1258 RUSAGE_CHILDREN = -0x1
1259 RUSAGE_SELF = 0x0
1260 RUSAGE_THREAD = 0x1
1261 SCM_CREDENTIALS = 0x2
1262 SCM_RIGHTS = 0x1
1263 SCM_TIMESTAMP = 0x1d
1264 SCM_TIMESTAMPING = 0x25
1265 SCM_TIMESTAMPNS = 0x23
1266 SCM_WIFI_STATUS = 0x29
1267 SHUT_RD = 0x0
1268 SHUT_RDWR = 0x2
1269 SHUT_WR = 0x1
1270 SIOCADDDLCI = 0x8980
1271 SIOCADDMULTI = 0x8931
1272 SIOCADDRT = 0x890b
1273 SIOCATMARK = 0x8905
1274 SIOCDARP = 0x8953
1275 SIOCDELDLCI = 0x8981
1276 SIOCDELMULTI = 0x8932
1277 SIOCDELRT = 0x890c
1278 SIOCDEVPRIVATE = 0x89f0
1279 SIOCDIFADDR = 0x8936
1280 SIOCDRARP = 0x8960
1281 SIOCGARP = 0x8954
1282 SIOCGIFADDR = 0x8915
1283 SIOCGIFBR = 0x8940
1284 SIOCGIFBRDADDR = 0x8919
1285 SIOCGIFCONF = 0x8912
1286 SIOCGIFCOUNT = 0x8938
1287 SIOCGIFDSTADDR = 0x8917
1288 SIOCGIFENCAP = 0x8925
1289 SIOCGIFFLAGS = 0x8913
1290 SIOCGIFHWADDR = 0x8927
1291 SIOCGIFINDEX = 0x8933
1292 SIOCGIFMAP = 0x8970
1293 SIOCGIFMEM = 0x891f
1294 SIOCGIFMETRIC = 0x891d
1295 SIOCGIFMTU = 0x8921
1296 SIOCGIFNAME = 0x8910
1297 SIOCGIFNETMASK = 0x891b
1298 SIOCGIFPFLAGS = 0x8935
1299 SIOCGIFSLAVE = 0x8929
1300 SIOCGIFTXQLEN = 0x8942
1301 SIOCGPGRP = 0x8904
1302 SIOCGRARP = 0x8961
1303 SIOCGSTAMP = 0x8906
1304 SIOCGSTAMPNS = 0x8907
1305 SIOCPROTOPRIVATE = 0x89e0
1306 SIOCRTMSG = 0x890d
1307 SIOCSARP = 0x8955
1308 SIOCSIFADDR = 0x8916
1309 SIOCSIFBR = 0x8941
1310 SIOCSIFBRDADDR = 0x891a
1311 SIOCSIFDSTADDR = 0x8918
1312 SIOCSIFENCAP = 0x8926
1313 SIOCSIFFLAGS = 0x8914
1314 SIOCSIFHWADDR = 0x8924
1315 SIOCSIFHWBROADCAST = 0x8937
1316 SIOCSIFLINK = 0x8911
1317 SIOCSIFMAP = 0x8971
1318 SIOCSIFMEM = 0x8920
1319 SIOCSIFMETRIC = 0x891e
1320 SIOCSIFMTU = 0x8922
1321 SIOCSIFNAME = 0x8923
1322 SIOCSIFNETMASK = 0x891c
1323 SIOCSIFPFLAGS = 0x8934
1324 SIOCSIFSLAVE = 0x8930
1325 SIOCSIFTXQLEN = 0x8943
1326 SIOCSPGRP = 0x8902
1327 SIOCSRARP = 0x8962
1328 SOCK_CLOEXEC = 0x80000
1329 SOCK_DCCP = 0x6
1330 SOCK_DGRAM = 0x2
1331 SOCK_NONBLOCK = 0x800
1332 SOCK_PACKET = 0xa
1333 SOCK_RAW = 0x3
1334 SOCK_RDM = 0x4
1335 SOCK_SEQPACKET = 0x5
1336 SOCK_STREAM = 0x1
1337 SOL_AAL = 0x109
1338 SOL_ATM = 0x108
1339 SOL_DECNET = 0x105
1340 SOL_ICMPV6 = 0x3a
1341 SOL_IP = 0x0
1342 SOL_IPV6 = 0x29
1343 SOL_IRDA = 0x10a
1344 SOL_PACKET = 0x107
1345 SOL_RAW = 0xff
1346 SOL_SOCKET = 0x1
1347 SOL_TCP = 0x6
1348 SOL_X25 = 0x106
1349 SOMAXCONN = 0x80
1350 SO_ACCEPTCONN = 0x1e
1351 SO_ATTACH_FILTER = 0x1a
1352 SO_BINDTODEVICE = 0x19
1353 SO_BPF_EXTENSIONS = 0x30
1354 SO_BROADCAST = 0x6
1355 SO_BSDCOMPAT = 0xe
1356 SO_BUSY_POLL = 0x2e
1357 SO_DEBUG = 0x1
1358 SO_DETACH_FILTER = 0x1b
1359 SO_DOMAIN = 0x27
1360 SO_DONTROUTE = 0x5
1361 SO_ERROR = 0x4
1362 SO_GET_FILTER = 0x1a
1363 SO_KEEPALIVE = 0x9
1364 SO_LINGER = 0xd
1365 SO_LOCK_FILTER = 0x2c
1366 SO_MARK = 0x24
1367 SO_MAX_PACING_RATE = 0x2f
1368 SO_NOFCS = 0x2b
1369 SO_NO_CHECK = 0xb
1370 SO_OOBINLINE = 0xa
1371 SO_PASSCRED = 0x14
1372 SO_PASSSEC = 0x22
1373 SO_PEEK_OFF = 0x2a
1374 SO_PEERCRED = 0x15
1375 SO_PEERNAME = 0x1c
1376 SO_PEERSEC = 0x1f
1377 SO_PRIORITY = 0xc
1378 SO_PROTOCOL = 0x26
1379 SO_RCVBUF = 0x8
1380 SO_RCVBUFFORCE = 0x21
1381 SO_RCVLOWAT = 0x10
1382 SO_RCVTIMEO = 0x12
1383 SO_REUSEADDR = 0x2
1384 SO_REUSEPORT = 0xf
1385 SO_RXQ_OVFL = 0x28
1386 SO_SECURITY_AUTHENTICATION = 0x16
1387 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
1388 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
1389 SO_SELECT_ERR_QUEUE = 0x2d
1390 SO_SNDBUF = 0x7
1391 SO_SNDBUFFORCE = 0x20
1392 SO_SNDLOWAT = 0x11
1393 SO_SNDTIMEO = 0x13
1394 SO_TIMESTAMP = 0x1d
1395 SO_TIMESTAMPING = 0x25
1396 SO_TIMESTAMPNS = 0x23
1397 SO_TYPE = 0x3
1398 SO_WIFI_STATUS = 0x29
1399 S_BLKSIZE = 0x200
1400 S_IEXEC = 0x40
1401 S_IFBLK = 0x6000
1402 S_IFCHR = 0x2000
1403 S_IFDIR = 0x4000
1404 S_IFIFO = 0x1000
1405 S_IFLNK = 0xa000
1406 S_IFMT = 0xf000
1407 S_IFREG = 0x8000
1408 S_IFSOCK = 0xc000
1409 S_IREAD = 0x100
1410 S_IRGRP = 0x20
1411 S_IROTH = 0x4
1412 S_IRUSR = 0x100
1413 S_IRWXG = 0x38
1414 S_IRWXO = 0x7
1415 S_IRWXU = 0x1c0
1416 S_ISGID = 0x400
1417 S_ISUID = 0x800
1418 S_ISVTX = 0x200
1419 S_IWGRP = 0x10
1420 S_IWOTH = 0x2
1421 S_IWRITE = 0x80
1422 S_IWUSR = 0x80
1423 S_IXGRP = 0x8
1424 S_IXOTH = 0x1
1425 S_IXUSR = 0x40
1426 TAB0 = 0x0
1427 TAB1 = 0x400
1428 TAB2 = 0x800
1429 TAB3 = 0xc00
1430 TABDLY = 0xc00
1431 TCFLSH = 0x2000741f
1432 TCGETA = 0x40147417
1433 TCGETS = 0x402c7413
1434 TCIFLUSH = 0x0
1435 TCIOFF = 0x2
1436 TCIOFLUSH = 0x2
1437 TCION = 0x3
1438 TCOFLUSH = 0x1
1439 TCOOFF = 0x0
1440 TCOON = 0x1
1441 TCP_CONGESTION = 0xd
1442 TCP_COOKIE_IN_ALWAYS = 0x1
1443 TCP_COOKIE_MAX = 0x10
1444 TCP_COOKIE_MIN = 0x8
1445 TCP_COOKIE_OUT_NEVER = 0x2
1446 TCP_COOKIE_PAIR_SIZE = 0x20
1447 TCP_COOKIE_TRANSACTIONS = 0xf
1448 TCP_CORK = 0x3
1449 TCP_DEFER_ACCEPT = 0x9
1450 TCP_FASTOPEN = 0x17
1451 TCP_INFO = 0xb
1452 TCP_KEEPCNT = 0x6
1453 TCP_KEEPIDLE = 0x4
1454 TCP_KEEPINTVL = 0x5
1455 TCP_LINGER2 = 0x8
1456 TCP_MAXSEG = 0x2
1457 TCP_MAXWIN = 0xffff
1458 TCP_MAX_WINSHIFT = 0xe
1459 TCP_MD5SIG = 0xe
1460 TCP_MD5SIG_MAXKEYLEN = 0x50
1461 TCP_MSS = 0x200
1462 TCP_MSS_DEFAULT = 0x218
1463 TCP_MSS_DESIRED = 0x4c4
1464 TCP_NODELAY = 0x1
1465 TCP_QUEUE_SEQ = 0x15
1466 TCP_QUICKACK = 0xc
1467 TCP_REPAIR = 0x13
1468 TCP_REPAIR_OPTIONS = 0x16
1469 TCP_REPAIR_QUEUE = 0x14
1470 TCP_SYNCNT = 0x7
1471 TCP_S_DATA_IN = 0x4
1472 TCP_S_DATA_OUT = 0x8
1473 TCP_THIN_DUPACK = 0x11
1474 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1475 TCP_TIMESTAMP = 0x18
1476 TCP_USER_TIMEOUT = 0x12
1477 TCP_WINDOW_CLAMP = 0xa
1478 TCSAFLUSH = 0x2
1479 TCSBRK = 0x2000741d
1480 TCSBRKP = 0x5425
1481 TCSETA = 0x80147418
1482 TCSETAF = 0x8014741c
1483 TCSETAW = 0x80147419
1484 TCSETS = 0x802c7414
1485 TCSETSF = 0x802c7416
1486 TCSETSW = 0x802c7415
1487 TCXONC = 0x2000741e
1488 TIOCCBRK = 0x5428
1489 TIOCCONS = 0x541d
1490 TIOCEXCL = 0x540c
1491 TIOCGDEV = 0x40045432
1492 TIOCGETC = 0x40067412
1493 TIOCGETD = 0x5424
1494 TIOCGETP = 0x40067408
1495 TIOCGEXCL = 0x40045440
1496 TIOCGICOUNT = 0x545d
1497 TIOCGLCKTRMIOS = 0x5456
1498 TIOCGLTC = 0x40067474
1499 TIOCGPGRP = 0x40047477
1500 TIOCGPKT = 0x40045438
1501 TIOCGPTLCK = 0x40045439
1502 TIOCGPTN = 0x40045430
1503 TIOCGRS485 = 0x542e
1504 TIOCGSERIAL = 0x541e
1505 TIOCGSID = 0x5429
1506 TIOCGSOFTCAR = 0x5419
1507 TIOCGWINSZ = 0x40087468
1508 TIOCINQ = 0x4004667f
1509 TIOCLINUX = 0x541c
1510 TIOCMBIC = 0x5417
1511 TIOCMBIS = 0x5416
1512 TIOCMGET = 0x5415
1513 TIOCMIWAIT = 0x545c
1514 TIOCMSET = 0x5418
1515 TIOCM_CAR = 0x40
1516 TIOCM_CD = 0x40
1517 TIOCM_CTS = 0x20
1518 TIOCM_DSR = 0x100
1519 TIOCM_DTR = 0x2
1520 TIOCM_LE = 0x1
1521 TIOCM_LOOP = 0x8000
1522 TIOCM_OUT1 = 0x2000
1523 TIOCM_OUT2 = 0x4000
1524 TIOCM_RI = 0x80
1525 TIOCM_RNG = 0x80
1526 TIOCM_RTS = 0x4
1527 TIOCM_SR = 0x10
1528 TIOCM_ST = 0x8
1529 TIOCNOTTY = 0x5422
1530 TIOCNXCL = 0x540d
1531 TIOCOUTQ = 0x40047473
1532 TIOCPKT = 0x5420
1533 TIOCPKT_DATA = 0x0
1534 TIOCPKT_DOSTOP = 0x20
1535 TIOCPKT_FLUSHREAD = 0x1
1536 TIOCPKT_FLUSHWRITE = 0x2
1537 TIOCPKT_IOCTL = 0x40
1538 TIOCPKT_NOSTOP = 0x10
1539 TIOCPKT_START = 0x8
1540 TIOCPKT_STOP = 0x4
1541 TIOCSBRK = 0x5427
1542 TIOCSCTTY = 0x540e
1543 TIOCSERCONFIG = 0x5453
1544 TIOCSERGETLSR = 0x5459
1545 TIOCSERGETMULTI = 0x545a
1546 TIOCSERGSTRUCT = 0x5458
1547 TIOCSERGWILD = 0x5454
1548 TIOCSERSETMULTI = 0x545b
1549 TIOCSERSWILD = 0x5455
1550 TIOCSER_TEMT = 0x1
1551 TIOCSETC = 0x80067411
1552 TIOCSETD = 0x5423
1553 TIOCSETN = 0x8006740a
1554 TIOCSETP = 0x80067409
1555 TIOCSIG = 0x80045436
1556 TIOCSLCKTRMIOS = 0x5457
1557 TIOCSLTC = 0x80067475
1558 TIOCSPGRP = 0x80047476
1559 TIOCSPTLCK = 0x80045431
1560 TIOCSRS485 = 0x542f
1561 TIOCSSERIAL = 0x541f
1562 TIOCSSOFTCAR = 0x541a
1563 TIOCSTART = 0x2000746e
1564 TIOCSTI = 0x5412
1565 TIOCSTOP = 0x2000746f
1566 TIOCSWINSZ = 0x80087467
1567 TIOCVHANGUP = 0x5437
1568 TOSTOP = 0x400000
1569 TUNATTACHFILTER = 0x801054d5
1570 TUNDETACHFILTER = 0x801054d6
1571 TUNGETFEATURES = 0x400454cf
1572 TUNGETFILTER = 0x401054db
1573 TUNGETIFF = 0x400454d2
1574 TUNGETSNDBUF = 0x400454d3
1575 TUNGETVNETHDRSZ = 0x400454d7
1576 TUNSETDEBUG = 0x800454c9
1577 TUNSETGROUP = 0x800454ce
1578 TUNSETIFF = 0x800454ca
1579 TUNSETIFINDEX = 0x800454da
1580 TUNSETLINK = 0x800454cd
1581 TUNSETNOCSUM = 0x800454c8
1582 TUNSETOFFLOAD = 0x800454d0
1583 TUNSETOWNER = 0x800454cc
1584 TUNSETPERSIST = 0x800454cb
1585 TUNSETQUEUE = 0x800454d9
1586 TUNSETSNDBUF = 0x800454d4
1587 TUNSETTXFILTER = 0x800454d1
1588 TUNSETVNETHDRSZ = 0x800454d8
1589 VDISCARD = 0x10
1590 VEOF = 0x4
1591 VEOL = 0x6
1592 VEOL2 = 0x8
1593 VERASE = 0x2
1594 VINTR = 0x0
1595 VKILL = 0x3
1596 VLNEXT = 0xf
1597 VMIN = 0x5
1598 VQUIT = 0x1
1599 VREPRINT = 0xb
1600 VSTART = 0xd
1601 VSTOP = 0xe
1602 VSUSP = 0xc
1603 VSWTC = 0x9
1604 VT0 = 0x0
1605 VT1 = 0x10000
1606 VTDLY = 0x10000
1607 VTIME = 0x7
1608 VWERASE = 0xa
1609 WALL = 0x40000000
1610 WCLONE = 0x80000000
1611 WCONTINUED = 0x8
1612 WEXITED = 0x4
1613 WNOHANG = 0x1
1614 WNOTHREAD = 0x20000000
1615 WNOWAIT = 0x1000000
1616 WORDSIZE = 0x40
1617 WSTOPPED = 0x2
1618 WUNTRACED = 0x2
1619 XCASE = 0x4000
1620 XTABS = 0xc00
1621)
1622
1623// Errors
1624const (
1625 E2BIG = syscall.Errno(0x7)
1626 EACCES = syscall.Errno(0xd)
1627 EADDRINUSE = syscall.Errno(0x62)
1628 EADDRNOTAVAIL = syscall.Errno(0x63)
1629 EADV = syscall.Errno(0x44)
1630 EAFNOSUPPORT = syscall.Errno(0x61)
1631 EAGAIN = syscall.Errno(0xb)
1632 EALREADY = syscall.Errno(0x72)
1633 EBADE = syscall.Errno(0x34)
1634 EBADF = syscall.Errno(0x9)
1635 EBADFD = syscall.Errno(0x4d)
1636 EBADMSG = syscall.Errno(0x4a)
1637 EBADR = syscall.Errno(0x35)
1638 EBADRQC = syscall.Errno(0x38)
1639 EBADSLT = syscall.Errno(0x39)
1640 EBFONT = syscall.Errno(0x3b)
1641 EBUSY = syscall.Errno(0x10)
1642 ECANCELED = syscall.Errno(0x7d)
1643 ECHILD = syscall.Errno(0xa)
1644 ECHRNG = syscall.Errno(0x2c)
1645 ECOMM = syscall.Errno(0x46)
1646 ECONNABORTED = syscall.Errno(0x67)
1647 ECONNREFUSED = syscall.Errno(0x6f)
1648 ECONNRESET = syscall.Errno(0x68)
1649 EDEADLK = syscall.Errno(0x23)
1650 EDEADLOCK = syscall.Errno(0x3a)
1651 EDESTADDRREQ = syscall.Errno(0x59)
1652 EDOM = syscall.Errno(0x21)
1653 EDOTDOT = syscall.Errno(0x49)
1654 EDQUOT = syscall.Errno(0x7a)
1655 EEXIST = syscall.Errno(0x11)
1656 EFAULT = syscall.Errno(0xe)
1657 EFBIG = syscall.Errno(0x1b)
1658 EHOSTDOWN = syscall.Errno(0x70)
1659 EHOSTUNREACH = syscall.Errno(0x71)
1660 EHWPOISON = syscall.Errno(0x85)
1661 EIDRM = syscall.Errno(0x2b)
1662 EILSEQ = syscall.Errno(0x54)
1663 EINPROGRESS = syscall.Errno(0x73)
1664 EINTR = syscall.Errno(0x4)
1665 EINVAL = syscall.Errno(0x16)
1666 EIO = syscall.Errno(0x5)
1667 EISCONN = syscall.Errno(0x6a)
1668 EISDIR = syscall.Errno(0x15)
1669 EISNAM = syscall.Errno(0x78)
1670 EKEYEXPIRED = syscall.Errno(0x7f)
1671 EKEYREJECTED = syscall.Errno(0x81)
1672 EKEYREVOKED = syscall.Errno(0x80)
1673 EL2HLT = syscall.Errno(0x33)
1674 EL2NSYNC = syscall.Errno(0x2d)
1675 EL3HLT = syscall.Errno(0x2e)
1676 EL3RST = syscall.Errno(0x2f)
1677 ELIBACC = syscall.Errno(0x4f)
1678 ELIBBAD = syscall.Errno(0x50)
1679 ELIBEXEC = syscall.Errno(0x53)
1680 ELIBMAX = syscall.Errno(0x52)
1681 ELIBSCN = syscall.Errno(0x51)
1682 ELNRNG = syscall.Errno(0x30)
1683 ELOOP = syscall.Errno(0x28)
1684 EMEDIUMTYPE = syscall.Errno(0x7c)
1685 EMFILE = syscall.Errno(0x18)
1686 EMLINK = syscall.Errno(0x1f)
1687 EMSGSIZE = syscall.Errno(0x5a)
1688 EMULTIHOP = syscall.Errno(0x48)
1689 ENAMETOOLONG = syscall.Errno(0x24)
1690 ENAVAIL = syscall.Errno(0x77)
1691 ENETDOWN = syscall.Errno(0x64)
1692 ENETRESET = syscall.Errno(0x66)
1693 ENETUNREACH = syscall.Errno(0x65)
1694 ENFILE = syscall.Errno(0x17)
1695 ENOANO = syscall.Errno(0x37)
1696 ENOBUFS = syscall.Errno(0x69)
1697 ENOCSI = syscall.Errno(0x32)
1698 ENODATA = syscall.Errno(0x3d)
1699 ENODEV = syscall.Errno(0x13)
1700 ENOENT = syscall.Errno(0x2)
1701 ENOEXEC = syscall.Errno(0x8)
1702 ENOKEY = syscall.Errno(0x7e)
1703 ENOLCK = syscall.Errno(0x25)
1704 ENOLINK = syscall.Errno(0x43)
1705 ENOMEDIUM = syscall.Errno(0x7b)
1706 ENOMEM = syscall.Errno(0xc)
1707 ENOMSG = syscall.Errno(0x2a)
1708 ENONET = syscall.Errno(0x40)
1709 ENOPKG = syscall.Errno(0x41)
1710 ENOPROTOOPT = syscall.Errno(0x5c)
1711 ENOSPC = syscall.Errno(0x1c)
1712 ENOSR = syscall.Errno(0x3f)
1713 ENOSTR = syscall.Errno(0x3c)
1714 ENOSYS = syscall.Errno(0x26)
1715 ENOTBLK = syscall.Errno(0xf)
1716 ENOTCONN = syscall.Errno(0x6b)
1717 ENOTDIR = syscall.Errno(0x14)
1718 ENOTEMPTY = syscall.Errno(0x27)
1719 ENOTNAM = syscall.Errno(0x76)
1720 ENOTRECOVERABLE = syscall.Errno(0x83)
1721 ENOTSOCK = syscall.Errno(0x58)
1722 ENOTSUP = syscall.Errno(0x5f)
1723 ENOTTY = syscall.Errno(0x19)
1724 ENOTUNIQ = syscall.Errno(0x4c)
1725 ENXIO = syscall.Errno(0x6)
1726 EOPNOTSUPP = syscall.Errno(0x5f)
1727 EOVERFLOW = syscall.Errno(0x4b)
1728 EOWNERDEAD = syscall.Errno(0x82)
1729 EPERM = syscall.Errno(0x1)
1730 EPFNOSUPPORT = syscall.Errno(0x60)
1731 EPIPE = syscall.Errno(0x20)
1732 EPROTO = syscall.Errno(0x47)
1733 EPROTONOSUPPORT = syscall.Errno(0x5d)
1734 EPROTOTYPE = syscall.Errno(0x5b)
1735 ERANGE = syscall.Errno(0x22)
1736 EREMCHG = syscall.Errno(0x4e)
1737 EREMOTE = syscall.Errno(0x42)
1738 EREMOTEIO = syscall.Errno(0x79)
1739 ERESTART = syscall.Errno(0x55)
1740 ERFKILL = syscall.Errno(0x84)
1741 EROFS = syscall.Errno(0x1e)
1742 ESHUTDOWN = syscall.Errno(0x6c)
1743 ESOCKTNOSUPPORT = syscall.Errno(0x5e)
1744 ESPIPE = syscall.Errno(0x1d)
1745 ESRCH = syscall.Errno(0x3)
1746 ESRMNT = syscall.Errno(0x45)
1747 ESTALE = syscall.Errno(0x74)
1748 ESTRPIPE = syscall.Errno(0x56)
1749 ETIME = syscall.Errno(0x3e)
1750 ETIMEDOUT = syscall.Errno(0x6e)
1751 ETOOMANYREFS = syscall.Errno(0x6d)
1752 ETXTBSY = syscall.Errno(0x1a)
1753 EUCLEAN = syscall.Errno(0x75)
1754 EUNATCH = syscall.Errno(0x31)
1755 EUSERS = syscall.Errno(0x57)
1756 EWOULDBLOCK = syscall.Errno(0xb)
1757 EXDEV = syscall.Errno(0x12)
1758 EXFULL = syscall.Errno(0x36)
1759)
1760
1761// Signals
1762const (
1763 SIGABRT = syscall.Signal(0x6)
1764 SIGALRM = syscall.Signal(0xe)
1765 SIGBUS = syscall.Signal(0x7)
1766 SIGCHLD = syscall.Signal(0x11)
1767 SIGCLD = syscall.Signal(0x11)
1768 SIGCONT = syscall.Signal(0x12)
1769 SIGFPE = syscall.Signal(0x8)
1770 SIGHUP = syscall.Signal(0x1)
1771 SIGILL = syscall.Signal(0x4)
1772 SIGINT = syscall.Signal(0x2)
1773 SIGIO = syscall.Signal(0x1d)
1774 SIGIOT = syscall.Signal(0x6)
1775 SIGKILL = syscall.Signal(0x9)
1776 SIGPIPE = syscall.Signal(0xd)
1777 SIGPOLL = syscall.Signal(0x1d)
1778 SIGPROF = syscall.Signal(0x1b)
1779 SIGPWR = syscall.Signal(0x1e)
1780 SIGQUIT = syscall.Signal(0x3)
1781 SIGSEGV = syscall.Signal(0xb)
1782 SIGSTKFLT = syscall.Signal(0x10)
1783 SIGSTOP = syscall.Signal(0x13)
1784 SIGSYS = syscall.Signal(0x1f)
1785 SIGTERM = syscall.Signal(0xf)
1786 SIGTRAP = syscall.Signal(0x5)
1787 SIGTSTP = syscall.Signal(0x14)
1788 SIGTTIN = syscall.Signal(0x15)
1789 SIGTTOU = syscall.Signal(0x16)
1790 SIGUNUSED = syscall.Signal(0x1f)
1791 SIGURG = syscall.Signal(0x17)
1792 SIGUSR1 = syscall.Signal(0xa)
1793 SIGUSR2 = syscall.Signal(0xc)
1794 SIGVTALRM = syscall.Signal(0x1a)
1795 SIGWINCH = syscall.Signal(0x1c)
1796 SIGXCPU = syscall.Signal(0x18)
1797 SIGXFSZ = syscall.Signal(0x19)
1798)
1799
1800// Error table
1801var errors = [...]string{
1802 1: "operation not permitted",
1803 2: "no such file or directory",
1804 3: "no such process",
1805 4: "interrupted system call",
1806 5: "input/output error",
1807 6: "no such device or address",
1808 7: "argument list too long",
1809 8: "exec format error",
1810 9: "bad file descriptor",
1811 10: "no child processes",
1812 11: "resource temporarily unavailable",
1813 12: "cannot allocate memory",
1814 13: "permission denied",
1815 14: "bad address",
1816 15: "block device required",
1817 16: "device or resource busy",
1818 17: "file exists",
1819 18: "invalid cross-device link",
1820 19: "no such device",
1821 20: "not a directory",
1822 21: "is a directory",
1823 22: "invalid argument",
1824 23: "too many open files in system",
1825 24: "too many open files",
1826 25: "inappropriate ioctl for device",
1827 26: "text file busy",
1828 27: "file too large",
1829 28: "no space left on device",
1830 29: "illegal seek",
1831 30: "read-only file system",
1832 31: "too many links",
1833 32: "broken pipe",
1834 33: "numerical argument out of domain",
1835 34: "numerical result out of range",
1836 35: "resource deadlock avoided",
1837 36: "file name too long",
1838 37: "no locks available",
1839 38: "function not implemented",
1840 39: "directory not empty",
1841 40: "too many levels of symbolic links",
1842 42: "no message of desired type",
1843 43: "identifier removed",
1844 44: "channel number out of range",
1845 45: "level 2 not synchronized",
1846 46: "level 3 halted",
1847 47: "level 3 reset",
1848 48: "link number out of range",
1849 49: "protocol driver not attached",
1850 50: "no CSI structure available",
1851 51: "level 2 halted",
1852 52: "invalid exchange",
1853 53: "invalid request descriptor",
1854 54: "exchange full",
1855 55: "no anode",
1856 56: "invalid request code",
1857 57: "invalid slot",
1858 58: "file locking deadlock error",
1859 59: "bad font file format",
1860 60: "device not a stream",
1861 61: "no data available",
1862 62: "timer expired",
1863 63: "out of streams resources",
1864 64: "machine is not on the network",
1865 65: "package not installed",
1866 66: "object is remote",
1867 67: "link has been severed",
1868 68: "advertise error",
1869 69: "srmount error",
1870 70: "communication error on send",
1871 71: "protocol error",
1872 72: "multihop attempted",
1873 73: "RFS specific error",
1874 74: "bad message",
1875 75: "value too large for defined data type",
1876 76: "name not unique on network",
1877 77: "file descriptor in bad state",
1878 78: "remote address changed",
1879 79: "can not access a needed shared library",
1880 80: "accessing a corrupted shared library",
1881 81: ".lib section in a.out corrupted",
1882 82: "attempting to link in too many shared libraries",
1883 83: "cannot exec a shared library directly",
1884 84: "invalid or incomplete multibyte or wide character",
1885 85: "interrupted system call should be restarted",
1886 86: "streams pipe error",
1887 87: "too many users",
1888 88: "socket operation on non-socket",
1889 89: "destination address required",
1890 90: "message too long",
1891 91: "protocol wrong type for socket",
1892 92: "protocol not available",
1893 93: "protocol not supported",
1894 94: "socket type not supported",
1895 95: "operation not supported",
1896 96: "protocol family not supported",
1897 97: "address family not supported by protocol",
1898 98: "address already in use",
1899 99: "cannot assign requested address",
1900 100: "network is down",
1901 101: "network is unreachable",
1902 102: "network dropped connection on reset",
1903 103: "software caused connection abort",
1904 104: "connection reset by peer",
1905 105: "no buffer space available",
1906 106: "transport endpoint is already connected",
1907 107: "transport endpoint is not connected",
1908 108: "cannot send after transport endpoint shutdown",
1909 109: "too many references: cannot splice",
1910 110: "connection timed out",
1911 111: "connection refused",
1912 112: "host is down",
1913 113: "no route to host",
1914 114: "operation already in progress",
1915 115: "operation now in progress",
1916 116: "stale file handle",
1917 117: "structure needs cleaning",
1918 118: "not a XENIX named type file",
1919 119: "no XENIX semaphores available",
1920 120: "is a named type file",
1921 121: "remote I/O error",
1922 122: "disk quota exceeded",
1923 123: "no medium found",
1924 124: "wrong medium type",
1925 125: "operation canceled",
1926 126: "required key not available",
1927 127: "key has expired",
1928 128: "key has been revoked",
1929 129: "key was rejected by service",
1930 130: "owner died",
1931 131: "state not recoverable",
1932 132: "operation not possible due to RF-kill",
1933 133: "memory page has hardware error",
1934}
1935
1936// Signal table
1937var signals = [...]string{
1938 1: "hangup",
1939 2: "interrupt",
1940 3: "quit",
1941 4: "illegal instruction",
1942 5: "trace/breakpoint trap",
1943 6: "aborted",
1944 7: "bus error",
1945 8: "floating point exception",
1946 9: "killed",
1947 10: "user defined signal 1",
1948 11: "segmentation fault",
1949 12: "user defined signal 2",
1950 13: "broken pipe",
1951 14: "alarm clock",
1952 15: "terminated",
1953 16: "stack fault",
1954 17: "child exited",
1955 18: "continued",
1956 19: "stopped (signal)",
1957 20: "stopped",
1958 21: "stopped (tty input)",
1959 22: "stopped (tty output)",
1960 23: "urgent I/O condition",
1961 24: "CPU time limit exceeded",
1962 25: "file size limit exceeded",
1963 26: "virtual timer expired",
1964 27: "profiling timer expired",
1965 28: "window changed",
1966 29: "I/O possible",
1967 30: "power failure",
1968 31: "bad system call",
1969}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
deleted file mode 100644
index 0861bd5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
+++ /dev/null
@@ -1,1968 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build ppc64le,linux
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_ALG = 0x26
15 AF_APPLETALK = 0x5
16 AF_ASH = 0x12
17 AF_ATMPVC = 0x8
18 AF_ATMSVC = 0x14
19 AF_AX25 = 0x3
20 AF_BLUETOOTH = 0x1f
21 AF_BRIDGE = 0x7
22 AF_CAIF = 0x25
23 AF_CAN = 0x1d
24 AF_DECnet = 0xc
25 AF_ECONET = 0x13
26 AF_FILE = 0x1
27 AF_IEEE802154 = 0x24
28 AF_INET = 0x2
29 AF_INET6 = 0xa
30 AF_IPX = 0x4
31 AF_IRDA = 0x17
32 AF_ISDN = 0x22
33 AF_IUCV = 0x20
34 AF_KEY = 0xf
35 AF_LLC = 0x1a
36 AF_LOCAL = 0x1
37 AF_MAX = 0x29
38 AF_NETBEUI = 0xd
39 AF_NETLINK = 0x10
40 AF_NETROM = 0x6
41 AF_NFC = 0x27
42 AF_PACKET = 0x11
43 AF_PHONET = 0x23
44 AF_PPPOX = 0x18
45 AF_RDS = 0x15
46 AF_ROSE = 0xb
47 AF_ROUTE = 0x10
48 AF_RXRPC = 0x21
49 AF_SECURITY = 0xe
50 AF_SNA = 0x16
51 AF_TIPC = 0x1e
52 AF_UNIX = 0x1
53 AF_UNSPEC = 0x0
54 AF_VSOCK = 0x28
55 AF_WANPIPE = 0x19
56 AF_X25 = 0x9
57 ARPHRD_ADAPT = 0x108
58 ARPHRD_APPLETLK = 0x8
59 ARPHRD_ARCNET = 0x7
60 ARPHRD_ASH = 0x30d
61 ARPHRD_ATM = 0x13
62 ARPHRD_AX25 = 0x3
63 ARPHRD_BIF = 0x307
64 ARPHRD_CAIF = 0x336
65 ARPHRD_CAN = 0x118
66 ARPHRD_CHAOS = 0x5
67 ARPHRD_CISCO = 0x201
68 ARPHRD_CSLIP = 0x101
69 ARPHRD_CSLIP6 = 0x103
70 ARPHRD_DDCMP = 0x205
71 ARPHRD_DLCI = 0xf
72 ARPHRD_ECONET = 0x30e
73 ARPHRD_EETHER = 0x2
74 ARPHRD_ETHER = 0x1
75 ARPHRD_EUI64 = 0x1b
76 ARPHRD_FCAL = 0x311
77 ARPHRD_FCFABRIC = 0x313
78 ARPHRD_FCPL = 0x312
79 ARPHRD_FCPP = 0x310
80 ARPHRD_FDDI = 0x306
81 ARPHRD_FRAD = 0x302
82 ARPHRD_HDLC = 0x201
83 ARPHRD_HIPPI = 0x30c
84 ARPHRD_HWX25 = 0x110
85 ARPHRD_IEEE1394 = 0x18
86 ARPHRD_IEEE802 = 0x6
87 ARPHRD_IEEE80211 = 0x321
88 ARPHRD_IEEE80211_PRISM = 0x322
89 ARPHRD_IEEE80211_RADIOTAP = 0x323
90 ARPHRD_IEEE802154 = 0x324
91 ARPHRD_IEEE802154_MONITOR = 0x325
92 ARPHRD_IEEE802_TR = 0x320
93 ARPHRD_INFINIBAND = 0x20
94 ARPHRD_IP6GRE = 0x337
95 ARPHRD_IPDDP = 0x309
96 ARPHRD_IPGRE = 0x30a
97 ARPHRD_IRDA = 0x30f
98 ARPHRD_LAPB = 0x204
99 ARPHRD_LOCALTLK = 0x305
100 ARPHRD_LOOPBACK = 0x304
101 ARPHRD_METRICOM = 0x17
102 ARPHRD_NETLINK = 0x338
103 ARPHRD_NETROM = 0x0
104 ARPHRD_NONE = 0xfffe
105 ARPHRD_PHONET = 0x334
106 ARPHRD_PHONET_PIPE = 0x335
107 ARPHRD_PIMREG = 0x30b
108 ARPHRD_PPP = 0x200
109 ARPHRD_PRONET = 0x4
110 ARPHRD_RAWHDLC = 0x206
111 ARPHRD_ROSE = 0x10e
112 ARPHRD_RSRVD = 0x104
113 ARPHRD_SIT = 0x308
114 ARPHRD_SKIP = 0x303
115 ARPHRD_SLIP = 0x100
116 ARPHRD_SLIP6 = 0x102
117 ARPHRD_TUNNEL = 0x300
118 ARPHRD_TUNNEL6 = 0x301
119 ARPHRD_VOID = 0xffff
120 ARPHRD_X25 = 0x10f
121 B0 = 0x0
122 B1000000 = 0x17
123 B110 = 0x3
124 B115200 = 0x11
125 B1152000 = 0x18
126 B1200 = 0x9
127 B134 = 0x4
128 B150 = 0x5
129 B1500000 = 0x19
130 B1800 = 0xa
131 B19200 = 0xe
132 B200 = 0x6
133 B2000000 = 0x1a
134 B230400 = 0x12
135 B2400 = 0xb
136 B2500000 = 0x1b
137 B300 = 0x7
138 B3000000 = 0x1c
139 B3500000 = 0x1d
140 B38400 = 0xf
141 B4000000 = 0x1e
142 B460800 = 0x13
143 B4800 = 0xc
144 B50 = 0x1
145 B500000 = 0x14
146 B57600 = 0x10
147 B576000 = 0x15
148 B600 = 0x8
149 B75 = 0x2
150 B921600 = 0x16
151 B9600 = 0xd
152 BOTHER = 0x1f
153 BPF_A = 0x10
154 BPF_ABS = 0x20
155 BPF_ADD = 0x0
156 BPF_ALU = 0x4
157 BPF_AND = 0x50
158 BPF_B = 0x10
159 BPF_DIV = 0x30
160 BPF_H = 0x8
161 BPF_IMM = 0x0
162 BPF_IND = 0x40
163 BPF_JA = 0x0
164 BPF_JEQ = 0x10
165 BPF_JGE = 0x30
166 BPF_JGT = 0x20
167 BPF_JMP = 0x5
168 BPF_JSET = 0x40
169 BPF_K = 0x0
170 BPF_LD = 0x0
171 BPF_LDX = 0x1
172 BPF_LEN = 0x80
173 BPF_LSH = 0x60
174 BPF_MAJOR_VERSION = 0x1
175 BPF_MAXINSNS = 0x1000
176 BPF_MEM = 0x60
177 BPF_MEMWORDS = 0x10
178 BPF_MINOR_VERSION = 0x1
179 BPF_MISC = 0x7
180 BPF_MOD = 0x90
181 BPF_MSH = 0xa0
182 BPF_MUL = 0x20
183 BPF_NEG = 0x80
184 BPF_OR = 0x40
185 BPF_RET = 0x6
186 BPF_RSH = 0x70
187 BPF_ST = 0x2
188 BPF_STX = 0x3
189 BPF_SUB = 0x10
190 BPF_TAX = 0x0
191 BPF_TXA = 0x80
192 BPF_W = 0x0
193 BPF_X = 0x8
194 BPF_XOR = 0xa0
195 BRKINT = 0x2
196 BS0 = 0x0
197 BS1 = 0x8000
198 BSDLY = 0x8000
199 CBAUD = 0xff
200 CBAUDEX = 0x0
201 CFLUSH = 0xf
202 CIBAUD = 0xff0000
203 CLOCAL = 0x8000
204 CLOCK_BOOTTIME = 0x7
205 CLOCK_BOOTTIME_ALARM = 0x9
206 CLOCK_DEFAULT = 0x0
207 CLOCK_EXT = 0x1
208 CLOCK_INT = 0x2
209 CLOCK_MONOTONIC = 0x1
210 CLOCK_MONOTONIC_COARSE = 0x6
211 CLOCK_MONOTONIC_RAW = 0x4
212 CLOCK_PROCESS_CPUTIME_ID = 0x2
213 CLOCK_REALTIME = 0x0
214 CLOCK_REALTIME_ALARM = 0x8
215 CLOCK_REALTIME_COARSE = 0x5
216 CLOCK_THREAD_CPUTIME_ID = 0x3
217 CLOCK_TXFROMRX = 0x4
218 CLOCK_TXINT = 0x3
219 CLONE_CHILD_CLEARTID = 0x200000
220 CLONE_CHILD_SETTID = 0x1000000
221 CLONE_DETACHED = 0x400000
222 CLONE_FILES = 0x400
223 CLONE_FS = 0x200
224 CLONE_IO = 0x80000000
225 CLONE_NEWIPC = 0x8000000
226 CLONE_NEWNET = 0x40000000
227 CLONE_NEWNS = 0x20000
228 CLONE_NEWPID = 0x20000000
229 CLONE_NEWUSER = 0x10000000
230 CLONE_NEWUTS = 0x4000000
231 CLONE_PARENT = 0x8000
232 CLONE_PARENT_SETTID = 0x100000
233 CLONE_PTRACE = 0x2000
234 CLONE_SETTLS = 0x80000
235 CLONE_SIGHAND = 0x800
236 CLONE_SYSVSEM = 0x40000
237 CLONE_THREAD = 0x10000
238 CLONE_UNTRACED = 0x800000
239 CLONE_VFORK = 0x4000
240 CLONE_VM = 0x100
241 CMSPAR = 0x40000000
242 CR0 = 0x0
243 CR1 = 0x1000
244 CR2 = 0x2000
245 CR3 = 0x3000
246 CRDLY = 0x3000
247 CREAD = 0x800
248 CRTSCTS = 0x80000000
249 CS5 = 0x0
250 CS6 = 0x100
251 CS7 = 0x200
252 CS8 = 0x300
253 CSIGNAL = 0xff
254 CSIZE = 0x300
255 CSTART = 0x11
256 CSTATUS = 0x0
257 CSTOP = 0x13
258 CSTOPB = 0x400
259 CSUSP = 0x1a
260 DT_BLK = 0x6
261 DT_CHR = 0x2
262 DT_DIR = 0x4
263 DT_FIFO = 0x1
264 DT_LNK = 0xa
265 DT_REG = 0x8
266 DT_SOCK = 0xc
267 DT_UNKNOWN = 0x0
268 DT_WHT = 0xe
269 ECHO = 0x8
270 ECHOCTL = 0x40
271 ECHOE = 0x2
272 ECHOK = 0x4
273 ECHOKE = 0x1
274 ECHONL = 0x10
275 ECHOPRT = 0x20
276 ENCODING_DEFAULT = 0x0
277 ENCODING_FM_MARK = 0x3
278 ENCODING_FM_SPACE = 0x4
279 ENCODING_MANCHESTER = 0x5
280 ENCODING_NRZ = 0x1
281 ENCODING_NRZI = 0x2
282 EPOLLERR = 0x8
283 EPOLLET = 0x80000000
284 EPOLLHUP = 0x10
285 EPOLLIN = 0x1
286 EPOLLMSG = 0x400
287 EPOLLONESHOT = 0x40000000
288 EPOLLOUT = 0x4
289 EPOLLPRI = 0x2
290 EPOLLRDBAND = 0x80
291 EPOLLRDHUP = 0x2000
292 EPOLLRDNORM = 0x40
293 EPOLLWAKEUP = 0x20000000
294 EPOLLWRBAND = 0x200
295 EPOLLWRNORM = 0x100
296 EPOLL_CLOEXEC = 0x80000
297 EPOLL_CTL_ADD = 0x1
298 EPOLL_CTL_DEL = 0x2
299 EPOLL_CTL_MOD = 0x3
300 ETH_P_1588 = 0x88f7
301 ETH_P_8021AD = 0x88a8
302 ETH_P_8021AH = 0x88e7
303 ETH_P_8021Q = 0x8100
304 ETH_P_802_2 = 0x4
305 ETH_P_802_3 = 0x1
306 ETH_P_802_3_MIN = 0x600
307 ETH_P_802_EX1 = 0x88b5
308 ETH_P_AARP = 0x80f3
309 ETH_P_AF_IUCV = 0xfbfb
310 ETH_P_ALL = 0x3
311 ETH_P_AOE = 0x88a2
312 ETH_P_ARCNET = 0x1a
313 ETH_P_ARP = 0x806
314 ETH_P_ATALK = 0x809b
315 ETH_P_ATMFATE = 0x8884
316 ETH_P_ATMMPOA = 0x884c
317 ETH_P_AX25 = 0x2
318 ETH_P_BATMAN = 0x4305
319 ETH_P_BPQ = 0x8ff
320 ETH_P_CAIF = 0xf7
321 ETH_P_CAN = 0xc
322 ETH_P_CANFD = 0xd
323 ETH_P_CONTROL = 0x16
324 ETH_P_CUST = 0x6006
325 ETH_P_DDCMP = 0x6
326 ETH_P_DEC = 0x6000
327 ETH_P_DIAG = 0x6005
328 ETH_P_DNA_DL = 0x6001
329 ETH_P_DNA_RC = 0x6002
330 ETH_P_DNA_RT = 0x6003
331 ETH_P_DSA = 0x1b
332 ETH_P_ECONET = 0x18
333 ETH_P_EDSA = 0xdada
334 ETH_P_FCOE = 0x8906
335 ETH_P_FIP = 0x8914
336 ETH_P_HDLC = 0x19
337 ETH_P_IEEE802154 = 0xf6
338 ETH_P_IEEEPUP = 0xa00
339 ETH_P_IEEEPUPAT = 0xa01
340 ETH_P_IP = 0x800
341 ETH_P_IPV6 = 0x86dd
342 ETH_P_IPX = 0x8137
343 ETH_P_IRDA = 0x17
344 ETH_P_LAT = 0x6004
345 ETH_P_LINK_CTL = 0x886c
346 ETH_P_LOCALTALK = 0x9
347 ETH_P_LOOP = 0x60
348 ETH_P_MOBITEX = 0x15
349 ETH_P_MPLS_MC = 0x8848
350 ETH_P_MPLS_UC = 0x8847
351 ETH_P_MVRP = 0x88f5
352 ETH_P_PAE = 0x888e
353 ETH_P_PAUSE = 0x8808
354 ETH_P_PHONET = 0xf5
355 ETH_P_PPPTALK = 0x10
356 ETH_P_PPP_DISC = 0x8863
357 ETH_P_PPP_MP = 0x8
358 ETH_P_PPP_SES = 0x8864
359 ETH_P_PRP = 0x88fb
360 ETH_P_PUP = 0x200
361 ETH_P_PUPAT = 0x201
362 ETH_P_QINQ1 = 0x9100
363 ETH_P_QINQ2 = 0x9200
364 ETH_P_QINQ3 = 0x9300
365 ETH_P_RARP = 0x8035
366 ETH_P_SCA = 0x6007
367 ETH_P_SLOW = 0x8809
368 ETH_P_SNAP = 0x5
369 ETH_P_TDLS = 0x890d
370 ETH_P_TEB = 0x6558
371 ETH_P_TIPC = 0x88ca
372 ETH_P_TRAILER = 0x1c
373 ETH_P_TR_802_2 = 0x11
374 ETH_P_WAN_PPP = 0x7
375 ETH_P_WCCP = 0x883e
376 ETH_P_X25 = 0x805
377 EXTA = 0xe
378 EXTB = 0xf
379 EXTPROC = 0x10000000
380 FD_CLOEXEC = 0x1
381 FD_SETSIZE = 0x400
382 FF0 = 0x0
383 FF1 = 0x4000
384 FFDLY = 0x4000
385 FLUSHO = 0x800000
386 F_DUPFD = 0x0
387 F_DUPFD_CLOEXEC = 0x406
388 F_EXLCK = 0x4
389 F_GETFD = 0x1
390 F_GETFL = 0x3
391 F_GETLEASE = 0x401
392 F_GETLK = 0x5
393 F_GETLK64 = 0xc
394 F_GETOWN = 0x9
395 F_GETOWN_EX = 0x10
396 F_GETPIPE_SZ = 0x408
397 F_GETSIG = 0xb
398 F_LOCK = 0x1
399 F_NOTIFY = 0x402
400 F_OK = 0x0
401 F_RDLCK = 0x0
402 F_SETFD = 0x2
403 F_SETFL = 0x4
404 F_SETLEASE = 0x400
405 F_SETLK = 0x6
406 F_SETLK64 = 0xd
407 F_SETLKW = 0x7
408 F_SETLKW64 = 0xe
409 F_SETOWN = 0x8
410 F_SETOWN_EX = 0xf
411 F_SETPIPE_SZ = 0x407
412 F_SETSIG = 0xa
413 F_SHLCK = 0x8
414 F_TEST = 0x3
415 F_TLOCK = 0x2
416 F_ULOCK = 0x0
417 F_UNLCK = 0x2
418 F_WRLCK = 0x1
419 HUPCL = 0x4000
420 IBSHIFT = 0x10
421 ICANON = 0x100
422 ICMPV6_FILTER = 0x1
423 ICRNL = 0x100
424 IEXTEN = 0x400
425 IFA_F_DADFAILED = 0x8
426 IFA_F_DEPRECATED = 0x20
427 IFA_F_HOMEADDRESS = 0x10
428 IFA_F_NODAD = 0x2
429 IFA_F_OPTIMISTIC = 0x4
430 IFA_F_PERMANENT = 0x80
431 IFA_F_SECONDARY = 0x1
432 IFA_F_TEMPORARY = 0x1
433 IFA_F_TENTATIVE = 0x40
434 IFA_MAX = 0x7
435 IFF_802_1Q_VLAN = 0x1
436 IFF_ALLMULTI = 0x200
437 IFF_ATTACH_QUEUE = 0x200
438 IFF_AUTOMEDIA = 0x4000
439 IFF_BONDING = 0x20
440 IFF_BRIDGE_PORT = 0x4000
441 IFF_BROADCAST = 0x2
442 IFF_DEBUG = 0x4
443 IFF_DETACH_QUEUE = 0x400
444 IFF_DISABLE_NETPOLL = 0x1000
445 IFF_DONT_BRIDGE = 0x800
446 IFF_DORMANT = 0x20000
447 IFF_DYNAMIC = 0x8000
448 IFF_EBRIDGE = 0x2
449 IFF_ECHO = 0x40000
450 IFF_ISATAP = 0x80
451 IFF_LIVE_ADDR_CHANGE = 0x100000
452 IFF_LOOPBACK = 0x8
453 IFF_LOWER_UP = 0x10000
454 IFF_MACVLAN = 0x200000
455 IFF_MACVLAN_PORT = 0x2000
456 IFF_MASTER = 0x400
457 IFF_MASTER_8023AD = 0x8
458 IFF_MASTER_ALB = 0x10
459 IFF_MASTER_ARPMON = 0x100
460 IFF_MULTICAST = 0x1000
461 IFF_MULTI_QUEUE = 0x100
462 IFF_NOARP = 0x80
463 IFF_NOFILTER = 0x1000
464 IFF_NOTRAILERS = 0x20
465 IFF_NO_PI = 0x1000
466 IFF_ONE_QUEUE = 0x2000
467 IFF_OVS_DATAPATH = 0x8000
468 IFF_PERSIST = 0x800
469 IFF_POINTOPOINT = 0x10
470 IFF_PORTSEL = 0x2000
471 IFF_PROMISC = 0x100
472 IFF_RUNNING = 0x40
473 IFF_SLAVE = 0x800
474 IFF_SLAVE_INACTIVE = 0x4
475 IFF_SLAVE_NEEDARP = 0x40
476 IFF_SUPP_NOFCS = 0x80000
477 IFF_TAP = 0x2
478 IFF_TEAM_PORT = 0x40000
479 IFF_TUN = 0x1
480 IFF_TUN_EXCL = 0x8000
481 IFF_TX_SKB_SHARING = 0x10000
482 IFF_UNICAST_FLT = 0x20000
483 IFF_UP = 0x1
484 IFF_VNET_HDR = 0x4000
485 IFF_VOLATILE = 0x70c5a
486 IFF_WAN_HDLC = 0x200
487 IFF_XMIT_DST_RELEASE = 0x400
488 IFNAMSIZ = 0x10
489 IGNBRK = 0x1
490 IGNCR = 0x80
491 IGNPAR = 0x4
492 IMAXBEL = 0x2000
493 INLCR = 0x40
494 INPCK = 0x10
495 IN_ACCESS = 0x1
496 IN_ALL_EVENTS = 0xfff
497 IN_ATTRIB = 0x4
498 IN_CLASSA_HOST = 0xffffff
499 IN_CLASSA_MAX = 0x80
500 IN_CLASSA_NET = 0xff000000
501 IN_CLASSA_NSHIFT = 0x18
502 IN_CLASSB_HOST = 0xffff
503 IN_CLASSB_MAX = 0x10000
504 IN_CLASSB_NET = 0xffff0000
505 IN_CLASSB_NSHIFT = 0x10
506 IN_CLASSC_HOST = 0xff
507 IN_CLASSC_NET = 0xffffff00
508 IN_CLASSC_NSHIFT = 0x8
509 IN_CLOEXEC = 0x80000
510 IN_CLOSE = 0x18
511 IN_CLOSE_NOWRITE = 0x10
512 IN_CLOSE_WRITE = 0x8
513 IN_CREATE = 0x100
514 IN_DELETE = 0x200
515 IN_DELETE_SELF = 0x400
516 IN_DONT_FOLLOW = 0x2000000
517 IN_EXCL_UNLINK = 0x4000000
518 IN_IGNORED = 0x8000
519 IN_ISDIR = 0x40000000
520 IN_LOOPBACKNET = 0x7f
521 IN_MASK_ADD = 0x20000000
522 IN_MODIFY = 0x2
523 IN_MOVE = 0xc0
524 IN_MOVED_FROM = 0x40
525 IN_MOVED_TO = 0x80
526 IN_MOVE_SELF = 0x800
527 IN_NONBLOCK = 0x800
528 IN_ONESHOT = 0x80000000
529 IN_ONLYDIR = 0x1000000
530 IN_OPEN = 0x20
531 IN_Q_OVERFLOW = 0x4000
532 IN_UNMOUNT = 0x2000
533 IPPROTO_AH = 0x33
534 IPPROTO_BEETPH = 0x5e
535 IPPROTO_COMP = 0x6c
536 IPPROTO_DCCP = 0x21
537 IPPROTO_DSTOPTS = 0x3c
538 IPPROTO_EGP = 0x8
539 IPPROTO_ENCAP = 0x62
540 IPPROTO_ESP = 0x32
541 IPPROTO_FRAGMENT = 0x2c
542 IPPROTO_GRE = 0x2f
543 IPPROTO_HOPOPTS = 0x0
544 IPPROTO_ICMP = 0x1
545 IPPROTO_ICMPV6 = 0x3a
546 IPPROTO_IDP = 0x16
547 IPPROTO_IGMP = 0x2
548 IPPROTO_IP = 0x0
549 IPPROTO_IPIP = 0x4
550 IPPROTO_IPV6 = 0x29
551 IPPROTO_MH = 0x87
552 IPPROTO_MTP = 0x5c
553 IPPROTO_NONE = 0x3b
554 IPPROTO_PIM = 0x67
555 IPPROTO_PUP = 0xc
556 IPPROTO_RAW = 0xff
557 IPPROTO_ROUTING = 0x2b
558 IPPROTO_RSVP = 0x2e
559 IPPROTO_SCTP = 0x84
560 IPPROTO_TCP = 0x6
561 IPPROTO_TP = 0x1d
562 IPPROTO_UDP = 0x11
563 IPPROTO_UDPLITE = 0x88
564 IPV6_2292DSTOPTS = 0x4
565 IPV6_2292HOPLIMIT = 0x8
566 IPV6_2292HOPOPTS = 0x3
567 IPV6_2292PKTINFO = 0x2
568 IPV6_2292PKTOPTIONS = 0x6
569 IPV6_2292RTHDR = 0x5
570 IPV6_ADDRFORM = 0x1
571 IPV6_ADD_MEMBERSHIP = 0x14
572 IPV6_AUTHHDR = 0xa
573 IPV6_CHECKSUM = 0x7
574 IPV6_DROP_MEMBERSHIP = 0x15
575 IPV6_DSTOPTS = 0x3b
576 IPV6_HOPLIMIT = 0x34
577 IPV6_HOPOPTS = 0x36
578 IPV6_IPSEC_POLICY = 0x22
579 IPV6_JOIN_ANYCAST = 0x1b
580 IPV6_JOIN_GROUP = 0x14
581 IPV6_LEAVE_ANYCAST = 0x1c
582 IPV6_LEAVE_GROUP = 0x15
583 IPV6_MTU = 0x18
584 IPV6_MTU_DISCOVER = 0x17
585 IPV6_MULTICAST_HOPS = 0x12
586 IPV6_MULTICAST_IF = 0x11
587 IPV6_MULTICAST_LOOP = 0x13
588 IPV6_NEXTHOP = 0x9
589 IPV6_PKTINFO = 0x32
590 IPV6_PMTUDISC_DO = 0x2
591 IPV6_PMTUDISC_DONT = 0x0
592 IPV6_PMTUDISC_PROBE = 0x3
593 IPV6_PMTUDISC_WANT = 0x1
594 IPV6_RECVDSTOPTS = 0x3a
595 IPV6_RECVERR = 0x19
596 IPV6_RECVHOPLIMIT = 0x33
597 IPV6_RECVHOPOPTS = 0x35
598 IPV6_RECVPKTINFO = 0x31
599 IPV6_RECVRTHDR = 0x38
600 IPV6_RECVTCLASS = 0x42
601 IPV6_ROUTER_ALERT = 0x16
602 IPV6_RTHDR = 0x39
603 IPV6_RTHDRDSTOPTS = 0x37
604 IPV6_RTHDR_LOOSE = 0x0
605 IPV6_RTHDR_STRICT = 0x1
606 IPV6_RTHDR_TYPE_0 = 0x0
607 IPV6_RXDSTOPTS = 0x3b
608 IPV6_RXHOPOPTS = 0x36
609 IPV6_TCLASS = 0x43
610 IPV6_UNICAST_HOPS = 0x10
611 IPV6_V6ONLY = 0x1a
612 IPV6_XFRM_POLICY = 0x23
613 IP_ADD_MEMBERSHIP = 0x23
614 IP_ADD_SOURCE_MEMBERSHIP = 0x27
615 IP_BLOCK_SOURCE = 0x26
616 IP_DEFAULT_MULTICAST_LOOP = 0x1
617 IP_DEFAULT_MULTICAST_TTL = 0x1
618 IP_DF = 0x4000
619 IP_DROP_MEMBERSHIP = 0x24
620 IP_DROP_SOURCE_MEMBERSHIP = 0x28
621 IP_FREEBIND = 0xf
622 IP_HDRINCL = 0x3
623 IP_IPSEC_POLICY = 0x10
624 IP_MAXPACKET = 0xffff
625 IP_MAX_MEMBERSHIPS = 0x14
626 IP_MF = 0x2000
627 IP_MINTTL = 0x15
628 IP_MSFILTER = 0x29
629 IP_MSS = 0x240
630 IP_MTU = 0xe
631 IP_MTU_DISCOVER = 0xa
632 IP_MULTICAST_ALL = 0x31
633 IP_MULTICAST_IF = 0x20
634 IP_MULTICAST_LOOP = 0x22
635 IP_MULTICAST_TTL = 0x21
636 IP_OFFMASK = 0x1fff
637 IP_OPTIONS = 0x4
638 IP_ORIGDSTADDR = 0x14
639 IP_PASSSEC = 0x12
640 IP_PKTINFO = 0x8
641 IP_PKTOPTIONS = 0x9
642 IP_PMTUDISC = 0xa
643 IP_PMTUDISC_DO = 0x2
644 IP_PMTUDISC_DONT = 0x0
645 IP_PMTUDISC_PROBE = 0x3
646 IP_PMTUDISC_WANT = 0x1
647 IP_RECVERR = 0xb
648 IP_RECVOPTS = 0x6
649 IP_RECVORIGDSTADDR = 0x14
650 IP_RECVRETOPTS = 0x7
651 IP_RECVTOS = 0xd
652 IP_RECVTTL = 0xc
653 IP_RETOPTS = 0x7
654 IP_RF = 0x8000
655 IP_ROUTER_ALERT = 0x5
656 IP_TOS = 0x1
657 IP_TRANSPARENT = 0x13
658 IP_TTL = 0x2
659 IP_UNBLOCK_SOURCE = 0x25
660 IP_UNICAST_IF = 0x32
661 IP_XFRM_POLICY = 0x11
662 ISIG = 0x80
663 ISTRIP = 0x20
664 IUCLC = 0x1000
665 IUTF8 = 0x4000
666 IXANY = 0x800
667 IXOFF = 0x400
668 IXON = 0x200
669 LINUX_REBOOT_CMD_CAD_OFF = 0x0
670 LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
671 LINUX_REBOOT_CMD_HALT = 0xcdef0123
672 LINUX_REBOOT_CMD_KEXEC = 0x45584543
673 LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc
674 LINUX_REBOOT_CMD_RESTART = 0x1234567
675 LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4
676 LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
677 LINUX_REBOOT_MAGIC1 = 0xfee1dead
678 LINUX_REBOOT_MAGIC2 = 0x28121969
679 LOCK_EX = 0x2
680 LOCK_NB = 0x4
681 LOCK_SH = 0x1
682 LOCK_UN = 0x8
683 MADV_DODUMP = 0x11
684 MADV_DOFORK = 0xb
685 MADV_DONTDUMP = 0x10
686 MADV_DONTFORK = 0xa
687 MADV_DONTNEED = 0x4
688 MADV_HUGEPAGE = 0xe
689 MADV_HWPOISON = 0x64
690 MADV_MERGEABLE = 0xc
691 MADV_NOHUGEPAGE = 0xf
692 MADV_NORMAL = 0x0
693 MADV_RANDOM = 0x1
694 MADV_REMOVE = 0x9
695 MADV_SEQUENTIAL = 0x2
696 MADV_UNMERGEABLE = 0xd
697 MADV_WILLNEED = 0x3
698 MAP_ANON = 0x20
699 MAP_ANONYMOUS = 0x20
700 MAP_DENYWRITE = 0x800
701 MAP_EXECUTABLE = 0x1000
702 MAP_FILE = 0x0
703 MAP_FIXED = 0x10
704 MAP_GROWSDOWN = 0x100
705 MAP_HUGETLB = 0x40000
706 MAP_HUGE_MASK = 0x3f
707 MAP_HUGE_SHIFT = 0x1a
708 MAP_LOCKED = 0x80
709 MAP_NONBLOCK = 0x10000
710 MAP_NORESERVE = 0x40
711 MAP_POPULATE = 0x8000
712 MAP_PRIVATE = 0x2
713 MAP_SHARED = 0x1
714 MAP_STACK = 0x20000
715 MAP_TYPE = 0xf
716 MCL_CURRENT = 0x2000
717 MCL_FUTURE = 0x4000
718 MNT_DETACH = 0x2
719 MNT_EXPIRE = 0x4
720 MNT_FORCE = 0x1
721 MSG_CMSG_CLOEXEC = 0x40000000
722 MSG_CONFIRM = 0x800
723 MSG_CTRUNC = 0x8
724 MSG_DONTROUTE = 0x4
725 MSG_DONTWAIT = 0x40
726 MSG_EOR = 0x80
727 MSG_ERRQUEUE = 0x2000
728 MSG_FASTOPEN = 0x20000000
729 MSG_FIN = 0x200
730 MSG_MORE = 0x8000
731 MSG_NOSIGNAL = 0x4000
732 MSG_OOB = 0x1
733 MSG_PEEK = 0x2
734 MSG_PROXY = 0x10
735 MSG_RST = 0x1000
736 MSG_SYN = 0x400
737 MSG_TRUNC = 0x20
738 MSG_TRYHARD = 0x4
739 MSG_WAITALL = 0x100
740 MSG_WAITFORONE = 0x10000
741 MS_ACTIVE = 0x40000000
742 MS_ASYNC = 0x1
743 MS_BIND = 0x1000
744 MS_DIRSYNC = 0x80
745 MS_INVALIDATE = 0x2
746 MS_I_VERSION = 0x800000
747 MS_KERNMOUNT = 0x400000
748 MS_MANDLOCK = 0x40
749 MS_MGC_MSK = 0xffff0000
750 MS_MGC_VAL = 0xc0ed0000
751 MS_MOVE = 0x2000
752 MS_NOATIME = 0x400
753 MS_NODEV = 0x4
754 MS_NODIRATIME = 0x800
755 MS_NOEXEC = 0x8
756 MS_NOSUID = 0x2
757 MS_NOUSER = -0x80000000
758 MS_POSIXACL = 0x10000
759 MS_PRIVATE = 0x40000
760 MS_RDONLY = 0x1
761 MS_REC = 0x4000
762 MS_RELATIME = 0x200000
763 MS_REMOUNT = 0x20
764 MS_RMT_MASK = 0x800051
765 MS_SHARED = 0x100000
766 MS_SILENT = 0x8000
767 MS_SLAVE = 0x80000
768 MS_STRICTATIME = 0x1000000
769 MS_SYNC = 0x4
770 MS_SYNCHRONOUS = 0x10
771 MS_UNBINDABLE = 0x20000
772 NAME_MAX = 0xff
773 NETLINK_ADD_MEMBERSHIP = 0x1
774 NETLINK_AUDIT = 0x9
775 NETLINK_BROADCAST_ERROR = 0x4
776 NETLINK_CONNECTOR = 0xb
777 NETLINK_CRYPTO = 0x15
778 NETLINK_DNRTMSG = 0xe
779 NETLINK_DROP_MEMBERSHIP = 0x2
780 NETLINK_ECRYPTFS = 0x13
781 NETLINK_FIB_LOOKUP = 0xa
782 NETLINK_FIREWALL = 0x3
783 NETLINK_GENERIC = 0x10
784 NETLINK_INET_DIAG = 0x4
785 NETLINK_IP6_FW = 0xd
786 NETLINK_ISCSI = 0x8
787 NETLINK_KOBJECT_UEVENT = 0xf
788 NETLINK_NETFILTER = 0xc
789 NETLINK_NFLOG = 0x5
790 NETLINK_NO_ENOBUFS = 0x5
791 NETLINK_PKTINFO = 0x3
792 NETLINK_RDMA = 0x14
793 NETLINK_ROUTE = 0x0
794 NETLINK_RX_RING = 0x6
795 NETLINK_SCSITRANSPORT = 0x12
796 NETLINK_SELINUX = 0x7
797 NETLINK_SOCK_DIAG = 0x4
798 NETLINK_TX_RING = 0x7
799 NETLINK_UNUSED = 0x1
800 NETLINK_USERSOCK = 0x2
801 NETLINK_XFRM = 0x6
802 NL0 = 0x0
803 NL1 = 0x100
804 NL2 = 0x200
805 NL3 = 0x300
806 NLA_ALIGNTO = 0x4
807 NLA_F_NESTED = 0x8000
808 NLA_F_NET_BYTEORDER = 0x4000
809 NLA_HDRLEN = 0x4
810 NLDLY = 0x300
811 NLMSG_ALIGNTO = 0x4
812 NLMSG_DONE = 0x3
813 NLMSG_ERROR = 0x2
814 NLMSG_HDRLEN = 0x10
815 NLMSG_MIN_TYPE = 0x10
816 NLMSG_NOOP = 0x1
817 NLMSG_OVERRUN = 0x4
818 NLM_F_ACK = 0x4
819 NLM_F_APPEND = 0x800
820 NLM_F_ATOMIC = 0x400
821 NLM_F_CREATE = 0x400
822 NLM_F_DUMP = 0x300
823 NLM_F_DUMP_INTR = 0x10
824 NLM_F_ECHO = 0x8
825 NLM_F_EXCL = 0x200
826 NLM_F_MATCH = 0x200
827 NLM_F_MULTI = 0x2
828 NLM_F_REPLACE = 0x100
829 NLM_F_REQUEST = 0x1
830 NLM_F_ROOT = 0x100
831 NOFLSH = 0x80000000
832 OCRNL = 0x8
833 OFDEL = 0x80
834 OFILL = 0x40
835 OLCUC = 0x4
836 ONLCR = 0x2
837 ONLRET = 0x20
838 ONOCR = 0x10
839 OPOST = 0x1
840 O_ACCMODE = 0x3
841 O_APPEND = 0x400
842 O_ASYNC = 0x2000
843 O_CLOEXEC = 0x80000
844 O_CREAT = 0x40
845 O_DIRECT = 0x20000
846 O_DIRECTORY = 0x4000
847 O_DSYNC = 0x1000
848 O_EXCL = 0x80
849 O_FSYNC = 0x101000
850 O_LARGEFILE = 0x0
851 O_NDELAY = 0x800
852 O_NOATIME = 0x40000
853 O_NOCTTY = 0x100
854 O_NOFOLLOW = 0x8000
855 O_NONBLOCK = 0x800
856 O_PATH = 0x200000
857 O_RDONLY = 0x0
858 O_RDWR = 0x2
859 O_RSYNC = 0x101000
860 O_SYNC = 0x101000
861 O_TMPFILE = 0x410000
862 O_TRUNC = 0x200
863 O_WRONLY = 0x1
864 PACKET_ADD_MEMBERSHIP = 0x1
865 PACKET_AUXDATA = 0x8
866 PACKET_BROADCAST = 0x1
867 PACKET_COPY_THRESH = 0x7
868 PACKET_DROP_MEMBERSHIP = 0x2
869 PACKET_FANOUT = 0x12
870 PACKET_FANOUT_CPU = 0x2
871 PACKET_FANOUT_FLAG_DEFRAG = 0x8000
872 PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
873 PACKET_FANOUT_HASH = 0x0
874 PACKET_FANOUT_LB = 0x1
875 PACKET_FANOUT_RND = 0x4
876 PACKET_FANOUT_ROLLOVER = 0x3
877 PACKET_FASTROUTE = 0x6
878 PACKET_HDRLEN = 0xb
879 PACKET_HOST = 0x0
880 PACKET_LOOPBACK = 0x5
881 PACKET_LOSS = 0xe
882 PACKET_MR_ALLMULTI = 0x2
883 PACKET_MR_MULTICAST = 0x0
884 PACKET_MR_PROMISC = 0x1
885 PACKET_MR_UNICAST = 0x3
886 PACKET_MULTICAST = 0x2
887 PACKET_ORIGDEV = 0x9
888 PACKET_OTHERHOST = 0x3
889 PACKET_OUTGOING = 0x4
890 PACKET_RECV_OUTPUT = 0x3
891 PACKET_RESERVE = 0xc
892 PACKET_RX_RING = 0x5
893 PACKET_STATISTICS = 0x6
894 PACKET_TIMESTAMP = 0x11
895 PACKET_TX_HAS_OFF = 0x13
896 PACKET_TX_RING = 0xd
897 PACKET_TX_TIMESTAMP = 0x10
898 PACKET_VERSION = 0xa
899 PACKET_VNET_HDR = 0xf
900 PARENB = 0x1000
901 PARITY_CRC16_PR0 = 0x2
902 PARITY_CRC16_PR0_CCITT = 0x4
903 PARITY_CRC16_PR1 = 0x3
904 PARITY_CRC16_PR1_CCITT = 0x5
905 PARITY_CRC32_PR0_CCITT = 0x6
906 PARITY_CRC32_PR1_CCITT = 0x7
907 PARITY_DEFAULT = 0x0
908 PARITY_NONE = 0x1
909 PARMRK = 0x8
910 PARODD = 0x2000
911 PENDIN = 0x20000000
912 PRIO_PGRP = 0x1
913 PRIO_PROCESS = 0x0
914 PRIO_USER = 0x2
915 PROT_EXEC = 0x4
916 PROT_GROWSDOWN = 0x1000000
917 PROT_GROWSUP = 0x2000000
918 PROT_NONE = 0x0
919 PROT_READ = 0x1
920 PROT_SAO = 0x10
921 PROT_WRITE = 0x2
922 PR_CAPBSET_DROP = 0x18
923 PR_CAPBSET_READ = 0x17
924 PR_ENDIAN_BIG = 0x0
925 PR_ENDIAN_LITTLE = 0x1
926 PR_ENDIAN_PPC_LITTLE = 0x2
927 PR_FPEMU_NOPRINT = 0x1
928 PR_FPEMU_SIGFPE = 0x2
929 PR_FP_EXC_ASYNC = 0x2
930 PR_FP_EXC_DISABLED = 0x0
931 PR_FP_EXC_DIV = 0x10000
932 PR_FP_EXC_INV = 0x100000
933 PR_FP_EXC_NONRECOV = 0x1
934 PR_FP_EXC_OVF = 0x20000
935 PR_FP_EXC_PRECISE = 0x3
936 PR_FP_EXC_RES = 0x80000
937 PR_FP_EXC_SW_ENABLE = 0x80
938 PR_FP_EXC_UND = 0x40000
939 PR_GET_CHILD_SUBREAPER = 0x25
940 PR_GET_DUMPABLE = 0x3
941 PR_GET_ENDIAN = 0x13
942 PR_GET_FPEMU = 0x9
943 PR_GET_FPEXC = 0xb
944 PR_GET_KEEPCAPS = 0x7
945 PR_GET_NAME = 0x10
946 PR_GET_NO_NEW_PRIVS = 0x27
947 PR_GET_PDEATHSIG = 0x2
948 PR_GET_SECCOMP = 0x15
949 PR_GET_SECUREBITS = 0x1b
950 PR_GET_TID_ADDRESS = 0x28
951 PR_GET_TIMERSLACK = 0x1e
952 PR_GET_TIMING = 0xd
953 PR_GET_TSC = 0x19
954 PR_GET_UNALIGN = 0x5
955 PR_MCE_KILL = 0x21
956 PR_MCE_KILL_CLEAR = 0x0
957 PR_MCE_KILL_DEFAULT = 0x2
958 PR_MCE_KILL_EARLY = 0x1
959 PR_MCE_KILL_GET = 0x22
960 PR_MCE_KILL_LATE = 0x0
961 PR_MCE_KILL_SET = 0x1
962 PR_SET_CHILD_SUBREAPER = 0x24
963 PR_SET_DUMPABLE = 0x4
964 PR_SET_ENDIAN = 0x14
965 PR_SET_FPEMU = 0xa
966 PR_SET_FPEXC = 0xc
967 PR_SET_KEEPCAPS = 0x8
968 PR_SET_MM = 0x23
969 PR_SET_MM_ARG_END = 0x9
970 PR_SET_MM_ARG_START = 0x8
971 PR_SET_MM_AUXV = 0xc
972 PR_SET_MM_BRK = 0x7
973 PR_SET_MM_END_CODE = 0x2
974 PR_SET_MM_END_DATA = 0x4
975 PR_SET_MM_ENV_END = 0xb
976 PR_SET_MM_ENV_START = 0xa
977 PR_SET_MM_EXE_FILE = 0xd
978 PR_SET_MM_START_BRK = 0x6
979 PR_SET_MM_START_CODE = 0x1
980 PR_SET_MM_START_DATA = 0x3
981 PR_SET_MM_START_STACK = 0x5
982 PR_SET_NAME = 0xf
983 PR_SET_NO_NEW_PRIVS = 0x26
984 PR_SET_PDEATHSIG = 0x1
985 PR_SET_PTRACER = 0x59616d61
986 PR_SET_PTRACER_ANY = -0x1
987 PR_SET_SECCOMP = 0x16
988 PR_SET_SECUREBITS = 0x1c
989 PR_SET_TIMERSLACK = 0x1d
990 PR_SET_TIMING = 0xe
991 PR_SET_TSC = 0x1a
992 PR_SET_UNALIGN = 0x6
993 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
994 PR_TASK_PERF_EVENTS_ENABLE = 0x20
995 PR_TIMING_STATISTICAL = 0x0
996 PR_TIMING_TIMESTAMP = 0x1
997 PR_TSC_ENABLE = 0x1
998 PR_TSC_SIGSEGV = 0x2
999 PR_UNALIGN_NOPRINT = 0x1
1000 PR_UNALIGN_SIGBUS = 0x2
1001 PTRACE_ATTACH = 0x10
1002 PTRACE_CONT = 0x7
1003 PTRACE_DETACH = 0x11
1004 PTRACE_EVENT_CLONE = 0x3
1005 PTRACE_EVENT_EXEC = 0x4
1006 PTRACE_EVENT_EXIT = 0x6
1007 PTRACE_EVENT_FORK = 0x1
1008 PTRACE_EVENT_SECCOMP = 0x7
1009 PTRACE_EVENT_STOP = 0x80
1010 PTRACE_EVENT_VFORK = 0x2
1011 PTRACE_EVENT_VFORK_DONE = 0x5
1012 PTRACE_GETEVENTMSG = 0x4201
1013 PTRACE_GETEVRREGS = 0x14
1014 PTRACE_GETFPREGS = 0xe
1015 PTRACE_GETREGS = 0xc
1016 PTRACE_GETREGS64 = 0x16
1017 PTRACE_GETREGSET = 0x4204
1018 PTRACE_GETSIGINFO = 0x4202
1019 PTRACE_GETSIGMASK = 0x420a
1020 PTRACE_GETVRREGS = 0x12
1021 PTRACE_GETVSRREGS = 0x1b
1022 PTRACE_GET_DEBUGREG = 0x19
1023 PTRACE_INTERRUPT = 0x4207
1024 PTRACE_KILL = 0x8
1025 PTRACE_LISTEN = 0x4208
1026 PTRACE_O_EXITKILL = 0x100000
1027 PTRACE_O_MASK = 0x1000ff
1028 PTRACE_O_TRACECLONE = 0x8
1029 PTRACE_O_TRACEEXEC = 0x10
1030 PTRACE_O_TRACEEXIT = 0x40
1031 PTRACE_O_TRACEFORK = 0x2
1032 PTRACE_O_TRACESECCOMP = 0x80
1033 PTRACE_O_TRACESYSGOOD = 0x1
1034 PTRACE_O_TRACEVFORK = 0x4
1035 PTRACE_O_TRACEVFORKDONE = 0x20
1036 PTRACE_PEEKDATA = 0x2
1037 PTRACE_PEEKSIGINFO = 0x4209
1038 PTRACE_PEEKSIGINFO_SHARED = 0x1
1039 PTRACE_PEEKTEXT = 0x1
1040 PTRACE_PEEKUSR = 0x3
1041 PTRACE_POKEDATA = 0x5
1042 PTRACE_POKETEXT = 0x4
1043 PTRACE_POKEUSR = 0x6
1044 PTRACE_SEIZE = 0x4206
1045 PTRACE_SETEVRREGS = 0x15
1046 PTRACE_SETFPREGS = 0xf
1047 PTRACE_SETOPTIONS = 0x4200
1048 PTRACE_SETREGS = 0xd
1049 PTRACE_SETREGS64 = 0x17
1050 PTRACE_SETREGSET = 0x4205
1051 PTRACE_SETSIGINFO = 0x4203
1052 PTRACE_SETSIGMASK = 0x420b
1053 PTRACE_SETVRREGS = 0x13
1054 PTRACE_SETVSRREGS = 0x1c
1055 PTRACE_SET_DEBUGREG = 0x1a
1056 PTRACE_SINGLEBLOCK = 0x100
1057 PTRACE_SINGLESTEP = 0x9
1058 PTRACE_SYSCALL = 0x18
1059 PTRACE_TRACEME = 0x0
1060 PT_CCR = 0x26
1061 PT_CTR = 0x23
1062 PT_DAR = 0x29
1063 PT_DSCR = 0x2c
1064 PT_DSISR = 0x2a
1065 PT_FPR0 = 0x30
1066 PT_FPSCR = 0x50
1067 PT_LNK = 0x24
1068 PT_MSR = 0x21
1069 PT_NIP = 0x20
1070 PT_ORIG_R3 = 0x22
1071 PT_R0 = 0x0
1072 PT_R1 = 0x1
1073 PT_R10 = 0xa
1074 PT_R11 = 0xb
1075 PT_R12 = 0xc
1076 PT_R13 = 0xd
1077 PT_R14 = 0xe
1078 PT_R15 = 0xf
1079 PT_R16 = 0x10
1080 PT_R17 = 0x11
1081 PT_R18 = 0x12
1082 PT_R19 = 0x13
1083 PT_R2 = 0x2
1084 PT_R20 = 0x14
1085 PT_R21 = 0x15
1086 PT_R22 = 0x16
1087 PT_R23 = 0x17
1088 PT_R24 = 0x18
1089 PT_R25 = 0x19
1090 PT_R26 = 0x1a
1091 PT_R27 = 0x1b
1092 PT_R28 = 0x1c
1093 PT_R29 = 0x1d
1094 PT_R3 = 0x3
1095 PT_R30 = 0x1e
1096 PT_R31 = 0x1f
1097 PT_R4 = 0x4
1098 PT_R5 = 0x5
1099 PT_R6 = 0x6
1100 PT_R7 = 0x7
1101 PT_R8 = 0x8
1102 PT_R9 = 0x9
1103 PT_REGS_COUNT = 0x2c
1104 PT_RESULT = 0x2b
1105 PT_SOFTE = 0x27
1106 PT_TRAP = 0x28
1107 PT_VR0 = 0x52
1108 PT_VRSAVE = 0x94
1109 PT_VSCR = 0x93
1110 PT_VSR0 = 0x96
1111 PT_VSR31 = 0xd4
1112 PT_XER = 0x25
1113 RLIMIT_AS = 0x9
1114 RLIMIT_CORE = 0x4
1115 RLIMIT_CPU = 0x0
1116 RLIMIT_DATA = 0x2
1117 RLIMIT_FSIZE = 0x1
1118 RLIMIT_NOFILE = 0x7
1119 RLIMIT_STACK = 0x3
1120 RLIM_INFINITY = -0x1
1121 RTAX_ADVMSS = 0x8
1122 RTAX_CWND = 0x7
1123 RTAX_FEATURES = 0xc
1124 RTAX_FEATURE_ALLFRAG = 0x8
1125 RTAX_FEATURE_ECN = 0x1
1126 RTAX_FEATURE_SACK = 0x2
1127 RTAX_FEATURE_TIMESTAMP = 0x4
1128 RTAX_HOPLIMIT = 0xa
1129 RTAX_INITCWND = 0xb
1130 RTAX_INITRWND = 0xe
1131 RTAX_LOCK = 0x1
1132 RTAX_MAX = 0xf
1133 RTAX_MTU = 0x2
1134 RTAX_QUICKACK = 0xf
1135 RTAX_REORDERING = 0x9
1136 RTAX_RTO_MIN = 0xd
1137 RTAX_RTT = 0x4
1138 RTAX_RTTVAR = 0x5
1139 RTAX_SSTHRESH = 0x6
1140 RTAX_UNSPEC = 0x0
1141 RTAX_WINDOW = 0x3
1142 RTA_ALIGNTO = 0x4
1143 RTA_MAX = 0x11
1144 RTCF_DIRECTSRC = 0x4000000
1145 RTCF_DOREDIRECT = 0x1000000
1146 RTCF_LOG = 0x2000000
1147 RTCF_MASQ = 0x400000
1148 RTCF_NAT = 0x800000
1149 RTCF_VALVE = 0x200000
1150 RTF_ADDRCLASSMASK = 0xf8000000
1151 RTF_ADDRCONF = 0x40000
1152 RTF_ALLONLINK = 0x20000
1153 RTF_BROADCAST = 0x10000000
1154 RTF_CACHE = 0x1000000
1155 RTF_DEFAULT = 0x10000
1156 RTF_DYNAMIC = 0x10
1157 RTF_FLOW = 0x2000000
1158 RTF_GATEWAY = 0x2
1159 RTF_HOST = 0x4
1160 RTF_INTERFACE = 0x40000000
1161 RTF_IRTT = 0x100
1162 RTF_LINKRT = 0x100000
1163 RTF_LOCAL = 0x80000000
1164 RTF_MODIFIED = 0x20
1165 RTF_MSS = 0x40
1166 RTF_MTU = 0x40
1167 RTF_MULTICAST = 0x20000000
1168 RTF_NAT = 0x8000000
1169 RTF_NOFORWARD = 0x1000
1170 RTF_NONEXTHOP = 0x200000
1171 RTF_NOPMTUDISC = 0x4000
1172 RTF_POLICY = 0x4000000
1173 RTF_REINSTATE = 0x8
1174 RTF_REJECT = 0x200
1175 RTF_STATIC = 0x400
1176 RTF_THROW = 0x2000
1177 RTF_UP = 0x1
1178 RTF_WINDOW = 0x80
1179 RTF_XRESOLVE = 0x800
1180 RTM_BASE = 0x10
1181 RTM_DELACTION = 0x31
1182 RTM_DELADDR = 0x15
1183 RTM_DELADDRLABEL = 0x49
1184 RTM_DELLINK = 0x11
1185 RTM_DELMDB = 0x55
1186 RTM_DELNEIGH = 0x1d
1187 RTM_DELQDISC = 0x25
1188 RTM_DELROUTE = 0x19
1189 RTM_DELRULE = 0x21
1190 RTM_DELTCLASS = 0x29
1191 RTM_DELTFILTER = 0x2d
1192 RTM_F_CLONED = 0x200
1193 RTM_F_EQUALIZE = 0x400
1194 RTM_F_NOTIFY = 0x100
1195 RTM_F_PREFIX = 0x800
1196 RTM_GETACTION = 0x32
1197 RTM_GETADDR = 0x16
1198 RTM_GETADDRLABEL = 0x4a
1199 RTM_GETANYCAST = 0x3e
1200 RTM_GETDCB = 0x4e
1201 RTM_GETLINK = 0x12
1202 RTM_GETMDB = 0x56
1203 RTM_GETMULTICAST = 0x3a
1204 RTM_GETNEIGH = 0x1e
1205 RTM_GETNEIGHTBL = 0x42
1206 RTM_GETNETCONF = 0x52
1207 RTM_GETQDISC = 0x26
1208 RTM_GETROUTE = 0x1a
1209 RTM_GETRULE = 0x22
1210 RTM_GETTCLASS = 0x2a
1211 RTM_GETTFILTER = 0x2e
1212 RTM_MAX = 0x57
1213 RTM_NEWACTION = 0x30
1214 RTM_NEWADDR = 0x14
1215 RTM_NEWADDRLABEL = 0x48
1216 RTM_NEWLINK = 0x10
1217 RTM_NEWMDB = 0x54
1218 RTM_NEWNDUSEROPT = 0x44
1219 RTM_NEWNEIGH = 0x1c
1220 RTM_NEWNEIGHTBL = 0x40
1221 RTM_NEWNETCONF = 0x50
1222 RTM_NEWPREFIX = 0x34
1223 RTM_NEWQDISC = 0x24
1224 RTM_NEWROUTE = 0x18
1225 RTM_NEWRULE = 0x20
1226 RTM_NEWTCLASS = 0x28
1227 RTM_NEWTFILTER = 0x2c
1228 RTM_NR_FAMILIES = 0x12
1229 RTM_NR_MSGTYPES = 0x48
1230 RTM_SETDCB = 0x4f
1231 RTM_SETLINK = 0x13
1232 RTM_SETNEIGHTBL = 0x43
1233 RTNH_ALIGNTO = 0x4
1234 RTNH_F_DEAD = 0x1
1235 RTNH_F_ONLINK = 0x4
1236 RTNH_F_PERVASIVE = 0x2
1237 RTN_MAX = 0xb
1238 RTPROT_BIRD = 0xc
1239 RTPROT_BOOT = 0x3
1240 RTPROT_DHCP = 0x10
1241 RTPROT_DNROUTED = 0xd
1242 RTPROT_GATED = 0x8
1243 RTPROT_KERNEL = 0x2
1244 RTPROT_MROUTED = 0x11
1245 RTPROT_MRT = 0xa
1246 RTPROT_NTK = 0xf
1247 RTPROT_RA = 0x9
1248 RTPROT_REDIRECT = 0x1
1249 RTPROT_STATIC = 0x4
1250 RTPROT_UNSPEC = 0x0
1251 RTPROT_XORP = 0xe
1252 RTPROT_ZEBRA = 0xb
1253 RT_CLASS_DEFAULT = 0xfd
1254 RT_CLASS_LOCAL = 0xff
1255 RT_CLASS_MAIN = 0xfe
1256 RT_CLASS_MAX = 0xff
1257 RT_CLASS_UNSPEC = 0x0
1258 RUSAGE_CHILDREN = -0x1
1259 RUSAGE_SELF = 0x0
1260 RUSAGE_THREAD = 0x1
1261 SCM_CREDENTIALS = 0x2
1262 SCM_RIGHTS = 0x1
1263 SCM_TIMESTAMP = 0x1d
1264 SCM_TIMESTAMPING = 0x25
1265 SCM_TIMESTAMPNS = 0x23
1266 SCM_WIFI_STATUS = 0x29
1267 SHUT_RD = 0x0
1268 SHUT_RDWR = 0x2
1269 SHUT_WR = 0x1
1270 SIOCADDDLCI = 0x8980
1271 SIOCADDMULTI = 0x8931
1272 SIOCADDRT = 0x890b
1273 SIOCATMARK = 0x8905
1274 SIOCDARP = 0x8953
1275 SIOCDELDLCI = 0x8981
1276 SIOCDELMULTI = 0x8932
1277 SIOCDELRT = 0x890c
1278 SIOCDEVPRIVATE = 0x89f0
1279 SIOCDIFADDR = 0x8936
1280 SIOCDRARP = 0x8960
1281 SIOCGARP = 0x8954
1282 SIOCGIFADDR = 0x8915
1283 SIOCGIFBR = 0x8940
1284 SIOCGIFBRDADDR = 0x8919
1285 SIOCGIFCONF = 0x8912
1286 SIOCGIFCOUNT = 0x8938
1287 SIOCGIFDSTADDR = 0x8917
1288 SIOCGIFENCAP = 0x8925
1289 SIOCGIFFLAGS = 0x8913
1290 SIOCGIFHWADDR = 0x8927
1291 SIOCGIFINDEX = 0x8933
1292 SIOCGIFMAP = 0x8970
1293 SIOCGIFMEM = 0x891f
1294 SIOCGIFMETRIC = 0x891d
1295 SIOCGIFMTU = 0x8921
1296 SIOCGIFNAME = 0x8910
1297 SIOCGIFNETMASK = 0x891b
1298 SIOCGIFPFLAGS = 0x8935
1299 SIOCGIFSLAVE = 0x8929
1300 SIOCGIFTXQLEN = 0x8942
1301 SIOCGPGRP = 0x8904
1302 SIOCGRARP = 0x8961
1303 SIOCGSTAMP = 0x8906
1304 SIOCGSTAMPNS = 0x8907
1305 SIOCPROTOPRIVATE = 0x89e0
1306 SIOCRTMSG = 0x890d
1307 SIOCSARP = 0x8955
1308 SIOCSIFADDR = 0x8916
1309 SIOCSIFBR = 0x8941
1310 SIOCSIFBRDADDR = 0x891a
1311 SIOCSIFDSTADDR = 0x8918
1312 SIOCSIFENCAP = 0x8926
1313 SIOCSIFFLAGS = 0x8914
1314 SIOCSIFHWADDR = 0x8924
1315 SIOCSIFHWBROADCAST = 0x8937
1316 SIOCSIFLINK = 0x8911
1317 SIOCSIFMAP = 0x8971
1318 SIOCSIFMEM = 0x8920
1319 SIOCSIFMETRIC = 0x891e
1320 SIOCSIFMTU = 0x8922
1321 SIOCSIFNAME = 0x8923
1322 SIOCSIFNETMASK = 0x891c
1323 SIOCSIFPFLAGS = 0x8934
1324 SIOCSIFSLAVE = 0x8930
1325 SIOCSIFTXQLEN = 0x8943
1326 SIOCSPGRP = 0x8902
1327 SIOCSRARP = 0x8962
1328 SOCK_CLOEXEC = 0x80000
1329 SOCK_DCCP = 0x6
1330 SOCK_DGRAM = 0x2
1331 SOCK_NONBLOCK = 0x800
1332 SOCK_PACKET = 0xa
1333 SOCK_RAW = 0x3
1334 SOCK_RDM = 0x4
1335 SOCK_SEQPACKET = 0x5
1336 SOCK_STREAM = 0x1
1337 SOL_AAL = 0x109
1338 SOL_ATM = 0x108
1339 SOL_DECNET = 0x105
1340 SOL_ICMPV6 = 0x3a
1341 SOL_IP = 0x0
1342 SOL_IPV6 = 0x29
1343 SOL_IRDA = 0x10a
1344 SOL_PACKET = 0x107
1345 SOL_RAW = 0xff
1346 SOL_SOCKET = 0x1
1347 SOL_TCP = 0x6
1348 SOL_X25 = 0x106
1349 SOMAXCONN = 0x80
1350 SO_ACCEPTCONN = 0x1e
1351 SO_ATTACH_FILTER = 0x1a
1352 SO_BINDTODEVICE = 0x19
1353 SO_BROADCAST = 0x6
1354 SO_BSDCOMPAT = 0xe
1355 SO_BUSY_POLL = 0x2e
1356 SO_DEBUG = 0x1
1357 SO_DETACH_FILTER = 0x1b
1358 SO_DOMAIN = 0x27
1359 SO_DONTROUTE = 0x5
1360 SO_ERROR = 0x4
1361 SO_GET_FILTER = 0x1a
1362 SO_KEEPALIVE = 0x9
1363 SO_LINGER = 0xd
1364 SO_LOCK_FILTER = 0x2c
1365 SO_MARK = 0x24
1366 SO_MAX_PACING_RATE = 0x2f
1367 SO_NOFCS = 0x2b
1368 SO_NO_CHECK = 0xb
1369 SO_OOBINLINE = 0xa
1370 SO_PASSCRED = 0x14
1371 SO_PASSSEC = 0x22
1372 SO_PEEK_OFF = 0x2a
1373 SO_PEERCRED = 0x15
1374 SO_PEERNAME = 0x1c
1375 SO_PEERSEC = 0x1f
1376 SO_PRIORITY = 0xc
1377 SO_PROTOCOL = 0x26
1378 SO_RCVBUF = 0x8
1379 SO_RCVBUFFORCE = 0x21
1380 SO_RCVLOWAT = 0x10
1381 SO_RCVTIMEO = 0x12
1382 SO_REUSEADDR = 0x2
1383 SO_REUSEPORT = 0xf
1384 SO_RXQ_OVFL = 0x28
1385 SO_SECURITY_AUTHENTICATION = 0x16
1386 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
1387 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
1388 SO_SELECT_ERR_QUEUE = 0x2d
1389 SO_SNDBUF = 0x7
1390 SO_SNDBUFFORCE = 0x20
1391 SO_SNDLOWAT = 0x11
1392 SO_SNDTIMEO = 0x13
1393 SO_TIMESTAMP = 0x1d
1394 SO_TIMESTAMPING = 0x25
1395 SO_TIMESTAMPNS = 0x23
1396 SO_TYPE = 0x3
1397 SO_WIFI_STATUS = 0x29
1398 S_BLKSIZE = 0x200
1399 S_IEXEC = 0x40
1400 S_IFBLK = 0x6000
1401 S_IFCHR = 0x2000
1402 S_IFDIR = 0x4000
1403 S_IFIFO = 0x1000
1404 S_IFLNK = 0xa000
1405 S_IFMT = 0xf000
1406 S_IFREG = 0x8000
1407 S_IFSOCK = 0xc000
1408 S_IREAD = 0x100
1409 S_IRGRP = 0x20
1410 S_IROTH = 0x4
1411 S_IRUSR = 0x100
1412 S_IRWXG = 0x38
1413 S_IRWXO = 0x7
1414 S_IRWXU = 0x1c0
1415 S_ISGID = 0x400
1416 S_ISUID = 0x800
1417 S_ISVTX = 0x200
1418 S_IWGRP = 0x10
1419 S_IWOTH = 0x2
1420 S_IWRITE = 0x80
1421 S_IWUSR = 0x80
1422 S_IXGRP = 0x8
1423 S_IXOTH = 0x1
1424 S_IXUSR = 0x40
1425 TAB0 = 0x0
1426 TAB1 = 0x400
1427 TAB2 = 0x800
1428 TAB3 = 0xc00
1429 TABDLY = 0xc00
1430 TCFLSH = 0x2000741f
1431 TCGETA = 0x40147417
1432 TCGETS = 0x402c7413
1433 TCIFLUSH = 0x0
1434 TCIOFF = 0x2
1435 TCIOFLUSH = 0x2
1436 TCION = 0x3
1437 TCOFLUSH = 0x1
1438 TCOOFF = 0x0
1439 TCOON = 0x1
1440 TCP_CONGESTION = 0xd
1441 TCP_COOKIE_IN_ALWAYS = 0x1
1442 TCP_COOKIE_MAX = 0x10
1443 TCP_COOKIE_MIN = 0x8
1444 TCP_COOKIE_OUT_NEVER = 0x2
1445 TCP_COOKIE_PAIR_SIZE = 0x20
1446 TCP_COOKIE_TRANSACTIONS = 0xf
1447 TCP_CORK = 0x3
1448 TCP_DEFER_ACCEPT = 0x9
1449 TCP_FASTOPEN = 0x17
1450 TCP_INFO = 0xb
1451 TCP_KEEPCNT = 0x6
1452 TCP_KEEPIDLE = 0x4
1453 TCP_KEEPINTVL = 0x5
1454 TCP_LINGER2 = 0x8
1455 TCP_MAXSEG = 0x2
1456 TCP_MAXWIN = 0xffff
1457 TCP_MAX_WINSHIFT = 0xe
1458 TCP_MD5SIG = 0xe
1459 TCP_MD5SIG_MAXKEYLEN = 0x50
1460 TCP_MSS = 0x200
1461 TCP_MSS_DEFAULT = 0x218
1462 TCP_MSS_DESIRED = 0x4c4
1463 TCP_NODELAY = 0x1
1464 TCP_QUEUE_SEQ = 0x15
1465 TCP_QUICKACK = 0xc
1466 TCP_REPAIR = 0x13
1467 TCP_REPAIR_OPTIONS = 0x16
1468 TCP_REPAIR_QUEUE = 0x14
1469 TCP_SYNCNT = 0x7
1470 TCP_S_DATA_IN = 0x4
1471 TCP_S_DATA_OUT = 0x8
1472 TCP_THIN_DUPACK = 0x11
1473 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1474 TCP_TIMESTAMP = 0x18
1475 TCP_USER_TIMEOUT = 0x12
1476 TCP_WINDOW_CLAMP = 0xa
1477 TCSAFLUSH = 0x2
1478 TCSBRK = 0x2000741d
1479 TCSBRKP = 0x5425
1480 TCSETA = 0x80147418
1481 TCSETAF = 0x8014741c
1482 TCSETAW = 0x80147419
1483 TCSETS = 0x802c7414
1484 TCSETSF = 0x802c7416
1485 TCSETSW = 0x802c7415
1486 TCXONC = 0x2000741e
1487 TIOCCBRK = 0x5428
1488 TIOCCONS = 0x541d
1489 TIOCEXCL = 0x540c
1490 TIOCGDEV = 0x40045432
1491 TIOCGETC = 0x40067412
1492 TIOCGETD = 0x5424
1493 TIOCGETP = 0x40067408
1494 TIOCGEXCL = 0x40045440
1495 TIOCGICOUNT = 0x545d
1496 TIOCGLCKTRMIOS = 0x5456
1497 TIOCGLTC = 0x40067474
1498 TIOCGPGRP = 0x40047477
1499 TIOCGPKT = 0x40045438
1500 TIOCGPTLCK = 0x40045439
1501 TIOCGPTN = 0x40045430
1502 TIOCGRS485 = 0x542e
1503 TIOCGSERIAL = 0x541e
1504 TIOCGSID = 0x5429
1505 TIOCGSOFTCAR = 0x5419
1506 TIOCGWINSZ = 0x40087468
1507 TIOCINQ = 0x4004667f
1508 TIOCLINUX = 0x541c
1509 TIOCMBIC = 0x5417
1510 TIOCMBIS = 0x5416
1511 TIOCMGET = 0x5415
1512 TIOCMIWAIT = 0x545c
1513 TIOCMSET = 0x5418
1514 TIOCM_CAR = 0x40
1515 TIOCM_CD = 0x40
1516 TIOCM_CTS = 0x20
1517 TIOCM_DSR = 0x100
1518 TIOCM_DTR = 0x2
1519 TIOCM_LE = 0x1
1520 TIOCM_LOOP = 0x8000
1521 TIOCM_OUT1 = 0x2000
1522 TIOCM_OUT2 = 0x4000
1523 TIOCM_RI = 0x80
1524 TIOCM_RNG = 0x80
1525 TIOCM_RTS = 0x4
1526 TIOCM_SR = 0x10
1527 TIOCM_ST = 0x8
1528 TIOCNOTTY = 0x5422
1529 TIOCNXCL = 0x540d
1530 TIOCOUTQ = 0x40047473
1531 TIOCPKT = 0x5420
1532 TIOCPKT_DATA = 0x0
1533 TIOCPKT_DOSTOP = 0x20
1534 TIOCPKT_FLUSHREAD = 0x1
1535 TIOCPKT_FLUSHWRITE = 0x2
1536 TIOCPKT_IOCTL = 0x40
1537 TIOCPKT_NOSTOP = 0x10
1538 TIOCPKT_START = 0x8
1539 TIOCPKT_STOP = 0x4
1540 TIOCSBRK = 0x5427
1541 TIOCSCTTY = 0x540e
1542 TIOCSERCONFIG = 0x5453
1543 TIOCSERGETLSR = 0x5459
1544 TIOCSERGETMULTI = 0x545a
1545 TIOCSERGSTRUCT = 0x5458
1546 TIOCSERGWILD = 0x5454
1547 TIOCSERSETMULTI = 0x545b
1548 TIOCSERSWILD = 0x5455
1549 TIOCSER_TEMT = 0x1
1550 TIOCSETC = 0x80067411
1551 TIOCSETD = 0x5423
1552 TIOCSETN = 0x8006740a
1553 TIOCSETP = 0x80067409
1554 TIOCSIG = 0x80045436
1555 TIOCSLCKTRMIOS = 0x5457
1556 TIOCSLTC = 0x80067475
1557 TIOCSPGRP = 0x80047476
1558 TIOCSPTLCK = 0x80045431
1559 TIOCSRS485 = 0x542f
1560 TIOCSSERIAL = 0x541f
1561 TIOCSSOFTCAR = 0x541a
1562 TIOCSTART = 0x2000746e
1563 TIOCSTI = 0x5412
1564 TIOCSTOP = 0x2000746f
1565 TIOCSWINSZ = 0x80087467
1566 TIOCVHANGUP = 0x5437
1567 TOSTOP = 0x400000
1568 TUNATTACHFILTER = 0x801054d5
1569 TUNDETACHFILTER = 0x801054d6
1570 TUNGETFEATURES = 0x400454cf
1571 TUNGETFILTER = 0x401054db
1572 TUNGETIFF = 0x400454d2
1573 TUNGETSNDBUF = 0x400454d3
1574 TUNGETVNETHDRSZ = 0x400454d7
1575 TUNSETDEBUG = 0x800454c9
1576 TUNSETGROUP = 0x800454ce
1577 TUNSETIFF = 0x800454ca
1578 TUNSETIFINDEX = 0x800454da
1579 TUNSETLINK = 0x800454cd
1580 TUNSETNOCSUM = 0x800454c8
1581 TUNSETOFFLOAD = 0x800454d0
1582 TUNSETOWNER = 0x800454cc
1583 TUNSETPERSIST = 0x800454cb
1584 TUNSETQUEUE = 0x800454d9
1585 TUNSETSNDBUF = 0x800454d4
1586 TUNSETTXFILTER = 0x800454d1
1587 TUNSETVNETHDRSZ = 0x800454d8
1588 VDISCARD = 0x10
1589 VEOF = 0x4
1590 VEOL = 0x6
1591 VEOL2 = 0x8
1592 VERASE = 0x2
1593 VINTR = 0x0
1594 VKILL = 0x3
1595 VLNEXT = 0xf
1596 VMIN = 0x5
1597 VQUIT = 0x1
1598 VREPRINT = 0xb
1599 VSTART = 0xd
1600 VSTOP = 0xe
1601 VSUSP = 0xc
1602 VSWTC = 0x9
1603 VT0 = 0x0
1604 VT1 = 0x10000
1605 VTDLY = 0x10000
1606 VTIME = 0x7
1607 VWERASE = 0xa
1608 WALL = 0x40000000
1609 WCLONE = 0x80000000
1610 WCONTINUED = 0x8
1611 WEXITED = 0x4
1612 WNOHANG = 0x1
1613 WNOTHREAD = 0x20000000
1614 WNOWAIT = 0x1000000
1615 WORDSIZE = 0x40
1616 WSTOPPED = 0x2
1617 WUNTRACED = 0x2
1618 XCASE = 0x4000
1619 XTABS = 0xc00
1620)
1621
1622// Errors
1623const (
1624 E2BIG = syscall.Errno(0x7)
1625 EACCES = syscall.Errno(0xd)
1626 EADDRINUSE = syscall.Errno(0x62)
1627 EADDRNOTAVAIL = syscall.Errno(0x63)
1628 EADV = syscall.Errno(0x44)
1629 EAFNOSUPPORT = syscall.Errno(0x61)
1630 EAGAIN = syscall.Errno(0xb)
1631 EALREADY = syscall.Errno(0x72)
1632 EBADE = syscall.Errno(0x34)
1633 EBADF = syscall.Errno(0x9)
1634 EBADFD = syscall.Errno(0x4d)
1635 EBADMSG = syscall.Errno(0x4a)
1636 EBADR = syscall.Errno(0x35)
1637 EBADRQC = syscall.Errno(0x38)
1638 EBADSLT = syscall.Errno(0x39)
1639 EBFONT = syscall.Errno(0x3b)
1640 EBUSY = syscall.Errno(0x10)
1641 ECANCELED = syscall.Errno(0x7d)
1642 ECHILD = syscall.Errno(0xa)
1643 ECHRNG = syscall.Errno(0x2c)
1644 ECOMM = syscall.Errno(0x46)
1645 ECONNABORTED = syscall.Errno(0x67)
1646 ECONNREFUSED = syscall.Errno(0x6f)
1647 ECONNRESET = syscall.Errno(0x68)
1648 EDEADLK = syscall.Errno(0x23)
1649 EDEADLOCK = syscall.Errno(0x3a)
1650 EDESTADDRREQ = syscall.Errno(0x59)
1651 EDOM = syscall.Errno(0x21)
1652 EDOTDOT = syscall.Errno(0x49)
1653 EDQUOT = syscall.Errno(0x7a)
1654 EEXIST = syscall.Errno(0x11)
1655 EFAULT = syscall.Errno(0xe)
1656 EFBIG = syscall.Errno(0x1b)
1657 EHOSTDOWN = syscall.Errno(0x70)
1658 EHOSTUNREACH = syscall.Errno(0x71)
1659 EHWPOISON = syscall.Errno(0x85)
1660 EIDRM = syscall.Errno(0x2b)
1661 EILSEQ = syscall.Errno(0x54)
1662 EINPROGRESS = syscall.Errno(0x73)
1663 EINTR = syscall.Errno(0x4)
1664 EINVAL = syscall.Errno(0x16)
1665 EIO = syscall.Errno(0x5)
1666 EISCONN = syscall.Errno(0x6a)
1667 EISDIR = syscall.Errno(0x15)
1668 EISNAM = syscall.Errno(0x78)
1669 EKEYEXPIRED = syscall.Errno(0x7f)
1670 EKEYREJECTED = syscall.Errno(0x81)
1671 EKEYREVOKED = syscall.Errno(0x80)
1672 EL2HLT = syscall.Errno(0x33)
1673 EL2NSYNC = syscall.Errno(0x2d)
1674 EL3HLT = syscall.Errno(0x2e)
1675 EL3RST = syscall.Errno(0x2f)
1676 ELIBACC = syscall.Errno(0x4f)
1677 ELIBBAD = syscall.Errno(0x50)
1678 ELIBEXEC = syscall.Errno(0x53)
1679 ELIBMAX = syscall.Errno(0x52)
1680 ELIBSCN = syscall.Errno(0x51)
1681 ELNRNG = syscall.Errno(0x30)
1682 ELOOP = syscall.Errno(0x28)
1683 EMEDIUMTYPE = syscall.Errno(0x7c)
1684 EMFILE = syscall.Errno(0x18)
1685 EMLINK = syscall.Errno(0x1f)
1686 EMSGSIZE = syscall.Errno(0x5a)
1687 EMULTIHOP = syscall.Errno(0x48)
1688 ENAMETOOLONG = syscall.Errno(0x24)
1689 ENAVAIL = syscall.Errno(0x77)
1690 ENETDOWN = syscall.Errno(0x64)
1691 ENETRESET = syscall.Errno(0x66)
1692 ENETUNREACH = syscall.Errno(0x65)
1693 ENFILE = syscall.Errno(0x17)
1694 ENOANO = syscall.Errno(0x37)
1695 ENOBUFS = syscall.Errno(0x69)
1696 ENOCSI = syscall.Errno(0x32)
1697 ENODATA = syscall.Errno(0x3d)
1698 ENODEV = syscall.Errno(0x13)
1699 ENOENT = syscall.Errno(0x2)
1700 ENOEXEC = syscall.Errno(0x8)
1701 ENOKEY = syscall.Errno(0x7e)
1702 ENOLCK = syscall.Errno(0x25)
1703 ENOLINK = syscall.Errno(0x43)
1704 ENOMEDIUM = syscall.Errno(0x7b)
1705 ENOMEM = syscall.Errno(0xc)
1706 ENOMSG = syscall.Errno(0x2a)
1707 ENONET = syscall.Errno(0x40)
1708 ENOPKG = syscall.Errno(0x41)
1709 ENOPROTOOPT = syscall.Errno(0x5c)
1710 ENOSPC = syscall.Errno(0x1c)
1711 ENOSR = syscall.Errno(0x3f)
1712 ENOSTR = syscall.Errno(0x3c)
1713 ENOSYS = syscall.Errno(0x26)
1714 ENOTBLK = syscall.Errno(0xf)
1715 ENOTCONN = syscall.Errno(0x6b)
1716 ENOTDIR = syscall.Errno(0x14)
1717 ENOTEMPTY = syscall.Errno(0x27)
1718 ENOTNAM = syscall.Errno(0x76)
1719 ENOTRECOVERABLE = syscall.Errno(0x83)
1720 ENOTSOCK = syscall.Errno(0x58)
1721 ENOTSUP = syscall.Errno(0x5f)
1722 ENOTTY = syscall.Errno(0x19)
1723 ENOTUNIQ = syscall.Errno(0x4c)
1724 ENXIO = syscall.Errno(0x6)
1725 EOPNOTSUPP = syscall.Errno(0x5f)
1726 EOVERFLOW = syscall.Errno(0x4b)
1727 EOWNERDEAD = syscall.Errno(0x82)
1728 EPERM = syscall.Errno(0x1)
1729 EPFNOSUPPORT = syscall.Errno(0x60)
1730 EPIPE = syscall.Errno(0x20)
1731 EPROTO = syscall.Errno(0x47)
1732 EPROTONOSUPPORT = syscall.Errno(0x5d)
1733 EPROTOTYPE = syscall.Errno(0x5b)
1734 ERANGE = syscall.Errno(0x22)
1735 EREMCHG = syscall.Errno(0x4e)
1736 EREMOTE = syscall.Errno(0x42)
1737 EREMOTEIO = syscall.Errno(0x79)
1738 ERESTART = syscall.Errno(0x55)
1739 ERFKILL = syscall.Errno(0x84)
1740 EROFS = syscall.Errno(0x1e)
1741 ESHUTDOWN = syscall.Errno(0x6c)
1742 ESOCKTNOSUPPORT = syscall.Errno(0x5e)
1743 ESPIPE = syscall.Errno(0x1d)
1744 ESRCH = syscall.Errno(0x3)
1745 ESRMNT = syscall.Errno(0x45)
1746 ESTALE = syscall.Errno(0x74)
1747 ESTRPIPE = syscall.Errno(0x56)
1748 ETIME = syscall.Errno(0x3e)
1749 ETIMEDOUT = syscall.Errno(0x6e)
1750 ETOOMANYREFS = syscall.Errno(0x6d)
1751 ETXTBSY = syscall.Errno(0x1a)
1752 EUCLEAN = syscall.Errno(0x75)
1753 EUNATCH = syscall.Errno(0x31)
1754 EUSERS = syscall.Errno(0x57)
1755 EWOULDBLOCK = syscall.Errno(0xb)
1756 EXDEV = syscall.Errno(0x12)
1757 EXFULL = syscall.Errno(0x36)
1758)
1759
1760// Signals
1761const (
1762 SIGABRT = syscall.Signal(0x6)
1763 SIGALRM = syscall.Signal(0xe)
1764 SIGBUS = syscall.Signal(0x7)
1765 SIGCHLD = syscall.Signal(0x11)
1766 SIGCLD = syscall.Signal(0x11)
1767 SIGCONT = syscall.Signal(0x12)
1768 SIGFPE = syscall.Signal(0x8)
1769 SIGHUP = syscall.Signal(0x1)
1770 SIGILL = syscall.Signal(0x4)
1771 SIGINT = syscall.Signal(0x2)
1772 SIGIO = syscall.Signal(0x1d)
1773 SIGIOT = syscall.Signal(0x6)
1774 SIGKILL = syscall.Signal(0x9)
1775 SIGPIPE = syscall.Signal(0xd)
1776 SIGPOLL = syscall.Signal(0x1d)
1777 SIGPROF = syscall.Signal(0x1b)
1778 SIGPWR = syscall.Signal(0x1e)
1779 SIGQUIT = syscall.Signal(0x3)
1780 SIGSEGV = syscall.Signal(0xb)
1781 SIGSTKFLT = syscall.Signal(0x10)
1782 SIGSTOP = syscall.Signal(0x13)
1783 SIGSYS = syscall.Signal(0x1f)
1784 SIGTERM = syscall.Signal(0xf)
1785 SIGTRAP = syscall.Signal(0x5)
1786 SIGTSTP = syscall.Signal(0x14)
1787 SIGTTIN = syscall.Signal(0x15)
1788 SIGTTOU = syscall.Signal(0x16)
1789 SIGUNUSED = syscall.Signal(0x1f)
1790 SIGURG = syscall.Signal(0x17)
1791 SIGUSR1 = syscall.Signal(0xa)
1792 SIGUSR2 = syscall.Signal(0xc)
1793 SIGVTALRM = syscall.Signal(0x1a)
1794 SIGWINCH = syscall.Signal(0x1c)
1795 SIGXCPU = syscall.Signal(0x18)
1796 SIGXFSZ = syscall.Signal(0x19)
1797)
1798
1799// Error table
1800var errors = [...]string{
1801 1: "operation not permitted",
1802 2: "no such file or directory",
1803 3: "no such process",
1804 4: "interrupted system call",
1805 5: "input/output error",
1806 6: "no such device or address",
1807 7: "argument list too long",
1808 8: "exec format error",
1809 9: "bad file descriptor",
1810 10: "no child processes",
1811 11: "resource temporarily unavailable",
1812 12: "cannot allocate memory",
1813 13: "permission denied",
1814 14: "bad address",
1815 15: "block device required",
1816 16: "device or resource busy",
1817 17: "file exists",
1818 18: "invalid cross-device link",
1819 19: "no such device",
1820 20: "not a directory",
1821 21: "is a directory",
1822 22: "invalid argument",
1823 23: "too many open files in system",
1824 24: "too many open files",
1825 25: "inappropriate ioctl for device",
1826 26: "text file busy",
1827 27: "file too large",
1828 28: "no space left on device",
1829 29: "illegal seek",
1830 30: "read-only file system",
1831 31: "too many links",
1832 32: "broken pipe",
1833 33: "numerical argument out of domain",
1834 34: "numerical result out of range",
1835 35: "resource deadlock avoided",
1836 36: "file name too long",
1837 37: "no locks available",
1838 38: "function not implemented",
1839 39: "directory not empty",
1840 40: "too many levels of symbolic links",
1841 42: "no message of desired type",
1842 43: "identifier removed",
1843 44: "channel number out of range",
1844 45: "level 2 not synchronized",
1845 46: "level 3 halted",
1846 47: "level 3 reset",
1847 48: "link number out of range",
1848 49: "protocol driver not attached",
1849 50: "no CSI structure available",
1850 51: "level 2 halted",
1851 52: "invalid exchange",
1852 53: "invalid request descriptor",
1853 54: "exchange full",
1854 55: "no anode",
1855 56: "invalid request code",
1856 57: "invalid slot",
1857 58: "file locking deadlock error",
1858 59: "bad font file format",
1859 60: "device not a stream",
1860 61: "no data available",
1861 62: "timer expired",
1862 63: "out of streams resources",
1863 64: "machine is not on the network",
1864 65: "package not installed",
1865 66: "object is remote",
1866 67: "link has been severed",
1867 68: "advertise error",
1868 69: "srmount error",
1869 70: "communication error on send",
1870 71: "protocol error",
1871 72: "multihop attempted",
1872 73: "RFS specific error",
1873 74: "bad message",
1874 75: "value too large for defined data type",
1875 76: "name not unique on network",
1876 77: "file descriptor in bad state",
1877 78: "remote address changed",
1878 79: "can not access a needed shared library",
1879 80: "accessing a corrupted shared library",
1880 81: ".lib section in a.out corrupted",
1881 82: "attempting to link in too many shared libraries",
1882 83: "cannot exec a shared library directly",
1883 84: "invalid or incomplete multibyte or wide character",
1884 85: "interrupted system call should be restarted",
1885 86: "streams pipe error",
1886 87: "too many users",
1887 88: "socket operation on non-socket",
1888 89: "destination address required",
1889 90: "message too long",
1890 91: "protocol wrong type for socket",
1891 92: "protocol not available",
1892 93: "protocol not supported",
1893 94: "socket type not supported",
1894 95: "operation not supported",
1895 96: "protocol family not supported",
1896 97: "address family not supported by protocol",
1897 98: "address already in use",
1898 99: "cannot assign requested address",
1899 100: "network is down",
1900 101: "network is unreachable",
1901 102: "network dropped connection on reset",
1902 103: "software caused connection abort",
1903 104: "connection reset by peer",
1904 105: "no buffer space available",
1905 106: "transport endpoint is already connected",
1906 107: "transport endpoint is not connected",
1907 108: "cannot send after transport endpoint shutdown",
1908 109: "too many references: cannot splice",
1909 110: "connection timed out",
1910 111: "connection refused",
1911 112: "host is down",
1912 113: "no route to host",
1913 114: "operation already in progress",
1914 115: "operation now in progress",
1915 116: "stale file handle",
1916 117: "structure needs cleaning",
1917 118: "not a XENIX named type file",
1918 119: "no XENIX semaphores available",
1919 120: "is a named type file",
1920 121: "remote I/O error",
1921 122: "disk quota exceeded",
1922 123: "no medium found",
1923 124: "wrong medium type",
1924 125: "operation canceled",
1925 126: "required key not available",
1926 127: "key has expired",
1927 128: "key has been revoked",
1928 129: "key was rejected by service",
1929 130: "owner died",
1930 131: "state not recoverable",
1931 132: "operation not possible due to RF-kill",
1932 133: "memory page has hardware error",
1933}
1934
1935// Signal table
1936var signals = [...]string{
1937 1: "hangup",
1938 2: "interrupt",
1939 3: "quit",
1940 4: "illegal instruction",
1941 5: "trace/breakpoint trap",
1942 6: "aborted",
1943 7: "bus error",
1944 8: "floating point exception",
1945 9: "killed",
1946 10: "user defined signal 1",
1947 11: "segmentation fault",
1948 12: "user defined signal 2",
1949 13: "broken pipe",
1950 14: "alarm clock",
1951 15: "terminated",
1952 16: "stack fault",
1953 17: "child exited",
1954 18: "continued",
1955 19: "stopped (signal)",
1956 20: "stopped",
1957 21: "stopped (tty input)",
1958 22: "stopped (tty output)",
1959 23: "urgent I/O condition",
1960 24: "CPU time limit exceeded",
1961 25: "file size limit exceeded",
1962 26: "virtual timer expired",
1963 27: "profiling timer expired",
1964 28: "window changed",
1965 29: "I/O possible",
1966 30: "power failure",
1967 31: "bad system call",
1968}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_386.go
deleted file mode 100644
index b4338d5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_386.go
+++ /dev/null
@@ -1,1712 +0,0 @@
1// mkerrors.sh -m32
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,netbsd
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m32 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_ARP = 0x1c
16 AF_BLUETOOTH = 0x1f
17 AF_CCITT = 0xa
18 AF_CHAOS = 0x5
19 AF_CNT = 0x15
20 AF_COIP = 0x14
21 AF_DATAKIT = 0x9
22 AF_DECnet = 0xc
23 AF_DLI = 0xd
24 AF_E164 = 0x1a
25 AF_ECMA = 0x8
26 AF_HYLINK = 0xf
27 AF_IEEE80211 = 0x20
28 AF_IMPLINK = 0x3
29 AF_INET = 0x2
30 AF_INET6 = 0x18
31 AF_IPX = 0x17
32 AF_ISDN = 0x1a
33 AF_ISO = 0x7
34 AF_LAT = 0xe
35 AF_LINK = 0x12
36 AF_LOCAL = 0x1
37 AF_MAX = 0x23
38 AF_MPLS = 0x21
39 AF_NATM = 0x1b
40 AF_NS = 0x6
41 AF_OROUTE = 0x11
42 AF_OSI = 0x7
43 AF_PUP = 0x4
44 AF_ROUTE = 0x22
45 AF_SNA = 0xb
46 AF_UNIX = 0x1
47 AF_UNSPEC = 0x0
48 ARPHRD_ARCNET = 0x7
49 ARPHRD_ETHER = 0x1
50 ARPHRD_FRELAY = 0xf
51 ARPHRD_IEEE1394 = 0x18
52 ARPHRD_IEEE802 = 0x6
53 ARPHRD_STRIP = 0x17
54 B0 = 0x0
55 B110 = 0x6e
56 B115200 = 0x1c200
57 B1200 = 0x4b0
58 B134 = 0x86
59 B14400 = 0x3840
60 B150 = 0x96
61 B1800 = 0x708
62 B19200 = 0x4b00
63 B200 = 0xc8
64 B230400 = 0x38400
65 B2400 = 0x960
66 B28800 = 0x7080
67 B300 = 0x12c
68 B38400 = 0x9600
69 B460800 = 0x70800
70 B4800 = 0x12c0
71 B50 = 0x32
72 B57600 = 0xe100
73 B600 = 0x258
74 B7200 = 0x1c20
75 B75 = 0x4b
76 B76800 = 0x12c00
77 B921600 = 0xe1000
78 B9600 = 0x2580
79 BIOCFEEDBACK = 0x8004427d
80 BIOCFLUSH = 0x20004268
81 BIOCGBLEN = 0x40044266
82 BIOCGDLT = 0x4004426a
83 BIOCGDLTLIST = 0xc0084277
84 BIOCGETIF = 0x4090426b
85 BIOCGFEEDBACK = 0x4004427c
86 BIOCGHDRCMPLT = 0x40044274
87 BIOCGRTIMEOUT = 0x400c427b
88 BIOCGSEESENT = 0x40044278
89 BIOCGSTATS = 0x4080426f
90 BIOCGSTATSOLD = 0x4008426f
91 BIOCIMMEDIATE = 0x80044270
92 BIOCPROMISC = 0x20004269
93 BIOCSBLEN = 0xc0044266
94 BIOCSDLT = 0x80044276
95 BIOCSETF = 0x80084267
96 BIOCSETIF = 0x8090426c
97 BIOCSFEEDBACK = 0x8004427d
98 BIOCSHDRCMPLT = 0x80044275
99 BIOCSRTIMEOUT = 0x800c427a
100 BIOCSSEESENT = 0x80044279
101 BIOCSTCPF = 0x80084272
102 BIOCSUDPF = 0x80084273
103 BIOCVERSION = 0x40044271
104 BPF_A = 0x10
105 BPF_ABS = 0x20
106 BPF_ADD = 0x0
107 BPF_ALIGNMENT = 0x4
108 BPF_ALIGNMENT32 = 0x4
109 BPF_ALU = 0x4
110 BPF_AND = 0x50
111 BPF_B = 0x10
112 BPF_DFLTBUFSIZE = 0x100000
113 BPF_DIV = 0x30
114 BPF_H = 0x8
115 BPF_IMM = 0x0
116 BPF_IND = 0x40
117 BPF_JA = 0x0
118 BPF_JEQ = 0x10
119 BPF_JGE = 0x30
120 BPF_JGT = 0x20
121 BPF_JMP = 0x5
122 BPF_JSET = 0x40
123 BPF_K = 0x0
124 BPF_LD = 0x0
125 BPF_LDX = 0x1
126 BPF_LEN = 0x80
127 BPF_LSH = 0x60
128 BPF_MAJOR_VERSION = 0x1
129 BPF_MAXBUFSIZE = 0x1000000
130 BPF_MAXINSNS = 0x200
131 BPF_MEM = 0x60
132 BPF_MEMWORDS = 0x10
133 BPF_MINBUFSIZE = 0x20
134 BPF_MINOR_VERSION = 0x1
135 BPF_MISC = 0x7
136 BPF_MSH = 0xa0
137 BPF_MUL = 0x20
138 BPF_NEG = 0x80
139 BPF_OR = 0x40
140 BPF_RELEASE = 0x30bb6
141 BPF_RET = 0x6
142 BPF_RSH = 0x70
143 BPF_ST = 0x2
144 BPF_STX = 0x3
145 BPF_SUB = 0x10
146 BPF_TAX = 0x0
147 BPF_TXA = 0x80
148 BPF_W = 0x0
149 BPF_X = 0x8
150 BRKINT = 0x2
151 CFLUSH = 0xf
152 CLOCAL = 0x8000
153 CLONE_CSIGNAL = 0xff
154 CLONE_FILES = 0x400
155 CLONE_FS = 0x200
156 CLONE_PID = 0x1000
157 CLONE_PTRACE = 0x2000
158 CLONE_SIGHAND = 0x800
159 CLONE_VFORK = 0x4000
160 CLONE_VM = 0x100
161 CREAD = 0x800
162 CS5 = 0x0
163 CS6 = 0x100
164 CS7 = 0x200
165 CS8 = 0x300
166 CSIZE = 0x300
167 CSTART = 0x11
168 CSTATUS = 0x14
169 CSTOP = 0x13
170 CSTOPB = 0x400
171 CSUSP = 0x1a
172 CTL_MAXNAME = 0xc
173 CTL_NET = 0x4
174 CTL_QUERY = -0x2
175 DIOCBSFLUSH = 0x20006478
176 DLT_A429 = 0xb8
177 DLT_A653_ICM = 0xb9
178 DLT_AIRONET_HEADER = 0x78
179 DLT_AOS = 0xde
180 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
181 DLT_ARCNET = 0x7
182 DLT_ARCNET_LINUX = 0x81
183 DLT_ATM_CLIP = 0x13
184 DLT_ATM_RFC1483 = 0xb
185 DLT_AURORA = 0x7e
186 DLT_AX25 = 0x3
187 DLT_AX25_KISS = 0xca
188 DLT_BACNET_MS_TP = 0xa5
189 DLT_BLUETOOTH_HCI_H4 = 0xbb
190 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
191 DLT_CAN20B = 0xbe
192 DLT_CAN_SOCKETCAN = 0xe3
193 DLT_CHAOS = 0x5
194 DLT_CISCO_IOS = 0x76
195 DLT_C_HDLC = 0x68
196 DLT_C_HDLC_WITH_DIR = 0xcd
197 DLT_DECT = 0xdd
198 DLT_DOCSIS = 0x8f
199 DLT_ECONET = 0x73
200 DLT_EN10MB = 0x1
201 DLT_EN3MB = 0x2
202 DLT_ENC = 0x6d
203 DLT_ERF = 0xc5
204 DLT_ERF_ETH = 0xaf
205 DLT_ERF_POS = 0xb0
206 DLT_FC_2 = 0xe0
207 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
208 DLT_FDDI = 0xa
209 DLT_FLEXRAY = 0xd2
210 DLT_FRELAY = 0x6b
211 DLT_FRELAY_WITH_DIR = 0xce
212 DLT_GCOM_SERIAL = 0xad
213 DLT_GCOM_T1E1 = 0xac
214 DLT_GPF_F = 0xab
215 DLT_GPF_T = 0xaa
216 DLT_GPRS_LLC = 0xa9
217 DLT_GSMTAP_ABIS = 0xda
218 DLT_GSMTAP_UM = 0xd9
219 DLT_HDLC = 0x10
220 DLT_HHDLC = 0x79
221 DLT_HIPPI = 0xf
222 DLT_IBM_SN = 0x92
223 DLT_IBM_SP = 0x91
224 DLT_IEEE802 = 0x6
225 DLT_IEEE802_11 = 0x69
226 DLT_IEEE802_11_RADIO = 0x7f
227 DLT_IEEE802_11_RADIO_AVS = 0xa3
228 DLT_IEEE802_15_4 = 0xc3
229 DLT_IEEE802_15_4_LINUX = 0xbf
230 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
231 DLT_IEEE802_16_MAC_CPS = 0xbc
232 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
233 DLT_IPMB = 0xc7
234 DLT_IPMB_LINUX = 0xd1
235 DLT_IPNET = 0xe2
236 DLT_IPV4 = 0xe4
237 DLT_IPV6 = 0xe5
238 DLT_IP_OVER_FC = 0x7a
239 DLT_JUNIPER_ATM1 = 0x89
240 DLT_JUNIPER_ATM2 = 0x87
241 DLT_JUNIPER_CHDLC = 0xb5
242 DLT_JUNIPER_ES = 0x84
243 DLT_JUNIPER_ETHER = 0xb2
244 DLT_JUNIPER_FRELAY = 0xb4
245 DLT_JUNIPER_GGSN = 0x85
246 DLT_JUNIPER_ISM = 0xc2
247 DLT_JUNIPER_MFR = 0x86
248 DLT_JUNIPER_MLFR = 0x83
249 DLT_JUNIPER_MLPPP = 0x82
250 DLT_JUNIPER_MONITOR = 0xa4
251 DLT_JUNIPER_PIC_PEER = 0xae
252 DLT_JUNIPER_PPP = 0xb3
253 DLT_JUNIPER_PPPOE = 0xa7
254 DLT_JUNIPER_PPPOE_ATM = 0xa8
255 DLT_JUNIPER_SERVICES = 0x88
256 DLT_JUNIPER_ST = 0xc8
257 DLT_JUNIPER_VP = 0xb7
258 DLT_LAPB_WITH_DIR = 0xcf
259 DLT_LAPD = 0xcb
260 DLT_LIN = 0xd4
261 DLT_LINUX_EVDEV = 0xd8
262 DLT_LINUX_IRDA = 0x90
263 DLT_LINUX_LAPD = 0xb1
264 DLT_LINUX_SLL = 0x71
265 DLT_LOOP = 0x6c
266 DLT_LTALK = 0x72
267 DLT_MFR = 0xb6
268 DLT_MOST = 0xd3
269 DLT_MPLS = 0xdb
270 DLT_MTP2 = 0x8c
271 DLT_MTP2_WITH_PHDR = 0x8b
272 DLT_MTP3 = 0x8d
273 DLT_NULL = 0x0
274 DLT_PCI_EXP = 0x7d
275 DLT_PFLOG = 0x75
276 DLT_PFSYNC = 0x12
277 DLT_PPI = 0xc0
278 DLT_PPP = 0x9
279 DLT_PPP_BSDOS = 0xe
280 DLT_PPP_ETHER = 0x33
281 DLT_PPP_PPPD = 0xa6
282 DLT_PPP_SERIAL = 0x32
283 DLT_PPP_WITH_DIR = 0xcc
284 DLT_PRISM_HEADER = 0x77
285 DLT_PRONET = 0x4
286 DLT_RAIF1 = 0xc6
287 DLT_RAW = 0xc
288 DLT_RAWAF_MASK = 0x2240000
289 DLT_RIO = 0x7c
290 DLT_SCCP = 0x8e
291 DLT_SITA = 0xc4
292 DLT_SLIP = 0x8
293 DLT_SLIP_BSDOS = 0xd
294 DLT_SUNATM = 0x7b
295 DLT_SYMANTEC_FIREWALL = 0x63
296 DLT_TZSP = 0x80
297 DLT_USB = 0xba
298 DLT_USB_LINUX = 0xbd
299 DLT_USB_LINUX_MMAPPED = 0xdc
300 DLT_WIHART = 0xdf
301 DLT_X2E_SERIAL = 0xd5
302 DLT_X2E_XORAYA = 0xd6
303 DT_BLK = 0x6
304 DT_CHR = 0x2
305 DT_DIR = 0x4
306 DT_FIFO = 0x1
307 DT_LNK = 0xa
308 DT_REG = 0x8
309 DT_SOCK = 0xc
310 DT_UNKNOWN = 0x0
311 DT_WHT = 0xe
312 ECHO = 0x8
313 ECHOCTL = 0x40
314 ECHOE = 0x2
315 ECHOK = 0x4
316 ECHOKE = 0x1
317 ECHONL = 0x10
318 ECHOPRT = 0x20
319 EMUL_LINUX = 0x1
320 EMUL_LINUX32 = 0x5
321 EMUL_MAXID = 0x6
322 EN_SW_CTL_INF = 0x1000
323 EN_SW_CTL_PREC = 0x300
324 EN_SW_CTL_ROUND = 0xc00
325 EN_SW_DATACHAIN = 0x80
326 EN_SW_DENORM = 0x2
327 EN_SW_INVOP = 0x1
328 EN_SW_OVERFLOW = 0x8
329 EN_SW_PRECLOSS = 0x20
330 EN_SW_UNDERFLOW = 0x10
331 EN_SW_ZERODIV = 0x4
332 ETHERCAP_JUMBO_MTU = 0x4
333 ETHERCAP_VLAN_HWTAGGING = 0x2
334 ETHERCAP_VLAN_MTU = 0x1
335 ETHERMIN = 0x2e
336 ETHERMTU = 0x5dc
337 ETHERMTU_JUMBO = 0x2328
338 ETHERTYPE_8023 = 0x4
339 ETHERTYPE_AARP = 0x80f3
340 ETHERTYPE_ACCTON = 0x8390
341 ETHERTYPE_AEONIC = 0x8036
342 ETHERTYPE_ALPHA = 0x814a
343 ETHERTYPE_AMBER = 0x6008
344 ETHERTYPE_AMOEBA = 0x8145
345 ETHERTYPE_APOLLO = 0x80f7
346 ETHERTYPE_APOLLODOMAIN = 0x8019
347 ETHERTYPE_APPLETALK = 0x809b
348 ETHERTYPE_APPLITEK = 0x80c7
349 ETHERTYPE_ARGONAUT = 0x803a
350 ETHERTYPE_ARP = 0x806
351 ETHERTYPE_AT = 0x809b
352 ETHERTYPE_ATALK = 0x809b
353 ETHERTYPE_ATOMIC = 0x86df
354 ETHERTYPE_ATT = 0x8069
355 ETHERTYPE_ATTSTANFORD = 0x8008
356 ETHERTYPE_AUTOPHON = 0x806a
357 ETHERTYPE_AXIS = 0x8856
358 ETHERTYPE_BCLOOP = 0x9003
359 ETHERTYPE_BOFL = 0x8102
360 ETHERTYPE_CABLETRON = 0x7034
361 ETHERTYPE_CHAOS = 0x804
362 ETHERTYPE_COMDESIGN = 0x806c
363 ETHERTYPE_COMPUGRAPHIC = 0x806d
364 ETHERTYPE_COUNTERPOINT = 0x8062
365 ETHERTYPE_CRONUS = 0x8004
366 ETHERTYPE_CRONUSVLN = 0x8003
367 ETHERTYPE_DCA = 0x1234
368 ETHERTYPE_DDE = 0x807b
369 ETHERTYPE_DEBNI = 0xaaaa
370 ETHERTYPE_DECAM = 0x8048
371 ETHERTYPE_DECCUST = 0x6006
372 ETHERTYPE_DECDIAG = 0x6005
373 ETHERTYPE_DECDNS = 0x803c
374 ETHERTYPE_DECDTS = 0x803e
375 ETHERTYPE_DECEXPER = 0x6000
376 ETHERTYPE_DECLAST = 0x8041
377 ETHERTYPE_DECLTM = 0x803f
378 ETHERTYPE_DECMUMPS = 0x6009
379 ETHERTYPE_DECNETBIOS = 0x8040
380 ETHERTYPE_DELTACON = 0x86de
381 ETHERTYPE_DIDDLE = 0x4321
382 ETHERTYPE_DLOG1 = 0x660
383 ETHERTYPE_DLOG2 = 0x661
384 ETHERTYPE_DN = 0x6003
385 ETHERTYPE_DOGFIGHT = 0x1989
386 ETHERTYPE_DSMD = 0x8039
387 ETHERTYPE_ECMA = 0x803
388 ETHERTYPE_ENCRYPT = 0x803d
389 ETHERTYPE_ES = 0x805d
390 ETHERTYPE_EXCELAN = 0x8010
391 ETHERTYPE_EXPERDATA = 0x8049
392 ETHERTYPE_FLIP = 0x8146
393 ETHERTYPE_FLOWCONTROL = 0x8808
394 ETHERTYPE_FRARP = 0x808
395 ETHERTYPE_GENDYN = 0x8068
396 ETHERTYPE_HAYES = 0x8130
397 ETHERTYPE_HIPPI_FP = 0x8180
398 ETHERTYPE_HITACHI = 0x8820
399 ETHERTYPE_HP = 0x8005
400 ETHERTYPE_IEEEPUP = 0xa00
401 ETHERTYPE_IEEEPUPAT = 0xa01
402 ETHERTYPE_IMLBL = 0x4c42
403 ETHERTYPE_IMLBLDIAG = 0x424c
404 ETHERTYPE_IP = 0x800
405 ETHERTYPE_IPAS = 0x876c
406 ETHERTYPE_IPV6 = 0x86dd
407 ETHERTYPE_IPX = 0x8137
408 ETHERTYPE_IPXNEW = 0x8037
409 ETHERTYPE_KALPANA = 0x8582
410 ETHERTYPE_LANBRIDGE = 0x8038
411 ETHERTYPE_LANPROBE = 0x8888
412 ETHERTYPE_LAT = 0x6004
413 ETHERTYPE_LBACK = 0x9000
414 ETHERTYPE_LITTLE = 0x8060
415 ETHERTYPE_LOGICRAFT = 0x8148
416 ETHERTYPE_LOOPBACK = 0x9000
417 ETHERTYPE_MATRA = 0x807a
418 ETHERTYPE_MAX = 0xffff
419 ETHERTYPE_MERIT = 0x807c
420 ETHERTYPE_MICP = 0x873a
421 ETHERTYPE_MOPDL = 0x6001
422 ETHERTYPE_MOPRC = 0x6002
423 ETHERTYPE_MOTOROLA = 0x818d
424 ETHERTYPE_MPLS = 0x8847
425 ETHERTYPE_MPLS_MCAST = 0x8848
426 ETHERTYPE_MUMPS = 0x813f
427 ETHERTYPE_NBPCC = 0x3c04
428 ETHERTYPE_NBPCLAIM = 0x3c09
429 ETHERTYPE_NBPCLREQ = 0x3c05
430 ETHERTYPE_NBPCLRSP = 0x3c06
431 ETHERTYPE_NBPCREQ = 0x3c02
432 ETHERTYPE_NBPCRSP = 0x3c03
433 ETHERTYPE_NBPDG = 0x3c07
434 ETHERTYPE_NBPDGB = 0x3c08
435 ETHERTYPE_NBPDLTE = 0x3c0a
436 ETHERTYPE_NBPRAR = 0x3c0c
437 ETHERTYPE_NBPRAS = 0x3c0b
438 ETHERTYPE_NBPRST = 0x3c0d
439 ETHERTYPE_NBPSCD = 0x3c01
440 ETHERTYPE_NBPVCD = 0x3c00
441 ETHERTYPE_NBS = 0x802
442 ETHERTYPE_NCD = 0x8149
443 ETHERTYPE_NESTAR = 0x8006
444 ETHERTYPE_NETBEUI = 0x8191
445 ETHERTYPE_NOVELL = 0x8138
446 ETHERTYPE_NS = 0x600
447 ETHERTYPE_NSAT = 0x601
448 ETHERTYPE_NSCOMPAT = 0x807
449 ETHERTYPE_NTRAILER = 0x10
450 ETHERTYPE_OS9 = 0x7007
451 ETHERTYPE_OS9NET = 0x7009
452 ETHERTYPE_PACER = 0x80c6
453 ETHERTYPE_PAE = 0x888e
454 ETHERTYPE_PCS = 0x4242
455 ETHERTYPE_PLANNING = 0x8044
456 ETHERTYPE_PPP = 0x880b
457 ETHERTYPE_PPPOE = 0x8864
458 ETHERTYPE_PPPOEDISC = 0x8863
459 ETHERTYPE_PRIMENTS = 0x7031
460 ETHERTYPE_PUP = 0x200
461 ETHERTYPE_PUPAT = 0x200
462 ETHERTYPE_RACAL = 0x7030
463 ETHERTYPE_RATIONAL = 0x8150
464 ETHERTYPE_RAWFR = 0x6559
465 ETHERTYPE_RCL = 0x1995
466 ETHERTYPE_RDP = 0x8739
467 ETHERTYPE_RETIX = 0x80f2
468 ETHERTYPE_REVARP = 0x8035
469 ETHERTYPE_SCA = 0x6007
470 ETHERTYPE_SECTRA = 0x86db
471 ETHERTYPE_SECUREDATA = 0x876d
472 ETHERTYPE_SGITW = 0x817e
473 ETHERTYPE_SG_BOUNCE = 0x8016
474 ETHERTYPE_SG_DIAG = 0x8013
475 ETHERTYPE_SG_NETGAMES = 0x8014
476 ETHERTYPE_SG_RESV = 0x8015
477 ETHERTYPE_SIMNET = 0x5208
478 ETHERTYPE_SLOWPROTOCOLS = 0x8809
479 ETHERTYPE_SNA = 0x80d5
480 ETHERTYPE_SNMP = 0x814c
481 ETHERTYPE_SONIX = 0xfaf5
482 ETHERTYPE_SPIDER = 0x809f
483 ETHERTYPE_SPRITE = 0x500
484 ETHERTYPE_STP = 0x8181
485 ETHERTYPE_TALARIS = 0x812b
486 ETHERTYPE_TALARISMC = 0x852b
487 ETHERTYPE_TCPCOMP = 0x876b
488 ETHERTYPE_TCPSM = 0x9002
489 ETHERTYPE_TEC = 0x814f
490 ETHERTYPE_TIGAN = 0x802f
491 ETHERTYPE_TRAIL = 0x1000
492 ETHERTYPE_TRANSETHER = 0x6558
493 ETHERTYPE_TYMSHARE = 0x802e
494 ETHERTYPE_UBBST = 0x7005
495 ETHERTYPE_UBDEBUG = 0x900
496 ETHERTYPE_UBDIAGLOOP = 0x7002
497 ETHERTYPE_UBDL = 0x7000
498 ETHERTYPE_UBNIU = 0x7001
499 ETHERTYPE_UBNMC = 0x7003
500 ETHERTYPE_VALID = 0x1600
501 ETHERTYPE_VARIAN = 0x80dd
502 ETHERTYPE_VAXELN = 0x803b
503 ETHERTYPE_VEECO = 0x8067
504 ETHERTYPE_VEXP = 0x805b
505 ETHERTYPE_VGLAB = 0x8131
506 ETHERTYPE_VINES = 0xbad
507 ETHERTYPE_VINESECHO = 0xbaf
508 ETHERTYPE_VINESLOOP = 0xbae
509 ETHERTYPE_VITAL = 0xff00
510 ETHERTYPE_VLAN = 0x8100
511 ETHERTYPE_VLTLMAN = 0x8080
512 ETHERTYPE_VPROD = 0x805c
513 ETHERTYPE_VURESERVED = 0x8147
514 ETHERTYPE_WATERLOO = 0x8130
515 ETHERTYPE_WELLFLEET = 0x8103
516 ETHERTYPE_X25 = 0x805
517 ETHERTYPE_X75 = 0x801
518 ETHERTYPE_XNSSM = 0x9001
519 ETHERTYPE_XTP = 0x817d
520 ETHER_ADDR_LEN = 0x6
521 ETHER_CRC_LEN = 0x4
522 ETHER_CRC_POLY_BE = 0x4c11db6
523 ETHER_CRC_POLY_LE = 0xedb88320
524 ETHER_HDR_LEN = 0xe
525 ETHER_MAX_LEN = 0x5ee
526 ETHER_MAX_LEN_JUMBO = 0x233a
527 ETHER_MIN_LEN = 0x40
528 ETHER_PPPOE_ENCAP_LEN = 0x8
529 ETHER_TYPE_LEN = 0x2
530 ETHER_VLAN_ENCAP_LEN = 0x4
531 EVFILT_AIO = 0x2
532 EVFILT_PROC = 0x4
533 EVFILT_READ = 0x0
534 EVFILT_SIGNAL = 0x5
535 EVFILT_SYSCOUNT = 0x7
536 EVFILT_TIMER = 0x6
537 EVFILT_VNODE = 0x3
538 EVFILT_WRITE = 0x1
539 EV_ADD = 0x1
540 EV_CLEAR = 0x20
541 EV_DELETE = 0x2
542 EV_DISABLE = 0x8
543 EV_ENABLE = 0x4
544 EV_EOF = 0x8000
545 EV_ERROR = 0x4000
546 EV_FLAG1 = 0x2000
547 EV_ONESHOT = 0x10
548 EV_SYSFLAGS = 0xf000
549 EXTA = 0x4b00
550 EXTB = 0x9600
551 EXTPROC = 0x800
552 FD_CLOEXEC = 0x1
553 FD_SETSIZE = 0x100
554 FLUSHO = 0x800000
555 F_CLOSEM = 0xa
556 F_DUPFD = 0x0
557 F_DUPFD_CLOEXEC = 0xc
558 F_FSCTL = -0x80000000
559 F_FSDIRMASK = 0x70000000
560 F_FSIN = 0x10000000
561 F_FSINOUT = 0x30000000
562 F_FSOUT = 0x20000000
563 F_FSPRIV = 0x8000
564 F_FSVOID = 0x40000000
565 F_GETFD = 0x1
566 F_GETFL = 0x3
567 F_GETLK = 0x7
568 F_GETNOSIGPIPE = 0xd
569 F_GETOWN = 0x5
570 F_MAXFD = 0xb
571 F_OK = 0x0
572 F_PARAM_MASK = 0xfff
573 F_PARAM_MAX = 0xfff
574 F_RDLCK = 0x1
575 F_SETFD = 0x2
576 F_SETFL = 0x4
577 F_SETLK = 0x8
578 F_SETLKW = 0x9
579 F_SETNOSIGPIPE = 0xe
580 F_SETOWN = 0x6
581 F_UNLCK = 0x2
582 F_WRLCK = 0x3
583 HUPCL = 0x4000
584 ICANON = 0x100
585 ICMP6_FILTER = 0x12
586 ICRNL = 0x100
587 IEXTEN = 0x400
588 IFAN_ARRIVAL = 0x0
589 IFAN_DEPARTURE = 0x1
590 IFA_ROUTE = 0x1
591 IFF_ALLMULTI = 0x200
592 IFF_BROADCAST = 0x2
593 IFF_CANTCHANGE = 0x8f52
594 IFF_DEBUG = 0x4
595 IFF_LINK0 = 0x1000
596 IFF_LINK1 = 0x2000
597 IFF_LINK2 = 0x4000
598 IFF_LOOPBACK = 0x8
599 IFF_MULTICAST = 0x8000
600 IFF_NOARP = 0x80
601 IFF_NOTRAILERS = 0x20
602 IFF_OACTIVE = 0x400
603 IFF_POINTOPOINT = 0x10
604 IFF_PROMISC = 0x100
605 IFF_RUNNING = 0x40
606 IFF_SIMPLEX = 0x800
607 IFF_UP = 0x1
608 IFNAMSIZ = 0x10
609 IFT_1822 = 0x2
610 IFT_A12MPPSWITCH = 0x82
611 IFT_AAL2 = 0xbb
612 IFT_AAL5 = 0x31
613 IFT_ADSL = 0x5e
614 IFT_AFLANE8023 = 0x3b
615 IFT_AFLANE8025 = 0x3c
616 IFT_ARAP = 0x58
617 IFT_ARCNET = 0x23
618 IFT_ARCNETPLUS = 0x24
619 IFT_ASYNC = 0x54
620 IFT_ATM = 0x25
621 IFT_ATMDXI = 0x69
622 IFT_ATMFUNI = 0x6a
623 IFT_ATMIMA = 0x6b
624 IFT_ATMLOGICAL = 0x50
625 IFT_ATMRADIO = 0xbd
626 IFT_ATMSUBINTERFACE = 0x86
627 IFT_ATMVCIENDPT = 0xc2
628 IFT_ATMVIRTUAL = 0x95
629 IFT_BGPPOLICYACCOUNTING = 0xa2
630 IFT_BRIDGE = 0xd1
631 IFT_BSC = 0x53
632 IFT_CARP = 0xf8
633 IFT_CCTEMUL = 0x3d
634 IFT_CEPT = 0x13
635 IFT_CES = 0x85
636 IFT_CHANNEL = 0x46
637 IFT_CNR = 0x55
638 IFT_COFFEE = 0x84
639 IFT_COMPOSITELINK = 0x9b
640 IFT_DCN = 0x8d
641 IFT_DIGITALPOWERLINE = 0x8a
642 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
643 IFT_DLSW = 0x4a
644 IFT_DOCSCABLEDOWNSTREAM = 0x80
645 IFT_DOCSCABLEMACLAYER = 0x7f
646 IFT_DOCSCABLEUPSTREAM = 0x81
647 IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd
648 IFT_DS0 = 0x51
649 IFT_DS0BUNDLE = 0x52
650 IFT_DS1FDL = 0xaa
651 IFT_DS3 = 0x1e
652 IFT_DTM = 0x8c
653 IFT_DVBASILN = 0xac
654 IFT_DVBASIOUT = 0xad
655 IFT_DVBRCCDOWNSTREAM = 0x93
656 IFT_DVBRCCMACLAYER = 0x92
657 IFT_DVBRCCUPSTREAM = 0x94
658 IFT_ECONET = 0xce
659 IFT_EON = 0x19
660 IFT_EPLRS = 0x57
661 IFT_ESCON = 0x49
662 IFT_ETHER = 0x6
663 IFT_FAITH = 0xf2
664 IFT_FAST = 0x7d
665 IFT_FASTETHER = 0x3e
666 IFT_FASTETHERFX = 0x45
667 IFT_FDDI = 0xf
668 IFT_FIBRECHANNEL = 0x38
669 IFT_FRAMERELAYINTERCONNECT = 0x3a
670 IFT_FRAMERELAYMPI = 0x5c
671 IFT_FRDLCIENDPT = 0xc1
672 IFT_FRELAY = 0x20
673 IFT_FRELAYDCE = 0x2c
674 IFT_FRF16MFRBUNDLE = 0xa3
675 IFT_FRFORWARD = 0x9e
676 IFT_G703AT2MB = 0x43
677 IFT_G703AT64K = 0x42
678 IFT_GIF = 0xf0
679 IFT_GIGABITETHERNET = 0x75
680 IFT_GR303IDT = 0xb2
681 IFT_GR303RDT = 0xb1
682 IFT_H323GATEKEEPER = 0xa4
683 IFT_H323PROXY = 0xa5
684 IFT_HDH1822 = 0x3
685 IFT_HDLC = 0x76
686 IFT_HDSL2 = 0xa8
687 IFT_HIPERLAN2 = 0xb7
688 IFT_HIPPI = 0x2f
689 IFT_HIPPIINTERFACE = 0x39
690 IFT_HOSTPAD = 0x5a
691 IFT_HSSI = 0x2e
692 IFT_HY = 0xe
693 IFT_IBM370PARCHAN = 0x48
694 IFT_IDSL = 0x9a
695 IFT_IEEE1394 = 0x90
696 IFT_IEEE80211 = 0x47
697 IFT_IEEE80212 = 0x37
698 IFT_IEEE8023ADLAG = 0xa1
699 IFT_IFGSN = 0x91
700 IFT_IMT = 0xbe
701 IFT_INFINIBAND = 0xc7
702 IFT_INTERLEAVE = 0x7c
703 IFT_IP = 0x7e
704 IFT_IPFORWARD = 0x8e
705 IFT_IPOVERATM = 0x72
706 IFT_IPOVERCDLC = 0x6d
707 IFT_IPOVERCLAW = 0x6e
708 IFT_IPSWITCH = 0x4e
709 IFT_ISDN = 0x3f
710 IFT_ISDNBASIC = 0x14
711 IFT_ISDNPRIMARY = 0x15
712 IFT_ISDNS = 0x4b
713 IFT_ISDNU = 0x4c
714 IFT_ISO88022LLC = 0x29
715 IFT_ISO88023 = 0x7
716 IFT_ISO88024 = 0x8
717 IFT_ISO88025 = 0x9
718 IFT_ISO88025CRFPINT = 0x62
719 IFT_ISO88025DTR = 0x56
720 IFT_ISO88025FIBER = 0x73
721 IFT_ISO88026 = 0xa
722 IFT_ISUP = 0xb3
723 IFT_L2VLAN = 0x87
724 IFT_L3IPVLAN = 0x88
725 IFT_L3IPXVLAN = 0x89
726 IFT_LAPB = 0x10
727 IFT_LAPD = 0x4d
728 IFT_LAPF = 0x77
729 IFT_LINEGROUP = 0xd2
730 IFT_LOCALTALK = 0x2a
731 IFT_LOOP = 0x18
732 IFT_MEDIAMAILOVERIP = 0x8b
733 IFT_MFSIGLINK = 0xa7
734 IFT_MIOX25 = 0x26
735 IFT_MODEM = 0x30
736 IFT_MPC = 0x71
737 IFT_MPLS = 0xa6
738 IFT_MPLSTUNNEL = 0x96
739 IFT_MSDSL = 0x8f
740 IFT_MVL = 0xbf
741 IFT_MYRINET = 0x63
742 IFT_NFAS = 0xaf
743 IFT_NSIP = 0x1b
744 IFT_OPTICALCHANNEL = 0xc3
745 IFT_OPTICALTRANSPORT = 0xc4
746 IFT_OTHER = 0x1
747 IFT_P10 = 0xc
748 IFT_P80 = 0xd
749 IFT_PARA = 0x22
750 IFT_PFLOG = 0xf5
751 IFT_PFSYNC = 0xf6
752 IFT_PLC = 0xae
753 IFT_PON155 = 0xcf
754 IFT_PON622 = 0xd0
755 IFT_POS = 0xab
756 IFT_PPP = 0x17
757 IFT_PPPMULTILINKBUNDLE = 0x6c
758 IFT_PROPATM = 0xc5
759 IFT_PROPBWAP2MP = 0xb8
760 IFT_PROPCNLS = 0x59
761 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
762 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
763 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
764 IFT_PROPMUX = 0x36
765 IFT_PROPVIRTUAL = 0x35
766 IFT_PROPWIRELESSP2P = 0x9d
767 IFT_PTPSERIAL = 0x16
768 IFT_PVC = 0xf1
769 IFT_Q2931 = 0xc9
770 IFT_QLLC = 0x44
771 IFT_RADIOMAC = 0xbc
772 IFT_RADSL = 0x5f
773 IFT_REACHDSL = 0xc0
774 IFT_RFC1483 = 0x9f
775 IFT_RS232 = 0x21
776 IFT_RSRB = 0x4f
777 IFT_SDLC = 0x11
778 IFT_SDSL = 0x60
779 IFT_SHDSL = 0xa9
780 IFT_SIP = 0x1f
781 IFT_SIPSIG = 0xcc
782 IFT_SIPTG = 0xcb
783 IFT_SLIP = 0x1c
784 IFT_SMDSDXI = 0x2b
785 IFT_SMDSICIP = 0x34
786 IFT_SONET = 0x27
787 IFT_SONETOVERHEADCHANNEL = 0xb9
788 IFT_SONETPATH = 0x32
789 IFT_SONETVT = 0x33
790 IFT_SRP = 0x97
791 IFT_SS7SIGLINK = 0x9c
792 IFT_STACKTOSTACK = 0x6f
793 IFT_STARLAN = 0xb
794 IFT_STF = 0xd7
795 IFT_T1 = 0x12
796 IFT_TDLC = 0x74
797 IFT_TELINK = 0xc8
798 IFT_TERMPAD = 0x5b
799 IFT_TR008 = 0xb0
800 IFT_TRANSPHDLC = 0x7b
801 IFT_TUNNEL = 0x83
802 IFT_ULTRA = 0x1d
803 IFT_USB = 0xa0
804 IFT_V11 = 0x40
805 IFT_V35 = 0x2d
806 IFT_V36 = 0x41
807 IFT_V37 = 0x78
808 IFT_VDSL = 0x61
809 IFT_VIRTUALIPADDRESS = 0x70
810 IFT_VIRTUALTG = 0xca
811 IFT_VOICEDID = 0xd5
812 IFT_VOICEEM = 0x64
813 IFT_VOICEEMFGD = 0xd3
814 IFT_VOICEENCAP = 0x67
815 IFT_VOICEFGDEANA = 0xd4
816 IFT_VOICEFXO = 0x65
817 IFT_VOICEFXS = 0x66
818 IFT_VOICEOVERATM = 0x98
819 IFT_VOICEOVERCABLE = 0xc6
820 IFT_VOICEOVERFRAMERELAY = 0x99
821 IFT_VOICEOVERIP = 0x68
822 IFT_X213 = 0x5d
823 IFT_X25 = 0x5
824 IFT_X25DDN = 0x4
825 IFT_X25HUNTGROUP = 0x7a
826 IFT_X25MLP = 0x79
827 IFT_X25PLE = 0x28
828 IFT_XETHER = 0x1a
829 IGNBRK = 0x1
830 IGNCR = 0x80
831 IGNPAR = 0x4
832 IMAXBEL = 0x2000
833 INLCR = 0x40
834 INPCK = 0x10
835 IN_CLASSA_HOST = 0xffffff
836 IN_CLASSA_MAX = 0x80
837 IN_CLASSA_NET = 0xff000000
838 IN_CLASSA_NSHIFT = 0x18
839 IN_CLASSB_HOST = 0xffff
840 IN_CLASSB_MAX = 0x10000
841 IN_CLASSB_NET = 0xffff0000
842 IN_CLASSB_NSHIFT = 0x10
843 IN_CLASSC_HOST = 0xff
844 IN_CLASSC_NET = 0xffffff00
845 IN_CLASSC_NSHIFT = 0x8
846 IN_CLASSD_HOST = 0xfffffff
847 IN_CLASSD_NET = 0xf0000000
848 IN_CLASSD_NSHIFT = 0x1c
849 IN_LOOPBACKNET = 0x7f
850 IPPROTO_AH = 0x33
851 IPPROTO_CARP = 0x70
852 IPPROTO_DONE = 0x101
853 IPPROTO_DSTOPTS = 0x3c
854 IPPROTO_EGP = 0x8
855 IPPROTO_ENCAP = 0x62
856 IPPROTO_EON = 0x50
857 IPPROTO_ESP = 0x32
858 IPPROTO_ETHERIP = 0x61
859 IPPROTO_FRAGMENT = 0x2c
860 IPPROTO_GGP = 0x3
861 IPPROTO_GRE = 0x2f
862 IPPROTO_HOPOPTS = 0x0
863 IPPROTO_ICMP = 0x1
864 IPPROTO_ICMPV6 = 0x3a
865 IPPROTO_IDP = 0x16
866 IPPROTO_IGMP = 0x2
867 IPPROTO_IP = 0x0
868 IPPROTO_IPCOMP = 0x6c
869 IPPROTO_IPIP = 0x4
870 IPPROTO_IPV4 = 0x4
871 IPPROTO_IPV6 = 0x29
872 IPPROTO_IPV6_ICMP = 0x3a
873 IPPROTO_MAX = 0x100
874 IPPROTO_MAXID = 0x34
875 IPPROTO_MOBILE = 0x37
876 IPPROTO_NONE = 0x3b
877 IPPROTO_PFSYNC = 0xf0
878 IPPROTO_PIM = 0x67
879 IPPROTO_PUP = 0xc
880 IPPROTO_RAW = 0xff
881 IPPROTO_ROUTING = 0x2b
882 IPPROTO_RSVP = 0x2e
883 IPPROTO_TCP = 0x6
884 IPPROTO_TP = 0x1d
885 IPPROTO_UDP = 0x11
886 IPPROTO_VRRP = 0x70
887 IPV6_CHECKSUM = 0x1a
888 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
889 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
890 IPV6_DEFHLIM = 0x40
891 IPV6_DONTFRAG = 0x3e
892 IPV6_DSTOPTS = 0x32
893 IPV6_FAITH = 0x1d
894 IPV6_FLOWINFO_MASK = 0xffffff0f
895 IPV6_FLOWLABEL_MASK = 0xffff0f00
896 IPV6_FRAGTTL = 0x78
897 IPV6_HLIMDEC = 0x1
898 IPV6_HOPLIMIT = 0x2f
899 IPV6_HOPOPTS = 0x31
900 IPV6_IPSEC_POLICY = 0x1c
901 IPV6_JOIN_GROUP = 0xc
902 IPV6_LEAVE_GROUP = 0xd
903 IPV6_MAXHLIM = 0xff
904 IPV6_MAXPACKET = 0xffff
905 IPV6_MMTU = 0x500
906 IPV6_MULTICAST_HOPS = 0xa
907 IPV6_MULTICAST_IF = 0x9
908 IPV6_MULTICAST_LOOP = 0xb
909 IPV6_NEXTHOP = 0x30
910 IPV6_PATHMTU = 0x2c
911 IPV6_PKTINFO = 0x2e
912 IPV6_PORTRANGE = 0xe
913 IPV6_PORTRANGE_DEFAULT = 0x0
914 IPV6_PORTRANGE_HIGH = 0x1
915 IPV6_PORTRANGE_LOW = 0x2
916 IPV6_RECVDSTOPTS = 0x28
917 IPV6_RECVHOPLIMIT = 0x25
918 IPV6_RECVHOPOPTS = 0x27
919 IPV6_RECVPATHMTU = 0x2b
920 IPV6_RECVPKTINFO = 0x24
921 IPV6_RECVRTHDR = 0x26
922 IPV6_RECVTCLASS = 0x39
923 IPV6_RTHDR = 0x33
924 IPV6_RTHDRDSTOPTS = 0x23
925 IPV6_RTHDR_LOOSE = 0x0
926 IPV6_RTHDR_STRICT = 0x1
927 IPV6_RTHDR_TYPE_0 = 0x0
928 IPV6_SOCKOPT_RESERVED1 = 0x3
929 IPV6_TCLASS = 0x3d
930 IPV6_UNICAST_HOPS = 0x4
931 IPV6_USE_MIN_MTU = 0x2a
932 IPV6_V6ONLY = 0x1b
933 IPV6_VERSION = 0x60
934 IPV6_VERSION_MASK = 0xf0
935 IP_ADD_MEMBERSHIP = 0xc
936 IP_DEFAULT_MULTICAST_LOOP = 0x1
937 IP_DEFAULT_MULTICAST_TTL = 0x1
938 IP_DF = 0x4000
939 IP_DROP_MEMBERSHIP = 0xd
940 IP_EF = 0x8000
941 IP_ERRORMTU = 0x15
942 IP_HDRINCL = 0x2
943 IP_IPSEC_POLICY = 0x16
944 IP_MAXPACKET = 0xffff
945 IP_MAX_MEMBERSHIPS = 0x14
946 IP_MF = 0x2000
947 IP_MINFRAGSIZE = 0x45
948 IP_MINTTL = 0x18
949 IP_MSS = 0x240
950 IP_MULTICAST_IF = 0x9
951 IP_MULTICAST_LOOP = 0xb
952 IP_MULTICAST_TTL = 0xa
953 IP_OFFMASK = 0x1fff
954 IP_OPTIONS = 0x1
955 IP_PORTRANGE = 0x13
956 IP_PORTRANGE_DEFAULT = 0x0
957 IP_PORTRANGE_HIGH = 0x1
958 IP_PORTRANGE_LOW = 0x2
959 IP_RECVDSTADDR = 0x7
960 IP_RECVIF = 0x14
961 IP_RECVOPTS = 0x5
962 IP_RECVRETOPTS = 0x6
963 IP_RECVTTL = 0x17
964 IP_RETOPTS = 0x8
965 IP_RF = 0x8000
966 IP_TOS = 0x3
967 IP_TTL = 0x4
968 ISIG = 0x80
969 ISTRIP = 0x20
970 IXANY = 0x800
971 IXOFF = 0x400
972 IXON = 0x200
973 LOCK_EX = 0x2
974 LOCK_NB = 0x4
975 LOCK_SH = 0x1
976 LOCK_UN = 0x8
977 MADV_DONTNEED = 0x4
978 MADV_FREE = 0x6
979 MADV_NORMAL = 0x0
980 MADV_RANDOM = 0x1
981 MADV_SEQUENTIAL = 0x2
982 MADV_SPACEAVAIL = 0x5
983 MADV_WILLNEED = 0x3
984 MAP_ALIGNMENT_16MB = 0x18000000
985 MAP_ALIGNMENT_1TB = 0x28000000
986 MAP_ALIGNMENT_256TB = 0x30000000
987 MAP_ALIGNMENT_4GB = 0x20000000
988 MAP_ALIGNMENT_64KB = 0x10000000
989 MAP_ALIGNMENT_64PB = 0x38000000
990 MAP_ALIGNMENT_MASK = -0x1000000
991 MAP_ALIGNMENT_SHIFT = 0x18
992 MAP_ANON = 0x1000
993 MAP_FILE = 0x0
994 MAP_FIXED = 0x10
995 MAP_HASSEMAPHORE = 0x200
996 MAP_INHERIT = 0x80
997 MAP_INHERIT_COPY = 0x1
998 MAP_INHERIT_DEFAULT = 0x1
999 MAP_INHERIT_DONATE_COPY = 0x3
1000 MAP_INHERIT_NONE = 0x2
1001 MAP_INHERIT_SHARE = 0x0
1002 MAP_NORESERVE = 0x40
1003 MAP_PRIVATE = 0x2
1004 MAP_RENAME = 0x20
1005 MAP_SHARED = 0x1
1006 MAP_STACK = 0x2000
1007 MAP_TRYFIXED = 0x400
1008 MAP_WIRED = 0x800
1009 MCL_CURRENT = 0x1
1010 MCL_FUTURE = 0x2
1011 MSG_BCAST = 0x100
1012 MSG_CMSG_CLOEXEC = 0x800
1013 MSG_CONTROLMBUF = 0x2000000
1014 MSG_CTRUNC = 0x20
1015 MSG_DONTROUTE = 0x4
1016 MSG_DONTWAIT = 0x80
1017 MSG_EOR = 0x8
1018 MSG_IOVUSRSPACE = 0x4000000
1019 MSG_LENUSRSPACE = 0x8000000
1020 MSG_MCAST = 0x200
1021 MSG_NAMEMBUF = 0x1000000
1022 MSG_NBIO = 0x1000
1023 MSG_NOSIGNAL = 0x400
1024 MSG_OOB = 0x1
1025 MSG_PEEK = 0x2
1026 MSG_TRUNC = 0x10
1027 MSG_USERFLAGS = 0xffffff
1028 MSG_WAITALL = 0x40
1029 MS_ASYNC = 0x1
1030 MS_INVALIDATE = 0x2
1031 MS_SYNC = 0x4
1032 NAME_MAX = 0x1ff
1033 NET_RT_DUMP = 0x1
1034 NET_RT_FLAGS = 0x2
1035 NET_RT_IFLIST = 0x5
1036 NET_RT_MAXID = 0x6
1037 NET_RT_OIFLIST = 0x4
1038 NET_RT_OOIFLIST = 0x3
1039 NOFLSH = 0x80000000
1040 NOTE_ATTRIB = 0x8
1041 NOTE_CHILD = 0x4
1042 NOTE_DELETE = 0x1
1043 NOTE_EXEC = 0x20000000
1044 NOTE_EXIT = 0x80000000
1045 NOTE_EXTEND = 0x4
1046 NOTE_FORK = 0x40000000
1047 NOTE_LINK = 0x10
1048 NOTE_LOWAT = 0x1
1049 NOTE_PCTRLMASK = 0xf0000000
1050 NOTE_PDATAMASK = 0xfffff
1051 NOTE_RENAME = 0x20
1052 NOTE_REVOKE = 0x40
1053 NOTE_TRACK = 0x1
1054 NOTE_TRACKERR = 0x2
1055 NOTE_WRITE = 0x2
1056 OCRNL = 0x10
1057 OFIOGETBMAP = 0xc004667a
1058 ONLCR = 0x2
1059 ONLRET = 0x40
1060 ONOCR = 0x20
1061 ONOEOT = 0x8
1062 OPOST = 0x1
1063 O_ACCMODE = 0x3
1064 O_ALT_IO = 0x40000
1065 O_APPEND = 0x8
1066 O_ASYNC = 0x40
1067 O_CLOEXEC = 0x400000
1068 O_CREAT = 0x200
1069 O_DIRECT = 0x80000
1070 O_DIRECTORY = 0x200000
1071 O_DSYNC = 0x10000
1072 O_EXCL = 0x800
1073 O_EXLOCK = 0x20
1074 O_FSYNC = 0x80
1075 O_NDELAY = 0x4
1076 O_NOCTTY = 0x8000
1077 O_NOFOLLOW = 0x100
1078 O_NONBLOCK = 0x4
1079 O_NOSIGPIPE = 0x1000000
1080 O_RDONLY = 0x0
1081 O_RDWR = 0x2
1082 O_RSYNC = 0x20000
1083 O_SHLOCK = 0x10
1084 O_SYNC = 0x80
1085 O_TRUNC = 0x400
1086 O_WRONLY = 0x1
1087 PARENB = 0x1000
1088 PARMRK = 0x8
1089 PARODD = 0x2000
1090 PENDIN = 0x20000000
1091 PRIO_PGRP = 0x1
1092 PRIO_PROCESS = 0x0
1093 PRIO_USER = 0x2
1094 PRI_IOFLUSH = 0x7c
1095 PROT_EXEC = 0x4
1096 PROT_NONE = 0x0
1097 PROT_READ = 0x1
1098 PROT_WRITE = 0x2
1099 RLIMIT_AS = 0xa
1100 RLIMIT_CORE = 0x4
1101 RLIMIT_CPU = 0x0
1102 RLIMIT_DATA = 0x2
1103 RLIMIT_FSIZE = 0x1
1104 RLIMIT_NOFILE = 0x8
1105 RLIMIT_STACK = 0x3
1106 RLIM_INFINITY = 0x7fffffffffffffff
1107 RTAX_AUTHOR = 0x6
1108 RTAX_BRD = 0x7
1109 RTAX_DST = 0x0
1110 RTAX_GATEWAY = 0x1
1111 RTAX_GENMASK = 0x3
1112 RTAX_IFA = 0x5
1113 RTAX_IFP = 0x4
1114 RTAX_MAX = 0x9
1115 RTAX_NETMASK = 0x2
1116 RTAX_TAG = 0x8
1117 RTA_AUTHOR = 0x40
1118 RTA_BRD = 0x80
1119 RTA_DST = 0x1
1120 RTA_GATEWAY = 0x2
1121 RTA_GENMASK = 0x8
1122 RTA_IFA = 0x20
1123 RTA_IFP = 0x10
1124 RTA_NETMASK = 0x4
1125 RTA_TAG = 0x100
1126 RTF_ANNOUNCE = 0x20000
1127 RTF_BLACKHOLE = 0x1000
1128 RTF_CLONED = 0x2000
1129 RTF_CLONING = 0x100
1130 RTF_DONE = 0x40
1131 RTF_DYNAMIC = 0x10
1132 RTF_GATEWAY = 0x2
1133 RTF_HOST = 0x4
1134 RTF_LLINFO = 0x400
1135 RTF_MASK = 0x80
1136 RTF_MODIFIED = 0x20
1137 RTF_PROTO1 = 0x8000
1138 RTF_PROTO2 = 0x4000
1139 RTF_REJECT = 0x8
1140 RTF_SRC = 0x10000
1141 RTF_STATIC = 0x800
1142 RTF_UP = 0x1
1143 RTF_XRESOLVE = 0x200
1144 RTM_ADD = 0x1
1145 RTM_CHANGE = 0x3
1146 RTM_CHGADDR = 0x15
1147 RTM_DELADDR = 0xd
1148 RTM_DELETE = 0x2
1149 RTM_GET = 0x4
1150 RTM_IEEE80211 = 0x11
1151 RTM_IFANNOUNCE = 0x10
1152 RTM_IFINFO = 0x14
1153 RTM_LLINFO_UPD = 0x13
1154 RTM_LOCK = 0x8
1155 RTM_LOSING = 0x5
1156 RTM_MISS = 0x7
1157 RTM_NEWADDR = 0xc
1158 RTM_OIFINFO = 0xf
1159 RTM_OLDADD = 0x9
1160 RTM_OLDDEL = 0xa
1161 RTM_OOIFINFO = 0xe
1162 RTM_REDIRECT = 0x6
1163 RTM_RESOLVE = 0xb
1164 RTM_RTTUNIT = 0xf4240
1165 RTM_SETGATE = 0x12
1166 RTM_VERSION = 0x4
1167 RTV_EXPIRE = 0x4
1168 RTV_HOPCOUNT = 0x2
1169 RTV_MTU = 0x1
1170 RTV_RPIPE = 0x8
1171 RTV_RTT = 0x40
1172 RTV_RTTVAR = 0x80
1173 RTV_SPIPE = 0x10
1174 RTV_SSTHRESH = 0x20
1175 RUSAGE_CHILDREN = -0x1
1176 RUSAGE_SELF = 0x0
1177 SCM_CREDS = 0x4
1178 SCM_RIGHTS = 0x1
1179 SCM_TIMESTAMP = 0x8
1180 SHUT_RD = 0x0
1181 SHUT_RDWR = 0x2
1182 SHUT_WR = 0x1
1183 SIOCADDMULTI = 0x80906931
1184 SIOCADDRT = 0x8030720a
1185 SIOCAIFADDR = 0x8040691a
1186 SIOCALIFADDR = 0x8118691c
1187 SIOCATMARK = 0x40047307
1188 SIOCDELMULTI = 0x80906932
1189 SIOCDELRT = 0x8030720b
1190 SIOCDIFADDR = 0x80906919
1191 SIOCDIFPHYADDR = 0x80906949
1192 SIOCDLIFADDR = 0x8118691e
1193 SIOCGDRVSPEC = 0xc01c697b
1194 SIOCGETPFSYNC = 0xc09069f8
1195 SIOCGETSGCNT = 0xc0147534
1196 SIOCGETVIFCNT = 0xc0147533
1197 SIOCGHIWAT = 0x40047301
1198 SIOCGIFADDR = 0xc0906921
1199 SIOCGIFADDRPREF = 0xc0946920
1200 SIOCGIFALIAS = 0xc040691b
1201 SIOCGIFBRDADDR = 0xc0906923
1202 SIOCGIFCAP = 0xc0206976
1203 SIOCGIFCONF = 0xc0086926
1204 SIOCGIFDATA = 0xc0946985
1205 SIOCGIFDLT = 0xc0906977
1206 SIOCGIFDSTADDR = 0xc0906922
1207 SIOCGIFFLAGS = 0xc0906911
1208 SIOCGIFGENERIC = 0xc090693a
1209 SIOCGIFMEDIA = 0xc0286936
1210 SIOCGIFMETRIC = 0xc0906917
1211 SIOCGIFMTU = 0xc090697e
1212 SIOCGIFNETMASK = 0xc0906925
1213 SIOCGIFPDSTADDR = 0xc0906948
1214 SIOCGIFPSRCADDR = 0xc0906947
1215 SIOCGLIFADDR = 0xc118691d
1216 SIOCGLIFPHYADDR = 0xc118694b
1217 SIOCGLINKSTR = 0xc01c6987
1218 SIOCGLOWAT = 0x40047303
1219 SIOCGPGRP = 0x40047309
1220 SIOCGVH = 0xc0906983
1221 SIOCIFCREATE = 0x8090697a
1222 SIOCIFDESTROY = 0x80906979
1223 SIOCIFGCLONERS = 0xc00c6978
1224 SIOCINITIFADDR = 0xc0446984
1225 SIOCSDRVSPEC = 0x801c697b
1226 SIOCSETPFSYNC = 0x809069f7
1227 SIOCSHIWAT = 0x80047300
1228 SIOCSIFADDR = 0x8090690c
1229 SIOCSIFADDRPREF = 0x8094691f
1230 SIOCSIFBRDADDR = 0x80906913
1231 SIOCSIFCAP = 0x80206975
1232 SIOCSIFDSTADDR = 0x8090690e
1233 SIOCSIFFLAGS = 0x80906910
1234 SIOCSIFGENERIC = 0x80906939
1235 SIOCSIFMEDIA = 0xc0906935
1236 SIOCSIFMETRIC = 0x80906918
1237 SIOCSIFMTU = 0x8090697f
1238 SIOCSIFNETMASK = 0x80906916
1239 SIOCSIFPHYADDR = 0x80406946
1240 SIOCSLIFPHYADDR = 0x8118694a
1241 SIOCSLINKSTR = 0x801c6988
1242 SIOCSLOWAT = 0x80047302
1243 SIOCSPGRP = 0x80047308
1244 SIOCSVH = 0xc0906982
1245 SIOCZIFDATA = 0xc0946986
1246 SOCK_CLOEXEC = 0x10000000
1247 SOCK_DGRAM = 0x2
1248 SOCK_FLAGS_MASK = 0xf0000000
1249 SOCK_NONBLOCK = 0x20000000
1250 SOCK_NOSIGPIPE = 0x40000000
1251 SOCK_RAW = 0x3
1252 SOCK_RDM = 0x4
1253 SOCK_SEQPACKET = 0x5
1254 SOCK_STREAM = 0x1
1255 SOL_SOCKET = 0xffff
1256 SOMAXCONN = 0x80
1257 SO_ACCEPTCONN = 0x2
1258 SO_ACCEPTFILTER = 0x1000
1259 SO_BROADCAST = 0x20
1260 SO_DEBUG = 0x1
1261 SO_DONTROUTE = 0x10
1262 SO_ERROR = 0x1007
1263 SO_KEEPALIVE = 0x8
1264 SO_LINGER = 0x80
1265 SO_NOHEADER = 0x100a
1266 SO_NOSIGPIPE = 0x800
1267 SO_OOBINLINE = 0x100
1268 SO_OVERFLOWED = 0x1009
1269 SO_RCVBUF = 0x1002
1270 SO_RCVLOWAT = 0x1004
1271 SO_RCVTIMEO = 0x100c
1272 SO_REUSEADDR = 0x4
1273 SO_REUSEPORT = 0x200
1274 SO_SNDBUF = 0x1001
1275 SO_SNDLOWAT = 0x1003
1276 SO_SNDTIMEO = 0x100b
1277 SO_TIMESTAMP = 0x2000
1278 SO_TYPE = 0x1008
1279 SO_USELOOPBACK = 0x40
1280 SYSCTL_VERSION = 0x1000000
1281 SYSCTL_VERS_0 = 0x0
1282 SYSCTL_VERS_1 = 0x1000000
1283 SYSCTL_VERS_MASK = 0xff000000
1284 S_ARCH1 = 0x10000
1285 S_ARCH2 = 0x20000
1286 S_BLKSIZE = 0x200
1287 S_IEXEC = 0x40
1288 S_IFBLK = 0x6000
1289 S_IFCHR = 0x2000
1290 S_IFDIR = 0x4000
1291 S_IFIFO = 0x1000
1292 S_IFLNK = 0xa000
1293 S_IFMT = 0xf000
1294 S_IFREG = 0x8000
1295 S_IFSOCK = 0xc000
1296 S_IFWHT = 0xe000
1297 S_IREAD = 0x100
1298 S_IRGRP = 0x20
1299 S_IROTH = 0x4
1300 S_IRUSR = 0x100
1301 S_IRWXG = 0x38
1302 S_IRWXO = 0x7
1303 S_IRWXU = 0x1c0
1304 S_ISGID = 0x400
1305 S_ISTXT = 0x200
1306 S_ISUID = 0x800
1307 S_ISVTX = 0x200
1308 S_IWGRP = 0x10
1309 S_IWOTH = 0x2
1310 S_IWRITE = 0x80
1311 S_IWUSR = 0x80
1312 S_IXGRP = 0x8
1313 S_IXOTH = 0x1
1314 S_IXUSR = 0x40
1315 S_LOGIN_SET = 0x1
1316 TCIFLUSH = 0x1
1317 TCIOFLUSH = 0x3
1318 TCOFLUSH = 0x2
1319 TCP_CONGCTL = 0x20
1320 TCP_KEEPCNT = 0x6
1321 TCP_KEEPIDLE = 0x3
1322 TCP_KEEPINIT = 0x7
1323 TCP_KEEPINTVL = 0x5
1324 TCP_MAXBURST = 0x4
1325 TCP_MAXSEG = 0x2
1326 TCP_MAXWIN = 0xffff
1327 TCP_MAX_WINSHIFT = 0xe
1328 TCP_MD5SIG = 0x10
1329 TCP_MINMSS = 0xd8
1330 TCP_MSS = 0x218
1331 TCP_NODELAY = 0x1
1332 TCSAFLUSH = 0x2
1333 TIOCCBRK = 0x2000747a
1334 TIOCCDTR = 0x20007478
1335 TIOCCONS = 0x80047462
1336 TIOCDCDTIMESTAMP = 0x400c7458
1337 TIOCDRAIN = 0x2000745e
1338 TIOCEXCL = 0x2000740d
1339 TIOCEXT = 0x80047460
1340 TIOCFLAG_CDTRCTS = 0x10
1341 TIOCFLAG_CLOCAL = 0x2
1342 TIOCFLAG_CRTSCTS = 0x4
1343 TIOCFLAG_MDMBUF = 0x8
1344 TIOCFLAG_SOFTCAR = 0x1
1345 TIOCFLUSH = 0x80047410
1346 TIOCGETA = 0x402c7413
1347 TIOCGETD = 0x4004741a
1348 TIOCGFLAGS = 0x4004745d
1349 TIOCGLINED = 0x40207442
1350 TIOCGPGRP = 0x40047477
1351 TIOCGQSIZE = 0x40047481
1352 TIOCGRANTPT = 0x20007447
1353 TIOCGSID = 0x40047463
1354 TIOCGSIZE = 0x40087468
1355 TIOCGWINSZ = 0x40087468
1356 TIOCMBIC = 0x8004746b
1357 TIOCMBIS = 0x8004746c
1358 TIOCMGET = 0x4004746a
1359 TIOCMSET = 0x8004746d
1360 TIOCM_CAR = 0x40
1361 TIOCM_CD = 0x40
1362 TIOCM_CTS = 0x20
1363 TIOCM_DSR = 0x100
1364 TIOCM_DTR = 0x2
1365 TIOCM_LE = 0x1
1366 TIOCM_RI = 0x80
1367 TIOCM_RNG = 0x80
1368 TIOCM_RTS = 0x4
1369 TIOCM_SR = 0x10
1370 TIOCM_ST = 0x8
1371 TIOCNOTTY = 0x20007471
1372 TIOCNXCL = 0x2000740e
1373 TIOCOUTQ = 0x40047473
1374 TIOCPKT = 0x80047470
1375 TIOCPKT_DATA = 0x0
1376 TIOCPKT_DOSTOP = 0x20
1377 TIOCPKT_FLUSHREAD = 0x1
1378 TIOCPKT_FLUSHWRITE = 0x2
1379 TIOCPKT_IOCTL = 0x40
1380 TIOCPKT_NOSTOP = 0x10
1381 TIOCPKT_START = 0x8
1382 TIOCPKT_STOP = 0x4
1383 TIOCPTMGET = 0x40287446
1384 TIOCPTSNAME = 0x40287448
1385 TIOCRCVFRAME = 0x80047445
1386 TIOCREMOTE = 0x80047469
1387 TIOCSBRK = 0x2000747b
1388 TIOCSCTTY = 0x20007461
1389 TIOCSDTR = 0x20007479
1390 TIOCSETA = 0x802c7414
1391 TIOCSETAF = 0x802c7416
1392 TIOCSETAW = 0x802c7415
1393 TIOCSETD = 0x8004741b
1394 TIOCSFLAGS = 0x8004745c
1395 TIOCSIG = 0x2000745f
1396 TIOCSLINED = 0x80207443
1397 TIOCSPGRP = 0x80047476
1398 TIOCSQSIZE = 0x80047480
1399 TIOCSSIZE = 0x80087467
1400 TIOCSTART = 0x2000746e
1401 TIOCSTAT = 0x80047465
1402 TIOCSTI = 0x80017472
1403 TIOCSTOP = 0x2000746f
1404 TIOCSWINSZ = 0x80087467
1405 TIOCUCNTL = 0x80047466
1406 TIOCXMTFRAME = 0x80047444
1407 TOSTOP = 0x400000
1408 VDISCARD = 0xf
1409 VDSUSP = 0xb
1410 VEOF = 0x0
1411 VEOL = 0x1
1412 VEOL2 = 0x2
1413 VERASE = 0x3
1414 VINTR = 0x8
1415 VKILL = 0x5
1416 VLNEXT = 0xe
1417 VMIN = 0x10
1418 VQUIT = 0x9
1419 VREPRINT = 0x6
1420 VSTART = 0xc
1421 VSTATUS = 0x12
1422 VSTOP = 0xd
1423 VSUSP = 0xa
1424 VTIME = 0x11
1425 VWERASE = 0x4
1426 WALL = 0x8
1427 WALLSIG = 0x8
1428 WALTSIG = 0x4
1429 WCLONE = 0x4
1430 WCOREFLAG = 0x80
1431 WNOHANG = 0x1
1432 WNOWAIT = 0x10000
1433 WNOZOMBIE = 0x20000
1434 WOPTSCHECKED = 0x40000
1435 WSTOPPED = 0x7f
1436 WUNTRACED = 0x2
1437)
1438
1439// Errors
1440const (
1441 E2BIG = syscall.Errno(0x7)
1442 EACCES = syscall.Errno(0xd)
1443 EADDRINUSE = syscall.Errno(0x30)
1444 EADDRNOTAVAIL = syscall.Errno(0x31)
1445 EAFNOSUPPORT = syscall.Errno(0x2f)
1446 EAGAIN = syscall.Errno(0x23)
1447 EALREADY = syscall.Errno(0x25)
1448 EAUTH = syscall.Errno(0x50)
1449 EBADF = syscall.Errno(0x9)
1450 EBADMSG = syscall.Errno(0x58)
1451 EBADRPC = syscall.Errno(0x48)
1452 EBUSY = syscall.Errno(0x10)
1453 ECANCELED = syscall.Errno(0x57)
1454 ECHILD = syscall.Errno(0xa)
1455 ECONNABORTED = syscall.Errno(0x35)
1456 ECONNREFUSED = syscall.Errno(0x3d)
1457 ECONNRESET = syscall.Errno(0x36)
1458 EDEADLK = syscall.Errno(0xb)
1459 EDESTADDRREQ = syscall.Errno(0x27)
1460 EDOM = syscall.Errno(0x21)
1461 EDQUOT = syscall.Errno(0x45)
1462 EEXIST = syscall.Errno(0x11)
1463 EFAULT = syscall.Errno(0xe)
1464 EFBIG = syscall.Errno(0x1b)
1465 EFTYPE = syscall.Errno(0x4f)
1466 EHOSTDOWN = syscall.Errno(0x40)
1467 EHOSTUNREACH = syscall.Errno(0x41)
1468 EIDRM = syscall.Errno(0x52)
1469 EILSEQ = syscall.Errno(0x55)
1470 EINPROGRESS = syscall.Errno(0x24)
1471 EINTR = syscall.Errno(0x4)
1472 EINVAL = syscall.Errno(0x16)
1473 EIO = syscall.Errno(0x5)
1474 EISCONN = syscall.Errno(0x38)
1475 EISDIR = syscall.Errno(0x15)
1476 ELAST = syscall.Errno(0x60)
1477 ELOOP = syscall.Errno(0x3e)
1478 EMFILE = syscall.Errno(0x18)
1479 EMLINK = syscall.Errno(0x1f)
1480 EMSGSIZE = syscall.Errno(0x28)
1481 EMULTIHOP = syscall.Errno(0x5e)
1482 ENAMETOOLONG = syscall.Errno(0x3f)
1483 ENEEDAUTH = syscall.Errno(0x51)
1484 ENETDOWN = syscall.Errno(0x32)
1485 ENETRESET = syscall.Errno(0x34)
1486 ENETUNREACH = syscall.Errno(0x33)
1487 ENFILE = syscall.Errno(0x17)
1488 ENOATTR = syscall.Errno(0x5d)
1489 ENOBUFS = syscall.Errno(0x37)
1490 ENODATA = syscall.Errno(0x59)
1491 ENODEV = syscall.Errno(0x13)
1492 ENOENT = syscall.Errno(0x2)
1493 ENOEXEC = syscall.Errno(0x8)
1494 ENOLCK = syscall.Errno(0x4d)
1495 ENOLINK = syscall.Errno(0x5f)
1496 ENOMEM = syscall.Errno(0xc)
1497 ENOMSG = syscall.Errno(0x53)
1498 ENOPROTOOPT = syscall.Errno(0x2a)
1499 ENOSPC = syscall.Errno(0x1c)
1500 ENOSR = syscall.Errno(0x5a)
1501 ENOSTR = syscall.Errno(0x5b)
1502 ENOSYS = syscall.Errno(0x4e)
1503 ENOTBLK = syscall.Errno(0xf)
1504 ENOTCONN = syscall.Errno(0x39)
1505 ENOTDIR = syscall.Errno(0x14)
1506 ENOTEMPTY = syscall.Errno(0x42)
1507 ENOTSOCK = syscall.Errno(0x26)
1508 ENOTSUP = syscall.Errno(0x56)
1509 ENOTTY = syscall.Errno(0x19)
1510 ENXIO = syscall.Errno(0x6)
1511 EOPNOTSUPP = syscall.Errno(0x2d)
1512 EOVERFLOW = syscall.Errno(0x54)
1513 EPERM = syscall.Errno(0x1)
1514 EPFNOSUPPORT = syscall.Errno(0x2e)
1515 EPIPE = syscall.Errno(0x20)
1516 EPROCLIM = syscall.Errno(0x43)
1517 EPROCUNAVAIL = syscall.Errno(0x4c)
1518 EPROGMISMATCH = syscall.Errno(0x4b)
1519 EPROGUNAVAIL = syscall.Errno(0x4a)
1520 EPROTO = syscall.Errno(0x60)
1521 EPROTONOSUPPORT = syscall.Errno(0x2b)
1522 EPROTOTYPE = syscall.Errno(0x29)
1523 ERANGE = syscall.Errno(0x22)
1524 EREMOTE = syscall.Errno(0x47)
1525 EROFS = syscall.Errno(0x1e)
1526 ERPCMISMATCH = syscall.Errno(0x49)
1527 ESHUTDOWN = syscall.Errno(0x3a)
1528 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1529 ESPIPE = syscall.Errno(0x1d)
1530 ESRCH = syscall.Errno(0x3)
1531 ESTALE = syscall.Errno(0x46)
1532 ETIME = syscall.Errno(0x5c)
1533 ETIMEDOUT = syscall.Errno(0x3c)
1534 ETOOMANYREFS = syscall.Errno(0x3b)
1535 ETXTBSY = syscall.Errno(0x1a)
1536 EUSERS = syscall.Errno(0x44)
1537 EWOULDBLOCK = syscall.Errno(0x23)
1538 EXDEV = syscall.Errno(0x12)
1539)
1540
1541// Signals
1542const (
1543 SIGABRT = syscall.Signal(0x6)
1544 SIGALRM = syscall.Signal(0xe)
1545 SIGBUS = syscall.Signal(0xa)
1546 SIGCHLD = syscall.Signal(0x14)
1547 SIGCONT = syscall.Signal(0x13)
1548 SIGEMT = syscall.Signal(0x7)
1549 SIGFPE = syscall.Signal(0x8)
1550 SIGHUP = syscall.Signal(0x1)
1551 SIGILL = syscall.Signal(0x4)
1552 SIGINFO = syscall.Signal(0x1d)
1553 SIGINT = syscall.Signal(0x2)
1554 SIGIO = syscall.Signal(0x17)
1555 SIGIOT = syscall.Signal(0x6)
1556 SIGKILL = syscall.Signal(0x9)
1557 SIGPIPE = syscall.Signal(0xd)
1558 SIGPROF = syscall.Signal(0x1b)
1559 SIGPWR = syscall.Signal(0x20)
1560 SIGQUIT = syscall.Signal(0x3)
1561 SIGSEGV = syscall.Signal(0xb)
1562 SIGSTOP = syscall.Signal(0x11)
1563 SIGSYS = syscall.Signal(0xc)
1564 SIGTERM = syscall.Signal(0xf)
1565 SIGTRAP = syscall.Signal(0x5)
1566 SIGTSTP = syscall.Signal(0x12)
1567 SIGTTIN = syscall.Signal(0x15)
1568 SIGTTOU = syscall.Signal(0x16)
1569 SIGURG = syscall.Signal(0x10)
1570 SIGUSR1 = syscall.Signal(0x1e)
1571 SIGUSR2 = syscall.Signal(0x1f)
1572 SIGVTALRM = syscall.Signal(0x1a)
1573 SIGWINCH = syscall.Signal(0x1c)
1574 SIGXCPU = syscall.Signal(0x18)
1575 SIGXFSZ = syscall.Signal(0x19)
1576)
1577
1578// Error table
1579var errors = [...]string{
1580 1: "operation not permitted",
1581 2: "no such file or directory",
1582 3: "no such process",
1583 4: "interrupted system call",
1584 5: "input/output error",
1585 6: "device not configured",
1586 7: "argument list too long",
1587 8: "exec format error",
1588 9: "bad file descriptor",
1589 10: "no child processes",
1590 11: "resource deadlock avoided",
1591 12: "cannot allocate memory",
1592 13: "permission denied",
1593 14: "bad address",
1594 15: "block device required",
1595 16: "device busy",
1596 17: "file exists",
1597 18: "cross-device link",
1598 19: "operation not supported by device",
1599 20: "not a directory",
1600 21: "is a directory",
1601 22: "invalid argument",
1602 23: "too many open files in system",
1603 24: "too many open files",
1604 25: "inappropriate ioctl for device",
1605 26: "text file busy",
1606 27: "file too large",
1607 28: "no space left on device",
1608 29: "illegal seek",
1609 30: "read-only file system",
1610 31: "too many links",
1611 32: "broken pipe",
1612 33: "numerical argument out of domain",
1613 34: "result too large or too small",
1614 35: "resource temporarily unavailable",
1615 36: "operation now in progress",
1616 37: "operation already in progress",
1617 38: "socket operation on non-socket",
1618 39: "destination address required",
1619 40: "message too long",
1620 41: "protocol wrong type for socket",
1621 42: "protocol option not available",
1622 43: "protocol not supported",
1623 44: "socket type not supported",
1624 45: "operation not supported",
1625 46: "protocol family not supported",
1626 47: "address family not supported by protocol family",
1627 48: "address already in use",
1628 49: "can't assign requested address",
1629 50: "network is down",
1630 51: "network is unreachable",
1631 52: "network dropped connection on reset",
1632 53: "software caused connection abort",
1633 54: "connection reset by peer",
1634 55: "no buffer space available",
1635 56: "socket is already connected",
1636 57: "socket is not connected",
1637 58: "can't send after socket shutdown",
1638 59: "too many references: can't splice",
1639 60: "connection timed out",
1640 61: "connection refused",
1641 62: "too many levels of symbolic links",
1642 63: "file name too long",
1643 64: "host is down",
1644 65: "no route to host",
1645 66: "directory not empty",
1646 67: "too many processes",
1647 68: "too many users",
1648 69: "disc quota exceeded",
1649 70: "stale NFS file handle",
1650 71: "too many levels of remote in path",
1651 72: "RPC struct is bad",
1652 73: "RPC version wrong",
1653 74: "RPC prog. not avail",
1654 75: "program version wrong",
1655 76: "bad procedure for program",
1656 77: "no locks available",
1657 78: "function not implemented",
1658 79: "inappropriate file type or format",
1659 80: "authentication error",
1660 81: "need authenticator",
1661 82: "identifier removed",
1662 83: "no message of desired type",
1663 84: "value too large to be stored in data type",
1664 85: "illegal byte sequence",
1665 86: "not supported",
1666 87: "operation Canceled",
1667 88: "bad or Corrupt message",
1668 89: "no message available",
1669 90: "no STREAM resources",
1670 91: "not a STREAM",
1671 92: "STREAM ioctl timeout",
1672 93: "attribute not found",
1673 94: "multihop attempted",
1674 95: "link has been severed",
1675 96: "protocol error",
1676}
1677
1678// Signal table
1679var signals = [...]string{
1680 1: "hangup",
1681 2: "interrupt",
1682 3: "quit",
1683 4: "illegal instruction",
1684 5: "trace/BPT trap",
1685 6: "abort trap",
1686 7: "EMT trap",
1687 8: "floating point exception",
1688 9: "killed",
1689 10: "bus error",
1690 11: "segmentation fault",
1691 12: "bad system call",
1692 13: "broken pipe",
1693 14: "alarm clock",
1694 15: "terminated",
1695 16: "urgent I/O condition",
1696 17: "stopped (signal)",
1697 18: "stopped",
1698 19: "continued",
1699 20: "child exited",
1700 21: "stopped (tty input)",
1701 22: "stopped (tty output)",
1702 23: "I/O possible",
1703 24: "cputime limit exceeded",
1704 25: "filesize limit exceeded",
1705 26: "virtual timer expired",
1706 27: "profiling timer expired",
1707 28: "window size changes",
1708 29: "information request",
1709 30: "user defined signal 1",
1710 31: "user defined signal 2",
1711 32: "power fail/restart",
1712}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
deleted file mode 100644
index 4994437..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
+++ /dev/null
@@ -1,1702 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,netbsd
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_ARP = 0x1c
16 AF_BLUETOOTH = 0x1f
17 AF_CCITT = 0xa
18 AF_CHAOS = 0x5
19 AF_CNT = 0x15
20 AF_COIP = 0x14
21 AF_DATAKIT = 0x9
22 AF_DECnet = 0xc
23 AF_DLI = 0xd
24 AF_E164 = 0x1a
25 AF_ECMA = 0x8
26 AF_HYLINK = 0xf
27 AF_IEEE80211 = 0x20
28 AF_IMPLINK = 0x3
29 AF_INET = 0x2
30 AF_INET6 = 0x18
31 AF_IPX = 0x17
32 AF_ISDN = 0x1a
33 AF_ISO = 0x7
34 AF_LAT = 0xe
35 AF_LINK = 0x12
36 AF_LOCAL = 0x1
37 AF_MAX = 0x23
38 AF_MPLS = 0x21
39 AF_NATM = 0x1b
40 AF_NS = 0x6
41 AF_OROUTE = 0x11
42 AF_OSI = 0x7
43 AF_PUP = 0x4
44 AF_ROUTE = 0x22
45 AF_SNA = 0xb
46 AF_UNIX = 0x1
47 AF_UNSPEC = 0x0
48 ARPHRD_ARCNET = 0x7
49 ARPHRD_ETHER = 0x1
50 ARPHRD_FRELAY = 0xf
51 ARPHRD_IEEE1394 = 0x18
52 ARPHRD_IEEE802 = 0x6
53 ARPHRD_STRIP = 0x17
54 B0 = 0x0
55 B110 = 0x6e
56 B115200 = 0x1c200
57 B1200 = 0x4b0
58 B134 = 0x86
59 B14400 = 0x3840
60 B150 = 0x96
61 B1800 = 0x708
62 B19200 = 0x4b00
63 B200 = 0xc8
64 B230400 = 0x38400
65 B2400 = 0x960
66 B28800 = 0x7080
67 B300 = 0x12c
68 B38400 = 0x9600
69 B460800 = 0x70800
70 B4800 = 0x12c0
71 B50 = 0x32
72 B57600 = 0xe100
73 B600 = 0x258
74 B7200 = 0x1c20
75 B75 = 0x4b
76 B76800 = 0x12c00
77 B921600 = 0xe1000
78 B9600 = 0x2580
79 BIOCFEEDBACK = 0x8004427d
80 BIOCFLUSH = 0x20004268
81 BIOCGBLEN = 0x40044266
82 BIOCGDLT = 0x4004426a
83 BIOCGDLTLIST = 0xc0104277
84 BIOCGETIF = 0x4090426b
85 BIOCGFEEDBACK = 0x4004427c
86 BIOCGHDRCMPLT = 0x40044274
87 BIOCGRTIMEOUT = 0x4010427b
88 BIOCGSEESENT = 0x40044278
89 BIOCGSTATS = 0x4080426f
90 BIOCGSTATSOLD = 0x4008426f
91 BIOCIMMEDIATE = 0x80044270
92 BIOCPROMISC = 0x20004269
93 BIOCSBLEN = 0xc0044266
94 BIOCSDLT = 0x80044276
95 BIOCSETF = 0x80104267
96 BIOCSETIF = 0x8090426c
97 BIOCSFEEDBACK = 0x8004427d
98 BIOCSHDRCMPLT = 0x80044275
99 BIOCSRTIMEOUT = 0x8010427a
100 BIOCSSEESENT = 0x80044279
101 BIOCSTCPF = 0x80104272
102 BIOCSUDPF = 0x80104273
103 BIOCVERSION = 0x40044271
104 BPF_A = 0x10
105 BPF_ABS = 0x20
106 BPF_ADD = 0x0
107 BPF_ALIGNMENT = 0x8
108 BPF_ALIGNMENT32 = 0x4
109 BPF_ALU = 0x4
110 BPF_AND = 0x50
111 BPF_B = 0x10
112 BPF_DFLTBUFSIZE = 0x100000
113 BPF_DIV = 0x30
114 BPF_H = 0x8
115 BPF_IMM = 0x0
116 BPF_IND = 0x40
117 BPF_JA = 0x0
118 BPF_JEQ = 0x10
119 BPF_JGE = 0x30
120 BPF_JGT = 0x20
121 BPF_JMP = 0x5
122 BPF_JSET = 0x40
123 BPF_K = 0x0
124 BPF_LD = 0x0
125 BPF_LDX = 0x1
126 BPF_LEN = 0x80
127 BPF_LSH = 0x60
128 BPF_MAJOR_VERSION = 0x1
129 BPF_MAXBUFSIZE = 0x1000000
130 BPF_MAXINSNS = 0x200
131 BPF_MEM = 0x60
132 BPF_MEMWORDS = 0x10
133 BPF_MINBUFSIZE = 0x20
134 BPF_MINOR_VERSION = 0x1
135 BPF_MISC = 0x7
136 BPF_MSH = 0xa0
137 BPF_MUL = 0x20
138 BPF_NEG = 0x80
139 BPF_OR = 0x40
140 BPF_RELEASE = 0x30bb6
141 BPF_RET = 0x6
142 BPF_RSH = 0x70
143 BPF_ST = 0x2
144 BPF_STX = 0x3
145 BPF_SUB = 0x10
146 BPF_TAX = 0x0
147 BPF_TXA = 0x80
148 BPF_W = 0x0
149 BPF_X = 0x8
150 BRKINT = 0x2
151 CFLUSH = 0xf
152 CLOCAL = 0x8000
153 CLONE_CSIGNAL = 0xff
154 CLONE_FILES = 0x400
155 CLONE_FS = 0x200
156 CLONE_PID = 0x1000
157 CLONE_PTRACE = 0x2000
158 CLONE_SIGHAND = 0x800
159 CLONE_VFORK = 0x4000
160 CLONE_VM = 0x100
161 CREAD = 0x800
162 CS5 = 0x0
163 CS6 = 0x100
164 CS7 = 0x200
165 CS8 = 0x300
166 CSIZE = 0x300
167 CSTART = 0x11
168 CSTATUS = 0x14
169 CSTOP = 0x13
170 CSTOPB = 0x400
171 CSUSP = 0x1a
172 CTL_MAXNAME = 0xc
173 CTL_NET = 0x4
174 CTL_QUERY = -0x2
175 DIOCBSFLUSH = 0x20006478
176 DLT_A429 = 0xb8
177 DLT_A653_ICM = 0xb9
178 DLT_AIRONET_HEADER = 0x78
179 DLT_AOS = 0xde
180 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
181 DLT_ARCNET = 0x7
182 DLT_ARCNET_LINUX = 0x81
183 DLT_ATM_CLIP = 0x13
184 DLT_ATM_RFC1483 = 0xb
185 DLT_AURORA = 0x7e
186 DLT_AX25 = 0x3
187 DLT_AX25_KISS = 0xca
188 DLT_BACNET_MS_TP = 0xa5
189 DLT_BLUETOOTH_HCI_H4 = 0xbb
190 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
191 DLT_CAN20B = 0xbe
192 DLT_CAN_SOCKETCAN = 0xe3
193 DLT_CHAOS = 0x5
194 DLT_CISCO_IOS = 0x76
195 DLT_C_HDLC = 0x68
196 DLT_C_HDLC_WITH_DIR = 0xcd
197 DLT_DECT = 0xdd
198 DLT_DOCSIS = 0x8f
199 DLT_ECONET = 0x73
200 DLT_EN10MB = 0x1
201 DLT_EN3MB = 0x2
202 DLT_ENC = 0x6d
203 DLT_ERF = 0xc5
204 DLT_ERF_ETH = 0xaf
205 DLT_ERF_POS = 0xb0
206 DLT_FC_2 = 0xe0
207 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
208 DLT_FDDI = 0xa
209 DLT_FLEXRAY = 0xd2
210 DLT_FRELAY = 0x6b
211 DLT_FRELAY_WITH_DIR = 0xce
212 DLT_GCOM_SERIAL = 0xad
213 DLT_GCOM_T1E1 = 0xac
214 DLT_GPF_F = 0xab
215 DLT_GPF_T = 0xaa
216 DLT_GPRS_LLC = 0xa9
217 DLT_GSMTAP_ABIS = 0xda
218 DLT_GSMTAP_UM = 0xd9
219 DLT_HDLC = 0x10
220 DLT_HHDLC = 0x79
221 DLT_HIPPI = 0xf
222 DLT_IBM_SN = 0x92
223 DLT_IBM_SP = 0x91
224 DLT_IEEE802 = 0x6
225 DLT_IEEE802_11 = 0x69
226 DLT_IEEE802_11_RADIO = 0x7f
227 DLT_IEEE802_11_RADIO_AVS = 0xa3
228 DLT_IEEE802_15_4 = 0xc3
229 DLT_IEEE802_15_4_LINUX = 0xbf
230 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
231 DLT_IEEE802_16_MAC_CPS = 0xbc
232 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
233 DLT_IPMB = 0xc7
234 DLT_IPMB_LINUX = 0xd1
235 DLT_IPNET = 0xe2
236 DLT_IPV4 = 0xe4
237 DLT_IPV6 = 0xe5
238 DLT_IP_OVER_FC = 0x7a
239 DLT_JUNIPER_ATM1 = 0x89
240 DLT_JUNIPER_ATM2 = 0x87
241 DLT_JUNIPER_CHDLC = 0xb5
242 DLT_JUNIPER_ES = 0x84
243 DLT_JUNIPER_ETHER = 0xb2
244 DLT_JUNIPER_FRELAY = 0xb4
245 DLT_JUNIPER_GGSN = 0x85
246 DLT_JUNIPER_ISM = 0xc2
247 DLT_JUNIPER_MFR = 0x86
248 DLT_JUNIPER_MLFR = 0x83
249 DLT_JUNIPER_MLPPP = 0x82
250 DLT_JUNIPER_MONITOR = 0xa4
251 DLT_JUNIPER_PIC_PEER = 0xae
252 DLT_JUNIPER_PPP = 0xb3
253 DLT_JUNIPER_PPPOE = 0xa7
254 DLT_JUNIPER_PPPOE_ATM = 0xa8
255 DLT_JUNIPER_SERVICES = 0x88
256 DLT_JUNIPER_ST = 0xc8
257 DLT_JUNIPER_VP = 0xb7
258 DLT_LAPB_WITH_DIR = 0xcf
259 DLT_LAPD = 0xcb
260 DLT_LIN = 0xd4
261 DLT_LINUX_EVDEV = 0xd8
262 DLT_LINUX_IRDA = 0x90
263 DLT_LINUX_LAPD = 0xb1
264 DLT_LINUX_SLL = 0x71
265 DLT_LOOP = 0x6c
266 DLT_LTALK = 0x72
267 DLT_MFR = 0xb6
268 DLT_MOST = 0xd3
269 DLT_MPLS = 0xdb
270 DLT_MTP2 = 0x8c
271 DLT_MTP2_WITH_PHDR = 0x8b
272 DLT_MTP3 = 0x8d
273 DLT_NULL = 0x0
274 DLT_PCI_EXP = 0x7d
275 DLT_PFLOG = 0x75
276 DLT_PFSYNC = 0x12
277 DLT_PPI = 0xc0
278 DLT_PPP = 0x9
279 DLT_PPP_BSDOS = 0xe
280 DLT_PPP_ETHER = 0x33
281 DLT_PPP_PPPD = 0xa6
282 DLT_PPP_SERIAL = 0x32
283 DLT_PPP_WITH_DIR = 0xcc
284 DLT_PRISM_HEADER = 0x77
285 DLT_PRONET = 0x4
286 DLT_RAIF1 = 0xc6
287 DLT_RAW = 0xc
288 DLT_RAWAF_MASK = 0x2240000
289 DLT_RIO = 0x7c
290 DLT_SCCP = 0x8e
291 DLT_SITA = 0xc4
292 DLT_SLIP = 0x8
293 DLT_SLIP_BSDOS = 0xd
294 DLT_SUNATM = 0x7b
295 DLT_SYMANTEC_FIREWALL = 0x63
296 DLT_TZSP = 0x80
297 DLT_USB = 0xba
298 DLT_USB_LINUX = 0xbd
299 DLT_USB_LINUX_MMAPPED = 0xdc
300 DLT_WIHART = 0xdf
301 DLT_X2E_SERIAL = 0xd5
302 DLT_X2E_XORAYA = 0xd6
303 DT_BLK = 0x6
304 DT_CHR = 0x2
305 DT_DIR = 0x4
306 DT_FIFO = 0x1
307 DT_LNK = 0xa
308 DT_REG = 0x8
309 DT_SOCK = 0xc
310 DT_UNKNOWN = 0x0
311 DT_WHT = 0xe
312 ECHO = 0x8
313 ECHOCTL = 0x40
314 ECHOE = 0x2
315 ECHOK = 0x4
316 ECHOKE = 0x1
317 ECHONL = 0x10
318 ECHOPRT = 0x20
319 EMUL_LINUX = 0x1
320 EMUL_LINUX32 = 0x5
321 EMUL_MAXID = 0x6
322 ETHERCAP_JUMBO_MTU = 0x4
323 ETHERCAP_VLAN_HWTAGGING = 0x2
324 ETHERCAP_VLAN_MTU = 0x1
325 ETHERMIN = 0x2e
326 ETHERMTU = 0x5dc
327 ETHERMTU_JUMBO = 0x2328
328 ETHERTYPE_8023 = 0x4
329 ETHERTYPE_AARP = 0x80f3
330 ETHERTYPE_ACCTON = 0x8390
331 ETHERTYPE_AEONIC = 0x8036
332 ETHERTYPE_ALPHA = 0x814a
333 ETHERTYPE_AMBER = 0x6008
334 ETHERTYPE_AMOEBA = 0x8145
335 ETHERTYPE_APOLLO = 0x80f7
336 ETHERTYPE_APOLLODOMAIN = 0x8019
337 ETHERTYPE_APPLETALK = 0x809b
338 ETHERTYPE_APPLITEK = 0x80c7
339 ETHERTYPE_ARGONAUT = 0x803a
340 ETHERTYPE_ARP = 0x806
341 ETHERTYPE_AT = 0x809b
342 ETHERTYPE_ATALK = 0x809b
343 ETHERTYPE_ATOMIC = 0x86df
344 ETHERTYPE_ATT = 0x8069
345 ETHERTYPE_ATTSTANFORD = 0x8008
346 ETHERTYPE_AUTOPHON = 0x806a
347 ETHERTYPE_AXIS = 0x8856
348 ETHERTYPE_BCLOOP = 0x9003
349 ETHERTYPE_BOFL = 0x8102
350 ETHERTYPE_CABLETRON = 0x7034
351 ETHERTYPE_CHAOS = 0x804
352 ETHERTYPE_COMDESIGN = 0x806c
353 ETHERTYPE_COMPUGRAPHIC = 0x806d
354 ETHERTYPE_COUNTERPOINT = 0x8062
355 ETHERTYPE_CRONUS = 0x8004
356 ETHERTYPE_CRONUSVLN = 0x8003
357 ETHERTYPE_DCA = 0x1234
358 ETHERTYPE_DDE = 0x807b
359 ETHERTYPE_DEBNI = 0xaaaa
360 ETHERTYPE_DECAM = 0x8048
361 ETHERTYPE_DECCUST = 0x6006
362 ETHERTYPE_DECDIAG = 0x6005
363 ETHERTYPE_DECDNS = 0x803c
364 ETHERTYPE_DECDTS = 0x803e
365 ETHERTYPE_DECEXPER = 0x6000
366 ETHERTYPE_DECLAST = 0x8041
367 ETHERTYPE_DECLTM = 0x803f
368 ETHERTYPE_DECMUMPS = 0x6009
369 ETHERTYPE_DECNETBIOS = 0x8040
370 ETHERTYPE_DELTACON = 0x86de
371 ETHERTYPE_DIDDLE = 0x4321
372 ETHERTYPE_DLOG1 = 0x660
373 ETHERTYPE_DLOG2 = 0x661
374 ETHERTYPE_DN = 0x6003
375 ETHERTYPE_DOGFIGHT = 0x1989
376 ETHERTYPE_DSMD = 0x8039
377 ETHERTYPE_ECMA = 0x803
378 ETHERTYPE_ENCRYPT = 0x803d
379 ETHERTYPE_ES = 0x805d
380 ETHERTYPE_EXCELAN = 0x8010
381 ETHERTYPE_EXPERDATA = 0x8049
382 ETHERTYPE_FLIP = 0x8146
383 ETHERTYPE_FLOWCONTROL = 0x8808
384 ETHERTYPE_FRARP = 0x808
385 ETHERTYPE_GENDYN = 0x8068
386 ETHERTYPE_HAYES = 0x8130
387 ETHERTYPE_HIPPI_FP = 0x8180
388 ETHERTYPE_HITACHI = 0x8820
389 ETHERTYPE_HP = 0x8005
390 ETHERTYPE_IEEEPUP = 0xa00
391 ETHERTYPE_IEEEPUPAT = 0xa01
392 ETHERTYPE_IMLBL = 0x4c42
393 ETHERTYPE_IMLBLDIAG = 0x424c
394 ETHERTYPE_IP = 0x800
395 ETHERTYPE_IPAS = 0x876c
396 ETHERTYPE_IPV6 = 0x86dd
397 ETHERTYPE_IPX = 0x8137
398 ETHERTYPE_IPXNEW = 0x8037
399 ETHERTYPE_KALPANA = 0x8582
400 ETHERTYPE_LANBRIDGE = 0x8038
401 ETHERTYPE_LANPROBE = 0x8888
402 ETHERTYPE_LAT = 0x6004
403 ETHERTYPE_LBACK = 0x9000
404 ETHERTYPE_LITTLE = 0x8060
405 ETHERTYPE_LOGICRAFT = 0x8148
406 ETHERTYPE_LOOPBACK = 0x9000
407 ETHERTYPE_MATRA = 0x807a
408 ETHERTYPE_MAX = 0xffff
409 ETHERTYPE_MERIT = 0x807c
410 ETHERTYPE_MICP = 0x873a
411 ETHERTYPE_MOPDL = 0x6001
412 ETHERTYPE_MOPRC = 0x6002
413 ETHERTYPE_MOTOROLA = 0x818d
414 ETHERTYPE_MPLS = 0x8847
415 ETHERTYPE_MPLS_MCAST = 0x8848
416 ETHERTYPE_MUMPS = 0x813f
417 ETHERTYPE_NBPCC = 0x3c04
418 ETHERTYPE_NBPCLAIM = 0x3c09
419 ETHERTYPE_NBPCLREQ = 0x3c05
420 ETHERTYPE_NBPCLRSP = 0x3c06
421 ETHERTYPE_NBPCREQ = 0x3c02
422 ETHERTYPE_NBPCRSP = 0x3c03
423 ETHERTYPE_NBPDG = 0x3c07
424 ETHERTYPE_NBPDGB = 0x3c08
425 ETHERTYPE_NBPDLTE = 0x3c0a
426 ETHERTYPE_NBPRAR = 0x3c0c
427 ETHERTYPE_NBPRAS = 0x3c0b
428 ETHERTYPE_NBPRST = 0x3c0d
429 ETHERTYPE_NBPSCD = 0x3c01
430 ETHERTYPE_NBPVCD = 0x3c00
431 ETHERTYPE_NBS = 0x802
432 ETHERTYPE_NCD = 0x8149
433 ETHERTYPE_NESTAR = 0x8006
434 ETHERTYPE_NETBEUI = 0x8191
435 ETHERTYPE_NOVELL = 0x8138
436 ETHERTYPE_NS = 0x600
437 ETHERTYPE_NSAT = 0x601
438 ETHERTYPE_NSCOMPAT = 0x807
439 ETHERTYPE_NTRAILER = 0x10
440 ETHERTYPE_OS9 = 0x7007
441 ETHERTYPE_OS9NET = 0x7009
442 ETHERTYPE_PACER = 0x80c6
443 ETHERTYPE_PAE = 0x888e
444 ETHERTYPE_PCS = 0x4242
445 ETHERTYPE_PLANNING = 0x8044
446 ETHERTYPE_PPP = 0x880b
447 ETHERTYPE_PPPOE = 0x8864
448 ETHERTYPE_PPPOEDISC = 0x8863
449 ETHERTYPE_PRIMENTS = 0x7031
450 ETHERTYPE_PUP = 0x200
451 ETHERTYPE_PUPAT = 0x200
452 ETHERTYPE_RACAL = 0x7030
453 ETHERTYPE_RATIONAL = 0x8150
454 ETHERTYPE_RAWFR = 0x6559
455 ETHERTYPE_RCL = 0x1995
456 ETHERTYPE_RDP = 0x8739
457 ETHERTYPE_RETIX = 0x80f2
458 ETHERTYPE_REVARP = 0x8035
459 ETHERTYPE_SCA = 0x6007
460 ETHERTYPE_SECTRA = 0x86db
461 ETHERTYPE_SECUREDATA = 0x876d
462 ETHERTYPE_SGITW = 0x817e
463 ETHERTYPE_SG_BOUNCE = 0x8016
464 ETHERTYPE_SG_DIAG = 0x8013
465 ETHERTYPE_SG_NETGAMES = 0x8014
466 ETHERTYPE_SG_RESV = 0x8015
467 ETHERTYPE_SIMNET = 0x5208
468 ETHERTYPE_SLOWPROTOCOLS = 0x8809
469 ETHERTYPE_SNA = 0x80d5
470 ETHERTYPE_SNMP = 0x814c
471 ETHERTYPE_SONIX = 0xfaf5
472 ETHERTYPE_SPIDER = 0x809f
473 ETHERTYPE_SPRITE = 0x500
474 ETHERTYPE_STP = 0x8181
475 ETHERTYPE_TALARIS = 0x812b
476 ETHERTYPE_TALARISMC = 0x852b
477 ETHERTYPE_TCPCOMP = 0x876b
478 ETHERTYPE_TCPSM = 0x9002
479 ETHERTYPE_TEC = 0x814f
480 ETHERTYPE_TIGAN = 0x802f
481 ETHERTYPE_TRAIL = 0x1000
482 ETHERTYPE_TRANSETHER = 0x6558
483 ETHERTYPE_TYMSHARE = 0x802e
484 ETHERTYPE_UBBST = 0x7005
485 ETHERTYPE_UBDEBUG = 0x900
486 ETHERTYPE_UBDIAGLOOP = 0x7002
487 ETHERTYPE_UBDL = 0x7000
488 ETHERTYPE_UBNIU = 0x7001
489 ETHERTYPE_UBNMC = 0x7003
490 ETHERTYPE_VALID = 0x1600
491 ETHERTYPE_VARIAN = 0x80dd
492 ETHERTYPE_VAXELN = 0x803b
493 ETHERTYPE_VEECO = 0x8067
494 ETHERTYPE_VEXP = 0x805b
495 ETHERTYPE_VGLAB = 0x8131
496 ETHERTYPE_VINES = 0xbad
497 ETHERTYPE_VINESECHO = 0xbaf
498 ETHERTYPE_VINESLOOP = 0xbae
499 ETHERTYPE_VITAL = 0xff00
500 ETHERTYPE_VLAN = 0x8100
501 ETHERTYPE_VLTLMAN = 0x8080
502 ETHERTYPE_VPROD = 0x805c
503 ETHERTYPE_VURESERVED = 0x8147
504 ETHERTYPE_WATERLOO = 0x8130
505 ETHERTYPE_WELLFLEET = 0x8103
506 ETHERTYPE_X25 = 0x805
507 ETHERTYPE_X75 = 0x801
508 ETHERTYPE_XNSSM = 0x9001
509 ETHERTYPE_XTP = 0x817d
510 ETHER_ADDR_LEN = 0x6
511 ETHER_CRC_LEN = 0x4
512 ETHER_CRC_POLY_BE = 0x4c11db6
513 ETHER_CRC_POLY_LE = 0xedb88320
514 ETHER_HDR_LEN = 0xe
515 ETHER_MAX_LEN = 0x5ee
516 ETHER_MAX_LEN_JUMBO = 0x233a
517 ETHER_MIN_LEN = 0x40
518 ETHER_PPPOE_ENCAP_LEN = 0x8
519 ETHER_TYPE_LEN = 0x2
520 ETHER_VLAN_ENCAP_LEN = 0x4
521 EVFILT_AIO = 0x2
522 EVFILT_PROC = 0x4
523 EVFILT_READ = 0x0
524 EVFILT_SIGNAL = 0x5
525 EVFILT_SYSCOUNT = 0x7
526 EVFILT_TIMER = 0x6
527 EVFILT_VNODE = 0x3
528 EVFILT_WRITE = 0x1
529 EV_ADD = 0x1
530 EV_CLEAR = 0x20
531 EV_DELETE = 0x2
532 EV_DISABLE = 0x8
533 EV_ENABLE = 0x4
534 EV_EOF = 0x8000
535 EV_ERROR = 0x4000
536 EV_FLAG1 = 0x2000
537 EV_ONESHOT = 0x10
538 EV_SYSFLAGS = 0xf000
539 EXTA = 0x4b00
540 EXTB = 0x9600
541 EXTPROC = 0x800
542 FD_CLOEXEC = 0x1
543 FD_SETSIZE = 0x100
544 FLUSHO = 0x800000
545 F_CLOSEM = 0xa
546 F_DUPFD = 0x0
547 F_DUPFD_CLOEXEC = 0xc
548 F_FSCTL = -0x80000000
549 F_FSDIRMASK = 0x70000000
550 F_FSIN = 0x10000000
551 F_FSINOUT = 0x30000000
552 F_FSOUT = 0x20000000
553 F_FSPRIV = 0x8000
554 F_FSVOID = 0x40000000
555 F_GETFD = 0x1
556 F_GETFL = 0x3
557 F_GETLK = 0x7
558 F_GETNOSIGPIPE = 0xd
559 F_GETOWN = 0x5
560 F_MAXFD = 0xb
561 F_OK = 0x0
562 F_PARAM_MASK = 0xfff
563 F_PARAM_MAX = 0xfff
564 F_RDLCK = 0x1
565 F_SETFD = 0x2
566 F_SETFL = 0x4
567 F_SETLK = 0x8
568 F_SETLKW = 0x9
569 F_SETNOSIGPIPE = 0xe
570 F_SETOWN = 0x6
571 F_UNLCK = 0x2
572 F_WRLCK = 0x3
573 HUPCL = 0x4000
574 ICANON = 0x100
575 ICMP6_FILTER = 0x12
576 ICRNL = 0x100
577 IEXTEN = 0x400
578 IFAN_ARRIVAL = 0x0
579 IFAN_DEPARTURE = 0x1
580 IFA_ROUTE = 0x1
581 IFF_ALLMULTI = 0x200
582 IFF_BROADCAST = 0x2
583 IFF_CANTCHANGE = 0x8f52
584 IFF_DEBUG = 0x4
585 IFF_LINK0 = 0x1000
586 IFF_LINK1 = 0x2000
587 IFF_LINK2 = 0x4000
588 IFF_LOOPBACK = 0x8
589 IFF_MULTICAST = 0x8000
590 IFF_NOARP = 0x80
591 IFF_NOTRAILERS = 0x20
592 IFF_OACTIVE = 0x400
593 IFF_POINTOPOINT = 0x10
594 IFF_PROMISC = 0x100
595 IFF_RUNNING = 0x40
596 IFF_SIMPLEX = 0x800
597 IFF_UP = 0x1
598 IFNAMSIZ = 0x10
599 IFT_1822 = 0x2
600 IFT_A12MPPSWITCH = 0x82
601 IFT_AAL2 = 0xbb
602 IFT_AAL5 = 0x31
603 IFT_ADSL = 0x5e
604 IFT_AFLANE8023 = 0x3b
605 IFT_AFLANE8025 = 0x3c
606 IFT_ARAP = 0x58
607 IFT_ARCNET = 0x23
608 IFT_ARCNETPLUS = 0x24
609 IFT_ASYNC = 0x54
610 IFT_ATM = 0x25
611 IFT_ATMDXI = 0x69
612 IFT_ATMFUNI = 0x6a
613 IFT_ATMIMA = 0x6b
614 IFT_ATMLOGICAL = 0x50
615 IFT_ATMRADIO = 0xbd
616 IFT_ATMSUBINTERFACE = 0x86
617 IFT_ATMVCIENDPT = 0xc2
618 IFT_ATMVIRTUAL = 0x95
619 IFT_BGPPOLICYACCOUNTING = 0xa2
620 IFT_BRIDGE = 0xd1
621 IFT_BSC = 0x53
622 IFT_CARP = 0xf8
623 IFT_CCTEMUL = 0x3d
624 IFT_CEPT = 0x13
625 IFT_CES = 0x85
626 IFT_CHANNEL = 0x46
627 IFT_CNR = 0x55
628 IFT_COFFEE = 0x84
629 IFT_COMPOSITELINK = 0x9b
630 IFT_DCN = 0x8d
631 IFT_DIGITALPOWERLINE = 0x8a
632 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
633 IFT_DLSW = 0x4a
634 IFT_DOCSCABLEDOWNSTREAM = 0x80
635 IFT_DOCSCABLEMACLAYER = 0x7f
636 IFT_DOCSCABLEUPSTREAM = 0x81
637 IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd
638 IFT_DS0 = 0x51
639 IFT_DS0BUNDLE = 0x52
640 IFT_DS1FDL = 0xaa
641 IFT_DS3 = 0x1e
642 IFT_DTM = 0x8c
643 IFT_DVBASILN = 0xac
644 IFT_DVBASIOUT = 0xad
645 IFT_DVBRCCDOWNSTREAM = 0x93
646 IFT_DVBRCCMACLAYER = 0x92
647 IFT_DVBRCCUPSTREAM = 0x94
648 IFT_ECONET = 0xce
649 IFT_EON = 0x19
650 IFT_EPLRS = 0x57
651 IFT_ESCON = 0x49
652 IFT_ETHER = 0x6
653 IFT_FAITH = 0xf2
654 IFT_FAST = 0x7d
655 IFT_FASTETHER = 0x3e
656 IFT_FASTETHERFX = 0x45
657 IFT_FDDI = 0xf
658 IFT_FIBRECHANNEL = 0x38
659 IFT_FRAMERELAYINTERCONNECT = 0x3a
660 IFT_FRAMERELAYMPI = 0x5c
661 IFT_FRDLCIENDPT = 0xc1
662 IFT_FRELAY = 0x20
663 IFT_FRELAYDCE = 0x2c
664 IFT_FRF16MFRBUNDLE = 0xa3
665 IFT_FRFORWARD = 0x9e
666 IFT_G703AT2MB = 0x43
667 IFT_G703AT64K = 0x42
668 IFT_GIF = 0xf0
669 IFT_GIGABITETHERNET = 0x75
670 IFT_GR303IDT = 0xb2
671 IFT_GR303RDT = 0xb1
672 IFT_H323GATEKEEPER = 0xa4
673 IFT_H323PROXY = 0xa5
674 IFT_HDH1822 = 0x3
675 IFT_HDLC = 0x76
676 IFT_HDSL2 = 0xa8
677 IFT_HIPERLAN2 = 0xb7
678 IFT_HIPPI = 0x2f
679 IFT_HIPPIINTERFACE = 0x39
680 IFT_HOSTPAD = 0x5a
681 IFT_HSSI = 0x2e
682 IFT_HY = 0xe
683 IFT_IBM370PARCHAN = 0x48
684 IFT_IDSL = 0x9a
685 IFT_IEEE1394 = 0x90
686 IFT_IEEE80211 = 0x47
687 IFT_IEEE80212 = 0x37
688 IFT_IEEE8023ADLAG = 0xa1
689 IFT_IFGSN = 0x91
690 IFT_IMT = 0xbe
691 IFT_INFINIBAND = 0xc7
692 IFT_INTERLEAVE = 0x7c
693 IFT_IP = 0x7e
694 IFT_IPFORWARD = 0x8e
695 IFT_IPOVERATM = 0x72
696 IFT_IPOVERCDLC = 0x6d
697 IFT_IPOVERCLAW = 0x6e
698 IFT_IPSWITCH = 0x4e
699 IFT_ISDN = 0x3f
700 IFT_ISDNBASIC = 0x14
701 IFT_ISDNPRIMARY = 0x15
702 IFT_ISDNS = 0x4b
703 IFT_ISDNU = 0x4c
704 IFT_ISO88022LLC = 0x29
705 IFT_ISO88023 = 0x7
706 IFT_ISO88024 = 0x8
707 IFT_ISO88025 = 0x9
708 IFT_ISO88025CRFPINT = 0x62
709 IFT_ISO88025DTR = 0x56
710 IFT_ISO88025FIBER = 0x73
711 IFT_ISO88026 = 0xa
712 IFT_ISUP = 0xb3
713 IFT_L2VLAN = 0x87
714 IFT_L3IPVLAN = 0x88
715 IFT_L3IPXVLAN = 0x89
716 IFT_LAPB = 0x10
717 IFT_LAPD = 0x4d
718 IFT_LAPF = 0x77
719 IFT_LINEGROUP = 0xd2
720 IFT_LOCALTALK = 0x2a
721 IFT_LOOP = 0x18
722 IFT_MEDIAMAILOVERIP = 0x8b
723 IFT_MFSIGLINK = 0xa7
724 IFT_MIOX25 = 0x26
725 IFT_MODEM = 0x30
726 IFT_MPC = 0x71
727 IFT_MPLS = 0xa6
728 IFT_MPLSTUNNEL = 0x96
729 IFT_MSDSL = 0x8f
730 IFT_MVL = 0xbf
731 IFT_MYRINET = 0x63
732 IFT_NFAS = 0xaf
733 IFT_NSIP = 0x1b
734 IFT_OPTICALCHANNEL = 0xc3
735 IFT_OPTICALTRANSPORT = 0xc4
736 IFT_OTHER = 0x1
737 IFT_P10 = 0xc
738 IFT_P80 = 0xd
739 IFT_PARA = 0x22
740 IFT_PFLOG = 0xf5
741 IFT_PFSYNC = 0xf6
742 IFT_PLC = 0xae
743 IFT_PON155 = 0xcf
744 IFT_PON622 = 0xd0
745 IFT_POS = 0xab
746 IFT_PPP = 0x17
747 IFT_PPPMULTILINKBUNDLE = 0x6c
748 IFT_PROPATM = 0xc5
749 IFT_PROPBWAP2MP = 0xb8
750 IFT_PROPCNLS = 0x59
751 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
752 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
753 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
754 IFT_PROPMUX = 0x36
755 IFT_PROPVIRTUAL = 0x35
756 IFT_PROPWIRELESSP2P = 0x9d
757 IFT_PTPSERIAL = 0x16
758 IFT_PVC = 0xf1
759 IFT_Q2931 = 0xc9
760 IFT_QLLC = 0x44
761 IFT_RADIOMAC = 0xbc
762 IFT_RADSL = 0x5f
763 IFT_REACHDSL = 0xc0
764 IFT_RFC1483 = 0x9f
765 IFT_RS232 = 0x21
766 IFT_RSRB = 0x4f
767 IFT_SDLC = 0x11
768 IFT_SDSL = 0x60
769 IFT_SHDSL = 0xa9
770 IFT_SIP = 0x1f
771 IFT_SIPSIG = 0xcc
772 IFT_SIPTG = 0xcb
773 IFT_SLIP = 0x1c
774 IFT_SMDSDXI = 0x2b
775 IFT_SMDSICIP = 0x34
776 IFT_SONET = 0x27
777 IFT_SONETOVERHEADCHANNEL = 0xb9
778 IFT_SONETPATH = 0x32
779 IFT_SONETVT = 0x33
780 IFT_SRP = 0x97
781 IFT_SS7SIGLINK = 0x9c
782 IFT_STACKTOSTACK = 0x6f
783 IFT_STARLAN = 0xb
784 IFT_STF = 0xd7
785 IFT_T1 = 0x12
786 IFT_TDLC = 0x74
787 IFT_TELINK = 0xc8
788 IFT_TERMPAD = 0x5b
789 IFT_TR008 = 0xb0
790 IFT_TRANSPHDLC = 0x7b
791 IFT_TUNNEL = 0x83
792 IFT_ULTRA = 0x1d
793 IFT_USB = 0xa0
794 IFT_V11 = 0x40
795 IFT_V35 = 0x2d
796 IFT_V36 = 0x41
797 IFT_V37 = 0x78
798 IFT_VDSL = 0x61
799 IFT_VIRTUALIPADDRESS = 0x70
800 IFT_VIRTUALTG = 0xca
801 IFT_VOICEDID = 0xd5
802 IFT_VOICEEM = 0x64
803 IFT_VOICEEMFGD = 0xd3
804 IFT_VOICEENCAP = 0x67
805 IFT_VOICEFGDEANA = 0xd4
806 IFT_VOICEFXO = 0x65
807 IFT_VOICEFXS = 0x66
808 IFT_VOICEOVERATM = 0x98
809 IFT_VOICEOVERCABLE = 0xc6
810 IFT_VOICEOVERFRAMERELAY = 0x99
811 IFT_VOICEOVERIP = 0x68
812 IFT_X213 = 0x5d
813 IFT_X25 = 0x5
814 IFT_X25DDN = 0x4
815 IFT_X25HUNTGROUP = 0x7a
816 IFT_X25MLP = 0x79
817 IFT_X25PLE = 0x28
818 IFT_XETHER = 0x1a
819 IGNBRK = 0x1
820 IGNCR = 0x80
821 IGNPAR = 0x4
822 IMAXBEL = 0x2000
823 INLCR = 0x40
824 INPCK = 0x10
825 IN_CLASSA_HOST = 0xffffff
826 IN_CLASSA_MAX = 0x80
827 IN_CLASSA_NET = 0xff000000
828 IN_CLASSA_NSHIFT = 0x18
829 IN_CLASSB_HOST = 0xffff
830 IN_CLASSB_MAX = 0x10000
831 IN_CLASSB_NET = 0xffff0000
832 IN_CLASSB_NSHIFT = 0x10
833 IN_CLASSC_HOST = 0xff
834 IN_CLASSC_NET = 0xffffff00
835 IN_CLASSC_NSHIFT = 0x8
836 IN_CLASSD_HOST = 0xfffffff
837 IN_CLASSD_NET = 0xf0000000
838 IN_CLASSD_NSHIFT = 0x1c
839 IN_LOOPBACKNET = 0x7f
840 IPPROTO_AH = 0x33
841 IPPROTO_CARP = 0x70
842 IPPROTO_DONE = 0x101
843 IPPROTO_DSTOPTS = 0x3c
844 IPPROTO_EGP = 0x8
845 IPPROTO_ENCAP = 0x62
846 IPPROTO_EON = 0x50
847 IPPROTO_ESP = 0x32
848 IPPROTO_ETHERIP = 0x61
849 IPPROTO_FRAGMENT = 0x2c
850 IPPROTO_GGP = 0x3
851 IPPROTO_GRE = 0x2f
852 IPPROTO_HOPOPTS = 0x0
853 IPPROTO_ICMP = 0x1
854 IPPROTO_ICMPV6 = 0x3a
855 IPPROTO_IDP = 0x16
856 IPPROTO_IGMP = 0x2
857 IPPROTO_IP = 0x0
858 IPPROTO_IPCOMP = 0x6c
859 IPPROTO_IPIP = 0x4
860 IPPROTO_IPV4 = 0x4
861 IPPROTO_IPV6 = 0x29
862 IPPROTO_IPV6_ICMP = 0x3a
863 IPPROTO_MAX = 0x100
864 IPPROTO_MAXID = 0x34
865 IPPROTO_MOBILE = 0x37
866 IPPROTO_NONE = 0x3b
867 IPPROTO_PFSYNC = 0xf0
868 IPPROTO_PIM = 0x67
869 IPPROTO_PUP = 0xc
870 IPPROTO_RAW = 0xff
871 IPPROTO_ROUTING = 0x2b
872 IPPROTO_RSVP = 0x2e
873 IPPROTO_TCP = 0x6
874 IPPROTO_TP = 0x1d
875 IPPROTO_UDP = 0x11
876 IPPROTO_VRRP = 0x70
877 IPV6_CHECKSUM = 0x1a
878 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
879 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
880 IPV6_DEFHLIM = 0x40
881 IPV6_DONTFRAG = 0x3e
882 IPV6_DSTOPTS = 0x32
883 IPV6_FAITH = 0x1d
884 IPV6_FLOWINFO_MASK = 0xffffff0f
885 IPV6_FLOWLABEL_MASK = 0xffff0f00
886 IPV6_FRAGTTL = 0x78
887 IPV6_HLIMDEC = 0x1
888 IPV6_HOPLIMIT = 0x2f
889 IPV6_HOPOPTS = 0x31
890 IPV6_IPSEC_POLICY = 0x1c
891 IPV6_JOIN_GROUP = 0xc
892 IPV6_LEAVE_GROUP = 0xd
893 IPV6_MAXHLIM = 0xff
894 IPV6_MAXPACKET = 0xffff
895 IPV6_MMTU = 0x500
896 IPV6_MULTICAST_HOPS = 0xa
897 IPV6_MULTICAST_IF = 0x9
898 IPV6_MULTICAST_LOOP = 0xb
899 IPV6_NEXTHOP = 0x30
900 IPV6_PATHMTU = 0x2c
901 IPV6_PKTINFO = 0x2e
902 IPV6_PORTRANGE = 0xe
903 IPV6_PORTRANGE_DEFAULT = 0x0
904 IPV6_PORTRANGE_HIGH = 0x1
905 IPV6_PORTRANGE_LOW = 0x2
906 IPV6_RECVDSTOPTS = 0x28
907 IPV6_RECVHOPLIMIT = 0x25
908 IPV6_RECVHOPOPTS = 0x27
909 IPV6_RECVPATHMTU = 0x2b
910 IPV6_RECVPKTINFO = 0x24
911 IPV6_RECVRTHDR = 0x26
912 IPV6_RECVTCLASS = 0x39
913 IPV6_RTHDR = 0x33
914 IPV6_RTHDRDSTOPTS = 0x23
915 IPV6_RTHDR_LOOSE = 0x0
916 IPV6_RTHDR_STRICT = 0x1
917 IPV6_RTHDR_TYPE_0 = 0x0
918 IPV6_SOCKOPT_RESERVED1 = 0x3
919 IPV6_TCLASS = 0x3d
920 IPV6_UNICAST_HOPS = 0x4
921 IPV6_USE_MIN_MTU = 0x2a
922 IPV6_V6ONLY = 0x1b
923 IPV6_VERSION = 0x60
924 IPV6_VERSION_MASK = 0xf0
925 IP_ADD_MEMBERSHIP = 0xc
926 IP_DEFAULT_MULTICAST_LOOP = 0x1
927 IP_DEFAULT_MULTICAST_TTL = 0x1
928 IP_DF = 0x4000
929 IP_DROP_MEMBERSHIP = 0xd
930 IP_EF = 0x8000
931 IP_ERRORMTU = 0x15
932 IP_HDRINCL = 0x2
933 IP_IPSEC_POLICY = 0x16
934 IP_MAXPACKET = 0xffff
935 IP_MAX_MEMBERSHIPS = 0x14
936 IP_MF = 0x2000
937 IP_MINFRAGSIZE = 0x45
938 IP_MINTTL = 0x18
939 IP_MSS = 0x240
940 IP_MULTICAST_IF = 0x9
941 IP_MULTICAST_LOOP = 0xb
942 IP_MULTICAST_TTL = 0xa
943 IP_OFFMASK = 0x1fff
944 IP_OPTIONS = 0x1
945 IP_PORTRANGE = 0x13
946 IP_PORTRANGE_DEFAULT = 0x0
947 IP_PORTRANGE_HIGH = 0x1
948 IP_PORTRANGE_LOW = 0x2
949 IP_RECVDSTADDR = 0x7
950 IP_RECVIF = 0x14
951 IP_RECVOPTS = 0x5
952 IP_RECVRETOPTS = 0x6
953 IP_RECVTTL = 0x17
954 IP_RETOPTS = 0x8
955 IP_RF = 0x8000
956 IP_TOS = 0x3
957 IP_TTL = 0x4
958 ISIG = 0x80
959 ISTRIP = 0x20
960 IXANY = 0x800
961 IXOFF = 0x400
962 IXON = 0x200
963 LOCK_EX = 0x2
964 LOCK_NB = 0x4
965 LOCK_SH = 0x1
966 LOCK_UN = 0x8
967 MADV_DONTNEED = 0x4
968 MADV_FREE = 0x6
969 MADV_NORMAL = 0x0
970 MADV_RANDOM = 0x1
971 MADV_SEQUENTIAL = 0x2
972 MADV_SPACEAVAIL = 0x5
973 MADV_WILLNEED = 0x3
974 MAP_ALIGNMENT_16MB = 0x18000000
975 MAP_ALIGNMENT_1TB = 0x28000000
976 MAP_ALIGNMENT_256TB = 0x30000000
977 MAP_ALIGNMENT_4GB = 0x20000000
978 MAP_ALIGNMENT_64KB = 0x10000000
979 MAP_ALIGNMENT_64PB = 0x38000000
980 MAP_ALIGNMENT_MASK = -0x1000000
981 MAP_ALIGNMENT_SHIFT = 0x18
982 MAP_ANON = 0x1000
983 MAP_FILE = 0x0
984 MAP_FIXED = 0x10
985 MAP_HASSEMAPHORE = 0x200
986 MAP_INHERIT = 0x80
987 MAP_INHERIT_COPY = 0x1
988 MAP_INHERIT_DEFAULT = 0x1
989 MAP_INHERIT_DONATE_COPY = 0x3
990 MAP_INHERIT_NONE = 0x2
991 MAP_INHERIT_SHARE = 0x0
992 MAP_NORESERVE = 0x40
993 MAP_PRIVATE = 0x2
994 MAP_RENAME = 0x20
995 MAP_SHARED = 0x1
996 MAP_STACK = 0x2000
997 MAP_TRYFIXED = 0x400
998 MAP_WIRED = 0x800
999 MCL_CURRENT = 0x1
1000 MCL_FUTURE = 0x2
1001 MSG_BCAST = 0x100
1002 MSG_CMSG_CLOEXEC = 0x800
1003 MSG_CONTROLMBUF = 0x2000000
1004 MSG_CTRUNC = 0x20
1005 MSG_DONTROUTE = 0x4
1006 MSG_DONTWAIT = 0x80
1007 MSG_EOR = 0x8
1008 MSG_IOVUSRSPACE = 0x4000000
1009 MSG_LENUSRSPACE = 0x8000000
1010 MSG_MCAST = 0x200
1011 MSG_NAMEMBUF = 0x1000000
1012 MSG_NBIO = 0x1000
1013 MSG_NOSIGNAL = 0x400
1014 MSG_OOB = 0x1
1015 MSG_PEEK = 0x2
1016 MSG_TRUNC = 0x10
1017 MSG_USERFLAGS = 0xffffff
1018 MSG_WAITALL = 0x40
1019 MS_ASYNC = 0x1
1020 MS_INVALIDATE = 0x2
1021 MS_SYNC = 0x4
1022 NAME_MAX = 0x1ff
1023 NET_RT_DUMP = 0x1
1024 NET_RT_FLAGS = 0x2
1025 NET_RT_IFLIST = 0x5
1026 NET_RT_MAXID = 0x6
1027 NET_RT_OIFLIST = 0x4
1028 NET_RT_OOIFLIST = 0x3
1029 NOFLSH = 0x80000000
1030 NOTE_ATTRIB = 0x8
1031 NOTE_CHILD = 0x4
1032 NOTE_DELETE = 0x1
1033 NOTE_EXEC = 0x20000000
1034 NOTE_EXIT = 0x80000000
1035 NOTE_EXTEND = 0x4
1036 NOTE_FORK = 0x40000000
1037 NOTE_LINK = 0x10
1038 NOTE_LOWAT = 0x1
1039 NOTE_PCTRLMASK = 0xf0000000
1040 NOTE_PDATAMASK = 0xfffff
1041 NOTE_RENAME = 0x20
1042 NOTE_REVOKE = 0x40
1043 NOTE_TRACK = 0x1
1044 NOTE_TRACKERR = 0x2
1045 NOTE_WRITE = 0x2
1046 OCRNL = 0x10
1047 OFIOGETBMAP = 0xc004667a
1048 ONLCR = 0x2
1049 ONLRET = 0x40
1050 ONOCR = 0x20
1051 ONOEOT = 0x8
1052 OPOST = 0x1
1053 O_ACCMODE = 0x3
1054 O_ALT_IO = 0x40000
1055 O_APPEND = 0x8
1056 O_ASYNC = 0x40
1057 O_CLOEXEC = 0x400000
1058 O_CREAT = 0x200
1059 O_DIRECT = 0x80000
1060 O_DIRECTORY = 0x200000
1061 O_DSYNC = 0x10000
1062 O_EXCL = 0x800
1063 O_EXLOCK = 0x20
1064 O_FSYNC = 0x80
1065 O_NDELAY = 0x4
1066 O_NOCTTY = 0x8000
1067 O_NOFOLLOW = 0x100
1068 O_NONBLOCK = 0x4
1069 O_NOSIGPIPE = 0x1000000
1070 O_RDONLY = 0x0
1071 O_RDWR = 0x2
1072 O_RSYNC = 0x20000
1073 O_SHLOCK = 0x10
1074 O_SYNC = 0x80
1075 O_TRUNC = 0x400
1076 O_WRONLY = 0x1
1077 PARENB = 0x1000
1078 PARMRK = 0x8
1079 PARODD = 0x2000
1080 PENDIN = 0x20000000
1081 PRIO_PGRP = 0x1
1082 PRIO_PROCESS = 0x0
1083 PRIO_USER = 0x2
1084 PRI_IOFLUSH = 0x7c
1085 PROT_EXEC = 0x4
1086 PROT_NONE = 0x0
1087 PROT_READ = 0x1
1088 PROT_WRITE = 0x2
1089 RLIMIT_AS = 0xa
1090 RLIMIT_CORE = 0x4
1091 RLIMIT_CPU = 0x0
1092 RLIMIT_DATA = 0x2
1093 RLIMIT_FSIZE = 0x1
1094 RLIMIT_NOFILE = 0x8
1095 RLIMIT_STACK = 0x3
1096 RLIM_INFINITY = 0x7fffffffffffffff
1097 RTAX_AUTHOR = 0x6
1098 RTAX_BRD = 0x7
1099 RTAX_DST = 0x0
1100 RTAX_GATEWAY = 0x1
1101 RTAX_GENMASK = 0x3
1102 RTAX_IFA = 0x5
1103 RTAX_IFP = 0x4
1104 RTAX_MAX = 0x9
1105 RTAX_NETMASK = 0x2
1106 RTAX_TAG = 0x8
1107 RTA_AUTHOR = 0x40
1108 RTA_BRD = 0x80
1109 RTA_DST = 0x1
1110 RTA_GATEWAY = 0x2
1111 RTA_GENMASK = 0x8
1112 RTA_IFA = 0x20
1113 RTA_IFP = 0x10
1114 RTA_NETMASK = 0x4
1115 RTA_TAG = 0x100
1116 RTF_ANNOUNCE = 0x20000
1117 RTF_BLACKHOLE = 0x1000
1118 RTF_CLONED = 0x2000
1119 RTF_CLONING = 0x100
1120 RTF_DONE = 0x40
1121 RTF_DYNAMIC = 0x10
1122 RTF_GATEWAY = 0x2
1123 RTF_HOST = 0x4
1124 RTF_LLINFO = 0x400
1125 RTF_MASK = 0x80
1126 RTF_MODIFIED = 0x20
1127 RTF_PROTO1 = 0x8000
1128 RTF_PROTO2 = 0x4000
1129 RTF_REJECT = 0x8
1130 RTF_SRC = 0x10000
1131 RTF_STATIC = 0x800
1132 RTF_UP = 0x1
1133 RTF_XRESOLVE = 0x200
1134 RTM_ADD = 0x1
1135 RTM_CHANGE = 0x3
1136 RTM_CHGADDR = 0x15
1137 RTM_DELADDR = 0xd
1138 RTM_DELETE = 0x2
1139 RTM_GET = 0x4
1140 RTM_IEEE80211 = 0x11
1141 RTM_IFANNOUNCE = 0x10
1142 RTM_IFINFO = 0x14
1143 RTM_LLINFO_UPD = 0x13
1144 RTM_LOCK = 0x8
1145 RTM_LOSING = 0x5
1146 RTM_MISS = 0x7
1147 RTM_NEWADDR = 0xc
1148 RTM_OIFINFO = 0xf
1149 RTM_OLDADD = 0x9
1150 RTM_OLDDEL = 0xa
1151 RTM_OOIFINFO = 0xe
1152 RTM_REDIRECT = 0x6
1153 RTM_RESOLVE = 0xb
1154 RTM_RTTUNIT = 0xf4240
1155 RTM_SETGATE = 0x12
1156 RTM_VERSION = 0x4
1157 RTV_EXPIRE = 0x4
1158 RTV_HOPCOUNT = 0x2
1159 RTV_MTU = 0x1
1160 RTV_RPIPE = 0x8
1161 RTV_RTT = 0x40
1162 RTV_RTTVAR = 0x80
1163 RTV_SPIPE = 0x10
1164 RTV_SSTHRESH = 0x20
1165 RUSAGE_CHILDREN = -0x1
1166 RUSAGE_SELF = 0x0
1167 SCM_CREDS = 0x4
1168 SCM_RIGHTS = 0x1
1169 SCM_TIMESTAMP = 0x8
1170 SHUT_RD = 0x0
1171 SHUT_RDWR = 0x2
1172 SHUT_WR = 0x1
1173 SIOCADDMULTI = 0x80906931
1174 SIOCADDRT = 0x8038720a
1175 SIOCAIFADDR = 0x8040691a
1176 SIOCALIFADDR = 0x8118691c
1177 SIOCATMARK = 0x40047307
1178 SIOCDELMULTI = 0x80906932
1179 SIOCDELRT = 0x8038720b
1180 SIOCDIFADDR = 0x80906919
1181 SIOCDIFPHYADDR = 0x80906949
1182 SIOCDLIFADDR = 0x8118691e
1183 SIOCGDRVSPEC = 0xc028697b
1184 SIOCGETPFSYNC = 0xc09069f8
1185 SIOCGETSGCNT = 0xc0207534
1186 SIOCGETVIFCNT = 0xc0287533
1187 SIOCGHIWAT = 0x40047301
1188 SIOCGIFADDR = 0xc0906921
1189 SIOCGIFADDRPREF = 0xc0986920
1190 SIOCGIFALIAS = 0xc040691b
1191 SIOCGIFBRDADDR = 0xc0906923
1192 SIOCGIFCAP = 0xc0206976
1193 SIOCGIFCONF = 0xc0106926
1194 SIOCGIFDATA = 0xc0986985
1195 SIOCGIFDLT = 0xc0906977
1196 SIOCGIFDSTADDR = 0xc0906922
1197 SIOCGIFFLAGS = 0xc0906911
1198 SIOCGIFGENERIC = 0xc090693a
1199 SIOCGIFMEDIA = 0xc0306936
1200 SIOCGIFMETRIC = 0xc0906917
1201 SIOCGIFMTU = 0xc090697e
1202 SIOCGIFNETMASK = 0xc0906925
1203 SIOCGIFPDSTADDR = 0xc0906948
1204 SIOCGIFPSRCADDR = 0xc0906947
1205 SIOCGLIFADDR = 0xc118691d
1206 SIOCGLIFPHYADDR = 0xc118694b
1207 SIOCGLINKSTR = 0xc0286987
1208 SIOCGLOWAT = 0x40047303
1209 SIOCGPGRP = 0x40047309
1210 SIOCGVH = 0xc0906983
1211 SIOCIFCREATE = 0x8090697a
1212 SIOCIFDESTROY = 0x80906979
1213 SIOCIFGCLONERS = 0xc0106978
1214 SIOCINITIFADDR = 0xc0706984
1215 SIOCSDRVSPEC = 0x8028697b
1216 SIOCSETPFSYNC = 0x809069f7
1217 SIOCSHIWAT = 0x80047300
1218 SIOCSIFADDR = 0x8090690c
1219 SIOCSIFADDRPREF = 0x8098691f
1220 SIOCSIFBRDADDR = 0x80906913
1221 SIOCSIFCAP = 0x80206975
1222 SIOCSIFDSTADDR = 0x8090690e
1223 SIOCSIFFLAGS = 0x80906910
1224 SIOCSIFGENERIC = 0x80906939
1225 SIOCSIFMEDIA = 0xc0906935
1226 SIOCSIFMETRIC = 0x80906918
1227 SIOCSIFMTU = 0x8090697f
1228 SIOCSIFNETMASK = 0x80906916
1229 SIOCSIFPHYADDR = 0x80406946
1230 SIOCSLIFPHYADDR = 0x8118694a
1231 SIOCSLINKSTR = 0x80286988
1232 SIOCSLOWAT = 0x80047302
1233 SIOCSPGRP = 0x80047308
1234 SIOCSVH = 0xc0906982
1235 SIOCZIFDATA = 0xc0986986
1236 SOCK_CLOEXEC = 0x10000000
1237 SOCK_DGRAM = 0x2
1238 SOCK_FLAGS_MASK = 0xf0000000
1239 SOCK_NONBLOCK = 0x20000000
1240 SOCK_NOSIGPIPE = 0x40000000
1241 SOCK_RAW = 0x3
1242 SOCK_RDM = 0x4
1243 SOCK_SEQPACKET = 0x5
1244 SOCK_STREAM = 0x1
1245 SOL_SOCKET = 0xffff
1246 SOMAXCONN = 0x80
1247 SO_ACCEPTCONN = 0x2
1248 SO_ACCEPTFILTER = 0x1000
1249 SO_BROADCAST = 0x20
1250 SO_DEBUG = 0x1
1251 SO_DONTROUTE = 0x10
1252 SO_ERROR = 0x1007
1253 SO_KEEPALIVE = 0x8
1254 SO_LINGER = 0x80
1255 SO_NOHEADER = 0x100a
1256 SO_NOSIGPIPE = 0x800
1257 SO_OOBINLINE = 0x100
1258 SO_OVERFLOWED = 0x1009
1259 SO_RCVBUF = 0x1002
1260 SO_RCVLOWAT = 0x1004
1261 SO_RCVTIMEO = 0x100c
1262 SO_REUSEADDR = 0x4
1263 SO_REUSEPORT = 0x200
1264 SO_SNDBUF = 0x1001
1265 SO_SNDLOWAT = 0x1003
1266 SO_SNDTIMEO = 0x100b
1267 SO_TIMESTAMP = 0x2000
1268 SO_TYPE = 0x1008
1269 SO_USELOOPBACK = 0x40
1270 SYSCTL_VERSION = 0x1000000
1271 SYSCTL_VERS_0 = 0x0
1272 SYSCTL_VERS_1 = 0x1000000
1273 SYSCTL_VERS_MASK = 0xff000000
1274 S_ARCH1 = 0x10000
1275 S_ARCH2 = 0x20000
1276 S_BLKSIZE = 0x200
1277 S_IEXEC = 0x40
1278 S_IFBLK = 0x6000
1279 S_IFCHR = 0x2000
1280 S_IFDIR = 0x4000
1281 S_IFIFO = 0x1000
1282 S_IFLNK = 0xa000
1283 S_IFMT = 0xf000
1284 S_IFREG = 0x8000
1285 S_IFSOCK = 0xc000
1286 S_IFWHT = 0xe000
1287 S_IREAD = 0x100
1288 S_IRGRP = 0x20
1289 S_IROTH = 0x4
1290 S_IRUSR = 0x100
1291 S_IRWXG = 0x38
1292 S_IRWXO = 0x7
1293 S_IRWXU = 0x1c0
1294 S_ISGID = 0x400
1295 S_ISTXT = 0x200
1296 S_ISUID = 0x800
1297 S_ISVTX = 0x200
1298 S_IWGRP = 0x10
1299 S_IWOTH = 0x2
1300 S_IWRITE = 0x80
1301 S_IWUSR = 0x80
1302 S_IXGRP = 0x8
1303 S_IXOTH = 0x1
1304 S_IXUSR = 0x40
1305 S_LOGIN_SET = 0x1
1306 TCIFLUSH = 0x1
1307 TCIOFLUSH = 0x3
1308 TCOFLUSH = 0x2
1309 TCP_CONGCTL = 0x20
1310 TCP_KEEPCNT = 0x6
1311 TCP_KEEPIDLE = 0x3
1312 TCP_KEEPINIT = 0x7
1313 TCP_KEEPINTVL = 0x5
1314 TCP_MAXBURST = 0x4
1315 TCP_MAXSEG = 0x2
1316 TCP_MAXWIN = 0xffff
1317 TCP_MAX_WINSHIFT = 0xe
1318 TCP_MD5SIG = 0x10
1319 TCP_MINMSS = 0xd8
1320 TCP_MSS = 0x218
1321 TCP_NODELAY = 0x1
1322 TCSAFLUSH = 0x2
1323 TIOCCBRK = 0x2000747a
1324 TIOCCDTR = 0x20007478
1325 TIOCCONS = 0x80047462
1326 TIOCDCDTIMESTAMP = 0x40107458
1327 TIOCDRAIN = 0x2000745e
1328 TIOCEXCL = 0x2000740d
1329 TIOCEXT = 0x80047460
1330 TIOCFLAG_CDTRCTS = 0x10
1331 TIOCFLAG_CLOCAL = 0x2
1332 TIOCFLAG_CRTSCTS = 0x4
1333 TIOCFLAG_MDMBUF = 0x8
1334 TIOCFLAG_SOFTCAR = 0x1
1335 TIOCFLUSH = 0x80047410
1336 TIOCGETA = 0x402c7413
1337 TIOCGETD = 0x4004741a
1338 TIOCGFLAGS = 0x4004745d
1339 TIOCGLINED = 0x40207442
1340 TIOCGPGRP = 0x40047477
1341 TIOCGQSIZE = 0x40047481
1342 TIOCGRANTPT = 0x20007447
1343 TIOCGSID = 0x40047463
1344 TIOCGSIZE = 0x40087468
1345 TIOCGWINSZ = 0x40087468
1346 TIOCMBIC = 0x8004746b
1347 TIOCMBIS = 0x8004746c
1348 TIOCMGET = 0x4004746a
1349 TIOCMSET = 0x8004746d
1350 TIOCM_CAR = 0x40
1351 TIOCM_CD = 0x40
1352 TIOCM_CTS = 0x20
1353 TIOCM_DSR = 0x100
1354 TIOCM_DTR = 0x2
1355 TIOCM_LE = 0x1
1356 TIOCM_RI = 0x80
1357 TIOCM_RNG = 0x80
1358 TIOCM_RTS = 0x4
1359 TIOCM_SR = 0x10
1360 TIOCM_ST = 0x8
1361 TIOCNOTTY = 0x20007471
1362 TIOCNXCL = 0x2000740e
1363 TIOCOUTQ = 0x40047473
1364 TIOCPKT = 0x80047470
1365 TIOCPKT_DATA = 0x0
1366 TIOCPKT_DOSTOP = 0x20
1367 TIOCPKT_FLUSHREAD = 0x1
1368 TIOCPKT_FLUSHWRITE = 0x2
1369 TIOCPKT_IOCTL = 0x40
1370 TIOCPKT_NOSTOP = 0x10
1371 TIOCPKT_START = 0x8
1372 TIOCPKT_STOP = 0x4
1373 TIOCPTMGET = 0x40287446
1374 TIOCPTSNAME = 0x40287448
1375 TIOCRCVFRAME = 0x80087445
1376 TIOCREMOTE = 0x80047469
1377 TIOCSBRK = 0x2000747b
1378 TIOCSCTTY = 0x20007461
1379 TIOCSDTR = 0x20007479
1380 TIOCSETA = 0x802c7414
1381 TIOCSETAF = 0x802c7416
1382 TIOCSETAW = 0x802c7415
1383 TIOCSETD = 0x8004741b
1384 TIOCSFLAGS = 0x8004745c
1385 TIOCSIG = 0x2000745f
1386 TIOCSLINED = 0x80207443
1387 TIOCSPGRP = 0x80047476
1388 TIOCSQSIZE = 0x80047480
1389 TIOCSSIZE = 0x80087467
1390 TIOCSTART = 0x2000746e
1391 TIOCSTAT = 0x80047465
1392 TIOCSTI = 0x80017472
1393 TIOCSTOP = 0x2000746f
1394 TIOCSWINSZ = 0x80087467
1395 TIOCUCNTL = 0x80047466
1396 TIOCXMTFRAME = 0x80087444
1397 TOSTOP = 0x400000
1398 VDISCARD = 0xf
1399 VDSUSP = 0xb
1400 VEOF = 0x0
1401 VEOL = 0x1
1402 VEOL2 = 0x2
1403 VERASE = 0x3
1404 VINTR = 0x8
1405 VKILL = 0x5
1406 VLNEXT = 0xe
1407 VMIN = 0x10
1408 VQUIT = 0x9
1409 VREPRINT = 0x6
1410 VSTART = 0xc
1411 VSTATUS = 0x12
1412 VSTOP = 0xd
1413 VSUSP = 0xa
1414 VTIME = 0x11
1415 VWERASE = 0x4
1416 WALL = 0x8
1417 WALLSIG = 0x8
1418 WALTSIG = 0x4
1419 WCLONE = 0x4
1420 WCOREFLAG = 0x80
1421 WNOHANG = 0x1
1422 WNOWAIT = 0x10000
1423 WNOZOMBIE = 0x20000
1424 WOPTSCHECKED = 0x40000
1425 WSTOPPED = 0x7f
1426 WUNTRACED = 0x2
1427)
1428
1429// Errors
1430const (
1431 E2BIG = syscall.Errno(0x7)
1432 EACCES = syscall.Errno(0xd)
1433 EADDRINUSE = syscall.Errno(0x30)
1434 EADDRNOTAVAIL = syscall.Errno(0x31)
1435 EAFNOSUPPORT = syscall.Errno(0x2f)
1436 EAGAIN = syscall.Errno(0x23)
1437 EALREADY = syscall.Errno(0x25)
1438 EAUTH = syscall.Errno(0x50)
1439 EBADF = syscall.Errno(0x9)
1440 EBADMSG = syscall.Errno(0x58)
1441 EBADRPC = syscall.Errno(0x48)
1442 EBUSY = syscall.Errno(0x10)
1443 ECANCELED = syscall.Errno(0x57)
1444 ECHILD = syscall.Errno(0xa)
1445 ECONNABORTED = syscall.Errno(0x35)
1446 ECONNREFUSED = syscall.Errno(0x3d)
1447 ECONNRESET = syscall.Errno(0x36)
1448 EDEADLK = syscall.Errno(0xb)
1449 EDESTADDRREQ = syscall.Errno(0x27)
1450 EDOM = syscall.Errno(0x21)
1451 EDQUOT = syscall.Errno(0x45)
1452 EEXIST = syscall.Errno(0x11)
1453 EFAULT = syscall.Errno(0xe)
1454 EFBIG = syscall.Errno(0x1b)
1455 EFTYPE = syscall.Errno(0x4f)
1456 EHOSTDOWN = syscall.Errno(0x40)
1457 EHOSTUNREACH = syscall.Errno(0x41)
1458 EIDRM = syscall.Errno(0x52)
1459 EILSEQ = syscall.Errno(0x55)
1460 EINPROGRESS = syscall.Errno(0x24)
1461 EINTR = syscall.Errno(0x4)
1462 EINVAL = syscall.Errno(0x16)
1463 EIO = syscall.Errno(0x5)
1464 EISCONN = syscall.Errno(0x38)
1465 EISDIR = syscall.Errno(0x15)
1466 ELAST = syscall.Errno(0x60)
1467 ELOOP = syscall.Errno(0x3e)
1468 EMFILE = syscall.Errno(0x18)
1469 EMLINK = syscall.Errno(0x1f)
1470 EMSGSIZE = syscall.Errno(0x28)
1471 EMULTIHOP = syscall.Errno(0x5e)
1472 ENAMETOOLONG = syscall.Errno(0x3f)
1473 ENEEDAUTH = syscall.Errno(0x51)
1474 ENETDOWN = syscall.Errno(0x32)
1475 ENETRESET = syscall.Errno(0x34)
1476 ENETUNREACH = syscall.Errno(0x33)
1477 ENFILE = syscall.Errno(0x17)
1478 ENOATTR = syscall.Errno(0x5d)
1479 ENOBUFS = syscall.Errno(0x37)
1480 ENODATA = syscall.Errno(0x59)
1481 ENODEV = syscall.Errno(0x13)
1482 ENOENT = syscall.Errno(0x2)
1483 ENOEXEC = syscall.Errno(0x8)
1484 ENOLCK = syscall.Errno(0x4d)
1485 ENOLINK = syscall.Errno(0x5f)
1486 ENOMEM = syscall.Errno(0xc)
1487 ENOMSG = syscall.Errno(0x53)
1488 ENOPROTOOPT = syscall.Errno(0x2a)
1489 ENOSPC = syscall.Errno(0x1c)
1490 ENOSR = syscall.Errno(0x5a)
1491 ENOSTR = syscall.Errno(0x5b)
1492 ENOSYS = syscall.Errno(0x4e)
1493 ENOTBLK = syscall.Errno(0xf)
1494 ENOTCONN = syscall.Errno(0x39)
1495 ENOTDIR = syscall.Errno(0x14)
1496 ENOTEMPTY = syscall.Errno(0x42)
1497 ENOTSOCK = syscall.Errno(0x26)
1498 ENOTSUP = syscall.Errno(0x56)
1499 ENOTTY = syscall.Errno(0x19)
1500 ENXIO = syscall.Errno(0x6)
1501 EOPNOTSUPP = syscall.Errno(0x2d)
1502 EOVERFLOW = syscall.Errno(0x54)
1503 EPERM = syscall.Errno(0x1)
1504 EPFNOSUPPORT = syscall.Errno(0x2e)
1505 EPIPE = syscall.Errno(0x20)
1506 EPROCLIM = syscall.Errno(0x43)
1507 EPROCUNAVAIL = syscall.Errno(0x4c)
1508 EPROGMISMATCH = syscall.Errno(0x4b)
1509 EPROGUNAVAIL = syscall.Errno(0x4a)
1510 EPROTO = syscall.Errno(0x60)
1511 EPROTONOSUPPORT = syscall.Errno(0x2b)
1512 EPROTOTYPE = syscall.Errno(0x29)
1513 ERANGE = syscall.Errno(0x22)
1514 EREMOTE = syscall.Errno(0x47)
1515 EROFS = syscall.Errno(0x1e)
1516 ERPCMISMATCH = syscall.Errno(0x49)
1517 ESHUTDOWN = syscall.Errno(0x3a)
1518 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1519 ESPIPE = syscall.Errno(0x1d)
1520 ESRCH = syscall.Errno(0x3)
1521 ESTALE = syscall.Errno(0x46)
1522 ETIME = syscall.Errno(0x5c)
1523 ETIMEDOUT = syscall.Errno(0x3c)
1524 ETOOMANYREFS = syscall.Errno(0x3b)
1525 ETXTBSY = syscall.Errno(0x1a)
1526 EUSERS = syscall.Errno(0x44)
1527 EWOULDBLOCK = syscall.Errno(0x23)
1528 EXDEV = syscall.Errno(0x12)
1529)
1530
1531// Signals
1532const (
1533 SIGABRT = syscall.Signal(0x6)
1534 SIGALRM = syscall.Signal(0xe)
1535 SIGBUS = syscall.Signal(0xa)
1536 SIGCHLD = syscall.Signal(0x14)
1537 SIGCONT = syscall.Signal(0x13)
1538 SIGEMT = syscall.Signal(0x7)
1539 SIGFPE = syscall.Signal(0x8)
1540 SIGHUP = syscall.Signal(0x1)
1541 SIGILL = syscall.Signal(0x4)
1542 SIGINFO = syscall.Signal(0x1d)
1543 SIGINT = syscall.Signal(0x2)
1544 SIGIO = syscall.Signal(0x17)
1545 SIGIOT = syscall.Signal(0x6)
1546 SIGKILL = syscall.Signal(0x9)
1547 SIGPIPE = syscall.Signal(0xd)
1548 SIGPROF = syscall.Signal(0x1b)
1549 SIGPWR = syscall.Signal(0x20)
1550 SIGQUIT = syscall.Signal(0x3)
1551 SIGSEGV = syscall.Signal(0xb)
1552 SIGSTOP = syscall.Signal(0x11)
1553 SIGSYS = syscall.Signal(0xc)
1554 SIGTERM = syscall.Signal(0xf)
1555 SIGTRAP = syscall.Signal(0x5)
1556 SIGTSTP = syscall.Signal(0x12)
1557 SIGTTIN = syscall.Signal(0x15)
1558 SIGTTOU = syscall.Signal(0x16)
1559 SIGURG = syscall.Signal(0x10)
1560 SIGUSR1 = syscall.Signal(0x1e)
1561 SIGUSR2 = syscall.Signal(0x1f)
1562 SIGVTALRM = syscall.Signal(0x1a)
1563 SIGWINCH = syscall.Signal(0x1c)
1564 SIGXCPU = syscall.Signal(0x18)
1565 SIGXFSZ = syscall.Signal(0x19)
1566)
1567
1568// Error table
1569var errors = [...]string{
1570 1: "operation not permitted",
1571 2: "no such file or directory",
1572 3: "no such process",
1573 4: "interrupted system call",
1574 5: "input/output error",
1575 6: "device not configured",
1576 7: "argument list too long",
1577 8: "exec format error",
1578 9: "bad file descriptor",
1579 10: "no child processes",
1580 11: "resource deadlock avoided",
1581 12: "cannot allocate memory",
1582 13: "permission denied",
1583 14: "bad address",
1584 15: "block device required",
1585 16: "device busy",
1586 17: "file exists",
1587 18: "cross-device link",
1588 19: "operation not supported by device",
1589 20: "not a directory",
1590 21: "is a directory",
1591 22: "invalid argument",
1592 23: "too many open files in system",
1593 24: "too many open files",
1594 25: "inappropriate ioctl for device",
1595 26: "text file busy",
1596 27: "file too large",
1597 28: "no space left on device",
1598 29: "illegal seek",
1599 30: "read-only file system",
1600 31: "too many links",
1601 32: "broken pipe",
1602 33: "numerical argument out of domain",
1603 34: "result too large or too small",
1604 35: "resource temporarily unavailable",
1605 36: "operation now in progress",
1606 37: "operation already in progress",
1607 38: "socket operation on non-socket",
1608 39: "destination address required",
1609 40: "message too long",
1610 41: "protocol wrong type for socket",
1611 42: "protocol option not available",
1612 43: "protocol not supported",
1613 44: "socket type not supported",
1614 45: "operation not supported",
1615 46: "protocol family not supported",
1616 47: "address family not supported by protocol family",
1617 48: "address already in use",
1618 49: "can't assign requested address",
1619 50: "network is down",
1620 51: "network is unreachable",
1621 52: "network dropped connection on reset",
1622 53: "software caused connection abort",
1623 54: "connection reset by peer",
1624 55: "no buffer space available",
1625 56: "socket is already connected",
1626 57: "socket is not connected",
1627 58: "can't send after socket shutdown",
1628 59: "too many references: can't splice",
1629 60: "connection timed out",
1630 61: "connection refused",
1631 62: "too many levels of symbolic links",
1632 63: "file name too long",
1633 64: "host is down",
1634 65: "no route to host",
1635 66: "directory not empty",
1636 67: "too many processes",
1637 68: "too many users",
1638 69: "disc quota exceeded",
1639 70: "stale NFS file handle",
1640 71: "too many levels of remote in path",
1641 72: "RPC struct is bad",
1642 73: "RPC version wrong",
1643 74: "RPC prog. not avail",
1644 75: "program version wrong",
1645 76: "bad procedure for program",
1646 77: "no locks available",
1647 78: "function not implemented",
1648 79: "inappropriate file type or format",
1649 80: "authentication error",
1650 81: "need authenticator",
1651 82: "identifier removed",
1652 83: "no message of desired type",
1653 84: "value too large to be stored in data type",
1654 85: "illegal byte sequence",
1655 86: "not supported",
1656 87: "operation Canceled",
1657 88: "bad or Corrupt message",
1658 89: "no message available",
1659 90: "no STREAM resources",
1660 91: "not a STREAM",
1661 92: "STREAM ioctl timeout",
1662 93: "attribute not found",
1663 94: "multihop attempted",
1664 95: "link has been severed",
1665 96: "protocol error",
1666}
1667
1668// Signal table
1669var signals = [...]string{
1670 1: "hangup",
1671 2: "interrupt",
1672 3: "quit",
1673 4: "illegal instruction",
1674 5: "trace/BPT trap",
1675 6: "abort trap",
1676 7: "EMT trap",
1677 8: "floating point exception",
1678 9: "killed",
1679 10: "bus error",
1680 11: "segmentation fault",
1681 12: "bad system call",
1682 13: "broken pipe",
1683 14: "alarm clock",
1684 15: "terminated",
1685 16: "urgent I/O condition",
1686 17: "stopped (signal)",
1687 18: "stopped",
1688 19: "continued",
1689 20: "child exited",
1690 21: "stopped (tty input)",
1691 22: "stopped (tty output)",
1692 23: "I/O possible",
1693 24: "cputime limit exceeded",
1694 25: "filesize limit exceeded",
1695 26: "virtual timer expired",
1696 27: "profiling timer expired",
1697 28: "window size changes",
1698 29: "information request",
1699 30: "user defined signal 1",
1700 31: "user defined signal 2",
1701 32: "power fail/restart",
1702}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_arm.go
deleted file mode 100644
index ac85ca6..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_netbsd_arm.go
+++ /dev/null
@@ -1,1688 +0,0 @@
1// mkerrors.sh -marm
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm,netbsd
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -marm _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_ARP = 0x1c
16 AF_BLUETOOTH = 0x1f
17 AF_CCITT = 0xa
18 AF_CHAOS = 0x5
19 AF_CNT = 0x15
20 AF_COIP = 0x14
21 AF_DATAKIT = 0x9
22 AF_DECnet = 0xc
23 AF_DLI = 0xd
24 AF_E164 = 0x1a
25 AF_ECMA = 0x8
26 AF_HYLINK = 0xf
27 AF_IEEE80211 = 0x20
28 AF_IMPLINK = 0x3
29 AF_INET = 0x2
30 AF_INET6 = 0x18
31 AF_IPX = 0x17
32 AF_ISDN = 0x1a
33 AF_ISO = 0x7
34 AF_LAT = 0xe
35 AF_LINK = 0x12
36 AF_LOCAL = 0x1
37 AF_MAX = 0x23
38 AF_MPLS = 0x21
39 AF_NATM = 0x1b
40 AF_NS = 0x6
41 AF_OROUTE = 0x11
42 AF_OSI = 0x7
43 AF_PUP = 0x4
44 AF_ROUTE = 0x22
45 AF_SNA = 0xb
46 AF_UNIX = 0x1
47 AF_UNSPEC = 0x0
48 ARPHRD_ARCNET = 0x7
49 ARPHRD_ETHER = 0x1
50 ARPHRD_FRELAY = 0xf
51 ARPHRD_IEEE1394 = 0x18
52 ARPHRD_IEEE802 = 0x6
53 ARPHRD_STRIP = 0x17
54 B0 = 0x0
55 B110 = 0x6e
56 B115200 = 0x1c200
57 B1200 = 0x4b0
58 B134 = 0x86
59 B14400 = 0x3840
60 B150 = 0x96
61 B1800 = 0x708
62 B19200 = 0x4b00
63 B200 = 0xc8
64 B230400 = 0x38400
65 B2400 = 0x960
66 B28800 = 0x7080
67 B300 = 0x12c
68 B38400 = 0x9600
69 B460800 = 0x70800
70 B4800 = 0x12c0
71 B50 = 0x32
72 B57600 = 0xe100
73 B600 = 0x258
74 B7200 = 0x1c20
75 B75 = 0x4b
76 B76800 = 0x12c00
77 B921600 = 0xe1000
78 B9600 = 0x2580
79 BIOCFEEDBACK = 0x8004427d
80 BIOCFLUSH = 0x20004268
81 BIOCGBLEN = 0x40044266
82 BIOCGDLT = 0x4004426a
83 BIOCGDLTLIST = 0xc0084277
84 BIOCGETIF = 0x4090426b
85 BIOCGFEEDBACK = 0x4004427c
86 BIOCGHDRCMPLT = 0x40044274
87 BIOCGRTIMEOUT = 0x400c427b
88 BIOCGSEESENT = 0x40044278
89 BIOCGSTATS = 0x4080426f
90 BIOCGSTATSOLD = 0x4008426f
91 BIOCIMMEDIATE = 0x80044270
92 BIOCPROMISC = 0x20004269
93 BIOCSBLEN = 0xc0044266
94 BIOCSDLT = 0x80044276
95 BIOCSETF = 0x80084267
96 BIOCSETIF = 0x8090426c
97 BIOCSFEEDBACK = 0x8004427d
98 BIOCSHDRCMPLT = 0x80044275
99 BIOCSRTIMEOUT = 0x800c427a
100 BIOCSSEESENT = 0x80044279
101 BIOCSTCPF = 0x80084272
102 BIOCSUDPF = 0x80084273
103 BIOCVERSION = 0x40044271
104 BPF_A = 0x10
105 BPF_ABS = 0x20
106 BPF_ADD = 0x0
107 BPF_ALIGNMENT = 0x4
108 BPF_ALIGNMENT32 = 0x4
109 BPF_ALU = 0x4
110 BPF_AND = 0x50
111 BPF_B = 0x10
112 BPF_DFLTBUFSIZE = 0x100000
113 BPF_DIV = 0x30
114 BPF_H = 0x8
115 BPF_IMM = 0x0
116 BPF_IND = 0x40
117 BPF_JA = 0x0
118 BPF_JEQ = 0x10
119 BPF_JGE = 0x30
120 BPF_JGT = 0x20
121 BPF_JMP = 0x5
122 BPF_JSET = 0x40
123 BPF_K = 0x0
124 BPF_LD = 0x0
125 BPF_LDX = 0x1
126 BPF_LEN = 0x80
127 BPF_LSH = 0x60
128 BPF_MAJOR_VERSION = 0x1
129 BPF_MAXBUFSIZE = 0x1000000
130 BPF_MAXINSNS = 0x200
131 BPF_MEM = 0x60
132 BPF_MEMWORDS = 0x10
133 BPF_MINBUFSIZE = 0x20
134 BPF_MINOR_VERSION = 0x1
135 BPF_MISC = 0x7
136 BPF_MSH = 0xa0
137 BPF_MUL = 0x20
138 BPF_NEG = 0x80
139 BPF_OR = 0x40
140 BPF_RELEASE = 0x30bb6
141 BPF_RET = 0x6
142 BPF_RSH = 0x70
143 BPF_ST = 0x2
144 BPF_STX = 0x3
145 BPF_SUB = 0x10
146 BPF_TAX = 0x0
147 BPF_TXA = 0x80
148 BPF_W = 0x0
149 BPF_X = 0x8
150 BRKINT = 0x2
151 CFLUSH = 0xf
152 CLOCAL = 0x8000
153 CREAD = 0x800
154 CS5 = 0x0
155 CS6 = 0x100
156 CS7 = 0x200
157 CS8 = 0x300
158 CSIZE = 0x300
159 CSTART = 0x11
160 CSTATUS = 0x14
161 CSTOP = 0x13
162 CSTOPB = 0x400
163 CSUSP = 0x1a
164 CTL_MAXNAME = 0xc
165 CTL_NET = 0x4
166 CTL_QUERY = -0x2
167 DIOCBSFLUSH = 0x20006478
168 DLT_A429 = 0xb8
169 DLT_A653_ICM = 0xb9
170 DLT_AIRONET_HEADER = 0x78
171 DLT_AOS = 0xde
172 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
173 DLT_ARCNET = 0x7
174 DLT_ARCNET_LINUX = 0x81
175 DLT_ATM_CLIP = 0x13
176 DLT_ATM_RFC1483 = 0xb
177 DLT_AURORA = 0x7e
178 DLT_AX25 = 0x3
179 DLT_AX25_KISS = 0xca
180 DLT_BACNET_MS_TP = 0xa5
181 DLT_BLUETOOTH_HCI_H4 = 0xbb
182 DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
183 DLT_CAN20B = 0xbe
184 DLT_CAN_SOCKETCAN = 0xe3
185 DLT_CHAOS = 0x5
186 DLT_CISCO_IOS = 0x76
187 DLT_C_HDLC = 0x68
188 DLT_C_HDLC_WITH_DIR = 0xcd
189 DLT_DECT = 0xdd
190 DLT_DOCSIS = 0x8f
191 DLT_ECONET = 0x73
192 DLT_EN10MB = 0x1
193 DLT_EN3MB = 0x2
194 DLT_ENC = 0x6d
195 DLT_ERF = 0xc5
196 DLT_ERF_ETH = 0xaf
197 DLT_ERF_POS = 0xb0
198 DLT_FC_2 = 0xe0
199 DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
200 DLT_FDDI = 0xa
201 DLT_FLEXRAY = 0xd2
202 DLT_FRELAY = 0x6b
203 DLT_FRELAY_WITH_DIR = 0xce
204 DLT_GCOM_SERIAL = 0xad
205 DLT_GCOM_T1E1 = 0xac
206 DLT_GPF_F = 0xab
207 DLT_GPF_T = 0xaa
208 DLT_GPRS_LLC = 0xa9
209 DLT_GSMTAP_ABIS = 0xda
210 DLT_GSMTAP_UM = 0xd9
211 DLT_HDLC = 0x10
212 DLT_HHDLC = 0x79
213 DLT_HIPPI = 0xf
214 DLT_IBM_SN = 0x92
215 DLT_IBM_SP = 0x91
216 DLT_IEEE802 = 0x6
217 DLT_IEEE802_11 = 0x69
218 DLT_IEEE802_11_RADIO = 0x7f
219 DLT_IEEE802_11_RADIO_AVS = 0xa3
220 DLT_IEEE802_15_4 = 0xc3
221 DLT_IEEE802_15_4_LINUX = 0xbf
222 DLT_IEEE802_15_4_NONASK_PHY = 0xd7
223 DLT_IEEE802_16_MAC_CPS = 0xbc
224 DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
225 DLT_IPMB = 0xc7
226 DLT_IPMB_LINUX = 0xd1
227 DLT_IPNET = 0xe2
228 DLT_IPV4 = 0xe4
229 DLT_IPV6 = 0xe5
230 DLT_IP_OVER_FC = 0x7a
231 DLT_JUNIPER_ATM1 = 0x89
232 DLT_JUNIPER_ATM2 = 0x87
233 DLT_JUNIPER_CHDLC = 0xb5
234 DLT_JUNIPER_ES = 0x84
235 DLT_JUNIPER_ETHER = 0xb2
236 DLT_JUNIPER_FRELAY = 0xb4
237 DLT_JUNIPER_GGSN = 0x85
238 DLT_JUNIPER_ISM = 0xc2
239 DLT_JUNIPER_MFR = 0x86
240 DLT_JUNIPER_MLFR = 0x83
241 DLT_JUNIPER_MLPPP = 0x82
242 DLT_JUNIPER_MONITOR = 0xa4
243 DLT_JUNIPER_PIC_PEER = 0xae
244 DLT_JUNIPER_PPP = 0xb3
245 DLT_JUNIPER_PPPOE = 0xa7
246 DLT_JUNIPER_PPPOE_ATM = 0xa8
247 DLT_JUNIPER_SERVICES = 0x88
248 DLT_JUNIPER_ST = 0xc8
249 DLT_JUNIPER_VP = 0xb7
250 DLT_LAPB_WITH_DIR = 0xcf
251 DLT_LAPD = 0xcb
252 DLT_LIN = 0xd4
253 DLT_LINUX_EVDEV = 0xd8
254 DLT_LINUX_IRDA = 0x90
255 DLT_LINUX_LAPD = 0xb1
256 DLT_LINUX_SLL = 0x71
257 DLT_LOOP = 0x6c
258 DLT_LTALK = 0x72
259 DLT_MFR = 0xb6
260 DLT_MOST = 0xd3
261 DLT_MPLS = 0xdb
262 DLT_MTP2 = 0x8c
263 DLT_MTP2_WITH_PHDR = 0x8b
264 DLT_MTP3 = 0x8d
265 DLT_NULL = 0x0
266 DLT_PCI_EXP = 0x7d
267 DLT_PFLOG = 0x75
268 DLT_PFSYNC = 0x12
269 DLT_PPI = 0xc0
270 DLT_PPP = 0x9
271 DLT_PPP_BSDOS = 0xe
272 DLT_PPP_ETHER = 0x33
273 DLT_PPP_PPPD = 0xa6
274 DLT_PPP_SERIAL = 0x32
275 DLT_PPP_WITH_DIR = 0xcc
276 DLT_PRISM_HEADER = 0x77
277 DLT_PRONET = 0x4
278 DLT_RAIF1 = 0xc6
279 DLT_RAW = 0xc
280 DLT_RAWAF_MASK = 0x2240000
281 DLT_RIO = 0x7c
282 DLT_SCCP = 0x8e
283 DLT_SITA = 0xc4
284 DLT_SLIP = 0x8
285 DLT_SLIP_BSDOS = 0xd
286 DLT_SUNATM = 0x7b
287 DLT_SYMANTEC_FIREWALL = 0x63
288 DLT_TZSP = 0x80
289 DLT_USB = 0xba
290 DLT_USB_LINUX = 0xbd
291 DLT_USB_LINUX_MMAPPED = 0xdc
292 DLT_WIHART = 0xdf
293 DLT_X2E_SERIAL = 0xd5
294 DLT_X2E_XORAYA = 0xd6
295 DT_BLK = 0x6
296 DT_CHR = 0x2
297 DT_DIR = 0x4
298 DT_FIFO = 0x1
299 DT_LNK = 0xa
300 DT_REG = 0x8
301 DT_SOCK = 0xc
302 DT_UNKNOWN = 0x0
303 DT_WHT = 0xe
304 ECHO = 0x8
305 ECHOCTL = 0x40
306 ECHOE = 0x2
307 ECHOK = 0x4
308 ECHOKE = 0x1
309 ECHONL = 0x10
310 ECHOPRT = 0x20
311 EMUL_LINUX = 0x1
312 EMUL_LINUX32 = 0x5
313 EMUL_MAXID = 0x6
314 ETHERCAP_JUMBO_MTU = 0x4
315 ETHERCAP_VLAN_HWTAGGING = 0x2
316 ETHERCAP_VLAN_MTU = 0x1
317 ETHERMIN = 0x2e
318 ETHERMTU = 0x5dc
319 ETHERMTU_JUMBO = 0x2328
320 ETHERTYPE_8023 = 0x4
321 ETHERTYPE_AARP = 0x80f3
322 ETHERTYPE_ACCTON = 0x8390
323 ETHERTYPE_AEONIC = 0x8036
324 ETHERTYPE_ALPHA = 0x814a
325 ETHERTYPE_AMBER = 0x6008
326 ETHERTYPE_AMOEBA = 0x8145
327 ETHERTYPE_APOLLO = 0x80f7
328 ETHERTYPE_APOLLODOMAIN = 0x8019
329 ETHERTYPE_APPLETALK = 0x809b
330 ETHERTYPE_APPLITEK = 0x80c7
331 ETHERTYPE_ARGONAUT = 0x803a
332 ETHERTYPE_ARP = 0x806
333 ETHERTYPE_AT = 0x809b
334 ETHERTYPE_ATALK = 0x809b
335 ETHERTYPE_ATOMIC = 0x86df
336 ETHERTYPE_ATT = 0x8069
337 ETHERTYPE_ATTSTANFORD = 0x8008
338 ETHERTYPE_AUTOPHON = 0x806a
339 ETHERTYPE_AXIS = 0x8856
340 ETHERTYPE_BCLOOP = 0x9003
341 ETHERTYPE_BOFL = 0x8102
342 ETHERTYPE_CABLETRON = 0x7034
343 ETHERTYPE_CHAOS = 0x804
344 ETHERTYPE_COMDESIGN = 0x806c
345 ETHERTYPE_COMPUGRAPHIC = 0x806d
346 ETHERTYPE_COUNTERPOINT = 0x8062
347 ETHERTYPE_CRONUS = 0x8004
348 ETHERTYPE_CRONUSVLN = 0x8003
349 ETHERTYPE_DCA = 0x1234
350 ETHERTYPE_DDE = 0x807b
351 ETHERTYPE_DEBNI = 0xaaaa
352 ETHERTYPE_DECAM = 0x8048
353 ETHERTYPE_DECCUST = 0x6006
354 ETHERTYPE_DECDIAG = 0x6005
355 ETHERTYPE_DECDNS = 0x803c
356 ETHERTYPE_DECDTS = 0x803e
357 ETHERTYPE_DECEXPER = 0x6000
358 ETHERTYPE_DECLAST = 0x8041
359 ETHERTYPE_DECLTM = 0x803f
360 ETHERTYPE_DECMUMPS = 0x6009
361 ETHERTYPE_DECNETBIOS = 0x8040
362 ETHERTYPE_DELTACON = 0x86de
363 ETHERTYPE_DIDDLE = 0x4321
364 ETHERTYPE_DLOG1 = 0x660
365 ETHERTYPE_DLOG2 = 0x661
366 ETHERTYPE_DN = 0x6003
367 ETHERTYPE_DOGFIGHT = 0x1989
368 ETHERTYPE_DSMD = 0x8039
369 ETHERTYPE_ECMA = 0x803
370 ETHERTYPE_ENCRYPT = 0x803d
371 ETHERTYPE_ES = 0x805d
372 ETHERTYPE_EXCELAN = 0x8010
373 ETHERTYPE_EXPERDATA = 0x8049
374 ETHERTYPE_FLIP = 0x8146
375 ETHERTYPE_FLOWCONTROL = 0x8808
376 ETHERTYPE_FRARP = 0x808
377 ETHERTYPE_GENDYN = 0x8068
378 ETHERTYPE_HAYES = 0x8130
379 ETHERTYPE_HIPPI_FP = 0x8180
380 ETHERTYPE_HITACHI = 0x8820
381 ETHERTYPE_HP = 0x8005
382 ETHERTYPE_IEEEPUP = 0xa00
383 ETHERTYPE_IEEEPUPAT = 0xa01
384 ETHERTYPE_IMLBL = 0x4c42
385 ETHERTYPE_IMLBLDIAG = 0x424c
386 ETHERTYPE_IP = 0x800
387 ETHERTYPE_IPAS = 0x876c
388 ETHERTYPE_IPV6 = 0x86dd
389 ETHERTYPE_IPX = 0x8137
390 ETHERTYPE_IPXNEW = 0x8037
391 ETHERTYPE_KALPANA = 0x8582
392 ETHERTYPE_LANBRIDGE = 0x8038
393 ETHERTYPE_LANPROBE = 0x8888
394 ETHERTYPE_LAT = 0x6004
395 ETHERTYPE_LBACK = 0x9000
396 ETHERTYPE_LITTLE = 0x8060
397 ETHERTYPE_LOGICRAFT = 0x8148
398 ETHERTYPE_LOOPBACK = 0x9000
399 ETHERTYPE_MATRA = 0x807a
400 ETHERTYPE_MAX = 0xffff
401 ETHERTYPE_MERIT = 0x807c
402 ETHERTYPE_MICP = 0x873a
403 ETHERTYPE_MOPDL = 0x6001
404 ETHERTYPE_MOPRC = 0x6002
405 ETHERTYPE_MOTOROLA = 0x818d
406 ETHERTYPE_MPLS = 0x8847
407 ETHERTYPE_MPLS_MCAST = 0x8848
408 ETHERTYPE_MUMPS = 0x813f
409 ETHERTYPE_NBPCC = 0x3c04
410 ETHERTYPE_NBPCLAIM = 0x3c09
411 ETHERTYPE_NBPCLREQ = 0x3c05
412 ETHERTYPE_NBPCLRSP = 0x3c06
413 ETHERTYPE_NBPCREQ = 0x3c02
414 ETHERTYPE_NBPCRSP = 0x3c03
415 ETHERTYPE_NBPDG = 0x3c07
416 ETHERTYPE_NBPDGB = 0x3c08
417 ETHERTYPE_NBPDLTE = 0x3c0a
418 ETHERTYPE_NBPRAR = 0x3c0c
419 ETHERTYPE_NBPRAS = 0x3c0b
420 ETHERTYPE_NBPRST = 0x3c0d
421 ETHERTYPE_NBPSCD = 0x3c01
422 ETHERTYPE_NBPVCD = 0x3c00
423 ETHERTYPE_NBS = 0x802
424 ETHERTYPE_NCD = 0x8149
425 ETHERTYPE_NESTAR = 0x8006
426 ETHERTYPE_NETBEUI = 0x8191
427 ETHERTYPE_NOVELL = 0x8138
428 ETHERTYPE_NS = 0x600
429 ETHERTYPE_NSAT = 0x601
430 ETHERTYPE_NSCOMPAT = 0x807
431 ETHERTYPE_NTRAILER = 0x10
432 ETHERTYPE_OS9 = 0x7007
433 ETHERTYPE_OS9NET = 0x7009
434 ETHERTYPE_PACER = 0x80c6
435 ETHERTYPE_PAE = 0x888e
436 ETHERTYPE_PCS = 0x4242
437 ETHERTYPE_PLANNING = 0x8044
438 ETHERTYPE_PPP = 0x880b
439 ETHERTYPE_PPPOE = 0x8864
440 ETHERTYPE_PPPOEDISC = 0x8863
441 ETHERTYPE_PRIMENTS = 0x7031
442 ETHERTYPE_PUP = 0x200
443 ETHERTYPE_PUPAT = 0x200
444 ETHERTYPE_RACAL = 0x7030
445 ETHERTYPE_RATIONAL = 0x8150
446 ETHERTYPE_RAWFR = 0x6559
447 ETHERTYPE_RCL = 0x1995
448 ETHERTYPE_RDP = 0x8739
449 ETHERTYPE_RETIX = 0x80f2
450 ETHERTYPE_REVARP = 0x8035
451 ETHERTYPE_SCA = 0x6007
452 ETHERTYPE_SECTRA = 0x86db
453 ETHERTYPE_SECUREDATA = 0x876d
454 ETHERTYPE_SGITW = 0x817e
455 ETHERTYPE_SG_BOUNCE = 0x8016
456 ETHERTYPE_SG_DIAG = 0x8013
457 ETHERTYPE_SG_NETGAMES = 0x8014
458 ETHERTYPE_SG_RESV = 0x8015
459 ETHERTYPE_SIMNET = 0x5208
460 ETHERTYPE_SLOWPROTOCOLS = 0x8809
461 ETHERTYPE_SNA = 0x80d5
462 ETHERTYPE_SNMP = 0x814c
463 ETHERTYPE_SONIX = 0xfaf5
464 ETHERTYPE_SPIDER = 0x809f
465 ETHERTYPE_SPRITE = 0x500
466 ETHERTYPE_STP = 0x8181
467 ETHERTYPE_TALARIS = 0x812b
468 ETHERTYPE_TALARISMC = 0x852b
469 ETHERTYPE_TCPCOMP = 0x876b
470 ETHERTYPE_TCPSM = 0x9002
471 ETHERTYPE_TEC = 0x814f
472 ETHERTYPE_TIGAN = 0x802f
473 ETHERTYPE_TRAIL = 0x1000
474 ETHERTYPE_TRANSETHER = 0x6558
475 ETHERTYPE_TYMSHARE = 0x802e
476 ETHERTYPE_UBBST = 0x7005
477 ETHERTYPE_UBDEBUG = 0x900
478 ETHERTYPE_UBDIAGLOOP = 0x7002
479 ETHERTYPE_UBDL = 0x7000
480 ETHERTYPE_UBNIU = 0x7001
481 ETHERTYPE_UBNMC = 0x7003
482 ETHERTYPE_VALID = 0x1600
483 ETHERTYPE_VARIAN = 0x80dd
484 ETHERTYPE_VAXELN = 0x803b
485 ETHERTYPE_VEECO = 0x8067
486 ETHERTYPE_VEXP = 0x805b
487 ETHERTYPE_VGLAB = 0x8131
488 ETHERTYPE_VINES = 0xbad
489 ETHERTYPE_VINESECHO = 0xbaf
490 ETHERTYPE_VINESLOOP = 0xbae
491 ETHERTYPE_VITAL = 0xff00
492 ETHERTYPE_VLAN = 0x8100
493 ETHERTYPE_VLTLMAN = 0x8080
494 ETHERTYPE_VPROD = 0x805c
495 ETHERTYPE_VURESERVED = 0x8147
496 ETHERTYPE_WATERLOO = 0x8130
497 ETHERTYPE_WELLFLEET = 0x8103
498 ETHERTYPE_X25 = 0x805
499 ETHERTYPE_X75 = 0x801
500 ETHERTYPE_XNSSM = 0x9001
501 ETHERTYPE_XTP = 0x817d
502 ETHER_ADDR_LEN = 0x6
503 ETHER_CRC_LEN = 0x4
504 ETHER_CRC_POLY_BE = 0x4c11db6
505 ETHER_CRC_POLY_LE = 0xedb88320
506 ETHER_HDR_LEN = 0xe
507 ETHER_MAX_LEN = 0x5ee
508 ETHER_MAX_LEN_JUMBO = 0x233a
509 ETHER_MIN_LEN = 0x40
510 ETHER_PPPOE_ENCAP_LEN = 0x8
511 ETHER_TYPE_LEN = 0x2
512 ETHER_VLAN_ENCAP_LEN = 0x4
513 EVFILT_AIO = 0x2
514 EVFILT_PROC = 0x4
515 EVFILT_READ = 0x0
516 EVFILT_SIGNAL = 0x5
517 EVFILT_SYSCOUNT = 0x7
518 EVFILT_TIMER = 0x6
519 EVFILT_VNODE = 0x3
520 EVFILT_WRITE = 0x1
521 EV_ADD = 0x1
522 EV_CLEAR = 0x20
523 EV_DELETE = 0x2
524 EV_DISABLE = 0x8
525 EV_ENABLE = 0x4
526 EV_EOF = 0x8000
527 EV_ERROR = 0x4000
528 EV_FLAG1 = 0x2000
529 EV_ONESHOT = 0x10
530 EV_SYSFLAGS = 0xf000
531 EXTA = 0x4b00
532 EXTB = 0x9600
533 EXTPROC = 0x800
534 FD_CLOEXEC = 0x1
535 FD_SETSIZE = 0x100
536 FLUSHO = 0x800000
537 F_CLOSEM = 0xa
538 F_DUPFD = 0x0
539 F_DUPFD_CLOEXEC = 0xc
540 F_FSCTL = -0x80000000
541 F_FSDIRMASK = 0x70000000
542 F_FSIN = 0x10000000
543 F_FSINOUT = 0x30000000
544 F_FSOUT = 0x20000000
545 F_FSPRIV = 0x8000
546 F_FSVOID = 0x40000000
547 F_GETFD = 0x1
548 F_GETFL = 0x3
549 F_GETLK = 0x7
550 F_GETNOSIGPIPE = 0xd
551 F_GETOWN = 0x5
552 F_MAXFD = 0xb
553 F_OK = 0x0
554 F_PARAM_MASK = 0xfff
555 F_PARAM_MAX = 0xfff
556 F_RDLCK = 0x1
557 F_SETFD = 0x2
558 F_SETFL = 0x4
559 F_SETLK = 0x8
560 F_SETLKW = 0x9
561 F_SETNOSIGPIPE = 0xe
562 F_SETOWN = 0x6
563 F_UNLCK = 0x2
564 F_WRLCK = 0x3
565 HUPCL = 0x4000
566 ICANON = 0x100
567 ICMP6_FILTER = 0x12
568 ICRNL = 0x100
569 IEXTEN = 0x400
570 IFAN_ARRIVAL = 0x0
571 IFAN_DEPARTURE = 0x1
572 IFA_ROUTE = 0x1
573 IFF_ALLMULTI = 0x200
574 IFF_BROADCAST = 0x2
575 IFF_CANTCHANGE = 0x8f52
576 IFF_DEBUG = 0x4
577 IFF_LINK0 = 0x1000
578 IFF_LINK1 = 0x2000
579 IFF_LINK2 = 0x4000
580 IFF_LOOPBACK = 0x8
581 IFF_MULTICAST = 0x8000
582 IFF_NOARP = 0x80
583 IFF_NOTRAILERS = 0x20
584 IFF_OACTIVE = 0x400
585 IFF_POINTOPOINT = 0x10
586 IFF_PROMISC = 0x100
587 IFF_RUNNING = 0x40
588 IFF_SIMPLEX = 0x800
589 IFF_UP = 0x1
590 IFNAMSIZ = 0x10
591 IFT_1822 = 0x2
592 IFT_A12MPPSWITCH = 0x82
593 IFT_AAL2 = 0xbb
594 IFT_AAL5 = 0x31
595 IFT_ADSL = 0x5e
596 IFT_AFLANE8023 = 0x3b
597 IFT_AFLANE8025 = 0x3c
598 IFT_ARAP = 0x58
599 IFT_ARCNET = 0x23
600 IFT_ARCNETPLUS = 0x24
601 IFT_ASYNC = 0x54
602 IFT_ATM = 0x25
603 IFT_ATMDXI = 0x69
604 IFT_ATMFUNI = 0x6a
605 IFT_ATMIMA = 0x6b
606 IFT_ATMLOGICAL = 0x50
607 IFT_ATMRADIO = 0xbd
608 IFT_ATMSUBINTERFACE = 0x86
609 IFT_ATMVCIENDPT = 0xc2
610 IFT_ATMVIRTUAL = 0x95
611 IFT_BGPPOLICYACCOUNTING = 0xa2
612 IFT_BRIDGE = 0xd1
613 IFT_BSC = 0x53
614 IFT_CARP = 0xf8
615 IFT_CCTEMUL = 0x3d
616 IFT_CEPT = 0x13
617 IFT_CES = 0x85
618 IFT_CHANNEL = 0x46
619 IFT_CNR = 0x55
620 IFT_COFFEE = 0x84
621 IFT_COMPOSITELINK = 0x9b
622 IFT_DCN = 0x8d
623 IFT_DIGITALPOWERLINE = 0x8a
624 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
625 IFT_DLSW = 0x4a
626 IFT_DOCSCABLEDOWNSTREAM = 0x80
627 IFT_DOCSCABLEMACLAYER = 0x7f
628 IFT_DOCSCABLEUPSTREAM = 0x81
629 IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd
630 IFT_DS0 = 0x51
631 IFT_DS0BUNDLE = 0x52
632 IFT_DS1FDL = 0xaa
633 IFT_DS3 = 0x1e
634 IFT_DTM = 0x8c
635 IFT_DVBASILN = 0xac
636 IFT_DVBASIOUT = 0xad
637 IFT_DVBRCCDOWNSTREAM = 0x93
638 IFT_DVBRCCMACLAYER = 0x92
639 IFT_DVBRCCUPSTREAM = 0x94
640 IFT_ECONET = 0xce
641 IFT_EON = 0x19
642 IFT_EPLRS = 0x57
643 IFT_ESCON = 0x49
644 IFT_ETHER = 0x6
645 IFT_FAITH = 0xf2
646 IFT_FAST = 0x7d
647 IFT_FASTETHER = 0x3e
648 IFT_FASTETHERFX = 0x45
649 IFT_FDDI = 0xf
650 IFT_FIBRECHANNEL = 0x38
651 IFT_FRAMERELAYINTERCONNECT = 0x3a
652 IFT_FRAMERELAYMPI = 0x5c
653 IFT_FRDLCIENDPT = 0xc1
654 IFT_FRELAY = 0x20
655 IFT_FRELAYDCE = 0x2c
656 IFT_FRF16MFRBUNDLE = 0xa3
657 IFT_FRFORWARD = 0x9e
658 IFT_G703AT2MB = 0x43
659 IFT_G703AT64K = 0x42
660 IFT_GIF = 0xf0
661 IFT_GIGABITETHERNET = 0x75
662 IFT_GR303IDT = 0xb2
663 IFT_GR303RDT = 0xb1
664 IFT_H323GATEKEEPER = 0xa4
665 IFT_H323PROXY = 0xa5
666 IFT_HDH1822 = 0x3
667 IFT_HDLC = 0x76
668 IFT_HDSL2 = 0xa8
669 IFT_HIPERLAN2 = 0xb7
670 IFT_HIPPI = 0x2f
671 IFT_HIPPIINTERFACE = 0x39
672 IFT_HOSTPAD = 0x5a
673 IFT_HSSI = 0x2e
674 IFT_HY = 0xe
675 IFT_IBM370PARCHAN = 0x48
676 IFT_IDSL = 0x9a
677 IFT_IEEE1394 = 0x90
678 IFT_IEEE80211 = 0x47
679 IFT_IEEE80212 = 0x37
680 IFT_IEEE8023ADLAG = 0xa1
681 IFT_IFGSN = 0x91
682 IFT_IMT = 0xbe
683 IFT_INFINIBAND = 0xc7
684 IFT_INTERLEAVE = 0x7c
685 IFT_IP = 0x7e
686 IFT_IPFORWARD = 0x8e
687 IFT_IPOVERATM = 0x72
688 IFT_IPOVERCDLC = 0x6d
689 IFT_IPOVERCLAW = 0x6e
690 IFT_IPSWITCH = 0x4e
691 IFT_ISDN = 0x3f
692 IFT_ISDNBASIC = 0x14
693 IFT_ISDNPRIMARY = 0x15
694 IFT_ISDNS = 0x4b
695 IFT_ISDNU = 0x4c
696 IFT_ISO88022LLC = 0x29
697 IFT_ISO88023 = 0x7
698 IFT_ISO88024 = 0x8
699 IFT_ISO88025 = 0x9
700 IFT_ISO88025CRFPINT = 0x62
701 IFT_ISO88025DTR = 0x56
702 IFT_ISO88025FIBER = 0x73
703 IFT_ISO88026 = 0xa
704 IFT_ISUP = 0xb3
705 IFT_L2VLAN = 0x87
706 IFT_L3IPVLAN = 0x88
707 IFT_L3IPXVLAN = 0x89
708 IFT_LAPB = 0x10
709 IFT_LAPD = 0x4d
710 IFT_LAPF = 0x77
711 IFT_LINEGROUP = 0xd2
712 IFT_LOCALTALK = 0x2a
713 IFT_LOOP = 0x18
714 IFT_MEDIAMAILOVERIP = 0x8b
715 IFT_MFSIGLINK = 0xa7
716 IFT_MIOX25 = 0x26
717 IFT_MODEM = 0x30
718 IFT_MPC = 0x71
719 IFT_MPLS = 0xa6
720 IFT_MPLSTUNNEL = 0x96
721 IFT_MSDSL = 0x8f
722 IFT_MVL = 0xbf
723 IFT_MYRINET = 0x63
724 IFT_NFAS = 0xaf
725 IFT_NSIP = 0x1b
726 IFT_OPTICALCHANNEL = 0xc3
727 IFT_OPTICALTRANSPORT = 0xc4
728 IFT_OTHER = 0x1
729 IFT_P10 = 0xc
730 IFT_P80 = 0xd
731 IFT_PARA = 0x22
732 IFT_PFLOG = 0xf5
733 IFT_PFSYNC = 0xf6
734 IFT_PLC = 0xae
735 IFT_PON155 = 0xcf
736 IFT_PON622 = 0xd0
737 IFT_POS = 0xab
738 IFT_PPP = 0x17
739 IFT_PPPMULTILINKBUNDLE = 0x6c
740 IFT_PROPATM = 0xc5
741 IFT_PROPBWAP2MP = 0xb8
742 IFT_PROPCNLS = 0x59
743 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
744 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
745 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
746 IFT_PROPMUX = 0x36
747 IFT_PROPVIRTUAL = 0x35
748 IFT_PROPWIRELESSP2P = 0x9d
749 IFT_PTPSERIAL = 0x16
750 IFT_PVC = 0xf1
751 IFT_Q2931 = 0xc9
752 IFT_QLLC = 0x44
753 IFT_RADIOMAC = 0xbc
754 IFT_RADSL = 0x5f
755 IFT_REACHDSL = 0xc0
756 IFT_RFC1483 = 0x9f
757 IFT_RS232 = 0x21
758 IFT_RSRB = 0x4f
759 IFT_SDLC = 0x11
760 IFT_SDSL = 0x60
761 IFT_SHDSL = 0xa9
762 IFT_SIP = 0x1f
763 IFT_SIPSIG = 0xcc
764 IFT_SIPTG = 0xcb
765 IFT_SLIP = 0x1c
766 IFT_SMDSDXI = 0x2b
767 IFT_SMDSICIP = 0x34
768 IFT_SONET = 0x27
769 IFT_SONETOVERHEADCHANNEL = 0xb9
770 IFT_SONETPATH = 0x32
771 IFT_SONETVT = 0x33
772 IFT_SRP = 0x97
773 IFT_SS7SIGLINK = 0x9c
774 IFT_STACKTOSTACK = 0x6f
775 IFT_STARLAN = 0xb
776 IFT_STF = 0xd7
777 IFT_T1 = 0x12
778 IFT_TDLC = 0x74
779 IFT_TELINK = 0xc8
780 IFT_TERMPAD = 0x5b
781 IFT_TR008 = 0xb0
782 IFT_TRANSPHDLC = 0x7b
783 IFT_TUNNEL = 0x83
784 IFT_ULTRA = 0x1d
785 IFT_USB = 0xa0
786 IFT_V11 = 0x40
787 IFT_V35 = 0x2d
788 IFT_V36 = 0x41
789 IFT_V37 = 0x78
790 IFT_VDSL = 0x61
791 IFT_VIRTUALIPADDRESS = 0x70
792 IFT_VIRTUALTG = 0xca
793 IFT_VOICEDID = 0xd5
794 IFT_VOICEEM = 0x64
795 IFT_VOICEEMFGD = 0xd3
796 IFT_VOICEENCAP = 0x67
797 IFT_VOICEFGDEANA = 0xd4
798 IFT_VOICEFXO = 0x65
799 IFT_VOICEFXS = 0x66
800 IFT_VOICEOVERATM = 0x98
801 IFT_VOICEOVERCABLE = 0xc6
802 IFT_VOICEOVERFRAMERELAY = 0x99
803 IFT_VOICEOVERIP = 0x68
804 IFT_X213 = 0x5d
805 IFT_X25 = 0x5
806 IFT_X25DDN = 0x4
807 IFT_X25HUNTGROUP = 0x7a
808 IFT_X25MLP = 0x79
809 IFT_X25PLE = 0x28
810 IFT_XETHER = 0x1a
811 IGNBRK = 0x1
812 IGNCR = 0x80
813 IGNPAR = 0x4
814 IMAXBEL = 0x2000
815 INLCR = 0x40
816 INPCK = 0x10
817 IN_CLASSA_HOST = 0xffffff
818 IN_CLASSA_MAX = 0x80
819 IN_CLASSA_NET = 0xff000000
820 IN_CLASSA_NSHIFT = 0x18
821 IN_CLASSB_HOST = 0xffff
822 IN_CLASSB_MAX = 0x10000
823 IN_CLASSB_NET = 0xffff0000
824 IN_CLASSB_NSHIFT = 0x10
825 IN_CLASSC_HOST = 0xff
826 IN_CLASSC_NET = 0xffffff00
827 IN_CLASSC_NSHIFT = 0x8
828 IN_CLASSD_HOST = 0xfffffff
829 IN_CLASSD_NET = 0xf0000000
830 IN_CLASSD_NSHIFT = 0x1c
831 IN_LOOPBACKNET = 0x7f
832 IPPROTO_AH = 0x33
833 IPPROTO_CARP = 0x70
834 IPPROTO_DONE = 0x101
835 IPPROTO_DSTOPTS = 0x3c
836 IPPROTO_EGP = 0x8
837 IPPROTO_ENCAP = 0x62
838 IPPROTO_EON = 0x50
839 IPPROTO_ESP = 0x32
840 IPPROTO_ETHERIP = 0x61
841 IPPROTO_FRAGMENT = 0x2c
842 IPPROTO_GGP = 0x3
843 IPPROTO_GRE = 0x2f
844 IPPROTO_HOPOPTS = 0x0
845 IPPROTO_ICMP = 0x1
846 IPPROTO_ICMPV6 = 0x3a
847 IPPROTO_IDP = 0x16
848 IPPROTO_IGMP = 0x2
849 IPPROTO_IP = 0x0
850 IPPROTO_IPCOMP = 0x6c
851 IPPROTO_IPIP = 0x4
852 IPPROTO_IPV4 = 0x4
853 IPPROTO_IPV6 = 0x29
854 IPPROTO_IPV6_ICMP = 0x3a
855 IPPROTO_MAX = 0x100
856 IPPROTO_MAXID = 0x34
857 IPPROTO_MOBILE = 0x37
858 IPPROTO_NONE = 0x3b
859 IPPROTO_PFSYNC = 0xf0
860 IPPROTO_PIM = 0x67
861 IPPROTO_PUP = 0xc
862 IPPROTO_RAW = 0xff
863 IPPROTO_ROUTING = 0x2b
864 IPPROTO_RSVP = 0x2e
865 IPPROTO_TCP = 0x6
866 IPPROTO_TP = 0x1d
867 IPPROTO_UDP = 0x11
868 IPPROTO_VRRP = 0x70
869 IPV6_CHECKSUM = 0x1a
870 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
871 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
872 IPV6_DEFHLIM = 0x40
873 IPV6_DONTFRAG = 0x3e
874 IPV6_DSTOPTS = 0x32
875 IPV6_FAITH = 0x1d
876 IPV6_FLOWINFO_MASK = 0xffffff0f
877 IPV6_FLOWLABEL_MASK = 0xffff0f00
878 IPV6_FRAGTTL = 0x78
879 IPV6_HLIMDEC = 0x1
880 IPV6_HOPLIMIT = 0x2f
881 IPV6_HOPOPTS = 0x31
882 IPV6_IPSEC_POLICY = 0x1c
883 IPV6_JOIN_GROUP = 0xc
884 IPV6_LEAVE_GROUP = 0xd
885 IPV6_MAXHLIM = 0xff
886 IPV6_MAXPACKET = 0xffff
887 IPV6_MMTU = 0x500
888 IPV6_MULTICAST_HOPS = 0xa
889 IPV6_MULTICAST_IF = 0x9
890 IPV6_MULTICAST_LOOP = 0xb
891 IPV6_NEXTHOP = 0x30
892 IPV6_PATHMTU = 0x2c
893 IPV6_PKTINFO = 0x2e
894 IPV6_PORTRANGE = 0xe
895 IPV6_PORTRANGE_DEFAULT = 0x0
896 IPV6_PORTRANGE_HIGH = 0x1
897 IPV6_PORTRANGE_LOW = 0x2
898 IPV6_RECVDSTOPTS = 0x28
899 IPV6_RECVHOPLIMIT = 0x25
900 IPV6_RECVHOPOPTS = 0x27
901 IPV6_RECVPATHMTU = 0x2b
902 IPV6_RECVPKTINFO = 0x24
903 IPV6_RECVRTHDR = 0x26
904 IPV6_RECVTCLASS = 0x39
905 IPV6_RTHDR = 0x33
906 IPV6_RTHDRDSTOPTS = 0x23
907 IPV6_RTHDR_LOOSE = 0x0
908 IPV6_RTHDR_STRICT = 0x1
909 IPV6_RTHDR_TYPE_0 = 0x0
910 IPV6_SOCKOPT_RESERVED1 = 0x3
911 IPV6_TCLASS = 0x3d
912 IPV6_UNICAST_HOPS = 0x4
913 IPV6_USE_MIN_MTU = 0x2a
914 IPV6_V6ONLY = 0x1b
915 IPV6_VERSION = 0x60
916 IPV6_VERSION_MASK = 0xf0
917 IP_ADD_MEMBERSHIP = 0xc
918 IP_DEFAULT_MULTICAST_LOOP = 0x1
919 IP_DEFAULT_MULTICAST_TTL = 0x1
920 IP_DF = 0x4000
921 IP_DROP_MEMBERSHIP = 0xd
922 IP_EF = 0x8000
923 IP_ERRORMTU = 0x15
924 IP_HDRINCL = 0x2
925 IP_IPSEC_POLICY = 0x16
926 IP_MAXPACKET = 0xffff
927 IP_MAX_MEMBERSHIPS = 0x14
928 IP_MF = 0x2000
929 IP_MINFRAGSIZE = 0x45
930 IP_MINTTL = 0x18
931 IP_MSS = 0x240
932 IP_MULTICAST_IF = 0x9
933 IP_MULTICAST_LOOP = 0xb
934 IP_MULTICAST_TTL = 0xa
935 IP_OFFMASK = 0x1fff
936 IP_OPTIONS = 0x1
937 IP_PORTRANGE = 0x13
938 IP_PORTRANGE_DEFAULT = 0x0
939 IP_PORTRANGE_HIGH = 0x1
940 IP_PORTRANGE_LOW = 0x2
941 IP_RECVDSTADDR = 0x7
942 IP_RECVIF = 0x14
943 IP_RECVOPTS = 0x5
944 IP_RECVRETOPTS = 0x6
945 IP_RECVTTL = 0x17
946 IP_RETOPTS = 0x8
947 IP_RF = 0x8000
948 IP_TOS = 0x3
949 IP_TTL = 0x4
950 ISIG = 0x80
951 ISTRIP = 0x20
952 IXANY = 0x800
953 IXOFF = 0x400
954 IXON = 0x200
955 LOCK_EX = 0x2
956 LOCK_NB = 0x4
957 LOCK_SH = 0x1
958 LOCK_UN = 0x8
959 MADV_DONTNEED = 0x4
960 MADV_FREE = 0x6
961 MADV_NORMAL = 0x0
962 MADV_RANDOM = 0x1
963 MADV_SEQUENTIAL = 0x2
964 MADV_SPACEAVAIL = 0x5
965 MADV_WILLNEED = 0x3
966 MAP_ALIGNMENT_16MB = 0x18000000
967 MAP_ALIGNMENT_1TB = 0x28000000
968 MAP_ALIGNMENT_256TB = 0x30000000
969 MAP_ALIGNMENT_4GB = 0x20000000
970 MAP_ALIGNMENT_64KB = 0x10000000
971 MAP_ALIGNMENT_64PB = 0x38000000
972 MAP_ALIGNMENT_MASK = -0x1000000
973 MAP_ALIGNMENT_SHIFT = 0x18
974 MAP_ANON = 0x1000
975 MAP_FILE = 0x0
976 MAP_FIXED = 0x10
977 MAP_HASSEMAPHORE = 0x200
978 MAP_INHERIT = 0x80
979 MAP_INHERIT_COPY = 0x1
980 MAP_INHERIT_DEFAULT = 0x1
981 MAP_INHERIT_DONATE_COPY = 0x3
982 MAP_INHERIT_NONE = 0x2
983 MAP_INHERIT_SHARE = 0x0
984 MAP_NORESERVE = 0x40
985 MAP_PRIVATE = 0x2
986 MAP_RENAME = 0x20
987 MAP_SHARED = 0x1
988 MAP_STACK = 0x2000
989 MAP_TRYFIXED = 0x400
990 MAP_WIRED = 0x800
991 MSG_BCAST = 0x100
992 MSG_CMSG_CLOEXEC = 0x800
993 MSG_CONTROLMBUF = 0x2000000
994 MSG_CTRUNC = 0x20
995 MSG_DONTROUTE = 0x4
996 MSG_DONTWAIT = 0x80
997 MSG_EOR = 0x8
998 MSG_IOVUSRSPACE = 0x4000000
999 MSG_LENUSRSPACE = 0x8000000
1000 MSG_MCAST = 0x200
1001 MSG_NAMEMBUF = 0x1000000
1002 MSG_NBIO = 0x1000
1003 MSG_NOSIGNAL = 0x400
1004 MSG_OOB = 0x1
1005 MSG_PEEK = 0x2
1006 MSG_TRUNC = 0x10
1007 MSG_USERFLAGS = 0xffffff
1008 MSG_WAITALL = 0x40
1009 NAME_MAX = 0x1ff
1010 NET_RT_DUMP = 0x1
1011 NET_RT_FLAGS = 0x2
1012 NET_RT_IFLIST = 0x5
1013 NET_RT_MAXID = 0x6
1014 NET_RT_OIFLIST = 0x4
1015 NET_RT_OOIFLIST = 0x3
1016 NOFLSH = 0x80000000
1017 NOTE_ATTRIB = 0x8
1018 NOTE_CHILD = 0x4
1019 NOTE_DELETE = 0x1
1020 NOTE_EXEC = 0x20000000
1021 NOTE_EXIT = 0x80000000
1022 NOTE_EXTEND = 0x4
1023 NOTE_FORK = 0x40000000
1024 NOTE_LINK = 0x10
1025 NOTE_LOWAT = 0x1
1026 NOTE_PCTRLMASK = 0xf0000000
1027 NOTE_PDATAMASK = 0xfffff
1028 NOTE_RENAME = 0x20
1029 NOTE_REVOKE = 0x40
1030 NOTE_TRACK = 0x1
1031 NOTE_TRACKERR = 0x2
1032 NOTE_WRITE = 0x2
1033 OCRNL = 0x10
1034 OFIOGETBMAP = 0xc004667a
1035 ONLCR = 0x2
1036 ONLRET = 0x40
1037 ONOCR = 0x20
1038 ONOEOT = 0x8
1039 OPOST = 0x1
1040 O_ACCMODE = 0x3
1041 O_ALT_IO = 0x40000
1042 O_APPEND = 0x8
1043 O_ASYNC = 0x40
1044 O_CLOEXEC = 0x400000
1045 O_CREAT = 0x200
1046 O_DIRECT = 0x80000
1047 O_DIRECTORY = 0x200000
1048 O_DSYNC = 0x10000
1049 O_EXCL = 0x800
1050 O_EXLOCK = 0x20
1051 O_FSYNC = 0x80
1052 O_NDELAY = 0x4
1053 O_NOCTTY = 0x8000
1054 O_NOFOLLOW = 0x100
1055 O_NONBLOCK = 0x4
1056 O_NOSIGPIPE = 0x1000000
1057 O_RDONLY = 0x0
1058 O_RDWR = 0x2
1059 O_RSYNC = 0x20000
1060 O_SHLOCK = 0x10
1061 O_SYNC = 0x80
1062 O_TRUNC = 0x400
1063 O_WRONLY = 0x1
1064 PARENB = 0x1000
1065 PARMRK = 0x8
1066 PARODD = 0x2000
1067 PENDIN = 0x20000000
1068 PROT_EXEC = 0x4
1069 PROT_NONE = 0x0
1070 PROT_READ = 0x1
1071 PROT_WRITE = 0x2
1072 PRI_IOFLUSH = 0x7c
1073 PRIO_PGRP = 0x1
1074 PRIO_PROCESS = 0x0
1075 PRIO_USER = 0x2
1076 RLIMIT_AS = 0xa
1077 RLIMIT_CORE = 0x4
1078 RLIMIT_CPU = 0x0
1079 RLIMIT_DATA = 0x2
1080 RLIMIT_FSIZE = 0x1
1081 RLIMIT_NOFILE = 0x8
1082 RLIMIT_STACK = 0x3
1083 RLIM_INFINITY = 0x7fffffffffffffff
1084 RTAX_AUTHOR = 0x6
1085 RTAX_BRD = 0x7
1086 RTAX_DST = 0x0
1087 RTAX_GATEWAY = 0x1
1088 RTAX_GENMASK = 0x3
1089 RTAX_IFA = 0x5
1090 RTAX_IFP = 0x4
1091 RTAX_MAX = 0x9
1092 RTAX_NETMASK = 0x2
1093 RTAX_TAG = 0x8
1094 RTA_AUTHOR = 0x40
1095 RTA_BRD = 0x80
1096 RTA_DST = 0x1
1097 RTA_GATEWAY = 0x2
1098 RTA_GENMASK = 0x8
1099 RTA_IFA = 0x20
1100 RTA_IFP = 0x10
1101 RTA_NETMASK = 0x4
1102 RTA_TAG = 0x100
1103 RTF_ANNOUNCE = 0x20000
1104 RTF_BLACKHOLE = 0x1000
1105 RTF_CLONED = 0x2000
1106 RTF_CLONING = 0x100
1107 RTF_DONE = 0x40
1108 RTF_DYNAMIC = 0x10
1109 RTF_GATEWAY = 0x2
1110 RTF_HOST = 0x4
1111 RTF_LLINFO = 0x400
1112 RTF_MASK = 0x80
1113 RTF_MODIFIED = 0x20
1114 RTF_PROTO1 = 0x8000
1115 RTF_PROTO2 = 0x4000
1116 RTF_REJECT = 0x8
1117 RTF_SRC = 0x10000
1118 RTF_STATIC = 0x800
1119 RTF_UP = 0x1
1120 RTF_XRESOLVE = 0x200
1121 RTM_ADD = 0x1
1122 RTM_CHANGE = 0x3
1123 RTM_CHGADDR = 0x15
1124 RTM_DELADDR = 0xd
1125 RTM_DELETE = 0x2
1126 RTM_GET = 0x4
1127 RTM_IEEE80211 = 0x11
1128 RTM_IFANNOUNCE = 0x10
1129 RTM_IFINFO = 0x14
1130 RTM_LLINFO_UPD = 0x13
1131 RTM_LOCK = 0x8
1132 RTM_LOSING = 0x5
1133 RTM_MISS = 0x7
1134 RTM_NEWADDR = 0xc
1135 RTM_OIFINFO = 0xf
1136 RTM_OLDADD = 0x9
1137 RTM_OLDDEL = 0xa
1138 RTM_OOIFINFO = 0xe
1139 RTM_REDIRECT = 0x6
1140 RTM_RESOLVE = 0xb
1141 RTM_RTTUNIT = 0xf4240
1142 RTM_SETGATE = 0x12
1143 RTM_VERSION = 0x4
1144 RTV_EXPIRE = 0x4
1145 RTV_HOPCOUNT = 0x2
1146 RTV_MTU = 0x1
1147 RTV_RPIPE = 0x8
1148 RTV_RTT = 0x40
1149 RTV_RTTVAR = 0x80
1150 RTV_SPIPE = 0x10
1151 RTV_SSTHRESH = 0x20
1152 RUSAGE_CHILDREN = -0x1
1153 RUSAGE_SELF = 0x0
1154 SCM_CREDS = 0x4
1155 SCM_RIGHTS = 0x1
1156 SCM_TIMESTAMP = 0x8
1157 SHUT_RD = 0x0
1158 SHUT_RDWR = 0x2
1159 SHUT_WR = 0x1
1160 SIOCADDMULTI = 0x80906931
1161 SIOCADDRT = 0x8030720a
1162 SIOCAIFADDR = 0x8040691a
1163 SIOCALIFADDR = 0x8118691c
1164 SIOCATMARK = 0x40047307
1165 SIOCDELMULTI = 0x80906932
1166 SIOCDELRT = 0x8030720b
1167 SIOCDIFADDR = 0x80906919
1168 SIOCDIFPHYADDR = 0x80906949
1169 SIOCDLIFADDR = 0x8118691e
1170 SIOCGDRVSPEC = 0xc01c697b
1171 SIOCGETPFSYNC = 0xc09069f8
1172 SIOCGETSGCNT = 0xc0147534
1173 SIOCGETVIFCNT = 0xc0147533
1174 SIOCGHIWAT = 0x40047301
1175 SIOCGIFADDR = 0xc0906921
1176 SIOCGIFADDRPREF = 0xc0946920
1177 SIOCGIFALIAS = 0xc040691b
1178 SIOCGIFBRDADDR = 0xc0906923
1179 SIOCGIFCAP = 0xc0206976
1180 SIOCGIFCONF = 0xc0086926
1181 SIOCGIFDATA = 0xc0946985
1182 SIOCGIFDLT = 0xc0906977
1183 SIOCGIFDSTADDR = 0xc0906922
1184 SIOCGIFFLAGS = 0xc0906911
1185 SIOCGIFGENERIC = 0xc090693a
1186 SIOCGIFMEDIA = 0xc0286936
1187 SIOCGIFMETRIC = 0xc0906917
1188 SIOCGIFMTU = 0xc090697e
1189 SIOCGIFNETMASK = 0xc0906925
1190 SIOCGIFPDSTADDR = 0xc0906948
1191 SIOCGIFPSRCADDR = 0xc0906947
1192 SIOCGLIFADDR = 0xc118691d
1193 SIOCGLIFPHYADDR = 0xc118694b
1194 SIOCGLINKSTR = 0xc01c6987
1195 SIOCGLOWAT = 0x40047303
1196 SIOCGPGRP = 0x40047309
1197 SIOCGVH = 0xc0906983
1198 SIOCIFCREATE = 0x8090697a
1199 SIOCIFDESTROY = 0x80906979
1200 SIOCIFGCLONERS = 0xc00c6978
1201 SIOCINITIFADDR = 0xc0446984
1202 SIOCSDRVSPEC = 0x801c697b
1203 SIOCSETPFSYNC = 0x809069f7
1204 SIOCSHIWAT = 0x80047300
1205 SIOCSIFADDR = 0x8090690c
1206 SIOCSIFADDRPREF = 0x8094691f
1207 SIOCSIFBRDADDR = 0x80906913
1208 SIOCSIFCAP = 0x80206975
1209 SIOCSIFDSTADDR = 0x8090690e
1210 SIOCSIFFLAGS = 0x80906910
1211 SIOCSIFGENERIC = 0x80906939
1212 SIOCSIFMEDIA = 0xc0906935
1213 SIOCSIFMETRIC = 0x80906918
1214 SIOCSIFMTU = 0x8090697f
1215 SIOCSIFNETMASK = 0x80906916
1216 SIOCSIFPHYADDR = 0x80406946
1217 SIOCSLIFPHYADDR = 0x8118694a
1218 SIOCSLINKSTR = 0x801c6988
1219 SIOCSLOWAT = 0x80047302
1220 SIOCSPGRP = 0x80047308
1221 SIOCSVH = 0xc0906982
1222 SIOCZIFDATA = 0xc0946986
1223 SOCK_CLOEXEC = 0x10000000
1224 SOCK_DGRAM = 0x2
1225 SOCK_FLAGS_MASK = 0xf0000000
1226 SOCK_NONBLOCK = 0x20000000
1227 SOCK_NOSIGPIPE = 0x40000000
1228 SOCK_RAW = 0x3
1229 SOCK_RDM = 0x4
1230 SOCK_SEQPACKET = 0x5
1231 SOCK_STREAM = 0x1
1232 SOL_SOCKET = 0xffff
1233 SOMAXCONN = 0x80
1234 SO_ACCEPTCONN = 0x2
1235 SO_ACCEPTFILTER = 0x1000
1236 SO_BROADCAST = 0x20
1237 SO_DEBUG = 0x1
1238 SO_DONTROUTE = 0x10
1239 SO_ERROR = 0x1007
1240 SO_KEEPALIVE = 0x8
1241 SO_LINGER = 0x80
1242 SO_NOHEADER = 0x100a
1243 SO_NOSIGPIPE = 0x800
1244 SO_OOBINLINE = 0x100
1245 SO_OVERFLOWED = 0x1009
1246 SO_RCVBUF = 0x1002
1247 SO_RCVLOWAT = 0x1004
1248 SO_RCVTIMEO = 0x100c
1249 SO_REUSEADDR = 0x4
1250 SO_REUSEPORT = 0x200
1251 SO_SNDBUF = 0x1001
1252 SO_SNDLOWAT = 0x1003
1253 SO_SNDTIMEO = 0x100b
1254 SO_TIMESTAMP = 0x2000
1255 SO_TYPE = 0x1008
1256 SO_USELOOPBACK = 0x40
1257 SYSCTL_VERSION = 0x1000000
1258 SYSCTL_VERS_0 = 0x0
1259 SYSCTL_VERS_1 = 0x1000000
1260 SYSCTL_VERS_MASK = 0xff000000
1261 S_ARCH1 = 0x10000
1262 S_ARCH2 = 0x20000
1263 S_BLKSIZE = 0x200
1264 S_IEXEC = 0x40
1265 S_IFBLK = 0x6000
1266 S_IFCHR = 0x2000
1267 S_IFDIR = 0x4000
1268 S_IFIFO = 0x1000
1269 S_IFLNK = 0xa000
1270 S_IFMT = 0xf000
1271 S_IFREG = 0x8000
1272 S_IFSOCK = 0xc000
1273 S_IFWHT = 0xe000
1274 S_IREAD = 0x100
1275 S_IRGRP = 0x20
1276 S_IROTH = 0x4
1277 S_IRUSR = 0x100
1278 S_IRWXG = 0x38
1279 S_IRWXO = 0x7
1280 S_IRWXU = 0x1c0
1281 S_ISGID = 0x400
1282 S_ISTXT = 0x200
1283 S_ISUID = 0x800
1284 S_ISVTX = 0x200
1285 S_IWGRP = 0x10
1286 S_IWOTH = 0x2
1287 S_IWRITE = 0x80
1288 S_IWUSR = 0x80
1289 S_IXGRP = 0x8
1290 S_IXOTH = 0x1
1291 S_IXUSR = 0x40
1292 TCIFLUSH = 0x1
1293 TCIOFLUSH = 0x3
1294 TCOFLUSH = 0x2
1295 TCP_CONGCTL = 0x20
1296 TCP_KEEPCNT = 0x6
1297 TCP_KEEPIDLE = 0x3
1298 TCP_KEEPINIT = 0x7
1299 TCP_KEEPINTVL = 0x5
1300 TCP_MAXBURST = 0x4
1301 TCP_MAXSEG = 0x2
1302 TCP_MAXWIN = 0xffff
1303 TCP_MAX_WINSHIFT = 0xe
1304 TCP_MD5SIG = 0x10
1305 TCP_MINMSS = 0xd8
1306 TCP_MSS = 0x218
1307 TCP_NODELAY = 0x1
1308 TCSAFLUSH = 0x2
1309 TIOCCBRK = 0x2000747a
1310 TIOCCDTR = 0x20007478
1311 TIOCCONS = 0x80047462
1312 TIOCDCDTIMESTAMP = 0x400c7458
1313 TIOCDRAIN = 0x2000745e
1314 TIOCEXCL = 0x2000740d
1315 TIOCEXT = 0x80047460
1316 TIOCFLAG_CDTRCTS = 0x10
1317 TIOCFLAG_CLOCAL = 0x2
1318 TIOCFLAG_CRTSCTS = 0x4
1319 TIOCFLAG_MDMBUF = 0x8
1320 TIOCFLAG_SOFTCAR = 0x1
1321 TIOCFLUSH = 0x80047410
1322 TIOCGETA = 0x402c7413
1323 TIOCGETD = 0x4004741a
1324 TIOCGFLAGS = 0x4004745d
1325 TIOCGLINED = 0x40207442
1326 TIOCGPGRP = 0x40047477
1327 TIOCGQSIZE = 0x40047481
1328 TIOCGRANTPT = 0x20007447
1329 TIOCGSID = 0x40047463
1330 TIOCGSIZE = 0x40087468
1331 TIOCGWINSZ = 0x40087468
1332 TIOCMBIC = 0x8004746b
1333 TIOCMBIS = 0x8004746c
1334 TIOCMGET = 0x4004746a
1335 TIOCMSET = 0x8004746d
1336 TIOCM_CAR = 0x40
1337 TIOCM_CD = 0x40
1338 TIOCM_CTS = 0x20
1339 TIOCM_DSR = 0x100
1340 TIOCM_DTR = 0x2
1341 TIOCM_LE = 0x1
1342 TIOCM_RI = 0x80
1343 TIOCM_RNG = 0x80
1344 TIOCM_RTS = 0x4
1345 TIOCM_SR = 0x10
1346 TIOCM_ST = 0x8
1347 TIOCNOTTY = 0x20007471
1348 TIOCNXCL = 0x2000740e
1349 TIOCOUTQ = 0x40047473
1350 TIOCPKT = 0x80047470
1351 TIOCPKT_DATA = 0x0
1352 TIOCPKT_DOSTOP = 0x20
1353 TIOCPKT_FLUSHREAD = 0x1
1354 TIOCPKT_FLUSHWRITE = 0x2
1355 TIOCPKT_IOCTL = 0x40
1356 TIOCPKT_NOSTOP = 0x10
1357 TIOCPKT_START = 0x8
1358 TIOCPKT_STOP = 0x4
1359 TIOCPTMGET = 0x48087446
1360 TIOCPTSNAME = 0x48087448
1361 TIOCRCVFRAME = 0x80047445
1362 TIOCREMOTE = 0x80047469
1363 TIOCSBRK = 0x2000747b
1364 TIOCSCTTY = 0x20007461
1365 TIOCSDTR = 0x20007479
1366 TIOCSETA = 0x802c7414
1367 TIOCSETAF = 0x802c7416
1368 TIOCSETAW = 0x802c7415
1369 TIOCSETD = 0x8004741b
1370 TIOCSFLAGS = 0x8004745c
1371 TIOCSIG = 0x2000745f
1372 TIOCSLINED = 0x80207443
1373 TIOCSPGRP = 0x80047476
1374 TIOCSQSIZE = 0x80047480
1375 TIOCSSIZE = 0x80087467
1376 TIOCSTART = 0x2000746e
1377 TIOCSTAT = 0x80047465
1378 TIOCSTI = 0x80017472
1379 TIOCSTOP = 0x2000746f
1380 TIOCSWINSZ = 0x80087467
1381 TIOCUCNTL = 0x80047466
1382 TIOCXMTFRAME = 0x80047444
1383 TOSTOP = 0x400000
1384 VDISCARD = 0xf
1385 VDSUSP = 0xb
1386 VEOF = 0x0
1387 VEOL = 0x1
1388 VEOL2 = 0x2
1389 VERASE = 0x3
1390 VINTR = 0x8
1391 VKILL = 0x5
1392 VLNEXT = 0xe
1393 VMIN = 0x10
1394 VQUIT = 0x9
1395 VREPRINT = 0x6
1396 VSTART = 0xc
1397 VSTATUS = 0x12
1398 VSTOP = 0xd
1399 VSUSP = 0xa
1400 VTIME = 0x11
1401 VWERASE = 0x4
1402 WALL = 0x8
1403 WALLSIG = 0x8
1404 WALTSIG = 0x4
1405 WCLONE = 0x4
1406 WCOREFLAG = 0x80
1407 WNOHANG = 0x1
1408 WNOWAIT = 0x10000
1409 WNOZOMBIE = 0x20000
1410 WOPTSCHECKED = 0x40000
1411 WSTOPPED = 0x7f
1412 WUNTRACED = 0x2
1413)
1414
1415// Errors
1416const (
1417 E2BIG = syscall.Errno(0x7)
1418 EACCES = syscall.Errno(0xd)
1419 EADDRINUSE = syscall.Errno(0x30)
1420 EADDRNOTAVAIL = syscall.Errno(0x31)
1421 EAFNOSUPPORT = syscall.Errno(0x2f)
1422 EAGAIN = syscall.Errno(0x23)
1423 EALREADY = syscall.Errno(0x25)
1424 EAUTH = syscall.Errno(0x50)
1425 EBADF = syscall.Errno(0x9)
1426 EBADMSG = syscall.Errno(0x58)
1427 EBADRPC = syscall.Errno(0x48)
1428 EBUSY = syscall.Errno(0x10)
1429 ECANCELED = syscall.Errno(0x57)
1430 ECHILD = syscall.Errno(0xa)
1431 ECONNABORTED = syscall.Errno(0x35)
1432 ECONNREFUSED = syscall.Errno(0x3d)
1433 ECONNRESET = syscall.Errno(0x36)
1434 EDEADLK = syscall.Errno(0xb)
1435 EDESTADDRREQ = syscall.Errno(0x27)
1436 EDOM = syscall.Errno(0x21)
1437 EDQUOT = syscall.Errno(0x45)
1438 EEXIST = syscall.Errno(0x11)
1439 EFAULT = syscall.Errno(0xe)
1440 EFBIG = syscall.Errno(0x1b)
1441 EFTYPE = syscall.Errno(0x4f)
1442 EHOSTDOWN = syscall.Errno(0x40)
1443 EHOSTUNREACH = syscall.Errno(0x41)
1444 EIDRM = syscall.Errno(0x52)
1445 EILSEQ = syscall.Errno(0x55)
1446 EINPROGRESS = syscall.Errno(0x24)
1447 EINTR = syscall.Errno(0x4)
1448 EINVAL = syscall.Errno(0x16)
1449 EIO = syscall.Errno(0x5)
1450 EISCONN = syscall.Errno(0x38)
1451 EISDIR = syscall.Errno(0x15)
1452 ELAST = syscall.Errno(0x60)
1453 ELOOP = syscall.Errno(0x3e)
1454 EMFILE = syscall.Errno(0x18)
1455 EMLINK = syscall.Errno(0x1f)
1456 EMSGSIZE = syscall.Errno(0x28)
1457 EMULTIHOP = syscall.Errno(0x5e)
1458 ENAMETOOLONG = syscall.Errno(0x3f)
1459 ENEEDAUTH = syscall.Errno(0x51)
1460 ENETDOWN = syscall.Errno(0x32)
1461 ENETRESET = syscall.Errno(0x34)
1462 ENETUNREACH = syscall.Errno(0x33)
1463 ENFILE = syscall.Errno(0x17)
1464 ENOATTR = syscall.Errno(0x5d)
1465 ENOBUFS = syscall.Errno(0x37)
1466 ENODATA = syscall.Errno(0x59)
1467 ENODEV = syscall.Errno(0x13)
1468 ENOENT = syscall.Errno(0x2)
1469 ENOEXEC = syscall.Errno(0x8)
1470 ENOLCK = syscall.Errno(0x4d)
1471 ENOLINK = syscall.Errno(0x5f)
1472 ENOMEM = syscall.Errno(0xc)
1473 ENOMSG = syscall.Errno(0x53)
1474 ENOPROTOOPT = syscall.Errno(0x2a)
1475 ENOSPC = syscall.Errno(0x1c)
1476 ENOSR = syscall.Errno(0x5a)
1477 ENOSTR = syscall.Errno(0x5b)
1478 ENOSYS = syscall.Errno(0x4e)
1479 ENOTBLK = syscall.Errno(0xf)
1480 ENOTCONN = syscall.Errno(0x39)
1481 ENOTDIR = syscall.Errno(0x14)
1482 ENOTEMPTY = syscall.Errno(0x42)
1483 ENOTSOCK = syscall.Errno(0x26)
1484 ENOTSUP = syscall.Errno(0x56)
1485 ENOTTY = syscall.Errno(0x19)
1486 ENXIO = syscall.Errno(0x6)
1487 EOPNOTSUPP = syscall.Errno(0x2d)
1488 EOVERFLOW = syscall.Errno(0x54)
1489 EPERM = syscall.Errno(0x1)
1490 EPFNOSUPPORT = syscall.Errno(0x2e)
1491 EPIPE = syscall.Errno(0x20)
1492 EPROCLIM = syscall.Errno(0x43)
1493 EPROCUNAVAIL = syscall.Errno(0x4c)
1494 EPROGMISMATCH = syscall.Errno(0x4b)
1495 EPROGUNAVAIL = syscall.Errno(0x4a)
1496 EPROTO = syscall.Errno(0x60)
1497 EPROTONOSUPPORT = syscall.Errno(0x2b)
1498 EPROTOTYPE = syscall.Errno(0x29)
1499 ERANGE = syscall.Errno(0x22)
1500 EREMOTE = syscall.Errno(0x47)
1501 EROFS = syscall.Errno(0x1e)
1502 ERPCMISMATCH = syscall.Errno(0x49)
1503 ESHUTDOWN = syscall.Errno(0x3a)
1504 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1505 ESPIPE = syscall.Errno(0x1d)
1506 ESRCH = syscall.Errno(0x3)
1507 ESTALE = syscall.Errno(0x46)
1508 ETIME = syscall.Errno(0x5c)
1509 ETIMEDOUT = syscall.Errno(0x3c)
1510 ETOOMANYREFS = syscall.Errno(0x3b)
1511 ETXTBSY = syscall.Errno(0x1a)
1512 EUSERS = syscall.Errno(0x44)
1513 EWOULDBLOCK = syscall.Errno(0x23)
1514 EXDEV = syscall.Errno(0x12)
1515)
1516
1517// Signals
1518const (
1519 SIGABRT = syscall.Signal(0x6)
1520 SIGALRM = syscall.Signal(0xe)
1521 SIGBUS = syscall.Signal(0xa)
1522 SIGCHLD = syscall.Signal(0x14)
1523 SIGCONT = syscall.Signal(0x13)
1524 SIGEMT = syscall.Signal(0x7)
1525 SIGFPE = syscall.Signal(0x8)
1526 SIGHUP = syscall.Signal(0x1)
1527 SIGILL = syscall.Signal(0x4)
1528 SIGINFO = syscall.Signal(0x1d)
1529 SIGINT = syscall.Signal(0x2)
1530 SIGIO = syscall.Signal(0x17)
1531 SIGIOT = syscall.Signal(0x6)
1532 SIGKILL = syscall.Signal(0x9)
1533 SIGPIPE = syscall.Signal(0xd)
1534 SIGPROF = syscall.Signal(0x1b)
1535 SIGPWR = syscall.Signal(0x20)
1536 SIGQUIT = syscall.Signal(0x3)
1537 SIGSEGV = syscall.Signal(0xb)
1538 SIGSTOP = syscall.Signal(0x11)
1539 SIGSYS = syscall.Signal(0xc)
1540 SIGTERM = syscall.Signal(0xf)
1541 SIGTRAP = syscall.Signal(0x5)
1542 SIGTSTP = syscall.Signal(0x12)
1543 SIGTTIN = syscall.Signal(0x15)
1544 SIGTTOU = syscall.Signal(0x16)
1545 SIGURG = syscall.Signal(0x10)
1546 SIGUSR1 = syscall.Signal(0x1e)
1547 SIGUSR2 = syscall.Signal(0x1f)
1548 SIGVTALRM = syscall.Signal(0x1a)
1549 SIGWINCH = syscall.Signal(0x1c)
1550 SIGXCPU = syscall.Signal(0x18)
1551 SIGXFSZ = syscall.Signal(0x19)
1552)
1553
1554// Error table
1555var errors = [...]string{
1556 1: "operation not permitted",
1557 2: "no such file or directory",
1558 3: "no such process",
1559 4: "interrupted system call",
1560 5: "input/output error",
1561 6: "device not configured",
1562 7: "argument list too long",
1563 8: "exec format error",
1564 9: "bad file descriptor",
1565 10: "no child processes",
1566 11: "resource deadlock avoided",
1567 12: "cannot allocate memory",
1568 13: "permission denied",
1569 14: "bad address",
1570 15: "block device required",
1571 16: "device busy",
1572 17: "file exists",
1573 18: "cross-device link",
1574 19: "operation not supported by device",
1575 20: "not a directory",
1576 21: "is a directory",
1577 22: "invalid argument",
1578 23: "too many open files in system",
1579 24: "too many open files",
1580 25: "inappropriate ioctl for device",
1581 26: "text file busy",
1582 27: "file too large",
1583 28: "no space left on device",
1584 29: "illegal seek",
1585 30: "read-only file system",
1586 31: "too many links",
1587 32: "broken pipe",
1588 33: "numerical argument out of domain",
1589 34: "result too large or too small",
1590 35: "resource temporarily unavailable",
1591 36: "operation now in progress",
1592 37: "operation already in progress",
1593 38: "socket operation on non-socket",
1594 39: "destination address required",
1595 40: "message too long",
1596 41: "protocol wrong type for socket",
1597 42: "protocol option not available",
1598 43: "protocol not supported",
1599 44: "socket type not supported",
1600 45: "operation not supported",
1601 46: "protocol family not supported",
1602 47: "address family not supported by protocol family",
1603 48: "address already in use",
1604 49: "can't assign requested address",
1605 50: "network is down",
1606 51: "network is unreachable",
1607 52: "network dropped connection on reset",
1608 53: "software caused connection abort",
1609 54: "connection reset by peer",
1610 55: "no buffer space available",
1611 56: "socket is already connected",
1612 57: "socket is not connected",
1613 58: "can't send after socket shutdown",
1614 59: "too many references: can't splice",
1615 60: "connection timed out",
1616 61: "connection refused",
1617 62: "too many levels of symbolic links",
1618 63: "file name too long",
1619 64: "host is down",
1620 65: "no route to host",
1621 66: "directory not empty",
1622 67: "too many processes",
1623 68: "too many users",
1624 69: "disc quota exceeded",
1625 70: "stale NFS file handle",
1626 71: "too many levels of remote in path",
1627 72: "RPC struct is bad",
1628 73: "RPC version wrong",
1629 74: "RPC prog. not avail",
1630 75: "program version wrong",
1631 76: "bad procedure for program",
1632 77: "no locks available",
1633 78: "function not implemented",
1634 79: "inappropriate file type or format",
1635 80: "authentication error",
1636 81: "need authenticator",
1637 82: "identifier removed",
1638 83: "no message of desired type",
1639 84: "value too large to be stored in data type",
1640 85: "illegal byte sequence",
1641 86: "not supported",
1642 87: "operation Canceled",
1643 88: "bad or Corrupt message",
1644 89: "no message available",
1645 90: "no STREAM resources",
1646 91: "not a STREAM",
1647 92: "STREAM ioctl timeout",
1648 93: "attribute not found",
1649 94: "multihop attempted",
1650 95: "link has been severed",
1651 96: "protocol error",
1652}
1653
1654// Signal table
1655var signals = [...]string{
1656 1: "hangup",
1657 2: "interrupt",
1658 3: "quit",
1659 4: "illegal instruction",
1660 5: "trace/BPT trap",
1661 6: "abort trap",
1662 7: "EMT trap",
1663 8: "floating point exception",
1664 9: "killed",
1665 10: "bus error",
1666 11: "segmentation fault",
1667 12: "bad system call",
1668 13: "broken pipe",
1669 14: "alarm clock",
1670 15: "terminated",
1671 16: "urgent I/O condition",
1672 17: "stopped (signal)",
1673 18: "stopped",
1674 19: "continued",
1675 20: "child exited",
1676 21: "stopped (tty input)",
1677 22: "stopped (tty output)",
1678 23: "I/O possible",
1679 24: "cputime limit exceeded",
1680 25: "filesize limit exceeded",
1681 26: "virtual timer expired",
1682 27: "profiling timer expired",
1683 28: "window size changes",
1684 29: "information request",
1685 30: "user defined signal 1",
1686 31: "user defined signal 2",
1687 32: "power fail/restart",
1688}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_openbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_openbsd_386.go
deleted file mode 100644
index 3322e99..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_openbsd_386.go
+++ /dev/null
@@ -1,1584 +0,0 @@
1// mkerrors.sh -m32
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,openbsd
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m32 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_BLUETOOTH = 0x20
16 AF_CCITT = 0xa
17 AF_CHAOS = 0x5
18 AF_CNT = 0x15
19 AF_COIP = 0x14
20 AF_DATAKIT = 0x9
21 AF_DECnet = 0xc
22 AF_DLI = 0xd
23 AF_E164 = 0x1a
24 AF_ECMA = 0x8
25 AF_ENCAP = 0x1c
26 AF_HYLINK = 0xf
27 AF_IMPLINK = 0x3
28 AF_INET = 0x2
29 AF_INET6 = 0x18
30 AF_IPX = 0x17
31 AF_ISDN = 0x1a
32 AF_ISO = 0x7
33 AF_KEY = 0x1e
34 AF_LAT = 0xe
35 AF_LINK = 0x12
36 AF_LOCAL = 0x1
37 AF_MAX = 0x24
38 AF_MPLS = 0x21
39 AF_NATM = 0x1b
40 AF_NS = 0x6
41 AF_OSI = 0x7
42 AF_PUP = 0x4
43 AF_ROUTE = 0x11
44 AF_SIP = 0x1d
45 AF_SNA = 0xb
46 AF_UNIX = 0x1
47 AF_UNSPEC = 0x0
48 ARPHRD_ETHER = 0x1
49 ARPHRD_FRELAY = 0xf
50 ARPHRD_IEEE1394 = 0x18
51 ARPHRD_IEEE802 = 0x6
52 B0 = 0x0
53 B110 = 0x6e
54 B115200 = 0x1c200
55 B1200 = 0x4b0
56 B134 = 0x86
57 B14400 = 0x3840
58 B150 = 0x96
59 B1800 = 0x708
60 B19200 = 0x4b00
61 B200 = 0xc8
62 B230400 = 0x38400
63 B2400 = 0x960
64 B28800 = 0x7080
65 B300 = 0x12c
66 B38400 = 0x9600
67 B4800 = 0x12c0
68 B50 = 0x32
69 B57600 = 0xe100
70 B600 = 0x258
71 B7200 = 0x1c20
72 B75 = 0x4b
73 B76800 = 0x12c00
74 B9600 = 0x2580
75 BIOCFLUSH = 0x20004268
76 BIOCGBLEN = 0x40044266
77 BIOCGDIRFILT = 0x4004427c
78 BIOCGDLT = 0x4004426a
79 BIOCGDLTLIST = 0xc008427b
80 BIOCGETIF = 0x4020426b
81 BIOCGFILDROP = 0x40044278
82 BIOCGHDRCMPLT = 0x40044274
83 BIOCGRSIG = 0x40044273
84 BIOCGRTIMEOUT = 0x400c426e
85 BIOCGSTATS = 0x4008426f
86 BIOCIMMEDIATE = 0x80044270
87 BIOCLOCK = 0x20004276
88 BIOCPROMISC = 0x20004269
89 BIOCSBLEN = 0xc0044266
90 BIOCSDIRFILT = 0x8004427d
91 BIOCSDLT = 0x8004427a
92 BIOCSETF = 0x80084267
93 BIOCSETIF = 0x8020426c
94 BIOCSETWF = 0x80084277
95 BIOCSFILDROP = 0x80044279
96 BIOCSHDRCMPLT = 0x80044275
97 BIOCSRSIG = 0x80044272
98 BIOCSRTIMEOUT = 0x800c426d
99 BIOCVERSION = 0x40044271
100 BPF_A = 0x10
101 BPF_ABS = 0x20
102 BPF_ADD = 0x0
103 BPF_ALIGNMENT = 0x4
104 BPF_ALU = 0x4
105 BPF_AND = 0x50
106 BPF_B = 0x10
107 BPF_DIRECTION_IN = 0x1
108 BPF_DIRECTION_OUT = 0x2
109 BPF_DIV = 0x30
110 BPF_H = 0x8
111 BPF_IMM = 0x0
112 BPF_IND = 0x40
113 BPF_JA = 0x0
114 BPF_JEQ = 0x10
115 BPF_JGE = 0x30
116 BPF_JGT = 0x20
117 BPF_JMP = 0x5
118 BPF_JSET = 0x40
119 BPF_K = 0x0
120 BPF_LD = 0x0
121 BPF_LDX = 0x1
122 BPF_LEN = 0x80
123 BPF_LSH = 0x60
124 BPF_MAJOR_VERSION = 0x1
125 BPF_MAXBUFSIZE = 0x200000
126 BPF_MAXINSNS = 0x200
127 BPF_MEM = 0x60
128 BPF_MEMWORDS = 0x10
129 BPF_MINBUFSIZE = 0x20
130 BPF_MINOR_VERSION = 0x1
131 BPF_MISC = 0x7
132 BPF_MSH = 0xa0
133 BPF_MUL = 0x20
134 BPF_NEG = 0x80
135 BPF_OR = 0x40
136 BPF_RELEASE = 0x30bb6
137 BPF_RET = 0x6
138 BPF_RSH = 0x70
139 BPF_ST = 0x2
140 BPF_STX = 0x3
141 BPF_SUB = 0x10
142 BPF_TAX = 0x0
143 BPF_TXA = 0x80
144 BPF_W = 0x0
145 BPF_X = 0x8
146 BRKINT = 0x2
147 CFLUSH = 0xf
148 CLOCAL = 0x8000
149 CREAD = 0x800
150 CS5 = 0x0
151 CS6 = 0x100
152 CS7 = 0x200
153 CS8 = 0x300
154 CSIZE = 0x300
155 CSTART = 0x11
156 CSTATUS = 0xff
157 CSTOP = 0x13
158 CSTOPB = 0x400
159 CSUSP = 0x1a
160 CTL_MAXNAME = 0xc
161 CTL_NET = 0x4
162 DIOCOSFPFLUSH = 0x2000444e
163 DLT_ARCNET = 0x7
164 DLT_ATM_RFC1483 = 0xb
165 DLT_AX25 = 0x3
166 DLT_CHAOS = 0x5
167 DLT_C_HDLC = 0x68
168 DLT_EN10MB = 0x1
169 DLT_EN3MB = 0x2
170 DLT_ENC = 0xd
171 DLT_FDDI = 0xa
172 DLT_IEEE802 = 0x6
173 DLT_IEEE802_11 = 0x69
174 DLT_IEEE802_11_RADIO = 0x7f
175 DLT_LOOP = 0xc
176 DLT_MPLS = 0xdb
177 DLT_NULL = 0x0
178 DLT_PFLOG = 0x75
179 DLT_PFSYNC = 0x12
180 DLT_PPP = 0x9
181 DLT_PPP_BSDOS = 0x10
182 DLT_PPP_ETHER = 0x33
183 DLT_PPP_SERIAL = 0x32
184 DLT_PRONET = 0x4
185 DLT_RAW = 0xe
186 DLT_SLIP = 0x8
187 DLT_SLIP_BSDOS = 0xf
188 DT_BLK = 0x6
189 DT_CHR = 0x2
190 DT_DIR = 0x4
191 DT_FIFO = 0x1
192 DT_LNK = 0xa
193 DT_REG = 0x8
194 DT_SOCK = 0xc
195 DT_UNKNOWN = 0x0
196 ECHO = 0x8
197 ECHOCTL = 0x40
198 ECHOE = 0x2
199 ECHOK = 0x4
200 ECHOKE = 0x1
201 ECHONL = 0x10
202 ECHOPRT = 0x20
203 EMT_TAGOVF = 0x1
204 EMUL_ENABLED = 0x1
205 EMUL_NATIVE = 0x2
206 ENDRUNDISC = 0x9
207 ETHERMIN = 0x2e
208 ETHERMTU = 0x5dc
209 ETHERTYPE_8023 = 0x4
210 ETHERTYPE_AARP = 0x80f3
211 ETHERTYPE_ACCTON = 0x8390
212 ETHERTYPE_AEONIC = 0x8036
213 ETHERTYPE_ALPHA = 0x814a
214 ETHERTYPE_AMBER = 0x6008
215 ETHERTYPE_AMOEBA = 0x8145
216 ETHERTYPE_AOE = 0x88a2
217 ETHERTYPE_APOLLO = 0x80f7
218 ETHERTYPE_APOLLODOMAIN = 0x8019
219 ETHERTYPE_APPLETALK = 0x809b
220 ETHERTYPE_APPLITEK = 0x80c7
221 ETHERTYPE_ARGONAUT = 0x803a
222 ETHERTYPE_ARP = 0x806
223 ETHERTYPE_AT = 0x809b
224 ETHERTYPE_ATALK = 0x809b
225 ETHERTYPE_ATOMIC = 0x86df
226 ETHERTYPE_ATT = 0x8069
227 ETHERTYPE_ATTSTANFORD = 0x8008
228 ETHERTYPE_AUTOPHON = 0x806a
229 ETHERTYPE_AXIS = 0x8856
230 ETHERTYPE_BCLOOP = 0x9003
231 ETHERTYPE_BOFL = 0x8102
232 ETHERTYPE_CABLETRON = 0x7034
233 ETHERTYPE_CHAOS = 0x804
234 ETHERTYPE_COMDESIGN = 0x806c
235 ETHERTYPE_COMPUGRAPHIC = 0x806d
236 ETHERTYPE_COUNTERPOINT = 0x8062
237 ETHERTYPE_CRONUS = 0x8004
238 ETHERTYPE_CRONUSVLN = 0x8003
239 ETHERTYPE_DCA = 0x1234
240 ETHERTYPE_DDE = 0x807b
241 ETHERTYPE_DEBNI = 0xaaaa
242 ETHERTYPE_DECAM = 0x8048
243 ETHERTYPE_DECCUST = 0x6006
244 ETHERTYPE_DECDIAG = 0x6005
245 ETHERTYPE_DECDNS = 0x803c
246 ETHERTYPE_DECDTS = 0x803e
247 ETHERTYPE_DECEXPER = 0x6000
248 ETHERTYPE_DECLAST = 0x8041
249 ETHERTYPE_DECLTM = 0x803f
250 ETHERTYPE_DECMUMPS = 0x6009
251 ETHERTYPE_DECNETBIOS = 0x8040
252 ETHERTYPE_DELTACON = 0x86de
253 ETHERTYPE_DIDDLE = 0x4321
254 ETHERTYPE_DLOG1 = 0x660
255 ETHERTYPE_DLOG2 = 0x661
256 ETHERTYPE_DN = 0x6003
257 ETHERTYPE_DOGFIGHT = 0x1989
258 ETHERTYPE_DSMD = 0x8039
259 ETHERTYPE_ECMA = 0x803
260 ETHERTYPE_ENCRYPT = 0x803d
261 ETHERTYPE_ES = 0x805d
262 ETHERTYPE_EXCELAN = 0x8010
263 ETHERTYPE_EXPERDATA = 0x8049
264 ETHERTYPE_FLIP = 0x8146
265 ETHERTYPE_FLOWCONTROL = 0x8808
266 ETHERTYPE_FRARP = 0x808
267 ETHERTYPE_GENDYN = 0x8068
268 ETHERTYPE_HAYES = 0x8130
269 ETHERTYPE_HIPPI_FP = 0x8180
270 ETHERTYPE_HITACHI = 0x8820
271 ETHERTYPE_HP = 0x8005
272 ETHERTYPE_IEEEPUP = 0xa00
273 ETHERTYPE_IEEEPUPAT = 0xa01
274 ETHERTYPE_IMLBL = 0x4c42
275 ETHERTYPE_IMLBLDIAG = 0x424c
276 ETHERTYPE_IP = 0x800
277 ETHERTYPE_IPAS = 0x876c
278 ETHERTYPE_IPV6 = 0x86dd
279 ETHERTYPE_IPX = 0x8137
280 ETHERTYPE_IPXNEW = 0x8037
281 ETHERTYPE_KALPANA = 0x8582
282 ETHERTYPE_LANBRIDGE = 0x8038
283 ETHERTYPE_LANPROBE = 0x8888
284 ETHERTYPE_LAT = 0x6004
285 ETHERTYPE_LBACK = 0x9000
286 ETHERTYPE_LITTLE = 0x8060
287 ETHERTYPE_LLDP = 0x88cc
288 ETHERTYPE_LOGICRAFT = 0x8148
289 ETHERTYPE_LOOPBACK = 0x9000
290 ETHERTYPE_MATRA = 0x807a
291 ETHERTYPE_MAX = 0xffff
292 ETHERTYPE_MERIT = 0x807c
293 ETHERTYPE_MICP = 0x873a
294 ETHERTYPE_MOPDL = 0x6001
295 ETHERTYPE_MOPRC = 0x6002
296 ETHERTYPE_MOTOROLA = 0x818d
297 ETHERTYPE_MPLS = 0x8847
298 ETHERTYPE_MPLS_MCAST = 0x8848
299 ETHERTYPE_MUMPS = 0x813f
300 ETHERTYPE_NBPCC = 0x3c04
301 ETHERTYPE_NBPCLAIM = 0x3c09
302 ETHERTYPE_NBPCLREQ = 0x3c05
303 ETHERTYPE_NBPCLRSP = 0x3c06
304 ETHERTYPE_NBPCREQ = 0x3c02
305 ETHERTYPE_NBPCRSP = 0x3c03
306 ETHERTYPE_NBPDG = 0x3c07
307 ETHERTYPE_NBPDGB = 0x3c08
308 ETHERTYPE_NBPDLTE = 0x3c0a
309 ETHERTYPE_NBPRAR = 0x3c0c
310 ETHERTYPE_NBPRAS = 0x3c0b
311 ETHERTYPE_NBPRST = 0x3c0d
312 ETHERTYPE_NBPSCD = 0x3c01
313 ETHERTYPE_NBPVCD = 0x3c00
314 ETHERTYPE_NBS = 0x802
315 ETHERTYPE_NCD = 0x8149
316 ETHERTYPE_NESTAR = 0x8006
317 ETHERTYPE_NETBEUI = 0x8191
318 ETHERTYPE_NOVELL = 0x8138
319 ETHERTYPE_NS = 0x600
320 ETHERTYPE_NSAT = 0x601
321 ETHERTYPE_NSCOMPAT = 0x807
322 ETHERTYPE_NTRAILER = 0x10
323 ETHERTYPE_OS9 = 0x7007
324 ETHERTYPE_OS9NET = 0x7009
325 ETHERTYPE_PACER = 0x80c6
326 ETHERTYPE_PAE = 0x888e
327 ETHERTYPE_PCS = 0x4242
328 ETHERTYPE_PLANNING = 0x8044
329 ETHERTYPE_PPP = 0x880b
330 ETHERTYPE_PPPOE = 0x8864
331 ETHERTYPE_PPPOEDISC = 0x8863
332 ETHERTYPE_PRIMENTS = 0x7031
333 ETHERTYPE_PUP = 0x200
334 ETHERTYPE_PUPAT = 0x200
335 ETHERTYPE_QINQ = 0x88a8
336 ETHERTYPE_RACAL = 0x7030
337 ETHERTYPE_RATIONAL = 0x8150
338 ETHERTYPE_RAWFR = 0x6559
339 ETHERTYPE_RCL = 0x1995
340 ETHERTYPE_RDP = 0x8739
341 ETHERTYPE_RETIX = 0x80f2
342 ETHERTYPE_REVARP = 0x8035
343 ETHERTYPE_SCA = 0x6007
344 ETHERTYPE_SECTRA = 0x86db
345 ETHERTYPE_SECUREDATA = 0x876d
346 ETHERTYPE_SGITW = 0x817e
347 ETHERTYPE_SG_BOUNCE = 0x8016
348 ETHERTYPE_SG_DIAG = 0x8013
349 ETHERTYPE_SG_NETGAMES = 0x8014
350 ETHERTYPE_SG_RESV = 0x8015
351 ETHERTYPE_SIMNET = 0x5208
352 ETHERTYPE_SLOW = 0x8809
353 ETHERTYPE_SNA = 0x80d5
354 ETHERTYPE_SNMP = 0x814c
355 ETHERTYPE_SONIX = 0xfaf5
356 ETHERTYPE_SPIDER = 0x809f
357 ETHERTYPE_SPRITE = 0x500
358 ETHERTYPE_STP = 0x8181
359 ETHERTYPE_TALARIS = 0x812b
360 ETHERTYPE_TALARISMC = 0x852b
361 ETHERTYPE_TCPCOMP = 0x876b
362 ETHERTYPE_TCPSM = 0x9002
363 ETHERTYPE_TEC = 0x814f
364 ETHERTYPE_TIGAN = 0x802f
365 ETHERTYPE_TRAIL = 0x1000
366 ETHERTYPE_TRANSETHER = 0x6558
367 ETHERTYPE_TYMSHARE = 0x802e
368 ETHERTYPE_UBBST = 0x7005
369 ETHERTYPE_UBDEBUG = 0x900
370 ETHERTYPE_UBDIAGLOOP = 0x7002
371 ETHERTYPE_UBDL = 0x7000
372 ETHERTYPE_UBNIU = 0x7001
373 ETHERTYPE_UBNMC = 0x7003
374 ETHERTYPE_VALID = 0x1600
375 ETHERTYPE_VARIAN = 0x80dd
376 ETHERTYPE_VAXELN = 0x803b
377 ETHERTYPE_VEECO = 0x8067
378 ETHERTYPE_VEXP = 0x805b
379 ETHERTYPE_VGLAB = 0x8131
380 ETHERTYPE_VINES = 0xbad
381 ETHERTYPE_VINESECHO = 0xbaf
382 ETHERTYPE_VINESLOOP = 0xbae
383 ETHERTYPE_VITAL = 0xff00
384 ETHERTYPE_VLAN = 0x8100
385 ETHERTYPE_VLTLMAN = 0x8080
386 ETHERTYPE_VPROD = 0x805c
387 ETHERTYPE_VURESERVED = 0x8147
388 ETHERTYPE_WATERLOO = 0x8130
389 ETHERTYPE_WELLFLEET = 0x8103
390 ETHERTYPE_X25 = 0x805
391 ETHERTYPE_X75 = 0x801
392 ETHERTYPE_XNSSM = 0x9001
393 ETHERTYPE_XTP = 0x817d
394 ETHER_ADDR_LEN = 0x6
395 ETHER_ALIGN = 0x2
396 ETHER_CRC_LEN = 0x4
397 ETHER_CRC_POLY_BE = 0x4c11db6
398 ETHER_CRC_POLY_LE = 0xedb88320
399 ETHER_HDR_LEN = 0xe
400 ETHER_MAX_DIX_LEN = 0x600
401 ETHER_MAX_LEN = 0x5ee
402 ETHER_MIN_LEN = 0x40
403 ETHER_TYPE_LEN = 0x2
404 ETHER_VLAN_ENCAP_LEN = 0x4
405 EVFILT_AIO = -0x3
406 EVFILT_PROC = -0x5
407 EVFILT_READ = -0x1
408 EVFILT_SIGNAL = -0x6
409 EVFILT_SYSCOUNT = 0x7
410 EVFILT_TIMER = -0x7
411 EVFILT_VNODE = -0x4
412 EVFILT_WRITE = -0x2
413 EV_ADD = 0x1
414 EV_CLEAR = 0x20
415 EV_DELETE = 0x2
416 EV_DISABLE = 0x8
417 EV_ENABLE = 0x4
418 EV_EOF = 0x8000
419 EV_ERROR = 0x4000
420 EV_FLAG1 = 0x2000
421 EV_ONESHOT = 0x10
422 EV_SYSFLAGS = 0xf000
423 EXTA = 0x4b00
424 EXTB = 0x9600
425 EXTPROC = 0x800
426 FD_CLOEXEC = 0x1
427 FD_SETSIZE = 0x400
428 FLUSHO = 0x800000
429 F_DUPFD = 0x0
430 F_DUPFD_CLOEXEC = 0xa
431 F_GETFD = 0x1
432 F_GETFL = 0x3
433 F_GETLK = 0x7
434 F_GETOWN = 0x5
435 F_OK = 0x0
436 F_RDLCK = 0x1
437 F_SETFD = 0x2
438 F_SETFL = 0x4
439 F_SETLK = 0x8
440 F_SETLKW = 0x9
441 F_SETOWN = 0x6
442 F_UNLCK = 0x2
443 F_WRLCK = 0x3
444 HUPCL = 0x4000
445 ICANON = 0x100
446 ICMP6_FILTER = 0x12
447 ICRNL = 0x100
448 IEXTEN = 0x400
449 IFAN_ARRIVAL = 0x0
450 IFAN_DEPARTURE = 0x1
451 IFA_ROUTE = 0x1
452 IFF_ALLMULTI = 0x200
453 IFF_BROADCAST = 0x2
454 IFF_CANTCHANGE = 0x8e52
455 IFF_DEBUG = 0x4
456 IFF_LINK0 = 0x1000
457 IFF_LINK1 = 0x2000
458 IFF_LINK2 = 0x4000
459 IFF_LOOPBACK = 0x8
460 IFF_MULTICAST = 0x8000
461 IFF_NOARP = 0x80
462 IFF_NOTRAILERS = 0x20
463 IFF_OACTIVE = 0x400
464 IFF_POINTOPOINT = 0x10
465 IFF_PROMISC = 0x100
466 IFF_RUNNING = 0x40
467 IFF_SIMPLEX = 0x800
468 IFF_UP = 0x1
469 IFNAMSIZ = 0x10
470 IFT_1822 = 0x2
471 IFT_A12MPPSWITCH = 0x82
472 IFT_AAL2 = 0xbb
473 IFT_AAL5 = 0x31
474 IFT_ADSL = 0x5e
475 IFT_AFLANE8023 = 0x3b
476 IFT_AFLANE8025 = 0x3c
477 IFT_ARAP = 0x58
478 IFT_ARCNET = 0x23
479 IFT_ARCNETPLUS = 0x24
480 IFT_ASYNC = 0x54
481 IFT_ATM = 0x25
482 IFT_ATMDXI = 0x69
483 IFT_ATMFUNI = 0x6a
484 IFT_ATMIMA = 0x6b
485 IFT_ATMLOGICAL = 0x50
486 IFT_ATMRADIO = 0xbd
487 IFT_ATMSUBINTERFACE = 0x86
488 IFT_ATMVCIENDPT = 0xc2
489 IFT_ATMVIRTUAL = 0x95
490 IFT_BGPPOLICYACCOUNTING = 0xa2
491 IFT_BLUETOOTH = 0xf8
492 IFT_BRIDGE = 0xd1
493 IFT_BSC = 0x53
494 IFT_CARP = 0xf7
495 IFT_CCTEMUL = 0x3d
496 IFT_CEPT = 0x13
497 IFT_CES = 0x85
498 IFT_CHANNEL = 0x46
499 IFT_CNR = 0x55
500 IFT_COFFEE = 0x84
501 IFT_COMPOSITELINK = 0x9b
502 IFT_DCN = 0x8d
503 IFT_DIGITALPOWERLINE = 0x8a
504 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
505 IFT_DLSW = 0x4a
506 IFT_DOCSCABLEDOWNSTREAM = 0x80
507 IFT_DOCSCABLEMACLAYER = 0x7f
508 IFT_DOCSCABLEUPSTREAM = 0x81
509 IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd
510 IFT_DS0 = 0x51
511 IFT_DS0BUNDLE = 0x52
512 IFT_DS1FDL = 0xaa
513 IFT_DS3 = 0x1e
514 IFT_DTM = 0x8c
515 IFT_DUMMY = 0xf1
516 IFT_DVBASILN = 0xac
517 IFT_DVBASIOUT = 0xad
518 IFT_DVBRCCDOWNSTREAM = 0x93
519 IFT_DVBRCCMACLAYER = 0x92
520 IFT_DVBRCCUPSTREAM = 0x94
521 IFT_ECONET = 0xce
522 IFT_ENC = 0xf4
523 IFT_EON = 0x19
524 IFT_EPLRS = 0x57
525 IFT_ESCON = 0x49
526 IFT_ETHER = 0x6
527 IFT_FAITH = 0xf3
528 IFT_FAST = 0x7d
529 IFT_FASTETHER = 0x3e
530 IFT_FASTETHERFX = 0x45
531 IFT_FDDI = 0xf
532 IFT_FIBRECHANNEL = 0x38
533 IFT_FRAMERELAYINTERCONNECT = 0x3a
534 IFT_FRAMERELAYMPI = 0x5c
535 IFT_FRDLCIENDPT = 0xc1
536 IFT_FRELAY = 0x20
537 IFT_FRELAYDCE = 0x2c
538 IFT_FRF16MFRBUNDLE = 0xa3
539 IFT_FRFORWARD = 0x9e
540 IFT_G703AT2MB = 0x43
541 IFT_G703AT64K = 0x42
542 IFT_GIF = 0xf0
543 IFT_GIGABITETHERNET = 0x75
544 IFT_GR303IDT = 0xb2
545 IFT_GR303RDT = 0xb1
546 IFT_H323GATEKEEPER = 0xa4
547 IFT_H323PROXY = 0xa5
548 IFT_HDH1822 = 0x3
549 IFT_HDLC = 0x76
550 IFT_HDSL2 = 0xa8
551 IFT_HIPERLAN2 = 0xb7
552 IFT_HIPPI = 0x2f
553 IFT_HIPPIINTERFACE = 0x39
554 IFT_HOSTPAD = 0x5a
555 IFT_HSSI = 0x2e
556 IFT_HY = 0xe
557 IFT_IBM370PARCHAN = 0x48
558 IFT_IDSL = 0x9a
559 IFT_IEEE1394 = 0x90
560 IFT_IEEE80211 = 0x47
561 IFT_IEEE80212 = 0x37
562 IFT_IEEE8023ADLAG = 0xa1
563 IFT_IFGSN = 0x91
564 IFT_IMT = 0xbe
565 IFT_INFINIBAND = 0xc7
566 IFT_INTERLEAVE = 0x7c
567 IFT_IP = 0x7e
568 IFT_IPFORWARD = 0x8e
569 IFT_IPOVERATM = 0x72
570 IFT_IPOVERCDLC = 0x6d
571 IFT_IPOVERCLAW = 0x6e
572 IFT_IPSWITCH = 0x4e
573 IFT_ISDN = 0x3f
574 IFT_ISDNBASIC = 0x14
575 IFT_ISDNPRIMARY = 0x15
576 IFT_ISDNS = 0x4b
577 IFT_ISDNU = 0x4c
578 IFT_ISO88022LLC = 0x29
579 IFT_ISO88023 = 0x7
580 IFT_ISO88024 = 0x8
581 IFT_ISO88025 = 0x9
582 IFT_ISO88025CRFPINT = 0x62
583 IFT_ISO88025DTR = 0x56
584 IFT_ISO88025FIBER = 0x73
585 IFT_ISO88026 = 0xa
586 IFT_ISUP = 0xb3
587 IFT_L2VLAN = 0x87
588 IFT_L3IPVLAN = 0x88
589 IFT_L3IPXVLAN = 0x89
590 IFT_LAPB = 0x10
591 IFT_LAPD = 0x4d
592 IFT_LAPF = 0x77
593 IFT_LINEGROUP = 0xd2
594 IFT_LOCALTALK = 0x2a
595 IFT_LOOP = 0x18
596 IFT_MEDIAMAILOVERIP = 0x8b
597 IFT_MFSIGLINK = 0xa7
598 IFT_MIOX25 = 0x26
599 IFT_MODEM = 0x30
600 IFT_MPC = 0x71
601 IFT_MPLS = 0xa6
602 IFT_MPLSTUNNEL = 0x96
603 IFT_MSDSL = 0x8f
604 IFT_MVL = 0xbf
605 IFT_MYRINET = 0x63
606 IFT_NFAS = 0xaf
607 IFT_NSIP = 0x1b
608 IFT_OPTICALCHANNEL = 0xc3
609 IFT_OPTICALTRANSPORT = 0xc4
610 IFT_OTHER = 0x1
611 IFT_P10 = 0xc
612 IFT_P80 = 0xd
613 IFT_PARA = 0x22
614 IFT_PFLOG = 0xf5
615 IFT_PFLOW = 0xf9
616 IFT_PFSYNC = 0xf6
617 IFT_PLC = 0xae
618 IFT_PON155 = 0xcf
619 IFT_PON622 = 0xd0
620 IFT_POS = 0xab
621 IFT_PPP = 0x17
622 IFT_PPPMULTILINKBUNDLE = 0x6c
623 IFT_PROPATM = 0xc5
624 IFT_PROPBWAP2MP = 0xb8
625 IFT_PROPCNLS = 0x59
626 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
627 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
628 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
629 IFT_PROPMUX = 0x36
630 IFT_PROPVIRTUAL = 0x35
631 IFT_PROPWIRELESSP2P = 0x9d
632 IFT_PTPSERIAL = 0x16
633 IFT_PVC = 0xf2
634 IFT_Q2931 = 0xc9
635 IFT_QLLC = 0x44
636 IFT_RADIOMAC = 0xbc
637 IFT_RADSL = 0x5f
638 IFT_REACHDSL = 0xc0
639 IFT_RFC1483 = 0x9f
640 IFT_RS232 = 0x21
641 IFT_RSRB = 0x4f
642 IFT_SDLC = 0x11
643 IFT_SDSL = 0x60
644 IFT_SHDSL = 0xa9
645 IFT_SIP = 0x1f
646 IFT_SIPSIG = 0xcc
647 IFT_SIPTG = 0xcb
648 IFT_SLIP = 0x1c
649 IFT_SMDSDXI = 0x2b
650 IFT_SMDSICIP = 0x34
651 IFT_SONET = 0x27
652 IFT_SONETOVERHEADCHANNEL = 0xb9
653 IFT_SONETPATH = 0x32
654 IFT_SONETVT = 0x33
655 IFT_SRP = 0x97
656 IFT_SS7SIGLINK = 0x9c
657 IFT_STACKTOSTACK = 0x6f
658 IFT_STARLAN = 0xb
659 IFT_T1 = 0x12
660 IFT_TDLC = 0x74
661 IFT_TELINK = 0xc8
662 IFT_TERMPAD = 0x5b
663 IFT_TR008 = 0xb0
664 IFT_TRANSPHDLC = 0x7b
665 IFT_TUNNEL = 0x83
666 IFT_ULTRA = 0x1d
667 IFT_USB = 0xa0
668 IFT_V11 = 0x40
669 IFT_V35 = 0x2d
670 IFT_V36 = 0x41
671 IFT_V37 = 0x78
672 IFT_VDSL = 0x61
673 IFT_VIRTUALIPADDRESS = 0x70
674 IFT_VIRTUALTG = 0xca
675 IFT_VOICEDID = 0xd5
676 IFT_VOICEEM = 0x64
677 IFT_VOICEEMFGD = 0xd3
678 IFT_VOICEENCAP = 0x67
679 IFT_VOICEFGDEANA = 0xd4
680 IFT_VOICEFXO = 0x65
681 IFT_VOICEFXS = 0x66
682 IFT_VOICEOVERATM = 0x98
683 IFT_VOICEOVERCABLE = 0xc6
684 IFT_VOICEOVERFRAMERELAY = 0x99
685 IFT_VOICEOVERIP = 0x68
686 IFT_X213 = 0x5d
687 IFT_X25 = 0x5
688 IFT_X25DDN = 0x4
689 IFT_X25HUNTGROUP = 0x7a
690 IFT_X25MLP = 0x79
691 IFT_X25PLE = 0x28
692 IFT_XETHER = 0x1a
693 IGNBRK = 0x1
694 IGNCR = 0x80
695 IGNPAR = 0x4
696 IMAXBEL = 0x2000
697 INLCR = 0x40
698 INPCK = 0x10
699 IN_CLASSA_HOST = 0xffffff
700 IN_CLASSA_MAX = 0x80
701 IN_CLASSA_NET = 0xff000000
702 IN_CLASSA_NSHIFT = 0x18
703 IN_CLASSB_HOST = 0xffff
704 IN_CLASSB_MAX = 0x10000
705 IN_CLASSB_NET = 0xffff0000
706 IN_CLASSB_NSHIFT = 0x10
707 IN_CLASSC_HOST = 0xff
708 IN_CLASSC_NET = 0xffffff00
709 IN_CLASSC_NSHIFT = 0x8
710 IN_CLASSD_HOST = 0xfffffff
711 IN_CLASSD_NET = 0xf0000000
712 IN_CLASSD_NSHIFT = 0x1c
713 IN_LOOPBACKNET = 0x7f
714 IN_RFC3021_HOST = 0x1
715 IN_RFC3021_NET = 0xfffffffe
716 IN_RFC3021_NSHIFT = 0x1f
717 IPPROTO_AH = 0x33
718 IPPROTO_CARP = 0x70
719 IPPROTO_DIVERT = 0x102
720 IPPROTO_DIVERT_INIT = 0x2
721 IPPROTO_DIVERT_RESP = 0x1
722 IPPROTO_DONE = 0x101
723 IPPROTO_DSTOPTS = 0x3c
724 IPPROTO_EGP = 0x8
725 IPPROTO_ENCAP = 0x62
726 IPPROTO_EON = 0x50
727 IPPROTO_ESP = 0x32
728 IPPROTO_ETHERIP = 0x61
729 IPPROTO_FRAGMENT = 0x2c
730 IPPROTO_GGP = 0x3
731 IPPROTO_GRE = 0x2f
732 IPPROTO_HOPOPTS = 0x0
733 IPPROTO_ICMP = 0x1
734 IPPROTO_ICMPV6 = 0x3a
735 IPPROTO_IDP = 0x16
736 IPPROTO_IGMP = 0x2
737 IPPROTO_IP = 0x0
738 IPPROTO_IPCOMP = 0x6c
739 IPPROTO_IPIP = 0x4
740 IPPROTO_IPV4 = 0x4
741 IPPROTO_IPV6 = 0x29
742 IPPROTO_MAX = 0x100
743 IPPROTO_MAXID = 0x103
744 IPPROTO_MOBILE = 0x37
745 IPPROTO_MPLS = 0x89
746 IPPROTO_NONE = 0x3b
747 IPPROTO_PFSYNC = 0xf0
748 IPPROTO_PIM = 0x67
749 IPPROTO_PUP = 0xc
750 IPPROTO_RAW = 0xff
751 IPPROTO_ROUTING = 0x2b
752 IPPROTO_RSVP = 0x2e
753 IPPROTO_TCP = 0x6
754 IPPROTO_TP = 0x1d
755 IPPROTO_UDP = 0x11
756 IPV6_AUTH_LEVEL = 0x35
757 IPV6_AUTOFLOWLABEL = 0x3b
758 IPV6_CHECKSUM = 0x1a
759 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
760 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
761 IPV6_DEFHLIM = 0x40
762 IPV6_DONTFRAG = 0x3e
763 IPV6_DSTOPTS = 0x32
764 IPV6_ESP_NETWORK_LEVEL = 0x37
765 IPV6_ESP_TRANS_LEVEL = 0x36
766 IPV6_FAITH = 0x1d
767 IPV6_FLOWINFO_MASK = 0xffffff0f
768 IPV6_FLOWLABEL_MASK = 0xffff0f00
769 IPV6_FRAGTTL = 0x78
770 IPV6_HLIMDEC = 0x1
771 IPV6_HOPLIMIT = 0x2f
772 IPV6_HOPOPTS = 0x31
773 IPV6_IPCOMP_LEVEL = 0x3c
774 IPV6_JOIN_GROUP = 0xc
775 IPV6_LEAVE_GROUP = 0xd
776 IPV6_MAXHLIM = 0xff
777 IPV6_MAXPACKET = 0xffff
778 IPV6_MMTU = 0x500
779 IPV6_MULTICAST_HOPS = 0xa
780 IPV6_MULTICAST_IF = 0x9
781 IPV6_MULTICAST_LOOP = 0xb
782 IPV6_NEXTHOP = 0x30
783 IPV6_OPTIONS = 0x1
784 IPV6_PATHMTU = 0x2c
785 IPV6_PIPEX = 0x3f
786 IPV6_PKTINFO = 0x2e
787 IPV6_PORTRANGE = 0xe
788 IPV6_PORTRANGE_DEFAULT = 0x0
789 IPV6_PORTRANGE_HIGH = 0x1
790 IPV6_PORTRANGE_LOW = 0x2
791 IPV6_RECVDSTOPTS = 0x28
792 IPV6_RECVDSTPORT = 0x40
793 IPV6_RECVHOPLIMIT = 0x25
794 IPV6_RECVHOPOPTS = 0x27
795 IPV6_RECVPATHMTU = 0x2b
796 IPV6_RECVPKTINFO = 0x24
797 IPV6_RECVRTHDR = 0x26
798 IPV6_RECVTCLASS = 0x39
799 IPV6_RTABLE = 0x1021
800 IPV6_RTHDR = 0x33
801 IPV6_RTHDRDSTOPTS = 0x23
802 IPV6_RTHDR_LOOSE = 0x0
803 IPV6_RTHDR_STRICT = 0x1
804 IPV6_RTHDR_TYPE_0 = 0x0
805 IPV6_SOCKOPT_RESERVED1 = 0x3
806 IPV6_TCLASS = 0x3d
807 IPV6_UNICAST_HOPS = 0x4
808 IPV6_USE_MIN_MTU = 0x2a
809 IPV6_V6ONLY = 0x1b
810 IPV6_VERSION = 0x60
811 IPV6_VERSION_MASK = 0xf0
812 IP_ADD_MEMBERSHIP = 0xc
813 IP_AUTH_LEVEL = 0x14
814 IP_DEFAULT_MULTICAST_LOOP = 0x1
815 IP_DEFAULT_MULTICAST_TTL = 0x1
816 IP_DF = 0x4000
817 IP_DIVERTFL = 0x1022
818 IP_DROP_MEMBERSHIP = 0xd
819 IP_ESP_NETWORK_LEVEL = 0x16
820 IP_ESP_TRANS_LEVEL = 0x15
821 IP_HDRINCL = 0x2
822 IP_IPCOMP_LEVEL = 0x1d
823 IP_IPSECFLOWINFO = 0x24
824 IP_IPSEC_LOCAL_AUTH = 0x1b
825 IP_IPSEC_LOCAL_CRED = 0x19
826 IP_IPSEC_LOCAL_ID = 0x17
827 IP_IPSEC_REMOTE_AUTH = 0x1c
828 IP_IPSEC_REMOTE_CRED = 0x1a
829 IP_IPSEC_REMOTE_ID = 0x18
830 IP_MAXPACKET = 0xffff
831 IP_MAX_MEMBERSHIPS = 0xfff
832 IP_MF = 0x2000
833 IP_MINTTL = 0x20
834 IP_MIN_MEMBERSHIPS = 0xf
835 IP_MSS = 0x240
836 IP_MULTICAST_IF = 0x9
837 IP_MULTICAST_LOOP = 0xb
838 IP_MULTICAST_TTL = 0xa
839 IP_OFFMASK = 0x1fff
840 IP_OPTIONS = 0x1
841 IP_PIPEX = 0x22
842 IP_PORTRANGE = 0x13
843 IP_PORTRANGE_DEFAULT = 0x0
844 IP_PORTRANGE_HIGH = 0x1
845 IP_PORTRANGE_LOW = 0x2
846 IP_RECVDSTADDR = 0x7
847 IP_RECVDSTPORT = 0x21
848 IP_RECVIF = 0x1e
849 IP_RECVOPTS = 0x5
850 IP_RECVRETOPTS = 0x6
851 IP_RECVRTABLE = 0x23
852 IP_RECVTTL = 0x1f
853 IP_RETOPTS = 0x8
854 IP_RF = 0x8000
855 IP_RTABLE = 0x1021
856 IP_TOS = 0x3
857 IP_TTL = 0x4
858 ISIG = 0x80
859 ISTRIP = 0x20
860 IXANY = 0x800
861 IXOFF = 0x400
862 IXON = 0x200
863 LCNT_OVERLOAD_FLUSH = 0x6
864 LOCK_EX = 0x2
865 LOCK_NB = 0x4
866 LOCK_SH = 0x1
867 LOCK_UN = 0x8
868 MADV_DONTNEED = 0x4
869 MADV_FREE = 0x6
870 MADV_NORMAL = 0x0
871 MADV_RANDOM = 0x1
872 MADV_SEQUENTIAL = 0x2
873 MADV_SPACEAVAIL = 0x5
874 MADV_WILLNEED = 0x3
875 MAP_ANON = 0x1000
876 MAP_COPY = 0x4
877 MAP_FILE = 0x0
878 MAP_FIXED = 0x10
879 MAP_FLAGMASK = 0x1ff7
880 MAP_HASSEMAPHORE = 0x200
881 MAP_INHERIT = 0x80
882 MAP_INHERIT_COPY = 0x1
883 MAP_INHERIT_DONATE_COPY = 0x3
884 MAP_INHERIT_NONE = 0x2
885 MAP_INHERIT_SHARE = 0x0
886 MAP_NOEXTEND = 0x100
887 MAP_NORESERVE = 0x40
888 MAP_PRIVATE = 0x2
889 MAP_RENAME = 0x20
890 MAP_SHARED = 0x1
891 MAP_TRYFIXED = 0x400
892 MCL_CURRENT = 0x1
893 MCL_FUTURE = 0x2
894 MSG_BCAST = 0x100
895 MSG_CTRUNC = 0x20
896 MSG_DONTROUTE = 0x4
897 MSG_DONTWAIT = 0x80
898 MSG_EOR = 0x8
899 MSG_MCAST = 0x200
900 MSG_NOSIGNAL = 0x400
901 MSG_OOB = 0x1
902 MSG_PEEK = 0x2
903 MSG_TRUNC = 0x10
904 MSG_WAITALL = 0x40
905 MS_ASYNC = 0x1
906 MS_INVALIDATE = 0x4
907 MS_SYNC = 0x2
908 NAME_MAX = 0xff
909 NET_RT_DUMP = 0x1
910 NET_RT_FLAGS = 0x2
911 NET_RT_IFLIST = 0x3
912 NET_RT_MAXID = 0x6
913 NET_RT_STATS = 0x4
914 NET_RT_TABLE = 0x5
915 NOFLSH = 0x80000000
916 NOTE_ATTRIB = 0x8
917 NOTE_CHILD = 0x4
918 NOTE_DELETE = 0x1
919 NOTE_EOF = 0x2
920 NOTE_EXEC = 0x20000000
921 NOTE_EXIT = 0x80000000
922 NOTE_EXTEND = 0x4
923 NOTE_FORK = 0x40000000
924 NOTE_LINK = 0x10
925 NOTE_LOWAT = 0x1
926 NOTE_PCTRLMASK = 0xf0000000
927 NOTE_PDATAMASK = 0xfffff
928 NOTE_RENAME = 0x20
929 NOTE_REVOKE = 0x40
930 NOTE_TRACK = 0x1
931 NOTE_TRACKERR = 0x2
932 NOTE_TRUNCATE = 0x80
933 NOTE_WRITE = 0x2
934 OCRNL = 0x10
935 ONLCR = 0x2
936 ONLRET = 0x80
937 ONOCR = 0x40
938 ONOEOT = 0x8
939 OPOST = 0x1
940 O_ACCMODE = 0x3
941 O_APPEND = 0x8
942 O_ASYNC = 0x40
943 O_CLOEXEC = 0x10000
944 O_CREAT = 0x200
945 O_DIRECTORY = 0x20000
946 O_DSYNC = 0x80
947 O_EXCL = 0x800
948 O_EXLOCK = 0x20
949 O_FSYNC = 0x80
950 O_NDELAY = 0x4
951 O_NOCTTY = 0x8000
952 O_NOFOLLOW = 0x100
953 O_NONBLOCK = 0x4
954 O_RDONLY = 0x0
955 O_RDWR = 0x2
956 O_RSYNC = 0x80
957 O_SHLOCK = 0x10
958 O_SYNC = 0x80
959 O_TRUNC = 0x400
960 O_WRONLY = 0x1
961 PARENB = 0x1000
962 PARMRK = 0x8
963 PARODD = 0x2000
964 PENDIN = 0x20000000
965 PF_FLUSH = 0x1
966 PRIO_PGRP = 0x1
967 PRIO_PROCESS = 0x0
968 PRIO_USER = 0x2
969 PROT_EXEC = 0x4
970 PROT_NONE = 0x0
971 PROT_READ = 0x1
972 PROT_WRITE = 0x2
973 PT_MASK = 0x3ff000
974 RLIMIT_CORE = 0x4
975 RLIMIT_CPU = 0x0
976 RLIMIT_DATA = 0x2
977 RLIMIT_FSIZE = 0x1
978 RLIMIT_NOFILE = 0x8
979 RLIMIT_STACK = 0x3
980 RLIM_INFINITY = 0x7fffffffffffffff
981 RTAX_AUTHOR = 0x6
982 RTAX_BRD = 0x7
983 RTAX_DST = 0x0
984 RTAX_GATEWAY = 0x1
985 RTAX_GENMASK = 0x3
986 RTAX_IFA = 0x5
987 RTAX_IFP = 0x4
988 RTAX_LABEL = 0xa
989 RTAX_MAX = 0xb
990 RTAX_NETMASK = 0x2
991 RTAX_SRC = 0x8
992 RTAX_SRCMASK = 0x9
993 RTA_AUTHOR = 0x40
994 RTA_BRD = 0x80
995 RTA_DST = 0x1
996 RTA_GATEWAY = 0x2
997 RTA_GENMASK = 0x8
998 RTA_IFA = 0x20
999 RTA_IFP = 0x10
1000 RTA_LABEL = 0x400
1001 RTA_NETMASK = 0x4
1002 RTA_SRC = 0x100
1003 RTA_SRCMASK = 0x200
1004 RTF_ANNOUNCE = 0x4000
1005 RTF_BLACKHOLE = 0x1000
1006 RTF_CLONED = 0x10000
1007 RTF_CLONING = 0x100
1008 RTF_DONE = 0x40
1009 RTF_DYNAMIC = 0x10
1010 RTF_FMASK = 0x10f808
1011 RTF_GATEWAY = 0x2
1012 RTF_HOST = 0x4
1013 RTF_LLINFO = 0x400
1014 RTF_MASK = 0x80
1015 RTF_MODIFIED = 0x20
1016 RTF_MPATH = 0x40000
1017 RTF_MPLS = 0x100000
1018 RTF_PERMANENT_ARP = 0x2000
1019 RTF_PROTO1 = 0x8000
1020 RTF_PROTO2 = 0x4000
1021 RTF_PROTO3 = 0x2000
1022 RTF_REJECT = 0x8
1023 RTF_SOURCE = 0x20000
1024 RTF_STATIC = 0x800
1025 RTF_TUNNEL = 0x100000
1026 RTF_UP = 0x1
1027 RTF_USETRAILERS = 0x8000
1028 RTF_XRESOLVE = 0x200
1029 RTM_ADD = 0x1
1030 RTM_CHANGE = 0x3
1031 RTM_DELADDR = 0xd
1032 RTM_DELETE = 0x2
1033 RTM_DESYNC = 0x10
1034 RTM_GET = 0x4
1035 RTM_IFANNOUNCE = 0xf
1036 RTM_IFINFO = 0xe
1037 RTM_LOCK = 0x8
1038 RTM_LOSING = 0x5
1039 RTM_MAXSIZE = 0x800
1040 RTM_MISS = 0x7
1041 RTM_NEWADDR = 0xc
1042 RTM_REDIRECT = 0x6
1043 RTM_RESOLVE = 0xb
1044 RTM_RTTUNIT = 0xf4240
1045 RTM_VERSION = 0x5
1046 RTV_EXPIRE = 0x4
1047 RTV_HOPCOUNT = 0x2
1048 RTV_MTU = 0x1
1049 RTV_RPIPE = 0x8
1050 RTV_RTT = 0x40
1051 RTV_RTTVAR = 0x80
1052 RTV_SPIPE = 0x10
1053 RTV_SSTHRESH = 0x20
1054 RT_TABLEID_MAX = 0xff
1055 RUSAGE_CHILDREN = -0x1
1056 RUSAGE_SELF = 0x0
1057 RUSAGE_THREAD = 0x1
1058 SCM_RIGHTS = 0x1
1059 SCM_TIMESTAMP = 0x4
1060 SHUT_RD = 0x0
1061 SHUT_RDWR = 0x2
1062 SHUT_WR = 0x1
1063 SIOCADDMULTI = 0x80206931
1064 SIOCAIFADDR = 0x8040691a
1065 SIOCAIFGROUP = 0x80246987
1066 SIOCALIFADDR = 0x8218691c
1067 SIOCATMARK = 0x40047307
1068 SIOCBRDGADD = 0x8054693c
1069 SIOCBRDGADDS = 0x80546941
1070 SIOCBRDGARL = 0x806e694d
1071 SIOCBRDGDADDR = 0x81286947
1072 SIOCBRDGDEL = 0x8054693d
1073 SIOCBRDGDELS = 0x80546942
1074 SIOCBRDGFLUSH = 0x80546948
1075 SIOCBRDGFRL = 0x806e694e
1076 SIOCBRDGGCACHE = 0xc0146941
1077 SIOCBRDGGFD = 0xc0146952
1078 SIOCBRDGGHT = 0xc0146951
1079 SIOCBRDGGIFFLGS = 0xc054693e
1080 SIOCBRDGGMA = 0xc0146953
1081 SIOCBRDGGPARAM = 0xc03c6958
1082 SIOCBRDGGPRI = 0xc0146950
1083 SIOCBRDGGRL = 0xc028694f
1084 SIOCBRDGGSIFS = 0xc054693c
1085 SIOCBRDGGTO = 0xc0146946
1086 SIOCBRDGIFS = 0xc0546942
1087 SIOCBRDGRTS = 0xc0186943
1088 SIOCBRDGSADDR = 0xc1286944
1089 SIOCBRDGSCACHE = 0x80146940
1090 SIOCBRDGSFD = 0x80146952
1091 SIOCBRDGSHT = 0x80146951
1092 SIOCBRDGSIFCOST = 0x80546955
1093 SIOCBRDGSIFFLGS = 0x8054693f
1094 SIOCBRDGSIFPRIO = 0x80546954
1095 SIOCBRDGSMA = 0x80146953
1096 SIOCBRDGSPRI = 0x80146950
1097 SIOCBRDGSPROTO = 0x8014695a
1098 SIOCBRDGSTO = 0x80146945
1099 SIOCBRDGSTXHC = 0x80146959
1100 SIOCDELMULTI = 0x80206932
1101 SIOCDIFADDR = 0x80206919
1102 SIOCDIFGROUP = 0x80246989
1103 SIOCDIFPHYADDR = 0x80206949
1104 SIOCDLIFADDR = 0x8218691e
1105 SIOCGETKALIVE = 0xc01869a4
1106 SIOCGETLABEL = 0x8020699a
1107 SIOCGETPFLOW = 0xc02069fe
1108 SIOCGETPFSYNC = 0xc02069f8
1109 SIOCGETSGCNT = 0xc0147534
1110 SIOCGETVIFCNT = 0xc0147533
1111 SIOCGETVLAN = 0xc0206990
1112 SIOCGHIWAT = 0x40047301
1113 SIOCGIFADDR = 0xc0206921
1114 SIOCGIFASYNCMAP = 0xc020697c
1115 SIOCGIFBRDADDR = 0xc0206923
1116 SIOCGIFCONF = 0xc0086924
1117 SIOCGIFDATA = 0xc020691b
1118 SIOCGIFDESCR = 0xc0206981
1119 SIOCGIFDSTADDR = 0xc0206922
1120 SIOCGIFFLAGS = 0xc0206911
1121 SIOCGIFGATTR = 0xc024698b
1122 SIOCGIFGENERIC = 0xc020693a
1123 SIOCGIFGMEMB = 0xc024698a
1124 SIOCGIFGROUP = 0xc0246988
1125 SIOCGIFHARDMTU = 0xc02069a5
1126 SIOCGIFMEDIA = 0xc0286936
1127 SIOCGIFMETRIC = 0xc0206917
1128 SIOCGIFMTU = 0xc020697e
1129 SIOCGIFNETMASK = 0xc0206925
1130 SIOCGIFPDSTADDR = 0xc0206948
1131 SIOCGIFPRIORITY = 0xc020699c
1132 SIOCGIFPSRCADDR = 0xc0206947
1133 SIOCGIFRDOMAIN = 0xc02069a0
1134 SIOCGIFRTLABEL = 0xc0206983
1135 SIOCGIFTIMESLOT = 0xc0206986
1136 SIOCGIFXFLAGS = 0xc020699e
1137 SIOCGLIFADDR = 0xc218691d
1138 SIOCGLIFPHYADDR = 0xc218694b
1139 SIOCGLIFPHYRTABLE = 0xc02069a2
1140 SIOCGLIFPHYTTL = 0xc02069a9
1141 SIOCGLOWAT = 0x40047303
1142 SIOCGPGRP = 0x40047309
1143 SIOCGSPPPPARAMS = 0xc0206994
1144 SIOCGVH = 0xc02069f6
1145 SIOCGVNETID = 0xc02069a7
1146 SIOCIFCREATE = 0x8020697a
1147 SIOCIFDESTROY = 0x80206979
1148 SIOCIFGCLONERS = 0xc00c6978
1149 SIOCSETKALIVE = 0x801869a3
1150 SIOCSETLABEL = 0x80206999
1151 SIOCSETPFLOW = 0x802069fd
1152 SIOCSETPFSYNC = 0x802069f7
1153 SIOCSETVLAN = 0x8020698f
1154 SIOCSHIWAT = 0x80047300
1155 SIOCSIFADDR = 0x8020690c
1156 SIOCSIFASYNCMAP = 0x8020697d
1157 SIOCSIFBRDADDR = 0x80206913
1158 SIOCSIFDESCR = 0x80206980
1159 SIOCSIFDSTADDR = 0x8020690e
1160 SIOCSIFFLAGS = 0x80206910
1161 SIOCSIFGATTR = 0x8024698c
1162 SIOCSIFGENERIC = 0x80206939
1163 SIOCSIFLLADDR = 0x8020691f
1164 SIOCSIFMEDIA = 0xc0206935
1165 SIOCSIFMETRIC = 0x80206918
1166 SIOCSIFMTU = 0x8020697f
1167 SIOCSIFNETMASK = 0x80206916
1168 SIOCSIFPHYADDR = 0x80406946
1169 SIOCSIFPRIORITY = 0x8020699b
1170 SIOCSIFRDOMAIN = 0x8020699f
1171 SIOCSIFRTLABEL = 0x80206982
1172 SIOCSIFTIMESLOT = 0x80206985
1173 SIOCSIFXFLAGS = 0x8020699d
1174 SIOCSLIFPHYADDR = 0x8218694a
1175 SIOCSLIFPHYRTABLE = 0x802069a1
1176 SIOCSLIFPHYTTL = 0x802069a8
1177 SIOCSLOWAT = 0x80047302
1178 SIOCSPGRP = 0x80047308
1179 SIOCSSPPPPARAMS = 0x80206993
1180 SIOCSVH = 0xc02069f5
1181 SIOCSVNETID = 0x802069a6
1182 SOCK_DGRAM = 0x2
1183 SOCK_RAW = 0x3
1184 SOCK_RDM = 0x4
1185 SOCK_SEQPACKET = 0x5
1186 SOCK_STREAM = 0x1
1187 SOL_SOCKET = 0xffff
1188 SOMAXCONN = 0x80
1189 SO_ACCEPTCONN = 0x2
1190 SO_BINDANY = 0x1000
1191 SO_BROADCAST = 0x20
1192 SO_DEBUG = 0x1
1193 SO_DONTROUTE = 0x10
1194 SO_ERROR = 0x1007
1195 SO_KEEPALIVE = 0x8
1196 SO_LINGER = 0x80
1197 SO_NETPROC = 0x1020
1198 SO_OOBINLINE = 0x100
1199 SO_PEERCRED = 0x1022
1200 SO_RCVBUF = 0x1002
1201 SO_RCVLOWAT = 0x1004
1202 SO_RCVTIMEO = 0x1006
1203 SO_REUSEADDR = 0x4
1204 SO_REUSEPORT = 0x200
1205 SO_RTABLE = 0x1021
1206 SO_SNDBUF = 0x1001
1207 SO_SNDLOWAT = 0x1003
1208 SO_SNDTIMEO = 0x1005
1209 SO_SPLICE = 0x1023
1210 SO_TIMESTAMP = 0x800
1211 SO_TYPE = 0x1008
1212 SO_USELOOPBACK = 0x40
1213 TCIFLUSH = 0x1
1214 TCIOFLUSH = 0x3
1215 TCOFLUSH = 0x2
1216 TCP_MAXBURST = 0x4
1217 TCP_MAXSEG = 0x2
1218 TCP_MAXWIN = 0xffff
1219 TCP_MAX_SACK = 0x3
1220 TCP_MAX_WINSHIFT = 0xe
1221 TCP_MD5SIG = 0x4
1222 TCP_MSS = 0x200
1223 TCP_NODELAY = 0x1
1224 TCP_NOPUSH = 0x10
1225 TCP_NSTATES = 0xb
1226 TCP_SACK_ENABLE = 0x8
1227 TCSAFLUSH = 0x2
1228 TIOCCBRK = 0x2000747a
1229 TIOCCDTR = 0x20007478
1230 TIOCCONS = 0x80047462
1231 TIOCDRAIN = 0x2000745e
1232 TIOCEXCL = 0x2000740d
1233 TIOCEXT = 0x80047460
1234 TIOCFLAG_CLOCAL = 0x2
1235 TIOCFLAG_CRTSCTS = 0x4
1236 TIOCFLAG_MDMBUF = 0x8
1237 TIOCFLAG_PPS = 0x10
1238 TIOCFLAG_SOFTCAR = 0x1
1239 TIOCFLUSH = 0x80047410
1240 TIOCGETA = 0x402c7413
1241 TIOCGETD = 0x4004741a
1242 TIOCGFLAGS = 0x4004745d
1243 TIOCGPGRP = 0x40047477
1244 TIOCGSID = 0x40047463
1245 TIOCGTSTAMP = 0x400c745b
1246 TIOCGWINSZ = 0x40087468
1247 TIOCMBIC = 0x8004746b
1248 TIOCMBIS = 0x8004746c
1249 TIOCMGET = 0x4004746a
1250 TIOCMODG = 0x4004746a
1251 TIOCMODS = 0x8004746d
1252 TIOCMSET = 0x8004746d
1253 TIOCM_CAR = 0x40
1254 TIOCM_CD = 0x40
1255 TIOCM_CTS = 0x20
1256 TIOCM_DSR = 0x100
1257 TIOCM_DTR = 0x2
1258 TIOCM_LE = 0x1
1259 TIOCM_RI = 0x80
1260 TIOCM_RNG = 0x80
1261 TIOCM_RTS = 0x4
1262 TIOCM_SR = 0x10
1263 TIOCM_ST = 0x8
1264 TIOCNOTTY = 0x20007471
1265 TIOCNXCL = 0x2000740e
1266 TIOCOUTQ = 0x40047473
1267 TIOCPKT = 0x80047470
1268 TIOCPKT_DATA = 0x0
1269 TIOCPKT_DOSTOP = 0x20
1270 TIOCPKT_FLUSHREAD = 0x1
1271 TIOCPKT_FLUSHWRITE = 0x2
1272 TIOCPKT_IOCTL = 0x40
1273 TIOCPKT_NOSTOP = 0x10
1274 TIOCPKT_START = 0x8
1275 TIOCPKT_STOP = 0x4
1276 TIOCREMOTE = 0x80047469
1277 TIOCSBRK = 0x2000747b
1278 TIOCSCTTY = 0x20007461
1279 TIOCSDTR = 0x20007479
1280 TIOCSETA = 0x802c7414
1281 TIOCSETAF = 0x802c7416
1282 TIOCSETAW = 0x802c7415
1283 TIOCSETD = 0x8004741b
1284 TIOCSFLAGS = 0x8004745c
1285 TIOCSIG = 0x8004745f
1286 TIOCSPGRP = 0x80047476
1287 TIOCSTART = 0x2000746e
1288 TIOCSTAT = 0x80047465
1289 TIOCSTI = 0x80017472
1290 TIOCSTOP = 0x2000746f
1291 TIOCSTSTAMP = 0x8008745a
1292 TIOCSWINSZ = 0x80087467
1293 TIOCUCNTL = 0x80047466
1294 TOSTOP = 0x400000
1295 VDISCARD = 0xf
1296 VDSUSP = 0xb
1297 VEOF = 0x0
1298 VEOL = 0x1
1299 VEOL2 = 0x2
1300 VERASE = 0x3
1301 VINTR = 0x8
1302 VKILL = 0x5
1303 VLNEXT = 0xe
1304 VMIN = 0x10
1305 VQUIT = 0x9
1306 VREPRINT = 0x6
1307 VSTART = 0xc
1308 VSTATUS = 0x12
1309 VSTOP = 0xd
1310 VSUSP = 0xa
1311 VTIME = 0x11
1312 VWERASE = 0x4
1313 WALTSIG = 0x4
1314 WCONTINUED = 0x8
1315 WCOREFLAG = 0x80
1316 WNOHANG = 0x1
1317 WSTOPPED = 0x7f
1318 WUNTRACED = 0x2
1319)
1320
1321// Errors
1322const (
1323 E2BIG = syscall.Errno(0x7)
1324 EACCES = syscall.Errno(0xd)
1325 EADDRINUSE = syscall.Errno(0x30)
1326 EADDRNOTAVAIL = syscall.Errno(0x31)
1327 EAFNOSUPPORT = syscall.Errno(0x2f)
1328 EAGAIN = syscall.Errno(0x23)
1329 EALREADY = syscall.Errno(0x25)
1330 EAUTH = syscall.Errno(0x50)
1331 EBADF = syscall.Errno(0x9)
1332 EBADRPC = syscall.Errno(0x48)
1333 EBUSY = syscall.Errno(0x10)
1334 ECANCELED = syscall.Errno(0x58)
1335 ECHILD = syscall.Errno(0xa)
1336 ECONNABORTED = syscall.Errno(0x35)
1337 ECONNREFUSED = syscall.Errno(0x3d)
1338 ECONNRESET = syscall.Errno(0x36)
1339 EDEADLK = syscall.Errno(0xb)
1340 EDESTADDRREQ = syscall.Errno(0x27)
1341 EDOM = syscall.Errno(0x21)
1342 EDQUOT = syscall.Errno(0x45)
1343 EEXIST = syscall.Errno(0x11)
1344 EFAULT = syscall.Errno(0xe)
1345 EFBIG = syscall.Errno(0x1b)
1346 EFTYPE = syscall.Errno(0x4f)
1347 EHOSTDOWN = syscall.Errno(0x40)
1348 EHOSTUNREACH = syscall.Errno(0x41)
1349 EIDRM = syscall.Errno(0x59)
1350 EILSEQ = syscall.Errno(0x54)
1351 EINPROGRESS = syscall.Errno(0x24)
1352 EINTR = syscall.Errno(0x4)
1353 EINVAL = syscall.Errno(0x16)
1354 EIO = syscall.Errno(0x5)
1355 EIPSEC = syscall.Errno(0x52)
1356 EISCONN = syscall.Errno(0x38)
1357 EISDIR = syscall.Errno(0x15)
1358 ELAST = syscall.Errno(0x5b)
1359 ELOOP = syscall.Errno(0x3e)
1360 EMEDIUMTYPE = syscall.Errno(0x56)
1361 EMFILE = syscall.Errno(0x18)
1362 EMLINK = syscall.Errno(0x1f)
1363 EMSGSIZE = syscall.Errno(0x28)
1364 ENAMETOOLONG = syscall.Errno(0x3f)
1365 ENEEDAUTH = syscall.Errno(0x51)
1366 ENETDOWN = syscall.Errno(0x32)
1367 ENETRESET = syscall.Errno(0x34)
1368 ENETUNREACH = syscall.Errno(0x33)
1369 ENFILE = syscall.Errno(0x17)
1370 ENOATTR = syscall.Errno(0x53)
1371 ENOBUFS = syscall.Errno(0x37)
1372 ENODEV = syscall.Errno(0x13)
1373 ENOENT = syscall.Errno(0x2)
1374 ENOEXEC = syscall.Errno(0x8)
1375 ENOLCK = syscall.Errno(0x4d)
1376 ENOMEDIUM = syscall.Errno(0x55)
1377 ENOMEM = syscall.Errno(0xc)
1378 ENOMSG = syscall.Errno(0x5a)
1379 ENOPROTOOPT = syscall.Errno(0x2a)
1380 ENOSPC = syscall.Errno(0x1c)
1381 ENOSYS = syscall.Errno(0x4e)
1382 ENOTBLK = syscall.Errno(0xf)
1383 ENOTCONN = syscall.Errno(0x39)
1384 ENOTDIR = syscall.Errno(0x14)
1385 ENOTEMPTY = syscall.Errno(0x42)
1386 ENOTSOCK = syscall.Errno(0x26)
1387 ENOTSUP = syscall.Errno(0x5b)
1388 ENOTTY = syscall.Errno(0x19)
1389 ENXIO = syscall.Errno(0x6)
1390 EOPNOTSUPP = syscall.Errno(0x2d)
1391 EOVERFLOW = syscall.Errno(0x57)
1392 EPERM = syscall.Errno(0x1)
1393 EPFNOSUPPORT = syscall.Errno(0x2e)
1394 EPIPE = syscall.Errno(0x20)
1395 EPROCLIM = syscall.Errno(0x43)
1396 EPROCUNAVAIL = syscall.Errno(0x4c)
1397 EPROGMISMATCH = syscall.Errno(0x4b)
1398 EPROGUNAVAIL = syscall.Errno(0x4a)
1399 EPROTONOSUPPORT = syscall.Errno(0x2b)
1400 EPROTOTYPE = syscall.Errno(0x29)
1401 ERANGE = syscall.Errno(0x22)
1402 EREMOTE = syscall.Errno(0x47)
1403 EROFS = syscall.Errno(0x1e)
1404 ERPCMISMATCH = syscall.Errno(0x49)
1405 ESHUTDOWN = syscall.Errno(0x3a)
1406 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1407 ESPIPE = syscall.Errno(0x1d)
1408 ESRCH = syscall.Errno(0x3)
1409 ESTALE = syscall.Errno(0x46)
1410 ETIMEDOUT = syscall.Errno(0x3c)
1411 ETOOMANYREFS = syscall.Errno(0x3b)
1412 ETXTBSY = syscall.Errno(0x1a)
1413 EUSERS = syscall.Errno(0x44)
1414 EWOULDBLOCK = syscall.Errno(0x23)
1415 EXDEV = syscall.Errno(0x12)
1416)
1417
1418// Signals
1419const (
1420 SIGABRT = syscall.Signal(0x6)
1421 SIGALRM = syscall.Signal(0xe)
1422 SIGBUS = syscall.Signal(0xa)
1423 SIGCHLD = syscall.Signal(0x14)
1424 SIGCONT = syscall.Signal(0x13)
1425 SIGEMT = syscall.Signal(0x7)
1426 SIGFPE = syscall.Signal(0x8)
1427 SIGHUP = syscall.Signal(0x1)
1428 SIGILL = syscall.Signal(0x4)
1429 SIGINFO = syscall.Signal(0x1d)
1430 SIGINT = syscall.Signal(0x2)
1431 SIGIO = syscall.Signal(0x17)
1432 SIGIOT = syscall.Signal(0x6)
1433 SIGKILL = syscall.Signal(0x9)
1434 SIGPIPE = syscall.Signal(0xd)
1435 SIGPROF = syscall.Signal(0x1b)
1436 SIGQUIT = syscall.Signal(0x3)
1437 SIGSEGV = syscall.Signal(0xb)
1438 SIGSTOP = syscall.Signal(0x11)
1439 SIGSYS = syscall.Signal(0xc)
1440 SIGTERM = syscall.Signal(0xf)
1441 SIGTHR = syscall.Signal(0x20)
1442 SIGTRAP = syscall.Signal(0x5)
1443 SIGTSTP = syscall.Signal(0x12)
1444 SIGTTIN = syscall.Signal(0x15)
1445 SIGTTOU = syscall.Signal(0x16)
1446 SIGURG = syscall.Signal(0x10)
1447 SIGUSR1 = syscall.Signal(0x1e)
1448 SIGUSR2 = syscall.Signal(0x1f)
1449 SIGVTALRM = syscall.Signal(0x1a)
1450 SIGWINCH = syscall.Signal(0x1c)
1451 SIGXCPU = syscall.Signal(0x18)
1452 SIGXFSZ = syscall.Signal(0x19)
1453)
1454
1455// Error table
1456var errors = [...]string{
1457 1: "operation not permitted",
1458 2: "no such file or directory",
1459 3: "no such process",
1460 4: "interrupted system call",
1461 5: "input/output error",
1462 6: "device not configured",
1463 7: "argument list too long",
1464 8: "exec format error",
1465 9: "bad file descriptor",
1466 10: "no child processes",
1467 11: "resource deadlock avoided",
1468 12: "cannot allocate memory",
1469 13: "permission denied",
1470 14: "bad address",
1471 15: "block device required",
1472 16: "device busy",
1473 17: "file exists",
1474 18: "cross-device link",
1475 19: "operation not supported by device",
1476 20: "not a directory",
1477 21: "is a directory",
1478 22: "invalid argument",
1479 23: "too many open files in system",
1480 24: "too many open files",
1481 25: "inappropriate ioctl for device",
1482 26: "text file busy",
1483 27: "file too large",
1484 28: "no space left on device",
1485 29: "illegal seek",
1486 30: "read-only file system",
1487 31: "too many links",
1488 32: "broken pipe",
1489 33: "numerical argument out of domain",
1490 34: "result too large",
1491 35: "resource temporarily unavailable",
1492 36: "operation now in progress",
1493 37: "operation already in progress",
1494 38: "socket operation on non-socket",
1495 39: "destination address required",
1496 40: "message too long",
1497 41: "protocol wrong type for socket",
1498 42: "protocol not available",
1499 43: "protocol not supported",
1500 44: "socket type not supported",
1501 45: "operation not supported",
1502 46: "protocol family not supported",
1503 47: "address family not supported by protocol family",
1504 48: "address already in use",
1505 49: "can't assign requested address",
1506 50: "network is down",
1507 51: "network is unreachable",
1508 52: "network dropped connection on reset",
1509 53: "software caused connection abort",
1510 54: "connection reset by peer",
1511 55: "no buffer space available",
1512 56: "socket is already connected",
1513 57: "socket is not connected",
1514 58: "can't send after socket shutdown",
1515 59: "too many references: can't splice",
1516 60: "connection timed out",
1517 61: "connection refused",
1518 62: "too many levels of symbolic links",
1519 63: "file name too long",
1520 64: "host is down",
1521 65: "no route to host",
1522 66: "directory not empty",
1523 67: "too many processes",
1524 68: "too many users",
1525 69: "disc quota exceeded",
1526 70: "stale NFS file handle",
1527 71: "too many levels of remote in path",
1528 72: "RPC struct is bad",
1529 73: "RPC version wrong",
1530 74: "RPC prog. not avail",
1531 75: "program version wrong",
1532 76: "bad procedure for program",
1533 77: "no locks available",
1534 78: "function not implemented",
1535 79: "inappropriate file type or format",
1536 80: "authentication error",
1537 81: "need authenticator",
1538 82: "IPsec processing failure",
1539 83: "attribute not found",
1540 84: "illegal byte sequence",
1541 85: "no medium found",
1542 86: "wrong medium type",
1543 87: "value too large to be stored in data type",
1544 88: "operation canceled",
1545 89: "identifier removed",
1546 90: "no message of desired type",
1547 91: "not supported",
1548}
1549
1550// Signal table
1551var signals = [...]string{
1552 1: "hangup",
1553 2: "interrupt",
1554 3: "quit",
1555 4: "illegal instruction",
1556 5: "trace/BPT trap",
1557 6: "abort trap",
1558 7: "EMT trap",
1559 8: "floating point exception",
1560 9: "killed",
1561 10: "bus error",
1562 11: "segmentation fault",
1563 12: "bad system call",
1564 13: "broken pipe",
1565 14: "alarm clock",
1566 15: "terminated",
1567 16: "urgent I/O condition",
1568 17: "stopped (signal)",
1569 18: "stopped",
1570 19: "continued",
1571 20: "child exited",
1572 21: "stopped (tty input)",
1573 22: "stopped (tty output)",
1574 23: "I/O possible",
1575 24: "cputime limit exceeded",
1576 25: "filesize limit exceeded",
1577 26: "virtual timer expired",
1578 27: "profiling timer expired",
1579 28: "window size changes",
1580 29: "information request",
1581 30: "user defined signal 1",
1582 31: "user defined signal 2",
1583 32: "thread AST",
1584}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_openbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
deleted file mode 100644
index 1758ecc..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
+++ /dev/null
@@ -1,1583 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,openbsd
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_BLUETOOTH = 0x20
16 AF_CCITT = 0xa
17 AF_CHAOS = 0x5
18 AF_CNT = 0x15
19 AF_COIP = 0x14
20 AF_DATAKIT = 0x9
21 AF_DECnet = 0xc
22 AF_DLI = 0xd
23 AF_E164 = 0x1a
24 AF_ECMA = 0x8
25 AF_ENCAP = 0x1c
26 AF_HYLINK = 0xf
27 AF_IMPLINK = 0x3
28 AF_INET = 0x2
29 AF_INET6 = 0x18
30 AF_IPX = 0x17
31 AF_ISDN = 0x1a
32 AF_ISO = 0x7
33 AF_KEY = 0x1e
34 AF_LAT = 0xe
35 AF_LINK = 0x12
36 AF_LOCAL = 0x1
37 AF_MAX = 0x24
38 AF_MPLS = 0x21
39 AF_NATM = 0x1b
40 AF_NS = 0x6
41 AF_OSI = 0x7
42 AF_PUP = 0x4
43 AF_ROUTE = 0x11
44 AF_SIP = 0x1d
45 AF_SNA = 0xb
46 AF_UNIX = 0x1
47 AF_UNSPEC = 0x0
48 ARPHRD_ETHER = 0x1
49 ARPHRD_FRELAY = 0xf
50 ARPHRD_IEEE1394 = 0x18
51 ARPHRD_IEEE802 = 0x6
52 B0 = 0x0
53 B110 = 0x6e
54 B115200 = 0x1c200
55 B1200 = 0x4b0
56 B134 = 0x86
57 B14400 = 0x3840
58 B150 = 0x96
59 B1800 = 0x708
60 B19200 = 0x4b00
61 B200 = 0xc8
62 B230400 = 0x38400
63 B2400 = 0x960
64 B28800 = 0x7080
65 B300 = 0x12c
66 B38400 = 0x9600
67 B4800 = 0x12c0
68 B50 = 0x32
69 B57600 = 0xe100
70 B600 = 0x258
71 B7200 = 0x1c20
72 B75 = 0x4b
73 B76800 = 0x12c00
74 B9600 = 0x2580
75 BIOCFLUSH = 0x20004268
76 BIOCGBLEN = 0x40044266
77 BIOCGDIRFILT = 0x4004427c
78 BIOCGDLT = 0x4004426a
79 BIOCGDLTLIST = 0xc010427b
80 BIOCGETIF = 0x4020426b
81 BIOCGFILDROP = 0x40044278
82 BIOCGHDRCMPLT = 0x40044274
83 BIOCGRSIG = 0x40044273
84 BIOCGRTIMEOUT = 0x4010426e
85 BIOCGSTATS = 0x4008426f
86 BIOCIMMEDIATE = 0x80044270
87 BIOCLOCK = 0x20004276
88 BIOCPROMISC = 0x20004269
89 BIOCSBLEN = 0xc0044266
90 BIOCSDIRFILT = 0x8004427d
91 BIOCSDLT = 0x8004427a
92 BIOCSETF = 0x80104267
93 BIOCSETIF = 0x8020426c
94 BIOCSETWF = 0x80104277
95 BIOCSFILDROP = 0x80044279
96 BIOCSHDRCMPLT = 0x80044275
97 BIOCSRSIG = 0x80044272
98 BIOCSRTIMEOUT = 0x8010426d
99 BIOCVERSION = 0x40044271
100 BPF_A = 0x10
101 BPF_ABS = 0x20
102 BPF_ADD = 0x0
103 BPF_ALIGNMENT = 0x4
104 BPF_ALU = 0x4
105 BPF_AND = 0x50
106 BPF_B = 0x10
107 BPF_DIRECTION_IN = 0x1
108 BPF_DIRECTION_OUT = 0x2
109 BPF_DIV = 0x30
110 BPF_H = 0x8
111 BPF_IMM = 0x0
112 BPF_IND = 0x40
113 BPF_JA = 0x0
114 BPF_JEQ = 0x10
115 BPF_JGE = 0x30
116 BPF_JGT = 0x20
117 BPF_JMP = 0x5
118 BPF_JSET = 0x40
119 BPF_K = 0x0
120 BPF_LD = 0x0
121 BPF_LDX = 0x1
122 BPF_LEN = 0x80
123 BPF_LSH = 0x60
124 BPF_MAJOR_VERSION = 0x1
125 BPF_MAXBUFSIZE = 0x200000
126 BPF_MAXINSNS = 0x200
127 BPF_MEM = 0x60
128 BPF_MEMWORDS = 0x10
129 BPF_MINBUFSIZE = 0x20
130 BPF_MINOR_VERSION = 0x1
131 BPF_MISC = 0x7
132 BPF_MSH = 0xa0
133 BPF_MUL = 0x20
134 BPF_NEG = 0x80
135 BPF_OR = 0x40
136 BPF_RELEASE = 0x30bb6
137 BPF_RET = 0x6
138 BPF_RSH = 0x70
139 BPF_ST = 0x2
140 BPF_STX = 0x3
141 BPF_SUB = 0x10
142 BPF_TAX = 0x0
143 BPF_TXA = 0x80
144 BPF_W = 0x0
145 BPF_X = 0x8
146 BRKINT = 0x2
147 CFLUSH = 0xf
148 CLOCAL = 0x8000
149 CREAD = 0x800
150 CS5 = 0x0
151 CS6 = 0x100
152 CS7 = 0x200
153 CS8 = 0x300
154 CSIZE = 0x300
155 CSTART = 0x11
156 CSTATUS = 0xff
157 CSTOP = 0x13
158 CSTOPB = 0x400
159 CSUSP = 0x1a
160 CTL_MAXNAME = 0xc
161 CTL_NET = 0x4
162 DIOCOSFPFLUSH = 0x2000444e
163 DLT_ARCNET = 0x7
164 DLT_ATM_RFC1483 = 0xb
165 DLT_AX25 = 0x3
166 DLT_CHAOS = 0x5
167 DLT_C_HDLC = 0x68
168 DLT_EN10MB = 0x1
169 DLT_EN3MB = 0x2
170 DLT_ENC = 0xd
171 DLT_FDDI = 0xa
172 DLT_IEEE802 = 0x6
173 DLT_IEEE802_11 = 0x69
174 DLT_IEEE802_11_RADIO = 0x7f
175 DLT_LOOP = 0xc
176 DLT_MPLS = 0xdb
177 DLT_NULL = 0x0
178 DLT_PFLOG = 0x75
179 DLT_PFSYNC = 0x12
180 DLT_PPP = 0x9
181 DLT_PPP_BSDOS = 0x10
182 DLT_PPP_ETHER = 0x33
183 DLT_PPP_SERIAL = 0x32
184 DLT_PRONET = 0x4
185 DLT_RAW = 0xe
186 DLT_SLIP = 0x8
187 DLT_SLIP_BSDOS = 0xf
188 DT_BLK = 0x6
189 DT_CHR = 0x2
190 DT_DIR = 0x4
191 DT_FIFO = 0x1
192 DT_LNK = 0xa
193 DT_REG = 0x8
194 DT_SOCK = 0xc
195 DT_UNKNOWN = 0x0
196 ECHO = 0x8
197 ECHOCTL = 0x40
198 ECHOE = 0x2
199 ECHOK = 0x4
200 ECHOKE = 0x1
201 ECHONL = 0x10
202 ECHOPRT = 0x20
203 EMT_TAGOVF = 0x1
204 EMUL_ENABLED = 0x1
205 EMUL_NATIVE = 0x2
206 ENDRUNDISC = 0x9
207 ETHERMIN = 0x2e
208 ETHERMTU = 0x5dc
209 ETHERTYPE_8023 = 0x4
210 ETHERTYPE_AARP = 0x80f3
211 ETHERTYPE_ACCTON = 0x8390
212 ETHERTYPE_AEONIC = 0x8036
213 ETHERTYPE_ALPHA = 0x814a
214 ETHERTYPE_AMBER = 0x6008
215 ETHERTYPE_AMOEBA = 0x8145
216 ETHERTYPE_AOE = 0x88a2
217 ETHERTYPE_APOLLO = 0x80f7
218 ETHERTYPE_APOLLODOMAIN = 0x8019
219 ETHERTYPE_APPLETALK = 0x809b
220 ETHERTYPE_APPLITEK = 0x80c7
221 ETHERTYPE_ARGONAUT = 0x803a
222 ETHERTYPE_ARP = 0x806
223 ETHERTYPE_AT = 0x809b
224 ETHERTYPE_ATALK = 0x809b
225 ETHERTYPE_ATOMIC = 0x86df
226 ETHERTYPE_ATT = 0x8069
227 ETHERTYPE_ATTSTANFORD = 0x8008
228 ETHERTYPE_AUTOPHON = 0x806a
229 ETHERTYPE_AXIS = 0x8856
230 ETHERTYPE_BCLOOP = 0x9003
231 ETHERTYPE_BOFL = 0x8102
232 ETHERTYPE_CABLETRON = 0x7034
233 ETHERTYPE_CHAOS = 0x804
234 ETHERTYPE_COMDESIGN = 0x806c
235 ETHERTYPE_COMPUGRAPHIC = 0x806d
236 ETHERTYPE_COUNTERPOINT = 0x8062
237 ETHERTYPE_CRONUS = 0x8004
238 ETHERTYPE_CRONUSVLN = 0x8003
239 ETHERTYPE_DCA = 0x1234
240 ETHERTYPE_DDE = 0x807b
241 ETHERTYPE_DEBNI = 0xaaaa
242 ETHERTYPE_DECAM = 0x8048
243 ETHERTYPE_DECCUST = 0x6006
244 ETHERTYPE_DECDIAG = 0x6005
245 ETHERTYPE_DECDNS = 0x803c
246 ETHERTYPE_DECDTS = 0x803e
247 ETHERTYPE_DECEXPER = 0x6000
248 ETHERTYPE_DECLAST = 0x8041
249 ETHERTYPE_DECLTM = 0x803f
250 ETHERTYPE_DECMUMPS = 0x6009
251 ETHERTYPE_DECNETBIOS = 0x8040
252 ETHERTYPE_DELTACON = 0x86de
253 ETHERTYPE_DIDDLE = 0x4321
254 ETHERTYPE_DLOG1 = 0x660
255 ETHERTYPE_DLOG2 = 0x661
256 ETHERTYPE_DN = 0x6003
257 ETHERTYPE_DOGFIGHT = 0x1989
258 ETHERTYPE_DSMD = 0x8039
259 ETHERTYPE_ECMA = 0x803
260 ETHERTYPE_ENCRYPT = 0x803d
261 ETHERTYPE_ES = 0x805d
262 ETHERTYPE_EXCELAN = 0x8010
263 ETHERTYPE_EXPERDATA = 0x8049
264 ETHERTYPE_FLIP = 0x8146
265 ETHERTYPE_FLOWCONTROL = 0x8808
266 ETHERTYPE_FRARP = 0x808
267 ETHERTYPE_GENDYN = 0x8068
268 ETHERTYPE_HAYES = 0x8130
269 ETHERTYPE_HIPPI_FP = 0x8180
270 ETHERTYPE_HITACHI = 0x8820
271 ETHERTYPE_HP = 0x8005
272 ETHERTYPE_IEEEPUP = 0xa00
273 ETHERTYPE_IEEEPUPAT = 0xa01
274 ETHERTYPE_IMLBL = 0x4c42
275 ETHERTYPE_IMLBLDIAG = 0x424c
276 ETHERTYPE_IP = 0x800
277 ETHERTYPE_IPAS = 0x876c
278 ETHERTYPE_IPV6 = 0x86dd
279 ETHERTYPE_IPX = 0x8137
280 ETHERTYPE_IPXNEW = 0x8037
281 ETHERTYPE_KALPANA = 0x8582
282 ETHERTYPE_LANBRIDGE = 0x8038
283 ETHERTYPE_LANPROBE = 0x8888
284 ETHERTYPE_LAT = 0x6004
285 ETHERTYPE_LBACK = 0x9000
286 ETHERTYPE_LITTLE = 0x8060
287 ETHERTYPE_LLDP = 0x88cc
288 ETHERTYPE_LOGICRAFT = 0x8148
289 ETHERTYPE_LOOPBACK = 0x9000
290 ETHERTYPE_MATRA = 0x807a
291 ETHERTYPE_MAX = 0xffff
292 ETHERTYPE_MERIT = 0x807c
293 ETHERTYPE_MICP = 0x873a
294 ETHERTYPE_MOPDL = 0x6001
295 ETHERTYPE_MOPRC = 0x6002
296 ETHERTYPE_MOTOROLA = 0x818d
297 ETHERTYPE_MPLS = 0x8847
298 ETHERTYPE_MPLS_MCAST = 0x8848
299 ETHERTYPE_MUMPS = 0x813f
300 ETHERTYPE_NBPCC = 0x3c04
301 ETHERTYPE_NBPCLAIM = 0x3c09
302 ETHERTYPE_NBPCLREQ = 0x3c05
303 ETHERTYPE_NBPCLRSP = 0x3c06
304 ETHERTYPE_NBPCREQ = 0x3c02
305 ETHERTYPE_NBPCRSP = 0x3c03
306 ETHERTYPE_NBPDG = 0x3c07
307 ETHERTYPE_NBPDGB = 0x3c08
308 ETHERTYPE_NBPDLTE = 0x3c0a
309 ETHERTYPE_NBPRAR = 0x3c0c
310 ETHERTYPE_NBPRAS = 0x3c0b
311 ETHERTYPE_NBPRST = 0x3c0d
312 ETHERTYPE_NBPSCD = 0x3c01
313 ETHERTYPE_NBPVCD = 0x3c00
314 ETHERTYPE_NBS = 0x802
315 ETHERTYPE_NCD = 0x8149
316 ETHERTYPE_NESTAR = 0x8006
317 ETHERTYPE_NETBEUI = 0x8191
318 ETHERTYPE_NOVELL = 0x8138
319 ETHERTYPE_NS = 0x600
320 ETHERTYPE_NSAT = 0x601
321 ETHERTYPE_NSCOMPAT = 0x807
322 ETHERTYPE_NTRAILER = 0x10
323 ETHERTYPE_OS9 = 0x7007
324 ETHERTYPE_OS9NET = 0x7009
325 ETHERTYPE_PACER = 0x80c6
326 ETHERTYPE_PAE = 0x888e
327 ETHERTYPE_PCS = 0x4242
328 ETHERTYPE_PLANNING = 0x8044
329 ETHERTYPE_PPP = 0x880b
330 ETHERTYPE_PPPOE = 0x8864
331 ETHERTYPE_PPPOEDISC = 0x8863
332 ETHERTYPE_PRIMENTS = 0x7031
333 ETHERTYPE_PUP = 0x200
334 ETHERTYPE_PUPAT = 0x200
335 ETHERTYPE_QINQ = 0x88a8
336 ETHERTYPE_RACAL = 0x7030
337 ETHERTYPE_RATIONAL = 0x8150
338 ETHERTYPE_RAWFR = 0x6559
339 ETHERTYPE_RCL = 0x1995
340 ETHERTYPE_RDP = 0x8739
341 ETHERTYPE_RETIX = 0x80f2
342 ETHERTYPE_REVARP = 0x8035
343 ETHERTYPE_SCA = 0x6007
344 ETHERTYPE_SECTRA = 0x86db
345 ETHERTYPE_SECUREDATA = 0x876d
346 ETHERTYPE_SGITW = 0x817e
347 ETHERTYPE_SG_BOUNCE = 0x8016
348 ETHERTYPE_SG_DIAG = 0x8013
349 ETHERTYPE_SG_NETGAMES = 0x8014
350 ETHERTYPE_SG_RESV = 0x8015
351 ETHERTYPE_SIMNET = 0x5208
352 ETHERTYPE_SLOW = 0x8809
353 ETHERTYPE_SNA = 0x80d5
354 ETHERTYPE_SNMP = 0x814c
355 ETHERTYPE_SONIX = 0xfaf5
356 ETHERTYPE_SPIDER = 0x809f
357 ETHERTYPE_SPRITE = 0x500
358 ETHERTYPE_STP = 0x8181
359 ETHERTYPE_TALARIS = 0x812b
360 ETHERTYPE_TALARISMC = 0x852b
361 ETHERTYPE_TCPCOMP = 0x876b
362 ETHERTYPE_TCPSM = 0x9002
363 ETHERTYPE_TEC = 0x814f
364 ETHERTYPE_TIGAN = 0x802f
365 ETHERTYPE_TRAIL = 0x1000
366 ETHERTYPE_TRANSETHER = 0x6558
367 ETHERTYPE_TYMSHARE = 0x802e
368 ETHERTYPE_UBBST = 0x7005
369 ETHERTYPE_UBDEBUG = 0x900
370 ETHERTYPE_UBDIAGLOOP = 0x7002
371 ETHERTYPE_UBDL = 0x7000
372 ETHERTYPE_UBNIU = 0x7001
373 ETHERTYPE_UBNMC = 0x7003
374 ETHERTYPE_VALID = 0x1600
375 ETHERTYPE_VARIAN = 0x80dd
376 ETHERTYPE_VAXELN = 0x803b
377 ETHERTYPE_VEECO = 0x8067
378 ETHERTYPE_VEXP = 0x805b
379 ETHERTYPE_VGLAB = 0x8131
380 ETHERTYPE_VINES = 0xbad
381 ETHERTYPE_VINESECHO = 0xbaf
382 ETHERTYPE_VINESLOOP = 0xbae
383 ETHERTYPE_VITAL = 0xff00
384 ETHERTYPE_VLAN = 0x8100
385 ETHERTYPE_VLTLMAN = 0x8080
386 ETHERTYPE_VPROD = 0x805c
387 ETHERTYPE_VURESERVED = 0x8147
388 ETHERTYPE_WATERLOO = 0x8130
389 ETHERTYPE_WELLFLEET = 0x8103
390 ETHERTYPE_X25 = 0x805
391 ETHERTYPE_X75 = 0x801
392 ETHERTYPE_XNSSM = 0x9001
393 ETHERTYPE_XTP = 0x817d
394 ETHER_ADDR_LEN = 0x6
395 ETHER_ALIGN = 0x2
396 ETHER_CRC_LEN = 0x4
397 ETHER_CRC_POLY_BE = 0x4c11db6
398 ETHER_CRC_POLY_LE = 0xedb88320
399 ETHER_HDR_LEN = 0xe
400 ETHER_MAX_DIX_LEN = 0x600
401 ETHER_MAX_LEN = 0x5ee
402 ETHER_MIN_LEN = 0x40
403 ETHER_TYPE_LEN = 0x2
404 ETHER_VLAN_ENCAP_LEN = 0x4
405 EVFILT_AIO = -0x3
406 EVFILT_PROC = -0x5
407 EVFILT_READ = -0x1
408 EVFILT_SIGNAL = -0x6
409 EVFILT_SYSCOUNT = 0x7
410 EVFILT_TIMER = -0x7
411 EVFILT_VNODE = -0x4
412 EVFILT_WRITE = -0x2
413 EV_ADD = 0x1
414 EV_CLEAR = 0x20
415 EV_DELETE = 0x2
416 EV_DISABLE = 0x8
417 EV_ENABLE = 0x4
418 EV_EOF = 0x8000
419 EV_ERROR = 0x4000
420 EV_FLAG1 = 0x2000
421 EV_ONESHOT = 0x10
422 EV_SYSFLAGS = 0xf000
423 EXTA = 0x4b00
424 EXTB = 0x9600
425 EXTPROC = 0x800
426 FD_CLOEXEC = 0x1
427 FD_SETSIZE = 0x400
428 FLUSHO = 0x800000
429 F_DUPFD = 0x0
430 F_DUPFD_CLOEXEC = 0xa
431 F_GETFD = 0x1
432 F_GETFL = 0x3
433 F_GETLK = 0x7
434 F_GETOWN = 0x5
435 F_OK = 0x0
436 F_RDLCK = 0x1
437 F_SETFD = 0x2
438 F_SETFL = 0x4
439 F_SETLK = 0x8
440 F_SETLKW = 0x9
441 F_SETOWN = 0x6
442 F_UNLCK = 0x2
443 F_WRLCK = 0x3
444 HUPCL = 0x4000
445 ICANON = 0x100
446 ICMP6_FILTER = 0x12
447 ICRNL = 0x100
448 IEXTEN = 0x400
449 IFAN_ARRIVAL = 0x0
450 IFAN_DEPARTURE = 0x1
451 IFA_ROUTE = 0x1
452 IFF_ALLMULTI = 0x200
453 IFF_BROADCAST = 0x2
454 IFF_CANTCHANGE = 0x8e52
455 IFF_DEBUG = 0x4
456 IFF_LINK0 = 0x1000
457 IFF_LINK1 = 0x2000
458 IFF_LINK2 = 0x4000
459 IFF_LOOPBACK = 0x8
460 IFF_MULTICAST = 0x8000
461 IFF_NOARP = 0x80
462 IFF_NOTRAILERS = 0x20
463 IFF_OACTIVE = 0x400
464 IFF_POINTOPOINT = 0x10
465 IFF_PROMISC = 0x100
466 IFF_RUNNING = 0x40
467 IFF_SIMPLEX = 0x800
468 IFF_UP = 0x1
469 IFNAMSIZ = 0x10
470 IFT_1822 = 0x2
471 IFT_A12MPPSWITCH = 0x82
472 IFT_AAL2 = 0xbb
473 IFT_AAL5 = 0x31
474 IFT_ADSL = 0x5e
475 IFT_AFLANE8023 = 0x3b
476 IFT_AFLANE8025 = 0x3c
477 IFT_ARAP = 0x58
478 IFT_ARCNET = 0x23
479 IFT_ARCNETPLUS = 0x24
480 IFT_ASYNC = 0x54
481 IFT_ATM = 0x25
482 IFT_ATMDXI = 0x69
483 IFT_ATMFUNI = 0x6a
484 IFT_ATMIMA = 0x6b
485 IFT_ATMLOGICAL = 0x50
486 IFT_ATMRADIO = 0xbd
487 IFT_ATMSUBINTERFACE = 0x86
488 IFT_ATMVCIENDPT = 0xc2
489 IFT_ATMVIRTUAL = 0x95
490 IFT_BGPPOLICYACCOUNTING = 0xa2
491 IFT_BLUETOOTH = 0xf8
492 IFT_BRIDGE = 0xd1
493 IFT_BSC = 0x53
494 IFT_CARP = 0xf7
495 IFT_CCTEMUL = 0x3d
496 IFT_CEPT = 0x13
497 IFT_CES = 0x85
498 IFT_CHANNEL = 0x46
499 IFT_CNR = 0x55
500 IFT_COFFEE = 0x84
501 IFT_COMPOSITELINK = 0x9b
502 IFT_DCN = 0x8d
503 IFT_DIGITALPOWERLINE = 0x8a
504 IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
505 IFT_DLSW = 0x4a
506 IFT_DOCSCABLEDOWNSTREAM = 0x80
507 IFT_DOCSCABLEMACLAYER = 0x7f
508 IFT_DOCSCABLEUPSTREAM = 0x81
509 IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd
510 IFT_DS0 = 0x51
511 IFT_DS0BUNDLE = 0x52
512 IFT_DS1FDL = 0xaa
513 IFT_DS3 = 0x1e
514 IFT_DTM = 0x8c
515 IFT_DUMMY = 0xf1
516 IFT_DVBASILN = 0xac
517 IFT_DVBASIOUT = 0xad
518 IFT_DVBRCCDOWNSTREAM = 0x93
519 IFT_DVBRCCMACLAYER = 0x92
520 IFT_DVBRCCUPSTREAM = 0x94
521 IFT_ECONET = 0xce
522 IFT_ENC = 0xf4
523 IFT_EON = 0x19
524 IFT_EPLRS = 0x57
525 IFT_ESCON = 0x49
526 IFT_ETHER = 0x6
527 IFT_FAITH = 0xf3
528 IFT_FAST = 0x7d
529 IFT_FASTETHER = 0x3e
530 IFT_FASTETHERFX = 0x45
531 IFT_FDDI = 0xf
532 IFT_FIBRECHANNEL = 0x38
533 IFT_FRAMERELAYINTERCONNECT = 0x3a
534 IFT_FRAMERELAYMPI = 0x5c
535 IFT_FRDLCIENDPT = 0xc1
536 IFT_FRELAY = 0x20
537 IFT_FRELAYDCE = 0x2c
538 IFT_FRF16MFRBUNDLE = 0xa3
539 IFT_FRFORWARD = 0x9e
540 IFT_G703AT2MB = 0x43
541 IFT_G703AT64K = 0x42
542 IFT_GIF = 0xf0
543 IFT_GIGABITETHERNET = 0x75
544 IFT_GR303IDT = 0xb2
545 IFT_GR303RDT = 0xb1
546 IFT_H323GATEKEEPER = 0xa4
547 IFT_H323PROXY = 0xa5
548 IFT_HDH1822 = 0x3
549 IFT_HDLC = 0x76
550 IFT_HDSL2 = 0xa8
551 IFT_HIPERLAN2 = 0xb7
552 IFT_HIPPI = 0x2f
553 IFT_HIPPIINTERFACE = 0x39
554 IFT_HOSTPAD = 0x5a
555 IFT_HSSI = 0x2e
556 IFT_HY = 0xe
557 IFT_IBM370PARCHAN = 0x48
558 IFT_IDSL = 0x9a
559 IFT_IEEE1394 = 0x90
560 IFT_IEEE80211 = 0x47
561 IFT_IEEE80212 = 0x37
562 IFT_IEEE8023ADLAG = 0xa1
563 IFT_IFGSN = 0x91
564 IFT_IMT = 0xbe
565 IFT_INFINIBAND = 0xc7
566 IFT_INTERLEAVE = 0x7c
567 IFT_IP = 0x7e
568 IFT_IPFORWARD = 0x8e
569 IFT_IPOVERATM = 0x72
570 IFT_IPOVERCDLC = 0x6d
571 IFT_IPOVERCLAW = 0x6e
572 IFT_IPSWITCH = 0x4e
573 IFT_ISDN = 0x3f
574 IFT_ISDNBASIC = 0x14
575 IFT_ISDNPRIMARY = 0x15
576 IFT_ISDNS = 0x4b
577 IFT_ISDNU = 0x4c
578 IFT_ISO88022LLC = 0x29
579 IFT_ISO88023 = 0x7
580 IFT_ISO88024 = 0x8
581 IFT_ISO88025 = 0x9
582 IFT_ISO88025CRFPINT = 0x62
583 IFT_ISO88025DTR = 0x56
584 IFT_ISO88025FIBER = 0x73
585 IFT_ISO88026 = 0xa
586 IFT_ISUP = 0xb3
587 IFT_L2VLAN = 0x87
588 IFT_L3IPVLAN = 0x88
589 IFT_L3IPXVLAN = 0x89
590 IFT_LAPB = 0x10
591 IFT_LAPD = 0x4d
592 IFT_LAPF = 0x77
593 IFT_LINEGROUP = 0xd2
594 IFT_LOCALTALK = 0x2a
595 IFT_LOOP = 0x18
596 IFT_MEDIAMAILOVERIP = 0x8b
597 IFT_MFSIGLINK = 0xa7
598 IFT_MIOX25 = 0x26
599 IFT_MODEM = 0x30
600 IFT_MPC = 0x71
601 IFT_MPLS = 0xa6
602 IFT_MPLSTUNNEL = 0x96
603 IFT_MSDSL = 0x8f
604 IFT_MVL = 0xbf
605 IFT_MYRINET = 0x63
606 IFT_NFAS = 0xaf
607 IFT_NSIP = 0x1b
608 IFT_OPTICALCHANNEL = 0xc3
609 IFT_OPTICALTRANSPORT = 0xc4
610 IFT_OTHER = 0x1
611 IFT_P10 = 0xc
612 IFT_P80 = 0xd
613 IFT_PARA = 0x22
614 IFT_PFLOG = 0xf5
615 IFT_PFLOW = 0xf9
616 IFT_PFSYNC = 0xf6
617 IFT_PLC = 0xae
618 IFT_PON155 = 0xcf
619 IFT_PON622 = 0xd0
620 IFT_POS = 0xab
621 IFT_PPP = 0x17
622 IFT_PPPMULTILINKBUNDLE = 0x6c
623 IFT_PROPATM = 0xc5
624 IFT_PROPBWAP2MP = 0xb8
625 IFT_PROPCNLS = 0x59
626 IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
627 IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
628 IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
629 IFT_PROPMUX = 0x36
630 IFT_PROPVIRTUAL = 0x35
631 IFT_PROPWIRELESSP2P = 0x9d
632 IFT_PTPSERIAL = 0x16
633 IFT_PVC = 0xf2
634 IFT_Q2931 = 0xc9
635 IFT_QLLC = 0x44
636 IFT_RADIOMAC = 0xbc
637 IFT_RADSL = 0x5f
638 IFT_REACHDSL = 0xc0
639 IFT_RFC1483 = 0x9f
640 IFT_RS232 = 0x21
641 IFT_RSRB = 0x4f
642 IFT_SDLC = 0x11
643 IFT_SDSL = 0x60
644 IFT_SHDSL = 0xa9
645 IFT_SIP = 0x1f
646 IFT_SIPSIG = 0xcc
647 IFT_SIPTG = 0xcb
648 IFT_SLIP = 0x1c
649 IFT_SMDSDXI = 0x2b
650 IFT_SMDSICIP = 0x34
651 IFT_SONET = 0x27
652 IFT_SONETOVERHEADCHANNEL = 0xb9
653 IFT_SONETPATH = 0x32
654 IFT_SONETVT = 0x33
655 IFT_SRP = 0x97
656 IFT_SS7SIGLINK = 0x9c
657 IFT_STACKTOSTACK = 0x6f
658 IFT_STARLAN = 0xb
659 IFT_T1 = 0x12
660 IFT_TDLC = 0x74
661 IFT_TELINK = 0xc8
662 IFT_TERMPAD = 0x5b
663 IFT_TR008 = 0xb0
664 IFT_TRANSPHDLC = 0x7b
665 IFT_TUNNEL = 0x83
666 IFT_ULTRA = 0x1d
667 IFT_USB = 0xa0
668 IFT_V11 = 0x40
669 IFT_V35 = 0x2d
670 IFT_V36 = 0x41
671 IFT_V37 = 0x78
672 IFT_VDSL = 0x61
673 IFT_VIRTUALIPADDRESS = 0x70
674 IFT_VIRTUALTG = 0xca
675 IFT_VOICEDID = 0xd5
676 IFT_VOICEEM = 0x64
677 IFT_VOICEEMFGD = 0xd3
678 IFT_VOICEENCAP = 0x67
679 IFT_VOICEFGDEANA = 0xd4
680 IFT_VOICEFXO = 0x65
681 IFT_VOICEFXS = 0x66
682 IFT_VOICEOVERATM = 0x98
683 IFT_VOICEOVERCABLE = 0xc6
684 IFT_VOICEOVERFRAMERELAY = 0x99
685 IFT_VOICEOVERIP = 0x68
686 IFT_X213 = 0x5d
687 IFT_X25 = 0x5
688 IFT_X25DDN = 0x4
689 IFT_X25HUNTGROUP = 0x7a
690 IFT_X25MLP = 0x79
691 IFT_X25PLE = 0x28
692 IFT_XETHER = 0x1a
693 IGNBRK = 0x1
694 IGNCR = 0x80
695 IGNPAR = 0x4
696 IMAXBEL = 0x2000
697 INLCR = 0x40
698 INPCK = 0x10
699 IN_CLASSA_HOST = 0xffffff
700 IN_CLASSA_MAX = 0x80
701 IN_CLASSA_NET = 0xff000000
702 IN_CLASSA_NSHIFT = 0x18
703 IN_CLASSB_HOST = 0xffff
704 IN_CLASSB_MAX = 0x10000
705 IN_CLASSB_NET = 0xffff0000
706 IN_CLASSB_NSHIFT = 0x10
707 IN_CLASSC_HOST = 0xff
708 IN_CLASSC_NET = 0xffffff00
709 IN_CLASSC_NSHIFT = 0x8
710 IN_CLASSD_HOST = 0xfffffff
711 IN_CLASSD_NET = 0xf0000000
712 IN_CLASSD_NSHIFT = 0x1c
713 IN_LOOPBACKNET = 0x7f
714 IN_RFC3021_HOST = 0x1
715 IN_RFC3021_NET = 0xfffffffe
716 IN_RFC3021_NSHIFT = 0x1f
717 IPPROTO_AH = 0x33
718 IPPROTO_CARP = 0x70
719 IPPROTO_DIVERT = 0x102
720 IPPROTO_DIVERT_INIT = 0x2
721 IPPROTO_DIVERT_RESP = 0x1
722 IPPROTO_DONE = 0x101
723 IPPROTO_DSTOPTS = 0x3c
724 IPPROTO_EGP = 0x8
725 IPPROTO_ENCAP = 0x62
726 IPPROTO_EON = 0x50
727 IPPROTO_ESP = 0x32
728 IPPROTO_ETHERIP = 0x61
729 IPPROTO_FRAGMENT = 0x2c
730 IPPROTO_GGP = 0x3
731 IPPROTO_GRE = 0x2f
732 IPPROTO_HOPOPTS = 0x0
733 IPPROTO_ICMP = 0x1
734 IPPROTO_ICMPV6 = 0x3a
735 IPPROTO_IDP = 0x16
736 IPPROTO_IGMP = 0x2
737 IPPROTO_IP = 0x0
738 IPPROTO_IPCOMP = 0x6c
739 IPPROTO_IPIP = 0x4
740 IPPROTO_IPV4 = 0x4
741 IPPROTO_IPV6 = 0x29
742 IPPROTO_MAX = 0x100
743 IPPROTO_MAXID = 0x103
744 IPPROTO_MOBILE = 0x37
745 IPPROTO_MPLS = 0x89
746 IPPROTO_NONE = 0x3b
747 IPPROTO_PFSYNC = 0xf0
748 IPPROTO_PIM = 0x67
749 IPPROTO_PUP = 0xc
750 IPPROTO_RAW = 0xff
751 IPPROTO_ROUTING = 0x2b
752 IPPROTO_RSVP = 0x2e
753 IPPROTO_TCP = 0x6
754 IPPROTO_TP = 0x1d
755 IPPROTO_UDP = 0x11
756 IPV6_AUTH_LEVEL = 0x35
757 IPV6_AUTOFLOWLABEL = 0x3b
758 IPV6_CHECKSUM = 0x1a
759 IPV6_DEFAULT_MULTICAST_HOPS = 0x1
760 IPV6_DEFAULT_MULTICAST_LOOP = 0x1
761 IPV6_DEFHLIM = 0x40
762 IPV6_DONTFRAG = 0x3e
763 IPV6_DSTOPTS = 0x32
764 IPV6_ESP_NETWORK_LEVEL = 0x37
765 IPV6_ESP_TRANS_LEVEL = 0x36
766 IPV6_FAITH = 0x1d
767 IPV6_FLOWINFO_MASK = 0xffffff0f
768 IPV6_FLOWLABEL_MASK = 0xffff0f00
769 IPV6_FRAGTTL = 0x78
770 IPV6_HLIMDEC = 0x1
771 IPV6_HOPLIMIT = 0x2f
772 IPV6_HOPOPTS = 0x31
773 IPV6_IPCOMP_LEVEL = 0x3c
774 IPV6_JOIN_GROUP = 0xc
775 IPV6_LEAVE_GROUP = 0xd
776 IPV6_MAXHLIM = 0xff
777 IPV6_MAXPACKET = 0xffff
778 IPV6_MMTU = 0x500
779 IPV6_MULTICAST_HOPS = 0xa
780 IPV6_MULTICAST_IF = 0x9
781 IPV6_MULTICAST_LOOP = 0xb
782 IPV6_NEXTHOP = 0x30
783 IPV6_OPTIONS = 0x1
784 IPV6_PATHMTU = 0x2c
785 IPV6_PIPEX = 0x3f
786 IPV6_PKTINFO = 0x2e
787 IPV6_PORTRANGE = 0xe
788 IPV6_PORTRANGE_DEFAULT = 0x0
789 IPV6_PORTRANGE_HIGH = 0x1
790 IPV6_PORTRANGE_LOW = 0x2
791 IPV6_RECVDSTOPTS = 0x28
792 IPV6_RECVDSTPORT = 0x40
793 IPV6_RECVHOPLIMIT = 0x25
794 IPV6_RECVHOPOPTS = 0x27
795 IPV6_RECVPATHMTU = 0x2b
796 IPV6_RECVPKTINFO = 0x24
797 IPV6_RECVRTHDR = 0x26
798 IPV6_RECVTCLASS = 0x39
799 IPV6_RTABLE = 0x1021
800 IPV6_RTHDR = 0x33
801 IPV6_RTHDRDSTOPTS = 0x23
802 IPV6_RTHDR_LOOSE = 0x0
803 IPV6_RTHDR_STRICT = 0x1
804 IPV6_RTHDR_TYPE_0 = 0x0
805 IPV6_SOCKOPT_RESERVED1 = 0x3
806 IPV6_TCLASS = 0x3d
807 IPV6_UNICAST_HOPS = 0x4
808 IPV6_USE_MIN_MTU = 0x2a
809 IPV6_V6ONLY = 0x1b
810 IPV6_VERSION = 0x60
811 IPV6_VERSION_MASK = 0xf0
812 IP_ADD_MEMBERSHIP = 0xc
813 IP_AUTH_LEVEL = 0x14
814 IP_DEFAULT_MULTICAST_LOOP = 0x1
815 IP_DEFAULT_MULTICAST_TTL = 0x1
816 IP_DF = 0x4000
817 IP_DIVERTFL = 0x1022
818 IP_DROP_MEMBERSHIP = 0xd
819 IP_ESP_NETWORK_LEVEL = 0x16
820 IP_ESP_TRANS_LEVEL = 0x15
821 IP_HDRINCL = 0x2
822 IP_IPCOMP_LEVEL = 0x1d
823 IP_IPSECFLOWINFO = 0x24
824 IP_IPSEC_LOCAL_AUTH = 0x1b
825 IP_IPSEC_LOCAL_CRED = 0x19
826 IP_IPSEC_LOCAL_ID = 0x17
827 IP_IPSEC_REMOTE_AUTH = 0x1c
828 IP_IPSEC_REMOTE_CRED = 0x1a
829 IP_IPSEC_REMOTE_ID = 0x18
830 IP_MAXPACKET = 0xffff
831 IP_MAX_MEMBERSHIPS = 0xfff
832 IP_MF = 0x2000
833 IP_MINTTL = 0x20
834 IP_MIN_MEMBERSHIPS = 0xf
835 IP_MSS = 0x240
836 IP_MULTICAST_IF = 0x9
837 IP_MULTICAST_LOOP = 0xb
838 IP_MULTICAST_TTL = 0xa
839 IP_OFFMASK = 0x1fff
840 IP_OPTIONS = 0x1
841 IP_PIPEX = 0x22
842 IP_PORTRANGE = 0x13
843 IP_PORTRANGE_DEFAULT = 0x0
844 IP_PORTRANGE_HIGH = 0x1
845 IP_PORTRANGE_LOW = 0x2
846 IP_RECVDSTADDR = 0x7
847 IP_RECVDSTPORT = 0x21
848 IP_RECVIF = 0x1e
849 IP_RECVOPTS = 0x5
850 IP_RECVRETOPTS = 0x6
851 IP_RECVRTABLE = 0x23
852 IP_RECVTTL = 0x1f
853 IP_RETOPTS = 0x8
854 IP_RF = 0x8000
855 IP_RTABLE = 0x1021
856 IP_TOS = 0x3
857 IP_TTL = 0x4
858 ISIG = 0x80
859 ISTRIP = 0x20
860 IXANY = 0x800
861 IXOFF = 0x400
862 IXON = 0x200
863 LCNT_OVERLOAD_FLUSH = 0x6
864 LOCK_EX = 0x2
865 LOCK_NB = 0x4
866 LOCK_SH = 0x1
867 LOCK_UN = 0x8
868 MADV_DONTNEED = 0x4
869 MADV_FREE = 0x6
870 MADV_NORMAL = 0x0
871 MADV_RANDOM = 0x1
872 MADV_SEQUENTIAL = 0x2
873 MADV_SPACEAVAIL = 0x5
874 MADV_WILLNEED = 0x3
875 MAP_ANON = 0x1000
876 MAP_COPY = 0x4
877 MAP_FILE = 0x0
878 MAP_FIXED = 0x10
879 MAP_FLAGMASK = 0x1ff7
880 MAP_HASSEMAPHORE = 0x200
881 MAP_INHERIT = 0x80
882 MAP_INHERIT_COPY = 0x1
883 MAP_INHERIT_DONATE_COPY = 0x3
884 MAP_INHERIT_NONE = 0x2
885 MAP_INHERIT_SHARE = 0x0
886 MAP_NOEXTEND = 0x100
887 MAP_NORESERVE = 0x40
888 MAP_PRIVATE = 0x2
889 MAP_RENAME = 0x20
890 MAP_SHARED = 0x1
891 MAP_TRYFIXED = 0x400
892 MCL_CURRENT = 0x1
893 MCL_FUTURE = 0x2
894 MSG_BCAST = 0x100
895 MSG_CTRUNC = 0x20
896 MSG_DONTROUTE = 0x4
897 MSG_DONTWAIT = 0x80
898 MSG_EOR = 0x8
899 MSG_MCAST = 0x200
900 MSG_NOSIGNAL = 0x400
901 MSG_OOB = 0x1
902 MSG_PEEK = 0x2
903 MSG_TRUNC = 0x10
904 MSG_WAITALL = 0x40
905 MS_ASYNC = 0x1
906 MS_INVALIDATE = 0x4
907 MS_SYNC = 0x2
908 NAME_MAX = 0xff
909 NET_RT_DUMP = 0x1
910 NET_RT_FLAGS = 0x2
911 NET_RT_IFLIST = 0x3
912 NET_RT_MAXID = 0x6
913 NET_RT_STATS = 0x4
914 NET_RT_TABLE = 0x5
915 NOFLSH = 0x80000000
916 NOTE_ATTRIB = 0x8
917 NOTE_CHILD = 0x4
918 NOTE_DELETE = 0x1
919 NOTE_EOF = 0x2
920 NOTE_EXEC = 0x20000000
921 NOTE_EXIT = 0x80000000
922 NOTE_EXTEND = 0x4
923 NOTE_FORK = 0x40000000
924 NOTE_LINK = 0x10
925 NOTE_LOWAT = 0x1
926 NOTE_PCTRLMASK = 0xf0000000
927 NOTE_PDATAMASK = 0xfffff
928 NOTE_RENAME = 0x20
929 NOTE_REVOKE = 0x40
930 NOTE_TRACK = 0x1
931 NOTE_TRACKERR = 0x2
932 NOTE_TRUNCATE = 0x80
933 NOTE_WRITE = 0x2
934 OCRNL = 0x10
935 ONLCR = 0x2
936 ONLRET = 0x80
937 ONOCR = 0x40
938 ONOEOT = 0x8
939 OPOST = 0x1
940 O_ACCMODE = 0x3
941 O_APPEND = 0x8
942 O_ASYNC = 0x40
943 O_CLOEXEC = 0x10000
944 O_CREAT = 0x200
945 O_DIRECTORY = 0x20000
946 O_DSYNC = 0x80
947 O_EXCL = 0x800
948 O_EXLOCK = 0x20
949 O_FSYNC = 0x80
950 O_NDELAY = 0x4
951 O_NOCTTY = 0x8000
952 O_NOFOLLOW = 0x100
953 O_NONBLOCK = 0x4
954 O_RDONLY = 0x0
955 O_RDWR = 0x2
956 O_RSYNC = 0x80
957 O_SHLOCK = 0x10
958 O_SYNC = 0x80
959 O_TRUNC = 0x400
960 O_WRONLY = 0x1
961 PARENB = 0x1000
962 PARMRK = 0x8
963 PARODD = 0x2000
964 PENDIN = 0x20000000
965 PF_FLUSH = 0x1
966 PRIO_PGRP = 0x1
967 PRIO_PROCESS = 0x0
968 PRIO_USER = 0x2
969 PROT_EXEC = 0x4
970 PROT_NONE = 0x0
971 PROT_READ = 0x1
972 PROT_WRITE = 0x2
973 RLIMIT_CORE = 0x4
974 RLIMIT_CPU = 0x0
975 RLIMIT_DATA = 0x2
976 RLIMIT_FSIZE = 0x1
977 RLIMIT_NOFILE = 0x8
978 RLIMIT_STACK = 0x3
979 RLIM_INFINITY = 0x7fffffffffffffff
980 RTAX_AUTHOR = 0x6
981 RTAX_BRD = 0x7
982 RTAX_DST = 0x0
983 RTAX_GATEWAY = 0x1
984 RTAX_GENMASK = 0x3
985 RTAX_IFA = 0x5
986 RTAX_IFP = 0x4
987 RTAX_LABEL = 0xa
988 RTAX_MAX = 0xb
989 RTAX_NETMASK = 0x2
990 RTAX_SRC = 0x8
991 RTAX_SRCMASK = 0x9
992 RTA_AUTHOR = 0x40
993 RTA_BRD = 0x80
994 RTA_DST = 0x1
995 RTA_GATEWAY = 0x2
996 RTA_GENMASK = 0x8
997 RTA_IFA = 0x20
998 RTA_IFP = 0x10
999 RTA_LABEL = 0x400
1000 RTA_NETMASK = 0x4
1001 RTA_SRC = 0x100
1002 RTA_SRCMASK = 0x200
1003 RTF_ANNOUNCE = 0x4000
1004 RTF_BLACKHOLE = 0x1000
1005 RTF_CLONED = 0x10000
1006 RTF_CLONING = 0x100
1007 RTF_DONE = 0x40
1008 RTF_DYNAMIC = 0x10
1009 RTF_FMASK = 0x10f808
1010 RTF_GATEWAY = 0x2
1011 RTF_HOST = 0x4
1012 RTF_LLINFO = 0x400
1013 RTF_MASK = 0x80
1014 RTF_MODIFIED = 0x20
1015 RTF_MPATH = 0x40000
1016 RTF_MPLS = 0x100000
1017 RTF_PERMANENT_ARP = 0x2000
1018 RTF_PROTO1 = 0x8000
1019 RTF_PROTO2 = 0x4000
1020 RTF_PROTO3 = 0x2000
1021 RTF_REJECT = 0x8
1022 RTF_SOURCE = 0x20000
1023 RTF_STATIC = 0x800
1024 RTF_TUNNEL = 0x100000
1025 RTF_UP = 0x1
1026 RTF_USETRAILERS = 0x8000
1027 RTF_XRESOLVE = 0x200
1028 RTM_ADD = 0x1
1029 RTM_CHANGE = 0x3
1030 RTM_DELADDR = 0xd
1031 RTM_DELETE = 0x2
1032 RTM_DESYNC = 0x10
1033 RTM_GET = 0x4
1034 RTM_IFANNOUNCE = 0xf
1035 RTM_IFINFO = 0xe
1036 RTM_LOCK = 0x8
1037 RTM_LOSING = 0x5
1038 RTM_MAXSIZE = 0x800
1039 RTM_MISS = 0x7
1040 RTM_NEWADDR = 0xc
1041 RTM_REDIRECT = 0x6
1042 RTM_RESOLVE = 0xb
1043 RTM_RTTUNIT = 0xf4240
1044 RTM_VERSION = 0x5
1045 RTV_EXPIRE = 0x4
1046 RTV_HOPCOUNT = 0x2
1047 RTV_MTU = 0x1
1048 RTV_RPIPE = 0x8
1049 RTV_RTT = 0x40
1050 RTV_RTTVAR = 0x80
1051 RTV_SPIPE = 0x10
1052 RTV_SSTHRESH = 0x20
1053 RT_TABLEID_MAX = 0xff
1054 RUSAGE_CHILDREN = -0x1
1055 RUSAGE_SELF = 0x0
1056 RUSAGE_THREAD = 0x1
1057 SCM_RIGHTS = 0x1
1058 SCM_TIMESTAMP = 0x4
1059 SHUT_RD = 0x0
1060 SHUT_RDWR = 0x2
1061 SHUT_WR = 0x1
1062 SIOCADDMULTI = 0x80206931
1063 SIOCAIFADDR = 0x8040691a
1064 SIOCAIFGROUP = 0x80286987
1065 SIOCALIFADDR = 0x8218691c
1066 SIOCATMARK = 0x40047307
1067 SIOCBRDGADD = 0x8058693c
1068 SIOCBRDGADDS = 0x80586941
1069 SIOCBRDGARL = 0x806e694d
1070 SIOCBRDGDADDR = 0x81286947
1071 SIOCBRDGDEL = 0x8058693d
1072 SIOCBRDGDELS = 0x80586942
1073 SIOCBRDGFLUSH = 0x80586948
1074 SIOCBRDGFRL = 0x806e694e
1075 SIOCBRDGGCACHE = 0xc0146941
1076 SIOCBRDGGFD = 0xc0146952
1077 SIOCBRDGGHT = 0xc0146951
1078 SIOCBRDGGIFFLGS = 0xc058693e
1079 SIOCBRDGGMA = 0xc0146953
1080 SIOCBRDGGPARAM = 0xc0406958
1081 SIOCBRDGGPRI = 0xc0146950
1082 SIOCBRDGGRL = 0xc030694f
1083 SIOCBRDGGSIFS = 0xc058693c
1084 SIOCBRDGGTO = 0xc0146946
1085 SIOCBRDGIFS = 0xc0586942
1086 SIOCBRDGRTS = 0xc0206943
1087 SIOCBRDGSADDR = 0xc1286944
1088 SIOCBRDGSCACHE = 0x80146940
1089 SIOCBRDGSFD = 0x80146952
1090 SIOCBRDGSHT = 0x80146951
1091 SIOCBRDGSIFCOST = 0x80586955
1092 SIOCBRDGSIFFLGS = 0x8058693f
1093 SIOCBRDGSIFPRIO = 0x80586954
1094 SIOCBRDGSMA = 0x80146953
1095 SIOCBRDGSPRI = 0x80146950
1096 SIOCBRDGSPROTO = 0x8014695a
1097 SIOCBRDGSTO = 0x80146945
1098 SIOCBRDGSTXHC = 0x80146959
1099 SIOCDELMULTI = 0x80206932
1100 SIOCDIFADDR = 0x80206919
1101 SIOCDIFGROUP = 0x80286989
1102 SIOCDIFPHYADDR = 0x80206949
1103 SIOCDLIFADDR = 0x8218691e
1104 SIOCGETKALIVE = 0xc01869a4
1105 SIOCGETLABEL = 0x8020699a
1106 SIOCGETPFLOW = 0xc02069fe
1107 SIOCGETPFSYNC = 0xc02069f8
1108 SIOCGETSGCNT = 0xc0207534
1109 SIOCGETVIFCNT = 0xc0287533
1110 SIOCGETVLAN = 0xc0206990
1111 SIOCGHIWAT = 0x40047301
1112 SIOCGIFADDR = 0xc0206921
1113 SIOCGIFASYNCMAP = 0xc020697c
1114 SIOCGIFBRDADDR = 0xc0206923
1115 SIOCGIFCONF = 0xc0106924
1116 SIOCGIFDATA = 0xc020691b
1117 SIOCGIFDESCR = 0xc0206981
1118 SIOCGIFDSTADDR = 0xc0206922
1119 SIOCGIFFLAGS = 0xc0206911
1120 SIOCGIFGATTR = 0xc028698b
1121 SIOCGIFGENERIC = 0xc020693a
1122 SIOCGIFGMEMB = 0xc028698a
1123 SIOCGIFGROUP = 0xc0286988
1124 SIOCGIFHARDMTU = 0xc02069a5
1125 SIOCGIFMEDIA = 0xc0306936
1126 SIOCGIFMETRIC = 0xc0206917
1127 SIOCGIFMTU = 0xc020697e
1128 SIOCGIFNETMASK = 0xc0206925
1129 SIOCGIFPDSTADDR = 0xc0206948
1130 SIOCGIFPRIORITY = 0xc020699c
1131 SIOCGIFPSRCADDR = 0xc0206947
1132 SIOCGIFRDOMAIN = 0xc02069a0
1133 SIOCGIFRTLABEL = 0xc0206983
1134 SIOCGIFTIMESLOT = 0xc0206986
1135 SIOCGIFXFLAGS = 0xc020699e
1136 SIOCGLIFADDR = 0xc218691d
1137 SIOCGLIFPHYADDR = 0xc218694b
1138 SIOCGLIFPHYRTABLE = 0xc02069a2
1139 SIOCGLIFPHYTTL = 0xc02069a9
1140 SIOCGLOWAT = 0x40047303
1141 SIOCGPGRP = 0x40047309
1142 SIOCGSPPPPARAMS = 0xc0206994
1143 SIOCGVH = 0xc02069f6
1144 SIOCGVNETID = 0xc02069a7
1145 SIOCIFCREATE = 0x8020697a
1146 SIOCIFDESTROY = 0x80206979
1147 SIOCIFGCLONERS = 0xc0106978
1148 SIOCSETKALIVE = 0x801869a3
1149 SIOCSETLABEL = 0x80206999
1150 SIOCSETPFLOW = 0x802069fd
1151 SIOCSETPFSYNC = 0x802069f7
1152 SIOCSETVLAN = 0x8020698f
1153 SIOCSHIWAT = 0x80047300
1154 SIOCSIFADDR = 0x8020690c
1155 SIOCSIFASYNCMAP = 0x8020697d
1156 SIOCSIFBRDADDR = 0x80206913
1157 SIOCSIFDESCR = 0x80206980
1158 SIOCSIFDSTADDR = 0x8020690e
1159 SIOCSIFFLAGS = 0x80206910
1160 SIOCSIFGATTR = 0x8028698c
1161 SIOCSIFGENERIC = 0x80206939
1162 SIOCSIFLLADDR = 0x8020691f
1163 SIOCSIFMEDIA = 0xc0206935
1164 SIOCSIFMETRIC = 0x80206918
1165 SIOCSIFMTU = 0x8020697f
1166 SIOCSIFNETMASK = 0x80206916
1167 SIOCSIFPHYADDR = 0x80406946
1168 SIOCSIFPRIORITY = 0x8020699b
1169 SIOCSIFRDOMAIN = 0x8020699f
1170 SIOCSIFRTLABEL = 0x80206982
1171 SIOCSIFTIMESLOT = 0x80206985
1172 SIOCSIFXFLAGS = 0x8020699d
1173 SIOCSLIFPHYADDR = 0x8218694a
1174 SIOCSLIFPHYRTABLE = 0x802069a1
1175 SIOCSLIFPHYTTL = 0x802069a8
1176 SIOCSLOWAT = 0x80047302
1177 SIOCSPGRP = 0x80047308
1178 SIOCSSPPPPARAMS = 0x80206993
1179 SIOCSVH = 0xc02069f5
1180 SIOCSVNETID = 0x802069a6
1181 SOCK_DGRAM = 0x2
1182 SOCK_RAW = 0x3
1183 SOCK_RDM = 0x4
1184 SOCK_SEQPACKET = 0x5
1185 SOCK_STREAM = 0x1
1186 SOL_SOCKET = 0xffff
1187 SOMAXCONN = 0x80
1188 SO_ACCEPTCONN = 0x2
1189 SO_BINDANY = 0x1000
1190 SO_BROADCAST = 0x20
1191 SO_DEBUG = 0x1
1192 SO_DONTROUTE = 0x10
1193 SO_ERROR = 0x1007
1194 SO_KEEPALIVE = 0x8
1195 SO_LINGER = 0x80
1196 SO_NETPROC = 0x1020
1197 SO_OOBINLINE = 0x100
1198 SO_PEERCRED = 0x1022
1199 SO_RCVBUF = 0x1002
1200 SO_RCVLOWAT = 0x1004
1201 SO_RCVTIMEO = 0x1006
1202 SO_REUSEADDR = 0x4
1203 SO_REUSEPORT = 0x200
1204 SO_RTABLE = 0x1021
1205 SO_SNDBUF = 0x1001
1206 SO_SNDLOWAT = 0x1003
1207 SO_SNDTIMEO = 0x1005
1208 SO_SPLICE = 0x1023
1209 SO_TIMESTAMP = 0x800
1210 SO_TYPE = 0x1008
1211 SO_USELOOPBACK = 0x40
1212 TCIFLUSH = 0x1
1213 TCIOFLUSH = 0x3
1214 TCOFLUSH = 0x2
1215 TCP_MAXBURST = 0x4
1216 TCP_MAXSEG = 0x2
1217 TCP_MAXWIN = 0xffff
1218 TCP_MAX_SACK = 0x3
1219 TCP_MAX_WINSHIFT = 0xe
1220 TCP_MD5SIG = 0x4
1221 TCP_MSS = 0x200
1222 TCP_NODELAY = 0x1
1223 TCP_NOPUSH = 0x10
1224 TCP_NSTATES = 0xb
1225 TCP_SACK_ENABLE = 0x8
1226 TCSAFLUSH = 0x2
1227 TIOCCBRK = 0x2000747a
1228 TIOCCDTR = 0x20007478
1229 TIOCCONS = 0x80047462
1230 TIOCDRAIN = 0x2000745e
1231 TIOCEXCL = 0x2000740d
1232 TIOCEXT = 0x80047460
1233 TIOCFLAG_CLOCAL = 0x2
1234 TIOCFLAG_CRTSCTS = 0x4
1235 TIOCFLAG_MDMBUF = 0x8
1236 TIOCFLAG_PPS = 0x10
1237 TIOCFLAG_SOFTCAR = 0x1
1238 TIOCFLUSH = 0x80047410
1239 TIOCGETA = 0x402c7413
1240 TIOCGETD = 0x4004741a
1241 TIOCGFLAGS = 0x4004745d
1242 TIOCGPGRP = 0x40047477
1243 TIOCGSID = 0x40047463
1244 TIOCGTSTAMP = 0x4010745b
1245 TIOCGWINSZ = 0x40087468
1246 TIOCMBIC = 0x8004746b
1247 TIOCMBIS = 0x8004746c
1248 TIOCMGET = 0x4004746a
1249 TIOCMODG = 0x4004746a
1250 TIOCMODS = 0x8004746d
1251 TIOCMSET = 0x8004746d
1252 TIOCM_CAR = 0x40
1253 TIOCM_CD = 0x40
1254 TIOCM_CTS = 0x20
1255 TIOCM_DSR = 0x100
1256 TIOCM_DTR = 0x2
1257 TIOCM_LE = 0x1
1258 TIOCM_RI = 0x80
1259 TIOCM_RNG = 0x80
1260 TIOCM_RTS = 0x4
1261 TIOCM_SR = 0x10
1262 TIOCM_ST = 0x8
1263 TIOCNOTTY = 0x20007471
1264 TIOCNXCL = 0x2000740e
1265 TIOCOUTQ = 0x40047473
1266 TIOCPKT = 0x80047470
1267 TIOCPKT_DATA = 0x0
1268 TIOCPKT_DOSTOP = 0x20
1269 TIOCPKT_FLUSHREAD = 0x1
1270 TIOCPKT_FLUSHWRITE = 0x2
1271 TIOCPKT_IOCTL = 0x40
1272 TIOCPKT_NOSTOP = 0x10
1273 TIOCPKT_START = 0x8
1274 TIOCPKT_STOP = 0x4
1275 TIOCREMOTE = 0x80047469
1276 TIOCSBRK = 0x2000747b
1277 TIOCSCTTY = 0x20007461
1278 TIOCSDTR = 0x20007479
1279 TIOCSETA = 0x802c7414
1280 TIOCSETAF = 0x802c7416
1281 TIOCSETAW = 0x802c7415
1282 TIOCSETD = 0x8004741b
1283 TIOCSFLAGS = 0x8004745c
1284 TIOCSIG = 0x8004745f
1285 TIOCSPGRP = 0x80047476
1286 TIOCSTART = 0x2000746e
1287 TIOCSTAT = 0x80047465
1288 TIOCSTI = 0x80017472
1289 TIOCSTOP = 0x2000746f
1290 TIOCSTSTAMP = 0x8008745a
1291 TIOCSWINSZ = 0x80087467
1292 TIOCUCNTL = 0x80047466
1293 TOSTOP = 0x400000
1294 VDISCARD = 0xf
1295 VDSUSP = 0xb
1296 VEOF = 0x0
1297 VEOL = 0x1
1298 VEOL2 = 0x2
1299 VERASE = 0x3
1300 VINTR = 0x8
1301 VKILL = 0x5
1302 VLNEXT = 0xe
1303 VMIN = 0x10
1304 VQUIT = 0x9
1305 VREPRINT = 0x6
1306 VSTART = 0xc
1307 VSTATUS = 0x12
1308 VSTOP = 0xd
1309 VSUSP = 0xa
1310 VTIME = 0x11
1311 VWERASE = 0x4
1312 WALTSIG = 0x4
1313 WCONTINUED = 0x8
1314 WCOREFLAG = 0x80
1315 WNOHANG = 0x1
1316 WSTOPPED = 0x7f
1317 WUNTRACED = 0x2
1318)
1319
1320// Errors
1321const (
1322 E2BIG = syscall.Errno(0x7)
1323 EACCES = syscall.Errno(0xd)
1324 EADDRINUSE = syscall.Errno(0x30)
1325 EADDRNOTAVAIL = syscall.Errno(0x31)
1326 EAFNOSUPPORT = syscall.Errno(0x2f)
1327 EAGAIN = syscall.Errno(0x23)
1328 EALREADY = syscall.Errno(0x25)
1329 EAUTH = syscall.Errno(0x50)
1330 EBADF = syscall.Errno(0x9)
1331 EBADRPC = syscall.Errno(0x48)
1332 EBUSY = syscall.Errno(0x10)
1333 ECANCELED = syscall.Errno(0x58)
1334 ECHILD = syscall.Errno(0xa)
1335 ECONNABORTED = syscall.Errno(0x35)
1336 ECONNREFUSED = syscall.Errno(0x3d)
1337 ECONNRESET = syscall.Errno(0x36)
1338 EDEADLK = syscall.Errno(0xb)
1339 EDESTADDRREQ = syscall.Errno(0x27)
1340 EDOM = syscall.Errno(0x21)
1341 EDQUOT = syscall.Errno(0x45)
1342 EEXIST = syscall.Errno(0x11)
1343 EFAULT = syscall.Errno(0xe)
1344 EFBIG = syscall.Errno(0x1b)
1345 EFTYPE = syscall.Errno(0x4f)
1346 EHOSTDOWN = syscall.Errno(0x40)
1347 EHOSTUNREACH = syscall.Errno(0x41)
1348 EIDRM = syscall.Errno(0x59)
1349 EILSEQ = syscall.Errno(0x54)
1350 EINPROGRESS = syscall.Errno(0x24)
1351 EINTR = syscall.Errno(0x4)
1352 EINVAL = syscall.Errno(0x16)
1353 EIO = syscall.Errno(0x5)
1354 EIPSEC = syscall.Errno(0x52)
1355 EISCONN = syscall.Errno(0x38)
1356 EISDIR = syscall.Errno(0x15)
1357 ELAST = syscall.Errno(0x5b)
1358 ELOOP = syscall.Errno(0x3e)
1359 EMEDIUMTYPE = syscall.Errno(0x56)
1360 EMFILE = syscall.Errno(0x18)
1361 EMLINK = syscall.Errno(0x1f)
1362 EMSGSIZE = syscall.Errno(0x28)
1363 ENAMETOOLONG = syscall.Errno(0x3f)
1364 ENEEDAUTH = syscall.Errno(0x51)
1365 ENETDOWN = syscall.Errno(0x32)
1366 ENETRESET = syscall.Errno(0x34)
1367 ENETUNREACH = syscall.Errno(0x33)
1368 ENFILE = syscall.Errno(0x17)
1369 ENOATTR = syscall.Errno(0x53)
1370 ENOBUFS = syscall.Errno(0x37)
1371 ENODEV = syscall.Errno(0x13)
1372 ENOENT = syscall.Errno(0x2)
1373 ENOEXEC = syscall.Errno(0x8)
1374 ENOLCK = syscall.Errno(0x4d)
1375 ENOMEDIUM = syscall.Errno(0x55)
1376 ENOMEM = syscall.Errno(0xc)
1377 ENOMSG = syscall.Errno(0x5a)
1378 ENOPROTOOPT = syscall.Errno(0x2a)
1379 ENOSPC = syscall.Errno(0x1c)
1380 ENOSYS = syscall.Errno(0x4e)
1381 ENOTBLK = syscall.Errno(0xf)
1382 ENOTCONN = syscall.Errno(0x39)
1383 ENOTDIR = syscall.Errno(0x14)
1384 ENOTEMPTY = syscall.Errno(0x42)
1385 ENOTSOCK = syscall.Errno(0x26)
1386 ENOTSUP = syscall.Errno(0x5b)
1387 ENOTTY = syscall.Errno(0x19)
1388 ENXIO = syscall.Errno(0x6)
1389 EOPNOTSUPP = syscall.Errno(0x2d)
1390 EOVERFLOW = syscall.Errno(0x57)
1391 EPERM = syscall.Errno(0x1)
1392 EPFNOSUPPORT = syscall.Errno(0x2e)
1393 EPIPE = syscall.Errno(0x20)
1394 EPROCLIM = syscall.Errno(0x43)
1395 EPROCUNAVAIL = syscall.Errno(0x4c)
1396 EPROGMISMATCH = syscall.Errno(0x4b)
1397 EPROGUNAVAIL = syscall.Errno(0x4a)
1398 EPROTONOSUPPORT = syscall.Errno(0x2b)
1399 EPROTOTYPE = syscall.Errno(0x29)
1400 ERANGE = syscall.Errno(0x22)
1401 EREMOTE = syscall.Errno(0x47)
1402 EROFS = syscall.Errno(0x1e)
1403 ERPCMISMATCH = syscall.Errno(0x49)
1404 ESHUTDOWN = syscall.Errno(0x3a)
1405 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
1406 ESPIPE = syscall.Errno(0x1d)
1407 ESRCH = syscall.Errno(0x3)
1408 ESTALE = syscall.Errno(0x46)
1409 ETIMEDOUT = syscall.Errno(0x3c)
1410 ETOOMANYREFS = syscall.Errno(0x3b)
1411 ETXTBSY = syscall.Errno(0x1a)
1412 EUSERS = syscall.Errno(0x44)
1413 EWOULDBLOCK = syscall.Errno(0x23)
1414 EXDEV = syscall.Errno(0x12)
1415)
1416
1417// Signals
1418const (
1419 SIGABRT = syscall.Signal(0x6)
1420 SIGALRM = syscall.Signal(0xe)
1421 SIGBUS = syscall.Signal(0xa)
1422 SIGCHLD = syscall.Signal(0x14)
1423 SIGCONT = syscall.Signal(0x13)
1424 SIGEMT = syscall.Signal(0x7)
1425 SIGFPE = syscall.Signal(0x8)
1426 SIGHUP = syscall.Signal(0x1)
1427 SIGILL = syscall.Signal(0x4)
1428 SIGINFO = syscall.Signal(0x1d)
1429 SIGINT = syscall.Signal(0x2)
1430 SIGIO = syscall.Signal(0x17)
1431 SIGIOT = syscall.Signal(0x6)
1432 SIGKILL = syscall.Signal(0x9)
1433 SIGPIPE = syscall.Signal(0xd)
1434 SIGPROF = syscall.Signal(0x1b)
1435 SIGQUIT = syscall.Signal(0x3)
1436 SIGSEGV = syscall.Signal(0xb)
1437 SIGSTOP = syscall.Signal(0x11)
1438 SIGSYS = syscall.Signal(0xc)
1439 SIGTERM = syscall.Signal(0xf)
1440 SIGTHR = syscall.Signal(0x20)
1441 SIGTRAP = syscall.Signal(0x5)
1442 SIGTSTP = syscall.Signal(0x12)
1443 SIGTTIN = syscall.Signal(0x15)
1444 SIGTTOU = syscall.Signal(0x16)
1445 SIGURG = syscall.Signal(0x10)
1446 SIGUSR1 = syscall.Signal(0x1e)
1447 SIGUSR2 = syscall.Signal(0x1f)
1448 SIGVTALRM = syscall.Signal(0x1a)
1449 SIGWINCH = syscall.Signal(0x1c)
1450 SIGXCPU = syscall.Signal(0x18)
1451 SIGXFSZ = syscall.Signal(0x19)
1452)
1453
1454// Error table
1455var errors = [...]string{
1456 1: "operation not permitted",
1457 2: "no such file or directory",
1458 3: "no such process",
1459 4: "interrupted system call",
1460 5: "input/output error",
1461 6: "device not configured",
1462 7: "argument list too long",
1463 8: "exec format error",
1464 9: "bad file descriptor",
1465 10: "no child processes",
1466 11: "resource deadlock avoided",
1467 12: "cannot allocate memory",
1468 13: "permission denied",
1469 14: "bad address",
1470 15: "block device required",
1471 16: "device busy",
1472 17: "file exists",
1473 18: "cross-device link",
1474 19: "operation not supported by device",
1475 20: "not a directory",
1476 21: "is a directory",
1477 22: "invalid argument",
1478 23: "too many open files in system",
1479 24: "too many open files",
1480 25: "inappropriate ioctl for device",
1481 26: "text file busy",
1482 27: "file too large",
1483 28: "no space left on device",
1484 29: "illegal seek",
1485 30: "read-only file system",
1486 31: "too many links",
1487 32: "broken pipe",
1488 33: "numerical argument out of domain",
1489 34: "result too large",
1490 35: "resource temporarily unavailable",
1491 36: "operation now in progress",
1492 37: "operation already in progress",
1493 38: "socket operation on non-socket",
1494 39: "destination address required",
1495 40: "message too long",
1496 41: "protocol wrong type for socket",
1497 42: "protocol not available",
1498 43: "protocol not supported",
1499 44: "socket type not supported",
1500 45: "operation not supported",
1501 46: "protocol family not supported",
1502 47: "address family not supported by protocol family",
1503 48: "address already in use",
1504 49: "can't assign requested address",
1505 50: "network is down",
1506 51: "network is unreachable",
1507 52: "network dropped connection on reset",
1508 53: "software caused connection abort",
1509 54: "connection reset by peer",
1510 55: "no buffer space available",
1511 56: "socket is already connected",
1512 57: "socket is not connected",
1513 58: "can't send after socket shutdown",
1514 59: "too many references: can't splice",
1515 60: "connection timed out",
1516 61: "connection refused",
1517 62: "too many levels of symbolic links",
1518 63: "file name too long",
1519 64: "host is down",
1520 65: "no route to host",
1521 66: "directory not empty",
1522 67: "too many processes",
1523 68: "too many users",
1524 69: "disc quota exceeded",
1525 70: "stale NFS file handle",
1526 71: "too many levels of remote in path",
1527 72: "RPC struct is bad",
1528 73: "RPC version wrong",
1529 74: "RPC prog. not avail",
1530 75: "program version wrong",
1531 76: "bad procedure for program",
1532 77: "no locks available",
1533 78: "function not implemented",
1534 79: "inappropriate file type or format",
1535 80: "authentication error",
1536 81: "need authenticator",
1537 82: "IPsec processing failure",
1538 83: "attribute not found",
1539 84: "illegal byte sequence",
1540 85: "no medium found",
1541 86: "wrong medium type",
1542 87: "value too large to be stored in data type",
1543 88: "operation canceled",
1544 89: "identifier removed",
1545 90: "no message of desired type",
1546 91: "not supported",
1547}
1548
1549// Signal table
1550var signals = [...]string{
1551 1: "hangup",
1552 2: "interrupt",
1553 3: "quit",
1554 4: "illegal instruction",
1555 5: "trace/BPT trap",
1556 6: "abort trap",
1557 7: "EMT trap",
1558 8: "floating point exception",
1559 9: "killed",
1560 10: "bus error",
1561 11: "segmentation fault",
1562 12: "bad system call",
1563 13: "broken pipe",
1564 14: "alarm clock",
1565 15: "terminated",
1566 16: "urgent I/O condition",
1567 17: "stopped (signal)",
1568 18: "stopped",
1569 19: "continued",
1570 20: "child exited",
1571 21: "stopped (tty input)",
1572 22: "stopped (tty output)",
1573 23: "I/O possible",
1574 24: "cputime limit exceeded",
1575 25: "filesize limit exceeded",
1576 26: "virtual timer expired",
1577 27: "profiling timer expired",
1578 28: "window size changes",
1579 29: "information request",
1580 30: "user defined signal 1",
1581 31: "user defined signal 2",
1582 32: "thread AST",
1583}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_solaris_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_solaris_amd64.go
deleted file mode 100644
index a08922b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zerrors_solaris_amd64.go
+++ /dev/null
@@ -1,1436 +0,0 @@
1// mkerrors.sh -m64
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,solaris
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -m64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_802 = 0x12
15 AF_APPLETALK = 0x10
16 AF_CCITT = 0xa
17 AF_CHAOS = 0x5
18 AF_DATAKIT = 0x9
19 AF_DECnet = 0xc
20 AF_DLI = 0xd
21 AF_ECMA = 0x8
22 AF_FILE = 0x1
23 AF_GOSIP = 0x16
24 AF_HYLINK = 0xf
25 AF_IMPLINK = 0x3
26 AF_INET = 0x2
27 AF_INET6 = 0x1a
28 AF_INET_OFFLOAD = 0x1e
29 AF_IPX = 0x17
30 AF_KEY = 0x1b
31 AF_LAT = 0xe
32 AF_LINK = 0x19
33 AF_LOCAL = 0x1
34 AF_MAX = 0x20
35 AF_NBS = 0x7
36 AF_NCA = 0x1c
37 AF_NIT = 0x11
38 AF_NS = 0x6
39 AF_OSI = 0x13
40 AF_OSINET = 0x15
41 AF_PACKET = 0x20
42 AF_POLICY = 0x1d
43 AF_PUP = 0x4
44 AF_ROUTE = 0x18
45 AF_SNA = 0xb
46 AF_TRILL = 0x1f
47 AF_UNIX = 0x1
48 AF_UNSPEC = 0x0
49 AF_X25 = 0x14
50 ARPHRD_ARCNET = 0x7
51 ARPHRD_ATM = 0x10
52 ARPHRD_AX25 = 0x3
53 ARPHRD_CHAOS = 0x5
54 ARPHRD_EETHER = 0x2
55 ARPHRD_ETHER = 0x1
56 ARPHRD_FC = 0x12
57 ARPHRD_FRAME = 0xf
58 ARPHRD_HDLC = 0x11
59 ARPHRD_IB = 0x20
60 ARPHRD_IEEE802 = 0x6
61 ARPHRD_IPATM = 0x13
62 ARPHRD_METRICOM = 0x17
63 ARPHRD_TUNNEL = 0x1f
64 B0 = 0x0
65 B110 = 0x3
66 B115200 = 0x12
67 B1200 = 0x9
68 B134 = 0x4
69 B150 = 0x5
70 B153600 = 0x13
71 B1800 = 0xa
72 B19200 = 0xe
73 B200 = 0x6
74 B230400 = 0x14
75 B2400 = 0xb
76 B300 = 0x7
77 B307200 = 0x15
78 B38400 = 0xf
79 B460800 = 0x16
80 B4800 = 0xc
81 B50 = 0x1
82 B57600 = 0x10
83 B600 = 0x8
84 B75 = 0x2
85 B76800 = 0x11
86 B921600 = 0x17
87 B9600 = 0xd
88 BIOCFLUSH = 0x20004268
89 BIOCGBLEN = 0x40044266
90 BIOCGDLT = 0x4004426a
91 BIOCGDLTLIST = -0x3fefbd89
92 BIOCGDLTLIST32 = -0x3ff7bd89
93 BIOCGETIF = 0x4020426b
94 BIOCGETLIF = 0x4078426b
95 BIOCGHDRCMPLT = 0x40044274
96 BIOCGRTIMEOUT = 0x4010427b
97 BIOCGRTIMEOUT32 = 0x4008427b
98 BIOCGSEESENT = 0x40044278
99 BIOCGSTATS = 0x4080426f
100 BIOCGSTATSOLD = 0x4008426f
101 BIOCIMMEDIATE = -0x7ffbbd90
102 BIOCPROMISC = 0x20004269
103 BIOCSBLEN = -0x3ffbbd9a
104 BIOCSDLT = -0x7ffbbd8a
105 BIOCSETF = -0x7fefbd99
106 BIOCSETF32 = -0x7ff7bd99
107 BIOCSETIF = -0x7fdfbd94
108 BIOCSETLIF = -0x7f87bd94
109 BIOCSHDRCMPLT = -0x7ffbbd8b
110 BIOCSRTIMEOUT = -0x7fefbd86
111 BIOCSRTIMEOUT32 = -0x7ff7bd86
112 BIOCSSEESENT = -0x7ffbbd87
113 BIOCSTCPF = -0x7fefbd8e
114 BIOCSUDPF = -0x7fefbd8d
115 BIOCVERSION = 0x40044271
116 BPF_A = 0x10
117 BPF_ABS = 0x20
118 BPF_ADD = 0x0
119 BPF_ALIGNMENT = 0x4
120 BPF_ALU = 0x4
121 BPF_AND = 0x50
122 BPF_B = 0x10
123 BPF_DFLTBUFSIZE = 0x100000
124 BPF_DIV = 0x30
125 BPF_H = 0x8
126 BPF_IMM = 0x0
127 BPF_IND = 0x40
128 BPF_JA = 0x0
129 BPF_JEQ = 0x10
130 BPF_JGE = 0x30
131 BPF_JGT = 0x20
132 BPF_JMP = 0x5
133 BPF_JSET = 0x40
134 BPF_K = 0x0
135 BPF_LD = 0x0
136 BPF_LDX = 0x1
137 BPF_LEN = 0x80
138 BPF_LSH = 0x60
139 BPF_MAJOR_VERSION = 0x1
140 BPF_MAXBUFSIZE = 0x1000000
141 BPF_MAXINSNS = 0x200
142 BPF_MEM = 0x60
143 BPF_MEMWORDS = 0x10
144 BPF_MINBUFSIZE = 0x20
145 BPF_MINOR_VERSION = 0x1
146 BPF_MISC = 0x7
147 BPF_MSH = 0xa0
148 BPF_MUL = 0x20
149 BPF_NEG = 0x80
150 BPF_OR = 0x40
151 BPF_RELEASE = 0x30bb6
152 BPF_RET = 0x6
153 BPF_RSH = 0x70
154 BPF_ST = 0x2
155 BPF_STX = 0x3
156 BPF_SUB = 0x10
157 BPF_TAX = 0x0
158 BPF_TXA = 0x80
159 BPF_W = 0x0
160 BPF_X = 0x8
161 BRKINT = 0x2
162 CFLUSH = 0xf
163 CLOCAL = 0x800
164 CLOCK_HIGHRES = 0x4
165 CLOCK_LEVEL = 0xa
166 CLOCK_MONOTONIC = 0x4
167 CLOCK_PROCESS_CPUTIME_ID = 0x5
168 CLOCK_PROF = 0x2
169 CLOCK_REALTIME = 0x3
170 CLOCK_THREAD_CPUTIME_ID = 0x2
171 CLOCK_VIRTUAL = 0x1
172 CREAD = 0x80
173 CS5 = 0x0
174 CS6 = 0x10
175 CS7 = 0x20
176 CS8 = 0x30
177 CSIZE = 0x30
178 CSTART = 0x11
179 CSTATUS = 0x14
180 CSTOP = 0x13
181 CSTOPB = 0x40
182 CSUSP = 0x1a
183 CSWTCH = 0x1a
184 DLT_AIRONET_HEADER = 0x78
185 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
186 DLT_ARCNET = 0x7
187 DLT_ARCNET_LINUX = 0x81
188 DLT_ATM_CLIP = 0x13
189 DLT_ATM_RFC1483 = 0xb
190 DLT_AURORA = 0x7e
191 DLT_AX25 = 0x3
192 DLT_BACNET_MS_TP = 0xa5
193 DLT_CHAOS = 0x5
194 DLT_CISCO_IOS = 0x76
195 DLT_C_HDLC = 0x68
196 DLT_DOCSIS = 0x8f
197 DLT_ECONET = 0x73
198 DLT_EN10MB = 0x1
199 DLT_EN3MB = 0x2
200 DLT_ENC = 0x6d
201 DLT_ERF_ETH = 0xaf
202 DLT_ERF_POS = 0xb0
203 DLT_FDDI = 0xa
204 DLT_FRELAY = 0x6b
205 DLT_GCOM_SERIAL = 0xad
206 DLT_GCOM_T1E1 = 0xac
207 DLT_GPF_F = 0xab
208 DLT_GPF_T = 0xaa
209 DLT_GPRS_LLC = 0xa9
210 DLT_HDLC = 0x10
211 DLT_HHDLC = 0x79
212 DLT_HIPPI = 0xf
213 DLT_IBM_SN = 0x92
214 DLT_IBM_SP = 0x91
215 DLT_IEEE802 = 0x6
216 DLT_IEEE802_11 = 0x69
217 DLT_IEEE802_11_RADIO = 0x7f
218 DLT_IEEE802_11_RADIO_AVS = 0xa3
219 DLT_IPNET = 0xe2
220 DLT_IPOIB = 0xa2
221 DLT_IP_OVER_FC = 0x7a
222 DLT_JUNIPER_ATM1 = 0x89
223 DLT_JUNIPER_ATM2 = 0x87
224 DLT_JUNIPER_CHDLC = 0xb5
225 DLT_JUNIPER_ES = 0x84
226 DLT_JUNIPER_ETHER = 0xb2
227 DLT_JUNIPER_FRELAY = 0xb4
228 DLT_JUNIPER_GGSN = 0x85
229 DLT_JUNIPER_MFR = 0x86
230 DLT_JUNIPER_MLFR = 0x83
231 DLT_JUNIPER_MLPPP = 0x82
232 DLT_JUNIPER_MONITOR = 0xa4
233 DLT_JUNIPER_PIC_PEER = 0xae
234 DLT_JUNIPER_PPP = 0xb3
235 DLT_JUNIPER_PPPOE = 0xa7
236 DLT_JUNIPER_PPPOE_ATM = 0xa8
237 DLT_JUNIPER_SERVICES = 0x88
238 DLT_LINUX_IRDA = 0x90
239 DLT_LINUX_LAPD = 0xb1
240 DLT_LINUX_SLL = 0x71
241 DLT_LOOP = 0x6c
242 DLT_LTALK = 0x72
243 DLT_MTP2 = 0x8c
244 DLT_MTP2_WITH_PHDR = 0x8b
245 DLT_MTP3 = 0x8d
246 DLT_NULL = 0x0
247 DLT_PCI_EXP = 0x7d
248 DLT_PFLOG = 0x75
249 DLT_PFSYNC = 0x12
250 DLT_PPP = 0x9
251 DLT_PPP_BSDOS = 0xe
252 DLT_PPP_PPPD = 0xa6
253 DLT_PRISM_HEADER = 0x77
254 DLT_PRONET = 0x4
255 DLT_RAW = 0xc
256 DLT_RAWAF_MASK = 0x2240000
257 DLT_RIO = 0x7c
258 DLT_SCCP = 0x8e
259 DLT_SLIP = 0x8
260 DLT_SLIP_BSDOS = 0xd
261 DLT_SUNATM = 0x7b
262 DLT_SYMANTEC_FIREWALL = 0x63
263 DLT_TZSP = 0x80
264 ECHO = 0x8
265 ECHOCTL = 0x200
266 ECHOE = 0x10
267 ECHOK = 0x20
268 ECHOKE = 0x800
269 ECHONL = 0x40
270 ECHOPRT = 0x400
271 EMPTY_SET = 0x0
272 EMT_CPCOVF = 0x1
273 EQUALITY_CHECK = 0x0
274 EXTA = 0xe
275 EXTB = 0xf
276 FD_CLOEXEC = 0x1
277 FD_NFDBITS = 0x40
278 FD_SETSIZE = 0x10000
279 FLUSHALL = 0x1
280 FLUSHDATA = 0x0
281 FLUSHO = 0x2000
282 F_ALLOCSP = 0xa
283 F_ALLOCSP64 = 0xa
284 F_BADFD = 0x2e
285 F_BLKSIZE = 0x13
286 F_BLOCKS = 0x12
287 F_CHKFL = 0x8
288 F_COMPAT = 0x8
289 F_DUP2FD = 0x9
290 F_DUP2FD_CLOEXEC = 0x24
291 F_DUPFD = 0x0
292 F_DUPFD_CLOEXEC = 0x25
293 F_FREESP = 0xb
294 F_FREESP64 = 0xb
295 F_GETFD = 0x1
296 F_GETFL = 0x3
297 F_GETLK = 0xe
298 F_GETLK64 = 0xe
299 F_GETOWN = 0x17
300 F_GETXFL = 0x2d
301 F_HASREMOTELOCKS = 0x1a
302 F_ISSTREAM = 0xd
303 F_MANDDNY = 0x10
304 F_MDACC = 0x20
305 F_NODNY = 0x0
306 F_NPRIV = 0x10
307 F_PRIV = 0xf
308 F_QUOTACTL = 0x11
309 F_RDACC = 0x1
310 F_RDDNY = 0x1
311 F_RDLCK = 0x1
312 F_REVOKE = 0x19
313 F_RMACC = 0x4
314 F_RMDNY = 0x4
315 F_RWACC = 0x3
316 F_RWDNY = 0x3
317 F_SETFD = 0x2
318 F_SETFL = 0x4
319 F_SETLK = 0x6
320 F_SETLK64 = 0x6
321 F_SETLK64_NBMAND = 0x2a
322 F_SETLKW = 0x7
323 F_SETLKW64 = 0x7
324 F_SETLK_NBMAND = 0x2a
325 F_SETOWN = 0x18
326 F_SHARE = 0x28
327 F_SHARE_NBMAND = 0x2b
328 F_UNLCK = 0x3
329 F_UNLKSYS = 0x4
330 F_UNSHARE = 0x29
331 F_WRACC = 0x2
332 F_WRDNY = 0x2
333 F_WRLCK = 0x2
334 HUPCL = 0x400
335 ICANON = 0x2
336 ICRNL = 0x100
337 IEXTEN = 0x8000
338 IFF_ADDRCONF = 0x80000
339 IFF_ALLMULTI = 0x200
340 IFF_ANYCAST = 0x400000
341 IFF_BROADCAST = 0x2
342 IFF_CANTCHANGE = 0x7f203003b5a
343 IFF_COS_ENABLED = 0x200000000
344 IFF_DEBUG = 0x4
345 IFF_DEPRECATED = 0x40000
346 IFF_DHCPRUNNING = 0x4000
347 IFF_DUPLICATE = 0x4000000000
348 IFF_FAILED = 0x10000000
349 IFF_FIXEDMTU = 0x1000000000
350 IFF_INACTIVE = 0x40000000
351 IFF_INTELLIGENT = 0x400
352 IFF_IPMP = 0x8000000000
353 IFF_IPMP_CANTCHANGE = 0x10000000
354 IFF_IPMP_INVALID = 0x1ec200080
355 IFF_IPV4 = 0x1000000
356 IFF_IPV6 = 0x2000000
357 IFF_L3PROTECT = 0x40000000000
358 IFF_LOOPBACK = 0x8
359 IFF_MULTICAST = 0x800
360 IFF_MULTI_BCAST = 0x1000
361 IFF_NOACCEPT = 0x4000000
362 IFF_NOARP = 0x80
363 IFF_NOFAILOVER = 0x8000000
364 IFF_NOLINKLOCAL = 0x20000000000
365 IFF_NOLOCAL = 0x20000
366 IFF_NONUD = 0x200000
367 IFF_NORTEXCH = 0x800000
368 IFF_NOTRAILERS = 0x20
369 IFF_NOXMIT = 0x10000
370 IFF_OFFLINE = 0x80000000
371 IFF_POINTOPOINT = 0x10
372 IFF_PREFERRED = 0x400000000
373 IFF_PRIVATE = 0x8000
374 IFF_PROMISC = 0x100
375 IFF_ROUTER = 0x100000
376 IFF_RUNNING = 0x40
377 IFF_STANDBY = 0x20000000
378 IFF_TEMPORARY = 0x800000000
379 IFF_UNNUMBERED = 0x2000
380 IFF_UP = 0x1
381 IFF_VIRTUAL = 0x2000000000
382 IFF_VRRP = 0x10000000000
383 IFF_XRESOLV = 0x100000000
384 IFNAMSIZ = 0x10
385 IFT_1822 = 0x2
386 IFT_6TO4 = 0xca
387 IFT_AAL5 = 0x31
388 IFT_ARCNET = 0x23
389 IFT_ARCNETPLUS = 0x24
390 IFT_ATM = 0x25
391 IFT_CEPT = 0x13
392 IFT_DS3 = 0x1e
393 IFT_EON = 0x19
394 IFT_ETHER = 0x6
395 IFT_FDDI = 0xf
396 IFT_FRELAY = 0x20
397 IFT_FRELAYDCE = 0x2c
398 IFT_HDH1822 = 0x3
399 IFT_HIPPI = 0x2f
400 IFT_HSSI = 0x2e
401 IFT_HY = 0xe
402 IFT_IB = 0xc7
403 IFT_IPV4 = 0xc8
404 IFT_IPV6 = 0xc9
405 IFT_ISDNBASIC = 0x14
406 IFT_ISDNPRIMARY = 0x15
407 IFT_ISO88022LLC = 0x29
408 IFT_ISO88023 = 0x7
409 IFT_ISO88024 = 0x8
410 IFT_ISO88025 = 0x9
411 IFT_ISO88026 = 0xa
412 IFT_LAPB = 0x10
413 IFT_LOCALTALK = 0x2a
414 IFT_LOOP = 0x18
415 IFT_MIOX25 = 0x26
416 IFT_MODEM = 0x30
417 IFT_NSIP = 0x1b
418 IFT_OTHER = 0x1
419 IFT_P10 = 0xc
420 IFT_P80 = 0xd
421 IFT_PARA = 0x22
422 IFT_PPP = 0x17
423 IFT_PROPMUX = 0x36
424 IFT_PROPVIRTUAL = 0x35
425 IFT_PTPSERIAL = 0x16
426 IFT_RS232 = 0x21
427 IFT_SDLC = 0x11
428 IFT_SIP = 0x1f
429 IFT_SLIP = 0x1c
430 IFT_SMDSDXI = 0x2b
431 IFT_SMDSICIP = 0x34
432 IFT_SONET = 0x27
433 IFT_SONETPATH = 0x32
434 IFT_SONETVT = 0x33
435 IFT_STARLAN = 0xb
436 IFT_T1 = 0x12
437 IFT_ULTRA = 0x1d
438 IFT_V35 = 0x2d
439 IFT_X25 = 0x5
440 IFT_X25DDN = 0x4
441 IFT_X25PLE = 0x28
442 IFT_XETHER = 0x1a
443 IGNBRK = 0x1
444 IGNCR = 0x80
445 IGNPAR = 0x4
446 IMAXBEL = 0x2000
447 INLCR = 0x40
448 INPCK = 0x10
449 IN_AUTOCONF_MASK = 0xffff0000
450 IN_AUTOCONF_NET = 0xa9fe0000
451 IN_CLASSA_HOST = 0xffffff
452 IN_CLASSA_MAX = 0x80
453 IN_CLASSA_NET = 0xff000000
454 IN_CLASSA_NSHIFT = 0x18
455 IN_CLASSB_HOST = 0xffff
456 IN_CLASSB_MAX = 0x10000
457 IN_CLASSB_NET = 0xffff0000
458 IN_CLASSB_NSHIFT = 0x10
459 IN_CLASSC_HOST = 0xff
460 IN_CLASSC_NET = 0xffffff00
461 IN_CLASSC_NSHIFT = 0x8
462 IN_CLASSD_HOST = 0xfffffff
463 IN_CLASSD_NET = 0xf0000000
464 IN_CLASSD_NSHIFT = 0x1c
465 IN_CLASSE_NET = 0xffffffff
466 IN_LOOPBACKNET = 0x7f
467 IN_PRIVATE12_MASK = 0xfff00000
468 IN_PRIVATE12_NET = 0xac100000
469 IN_PRIVATE16_MASK = 0xffff0000
470 IN_PRIVATE16_NET = 0xc0a80000
471 IN_PRIVATE8_MASK = 0xff000000
472 IN_PRIVATE8_NET = 0xa000000
473 IPPROTO_AH = 0x33
474 IPPROTO_DSTOPTS = 0x3c
475 IPPROTO_EGP = 0x8
476 IPPROTO_ENCAP = 0x4
477 IPPROTO_EON = 0x50
478 IPPROTO_ESP = 0x32
479 IPPROTO_FRAGMENT = 0x2c
480 IPPROTO_GGP = 0x3
481 IPPROTO_HELLO = 0x3f
482 IPPROTO_HOPOPTS = 0x0
483 IPPROTO_ICMP = 0x1
484 IPPROTO_ICMPV6 = 0x3a
485 IPPROTO_IDP = 0x16
486 IPPROTO_IGMP = 0x2
487 IPPROTO_IP = 0x0
488 IPPROTO_IPV6 = 0x29
489 IPPROTO_MAX = 0x100
490 IPPROTO_ND = 0x4d
491 IPPROTO_NONE = 0x3b
492 IPPROTO_OSPF = 0x59
493 IPPROTO_PIM = 0x67
494 IPPROTO_PUP = 0xc
495 IPPROTO_RAW = 0xff
496 IPPROTO_ROUTING = 0x2b
497 IPPROTO_RSVP = 0x2e
498 IPPROTO_SCTP = 0x84
499 IPPROTO_TCP = 0x6
500 IPPROTO_UDP = 0x11
501 IPV6_ADD_MEMBERSHIP = 0x9
502 IPV6_BOUND_IF = 0x41
503 IPV6_CHECKSUM = 0x18
504 IPV6_DONTFRAG = 0x21
505 IPV6_DROP_MEMBERSHIP = 0xa
506 IPV6_DSTOPTS = 0xf
507 IPV6_FLOWINFO_FLOWLABEL = 0xffff0f00
508 IPV6_FLOWINFO_TCLASS = 0xf00f
509 IPV6_HOPLIMIT = 0xc
510 IPV6_HOPOPTS = 0xe
511 IPV6_JOIN_GROUP = 0x9
512 IPV6_LEAVE_GROUP = 0xa
513 IPV6_MULTICAST_HOPS = 0x7
514 IPV6_MULTICAST_IF = 0x6
515 IPV6_MULTICAST_LOOP = 0x8
516 IPV6_NEXTHOP = 0xd
517 IPV6_PAD1_OPT = 0x0
518 IPV6_PATHMTU = 0x25
519 IPV6_PKTINFO = 0xb
520 IPV6_PREFER_SRC_CGA = 0x20
521 IPV6_PREFER_SRC_CGADEFAULT = 0x10
522 IPV6_PREFER_SRC_CGAMASK = 0x30
523 IPV6_PREFER_SRC_COA = 0x2
524 IPV6_PREFER_SRC_DEFAULT = 0x15
525 IPV6_PREFER_SRC_HOME = 0x1
526 IPV6_PREFER_SRC_MASK = 0x3f
527 IPV6_PREFER_SRC_MIPDEFAULT = 0x1
528 IPV6_PREFER_SRC_MIPMASK = 0x3
529 IPV6_PREFER_SRC_NONCGA = 0x10
530 IPV6_PREFER_SRC_PUBLIC = 0x4
531 IPV6_PREFER_SRC_TMP = 0x8
532 IPV6_PREFER_SRC_TMPDEFAULT = 0x4
533 IPV6_PREFER_SRC_TMPMASK = 0xc
534 IPV6_RECVDSTOPTS = 0x28
535 IPV6_RECVHOPLIMIT = 0x13
536 IPV6_RECVHOPOPTS = 0x14
537 IPV6_RECVPATHMTU = 0x24
538 IPV6_RECVPKTINFO = 0x12
539 IPV6_RECVRTHDR = 0x16
540 IPV6_RECVRTHDRDSTOPTS = 0x17
541 IPV6_RECVTCLASS = 0x19
542 IPV6_RTHDR = 0x10
543 IPV6_RTHDRDSTOPTS = 0x11
544 IPV6_RTHDR_TYPE_0 = 0x0
545 IPV6_SEC_OPT = 0x22
546 IPV6_SRC_PREFERENCES = 0x23
547 IPV6_TCLASS = 0x26
548 IPV6_UNICAST_HOPS = 0x5
549 IPV6_UNSPEC_SRC = 0x42
550 IPV6_USE_MIN_MTU = 0x20
551 IPV6_V6ONLY = 0x27
552 IP_ADD_MEMBERSHIP = 0x13
553 IP_ADD_SOURCE_MEMBERSHIP = 0x17
554 IP_BLOCK_SOURCE = 0x15
555 IP_BOUND_IF = 0x41
556 IP_BROADCAST = 0x106
557 IP_BROADCAST_TTL = 0x43
558 IP_DEFAULT_MULTICAST_LOOP = 0x1
559 IP_DEFAULT_MULTICAST_TTL = 0x1
560 IP_DF = 0x4000
561 IP_DHCPINIT_IF = 0x45
562 IP_DONTFRAG = 0x1b
563 IP_DONTROUTE = 0x105
564 IP_DROP_MEMBERSHIP = 0x14
565 IP_DROP_SOURCE_MEMBERSHIP = 0x18
566 IP_HDRINCL = 0x2
567 IP_MAXPACKET = 0xffff
568 IP_MF = 0x2000
569 IP_MSS = 0x240
570 IP_MULTICAST_IF = 0x10
571 IP_MULTICAST_LOOP = 0x12
572 IP_MULTICAST_TTL = 0x11
573 IP_NEXTHOP = 0x19
574 IP_OPTIONS = 0x1
575 IP_PKTINFO = 0x1a
576 IP_RECVDSTADDR = 0x7
577 IP_RECVIF = 0x9
578 IP_RECVOPTS = 0x5
579 IP_RECVPKTINFO = 0x1a
580 IP_RECVRETOPTS = 0x6
581 IP_RECVSLLA = 0xa
582 IP_RECVTTL = 0xb
583 IP_RETOPTS = 0x8
584 IP_REUSEADDR = 0x104
585 IP_SEC_OPT = 0x22
586 IP_TOS = 0x3
587 IP_TTL = 0x4
588 IP_UNBLOCK_SOURCE = 0x16
589 IP_UNSPEC_SRC = 0x42
590 ISIG = 0x1
591 ISTRIP = 0x20
592 IXANY = 0x800
593 IXOFF = 0x1000
594 IXON = 0x400
595 MADV_ACCESS_DEFAULT = 0x6
596 MADV_ACCESS_LWP = 0x7
597 MADV_ACCESS_MANY = 0x8
598 MADV_DONTNEED = 0x4
599 MADV_FREE = 0x5
600 MADV_NORMAL = 0x0
601 MADV_RANDOM = 0x1
602 MADV_SEQUENTIAL = 0x2
603 MADV_WILLNEED = 0x3
604 MAP_32BIT = 0x80
605 MAP_ALIGN = 0x200
606 MAP_ANON = 0x100
607 MAP_ANONYMOUS = 0x100
608 MAP_FIXED = 0x10
609 MAP_INITDATA = 0x800
610 MAP_NORESERVE = 0x40
611 MAP_PRIVATE = 0x2
612 MAP_RENAME = 0x20
613 MAP_SHARED = 0x1
614 MAP_TEXT = 0x400
615 MAP_TYPE = 0xf
616 MCL_CURRENT = 0x1
617 MCL_FUTURE = 0x2
618 MSG_CTRUNC = 0x10
619 MSG_DONTROUTE = 0x4
620 MSG_DONTWAIT = 0x80
621 MSG_DUPCTRL = 0x800
622 MSG_EOR = 0x8
623 MSG_MAXIOVLEN = 0x10
624 MSG_NOTIFICATION = 0x100
625 MSG_OOB = 0x1
626 MSG_PEEK = 0x2
627 MSG_TRUNC = 0x20
628 MSG_WAITALL = 0x40
629 MSG_XPG4_2 = 0x8000
630 MS_ASYNC = 0x1
631 MS_INVALIDATE = 0x2
632 MS_OLDSYNC = 0x0
633 MS_SYNC = 0x4
634 M_FLUSH = 0x86
635 NOFLSH = 0x80
636 OCRNL = 0x8
637 OFDEL = 0x80
638 OFILL = 0x40
639 ONLCR = 0x4
640 ONLRET = 0x20
641 ONOCR = 0x10
642 OPENFAIL = -0x1
643 OPOST = 0x1
644 O_ACCMODE = 0x600003
645 O_APPEND = 0x8
646 O_CLOEXEC = 0x800000
647 O_CREAT = 0x100
648 O_DSYNC = 0x40
649 O_EXCL = 0x400
650 O_EXEC = 0x400000
651 O_LARGEFILE = 0x2000
652 O_NDELAY = 0x4
653 O_NOCTTY = 0x800
654 O_NOFOLLOW = 0x20000
655 O_NOLINKS = 0x40000
656 O_NONBLOCK = 0x80
657 O_RDONLY = 0x0
658 O_RDWR = 0x2
659 O_RSYNC = 0x8000
660 O_SEARCH = 0x200000
661 O_SIOCGIFCONF = -0x3ff796ec
662 O_SIOCGLIFCONF = -0x3fef9688
663 O_SYNC = 0x10
664 O_TRUNC = 0x200
665 O_WRONLY = 0x1
666 O_XATTR = 0x4000
667 PARENB = 0x100
668 PAREXT = 0x100000
669 PARMRK = 0x8
670 PARODD = 0x200
671 PENDIN = 0x4000
672 PRIO_PGRP = 0x1
673 PRIO_PROCESS = 0x0
674 PRIO_USER = 0x2
675 PROT_EXEC = 0x4
676 PROT_NONE = 0x0
677 PROT_READ = 0x1
678 PROT_WRITE = 0x2
679 RLIMIT_AS = 0x6
680 RLIMIT_CORE = 0x4
681 RLIMIT_CPU = 0x0
682 RLIMIT_DATA = 0x2
683 RLIMIT_FSIZE = 0x1
684 RLIMIT_NOFILE = 0x5
685 RLIMIT_STACK = 0x3
686 RLIM_INFINITY = -0x3
687 RTAX_AUTHOR = 0x6
688 RTAX_BRD = 0x7
689 RTAX_DST = 0x0
690 RTAX_GATEWAY = 0x1
691 RTAX_GENMASK = 0x3
692 RTAX_IFA = 0x5
693 RTAX_IFP = 0x4
694 RTAX_MAX = 0x9
695 RTAX_NETMASK = 0x2
696 RTAX_SRC = 0x8
697 RTA_AUTHOR = 0x40
698 RTA_BRD = 0x80
699 RTA_DST = 0x1
700 RTA_GATEWAY = 0x2
701 RTA_GENMASK = 0x8
702 RTA_IFA = 0x20
703 RTA_IFP = 0x10
704 RTA_NETMASK = 0x4
705 RTA_NUMBITS = 0x9
706 RTA_SRC = 0x100
707 RTF_BLACKHOLE = 0x1000
708 RTF_CLONING = 0x100
709 RTF_DONE = 0x40
710 RTF_DYNAMIC = 0x10
711 RTF_GATEWAY = 0x2
712 RTF_HOST = 0x4
713 RTF_INDIRECT = 0x40000
714 RTF_KERNEL = 0x80000
715 RTF_LLINFO = 0x400
716 RTF_MASK = 0x80
717 RTF_MODIFIED = 0x20
718 RTF_MULTIRT = 0x10000
719 RTF_PRIVATE = 0x2000
720 RTF_PROTO1 = 0x8000
721 RTF_PROTO2 = 0x4000
722 RTF_REJECT = 0x8
723 RTF_SETSRC = 0x20000
724 RTF_STATIC = 0x800
725 RTF_UP = 0x1
726 RTF_XRESOLVE = 0x200
727 RTF_ZONE = 0x100000
728 RTM_ADD = 0x1
729 RTM_CHANGE = 0x3
730 RTM_CHGADDR = 0xf
731 RTM_DELADDR = 0xd
732 RTM_DELETE = 0x2
733 RTM_FREEADDR = 0x10
734 RTM_GET = 0x4
735 RTM_IFINFO = 0xe
736 RTM_LOCK = 0x8
737 RTM_LOSING = 0x5
738 RTM_MISS = 0x7
739 RTM_NEWADDR = 0xc
740 RTM_OLDADD = 0x9
741 RTM_OLDDEL = 0xa
742 RTM_REDIRECT = 0x6
743 RTM_RESOLVE = 0xb
744 RTM_VERSION = 0x3
745 RTV_EXPIRE = 0x4
746 RTV_HOPCOUNT = 0x2
747 RTV_MTU = 0x1
748 RTV_RPIPE = 0x8
749 RTV_RTT = 0x40
750 RTV_RTTVAR = 0x80
751 RTV_SPIPE = 0x10
752 RTV_SSTHRESH = 0x20
753 RT_AWARE = 0x1
754 RUSAGE_CHILDREN = -0x1
755 RUSAGE_SELF = 0x0
756 SCM_RIGHTS = 0x1010
757 SCM_TIMESTAMP = 0x1013
758 SCM_UCRED = 0x1012
759 SHUT_RD = 0x0
760 SHUT_RDWR = 0x2
761 SHUT_WR = 0x1
762 SIG2STR_MAX = 0x20
763 SIOCADDMULTI = -0x7fdf96cf
764 SIOCADDRT = -0x7fcf8df6
765 SIOCATMARK = 0x40047307
766 SIOCDARP = -0x7fdb96e0
767 SIOCDELMULTI = -0x7fdf96ce
768 SIOCDELRT = -0x7fcf8df5
769 SIOCDXARP = -0x7fff9658
770 SIOCGARP = -0x3fdb96e1
771 SIOCGDSTINFO = -0x3fff965c
772 SIOCGENADDR = -0x3fdf96ab
773 SIOCGENPSTATS = -0x3fdf96c7
774 SIOCGETLSGCNT = -0x3fef8deb
775 SIOCGETNAME = 0x40107334
776 SIOCGETPEER = 0x40107335
777 SIOCGETPROP = -0x3fff8f44
778 SIOCGETSGCNT = -0x3feb8deb
779 SIOCGETSYNC = -0x3fdf96d3
780 SIOCGETVIFCNT = -0x3feb8dec
781 SIOCGHIWAT = 0x40047301
782 SIOCGIFADDR = -0x3fdf96f3
783 SIOCGIFBRDADDR = -0x3fdf96e9
784 SIOCGIFCONF = -0x3ff796a4
785 SIOCGIFDSTADDR = -0x3fdf96f1
786 SIOCGIFFLAGS = -0x3fdf96ef
787 SIOCGIFHWADDR = -0x3fdf9647
788 SIOCGIFINDEX = -0x3fdf96a6
789 SIOCGIFMEM = -0x3fdf96ed
790 SIOCGIFMETRIC = -0x3fdf96e5
791 SIOCGIFMTU = -0x3fdf96ea
792 SIOCGIFMUXID = -0x3fdf96a8
793 SIOCGIFNETMASK = -0x3fdf96e7
794 SIOCGIFNUM = 0x40046957
795 SIOCGIP6ADDRPOLICY = -0x3fff965e
796 SIOCGIPMSFILTER = -0x3ffb964c
797 SIOCGLIFADDR = -0x3f87968f
798 SIOCGLIFBINDING = -0x3f879666
799 SIOCGLIFBRDADDR = -0x3f879685
800 SIOCGLIFCONF = -0x3fef965b
801 SIOCGLIFDADSTATE = -0x3f879642
802 SIOCGLIFDSTADDR = -0x3f87968d
803 SIOCGLIFFLAGS = -0x3f87968b
804 SIOCGLIFGROUPINFO = -0x3f4b9663
805 SIOCGLIFGROUPNAME = -0x3f879664
806 SIOCGLIFHWADDR = -0x3f879640
807 SIOCGLIFINDEX = -0x3f87967b
808 SIOCGLIFLNKINFO = -0x3f879674
809 SIOCGLIFMETRIC = -0x3f879681
810 SIOCGLIFMTU = -0x3f879686
811 SIOCGLIFMUXID = -0x3f87967d
812 SIOCGLIFNETMASK = -0x3f879683
813 SIOCGLIFNUM = -0x3ff3967e
814 SIOCGLIFSRCOF = -0x3fef964f
815 SIOCGLIFSUBNET = -0x3f879676
816 SIOCGLIFTOKEN = -0x3f879678
817 SIOCGLIFUSESRC = -0x3f879651
818 SIOCGLIFZONE = -0x3f879656
819 SIOCGLOWAT = 0x40047303
820 SIOCGMSFILTER = -0x3ffb964e
821 SIOCGPGRP = 0x40047309
822 SIOCGSTAMP = -0x3fef9646
823 SIOCGXARP = -0x3fff9659
824 SIOCIFDETACH = -0x7fdf96c8
825 SIOCILB = -0x3ffb9645
826 SIOCLIFADDIF = -0x3f879691
827 SIOCLIFDELND = -0x7f879673
828 SIOCLIFGETND = -0x3f879672
829 SIOCLIFREMOVEIF = -0x7f879692
830 SIOCLIFSETND = -0x7f879671
831 SIOCLOWER = -0x7fdf96d7
832 SIOCSARP = -0x7fdb96e2
833 SIOCSCTPGOPT = -0x3fef9653
834 SIOCSCTPPEELOFF = -0x3ffb9652
835 SIOCSCTPSOPT = -0x7fef9654
836 SIOCSENABLESDP = -0x3ffb9649
837 SIOCSETPROP = -0x7ffb8f43
838 SIOCSETSYNC = -0x7fdf96d4
839 SIOCSHIWAT = -0x7ffb8d00
840 SIOCSIFADDR = -0x7fdf96f4
841 SIOCSIFBRDADDR = -0x7fdf96e8
842 SIOCSIFDSTADDR = -0x7fdf96f2
843 SIOCSIFFLAGS = -0x7fdf96f0
844 SIOCSIFINDEX = -0x7fdf96a5
845 SIOCSIFMEM = -0x7fdf96ee
846 SIOCSIFMETRIC = -0x7fdf96e4
847 SIOCSIFMTU = -0x7fdf96eb
848 SIOCSIFMUXID = -0x7fdf96a7
849 SIOCSIFNAME = -0x7fdf96b7
850 SIOCSIFNETMASK = -0x7fdf96e6
851 SIOCSIP6ADDRPOLICY = -0x7fff965d
852 SIOCSIPMSFILTER = -0x7ffb964b
853 SIOCSLGETREQ = -0x3fdf96b9
854 SIOCSLIFADDR = -0x7f879690
855 SIOCSLIFBRDADDR = -0x7f879684
856 SIOCSLIFDSTADDR = -0x7f87968e
857 SIOCSLIFFLAGS = -0x7f87968c
858 SIOCSLIFGROUPNAME = -0x7f879665
859 SIOCSLIFINDEX = -0x7f87967a
860 SIOCSLIFLNKINFO = -0x7f879675
861 SIOCSLIFMETRIC = -0x7f879680
862 SIOCSLIFMTU = -0x7f879687
863 SIOCSLIFMUXID = -0x7f87967c
864 SIOCSLIFNAME = -0x3f87967f
865 SIOCSLIFNETMASK = -0x7f879682
866 SIOCSLIFPREFIX = -0x3f879641
867 SIOCSLIFSUBNET = -0x7f879677
868 SIOCSLIFTOKEN = -0x7f879679
869 SIOCSLIFUSESRC = -0x7f879650
870 SIOCSLIFZONE = -0x7f879655
871 SIOCSLOWAT = -0x7ffb8cfe
872 SIOCSLSTAT = -0x7fdf96b8
873 SIOCSMSFILTER = -0x7ffb964d
874 SIOCSPGRP = -0x7ffb8cf8
875 SIOCSPROMISC = -0x7ffb96d0
876 SIOCSQPTR = -0x3ffb9648
877 SIOCSSDSTATS = -0x3fdf96d2
878 SIOCSSESTATS = -0x3fdf96d1
879 SIOCSXARP = -0x7fff965a
880 SIOCTMYADDR = -0x3ff79670
881 SIOCTMYSITE = -0x3ff7966e
882 SIOCTONLINK = -0x3ff7966f
883 SIOCUPPER = -0x7fdf96d8
884 SIOCX25RCV = -0x3fdf96c4
885 SIOCX25TBL = -0x3fdf96c3
886 SIOCX25XMT = -0x3fdf96c5
887 SIOCXPROTO = 0x20007337
888 SOCK_CLOEXEC = 0x80000
889 SOCK_DGRAM = 0x1
890 SOCK_NDELAY = 0x200000
891 SOCK_NONBLOCK = 0x100000
892 SOCK_RAW = 0x4
893 SOCK_RDM = 0x5
894 SOCK_SEQPACKET = 0x6
895 SOCK_STREAM = 0x2
896 SOCK_TYPE_MASK = 0xffff
897 SOL_FILTER = 0xfffc
898 SOL_PACKET = 0xfffd
899 SOL_ROUTE = 0xfffe
900 SOL_SOCKET = 0xffff
901 SOMAXCONN = 0x80
902 SO_ACCEPTCONN = 0x2
903 SO_ALL = 0x3f
904 SO_ALLZONES = 0x1014
905 SO_ANON_MLP = 0x100a
906 SO_ATTACH_FILTER = 0x40000001
907 SO_BAND = 0x4000
908 SO_BROADCAST = 0x20
909 SO_COPYOPT = 0x80000
910 SO_DEBUG = 0x1
911 SO_DELIM = 0x8000
912 SO_DETACH_FILTER = 0x40000002
913 SO_DGRAM_ERRIND = 0x200
914 SO_DOMAIN = 0x100c
915 SO_DONTLINGER = -0x81
916 SO_DONTROUTE = 0x10
917 SO_ERROPT = 0x40000
918 SO_ERROR = 0x1007
919 SO_EXCLBIND = 0x1015
920 SO_HIWAT = 0x10
921 SO_ISNTTY = 0x800
922 SO_ISTTY = 0x400
923 SO_KEEPALIVE = 0x8
924 SO_LINGER = 0x80
925 SO_LOWAT = 0x20
926 SO_MAC_EXEMPT = 0x100b
927 SO_MAC_IMPLICIT = 0x1016
928 SO_MAXBLK = 0x100000
929 SO_MAXPSZ = 0x8
930 SO_MINPSZ = 0x4
931 SO_MREADOFF = 0x80
932 SO_MREADON = 0x40
933 SO_NDELOFF = 0x200
934 SO_NDELON = 0x100
935 SO_NODELIM = 0x10000
936 SO_OOBINLINE = 0x100
937 SO_PROTOTYPE = 0x1009
938 SO_RCVBUF = 0x1002
939 SO_RCVLOWAT = 0x1004
940 SO_RCVPSH = 0x100d
941 SO_RCVTIMEO = 0x1006
942 SO_READOPT = 0x1
943 SO_RECVUCRED = 0x400
944 SO_REUSEADDR = 0x4
945 SO_SECATTR = 0x1011
946 SO_SNDBUF = 0x1001
947 SO_SNDLOWAT = 0x1003
948 SO_SNDTIMEO = 0x1005
949 SO_STRHOLD = 0x20000
950 SO_TAIL = 0x200000
951 SO_TIMESTAMP = 0x1013
952 SO_TONSTOP = 0x2000
953 SO_TOSTOP = 0x1000
954 SO_TYPE = 0x1008
955 SO_USELOOPBACK = 0x40
956 SO_VRRP = 0x1017
957 SO_WROFF = 0x2
958 TCFLSH = 0x5407
959 TCGETA = 0x5401
960 TCGETS = 0x540d
961 TCIFLUSH = 0x0
962 TCIOFLUSH = 0x2
963 TCOFLUSH = 0x1
964 TCP_ABORT_THRESHOLD = 0x11
965 TCP_ANONPRIVBIND = 0x20
966 TCP_CONN_ABORT_THRESHOLD = 0x13
967 TCP_CONN_NOTIFY_THRESHOLD = 0x12
968 TCP_CORK = 0x18
969 TCP_EXCLBIND = 0x21
970 TCP_INIT_CWND = 0x15
971 TCP_KEEPALIVE = 0x8
972 TCP_KEEPALIVE_ABORT_THRESHOLD = 0x17
973 TCP_KEEPALIVE_THRESHOLD = 0x16
974 TCP_KEEPCNT = 0x23
975 TCP_KEEPIDLE = 0x22
976 TCP_KEEPINTVL = 0x24
977 TCP_LINGER2 = 0x1c
978 TCP_MAXSEG = 0x2
979 TCP_MSS = 0x218
980 TCP_NODELAY = 0x1
981 TCP_NOTIFY_THRESHOLD = 0x10
982 TCP_RECVDSTADDR = 0x14
983 TCP_RTO_INITIAL = 0x19
984 TCP_RTO_MAX = 0x1b
985 TCP_RTO_MIN = 0x1a
986 TCSAFLUSH = 0x5410
987 TCSBRK = 0x5405
988 TCSETA = 0x5402
989 TCSETAF = 0x5404
990 TCSETAW = 0x5403
991 TCSETS = 0x540e
992 TCSETSF = 0x5410
993 TCSETSW = 0x540f
994 TCXONC = 0x5406
995 TIOC = 0x5400
996 TIOCCBRK = 0x747a
997 TIOCCDTR = 0x7478
998 TIOCCILOOP = 0x746c
999 TIOCEXCL = 0x740d
1000 TIOCFLUSH = 0x7410
1001 TIOCGETC = 0x7412
1002 TIOCGETD = 0x7400
1003 TIOCGETP = 0x7408
1004 TIOCGLTC = 0x7474
1005 TIOCGPGRP = 0x7414
1006 TIOCGPPS = 0x547d
1007 TIOCGPPSEV = 0x547f
1008 TIOCGSID = 0x7416
1009 TIOCGSOFTCAR = 0x5469
1010 TIOCGWINSZ = 0x5468
1011 TIOCHPCL = 0x7402
1012 TIOCKBOF = 0x5409
1013 TIOCKBON = 0x5408
1014 TIOCLBIC = 0x747e
1015 TIOCLBIS = 0x747f
1016 TIOCLGET = 0x747c
1017 TIOCLSET = 0x747d
1018 TIOCMBIC = 0x741c
1019 TIOCMBIS = 0x741b
1020 TIOCMGET = 0x741d
1021 TIOCMSET = 0x741a
1022 TIOCM_CAR = 0x40
1023 TIOCM_CD = 0x40
1024 TIOCM_CTS = 0x20
1025 TIOCM_DSR = 0x100
1026 TIOCM_DTR = 0x2
1027 TIOCM_LE = 0x1
1028 TIOCM_RI = 0x80
1029 TIOCM_RNG = 0x80
1030 TIOCM_RTS = 0x4
1031 TIOCM_SR = 0x10
1032 TIOCM_ST = 0x8
1033 TIOCNOTTY = 0x7471
1034 TIOCNXCL = 0x740e
1035 TIOCOUTQ = 0x7473
1036 TIOCREMOTE = 0x741e
1037 TIOCSBRK = 0x747b
1038 TIOCSCTTY = 0x7484
1039 TIOCSDTR = 0x7479
1040 TIOCSETC = 0x7411
1041 TIOCSETD = 0x7401
1042 TIOCSETN = 0x740a
1043 TIOCSETP = 0x7409
1044 TIOCSIGNAL = 0x741f
1045 TIOCSILOOP = 0x746d
1046 TIOCSLTC = 0x7475
1047 TIOCSPGRP = 0x7415
1048 TIOCSPPS = 0x547e
1049 TIOCSSOFTCAR = 0x546a
1050 TIOCSTART = 0x746e
1051 TIOCSTI = 0x7417
1052 TIOCSTOP = 0x746f
1053 TIOCSWINSZ = 0x5467
1054 TOSTOP = 0x100
1055 VCEOF = 0x8
1056 VCEOL = 0x9
1057 VDISCARD = 0xd
1058 VDSUSP = 0xb
1059 VEOF = 0x4
1060 VEOL = 0x5
1061 VEOL2 = 0x6
1062 VERASE = 0x2
1063 VINTR = 0x0
1064 VKILL = 0x3
1065 VLNEXT = 0xf
1066 VMIN = 0x4
1067 VQUIT = 0x1
1068 VREPRINT = 0xc
1069 VSTART = 0x8
1070 VSTATUS = 0x10
1071 VSTOP = 0x9
1072 VSUSP = 0xa
1073 VSWTCH = 0x7
1074 VT0 = 0x0
1075 VT1 = 0x4000
1076 VTDLY = 0x4000
1077 VTIME = 0x5
1078 VWERASE = 0xe
1079 WCONTFLG = 0xffff
1080 WCONTINUED = 0x8
1081 WCOREFLG = 0x80
1082 WEXITED = 0x1
1083 WNOHANG = 0x40
1084 WNOWAIT = 0x80
1085 WOPTMASK = 0xcf
1086 WRAP = 0x20000
1087 WSIGMASK = 0x7f
1088 WSTOPFLG = 0x7f
1089 WSTOPPED = 0x4
1090 WTRAPPED = 0x2
1091 WUNTRACED = 0x4
1092)
1093
1094// Errors
1095const (
1096 E2BIG = syscall.Errno(0x7)
1097 EACCES = syscall.Errno(0xd)
1098 EADDRINUSE = syscall.Errno(0x7d)
1099 EADDRNOTAVAIL = syscall.Errno(0x7e)
1100 EADV = syscall.Errno(0x44)
1101 EAFNOSUPPORT = syscall.Errno(0x7c)
1102 EAGAIN = syscall.Errno(0xb)
1103 EALREADY = syscall.Errno(0x95)
1104 EBADE = syscall.Errno(0x32)
1105 EBADF = syscall.Errno(0x9)
1106 EBADFD = syscall.Errno(0x51)
1107 EBADMSG = syscall.Errno(0x4d)
1108 EBADR = syscall.Errno(0x33)
1109 EBADRQC = syscall.Errno(0x36)
1110 EBADSLT = syscall.Errno(0x37)
1111 EBFONT = syscall.Errno(0x39)
1112 EBUSY = syscall.Errno(0x10)
1113 ECANCELED = syscall.Errno(0x2f)
1114 ECHILD = syscall.Errno(0xa)
1115 ECHRNG = syscall.Errno(0x25)
1116 ECOMM = syscall.Errno(0x46)
1117 ECONNABORTED = syscall.Errno(0x82)
1118 ECONNREFUSED = syscall.Errno(0x92)
1119 ECONNRESET = syscall.Errno(0x83)
1120 EDEADLK = syscall.Errno(0x2d)
1121 EDEADLOCK = syscall.Errno(0x38)
1122 EDESTADDRREQ = syscall.Errno(0x60)
1123 EDOM = syscall.Errno(0x21)
1124 EDQUOT = syscall.Errno(0x31)
1125 EEXIST = syscall.Errno(0x11)
1126 EFAULT = syscall.Errno(0xe)
1127 EFBIG = syscall.Errno(0x1b)
1128 EHOSTDOWN = syscall.Errno(0x93)
1129 EHOSTUNREACH = syscall.Errno(0x94)
1130 EIDRM = syscall.Errno(0x24)
1131 EILSEQ = syscall.Errno(0x58)
1132 EINPROGRESS = syscall.Errno(0x96)
1133 EINTR = syscall.Errno(0x4)
1134 EINVAL = syscall.Errno(0x16)
1135 EIO = syscall.Errno(0x5)
1136 EISCONN = syscall.Errno(0x85)
1137 EISDIR = syscall.Errno(0x15)
1138 EL2HLT = syscall.Errno(0x2c)
1139 EL2NSYNC = syscall.Errno(0x26)
1140 EL3HLT = syscall.Errno(0x27)
1141 EL3RST = syscall.Errno(0x28)
1142 ELIBACC = syscall.Errno(0x53)
1143 ELIBBAD = syscall.Errno(0x54)
1144 ELIBEXEC = syscall.Errno(0x57)
1145 ELIBMAX = syscall.Errno(0x56)
1146 ELIBSCN = syscall.Errno(0x55)
1147 ELNRNG = syscall.Errno(0x29)
1148 ELOCKUNMAPPED = syscall.Errno(0x48)
1149 ELOOP = syscall.Errno(0x5a)
1150 EMFILE = syscall.Errno(0x18)
1151 EMLINK = syscall.Errno(0x1f)
1152 EMSGSIZE = syscall.Errno(0x61)
1153 EMULTIHOP = syscall.Errno(0x4a)
1154 ENAMETOOLONG = syscall.Errno(0x4e)
1155 ENETDOWN = syscall.Errno(0x7f)
1156 ENETRESET = syscall.Errno(0x81)
1157 ENETUNREACH = syscall.Errno(0x80)
1158 ENFILE = syscall.Errno(0x17)
1159 ENOANO = syscall.Errno(0x35)
1160 ENOBUFS = syscall.Errno(0x84)
1161 ENOCSI = syscall.Errno(0x2b)
1162 ENODATA = syscall.Errno(0x3d)
1163 ENODEV = syscall.Errno(0x13)
1164 ENOENT = syscall.Errno(0x2)
1165 ENOEXEC = syscall.Errno(0x8)
1166 ENOLCK = syscall.Errno(0x2e)
1167 ENOLINK = syscall.Errno(0x43)
1168 ENOMEM = syscall.Errno(0xc)
1169 ENOMSG = syscall.Errno(0x23)
1170 ENONET = syscall.Errno(0x40)
1171 ENOPKG = syscall.Errno(0x41)
1172 ENOPROTOOPT = syscall.Errno(0x63)
1173 ENOSPC = syscall.Errno(0x1c)
1174 ENOSR = syscall.Errno(0x3f)
1175 ENOSTR = syscall.Errno(0x3c)
1176 ENOSYS = syscall.Errno(0x59)
1177 ENOTACTIVE = syscall.Errno(0x49)
1178 ENOTBLK = syscall.Errno(0xf)
1179 ENOTCONN = syscall.Errno(0x86)
1180 ENOTDIR = syscall.Errno(0x14)
1181 ENOTEMPTY = syscall.Errno(0x5d)
1182 ENOTRECOVERABLE = syscall.Errno(0x3b)
1183 ENOTSOCK = syscall.Errno(0x5f)
1184 ENOTSUP = syscall.Errno(0x30)
1185 ENOTTY = syscall.Errno(0x19)
1186 ENOTUNIQ = syscall.Errno(0x50)
1187 ENXIO = syscall.Errno(0x6)
1188 EOPNOTSUPP = syscall.Errno(0x7a)
1189 EOVERFLOW = syscall.Errno(0x4f)
1190 EOWNERDEAD = syscall.Errno(0x3a)
1191 EPERM = syscall.Errno(0x1)
1192 EPFNOSUPPORT = syscall.Errno(0x7b)
1193 EPIPE = syscall.Errno(0x20)
1194 EPROTO = syscall.Errno(0x47)
1195 EPROTONOSUPPORT = syscall.Errno(0x78)
1196 EPROTOTYPE = syscall.Errno(0x62)
1197 ERANGE = syscall.Errno(0x22)
1198 EREMCHG = syscall.Errno(0x52)
1199 EREMOTE = syscall.Errno(0x42)
1200 ERESTART = syscall.Errno(0x5b)
1201 EROFS = syscall.Errno(0x1e)
1202 ESHUTDOWN = syscall.Errno(0x8f)
1203 ESOCKTNOSUPPORT = syscall.Errno(0x79)
1204 ESPIPE = syscall.Errno(0x1d)
1205 ESRCH = syscall.Errno(0x3)
1206 ESRMNT = syscall.Errno(0x45)
1207 ESTALE = syscall.Errno(0x97)
1208 ESTRPIPE = syscall.Errno(0x5c)
1209 ETIME = syscall.Errno(0x3e)
1210 ETIMEDOUT = syscall.Errno(0x91)
1211 ETOOMANYREFS = syscall.Errno(0x90)
1212 ETXTBSY = syscall.Errno(0x1a)
1213 EUNATCH = syscall.Errno(0x2a)
1214 EUSERS = syscall.Errno(0x5e)
1215 EWOULDBLOCK = syscall.Errno(0xb)
1216 EXDEV = syscall.Errno(0x12)
1217 EXFULL = syscall.Errno(0x34)
1218)
1219
1220// Signals
1221const (
1222 SIGABRT = syscall.Signal(0x6)
1223 SIGALRM = syscall.Signal(0xe)
1224 SIGBUS = syscall.Signal(0xa)
1225 SIGCANCEL = syscall.Signal(0x24)
1226 SIGCHLD = syscall.Signal(0x12)
1227 SIGCLD = syscall.Signal(0x12)
1228 SIGCONT = syscall.Signal(0x19)
1229 SIGEMT = syscall.Signal(0x7)
1230 SIGFPE = syscall.Signal(0x8)
1231 SIGFREEZE = syscall.Signal(0x22)
1232 SIGHUP = syscall.Signal(0x1)
1233 SIGILL = syscall.Signal(0x4)
1234 SIGINFO = syscall.Signal(0x29)
1235 SIGINT = syscall.Signal(0x2)
1236 SIGIO = syscall.Signal(0x16)
1237 SIGIOT = syscall.Signal(0x6)
1238 SIGJVM1 = syscall.Signal(0x27)
1239 SIGJVM2 = syscall.Signal(0x28)
1240 SIGKILL = syscall.Signal(0x9)
1241 SIGLOST = syscall.Signal(0x25)
1242 SIGLWP = syscall.Signal(0x21)
1243 SIGPIPE = syscall.Signal(0xd)
1244 SIGPOLL = syscall.Signal(0x16)
1245 SIGPROF = syscall.Signal(0x1d)
1246 SIGPWR = syscall.Signal(0x13)
1247 SIGQUIT = syscall.Signal(0x3)
1248 SIGSEGV = syscall.Signal(0xb)
1249 SIGSTOP = syscall.Signal(0x17)
1250 SIGSYS = syscall.Signal(0xc)
1251 SIGTERM = syscall.Signal(0xf)
1252 SIGTHAW = syscall.Signal(0x23)
1253 SIGTRAP = syscall.Signal(0x5)
1254 SIGTSTP = syscall.Signal(0x18)
1255 SIGTTIN = syscall.Signal(0x1a)
1256 SIGTTOU = syscall.Signal(0x1b)
1257 SIGURG = syscall.Signal(0x15)
1258 SIGUSR1 = syscall.Signal(0x10)
1259 SIGUSR2 = syscall.Signal(0x11)
1260 SIGVTALRM = syscall.Signal(0x1c)
1261 SIGWAITING = syscall.Signal(0x20)
1262 SIGWINCH = syscall.Signal(0x14)
1263 SIGXCPU = syscall.Signal(0x1e)
1264 SIGXFSZ = syscall.Signal(0x1f)
1265 SIGXRES = syscall.Signal(0x26)
1266)
1267
1268// Error table
1269var errors = [...]string{
1270 1: "not owner",
1271 2: "no such file or directory",
1272 3: "no such process",
1273 4: "interrupted system call",
1274 5: "I/O error",
1275 6: "no such device or address",
1276 7: "arg list too long",
1277 8: "exec format error",
1278 9: "bad file number",
1279 10: "no child processes",
1280 11: "resource temporarily unavailable",
1281 12: "not enough space",
1282 13: "permission denied",
1283 14: "bad address",
1284 15: "block device required",
1285 16: "device busy",
1286 17: "file exists",
1287 18: "cross-device link",
1288 19: "no such device",
1289 20: "not a directory",
1290 21: "is a directory",
1291 22: "invalid argument",
1292 23: "file table overflow",
1293 24: "too many open files",
1294 25: "inappropriate ioctl for device",
1295 26: "text file busy",
1296 27: "file too large",
1297 28: "no space left on device",
1298 29: "illegal seek",
1299 30: "read-only file system",
1300 31: "too many links",
1301 32: "broken pipe",
1302 33: "argument out of domain",
1303 34: "result too large",
1304 35: "no message of desired type",
1305 36: "identifier removed",
1306 37: "channel number out of range",
1307 38: "level 2 not synchronized",
1308 39: "level 3 halted",
1309 40: "level 3 reset",
1310 41: "link number out of range",
1311 42: "protocol driver not attached",
1312 43: "no CSI structure available",
1313 44: "level 2 halted",
1314 45: "deadlock situation detected/avoided",
1315 46: "no record locks available",
1316 47: "operation canceled",
1317 48: "operation not supported",
1318 49: "disc quota exceeded",
1319 50: "bad exchange descriptor",
1320 51: "bad request descriptor",
1321 52: "message tables full",
1322 53: "anode table overflow",
1323 54: "bad request code",
1324 55: "invalid slot",
1325 56: "file locking deadlock",
1326 57: "bad font file format",
1327 58: "owner of the lock died",
1328 59: "lock is not recoverable",
1329 60: "not a stream device",
1330 61: "no data available",
1331 62: "timer expired",
1332 63: "out of stream resources",
1333 64: "machine is not on the network",
1334 65: "package not installed",
1335 66: "object is remote",
1336 67: "link has been severed",
1337 68: "advertise error",
1338 69: "srmount error",
1339 70: "communication error on send",
1340 71: "protocol error",
1341 72: "locked lock was unmapped ",
1342 73: "facility is not active",
1343 74: "multihop attempted",
1344 77: "not a data message",
1345 78: "file name too long",
1346 79: "value too large for defined data type",
1347 80: "name not unique on network",
1348 81: "file descriptor in bad state",
1349 82: "remote address changed",
1350 83: "can not access a needed shared library",
1351 84: "accessing a corrupted shared library",
1352 85: ".lib section in a.out corrupted",
1353 86: "attempting to link in more shared libraries than system limit",
1354 87: "can not exec a shared library directly",
1355 88: "illegal byte sequence",
1356 89: "operation not applicable",
1357 90: "number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS",
1358 91: "error 91",
1359 92: "error 92",
1360 93: "directory not empty",
1361 94: "too many users",
1362 95: "socket operation on non-socket",
1363 96: "destination address required",
1364 97: "message too long",
1365 98: "protocol wrong type for socket",
1366 99: "option not supported by protocol",
1367 120: "protocol not supported",
1368 121: "socket type not supported",
1369 122: "operation not supported on transport endpoint",
1370 123: "protocol family not supported",
1371 124: "address family not supported by protocol family",
1372 125: "address already in use",
1373 126: "cannot assign requested address",
1374 127: "network is down",
1375 128: "network is unreachable",
1376 129: "network dropped connection because of reset",
1377 130: "software caused connection abort",
1378 131: "connection reset by peer",
1379 132: "no buffer space available",
1380 133: "transport endpoint is already connected",
1381 134: "transport endpoint is not connected",
1382 143: "cannot send after socket shutdown",
1383 144: "too many references: cannot splice",
1384 145: "connection timed out",
1385 146: "connection refused",
1386 147: "host is down",
1387 148: "no route to host",
1388 149: "operation already in progress",
1389 150: "operation now in progress",
1390 151: "stale NFS file handle",
1391}
1392
1393// Signal table
1394var signals = [...]string{
1395 1: "hangup",
1396 2: "interrupt",
1397 3: "quit",
1398 4: "illegal Instruction",
1399 5: "trace/Breakpoint Trap",
1400 6: "abort",
1401 7: "emulation Trap",
1402 8: "arithmetic Exception",
1403 9: "killed",
1404 10: "bus Error",
1405 11: "segmentation Fault",
1406 12: "bad System Call",
1407 13: "broken Pipe",
1408 14: "alarm Clock",
1409 15: "terminated",
1410 16: "user Signal 1",
1411 17: "user Signal 2",
1412 18: "child Status Changed",
1413 19: "power-Fail/Restart",
1414 20: "window Size Change",
1415 21: "urgent Socket Condition",
1416 22: "pollable Event",
1417 23: "stopped (signal)",
1418 24: "stopped (user)",
1419 25: "continued",
1420 26: "stopped (tty input)",
1421 27: "stopped (tty output)",
1422 28: "virtual Timer Expired",
1423 29: "profiling Timer Expired",
1424 30: "cpu Limit Exceeded",
1425 31: "file Size Limit Exceeded",
1426 32: "no runnable lwp",
1427 33: "inter-lwp signal",
1428 34: "checkpoint Freeze",
1429 35: "checkpoint Thaw",
1430 36: "thread Cancellation",
1431 37: "resource Lost",
1432 38: "resource Control Exceeded",
1433 39: "reserved for JVM 1",
1434 40: "reserved for JVM 2",
1435 41: "information Request",
1436}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_386.go
deleted file mode 100644
index a15aaf1..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_386.go
+++ /dev/null
@@ -1,1426 +0,0 @@
1// mksyscall.pl -l32 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,darwin
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
271 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
272 if e1 != 0 {
273 err = errnoErr(e1)
274 }
275 return
276}
277
278// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
279
280func pipe() (r int, w int, err error) {
281 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
282 r = int(r0)
283 w = int(r1)
284 if e1 != 0 {
285 err = errnoErr(e1)
286 }
287 return
288}
289
290// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
291
292func kill(pid int, signum int, posix int) (err error) {
293 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
294 if e1 != 0 {
295 err = errnoErr(e1)
296 }
297 return
298}
299
300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
301
302func Access(path string, mode uint32) (err error) {
303 var _p0 *byte
304 _p0, err = BytePtrFromString(path)
305 if err != nil {
306 return
307 }
308 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
309 use(unsafe.Pointer(_p0))
310 if e1 != 0 {
311 err = errnoErr(e1)
312 }
313 return
314}
315
316// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
317
318func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
319 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
320 if e1 != 0 {
321 err = errnoErr(e1)
322 }
323 return
324}
325
326// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
327
328func Chdir(path string) (err error) {
329 var _p0 *byte
330 _p0, err = BytePtrFromString(path)
331 if err != nil {
332 return
333 }
334 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
335 use(unsafe.Pointer(_p0))
336 if e1 != 0 {
337 err = errnoErr(e1)
338 }
339 return
340}
341
342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
343
344func Chflags(path string, flags int) (err error) {
345 var _p0 *byte
346 _p0, err = BytePtrFromString(path)
347 if err != nil {
348 return
349 }
350 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
351 use(unsafe.Pointer(_p0))
352 if e1 != 0 {
353 err = errnoErr(e1)
354 }
355 return
356}
357
358// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
359
360func Chmod(path string, mode uint32) (err error) {
361 var _p0 *byte
362 _p0, err = BytePtrFromString(path)
363 if err != nil {
364 return
365 }
366 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
367 use(unsafe.Pointer(_p0))
368 if e1 != 0 {
369 err = errnoErr(e1)
370 }
371 return
372}
373
374// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
375
376func Chown(path string, uid int, gid int) (err error) {
377 var _p0 *byte
378 _p0, err = BytePtrFromString(path)
379 if err != nil {
380 return
381 }
382 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
383 use(unsafe.Pointer(_p0))
384 if e1 != 0 {
385 err = errnoErr(e1)
386 }
387 return
388}
389
390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
391
392func Chroot(path string) (err error) {
393 var _p0 *byte
394 _p0, err = BytePtrFromString(path)
395 if err != nil {
396 return
397 }
398 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
399 use(unsafe.Pointer(_p0))
400 if e1 != 0 {
401 err = errnoErr(e1)
402 }
403 return
404}
405
406// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
407
408func Close(fd int) (err error) {
409 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
410 if e1 != 0 {
411 err = errnoErr(e1)
412 }
413 return
414}
415
416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
417
418func Dup(fd int) (nfd int, err error) {
419 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
420 nfd = int(r0)
421 if e1 != 0 {
422 err = errnoErr(e1)
423 }
424 return
425}
426
427// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
428
429func Dup2(from int, to int) (err error) {
430 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
431 if e1 != 0 {
432 err = errnoErr(e1)
433 }
434 return
435}
436
437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
438
439func Exchangedata(path1 string, path2 string, options int) (err error) {
440 var _p0 *byte
441 _p0, err = BytePtrFromString(path1)
442 if err != nil {
443 return
444 }
445 var _p1 *byte
446 _p1, err = BytePtrFromString(path2)
447 if err != nil {
448 return
449 }
450 _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
451 use(unsafe.Pointer(_p0))
452 use(unsafe.Pointer(_p1))
453 if e1 != 0 {
454 err = errnoErr(e1)
455 }
456 return
457}
458
459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
460
461func Exit(code int) {
462 Syscall(SYS_EXIT, uintptr(code), 0, 0)
463 return
464}
465
466// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
467
468func Fchdir(fd int) (err error) {
469 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
470 if e1 != 0 {
471 err = errnoErr(e1)
472 }
473 return
474}
475
476// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
477
478func Fchflags(fd int, flags int) (err error) {
479 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
480 if e1 != 0 {
481 err = errnoErr(e1)
482 }
483 return
484}
485
486// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
487
488func Fchmod(fd int, mode uint32) (err error) {
489 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
490 if e1 != 0 {
491 err = errnoErr(e1)
492 }
493 return
494}
495
496// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
497
498func Fchown(fd int, uid int, gid int) (err error) {
499 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func Flock(fd int, how int) (err error) {
509 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
510 if e1 != 0 {
511 err = errnoErr(e1)
512 }
513 return
514}
515
516// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
517
518func Fpathconf(fd int, name int) (val int, err error) {
519 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
520 val = int(r0)
521 if e1 != 0 {
522 err = errnoErr(e1)
523 }
524 return
525}
526
527// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
528
529func Fstat(fd int, stat *Stat_t) (err error) {
530 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
531 if e1 != 0 {
532 err = errnoErr(e1)
533 }
534 return
535}
536
537// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
538
539func Fstatfs(fd int, stat *Statfs_t) (err error) {
540 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
541 if e1 != 0 {
542 err = errnoErr(e1)
543 }
544 return
545}
546
547// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
548
549func Fsync(fd int) (err error) {
550 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
551 if e1 != 0 {
552 err = errnoErr(e1)
553 }
554 return
555}
556
557// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
558
559func Ftruncate(fd int, length int64) (err error) {
560 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), uintptr(length>>32))
561 if e1 != 0 {
562 err = errnoErr(e1)
563 }
564 return
565}
566
567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
568
569func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
570 var _p0 unsafe.Pointer
571 if len(buf) > 0 {
572 _p0 = unsafe.Pointer(&buf[0])
573 } else {
574 _p0 = unsafe.Pointer(&_zero)
575 }
576 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
577 n = int(r0)
578 if e1 != 0 {
579 err = errnoErr(e1)
580 }
581 return
582}
583
584// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
585
586func Getdtablesize() (size int) {
587 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
588 size = int(r0)
589 return
590}
591
592// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
593
594func Getegid() (egid int) {
595 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
596 egid = int(r0)
597 return
598}
599
600// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601
602func Geteuid() (uid int) {
603 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
604 uid = int(r0)
605 return
606}
607
608// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
609
610func Getgid() (gid int) {
611 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
612 gid = int(r0)
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func Getpgid(pid int) (pgid int, err error) {
619 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
620 pgid = int(r0)
621 if e1 != 0 {
622 err = errnoErr(e1)
623 }
624 return
625}
626
627// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
628
629func Getpgrp() (pgrp int) {
630 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
631 pgrp = int(r0)
632 return
633}
634
635// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
636
637func Getpid() (pid int) {
638 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
639 pid = int(r0)
640 return
641}
642
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644
645func Getppid() (ppid int) {
646 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
647 ppid = int(r0)
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func Getpriority(which int, who int) (prio int, err error) {
654 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
655 prio = int(r0)
656 if e1 != 0 {
657 err = errnoErr(e1)
658 }
659 return
660}
661
662// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
663
664func Getrlimit(which int, lim *Rlimit) (err error) {
665 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
666 if e1 != 0 {
667 err = errnoErr(e1)
668 }
669 return
670}
671
672// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
673
674func Getrusage(who int, rusage *Rusage) (err error) {
675 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Getsid(pid int) (sid int, err error) {
685 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
686 sid = int(r0)
687 if e1 != 0 {
688 err = errnoErr(e1)
689 }
690 return
691}
692
693// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
694
695func Getuid() (uid int) {
696 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
697 uid = int(r0)
698 return
699}
700
701// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
702
703func Issetugid() (tainted bool) {
704 r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0)
705 tainted = bool(r0 != 0)
706 return
707}
708
709// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
710
711func Kqueue() (fd int, err error) {
712 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
713 fd = int(r0)
714 if e1 != 0 {
715 err = errnoErr(e1)
716 }
717 return
718}
719
720// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
721
722func Lchown(path string, uid int, gid int) (err error) {
723 var _p0 *byte
724 _p0, err = BytePtrFromString(path)
725 if err != nil {
726 return
727 }
728 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
729 use(unsafe.Pointer(_p0))
730 if e1 != 0 {
731 err = errnoErr(e1)
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Link(path string, link string) (err error) {
739 var _p0 *byte
740 _p0, err = BytePtrFromString(path)
741 if err != nil {
742 return
743 }
744 var _p1 *byte
745 _p1, err = BytePtrFromString(link)
746 if err != nil {
747 return
748 }
749 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
750 use(unsafe.Pointer(_p0))
751 use(unsafe.Pointer(_p1))
752 if e1 != 0 {
753 err = errnoErr(e1)
754 }
755 return
756}
757
758// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
759
760func Listen(s int, backlog int) (err error) {
761 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
762 if e1 != 0 {
763 err = errnoErr(e1)
764 }
765 return
766}
767
768// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
769
770func Lstat(path string, stat *Stat_t) (err error) {
771 var _p0 *byte
772 _p0, err = BytePtrFromString(path)
773 if err != nil {
774 return
775 }
776 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
777 use(unsafe.Pointer(_p0))
778 if e1 != 0 {
779 err = errnoErr(e1)
780 }
781 return
782}
783
784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
785
786func Mkdir(path string, mode uint32) (err error) {
787 var _p0 *byte
788 _p0, err = BytePtrFromString(path)
789 if err != nil {
790 return
791 }
792 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
793 use(unsafe.Pointer(_p0))
794 if e1 != 0 {
795 err = errnoErr(e1)
796 }
797 return
798}
799
800// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
801
802func Mkfifo(path string, mode uint32) (err error) {
803 var _p0 *byte
804 _p0, err = BytePtrFromString(path)
805 if err != nil {
806 return
807 }
808 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
809 use(unsafe.Pointer(_p0))
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Mknod(path string, mode uint32, dev int) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
825 use(unsafe.Pointer(_p0))
826 if e1 != 0 {
827 err = errnoErr(e1)
828 }
829 return
830}
831
832// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
833
834func Mlock(b []byte) (err error) {
835 var _p0 unsafe.Pointer
836 if len(b) > 0 {
837 _p0 = unsafe.Pointer(&b[0])
838 } else {
839 _p0 = unsafe.Pointer(&_zero)
840 }
841 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
842 if e1 != 0 {
843 err = errnoErr(e1)
844 }
845 return
846}
847
848// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
849
850func Mlockall(flags int) (err error) {
851 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
852 if e1 != 0 {
853 err = errnoErr(e1)
854 }
855 return
856}
857
858// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
859
860func Mprotect(b []byte, prot int) (err error) {
861 var _p0 unsafe.Pointer
862 if len(b) > 0 {
863 _p0 = unsafe.Pointer(&b[0])
864 } else {
865 _p0 = unsafe.Pointer(&_zero)
866 }
867 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
868 if e1 != 0 {
869 err = errnoErr(e1)
870 }
871 return
872}
873
874// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
875
876func Munlock(b []byte) (err error) {
877 var _p0 unsafe.Pointer
878 if len(b) > 0 {
879 _p0 = unsafe.Pointer(&b[0])
880 } else {
881 _p0 = unsafe.Pointer(&_zero)
882 }
883 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
884 if e1 != 0 {
885 err = errnoErr(e1)
886 }
887 return
888}
889
890// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
891
892func Munlockall() (err error) {
893 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
894 if e1 != 0 {
895 err = errnoErr(e1)
896 }
897 return
898}
899
900// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
901
902func Open(path string, mode int, perm uint32) (fd int, err error) {
903 var _p0 *byte
904 _p0, err = BytePtrFromString(path)
905 if err != nil {
906 return
907 }
908 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
909 use(unsafe.Pointer(_p0))
910 fd = int(r0)
911 if e1 != 0 {
912 err = errnoErr(e1)
913 }
914 return
915}
916
917// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
918
919func Pathconf(path string, name int) (val int, err error) {
920 var _p0 *byte
921 _p0, err = BytePtrFromString(path)
922 if err != nil {
923 return
924 }
925 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
926 use(unsafe.Pointer(_p0))
927 val = int(r0)
928 if e1 != 0 {
929 err = errnoErr(e1)
930 }
931 return
932}
933
934// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
935
936func Pread(fd int, p []byte, offset int64) (n int, err error) {
937 var _p0 unsafe.Pointer
938 if len(p) > 0 {
939 _p0 = unsafe.Pointer(&p[0])
940 } else {
941 _p0 = unsafe.Pointer(&_zero)
942 }
943 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
944 n = int(r0)
945 if e1 != 0 {
946 err = errnoErr(e1)
947 }
948 return
949}
950
951// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
952
953func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
954 var _p0 unsafe.Pointer
955 if len(p) > 0 {
956 _p0 = unsafe.Pointer(&p[0])
957 } else {
958 _p0 = unsafe.Pointer(&_zero)
959 }
960 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
961 n = int(r0)
962 if e1 != 0 {
963 err = errnoErr(e1)
964 }
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func read(fd int, p []byte) (n int, err error) {
971 var _p0 unsafe.Pointer
972 if len(p) > 0 {
973 _p0 = unsafe.Pointer(&p[0])
974 } else {
975 _p0 = unsafe.Pointer(&_zero)
976 }
977 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
978 n = int(r0)
979 if e1 != 0 {
980 err = errnoErr(e1)
981 }
982 return
983}
984
985// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
986
987func Readlink(path string, buf []byte) (n int, err error) {
988 var _p0 *byte
989 _p0, err = BytePtrFromString(path)
990 if err != nil {
991 return
992 }
993 var _p1 unsafe.Pointer
994 if len(buf) > 0 {
995 _p1 = unsafe.Pointer(&buf[0])
996 } else {
997 _p1 = unsafe.Pointer(&_zero)
998 }
999 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1000 use(unsafe.Pointer(_p0))
1001 n = int(r0)
1002 if e1 != 0 {
1003 err = errnoErr(e1)
1004 }
1005 return
1006}
1007
1008// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1009
1010func Rename(from string, to string) (err error) {
1011 var _p0 *byte
1012 _p0, err = BytePtrFromString(from)
1013 if err != nil {
1014 return
1015 }
1016 var _p1 *byte
1017 _p1, err = BytePtrFromString(to)
1018 if err != nil {
1019 return
1020 }
1021 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1022 use(unsafe.Pointer(_p0))
1023 use(unsafe.Pointer(_p1))
1024 if e1 != 0 {
1025 err = errnoErr(e1)
1026 }
1027 return
1028}
1029
1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1031
1032func Revoke(path string) (err error) {
1033 var _p0 *byte
1034 _p0, err = BytePtrFromString(path)
1035 if err != nil {
1036 return
1037 }
1038 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1039 use(unsafe.Pointer(_p0))
1040 if e1 != 0 {
1041 err = errnoErr(e1)
1042 }
1043 return
1044}
1045
1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1047
1048func Rmdir(path string) (err error) {
1049 var _p0 *byte
1050 _p0, err = BytePtrFromString(path)
1051 if err != nil {
1052 return
1053 }
1054 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1055 use(unsafe.Pointer(_p0))
1056 if e1 != 0 {
1057 err = errnoErr(e1)
1058 }
1059 return
1060}
1061
1062// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1063
1064func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1065 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0)
1066 newoffset = int64(int64(r1)<<32 | int64(r0))
1067 if e1 != 0 {
1068 err = errnoErr(e1)
1069 }
1070 return
1071}
1072
1073// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1074
1075func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1076 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1077 if e1 != 0 {
1078 err = errnoErr(e1)
1079 }
1080 return
1081}
1082
1083// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1084
1085func Setegid(egid int) (err error) {
1086 _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0)
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Seteuid(euid int) (err error) {
1096 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1097 if e1 != 0 {
1098 err = errnoErr(e1)
1099 }
1100 return
1101}
1102
1103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1104
1105func Setgid(gid int) (err error) {
1106 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1107 if e1 != 0 {
1108 err = errnoErr(e1)
1109 }
1110 return
1111}
1112
1113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1114
1115func Setlogin(name string) (err error) {
1116 var _p0 *byte
1117 _p0, err = BytePtrFromString(name)
1118 if err != nil {
1119 return
1120 }
1121 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1122 use(unsafe.Pointer(_p0))
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func Setpgid(pid int, pgid int) (err error) {
1132 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Setpriority(which int, who int, prio int) (err error) {
1142 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1143 if e1 != 0 {
1144 err = errnoErr(e1)
1145 }
1146 return
1147}
1148
1149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1150
1151func Setprivexec(flag int) (err error) {
1152 _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0)
1153 if e1 != 0 {
1154 err = errnoErr(e1)
1155 }
1156 return
1157}
1158
1159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1160
1161func Setregid(rgid int, egid int) (err error) {
1162 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1163 if e1 != 0 {
1164 err = errnoErr(e1)
1165 }
1166 return
1167}
1168
1169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1170
1171func Setreuid(ruid int, euid int) (err error) {
1172 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1173 if e1 != 0 {
1174 err = errnoErr(e1)
1175 }
1176 return
1177}
1178
1179// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1180
1181func Setrlimit(which int, lim *Rlimit) (err error) {
1182 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1183 if e1 != 0 {
1184 err = errnoErr(e1)
1185 }
1186 return
1187}
1188
1189// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1190
1191func Setsid() (pid int, err error) {
1192 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1193 pid = int(r0)
1194 if e1 != 0 {
1195 err = errnoErr(e1)
1196 }
1197 return
1198}
1199
1200// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1201
1202func Settimeofday(tp *Timeval) (err error) {
1203 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1204 if e1 != 0 {
1205 err = errnoErr(e1)
1206 }
1207 return
1208}
1209
1210// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1211
1212func Setuid(uid int) (err error) {
1213 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1214 if e1 != 0 {
1215 err = errnoErr(e1)
1216 }
1217 return
1218}
1219
1220// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1221
1222func Stat(path string, stat *Stat_t) (err error) {
1223 var _p0 *byte
1224 _p0, err = BytePtrFromString(path)
1225 if err != nil {
1226 return
1227 }
1228 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1229 use(unsafe.Pointer(_p0))
1230 if e1 != 0 {
1231 err = errnoErr(e1)
1232 }
1233 return
1234}
1235
1236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1237
1238func Statfs(path string, stat *Statfs_t) (err error) {
1239 var _p0 *byte
1240 _p0, err = BytePtrFromString(path)
1241 if err != nil {
1242 return
1243 }
1244 _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1245 use(unsafe.Pointer(_p0))
1246 if e1 != 0 {
1247 err = errnoErr(e1)
1248 }
1249 return
1250}
1251
1252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1253
1254func Symlink(path string, link string) (err error) {
1255 var _p0 *byte
1256 _p0, err = BytePtrFromString(path)
1257 if err != nil {
1258 return
1259 }
1260 var _p1 *byte
1261 _p1, err = BytePtrFromString(link)
1262 if err != nil {
1263 return
1264 }
1265 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1266 use(unsafe.Pointer(_p0))
1267 use(unsafe.Pointer(_p1))
1268 if e1 != 0 {
1269 err = errnoErr(e1)
1270 }
1271 return
1272}
1273
1274// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1275
1276func Sync() (err error) {
1277 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1278 if e1 != 0 {
1279 err = errnoErr(e1)
1280 }
1281 return
1282}
1283
1284// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1285
1286func Truncate(path string, length int64) (err error) {
1287 var _p0 *byte
1288 _p0, err = BytePtrFromString(path)
1289 if err != nil {
1290 return
1291 }
1292 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32))
1293 use(unsafe.Pointer(_p0))
1294 if e1 != 0 {
1295 err = errnoErr(e1)
1296 }
1297 return
1298}
1299
1300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1301
1302func Umask(newmask int) (oldmask int) {
1303 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1304 oldmask = int(r0)
1305 return
1306}
1307
1308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1309
1310func Undelete(path string) (err error) {
1311 var _p0 *byte
1312 _p0, err = BytePtrFromString(path)
1313 if err != nil {
1314 return
1315 }
1316 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1317 use(unsafe.Pointer(_p0))
1318 if e1 != 0 {
1319 err = errnoErr(e1)
1320 }
1321 return
1322}
1323
1324// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1325
1326func Unlink(path string) (err error) {
1327 var _p0 *byte
1328 _p0, err = BytePtrFromString(path)
1329 if err != nil {
1330 return
1331 }
1332 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1333 use(unsafe.Pointer(_p0))
1334 if e1 != 0 {
1335 err = errnoErr(e1)
1336 }
1337 return
1338}
1339
1340// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1341
1342func Unmount(path string, flags int) (err error) {
1343 var _p0 *byte
1344 _p0, err = BytePtrFromString(path)
1345 if err != nil {
1346 return
1347 }
1348 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1349 use(unsafe.Pointer(_p0))
1350 if e1 != 0 {
1351 err = errnoErr(e1)
1352 }
1353 return
1354}
1355
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357
1358func write(fd int, p []byte) (n int, err error) {
1359 var _p0 unsafe.Pointer
1360 if len(p) > 0 {
1361 _p0 = unsafe.Pointer(&p[0])
1362 } else {
1363 _p0 = unsafe.Pointer(&_zero)
1364 }
1365 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1366 n = int(r0)
1367 if e1 != 0 {
1368 err = errnoErr(e1)
1369 }
1370 return
1371}
1372
1373// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1374
1375func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1376 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0)
1377 ret = uintptr(r0)
1378 if e1 != 0 {
1379 err = errnoErr(e1)
1380 }
1381 return
1382}
1383
1384// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1385
1386func munmap(addr uintptr, length uintptr) (err error) {
1387 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1388 if e1 != 0 {
1389 err = errnoErr(e1)
1390 }
1391 return
1392}
1393
1394// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1395
1396func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1397 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1398 n = int(r0)
1399 if e1 != 0 {
1400 err = errnoErr(e1)
1401 }
1402 return
1403}
1404
1405// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1406
1407func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1408 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1409 n = int(r0)
1410 if e1 != 0 {
1411 err = errnoErr(e1)
1412 }
1413 return
1414}
1415
1416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1417
1418func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
1419 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1420 sec = int32(r0)
1421 usec = int32(r1)
1422 if e1 != 0 {
1423 err = errnoErr(e1)
1424 }
1425 return
1426}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
deleted file mode 100644
index 74606b2..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
+++ /dev/null
@@ -1,1442 +0,0 @@
1// mksyscall.pl syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,darwin
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
271 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
272 if e1 != 0 {
273 err = errnoErr(e1)
274 }
275 return
276}
277
278// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
279
280func pipe() (r int, w int, err error) {
281 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
282 r = int(r0)
283 w = int(r1)
284 if e1 != 0 {
285 err = errnoErr(e1)
286 }
287 return
288}
289
290// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
291
292func kill(pid int, signum int, posix int) (err error) {
293 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
294 if e1 != 0 {
295 err = errnoErr(e1)
296 }
297 return
298}
299
300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
301
302func Access(path string, mode uint32) (err error) {
303 var _p0 *byte
304 _p0, err = BytePtrFromString(path)
305 if err != nil {
306 return
307 }
308 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
309 use(unsafe.Pointer(_p0))
310 if e1 != 0 {
311 err = errnoErr(e1)
312 }
313 return
314}
315
316// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
317
318func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
319 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
320 if e1 != 0 {
321 err = errnoErr(e1)
322 }
323 return
324}
325
326// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
327
328func Chdir(path string) (err error) {
329 var _p0 *byte
330 _p0, err = BytePtrFromString(path)
331 if err != nil {
332 return
333 }
334 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
335 use(unsafe.Pointer(_p0))
336 if e1 != 0 {
337 err = errnoErr(e1)
338 }
339 return
340}
341
342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
343
344func Chflags(path string, flags int) (err error) {
345 var _p0 *byte
346 _p0, err = BytePtrFromString(path)
347 if err != nil {
348 return
349 }
350 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
351 use(unsafe.Pointer(_p0))
352 if e1 != 0 {
353 err = errnoErr(e1)
354 }
355 return
356}
357
358// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
359
360func Chmod(path string, mode uint32) (err error) {
361 var _p0 *byte
362 _p0, err = BytePtrFromString(path)
363 if err != nil {
364 return
365 }
366 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
367 use(unsafe.Pointer(_p0))
368 if e1 != 0 {
369 err = errnoErr(e1)
370 }
371 return
372}
373
374// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
375
376func Chown(path string, uid int, gid int) (err error) {
377 var _p0 *byte
378 _p0, err = BytePtrFromString(path)
379 if err != nil {
380 return
381 }
382 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
383 use(unsafe.Pointer(_p0))
384 if e1 != 0 {
385 err = errnoErr(e1)
386 }
387 return
388}
389
390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
391
392func Chroot(path string) (err error) {
393 var _p0 *byte
394 _p0, err = BytePtrFromString(path)
395 if err != nil {
396 return
397 }
398 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
399 use(unsafe.Pointer(_p0))
400 if e1 != 0 {
401 err = errnoErr(e1)
402 }
403 return
404}
405
406// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
407
408func Close(fd int) (err error) {
409 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
410 if e1 != 0 {
411 err = errnoErr(e1)
412 }
413 return
414}
415
416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
417
418func Dup(fd int) (nfd int, err error) {
419 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
420 nfd = int(r0)
421 if e1 != 0 {
422 err = errnoErr(e1)
423 }
424 return
425}
426
427// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
428
429func Dup2(from int, to int) (err error) {
430 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
431 if e1 != 0 {
432 err = errnoErr(e1)
433 }
434 return
435}
436
437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
438
439func Exchangedata(path1 string, path2 string, options int) (err error) {
440 var _p0 *byte
441 _p0, err = BytePtrFromString(path1)
442 if err != nil {
443 return
444 }
445 var _p1 *byte
446 _p1, err = BytePtrFromString(path2)
447 if err != nil {
448 return
449 }
450 _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
451 use(unsafe.Pointer(_p0))
452 use(unsafe.Pointer(_p1))
453 if e1 != 0 {
454 err = errnoErr(e1)
455 }
456 return
457}
458
459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
460
461func Exit(code int) {
462 Syscall(SYS_EXIT, uintptr(code), 0, 0)
463 return
464}
465
466// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
467
468func Fchdir(fd int) (err error) {
469 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
470 if e1 != 0 {
471 err = errnoErr(e1)
472 }
473 return
474}
475
476// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
477
478func Fchflags(fd int, flags int) (err error) {
479 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
480 if e1 != 0 {
481 err = errnoErr(e1)
482 }
483 return
484}
485
486// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
487
488func Fchmod(fd int, mode uint32) (err error) {
489 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
490 if e1 != 0 {
491 err = errnoErr(e1)
492 }
493 return
494}
495
496// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
497
498func Fchown(fd int, uid int, gid int) (err error) {
499 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func Flock(fd int, how int) (err error) {
509 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
510 if e1 != 0 {
511 err = errnoErr(e1)
512 }
513 return
514}
515
516// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
517
518func Fpathconf(fd int, name int) (val int, err error) {
519 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
520 val = int(r0)
521 if e1 != 0 {
522 err = errnoErr(e1)
523 }
524 return
525}
526
527// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
528
529func Fstat(fd int, stat *Stat_t) (err error) {
530 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
531 if e1 != 0 {
532 err = errnoErr(e1)
533 }
534 return
535}
536
537// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
538
539func Fstatfs(fd int, stat *Statfs_t) (err error) {
540 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
541 if e1 != 0 {
542 err = errnoErr(e1)
543 }
544 return
545}
546
547// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
548
549func Fsync(fd int) (err error) {
550 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
551 if e1 != 0 {
552 err = errnoErr(e1)
553 }
554 return
555}
556
557// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
558
559func Ftruncate(fd int, length int64) (err error) {
560 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
561 if e1 != 0 {
562 err = errnoErr(e1)
563 }
564 return
565}
566
567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
568
569func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
570 var _p0 unsafe.Pointer
571 if len(buf) > 0 {
572 _p0 = unsafe.Pointer(&buf[0])
573 } else {
574 _p0 = unsafe.Pointer(&_zero)
575 }
576 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
577 n = int(r0)
578 if e1 != 0 {
579 err = errnoErr(e1)
580 }
581 return
582}
583
584// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
585
586func Getdtablesize() (size int) {
587 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
588 size = int(r0)
589 return
590}
591
592// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
593
594func Getegid() (egid int) {
595 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
596 egid = int(r0)
597 return
598}
599
600// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601
602func Geteuid() (uid int) {
603 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
604 uid = int(r0)
605 return
606}
607
608// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
609
610func Getgid() (gid int) {
611 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
612 gid = int(r0)
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func Getpgid(pid int) (pgid int, err error) {
619 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
620 pgid = int(r0)
621 if e1 != 0 {
622 err = errnoErr(e1)
623 }
624 return
625}
626
627// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
628
629func Getpgrp() (pgrp int) {
630 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
631 pgrp = int(r0)
632 return
633}
634
635// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
636
637func Getpid() (pid int) {
638 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
639 pid = int(r0)
640 return
641}
642
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644
645func Getppid() (ppid int) {
646 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
647 ppid = int(r0)
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func Getpriority(which int, who int) (prio int, err error) {
654 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
655 prio = int(r0)
656 if e1 != 0 {
657 err = errnoErr(e1)
658 }
659 return
660}
661
662// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
663
664func Getrlimit(which int, lim *Rlimit) (err error) {
665 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
666 if e1 != 0 {
667 err = errnoErr(e1)
668 }
669 return
670}
671
672// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
673
674func Getrusage(who int, rusage *Rusage) (err error) {
675 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Getsid(pid int) (sid int, err error) {
685 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
686 sid = int(r0)
687 if e1 != 0 {
688 err = errnoErr(e1)
689 }
690 return
691}
692
693// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
694
695func Getuid() (uid int) {
696 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
697 uid = int(r0)
698 return
699}
700
701// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
702
703func Issetugid() (tainted bool) {
704 r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0)
705 tainted = bool(r0 != 0)
706 return
707}
708
709// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
710
711func Kqueue() (fd int, err error) {
712 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
713 fd = int(r0)
714 if e1 != 0 {
715 err = errnoErr(e1)
716 }
717 return
718}
719
720// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
721
722func Lchown(path string, uid int, gid int) (err error) {
723 var _p0 *byte
724 _p0, err = BytePtrFromString(path)
725 if err != nil {
726 return
727 }
728 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
729 use(unsafe.Pointer(_p0))
730 if e1 != 0 {
731 err = errnoErr(e1)
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Link(path string, link string) (err error) {
739 var _p0 *byte
740 _p0, err = BytePtrFromString(path)
741 if err != nil {
742 return
743 }
744 var _p1 *byte
745 _p1, err = BytePtrFromString(link)
746 if err != nil {
747 return
748 }
749 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
750 use(unsafe.Pointer(_p0))
751 use(unsafe.Pointer(_p1))
752 if e1 != 0 {
753 err = errnoErr(e1)
754 }
755 return
756}
757
758// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
759
760func Listen(s int, backlog int) (err error) {
761 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
762 if e1 != 0 {
763 err = errnoErr(e1)
764 }
765 return
766}
767
768// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
769
770func Lstat(path string, stat *Stat_t) (err error) {
771 var _p0 *byte
772 _p0, err = BytePtrFromString(path)
773 if err != nil {
774 return
775 }
776 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
777 use(unsafe.Pointer(_p0))
778 if e1 != 0 {
779 err = errnoErr(e1)
780 }
781 return
782}
783
784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
785
786func Mkdir(path string, mode uint32) (err error) {
787 var _p0 *byte
788 _p0, err = BytePtrFromString(path)
789 if err != nil {
790 return
791 }
792 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
793 use(unsafe.Pointer(_p0))
794 if e1 != 0 {
795 err = errnoErr(e1)
796 }
797 return
798}
799
800// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
801
802func Mkfifo(path string, mode uint32) (err error) {
803 var _p0 *byte
804 _p0, err = BytePtrFromString(path)
805 if err != nil {
806 return
807 }
808 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
809 use(unsafe.Pointer(_p0))
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Mknod(path string, mode uint32, dev int) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
825 use(unsafe.Pointer(_p0))
826 if e1 != 0 {
827 err = errnoErr(e1)
828 }
829 return
830}
831
832// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
833
834func Mlock(b []byte) (err error) {
835 var _p0 unsafe.Pointer
836 if len(b) > 0 {
837 _p0 = unsafe.Pointer(&b[0])
838 } else {
839 _p0 = unsafe.Pointer(&_zero)
840 }
841 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
842 if e1 != 0 {
843 err = errnoErr(e1)
844 }
845 return
846}
847
848// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
849
850func Mlockall(flags int) (err error) {
851 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
852 if e1 != 0 {
853 err = errnoErr(e1)
854 }
855 return
856}
857
858// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
859
860func Mprotect(b []byte, prot int) (err error) {
861 var _p0 unsafe.Pointer
862 if len(b) > 0 {
863 _p0 = unsafe.Pointer(&b[0])
864 } else {
865 _p0 = unsafe.Pointer(&_zero)
866 }
867 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
868 if e1 != 0 {
869 err = errnoErr(e1)
870 }
871 return
872}
873
874// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
875
876func Munlock(b []byte) (err error) {
877 var _p0 unsafe.Pointer
878 if len(b) > 0 {
879 _p0 = unsafe.Pointer(&b[0])
880 } else {
881 _p0 = unsafe.Pointer(&_zero)
882 }
883 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
884 if e1 != 0 {
885 err = errnoErr(e1)
886 }
887 return
888}
889
890// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
891
892func Munlockall() (err error) {
893 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
894 if e1 != 0 {
895 err = errnoErr(e1)
896 }
897 return
898}
899
900// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
901
902func Open(path string, mode int, perm uint32) (fd int, err error) {
903 var _p0 *byte
904 _p0, err = BytePtrFromString(path)
905 if err != nil {
906 return
907 }
908 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
909 use(unsafe.Pointer(_p0))
910 fd = int(r0)
911 if e1 != 0 {
912 err = errnoErr(e1)
913 }
914 return
915}
916
917// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
918
919func Pathconf(path string, name int) (val int, err error) {
920 var _p0 *byte
921 _p0, err = BytePtrFromString(path)
922 if err != nil {
923 return
924 }
925 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
926 use(unsafe.Pointer(_p0))
927 val = int(r0)
928 if e1 != 0 {
929 err = errnoErr(e1)
930 }
931 return
932}
933
934// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
935
936func Pread(fd int, p []byte, offset int64) (n int, err error) {
937 var _p0 unsafe.Pointer
938 if len(p) > 0 {
939 _p0 = unsafe.Pointer(&p[0])
940 } else {
941 _p0 = unsafe.Pointer(&_zero)
942 }
943 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
944 n = int(r0)
945 if e1 != 0 {
946 err = errnoErr(e1)
947 }
948 return
949}
950
951// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
952
953func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
954 var _p0 unsafe.Pointer
955 if len(p) > 0 {
956 _p0 = unsafe.Pointer(&p[0])
957 } else {
958 _p0 = unsafe.Pointer(&_zero)
959 }
960 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
961 n = int(r0)
962 if e1 != 0 {
963 err = errnoErr(e1)
964 }
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func read(fd int, p []byte) (n int, err error) {
971 var _p0 unsafe.Pointer
972 if len(p) > 0 {
973 _p0 = unsafe.Pointer(&p[0])
974 } else {
975 _p0 = unsafe.Pointer(&_zero)
976 }
977 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
978 n = int(r0)
979 if e1 != 0 {
980 err = errnoErr(e1)
981 }
982 return
983}
984
985// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
986
987func Readlink(path string, buf []byte) (n int, err error) {
988 var _p0 *byte
989 _p0, err = BytePtrFromString(path)
990 if err != nil {
991 return
992 }
993 var _p1 unsafe.Pointer
994 if len(buf) > 0 {
995 _p1 = unsafe.Pointer(&buf[0])
996 } else {
997 _p1 = unsafe.Pointer(&_zero)
998 }
999 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1000 use(unsafe.Pointer(_p0))
1001 n = int(r0)
1002 if e1 != 0 {
1003 err = errnoErr(e1)
1004 }
1005 return
1006}
1007
1008// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1009
1010func Rename(from string, to string) (err error) {
1011 var _p0 *byte
1012 _p0, err = BytePtrFromString(from)
1013 if err != nil {
1014 return
1015 }
1016 var _p1 *byte
1017 _p1, err = BytePtrFromString(to)
1018 if err != nil {
1019 return
1020 }
1021 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1022 use(unsafe.Pointer(_p0))
1023 use(unsafe.Pointer(_p1))
1024 if e1 != 0 {
1025 err = errnoErr(e1)
1026 }
1027 return
1028}
1029
1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1031
1032func Revoke(path string) (err error) {
1033 var _p0 *byte
1034 _p0, err = BytePtrFromString(path)
1035 if err != nil {
1036 return
1037 }
1038 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1039 use(unsafe.Pointer(_p0))
1040 if e1 != 0 {
1041 err = errnoErr(e1)
1042 }
1043 return
1044}
1045
1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1047
1048func Rmdir(path string) (err error) {
1049 var _p0 *byte
1050 _p0, err = BytePtrFromString(path)
1051 if err != nil {
1052 return
1053 }
1054 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1055 use(unsafe.Pointer(_p0))
1056 if e1 != 0 {
1057 err = errnoErr(e1)
1058 }
1059 return
1060}
1061
1062// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1063
1064func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1065 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1066 newoffset = int64(r0)
1067 if e1 != 0 {
1068 err = errnoErr(e1)
1069 }
1070 return
1071}
1072
1073// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1074
1075func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1076 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1077 if e1 != 0 {
1078 err = errnoErr(e1)
1079 }
1080 return
1081}
1082
1083// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1084
1085func Setegid(egid int) (err error) {
1086 _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0)
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Seteuid(euid int) (err error) {
1096 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1097 if e1 != 0 {
1098 err = errnoErr(e1)
1099 }
1100 return
1101}
1102
1103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1104
1105func Setgid(gid int) (err error) {
1106 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1107 if e1 != 0 {
1108 err = errnoErr(e1)
1109 }
1110 return
1111}
1112
1113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1114
1115func Setlogin(name string) (err error) {
1116 var _p0 *byte
1117 _p0, err = BytePtrFromString(name)
1118 if err != nil {
1119 return
1120 }
1121 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1122 use(unsafe.Pointer(_p0))
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func Setpgid(pid int, pgid int) (err error) {
1132 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Setpriority(which int, who int, prio int) (err error) {
1142 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1143 if e1 != 0 {
1144 err = errnoErr(e1)
1145 }
1146 return
1147}
1148
1149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1150
1151func Setprivexec(flag int) (err error) {
1152 _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0)
1153 if e1 != 0 {
1154 err = errnoErr(e1)
1155 }
1156 return
1157}
1158
1159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1160
1161func Setregid(rgid int, egid int) (err error) {
1162 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1163 if e1 != 0 {
1164 err = errnoErr(e1)
1165 }
1166 return
1167}
1168
1169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1170
1171func Setreuid(ruid int, euid int) (err error) {
1172 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1173 if e1 != 0 {
1174 err = errnoErr(e1)
1175 }
1176 return
1177}
1178
1179// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1180
1181func Setrlimit(which int, lim *Rlimit) (err error) {
1182 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1183 if e1 != 0 {
1184 err = errnoErr(e1)
1185 }
1186 return
1187}
1188
1189// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1190
1191func Setsid() (pid int, err error) {
1192 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1193 pid = int(r0)
1194 if e1 != 0 {
1195 err = errnoErr(e1)
1196 }
1197 return
1198}
1199
1200// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1201
1202func Settimeofday(tp *Timeval) (err error) {
1203 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1204 if e1 != 0 {
1205 err = errnoErr(e1)
1206 }
1207 return
1208}
1209
1210// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1211
1212func Setuid(uid int) (err error) {
1213 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1214 if e1 != 0 {
1215 err = errnoErr(e1)
1216 }
1217 return
1218}
1219
1220// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1221
1222func Stat(path string, stat *Stat_t) (err error) {
1223 var _p0 *byte
1224 _p0, err = BytePtrFromString(path)
1225 if err != nil {
1226 return
1227 }
1228 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1229 use(unsafe.Pointer(_p0))
1230 if e1 != 0 {
1231 err = errnoErr(e1)
1232 }
1233 return
1234}
1235
1236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1237
1238func Statfs(path string, stat *Statfs_t) (err error) {
1239 var _p0 *byte
1240 _p0, err = BytePtrFromString(path)
1241 if err != nil {
1242 return
1243 }
1244 _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1245 use(unsafe.Pointer(_p0))
1246 if e1 != 0 {
1247 err = errnoErr(e1)
1248 }
1249 return
1250}
1251
1252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1253
1254func Symlink(path string, link string) (err error) {
1255 var _p0 *byte
1256 _p0, err = BytePtrFromString(path)
1257 if err != nil {
1258 return
1259 }
1260 var _p1 *byte
1261 _p1, err = BytePtrFromString(link)
1262 if err != nil {
1263 return
1264 }
1265 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1266 use(unsafe.Pointer(_p0))
1267 use(unsafe.Pointer(_p1))
1268 if e1 != 0 {
1269 err = errnoErr(e1)
1270 }
1271 return
1272}
1273
1274// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1275
1276func Sync() (err error) {
1277 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1278 if e1 != 0 {
1279 err = errnoErr(e1)
1280 }
1281 return
1282}
1283
1284// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1285
1286func Truncate(path string, length int64) (err error) {
1287 var _p0 *byte
1288 _p0, err = BytePtrFromString(path)
1289 if err != nil {
1290 return
1291 }
1292 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1293 use(unsafe.Pointer(_p0))
1294 if e1 != 0 {
1295 err = errnoErr(e1)
1296 }
1297 return
1298}
1299
1300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1301
1302func Umask(newmask int) (oldmask int) {
1303 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1304 oldmask = int(r0)
1305 return
1306}
1307
1308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1309
1310func Undelete(path string) (err error) {
1311 var _p0 *byte
1312 _p0, err = BytePtrFromString(path)
1313 if err != nil {
1314 return
1315 }
1316 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1317 use(unsafe.Pointer(_p0))
1318 if e1 != 0 {
1319 err = errnoErr(e1)
1320 }
1321 return
1322}
1323
1324// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1325
1326func Unlink(path string) (err error) {
1327 var _p0 *byte
1328 _p0, err = BytePtrFromString(path)
1329 if err != nil {
1330 return
1331 }
1332 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1333 use(unsafe.Pointer(_p0))
1334 if e1 != 0 {
1335 err = errnoErr(e1)
1336 }
1337 return
1338}
1339
1340// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1341
1342func Unmount(path string, flags int) (err error) {
1343 var _p0 *byte
1344 _p0, err = BytePtrFromString(path)
1345 if err != nil {
1346 return
1347 }
1348 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1349 use(unsafe.Pointer(_p0))
1350 if e1 != 0 {
1351 err = errnoErr(e1)
1352 }
1353 return
1354}
1355
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357
1358func write(fd int, p []byte) (n int, err error) {
1359 var _p0 unsafe.Pointer
1360 if len(p) > 0 {
1361 _p0 = unsafe.Pointer(&p[0])
1362 } else {
1363 _p0 = unsafe.Pointer(&_zero)
1364 }
1365 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1366 n = int(r0)
1367 if e1 != 0 {
1368 err = errnoErr(e1)
1369 }
1370 return
1371}
1372
1373// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1374
1375func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1376 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1377 ret = uintptr(r0)
1378 if e1 != 0 {
1379 err = errnoErr(e1)
1380 }
1381 return
1382}
1383
1384// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1385
1386func munmap(addr uintptr, length uintptr) (err error) {
1387 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1388 if e1 != 0 {
1389 err = errnoErr(e1)
1390 }
1391 return
1392}
1393
1394// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1395
1396func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1397 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1398 n = int(r0)
1399 if e1 != 0 {
1400 err = errnoErr(e1)
1401 }
1402 return
1403}
1404
1405// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1406
1407func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1408 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1409 n = int(r0)
1410 if e1 != 0 {
1411 err = errnoErr(e1)
1412 }
1413 return
1414}
1415
1416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1417
1418func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
1419 var _p0 *byte
1420 _p0, err = BytePtrFromString(path)
1421 if err != nil {
1422 return
1423 }
1424 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
1425 use(unsafe.Pointer(_p0))
1426 if e1 != 0 {
1427 err = errnoErr(e1)
1428 }
1429 return
1430}
1431
1432// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1433
1434func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
1435 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1436 sec = int64(r0)
1437 usec = int32(r1)
1438 if e1 != 0 {
1439 err = errnoErr(e1)
1440 }
1441 return
1442}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_arm.go
deleted file mode 100644
index 640e854..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_arm.go
+++ /dev/null
@@ -1,1426 +0,0 @@
1// mksyscall.pl syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm,darwin
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
271 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
272 if e1 != 0 {
273 err = errnoErr(e1)
274 }
275 return
276}
277
278// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
279
280func pipe() (r int, w int, err error) {
281 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
282 r = int(r0)
283 w = int(r1)
284 if e1 != 0 {
285 err = errnoErr(e1)
286 }
287 return
288}
289
290// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
291
292func kill(pid int, signum int, posix int) (err error) {
293 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
294 if e1 != 0 {
295 err = errnoErr(e1)
296 }
297 return
298}
299
300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
301
302func Access(path string, mode uint32) (err error) {
303 var _p0 *byte
304 _p0, err = BytePtrFromString(path)
305 if err != nil {
306 return
307 }
308 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
309 use(unsafe.Pointer(_p0))
310 if e1 != 0 {
311 err = errnoErr(e1)
312 }
313 return
314}
315
316// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
317
318func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
319 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
320 if e1 != 0 {
321 err = errnoErr(e1)
322 }
323 return
324}
325
326// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
327
328func Chdir(path string) (err error) {
329 var _p0 *byte
330 _p0, err = BytePtrFromString(path)
331 if err != nil {
332 return
333 }
334 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
335 use(unsafe.Pointer(_p0))
336 if e1 != 0 {
337 err = errnoErr(e1)
338 }
339 return
340}
341
342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
343
344func Chflags(path string, flags int) (err error) {
345 var _p0 *byte
346 _p0, err = BytePtrFromString(path)
347 if err != nil {
348 return
349 }
350 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
351 use(unsafe.Pointer(_p0))
352 if e1 != 0 {
353 err = errnoErr(e1)
354 }
355 return
356}
357
358// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
359
360func Chmod(path string, mode uint32) (err error) {
361 var _p0 *byte
362 _p0, err = BytePtrFromString(path)
363 if err != nil {
364 return
365 }
366 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
367 use(unsafe.Pointer(_p0))
368 if e1 != 0 {
369 err = errnoErr(e1)
370 }
371 return
372}
373
374// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
375
376func Chown(path string, uid int, gid int) (err error) {
377 var _p0 *byte
378 _p0, err = BytePtrFromString(path)
379 if err != nil {
380 return
381 }
382 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
383 use(unsafe.Pointer(_p0))
384 if e1 != 0 {
385 err = errnoErr(e1)
386 }
387 return
388}
389
390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
391
392func Chroot(path string) (err error) {
393 var _p0 *byte
394 _p0, err = BytePtrFromString(path)
395 if err != nil {
396 return
397 }
398 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
399 use(unsafe.Pointer(_p0))
400 if e1 != 0 {
401 err = errnoErr(e1)
402 }
403 return
404}
405
406// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
407
408func Close(fd int) (err error) {
409 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
410 if e1 != 0 {
411 err = errnoErr(e1)
412 }
413 return
414}
415
416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
417
418func Dup(fd int) (nfd int, err error) {
419 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
420 nfd = int(r0)
421 if e1 != 0 {
422 err = errnoErr(e1)
423 }
424 return
425}
426
427// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
428
429func Dup2(from int, to int) (err error) {
430 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
431 if e1 != 0 {
432 err = errnoErr(e1)
433 }
434 return
435}
436
437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
438
439func Exchangedata(path1 string, path2 string, options int) (err error) {
440 var _p0 *byte
441 _p0, err = BytePtrFromString(path1)
442 if err != nil {
443 return
444 }
445 var _p1 *byte
446 _p1, err = BytePtrFromString(path2)
447 if err != nil {
448 return
449 }
450 _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
451 use(unsafe.Pointer(_p0))
452 use(unsafe.Pointer(_p1))
453 if e1 != 0 {
454 err = errnoErr(e1)
455 }
456 return
457}
458
459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
460
461func Exit(code int) {
462 Syscall(SYS_EXIT, uintptr(code), 0, 0)
463 return
464}
465
466// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
467
468func Fchdir(fd int) (err error) {
469 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
470 if e1 != 0 {
471 err = errnoErr(e1)
472 }
473 return
474}
475
476// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
477
478func Fchflags(fd int, flags int) (err error) {
479 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
480 if e1 != 0 {
481 err = errnoErr(e1)
482 }
483 return
484}
485
486// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
487
488func Fchmod(fd int, mode uint32) (err error) {
489 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
490 if e1 != 0 {
491 err = errnoErr(e1)
492 }
493 return
494}
495
496// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
497
498func Fchown(fd int, uid int, gid int) (err error) {
499 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func Flock(fd int, how int) (err error) {
509 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
510 if e1 != 0 {
511 err = errnoErr(e1)
512 }
513 return
514}
515
516// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
517
518func Fpathconf(fd int, name int) (val int, err error) {
519 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
520 val = int(r0)
521 if e1 != 0 {
522 err = errnoErr(e1)
523 }
524 return
525}
526
527// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
528
529func Fstat(fd int, stat *Stat_t) (err error) {
530 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
531 if e1 != 0 {
532 err = errnoErr(e1)
533 }
534 return
535}
536
537// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
538
539func Fstatfs(fd int, stat *Statfs_t) (err error) {
540 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
541 if e1 != 0 {
542 err = errnoErr(e1)
543 }
544 return
545}
546
547// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
548
549func Fsync(fd int) (err error) {
550 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
551 if e1 != 0 {
552 err = errnoErr(e1)
553 }
554 return
555}
556
557// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
558
559func Ftruncate(fd int, length int64) (err error) {
560 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
561 if e1 != 0 {
562 err = errnoErr(e1)
563 }
564 return
565}
566
567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
568
569func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
570 var _p0 unsafe.Pointer
571 if len(buf) > 0 {
572 _p0 = unsafe.Pointer(&buf[0])
573 } else {
574 _p0 = unsafe.Pointer(&_zero)
575 }
576 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
577 n = int(r0)
578 if e1 != 0 {
579 err = errnoErr(e1)
580 }
581 return
582}
583
584// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
585
586func Getdtablesize() (size int) {
587 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
588 size = int(r0)
589 return
590}
591
592// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
593
594func Getegid() (egid int) {
595 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
596 egid = int(r0)
597 return
598}
599
600// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601
602func Geteuid() (uid int) {
603 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
604 uid = int(r0)
605 return
606}
607
608// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
609
610func Getgid() (gid int) {
611 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
612 gid = int(r0)
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func Getpgid(pid int) (pgid int, err error) {
619 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
620 pgid = int(r0)
621 if e1 != 0 {
622 err = errnoErr(e1)
623 }
624 return
625}
626
627// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
628
629func Getpgrp() (pgrp int) {
630 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
631 pgrp = int(r0)
632 return
633}
634
635// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
636
637func Getpid() (pid int) {
638 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
639 pid = int(r0)
640 return
641}
642
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644
645func Getppid() (ppid int) {
646 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
647 ppid = int(r0)
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func Getpriority(which int, who int) (prio int, err error) {
654 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
655 prio = int(r0)
656 if e1 != 0 {
657 err = errnoErr(e1)
658 }
659 return
660}
661
662// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
663
664func Getrlimit(which int, lim *Rlimit) (err error) {
665 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
666 if e1 != 0 {
667 err = errnoErr(e1)
668 }
669 return
670}
671
672// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
673
674func Getrusage(who int, rusage *Rusage) (err error) {
675 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Getsid(pid int) (sid int, err error) {
685 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
686 sid = int(r0)
687 if e1 != 0 {
688 err = errnoErr(e1)
689 }
690 return
691}
692
693// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
694
695func Getuid() (uid int) {
696 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
697 uid = int(r0)
698 return
699}
700
701// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
702
703func Issetugid() (tainted bool) {
704 r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0)
705 tainted = bool(r0 != 0)
706 return
707}
708
709// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
710
711func Kqueue() (fd int, err error) {
712 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
713 fd = int(r0)
714 if e1 != 0 {
715 err = errnoErr(e1)
716 }
717 return
718}
719
720// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
721
722func Lchown(path string, uid int, gid int) (err error) {
723 var _p0 *byte
724 _p0, err = BytePtrFromString(path)
725 if err != nil {
726 return
727 }
728 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
729 use(unsafe.Pointer(_p0))
730 if e1 != 0 {
731 err = errnoErr(e1)
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Link(path string, link string) (err error) {
739 var _p0 *byte
740 _p0, err = BytePtrFromString(path)
741 if err != nil {
742 return
743 }
744 var _p1 *byte
745 _p1, err = BytePtrFromString(link)
746 if err != nil {
747 return
748 }
749 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
750 use(unsafe.Pointer(_p0))
751 use(unsafe.Pointer(_p1))
752 if e1 != 0 {
753 err = errnoErr(e1)
754 }
755 return
756}
757
758// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
759
760func Listen(s int, backlog int) (err error) {
761 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
762 if e1 != 0 {
763 err = errnoErr(e1)
764 }
765 return
766}
767
768// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
769
770func Lstat(path string, stat *Stat_t) (err error) {
771 var _p0 *byte
772 _p0, err = BytePtrFromString(path)
773 if err != nil {
774 return
775 }
776 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
777 use(unsafe.Pointer(_p0))
778 if e1 != 0 {
779 err = errnoErr(e1)
780 }
781 return
782}
783
784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
785
786func Mkdir(path string, mode uint32) (err error) {
787 var _p0 *byte
788 _p0, err = BytePtrFromString(path)
789 if err != nil {
790 return
791 }
792 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
793 use(unsafe.Pointer(_p0))
794 if e1 != 0 {
795 err = errnoErr(e1)
796 }
797 return
798}
799
800// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
801
802func Mkfifo(path string, mode uint32) (err error) {
803 var _p0 *byte
804 _p0, err = BytePtrFromString(path)
805 if err != nil {
806 return
807 }
808 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
809 use(unsafe.Pointer(_p0))
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Mknod(path string, mode uint32, dev int) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
825 use(unsafe.Pointer(_p0))
826 if e1 != 0 {
827 err = errnoErr(e1)
828 }
829 return
830}
831
832// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
833
834func Mlock(b []byte) (err error) {
835 var _p0 unsafe.Pointer
836 if len(b) > 0 {
837 _p0 = unsafe.Pointer(&b[0])
838 } else {
839 _p0 = unsafe.Pointer(&_zero)
840 }
841 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
842 if e1 != 0 {
843 err = errnoErr(e1)
844 }
845 return
846}
847
848// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
849
850func Mlockall(flags int) (err error) {
851 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
852 if e1 != 0 {
853 err = errnoErr(e1)
854 }
855 return
856}
857
858// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
859
860func Mprotect(b []byte, prot int) (err error) {
861 var _p0 unsafe.Pointer
862 if len(b) > 0 {
863 _p0 = unsafe.Pointer(&b[0])
864 } else {
865 _p0 = unsafe.Pointer(&_zero)
866 }
867 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
868 if e1 != 0 {
869 err = errnoErr(e1)
870 }
871 return
872}
873
874// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
875
876func Munlock(b []byte) (err error) {
877 var _p0 unsafe.Pointer
878 if len(b) > 0 {
879 _p0 = unsafe.Pointer(&b[0])
880 } else {
881 _p0 = unsafe.Pointer(&_zero)
882 }
883 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
884 if e1 != 0 {
885 err = errnoErr(e1)
886 }
887 return
888}
889
890// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
891
892func Munlockall() (err error) {
893 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
894 if e1 != 0 {
895 err = errnoErr(e1)
896 }
897 return
898}
899
900// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
901
902func Open(path string, mode int, perm uint32) (fd int, err error) {
903 var _p0 *byte
904 _p0, err = BytePtrFromString(path)
905 if err != nil {
906 return
907 }
908 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
909 use(unsafe.Pointer(_p0))
910 fd = int(r0)
911 if e1 != 0 {
912 err = errnoErr(e1)
913 }
914 return
915}
916
917// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
918
919func Pathconf(path string, name int) (val int, err error) {
920 var _p0 *byte
921 _p0, err = BytePtrFromString(path)
922 if err != nil {
923 return
924 }
925 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
926 use(unsafe.Pointer(_p0))
927 val = int(r0)
928 if e1 != 0 {
929 err = errnoErr(e1)
930 }
931 return
932}
933
934// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
935
936func Pread(fd int, p []byte, offset int64) (n int, err error) {
937 var _p0 unsafe.Pointer
938 if len(p) > 0 {
939 _p0 = unsafe.Pointer(&p[0])
940 } else {
941 _p0 = unsafe.Pointer(&_zero)
942 }
943 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
944 n = int(r0)
945 if e1 != 0 {
946 err = errnoErr(e1)
947 }
948 return
949}
950
951// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
952
953func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
954 var _p0 unsafe.Pointer
955 if len(p) > 0 {
956 _p0 = unsafe.Pointer(&p[0])
957 } else {
958 _p0 = unsafe.Pointer(&_zero)
959 }
960 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
961 n = int(r0)
962 if e1 != 0 {
963 err = errnoErr(e1)
964 }
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func read(fd int, p []byte) (n int, err error) {
971 var _p0 unsafe.Pointer
972 if len(p) > 0 {
973 _p0 = unsafe.Pointer(&p[0])
974 } else {
975 _p0 = unsafe.Pointer(&_zero)
976 }
977 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
978 n = int(r0)
979 if e1 != 0 {
980 err = errnoErr(e1)
981 }
982 return
983}
984
985// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
986
987func Readlink(path string, buf []byte) (n int, err error) {
988 var _p0 *byte
989 _p0, err = BytePtrFromString(path)
990 if err != nil {
991 return
992 }
993 var _p1 unsafe.Pointer
994 if len(buf) > 0 {
995 _p1 = unsafe.Pointer(&buf[0])
996 } else {
997 _p1 = unsafe.Pointer(&_zero)
998 }
999 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1000 use(unsafe.Pointer(_p0))
1001 n = int(r0)
1002 if e1 != 0 {
1003 err = errnoErr(e1)
1004 }
1005 return
1006}
1007
1008// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1009
1010func Rename(from string, to string) (err error) {
1011 var _p0 *byte
1012 _p0, err = BytePtrFromString(from)
1013 if err != nil {
1014 return
1015 }
1016 var _p1 *byte
1017 _p1, err = BytePtrFromString(to)
1018 if err != nil {
1019 return
1020 }
1021 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1022 use(unsafe.Pointer(_p0))
1023 use(unsafe.Pointer(_p1))
1024 if e1 != 0 {
1025 err = errnoErr(e1)
1026 }
1027 return
1028}
1029
1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1031
1032func Revoke(path string) (err error) {
1033 var _p0 *byte
1034 _p0, err = BytePtrFromString(path)
1035 if err != nil {
1036 return
1037 }
1038 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1039 use(unsafe.Pointer(_p0))
1040 if e1 != 0 {
1041 err = errnoErr(e1)
1042 }
1043 return
1044}
1045
1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1047
1048func Rmdir(path string) (err error) {
1049 var _p0 *byte
1050 _p0, err = BytePtrFromString(path)
1051 if err != nil {
1052 return
1053 }
1054 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1055 use(unsafe.Pointer(_p0))
1056 if e1 != 0 {
1057 err = errnoErr(e1)
1058 }
1059 return
1060}
1061
1062// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1063
1064func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1065 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1066 newoffset = int64(r0)
1067 if e1 != 0 {
1068 err = errnoErr(e1)
1069 }
1070 return
1071}
1072
1073// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1074
1075func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1076 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1077 if e1 != 0 {
1078 err = errnoErr(e1)
1079 }
1080 return
1081}
1082
1083// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1084
1085func Setegid(egid int) (err error) {
1086 _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0)
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Seteuid(euid int) (err error) {
1096 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1097 if e1 != 0 {
1098 err = errnoErr(e1)
1099 }
1100 return
1101}
1102
1103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1104
1105func Setgid(gid int) (err error) {
1106 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1107 if e1 != 0 {
1108 err = errnoErr(e1)
1109 }
1110 return
1111}
1112
1113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1114
1115func Setlogin(name string) (err error) {
1116 var _p0 *byte
1117 _p0, err = BytePtrFromString(name)
1118 if err != nil {
1119 return
1120 }
1121 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1122 use(unsafe.Pointer(_p0))
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func Setpgid(pid int, pgid int) (err error) {
1132 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Setpriority(which int, who int, prio int) (err error) {
1142 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1143 if e1 != 0 {
1144 err = errnoErr(e1)
1145 }
1146 return
1147}
1148
1149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1150
1151func Setprivexec(flag int) (err error) {
1152 _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0)
1153 if e1 != 0 {
1154 err = errnoErr(e1)
1155 }
1156 return
1157}
1158
1159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1160
1161func Setregid(rgid int, egid int) (err error) {
1162 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1163 if e1 != 0 {
1164 err = errnoErr(e1)
1165 }
1166 return
1167}
1168
1169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1170
1171func Setreuid(ruid int, euid int) (err error) {
1172 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1173 if e1 != 0 {
1174 err = errnoErr(e1)
1175 }
1176 return
1177}
1178
1179// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1180
1181func Setrlimit(which int, lim *Rlimit) (err error) {
1182 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1183 if e1 != 0 {
1184 err = errnoErr(e1)
1185 }
1186 return
1187}
1188
1189// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1190
1191func Setsid() (pid int, err error) {
1192 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1193 pid = int(r0)
1194 if e1 != 0 {
1195 err = errnoErr(e1)
1196 }
1197 return
1198}
1199
1200// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1201
1202func Settimeofday(tp *Timeval) (err error) {
1203 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1204 if e1 != 0 {
1205 err = errnoErr(e1)
1206 }
1207 return
1208}
1209
1210// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1211
1212func Setuid(uid int) (err error) {
1213 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1214 if e1 != 0 {
1215 err = errnoErr(e1)
1216 }
1217 return
1218}
1219
1220// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1221
1222func Stat(path string, stat *Stat_t) (err error) {
1223 var _p0 *byte
1224 _p0, err = BytePtrFromString(path)
1225 if err != nil {
1226 return
1227 }
1228 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1229 use(unsafe.Pointer(_p0))
1230 if e1 != 0 {
1231 err = errnoErr(e1)
1232 }
1233 return
1234}
1235
1236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1237
1238func Statfs(path string, stat *Statfs_t) (err error) {
1239 var _p0 *byte
1240 _p0, err = BytePtrFromString(path)
1241 if err != nil {
1242 return
1243 }
1244 _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1245 use(unsafe.Pointer(_p0))
1246 if e1 != 0 {
1247 err = errnoErr(e1)
1248 }
1249 return
1250}
1251
1252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1253
1254func Symlink(path string, link string) (err error) {
1255 var _p0 *byte
1256 _p0, err = BytePtrFromString(path)
1257 if err != nil {
1258 return
1259 }
1260 var _p1 *byte
1261 _p1, err = BytePtrFromString(link)
1262 if err != nil {
1263 return
1264 }
1265 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1266 use(unsafe.Pointer(_p0))
1267 use(unsafe.Pointer(_p1))
1268 if e1 != 0 {
1269 err = errnoErr(e1)
1270 }
1271 return
1272}
1273
1274// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1275
1276func Sync() (err error) {
1277 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1278 if e1 != 0 {
1279 err = errnoErr(e1)
1280 }
1281 return
1282}
1283
1284// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1285
1286func Truncate(path string, length int64) (err error) {
1287 var _p0 *byte
1288 _p0, err = BytePtrFromString(path)
1289 if err != nil {
1290 return
1291 }
1292 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1293 use(unsafe.Pointer(_p0))
1294 if e1 != 0 {
1295 err = errnoErr(e1)
1296 }
1297 return
1298}
1299
1300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1301
1302func Umask(newmask int) (oldmask int) {
1303 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1304 oldmask = int(r0)
1305 return
1306}
1307
1308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1309
1310func Undelete(path string) (err error) {
1311 var _p0 *byte
1312 _p0, err = BytePtrFromString(path)
1313 if err != nil {
1314 return
1315 }
1316 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1317 use(unsafe.Pointer(_p0))
1318 if e1 != 0 {
1319 err = errnoErr(e1)
1320 }
1321 return
1322}
1323
1324// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1325
1326func Unlink(path string) (err error) {
1327 var _p0 *byte
1328 _p0, err = BytePtrFromString(path)
1329 if err != nil {
1330 return
1331 }
1332 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1333 use(unsafe.Pointer(_p0))
1334 if e1 != 0 {
1335 err = errnoErr(e1)
1336 }
1337 return
1338}
1339
1340// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1341
1342func Unmount(path string, flags int) (err error) {
1343 var _p0 *byte
1344 _p0, err = BytePtrFromString(path)
1345 if err != nil {
1346 return
1347 }
1348 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1349 use(unsafe.Pointer(_p0))
1350 if e1 != 0 {
1351 err = errnoErr(e1)
1352 }
1353 return
1354}
1355
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357
1358func write(fd int, p []byte) (n int, err error) {
1359 var _p0 unsafe.Pointer
1360 if len(p) > 0 {
1361 _p0 = unsafe.Pointer(&p[0])
1362 } else {
1363 _p0 = unsafe.Pointer(&_zero)
1364 }
1365 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1366 n = int(r0)
1367 if e1 != 0 {
1368 err = errnoErr(e1)
1369 }
1370 return
1371}
1372
1373// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1374
1375func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1376 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1377 ret = uintptr(r0)
1378 if e1 != 0 {
1379 err = errnoErr(e1)
1380 }
1381 return
1382}
1383
1384// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1385
1386func munmap(addr uintptr, length uintptr) (err error) {
1387 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1388 if e1 != 0 {
1389 err = errnoErr(e1)
1390 }
1391 return
1392}
1393
1394// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1395
1396func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1397 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1398 n = int(r0)
1399 if e1 != 0 {
1400 err = errnoErr(e1)
1401 }
1402 return
1403}
1404
1405// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1406
1407func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1408 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1409 n = int(r0)
1410 if e1 != 0 {
1411 err = errnoErr(e1)
1412 }
1413 return
1414}
1415
1416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1417
1418func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
1419 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1420 sec = int32(r0)
1421 usec = int32(r1)
1422 if e1 != 0 {
1423 err = errnoErr(e1)
1424 }
1425 return
1426}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
deleted file mode 100644
index 933f67b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
+++ /dev/null
@@ -1,1426 +0,0 @@
1// mksyscall.pl syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm64,darwin
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
271 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
272 if e1 != 0 {
273 err = errnoErr(e1)
274 }
275 return
276}
277
278// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
279
280func pipe() (r int, w int, err error) {
281 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
282 r = int(r0)
283 w = int(r1)
284 if e1 != 0 {
285 err = errnoErr(e1)
286 }
287 return
288}
289
290// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
291
292func kill(pid int, signum int, posix int) (err error) {
293 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
294 if e1 != 0 {
295 err = errnoErr(e1)
296 }
297 return
298}
299
300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
301
302func Access(path string, mode uint32) (err error) {
303 var _p0 *byte
304 _p0, err = BytePtrFromString(path)
305 if err != nil {
306 return
307 }
308 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
309 use(unsafe.Pointer(_p0))
310 if e1 != 0 {
311 err = errnoErr(e1)
312 }
313 return
314}
315
316// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
317
318func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
319 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
320 if e1 != 0 {
321 err = errnoErr(e1)
322 }
323 return
324}
325
326// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
327
328func Chdir(path string) (err error) {
329 var _p0 *byte
330 _p0, err = BytePtrFromString(path)
331 if err != nil {
332 return
333 }
334 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
335 use(unsafe.Pointer(_p0))
336 if e1 != 0 {
337 err = errnoErr(e1)
338 }
339 return
340}
341
342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
343
344func Chflags(path string, flags int) (err error) {
345 var _p0 *byte
346 _p0, err = BytePtrFromString(path)
347 if err != nil {
348 return
349 }
350 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
351 use(unsafe.Pointer(_p0))
352 if e1 != 0 {
353 err = errnoErr(e1)
354 }
355 return
356}
357
358// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
359
360func Chmod(path string, mode uint32) (err error) {
361 var _p0 *byte
362 _p0, err = BytePtrFromString(path)
363 if err != nil {
364 return
365 }
366 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
367 use(unsafe.Pointer(_p0))
368 if e1 != 0 {
369 err = errnoErr(e1)
370 }
371 return
372}
373
374// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
375
376func Chown(path string, uid int, gid int) (err error) {
377 var _p0 *byte
378 _p0, err = BytePtrFromString(path)
379 if err != nil {
380 return
381 }
382 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
383 use(unsafe.Pointer(_p0))
384 if e1 != 0 {
385 err = errnoErr(e1)
386 }
387 return
388}
389
390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
391
392func Chroot(path string) (err error) {
393 var _p0 *byte
394 _p0, err = BytePtrFromString(path)
395 if err != nil {
396 return
397 }
398 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
399 use(unsafe.Pointer(_p0))
400 if e1 != 0 {
401 err = errnoErr(e1)
402 }
403 return
404}
405
406// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
407
408func Close(fd int) (err error) {
409 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
410 if e1 != 0 {
411 err = errnoErr(e1)
412 }
413 return
414}
415
416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
417
418func Dup(fd int) (nfd int, err error) {
419 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
420 nfd = int(r0)
421 if e1 != 0 {
422 err = errnoErr(e1)
423 }
424 return
425}
426
427// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
428
429func Dup2(from int, to int) (err error) {
430 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
431 if e1 != 0 {
432 err = errnoErr(e1)
433 }
434 return
435}
436
437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
438
439func Exchangedata(path1 string, path2 string, options int) (err error) {
440 var _p0 *byte
441 _p0, err = BytePtrFromString(path1)
442 if err != nil {
443 return
444 }
445 var _p1 *byte
446 _p1, err = BytePtrFromString(path2)
447 if err != nil {
448 return
449 }
450 _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
451 use(unsafe.Pointer(_p0))
452 use(unsafe.Pointer(_p1))
453 if e1 != 0 {
454 err = errnoErr(e1)
455 }
456 return
457}
458
459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
460
461func Exit(code int) {
462 Syscall(SYS_EXIT, uintptr(code), 0, 0)
463 return
464}
465
466// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
467
468func Fchdir(fd int) (err error) {
469 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
470 if e1 != 0 {
471 err = errnoErr(e1)
472 }
473 return
474}
475
476// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
477
478func Fchflags(fd int, flags int) (err error) {
479 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
480 if e1 != 0 {
481 err = errnoErr(e1)
482 }
483 return
484}
485
486// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
487
488func Fchmod(fd int, mode uint32) (err error) {
489 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
490 if e1 != 0 {
491 err = errnoErr(e1)
492 }
493 return
494}
495
496// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
497
498func Fchown(fd int, uid int, gid int) (err error) {
499 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func Flock(fd int, how int) (err error) {
509 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
510 if e1 != 0 {
511 err = errnoErr(e1)
512 }
513 return
514}
515
516// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
517
518func Fpathconf(fd int, name int) (val int, err error) {
519 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
520 val = int(r0)
521 if e1 != 0 {
522 err = errnoErr(e1)
523 }
524 return
525}
526
527// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
528
529func Fstat(fd int, stat *Stat_t) (err error) {
530 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
531 if e1 != 0 {
532 err = errnoErr(e1)
533 }
534 return
535}
536
537// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
538
539func Fstatfs(fd int, stat *Statfs_t) (err error) {
540 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
541 if e1 != 0 {
542 err = errnoErr(e1)
543 }
544 return
545}
546
547// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
548
549func Fsync(fd int) (err error) {
550 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
551 if e1 != 0 {
552 err = errnoErr(e1)
553 }
554 return
555}
556
557// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
558
559func Ftruncate(fd int, length int64) (err error) {
560 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
561 if e1 != 0 {
562 err = errnoErr(e1)
563 }
564 return
565}
566
567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
568
569func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
570 var _p0 unsafe.Pointer
571 if len(buf) > 0 {
572 _p0 = unsafe.Pointer(&buf[0])
573 } else {
574 _p0 = unsafe.Pointer(&_zero)
575 }
576 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
577 n = int(r0)
578 if e1 != 0 {
579 err = errnoErr(e1)
580 }
581 return
582}
583
584// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
585
586func Getdtablesize() (size int) {
587 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
588 size = int(r0)
589 return
590}
591
592// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
593
594func Getegid() (egid int) {
595 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
596 egid = int(r0)
597 return
598}
599
600// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601
602func Geteuid() (uid int) {
603 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
604 uid = int(r0)
605 return
606}
607
608// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
609
610func Getgid() (gid int) {
611 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
612 gid = int(r0)
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func Getpgid(pid int) (pgid int, err error) {
619 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
620 pgid = int(r0)
621 if e1 != 0 {
622 err = errnoErr(e1)
623 }
624 return
625}
626
627// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
628
629func Getpgrp() (pgrp int) {
630 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
631 pgrp = int(r0)
632 return
633}
634
635// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
636
637func Getpid() (pid int) {
638 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
639 pid = int(r0)
640 return
641}
642
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644
645func Getppid() (ppid int) {
646 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
647 ppid = int(r0)
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func Getpriority(which int, who int) (prio int, err error) {
654 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
655 prio = int(r0)
656 if e1 != 0 {
657 err = errnoErr(e1)
658 }
659 return
660}
661
662// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
663
664func Getrlimit(which int, lim *Rlimit) (err error) {
665 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
666 if e1 != 0 {
667 err = errnoErr(e1)
668 }
669 return
670}
671
672// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
673
674func Getrusage(who int, rusage *Rusage) (err error) {
675 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Getsid(pid int) (sid int, err error) {
685 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
686 sid = int(r0)
687 if e1 != 0 {
688 err = errnoErr(e1)
689 }
690 return
691}
692
693// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
694
695func Getuid() (uid int) {
696 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
697 uid = int(r0)
698 return
699}
700
701// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
702
703func Issetugid() (tainted bool) {
704 r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0)
705 tainted = bool(r0 != 0)
706 return
707}
708
709// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
710
711func Kqueue() (fd int, err error) {
712 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
713 fd = int(r0)
714 if e1 != 0 {
715 err = errnoErr(e1)
716 }
717 return
718}
719
720// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
721
722func Lchown(path string, uid int, gid int) (err error) {
723 var _p0 *byte
724 _p0, err = BytePtrFromString(path)
725 if err != nil {
726 return
727 }
728 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
729 use(unsafe.Pointer(_p0))
730 if e1 != 0 {
731 err = errnoErr(e1)
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Link(path string, link string) (err error) {
739 var _p0 *byte
740 _p0, err = BytePtrFromString(path)
741 if err != nil {
742 return
743 }
744 var _p1 *byte
745 _p1, err = BytePtrFromString(link)
746 if err != nil {
747 return
748 }
749 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
750 use(unsafe.Pointer(_p0))
751 use(unsafe.Pointer(_p1))
752 if e1 != 0 {
753 err = errnoErr(e1)
754 }
755 return
756}
757
758// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
759
760func Listen(s int, backlog int) (err error) {
761 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
762 if e1 != 0 {
763 err = errnoErr(e1)
764 }
765 return
766}
767
768// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
769
770func Lstat(path string, stat *Stat_t) (err error) {
771 var _p0 *byte
772 _p0, err = BytePtrFromString(path)
773 if err != nil {
774 return
775 }
776 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
777 use(unsafe.Pointer(_p0))
778 if e1 != 0 {
779 err = errnoErr(e1)
780 }
781 return
782}
783
784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
785
786func Mkdir(path string, mode uint32) (err error) {
787 var _p0 *byte
788 _p0, err = BytePtrFromString(path)
789 if err != nil {
790 return
791 }
792 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
793 use(unsafe.Pointer(_p0))
794 if e1 != 0 {
795 err = errnoErr(e1)
796 }
797 return
798}
799
800// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
801
802func Mkfifo(path string, mode uint32) (err error) {
803 var _p0 *byte
804 _p0, err = BytePtrFromString(path)
805 if err != nil {
806 return
807 }
808 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
809 use(unsafe.Pointer(_p0))
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Mknod(path string, mode uint32, dev int) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
825 use(unsafe.Pointer(_p0))
826 if e1 != 0 {
827 err = errnoErr(e1)
828 }
829 return
830}
831
832// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
833
834func Mlock(b []byte) (err error) {
835 var _p0 unsafe.Pointer
836 if len(b) > 0 {
837 _p0 = unsafe.Pointer(&b[0])
838 } else {
839 _p0 = unsafe.Pointer(&_zero)
840 }
841 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
842 if e1 != 0 {
843 err = errnoErr(e1)
844 }
845 return
846}
847
848// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
849
850func Mlockall(flags int) (err error) {
851 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
852 if e1 != 0 {
853 err = errnoErr(e1)
854 }
855 return
856}
857
858// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
859
860func Mprotect(b []byte, prot int) (err error) {
861 var _p0 unsafe.Pointer
862 if len(b) > 0 {
863 _p0 = unsafe.Pointer(&b[0])
864 } else {
865 _p0 = unsafe.Pointer(&_zero)
866 }
867 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
868 if e1 != 0 {
869 err = errnoErr(e1)
870 }
871 return
872}
873
874// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
875
876func Munlock(b []byte) (err error) {
877 var _p0 unsafe.Pointer
878 if len(b) > 0 {
879 _p0 = unsafe.Pointer(&b[0])
880 } else {
881 _p0 = unsafe.Pointer(&_zero)
882 }
883 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
884 if e1 != 0 {
885 err = errnoErr(e1)
886 }
887 return
888}
889
890// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
891
892func Munlockall() (err error) {
893 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
894 if e1 != 0 {
895 err = errnoErr(e1)
896 }
897 return
898}
899
900// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
901
902func Open(path string, mode int, perm uint32) (fd int, err error) {
903 var _p0 *byte
904 _p0, err = BytePtrFromString(path)
905 if err != nil {
906 return
907 }
908 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
909 use(unsafe.Pointer(_p0))
910 fd = int(r0)
911 if e1 != 0 {
912 err = errnoErr(e1)
913 }
914 return
915}
916
917// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
918
919func Pathconf(path string, name int) (val int, err error) {
920 var _p0 *byte
921 _p0, err = BytePtrFromString(path)
922 if err != nil {
923 return
924 }
925 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
926 use(unsafe.Pointer(_p0))
927 val = int(r0)
928 if e1 != 0 {
929 err = errnoErr(e1)
930 }
931 return
932}
933
934// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
935
936func Pread(fd int, p []byte, offset int64) (n int, err error) {
937 var _p0 unsafe.Pointer
938 if len(p) > 0 {
939 _p0 = unsafe.Pointer(&p[0])
940 } else {
941 _p0 = unsafe.Pointer(&_zero)
942 }
943 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
944 n = int(r0)
945 if e1 != 0 {
946 err = errnoErr(e1)
947 }
948 return
949}
950
951// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
952
953func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
954 var _p0 unsafe.Pointer
955 if len(p) > 0 {
956 _p0 = unsafe.Pointer(&p[0])
957 } else {
958 _p0 = unsafe.Pointer(&_zero)
959 }
960 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
961 n = int(r0)
962 if e1 != 0 {
963 err = errnoErr(e1)
964 }
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func read(fd int, p []byte) (n int, err error) {
971 var _p0 unsafe.Pointer
972 if len(p) > 0 {
973 _p0 = unsafe.Pointer(&p[0])
974 } else {
975 _p0 = unsafe.Pointer(&_zero)
976 }
977 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
978 n = int(r0)
979 if e1 != 0 {
980 err = errnoErr(e1)
981 }
982 return
983}
984
985// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
986
987func Readlink(path string, buf []byte) (n int, err error) {
988 var _p0 *byte
989 _p0, err = BytePtrFromString(path)
990 if err != nil {
991 return
992 }
993 var _p1 unsafe.Pointer
994 if len(buf) > 0 {
995 _p1 = unsafe.Pointer(&buf[0])
996 } else {
997 _p1 = unsafe.Pointer(&_zero)
998 }
999 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1000 use(unsafe.Pointer(_p0))
1001 n = int(r0)
1002 if e1 != 0 {
1003 err = errnoErr(e1)
1004 }
1005 return
1006}
1007
1008// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1009
1010func Rename(from string, to string) (err error) {
1011 var _p0 *byte
1012 _p0, err = BytePtrFromString(from)
1013 if err != nil {
1014 return
1015 }
1016 var _p1 *byte
1017 _p1, err = BytePtrFromString(to)
1018 if err != nil {
1019 return
1020 }
1021 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1022 use(unsafe.Pointer(_p0))
1023 use(unsafe.Pointer(_p1))
1024 if e1 != 0 {
1025 err = errnoErr(e1)
1026 }
1027 return
1028}
1029
1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1031
1032func Revoke(path string) (err error) {
1033 var _p0 *byte
1034 _p0, err = BytePtrFromString(path)
1035 if err != nil {
1036 return
1037 }
1038 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1039 use(unsafe.Pointer(_p0))
1040 if e1 != 0 {
1041 err = errnoErr(e1)
1042 }
1043 return
1044}
1045
1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1047
1048func Rmdir(path string) (err error) {
1049 var _p0 *byte
1050 _p0, err = BytePtrFromString(path)
1051 if err != nil {
1052 return
1053 }
1054 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1055 use(unsafe.Pointer(_p0))
1056 if e1 != 0 {
1057 err = errnoErr(e1)
1058 }
1059 return
1060}
1061
1062// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1063
1064func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1065 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1066 newoffset = int64(r0)
1067 if e1 != 0 {
1068 err = errnoErr(e1)
1069 }
1070 return
1071}
1072
1073// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1074
1075func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1076 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1077 if e1 != 0 {
1078 err = errnoErr(e1)
1079 }
1080 return
1081}
1082
1083// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1084
1085func Setegid(egid int) (err error) {
1086 _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0)
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Seteuid(euid int) (err error) {
1096 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1097 if e1 != 0 {
1098 err = errnoErr(e1)
1099 }
1100 return
1101}
1102
1103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1104
1105func Setgid(gid int) (err error) {
1106 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1107 if e1 != 0 {
1108 err = errnoErr(e1)
1109 }
1110 return
1111}
1112
1113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1114
1115func Setlogin(name string) (err error) {
1116 var _p0 *byte
1117 _p0, err = BytePtrFromString(name)
1118 if err != nil {
1119 return
1120 }
1121 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1122 use(unsafe.Pointer(_p0))
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func Setpgid(pid int, pgid int) (err error) {
1132 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Setpriority(which int, who int, prio int) (err error) {
1142 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1143 if e1 != 0 {
1144 err = errnoErr(e1)
1145 }
1146 return
1147}
1148
1149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1150
1151func Setprivexec(flag int) (err error) {
1152 _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0)
1153 if e1 != 0 {
1154 err = errnoErr(e1)
1155 }
1156 return
1157}
1158
1159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1160
1161func Setregid(rgid int, egid int) (err error) {
1162 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1163 if e1 != 0 {
1164 err = errnoErr(e1)
1165 }
1166 return
1167}
1168
1169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1170
1171func Setreuid(ruid int, euid int) (err error) {
1172 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1173 if e1 != 0 {
1174 err = errnoErr(e1)
1175 }
1176 return
1177}
1178
1179// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1180
1181func Setrlimit(which int, lim *Rlimit) (err error) {
1182 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1183 if e1 != 0 {
1184 err = errnoErr(e1)
1185 }
1186 return
1187}
1188
1189// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1190
1191func Setsid() (pid int, err error) {
1192 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1193 pid = int(r0)
1194 if e1 != 0 {
1195 err = errnoErr(e1)
1196 }
1197 return
1198}
1199
1200// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1201
1202func Settimeofday(tp *Timeval) (err error) {
1203 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1204 if e1 != 0 {
1205 err = errnoErr(e1)
1206 }
1207 return
1208}
1209
1210// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1211
1212func Setuid(uid int) (err error) {
1213 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1214 if e1 != 0 {
1215 err = errnoErr(e1)
1216 }
1217 return
1218}
1219
1220// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1221
1222func Stat(path string, stat *Stat_t) (err error) {
1223 var _p0 *byte
1224 _p0, err = BytePtrFromString(path)
1225 if err != nil {
1226 return
1227 }
1228 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1229 use(unsafe.Pointer(_p0))
1230 if e1 != 0 {
1231 err = errnoErr(e1)
1232 }
1233 return
1234}
1235
1236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1237
1238func Statfs(path string, stat *Statfs_t) (err error) {
1239 var _p0 *byte
1240 _p0, err = BytePtrFromString(path)
1241 if err != nil {
1242 return
1243 }
1244 _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1245 use(unsafe.Pointer(_p0))
1246 if e1 != 0 {
1247 err = errnoErr(e1)
1248 }
1249 return
1250}
1251
1252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1253
1254func Symlink(path string, link string) (err error) {
1255 var _p0 *byte
1256 _p0, err = BytePtrFromString(path)
1257 if err != nil {
1258 return
1259 }
1260 var _p1 *byte
1261 _p1, err = BytePtrFromString(link)
1262 if err != nil {
1263 return
1264 }
1265 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1266 use(unsafe.Pointer(_p0))
1267 use(unsafe.Pointer(_p1))
1268 if e1 != 0 {
1269 err = errnoErr(e1)
1270 }
1271 return
1272}
1273
1274// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1275
1276func Sync() (err error) {
1277 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1278 if e1 != 0 {
1279 err = errnoErr(e1)
1280 }
1281 return
1282}
1283
1284// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1285
1286func Truncate(path string, length int64) (err error) {
1287 var _p0 *byte
1288 _p0, err = BytePtrFromString(path)
1289 if err != nil {
1290 return
1291 }
1292 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1293 use(unsafe.Pointer(_p0))
1294 if e1 != 0 {
1295 err = errnoErr(e1)
1296 }
1297 return
1298}
1299
1300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1301
1302func Umask(newmask int) (oldmask int) {
1303 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1304 oldmask = int(r0)
1305 return
1306}
1307
1308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1309
1310func Undelete(path string) (err error) {
1311 var _p0 *byte
1312 _p0, err = BytePtrFromString(path)
1313 if err != nil {
1314 return
1315 }
1316 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1317 use(unsafe.Pointer(_p0))
1318 if e1 != 0 {
1319 err = errnoErr(e1)
1320 }
1321 return
1322}
1323
1324// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1325
1326func Unlink(path string) (err error) {
1327 var _p0 *byte
1328 _p0, err = BytePtrFromString(path)
1329 if err != nil {
1330 return
1331 }
1332 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1333 use(unsafe.Pointer(_p0))
1334 if e1 != 0 {
1335 err = errnoErr(e1)
1336 }
1337 return
1338}
1339
1340// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1341
1342func Unmount(path string, flags int) (err error) {
1343 var _p0 *byte
1344 _p0, err = BytePtrFromString(path)
1345 if err != nil {
1346 return
1347 }
1348 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1349 use(unsafe.Pointer(_p0))
1350 if e1 != 0 {
1351 err = errnoErr(e1)
1352 }
1353 return
1354}
1355
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357
1358func write(fd int, p []byte) (n int, err error) {
1359 var _p0 unsafe.Pointer
1360 if len(p) > 0 {
1361 _p0 = unsafe.Pointer(&p[0])
1362 } else {
1363 _p0 = unsafe.Pointer(&_zero)
1364 }
1365 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1366 n = int(r0)
1367 if e1 != 0 {
1368 err = errnoErr(e1)
1369 }
1370 return
1371}
1372
1373// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1374
1375func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1376 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1377 ret = uintptr(r0)
1378 if e1 != 0 {
1379 err = errnoErr(e1)
1380 }
1381 return
1382}
1383
1384// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1385
1386func munmap(addr uintptr, length uintptr) (err error) {
1387 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1388 if e1 != 0 {
1389 err = errnoErr(e1)
1390 }
1391 return
1392}
1393
1394// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1395
1396func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1397 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1398 n = int(r0)
1399 if e1 != 0 {
1400 err = errnoErr(e1)
1401 }
1402 return
1403}
1404
1405// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1406
1407func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1408 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1409 n = int(r0)
1410 if e1 != 0 {
1411 err = errnoErr(e1)
1412 }
1413 return
1414}
1415
1416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1417
1418func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
1419 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1420 sec = int64(r0)
1421 usec = int32(r1)
1422 if e1 != 0 {
1423 err = errnoErr(e1)
1424 }
1425 return
1426}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_dragonfly_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_dragonfly_386.go
deleted file mode 100644
index 32e46af..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_dragonfly_386.go
+++ /dev/null
@@ -1,1412 +0,0 @@
1// mksyscall.pl -l32 -dragonfly syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_386.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,dragonfly
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe() (r int, w int, err error) {
271 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
272 r = int(r0)
273 w = int(r1)
274 if e1 != 0 {
275 err = errnoErr(e1)
276 }
277 return
278}
279
280// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
281
282func extpread(fd int, p []byte, flags int, offset int64) (n int, err error) {
283 var _p0 unsafe.Pointer
284 if len(p) > 0 {
285 _p0 = unsafe.Pointer(&p[0])
286 } else {
287 _p0 = unsafe.Pointer(&_zero)
288 }
289 r0, _, e1 := Syscall6(SYS_EXTPREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), uintptr(offset>>32))
290 n = int(r0)
291 if e1 != 0 {
292 err = errnoErr(e1)
293 }
294 return
295}
296
297// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
298
299func extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) {
300 var _p0 unsafe.Pointer
301 if len(p) > 0 {
302 _p0 = unsafe.Pointer(&p[0])
303 } else {
304 _p0 = unsafe.Pointer(&_zero)
305 }
306 r0, _, e1 := Syscall6(SYS_EXTPWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), uintptr(offset>>32))
307 n = int(r0)
308 if e1 != 0 {
309 err = errnoErr(e1)
310 }
311 return
312}
313
314// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
315
316func Access(path string, mode uint32) (err error) {
317 var _p0 *byte
318 _p0, err = BytePtrFromString(path)
319 if err != nil {
320 return
321 }
322 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
323 use(unsafe.Pointer(_p0))
324 if e1 != 0 {
325 err = errnoErr(e1)
326 }
327 return
328}
329
330// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
331
332func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
333 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
334 if e1 != 0 {
335 err = errnoErr(e1)
336 }
337 return
338}
339
340// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
341
342func Chdir(path string) (err error) {
343 var _p0 *byte
344 _p0, err = BytePtrFromString(path)
345 if err != nil {
346 return
347 }
348 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
349 use(unsafe.Pointer(_p0))
350 if e1 != 0 {
351 err = errnoErr(e1)
352 }
353 return
354}
355
356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
357
358func Chflags(path string, flags int) (err error) {
359 var _p0 *byte
360 _p0, err = BytePtrFromString(path)
361 if err != nil {
362 return
363 }
364 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
365 use(unsafe.Pointer(_p0))
366 if e1 != 0 {
367 err = errnoErr(e1)
368 }
369 return
370}
371
372// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
373
374func Chmod(path string, mode uint32) (err error) {
375 var _p0 *byte
376 _p0, err = BytePtrFromString(path)
377 if err != nil {
378 return
379 }
380 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
381 use(unsafe.Pointer(_p0))
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Chown(path string, uid int, gid int) (err error) {
391 var _p0 *byte
392 _p0, err = BytePtrFromString(path)
393 if err != nil {
394 return
395 }
396 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
397 use(unsafe.Pointer(_p0))
398 if e1 != 0 {
399 err = errnoErr(e1)
400 }
401 return
402}
403
404// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
405
406func Chroot(path string) (err error) {
407 var _p0 *byte
408 _p0, err = BytePtrFromString(path)
409 if err != nil {
410 return
411 }
412 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
413 use(unsafe.Pointer(_p0))
414 if e1 != 0 {
415 err = errnoErr(e1)
416 }
417 return
418}
419
420// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
421
422func Close(fd int) (err error) {
423 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
424 if e1 != 0 {
425 err = errnoErr(e1)
426 }
427 return
428}
429
430// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
431
432func Dup(fd int) (nfd int, err error) {
433 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
434 nfd = int(r0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Dup2(from int, to int) (err error) {
444 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
445 if e1 != 0 {
446 err = errnoErr(e1)
447 }
448 return
449}
450
451// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452
453func Exit(code int) {
454 Syscall(SYS_EXIT, uintptr(code), 0, 0)
455 return
456}
457
458// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
459
460func Fchdir(fd int) (err error) {
461 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
462 if e1 != 0 {
463 err = errnoErr(e1)
464 }
465 return
466}
467
468// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
469
470func Fchflags(fd int, flags int) (err error) {
471 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
472 if e1 != 0 {
473 err = errnoErr(e1)
474 }
475 return
476}
477
478// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
479
480func Fchmod(fd int, mode uint32) (err error) {
481 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
482 if e1 != 0 {
483 err = errnoErr(e1)
484 }
485 return
486}
487
488// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
489
490func Fchown(fd int, uid int, gid int) (err error) {
491 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
492 if e1 != 0 {
493 err = errnoErr(e1)
494 }
495 return
496}
497
498// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
499
500func Flock(fd int, how int) (err error) {
501 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
502 if e1 != 0 {
503 err = errnoErr(e1)
504 }
505 return
506}
507
508// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
509
510func Fpathconf(fd int, name int) (val int, err error) {
511 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
512 val = int(r0)
513 if e1 != 0 {
514 err = errnoErr(e1)
515 }
516 return
517}
518
519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
520
521func Fstat(fd int, stat *Stat_t) (err error) {
522 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
523 if e1 != 0 {
524 err = errnoErr(e1)
525 }
526 return
527}
528
529// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
530
531func Fstatfs(fd int, stat *Statfs_t) (err error) {
532 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
533 if e1 != 0 {
534 err = errnoErr(e1)
535 }
536 return
537}
538
539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
540
541func Fsync(fd int) (err error) {
542 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
543 if e1 != 0 {
544 err = errnoErr(e1)
545 }
546 return
547}
548
549// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
550
551func Ftruncate(fd int, length int64) (err error) {
552 _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
553 if e1 != 0 {
554 err = errnoErr(e1)
555 }
556 return
557}
558
559// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
560
561func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
562 var _p0 unsafe.Pointer
563 if len(buf) > 0 {
564 _p0 = unsafe.Pointer(&buf[0])
565 } else {
566 _p0 = unsafe.Pointer(&_zero)
567 }
568 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
569 n = int(r0)
570 if e1 != 0 {
571 err = errnoErr(e1)
572 }
573 return
574}
575
576// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
577
578func Getdtablesize() (size int) {
579 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
580 size = int(r0)
581 return
582}
583
584// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
585
586func Getegid() (egid int) {
587 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
588 egid = int(r0)
589 return
590}
591
592// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
593
594func Geteuid() (uid int) {
595 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
596 uid = int(r0)
597 return
598}
599
600// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601
602func Getgid() (gid int) {
603 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
604 gid = int(r0)
605 return
606}
607
608// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
609
610func Getpgid(pid int) (pgid int, err error) {
611 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
612 pgid = int(r0)
613 if e1 != 0 {
614 err = errnoErr(e1)
615 }
616 return
617}
618
619// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
620
621func Getpgrp() (pgrp int) {
622 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
623 pgrp = int(r0)
624 return
625}
626
627// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
628
629func Getpid() (pid int) {
630 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
631 pid = int(r0)
632 return
633}
634
635// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
636
637func Getppid() (ppid int) {
638 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
639 ppid = int(r0)
640 return
641}
642
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644
645func Getpriority(which int, who int) (prio int, err error) {
646 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
647 prio = int(r0)
648 if e1 != 0 {
649 err = errnoErr(e1)
650 }
651 return
652}
653
654// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
655
656func Getrlimit(which int, lim *Rlimit) (err error) {
657 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
658 if e1 != 0 {
659 err = errnoErr(e1)
660 }
661 return
662}
663
664// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
665
666func Getrusage(who int, rusage *Rusage) (err error) {
667 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
668 if e1 != 0 {
669 err = errnoErr(e1)
670 }
671 return
672}
673
674// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
675
676func Getsid(pid int) (sid int, err error) {
677 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
678 sid = int(r0)
679 if e1 != 0 {
680 err = errnoErr(e1)
681 }
682 return
683}
684
685// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
686
687func Gettimeofday(tv *Timeval) (err error) {
688 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
689 if e1 != 0 {
690 err = errnoErr(e1)
691 }
692 return
693}
694
695// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
696
697func Getuid() (uid int) {
698 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
699 uid = int(r0)
700 return
701}
702
703// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
704
705func Issetugid() (tainted bool) {
706 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
707 tainted = bool(r0 != 0)
708 return
709}
710
711// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
712
713func Kill(pid int, signum syscall.Signal) (err error) {
714 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
715 if e1 != 0 {
716 err = errnoErr(e1)
717 }
718 return
719}
720
721// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
722
723func Kqueue() (fd int, err error) {
724 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
725 fd = int(r0)
726 if e1 != 0 {
727 err = errnoErr(e1)
728 }
729 return
730}
731
732// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
733
734func Lchown(path string, uid int, gid int) (err error) {
735 var _p0 *byte
736 _p0, err = BytePtrFromString(path)
737 if err != nil {
738 return
739 }
740 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
741 use(unsafe.Pointer(_p0))
742 if e1 != 0 {
743 err = errnoErr(e1)
744 }
745 return
746}
747
748// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
749
750func Link(path string, link string) (err error) {
751 var _p0 *byte
752 _p0, err = BytePtrFromString(path)
753 if err != nil {
754 return
755 }
756 var _p1 *byte
757 _p1, err = BytePtrFromString(link)
758 if err != nil {
759 return
760 }
761 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
762 use(unsafe.Pointer(_p0))
763 use(unsafe.Pointer(_p1))
764 if e1 != 0 {
765 err = errnoErr(e1)
766 }
767 return
768}
769
770// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
771
772func Listen(s int, backlog int) (err error) {
773 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
774 if e1 != 0 {
775 err = errnoErr(e1)
776 }
777 return
778}
779
780// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
781
782func Lstat(path string, stat *Stat_t) (err error) {
783 var _p0 *byte
784 _p0, err = BytePtrFromString(path)
785 if err != nil {
786 return
787 }
788 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
789 use(unsafe.Pointer(_p0))
790 if e1 != 0 {
791 err = errnoErr(e1)
792 }
793 return
794}
795
796// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
797
798func Mkdir(path string, mode uint32) (err error) {
799 var _p0 *byte
800 _p0, err = BytePtrFromString(path)
801 if err != nil {
802 return
803 }
804 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
805 use(unsafe.Pointer(_p0))
806 if e1 != 0 {
807 err = errnoErr(e1)
808 }
809 return
810}
811
812// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
813
814func Mkfifo(path string, mode uint32) (err error) {
815 var _p0 *byte
816 _p0, err = BytePtrFromString(path)
817 if err != nil {
818 return
819 }
820 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
821 use(unsafe.Pointer(_p0))
822 if e1 != 0 {
823 err = errnoErr(e1)
824 }
825 return
826}
827
828// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
829
830func Mknod(path string, mode uint32, dev int) (err error) {
831 var _p0 *byte
832 _p0, err = BytePtrFromString(path)
833 if err != nil {
834 return
835 }
836 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
837 use(unsafe.Pointer(_p0))
838 if e1 != 0 {
839 err = errnoErr(e1)
840 }
841 return
842}
843
844// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
845
846func Mlock(b []byte) (err error) {
847 var _p0 unsafe.Pointer
848 if len(b) > 0 {
849 _p0 = unsafe.Pointer(&b[0])
850 } else {
851 _p0 = unsafe.Pointer(&_zero)
852 }
853 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Mlockall(flags int) (err error) {
863 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
864 if e1 != 0 {
865 err = errnoErr(e1)
866 }
867 return
868}
869
870// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
871
872func Mprotect(b []byte, prot int) (err error) {
873 var _p0 unsafe.Pointer
874 if len(b) > 0 {
875 _p0 = unsafe.Pointer(&b[0])
876 } else {
877 _p0 = unsafe.Pointer(&_zero)
878 }
879 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
880 if e1 != 0 {
881 err = errnoErr(e1)
882 }
883 return
884}
885
886// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
887
888func Munlock(b []byte) (err error) {
889 var _p0 unsafe.Pointer
890 if len(b) > 0 {
891 _p0 = unsafe.Pointer(&b[0])
892 } else {
893 _p0 = unsafe.Pointer(&_zero)
894 }
895 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Munlockall() (err error) {
905 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
906 if e1 != 0 {
907 err = errnoErr(e1)
908 }
909 return
910}
911
912// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
913
914func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
915 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
916 if e1 != 0 {
917 err = errnoErr(e1)
918 }
919 return
920}
921
922// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
923
924func Open(path string, mode int, perm uint32) (fd int, err error) {
925 var _p0 *byte
926 _p0, err = BytePtrFromString(path)
927 if err != nil {
928 return
929 }
930 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
931 use(unsafe.Pointer(_p0))
932 fd = int(r0)
933 if e1 != 0 {
934 err = errnoErr(e1)
935 }
936 return
937}
938
939// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
940
941func Pathconf(path string, name int) (val int, err error) {
942 var _p0 *byte
943 _p0, err = BytePtrFromString(path)
944 if err != nil {
945 return
946 }
947 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
948 use(unsafe.Pointer(_p0))
949 val = int(r0)
950 if e1 != 0 {
951 err = errnoErr(e1)
952 }
953 return
954}
955
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957
958func read(fd int, p []byte) (n int, err error) {
959 var _p0 unsafe.Pointer
960 if len(p) > 0 {
961 _p0 = unsafe.Pointer(&p[0])
962 } else {
963 _p0 = unsafe.Pointer(&_zero)
964 }
965 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
966 n = int(r0)
967 if e1 != 0 {
968 err = errnoErr(e1)
969 }
970 return
971}
972
973// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
974
975func Readlink(path string, buf []byte) (n int, err error) {
976 var _p0 *byte
977 _p0, err = BytePtrFromString(path)
978 if err != nil {
979 return
980 }
981 var _p1 unsafe.Pointer
982 if len(buf) > 0 {
983 _p1 = unsafe.Pointer(&buf[0])
984 } else {
985 _p1 = unsafe.Pointer(&_zero)
986 }
987 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
988 use(unsafe.Pointer(_p0))
989 n = int(r0)
990 if e1 != 0 {
991 err = errnoErr(e1)
992 }
993 return
994}
995
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997
998func Rename(from string, to string) (err error) {
999 var _p0 *byte
1000 _p0, err = BytePtrFromString(from)
1001 if err != nil {
1002 return
1003 }
1004 var _p1 *byte
1005 _p1, err = BytePtrFromString(to)
1006 if err != nil {
1007 return
1008 }
1009 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1010 use(unsafe.Pointer(_p0))
1011 use(unsafe.Pointer(_p1))
1012 if e1 != 0 {
1013 err = errnoErr(e1)
1014 }
1015 return
1016}
1017
1018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1019
1020func Revoke(path string) (err error) {
1021 var _p0 *byte
1022 _p0, err = BytePtrFromString(path)
1023 if err != nil {
1024 return
1025 }
1026 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1027 use(unsafe.Pointer(_p0))
1028 if e1 != 0 {
1029 err = errnoErr(e1)
1030 }
1031 return
1032}
1033
1034// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1035
1036func Rmdir(path string) (err error) {
1037 var _p0 *byte
1038 _p0, err = BytePtrFromString(path)
1039 if err != nil {
1040 return
1041 }
1042 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1043 use(unsafe.Pointer(_p0))
1044 if e1 != 0 {
1045 err = errnoErr(e1)
1046 }
1047 return
1048}
1049
1050// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1051
1052func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1053 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)
1054 newoffset = int64(int64(r1)<<32 | int64(r0))
1055 if e1 != 0 {
1056 err = errnoErr(e1)
1057 }
1058 return
1059}
1060
1061// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1062
1063func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1064 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1065 if e1 != 0 {
1066 err = errnoErr(e1)
1067 }
1068 return
1069}
1070
1071// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1072
1073func Setegid(egid int) (err error) {
1074 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1075 if e1 != 0 {
1076 err = errnoErr(e1)
1077 }
1078 return
1079}
1080
1081// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1082
1083func Seteuid(euid int) (err error) {
1084 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1085 if e1 != 0 {
1086 err = errnoErr(e1)
1087 }
1088 return
1089}
1090
1091// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1092
1093func Setgid(gid int) (err error) {
1094 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1095 if e1 != 0 {
1096 err = errnoErr(e1)
1097 }
1098 return
1099}
1100
1101// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1102
1103func Setlogin(name string) (err error) {
1104 var _p0 *byte
1105 _p0, err = BytePtrFromString(name)
1106 if err != nil {
1107 return
1108 }
1109 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1110 use(unsafe.Pointer(_p0))
1111 if e1 != 0 {
1112 err = errnoErr(e1)
1113 }
1114 return
1115}
1116
1117// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1118
1119func Setpgid(pid int, pgid int) (err error) {
1120 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1121 if e1 != 0 {
1122 err = errnoErr(e1)
1123 }
1124 return
1125}
1126
1127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1128
1129func Setpriority(which int, who int, prio int) (err error) {
1130 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1131 if e1 != 0 {
1132 err = errnoErr(e1)
1133 }
1134 return
1135}
1136
1137// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1138
1139func Setregid(rgid int, egid int) (err error) {
1140 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1141 if e1 != 0 {
1142 err = errnoErr(e1)
1143 }
1144 return
1145}
1146
1147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1148
1149func Setreuid(ruid int, euid int) (err error) {
1150 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1151 if e1 != 0 {
1152 err = errnoErr(e1)
1153 }
1154 return
1155}
1156
1157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1158
1159func Setresgid(rgid int, egid int, sgid int) (err error) {
1160 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1161 if e1 != 0 {
1162 err = errnoErr(e1)
1163 }
1164 return
1165}
1166
1167// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1168
1169func Setresuid(ruid int, euid int, suid int) (err error) {
1170 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1171 if e1 != 0 {
1172 err = errnoErr(e1)
1173 }
1174 return
1175}
1176
1177// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1178
1179func Setrlimit(which int, lim *Rlimit) (err error) {
1180 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1181 if e1 != 0 {
1182 err = errnoErr(e1)
1183 }
1184 return
1185}
1186
1187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1188
1189func Setsid() (pid int, err error) {
1190 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1191 pid = int(r0)
1192 if e1 != 0 {
1193 err = errnoErr(e1)
1194 }
1195 return
1196}
1197
1198// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1199
1200func Settimeofday(tp *Timeval) (err error) {
1201 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1202 if e1 != 0 {
1203 err = errnoErr(e1)
1204 }
1205 return
1206}
1207
1208// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1209
1210func Setuid(uid int) (err error) {
1211 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1212 if e1 != 0 {
1213 err = errnoErr(e1)
1214 }
1215 return
1216}
1217
1218// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1219
1220func Stat(path string, stat *Stat_t) (err error) {
1221 var _p0 *byte
1222 _p0, err = BytePtrFromString(path)
1223 if err != nil {
1224 return
1225 }
1226 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1227 use(unsafe.Pointer(_p0))
1228 if e1 != 0 {
1229 err = errnoErr(e1)
1230 }
1231 return
1232}
1233
1234// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1235
1236func Statfs(path string, stat *Statfs_t) (err error) {
1237 var _p0 *byte
1238 _p0, err = BytePtrFromString(path)
1239 if err != nil {
1240 return
1241 }
1242 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1243 use(unsafe.Pointer(_p0))
1244 if e1 != 0 {
1245 err = errnoErr(e1)
1246 }
1247 return
1248}
1249
1250// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1251
1252func Symlink(path string, link string) (err error) {
1253 var _p0 *byte
1254 _p0, err = BytePtrFromString(path)
1255 if err != nil {
1256 return
1257 }
1258 var _p1 *byte
1259 _p1, err = BytePtrFromString(link)
1260 if err != nil {
1261 return
1262 }
1263 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1264 use(unsafe.Pointer(_p0))
1265 use(unsafe.Pointer(_p1))
1266 if e1 != 0 {
1267 err = errnoErr(e1)
1268 }
1269 return
1270}
1271
1272// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1273
1274func Sync() (err error) {
1275 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1276 if e1 != 0 {
1277 err = errnoErr(e1)
1278 }
1279 return
1280}
1281
1282// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1283
1284func Truncate(path string, length int64) (err error) {
1285 var _p0 *byte
1286 _p0, err = BytePtrFromString(path)
1287 if err != nil {
1288 return
1289 }
1290 _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
1291 use(unsafe.Pointer(_p0))
1292 if e1 != 0 {
1293 err = errnoErr(e1)
1294 }
1295 return
1296}
1297
1298// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1299
1300func Umask(newmask int) (oldmask int) {
1301 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1302 oldmask = int(r0)
1303 return
1304}
1305
1306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1307
1308func Undelete(path string) (err error) {
1309 var _p0 *byte
1310 _p0, err = BytePtrFromString(path)
1311 if err != nil {
1312 return
1313 }
1314 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1315 use(unsafe.Pointer(_p0))
1316 if e1 != 0 {
1317 err = errnoErr(e1)
1318 }
1319 return
1320}
1321
1322// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1323
1324func Unlink(path string) (err error) {
1325 var _p0 *byte
1326 _p0, err = BytePtrFromString(path)
1327 if err != nil {
1328 return
1329 }
1330 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1331 use(unsafe.Pointer(_p0))
1332 if e1 != 0 {
1333 err = errnoErr(e1)
1334 }
1335 return
1336}
1337
1338// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1339
1340func Unmount(path string, flags int) (err error) {
1341 var _p0 *byte
1342 _p0, err = BytePtrFromString(path)
1343 if err != nil {
1344 return
1345 }
1346 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1347 use(unsafe.Pointer(_p0))
1348 if e1 != 0 {
1349 err = errnoErr(e1)
1350 }
1351 return
1352}
1353
1354// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1355
1356func write(fd int, p []byte) (n int, err error) {
1357 var _p0 unsafe.Pointer
1358 if len(p) > 0 {
1359 _p0 = unsafe.Pointer(&p[0])
1360 } else {
1361 _p0 = unsafe.Pointer(&_zero)
1362 }
1363 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1364 n = int(r0)
1365 if e1 != 0 {
1366 err = errnoErr(e1)
1367 }
1368 return
1369}
1370
1371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1372
1373func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1374 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)
1375 ret = uintptr(r0)
1376 if e1 != 0 {
1377 err = errnoErr(e1)
1378 }
1379 return
1380}
1381
1382// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1383
1384func munmap(addr uintptr, length uintptr) (err error) {
1385 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1386 if e1 != 0 {
1387 err = errnoErr(e1)
1388 }
1389 return
1390}
1391
1392// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1393
1394func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1395 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1396 n = int(r0)
1397 if e1 != 0 {
1398 err = errnoErr(e1)
1399 }
1400 return
1401}
1402
1403// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1404
1405func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1406 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1407 n = int(r0)
1408 if e1 != 0 {
1409 err = errnoErr(e1)
1410 }
1411 return
1412}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
deleted file mode 100644
index 3fa6ff7..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
+++ /dev/null
@@ -1,1412 +0,0 @@
1// mksyscall.pl -dragonfly syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_amd64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,dragonfly
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe() (r int, w int, err error) {
271 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
272 r = int(r0)
273 w = int(r1)
274 if e1 != 0 {
275 err = errnoErr(e1)
276 }
277 return
278}
279
280// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
281
282func extpread(fd int, p []byte, flags int, offset int64) (n int, err error) {
283 var _p0 unsafe.Pointer
284 if len(p) > 0 {
285 _p0 = unsafe.Pointer(&p[0])
286 } else {
287 _p0 = unsafe.Pointer(&_zero)
288 }
289 r0, _, e1 := Syscall6(SYS_EXTPREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 0)
290 n = int(r0)
291 if e1 != 0 {
292 err = errnoErr(e1)
293 }
294 return
295}
296
297// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
298
299func extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) {
300 var _p0 unsafe.Pointer
301 if len(p) > 0 {
302 _p0 = unsafe.Pointer(&p[0])
303 } else {
304 _p0 = unsafe.Pointer(&_zero)
305 }
306 r0, _, e1 := Syscall6(SYS_EXTPWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 0)
307 n = int(r0)
308 if e1 != 0 {
309 err = errnoErr(e1)
310 }
311 return
312}
313
314// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
315
316func Access(path string, mode uint32) (err error) {
317 var _p0 *byte
318 _p0, err = BytePtrFromString(path)
319 if err != nil {
320 return
321 }
322 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
323 use(unsafe.Pointer(_p0))
324 if e1 != 0 {
325 err = errnoErr(e1)
326 }
327 return
328}
329
330// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
331
332func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
333 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
334 if e1 != 0 {
335 err = errnoErr(e1)
336 }
337 return
338}
339
340// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
341
342func Chdir(path string) (err error) {
343 var _p0 *byte
344 _p0, err = BytePtrFromString(path)
345 if err != nil {
346 return
347 }
348 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
349 use(unsafe.Pointer(_p0))
350 if e1 != 0 {
351 err = errnoErr(e1)
352 }
353 return
354}
355
356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
357
358func Chflags(path string, flags int) (err error) {
359 var _p0 *byte
360 _p0, err = BytePtrFromString(path)
361 if err != nil {
362 return
363 }
364 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
365 use(unsafe.Pointer(_p0))
366 if e1 != 0 {
367 err = errnoErr(e1)
368 }
369 return
370}
371
372// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
373
374func Chmod(path string, mode uint32) (err error) {
375 var _p0 *byte
376 _p0, err = BytePtrFromString(path)
377 if err != nil {
378 return
379 }
380 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
381 use(unsafe.Pointer(_p0))
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Chown(path string, uid int, gid int) (err error) {
391 var _p0 *byte
392 _p0, err = BytePtrFromString(path)
393 if err != nil {
394 return
395 }
396 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
397 use(unsafe.Pointer(_p0))
398 if e1 != 0 {
399 err = errnoErr(e1)
400 }
401 return
402}
403
404// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
405
406func Chroot(path string) (err error) {
407 var _p0 *byte
408 _p0, err = BytePtrFromString(path)
409 if err != nil {
410 return
411 }
412 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
413 use(unsafe.Pointer(_p0))
414 if e1 != 0 {
415 err = errnoErr(e1)
416 }
417 return
418}
419
420// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
421
422func Close(fd int) (err error) {
423 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
424 if e1 != 0 {
425 err = errnoErr(e1)
426 }
427 return
428}
429
430// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
431
432func Dup(fd int) (nfd int, err error) {
433 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
434 nfd = int(r0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Dup2(from int, to int) (err error) {
444 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
445 if e1 != 0 {
446 err = errnoErr(e1)
447 }
448 return
449}
450
451// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452
453func Exit(code int) {
454 Syscall(SYS_EXIT, uintptr(code), 0, 0)
455 return
456}
457
458// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
459
460func Fchdir(fd int) (err error) {
461 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
462 if e1 != 0 {
463 err = errnoErr(e1)
464 }
465 return
466}
467
468// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
469
470func Fchflags(fd int, flags int) (err error) {
471 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
472 if e1 != 0 {
473 err = errnoErr(e1)
474 }
475 return
476}
477
478// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
479
480func Fchmod(fd int, mode uint32) (err error) {
481 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
482 if e1 != 0 {
483 err = errnoErr(e1)
484 }
485 return
486}
487
488// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
489
490func Fchown(fd int, uid int, gid int) (err error) {
491 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
492 if e1 != 0 {
493 err = errnoErr(e1)
494 }
495 return
496}
497
498// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
499
500func Flock(fd int, how int) (err error) {
501 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
502 if e1 != 0 {
503 err = errnoErr(e1)
504 }
505 return
506}
507
508// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
509
510func Fpathconf(fd int, name int) (val int, err error) {
511 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
512 val = int(r0)
513 if e1 != 0 {
514 err = errnoErr(e1)
515 }
516 return
517}
518
519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
520
521func Fstat(fd int, stat *Stat_t) (err error) {
522 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
523 if e1 != 0 {
524 err = errnoErr(e1)
525 }
526 return
527}
528
529// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
530
531func Fstatfs(fd int, stat *Statfs_t) (err error) {
532 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
533 if e1 != 0 {
534 err = errnoErr(e1)
535 }
536 return
537}
538
539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
540
541func Fsync(fd int) (err error) {
542 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
543 if e1 != 0 {
544 err = errnoErr(e1)
545 }
546 return
547}
548
549// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
550
551func Ftruncate(fd int, length int64) (err error) {
552 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length))
553 if e1 != 0 {
554 err = errnoErr(e1)
555 }
556 return
557}
558
559// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
560
561func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
562 var _p0 unsafe.Pointer
563 if len(buf) > 0 {
564 _p0 = unsafe.Pointer(&buf[0])
565 } else {
566 _p0 = unsafe.Pointer(&_zero)
567 }
568 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
569 n = int(r0)
570 if e1 != 0 {
571 err = errnoErr(e1)
572 }
573 return
574}
575
576// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
577
578func Getdtablesize() (size int) {
579 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
580 size = int(r0)
581 return
582}
583
584// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
585
586func Getegid() (egid int) {
587 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
588 egid = int(r0)
589 return
590}
591
592// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
593
594func Geteuid() (uid int) {
595 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
596 uid = int(r0)
597 return
598}
599
600// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601
602func Getgid() (gid int) {
603 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
604 gid = int(r0)
605 return
606}
607
608// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
609
610func Getpgid(pid int) (pgid int, err error) {
611 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
612 pgid = int(r0)
613 if e1 != 0 {
614 err = errnoErr(e1)
615 }
616 return
617}
618
619// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
620
621func Getpgrp() (pgrp int) {
622 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
623 pgrp = int(r0)
624 return
625}
626
627// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
628
629func Getpid() (pid int) {
630 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
631 pid = int(r0)
632 return
633}
634
635// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
636
637func Getppid() (ppid int) {
638 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
639 ppid = int(r0)
640 return
641}
642
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644
645func Getpriority(which int, who int) (prio int, err error) {
646 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
647 prio = int(r0)
648 if e1 != 0 {
649 err = errnoErr(e1)
650 }
651 return
652}
653
654// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
655
656func Getrlimit(which int, lim *Rlimit) (err error) {
657 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
658 if e1 != 0 {
659 err = errnoErr(e1)
660 }
661 return
662}
663
664// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
665
666func Getrusage(who int, rusage *Rusage) (err error) {
667 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
668 if e1 != 0 {
669 err = errnoErr(e1)
670 }
671 return
672}
673
674// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
675
676func Getsid(pid int) (sid int, err error) {
677 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
678 sid = int(r0)
679 if e1 != 0 {
680 err = errnoErr(e1)
681 }
682 return
683}
684
685// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
686
687func Gettimeofday(tv *Timeval) (err error) {
688 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
689 if e1 != 0 {
690 err = errnoErr(e1)
691 }
692 return
693}
694
695// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
696
697func Getuid() (uid int) {
698 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
699 uid = int(r0)
700 return
701}
702
703// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
704
705func Issetugid() (tainted bool) {
706 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
707 tainted = bool(r0 != 0)
708 return
709}
710
711// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
712
713func Kill(pid int, signum syscall.Signal) (err error) {
714 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
715 if e1 != 0 {
716 err = errnoErr(e1)
717 }
718 return
719}
720
721// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
722
723func Kqueue() (fd int, err error) {
724 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
725 fd = int(r0)
726 if e1 != 0 {
727 err = errnoErr(e1)
728 }
729 return
730}
731
732// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
733
734func Lchown(path string, uid int, gid int) (err error) {
735 var _p0 *byte
736 _p0, err = BytePtrFromString(path)
737 if err != nil {
738 return
739 }
740 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
741 use(unsafe.Pointer(_p0))
742 if e1 != 0 {
743 err = errnoErr(e1)
744 }
745 return
746}
747
748// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
749
750func Link(path string, link string) (err error) {
751 var _p0 *byte
752 _p0, err = BytePtrFromString(path)
753 if err != nil {
754 return
755 }
756 var _p1 *byte
757 _p1, err = BytePtrFromString(link)
758 if err != nil {
759 return
760 }
761 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
762 use(unsafe.Pointer(_p0))
763 use(unsafe.Pointer(_p1))
764 if e1 != 0 {
765 err = errnoErr(e1)
766 }
767 return
768}
769
770// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
771
772func Listen(s int, backlog int) (err error) {
773 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
774 if e1 != 0 {
775 err = errnoErr(e1)
776 }
777 return
778}
779
780// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
781
782func Lstat(path string, stat *Stat_t) (err error) {
783 var _p0 *byte
784 _p0, err = BytePtrFromString(path)
785 if err != nil {
786 return
787 }
788 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
789 use(unsafe.Pointer(_p0))
790 if e1 != 0 {
791 err = errnoErr(e1)
792 }
793 return
794}
795
796// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
797
798func Mkdir(path string, mode uint32) (err error) {
799 var _p0 *byte
800 _p0, err = BytePtrFromString(path)
801 if err != nil {
802 return
803 }
804 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
805 use(unsafe.Pointer(_p0))
806 if e1 != 0 {
807 err = errnoErr(e1)
808 }
809 return
810}
811
812// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
813
814func Mkfifo(path string, mode uint32) (err error) {
815 var _p0 *byte
816 _p0, err = BytePtrFromString(path)
817 if err != nil {
818 return
819 }
820 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
821 use(unsafe.Pointer(_p0))
822 if e1 != 0 {
823 err = errnoErr(e1)
824 }
825 return
826}
827
828// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
829
830func Mknod(path string, mode uint32, dev int) (err error) {
831 var _p0 *byte
832 _p0, err = BytePtrFromString(path)
833 if err != nil {
834 return
835 }
836 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
837 use(unsafe.Pointer(_p0))
838 if e1 != 0 {
839 err = errnoErr(e1)
840 }
841 return
842}
843
844// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
845
846func Mlock(b []byte) (err error) {
847 var _p0 unsafe.Pointer
848 if len(b) > 0 {
849 _p0 = unsafe.Pointer(&b[0])
850 } else {
851 _p0 = unsafe.Pointer(&_zero)
852 }
853 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Mlockall(flags int) (err error) {
863 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
864 if e1 != 0 {
865 err = errnoErr(e1)
866 }
867 return
868}
869
870// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
871
872func Mprotect(b []byte, prot int) (err error) {
873 var _p0 unsafe.Pointer
874 if len(b) > 0 {
875 _p0 = unsafe.Pointer(&b[0])
876 } else {
877 _p0 = unsafe.Pointer(&_zero)
878 }
879 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
880 if e1 != 0 {
881 err = errnoErr(e1)
882 }
883 return
884}
885
886// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
887
888func Munlock(b []byte) (err error) {
889 var _p0 unsafe.Pointer
890 if len(b) > 0 {
891 _p0 = unsafe.Pointer(&b[0])
892 } else {
893 _p0 = unsafe.Pointer(&_zero)
894 }
895 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Munlockall() (err error) {
905 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
906 if e1 != 0 {
907 err = errnoErr(e1)
908 }
909 return
910}
911
912// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
913
914func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
915 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
916 if e1 != 0 {
917 err = errnoErr(e1)
918 }
919 return
920}
921
922// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
923
924func Open(path string, mode int, perm uint32) (fd int, err error) {
925 var _p0 *byte
926 _p0, err = BytePtrFromString(path)
927 if err != nil {
928 return
929 }
930 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
931 use(unsafe.Pointer(_p0))
932 fd = int(r0)
933 if e1 != 0 {
934 err = errnoErr(e1)
935 }
936 return
937}
938
939// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
940
941func Pathconf(path string, name int) (val int, err error) {
942 var _p0 *byte
943 _p0, err = BytePtrFromString(path)
944 if err != nil {
945 return
946 }
947 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
948 use(unsafe.Pointer(_p0))
949 val = int(r0)
950 if e1 != 0 {
951 err = errnoErr(e1)
952 }
953 return
954}
955
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957
958func read(fd int, p []byte) (n int, err error) {
959 var _p0 unsafe.Pointer
960 if len(p) > 0 {
961 _p0 = unsafe.Pointer(&p[0])
962 } else {
963 _p0 = unsafe.Pointer(&_zero)
964 }
965 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
966 n = int(r0)
967 if e1 != 0 {
968 err = errnoErr(e1)
969 }
970 return
971}
972
973// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
974
975func Readlink(path string, buf []byte) (n int, err error) {
976 var _p0 *byte
977 _p0, err = BytePtrFromString(path)
978 if err != nil {
979 return
980 }
981 var _p1 unsafe.Pointer
982 if len(buf) > 0 {
983 _p1 = unsafe.Pointer(&buf[0])
984 } else {
985 _p1 = unsafe.Pointer(&_zero)
986 }
987 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
988 use(unsafe.Pointer(_p0))
989 n = int(r0)
990 if e1 != 0 {
991 err = errnoErr(e1)
992 }
993 return
994}
995
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997
998func Rename(from string, to string) (err error) {
999 var _p0 *byte
1000 _p0, err = BytePtrFromString(from)
1001 if err != nil {
1002 return
1003 }
1004 var _p1 *byte
1005 _p1, err = BytePtrFromString(to)
1006 if err != nil {
1007 return
1008 }
1009 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1010 use(unsafe.Pointer(_p0))
1011 use(unsafe.Pointer(_p1))
1012 if e1 != 0 {
1013 err = errnoErr(e1)
1014 }
1015 return
1016}
1017
1018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1019
1020func Revoke(path string) (err error) {
1021 var _p0 *byte
1022 _p0, err = BytePtrFromString(path)
1023 if err != nil {
1024 return
1025 }
1026 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1027 use(unsafe.Pointer(_p0))
1028 if e1 != 0 {
1029 err = errnoErr(e1)
1030 }
1031 return
1032}
1033
1034// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1035
1036func Rmdir(path string) (err error) {
1037 var _p0 *byte
1038 _p0, err = BytePtrFromString(path)
1039 if err != nil {
1040 return
1041 }
1042 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1043 use(unsafe.Pointer(_p0))
1044 if e1 != 0 {
1045 err = errnoErr(e1)
1046 }
1047 return
1048}
1049
1050// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1051
1052func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1053 r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0)
1054 newoffset = int64(r0)
1055 if e1 != 0 {
1056 err = errnoErr(e1)
1057 }
1058 return
1059}
1060
1061// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1062
1063func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1064 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1065 if e1 != 0 {
1066 err = errnoErr(e1)
1067 }
1068 return
1069}
1070
1071// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1072
1073func Setegid(egid int) (err error) {
1074 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1075 if e1 != 0 {
1076 err = errnoErr(e1)
1077 }
1078 return
1079}
1080
1081// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1082
1083func Seteuid(euid int) (err error) {
1084 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1085 if e1 != 0 {
1086 err = errnoErr(e1)
1087 }
1088 return
1089}
1090
1091// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1092
1093func Setgid(gid int) (err error) {
1094 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1095 if e1 != 0 {
1096 err = errnoErr(e1)
1097 }
1098 return
1099}
1100
1101// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1102
1103func Setlogin(name string) (err error) {
1104 var _p0 *byte
1105 _p0, err = BytePtrFromString(name)
1106 if err != nil {
1107 return
1108 }
1109 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1110 use(unsafe.Pointer(_p0))
1111 if e1 != 0 {
1112 err = errnoErr(e1)
1113 }
1114 return
1115}
1116
1117// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1118
1119func Setpgid(pid int, pgid int) (err error) {
1120 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1121 if e1 != 0 {
1122 err = errnoErr(e1)
1123 }
1124 return
1125}
1126
1127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1128
1129func Setpriority(which int, who int, prio int) (err error) {
1130 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1131 if e1 != 0 {
1132 err = errnoErr(e1)
1133 }
1134 return
1135}
1136
1137// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1138
1139func Setregid(rgid int, egid int) (err error) {
1140 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1141 if e1 != 0 {
1142 err = errnoErr(e1)
1143 }
1144 return
1145}
1146
1147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1148
1149func Setreuid(ruid int, euid int) (err error) {
1150 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1151 if e1 != 0 {
1152 err = errnoErr(e1)
1153 }
1154 return
1155}
1156
1157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1158
1159func Setresgid(rgid int, egid int, sgid int) (err error) {
1160 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1161 if e1 != 0 {
1162 err = errnoErr(e1)
1163 }
1164 return
1165}
1166
1167// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1168
1169func Setresuid(ruid int, euid int, suid int) (err error) {
1170 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1171 if e1 != 0 {
1172 err = errnoErr(e1)
1173 }
1174 return
1175}
1176
1177// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1178
1179func Setrlimit(which int, lim *Rlimit) (err error) {
1180 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1181 if e1 != 0 {
1182 err = errnoErr(e1)
1183 }
1184 return
1185}
1186
1187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1188
1189func Setsid() (pid int, err error) {
1190 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1191 pid = int(r0)
1192 if e1 != 0 {
1193 err = errnoErr(e1)
1194 }
1195 return
1196}
1197
1198// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1199
1200func Settimeofday(tp *Timeval) (err error) {
1201 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1202 if e1 != 0 {
1203 err = errnoErr(e1)
1204 }
1205 return
1206}
1207
1208// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1209
1210func Setuid(uid int) (err error) {
1211 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1212 if e1 != 0 {
1213 err = errnoErr(e1)
1214 }
1215 return
1216}
1217
1218// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1219
1220func Stat(path string, stat *Stat_t) (err error) {
1221 var _p0 *byte
1222 _p0, err = BytePtrFromString(path)
1223 if err != nil {
1224 return
1225 }
1226 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1227 use(unsafe.Pointer(_p0))
1228 if e1 != 0 {
1229 err = errnoErr(e1)
1230 }
1231 return
1232}
1233
1234// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1235
1236func Statfs(path string, stat *Statfs_t) (err error) {
1237 var _p0 *byte
1238 _p0, err = BytePtrFromString(path)
1239 if err != nil {
1240 return
1241 }
1242 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1243 use(unsafe.Pointer(_p0))
1244 if e1 != 0 {
1245 err = errnoErr(e1)
1246 }
1247 return
1248}
1249
1250// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1251
1252func Symlink(path string, link string) (err error) {
1253 var _p0 *byte
1254 _p0, err = BytePtrFromString(path)
1255 if err != nil {
1256 return
1257 }
1258 var _p1 *byte
1259 _p1, err = BytePtrFromString(link)
1260 if err != nil {
1261 return
1262 }
1263 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1264 use(unsafe.Pointer(_p0))
1265 use(unsafe.Pointer(_p1))
1266 if e1 != 0 {
1267 err = errnoErr(e1)
1268 }
1269 return
1270}
1271
1272// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1273
1274func Sync() (err error) {
1275 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1276 if e1 != 0 {
1277 err = errnoErr(e1)
1278 }
1279 return
1280}
1281
1282// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1283
1284func Truncate(path string, length int64) (err error) {
1285 var _p0 *byte
1286 _p0, err = BytePtrFromString(path)
1287 if err != nil {
1288 return
1289 }
1290 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length))
1291 use(unsafe.Pointer(_p0))
1292 if e1 != 0 {
1293 err = errnoErr(e1)
1294 }
1295 return
1296}
1297
1298// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1299
1300func Umask(newmask int) (oldmask int) {
1301 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1302 oldmask = int(r0)
1303 return
1304}
1305
1306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1307
1308func Undelete(path string) (err error) {
1309 var _p0 *byte
1310 _p0, err = BytePtrFromString(path)
1311 if err != nil {
1312 return
1313 }
1314 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1315 use(unsafe.Pointer(_p0))
1316 if e1 != 0 {
1317 err = errnoErr(e1)
1318 }
1319 return
1320}
1321
1322// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1323
1324func Unlink(path string) (err error) {
1325 var _p0 *byte
1326 _p0, err = BytePtrFromString(path)
1327 if err != nil {
1328 return
1329 }
1330 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1331 use(unsafe.Pointer(_p0))
1332 if e1 != 0 {
1333 err = errnoErr(e1)
1334 }
1335 return
1336}
1337
1338// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1339
1340func Unmount(path string, flags int) (err error) {
1341 var _p0 *byte
1342 _p0, err = BytePtrFromString(path)
1343 if err != nil {
1344 return
1345 }
1346 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1347 use(unsafe.Pointer(_p0))
1348 if e1 != 0 {
1349 err = errnoErr(e1)
1350 }
1351 return
1352}
1353
1354// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1355
1356func write(fd int, p []byte) (n int, err error) {
1357 var _p0 unsafe.Pointer
1358 if len(p) > 0 {
1359 _p0 = unsafe.Pointer(&p[0])
1360 } else {
1361 _p0 = unsafe.Pointer(&_zero)
1362 }
1363 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1364 n = int(r0)
1365 if e1 != 0 {
1366 err = errnoErr(e1)
1367 }
1368 return
1369}
1370
1371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1372
1373func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1374 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0)
1375 ret = uintptr(r0)
1376 if e1 != 0 {
1377 err = errnoErr(e1)
1378 }
1379 return
1380}
1381
1382// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1383
1384func munmap(addr uintptr, length uintptr) (err error) {
1385 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1386 if e1 != 0 {
1387 err = errnoErr(e1)
1388 }
1389 return
1390}
1391
1392// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1393
1394func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1395 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1396 n = int(r0)
1397 if e1 != 0 {
1398 err = errnoErr(e1)
1399 }
1400 return
1401}
1402
1403// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1404
1405func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1406 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1407 n = int(r0)
1408 if e1 != 0 {
1409 err = errnoErr(e1)
1410 }
1411 return
1412}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_386.go
deleted file mode 100644
index 1a0e528..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_386.go
+++ /dev/null
@@ -1,1664 +0,0 @@
1// mksyscall.pl -l32 syscall_bsd.go syscall_freebsd.go syscall_freebsd_386.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,freebsd
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe() (r int, w int, err error) {
271 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
272 r = int(r0)
273 w = int(r1)
274 if e1 != 0 {
275 err = errnoErr(e1)
276 }
277 return
278}
279
280// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
281
282func Access(path string, mode uint32) (err error) {
283 var _p0 *byte
284 _p0, err = BytePtrFromString(path)
285 if err != nil {
286 return
287 }
288 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
289 use(unsafe.Pointer(_p0))
290 if e1 != 0 {
291 err = errnoErr(e1)
292 }
293 return
294}
295
296// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
297
298func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
299 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
300 if e1 != 0 {
301 err = errnoErr(e1)
302 }
303 return
304}
305
306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
307
308func Chdir(path string) (err error) {
309 var _p0 *byte
310 _p0, err = BytePtrFromString(path)
311 if err != nil {
312 return
313 }
314 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
315 use(unsafe.Pointer(_p0))
316 if e1 != 0 {
317 err = errnoErr(e1)
318 }
319 return
320}
321
322// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
323
324func Chflags(path string, flags int) (err error) {
325 var _p0 *byte
326 _p0, err = BytePtrFromString(path)
327 if err != nil {
328 return
329 }
330 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
331 use(unsafe.Pointer(_p0))
332 if e1 != 0 {
333 err = errnoErr(e1)
334 }
335 return
336}
337
338// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
339
340func Chmod(path string, mode uint32) (err error) {
341 var _p0 *byte
342 _p0, err = BytePtrFromString(path)
343 if err != nil {
344 return
345 }
346 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
347 use(unsafe.Pointer(_p0))
348 if e1 != 0 {
349 err = errnoErr(e1)
350 }
351 return
352}
353
354// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
355
356func Chown(path string, uid int, gid int) (err error) {
357 var _p0 *byte
358 _p0, err = BytePtrFromString(path)
359 if err != nil {
360 return
361 }
362 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
363 use(unsafe.Pointer(_p0))
364 if e1 != 0 {
365 err = errnoErr(e1)
366 }
367 return
368}
369
370// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
371
372func Chroot(path string) (err error) {
373 var _p0 *byte
374 _p0, err = BytePtrFromString(path)
375 if err != nil {
376 return
377 }
378 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
379 use(unsafe.Pointer(_p0))
380 if e1 != 0 {
381 err = errnoErr(e1)
382 }
383 return
384}
385
386// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
387
388func Close(fd int) (err error) {
389 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
390 if e1 != 0 {
391 err = errnoErr(e1)
392 }
393 return
394}
395
396// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
397
398func Dup(fd int) (nfd int, err error) {
399 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
400 nfd = int(r0)
401 if e1 != 0 {
402 err = errnoErr(e1)
403 }
404 return
405}
406
407// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
408
409func Dup2(from int, to int) (err error) {
410 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
411 if e1 != 0 {
412 err = errnoErr(e1)
413 }
414 return
415}
416
417// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
418
419func Exit(code int) {
420 Syscall(SYS_EXIT, uintptr(code), 0, 0)
421 return
422}
423
424// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
425
426func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
427 var _p0 *byte
428 _p0, err = BytePtrFromString(attrname)
429 if err != nil {
430 return
431 }
432 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
433 use(unsafe.Pointer(_p0))
434 ret = int(r0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
444 var _p0 *byte
445 _p0, err = BytePtrFromString(attrname)
446 if err != nil {
447 return
448 }
449 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
450 use(unsafe.Pointer(_p0))
451 ret = int(r0)
452 if e1 != 0 {
453 err = errnoErr(e1)
454 }
455 return
456}
457
458// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
459
460func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
461 var _p0 *byte
462 _p0, err = BytePtrFromString(attrname)
463 if err != nil {
464 return
465 }
466 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
467 use(unsafe.Pointer(_p0))
468 if e1 != 0 {
469 err = errnoErr(e1)
470 }
471 return
472}
473
474// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
475
476func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
477 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
478 ret = int(r0)
479 if e1 != 0 {
480 err = errnoErr(e1)
481 }
482 return
483}
484
485// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
486
487func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
488 var _p0 *byte
489 _p0, err = BytePtrFromString(file)
490 if err != nil {
491 return
492 }
493 var _p1 *byte
494 _p1, err = BytePtrFromString(attrname)
495 if err != nil {
496 return
497 }
498 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
499 use(unsafe.Pointer(_p0))
500 use(unsafe.Pointer(_p1))
501 ret = int(r0)
502 if e1 != 0 {
503 err = errnoErr(e1)
504 }
505 return
506}
507
508// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
509
510func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
511 var _p0 *byte
512 _p0, err = BytePtrFromString(file)
513 if err != nil {
514 return
515 }
516 var _p1 *byte
517 _p1, err = BytePtrFromString(attrname)
518 if err != nil {
519 return
520 }
521 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
522 use(unsafe.Pointer(_p0))
523 use(unsafe.Pointer(_p1))
524 ret = int(r0)
525 if e1 != 0 {
526 err = errnoErr(e1)
527 }
528 return
529}
530
531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
534 var _p0 *byte
535 _p0, err = BytePtrFromString(file)
536 if err != nil {
537 return
538 }
539 var _p1 *byte
540 _p1, err = BytePtrFromString(attrname)
541 if err != nil {
542 return
543 }
544 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
545 use(unsafe.Pointer(_p0))
546 use(unsafe.Pointer(_p1))
547 if e1 != 0 {
548 err = errnoErr(e1)
549 }
550 return
551}
552
553// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
554
555func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
556 var _p0 *byte
557 _p0, err = BytePtrFromString(file)
558 if err != nil {
559 return
560 }
561 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
562 use(unsafe.Pointer(_p0))
563 ret = int(r0)
564 if e1 != 0 {
565 err = errnoErr(e1)
566 }
567 return
568}
569
570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571
572func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
573 var _p0 *byte
574 _p0, err = BytePtrFromString(link)
575 if err != nil {
576 return
577 }
578 var _p1 *byte
579 _p1, err = BytePtrFromString(attrname)
580 if err != nil {
581 return
582 }
583 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
584 use(unsafe.Pointer(_p0))
585 use(unsafe.Pointer(_p1))
586 ret = int(r0)
587 if e1 != 0 {
588 err = errnoErr(e1)
589 }
590 return
591}
592
593// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
594
595func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
596 var _p0 *byte
597 _p0, err = BytePtrFromString(link)
598 if err != nil {
599 return
600 }
601 var _p1 *byte
602 _p1, err = BytePtrFromString(attrname)
603 if err != nil {
604 return
605 }
606 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
607 use(unsafe.Pointer(_p0))
608 use(unsafe.Pointer(_p1))
609 ret = int(r0)
610 if e1 != 0 {
611 err = errnoErr(e1)
612 }
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
619 var _p0 *byte
620 _p0, err = BytePtrFromString(link)
621 if err != nil {
622 return
623 }
624 var _p1 *byte
625 _p1, err = BytePtrFromString(attrname)
626 if err != nil {
627 return
628 }
629 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
630 use(unsafe.Pointer(_p0))
631 use(unsafe.Pointer(_p1))
632 if e1 != 0 {
633 err = errnoErr(e1)
634 }
635 return
636}
637
638// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
639
640func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
641 var _p0 *byte
642 _p0, err = BytePtrFromString(link)
643 if err != nil {
644 return
645 }
646 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
647 use(unsafe.Pointer(_p0))
648 ret = int(r0)
649 if e1 != 0 {
650 err = errnoErr(e1)
651 }
652 return
653}
654
655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
656
657func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
658 _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice))
659 if e1 != 0 {
660 err = errnoErr(e1)
661 }
662 return
663}
664
665// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
666
667func Fchdir(fd int) (err error) {
668 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
669 if e1 != 0 {
670 err = errnoErr(e1)
671 }
672 return
673}
674
675// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
676
677func Fchflags(fd int, flags int) (err error) {
678 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
679 if e1 != 0 {
680 err = errnoErr(e1)
681 }
682 return
683}
684
685// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
686
687func Fchmod(fd int, mode uint32) (err error) {
688 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
689 if e1 != 0 {
690 err = errnoErr(e1)
691 }
692 return
693}
694
695// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
696
697func Fchown(fd int, uid int, gid int) (err error) {
698 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
699 if e1 != 0 {
700 err = errnoErr(e1)
701 }
702 return
703}
704
705// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
706
707func Flock(fd int, how int) (err error) {
708 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
709 if e1 != 0 {
710 err = errnoErr(e1)
711 }
712 return
713}
714
715// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
716
717func Fpathconf(fd int, name int) (val int, err error) {
718 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
719 val = int(r0)
720 if e1 != 0 {
721 err = errnoErr(e1)
722 }
723 return
724}
725
726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
727
728func Fstat(fd int, stat *Stat_t) (err error) {
729 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
730 if e1 != 0 {
731 err = errnoErr(e1)
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Fstatfs(fd int, stat *Statfs_t) (err error) {
739 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
740 if e1 != 0 {
741 err = errnoErr(e1)
742 }
743 return
744}
745
746// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
747
748func Fsync(fd int) (err error) {
749 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
750 if e1 != 0 {
751 err = errnoErr(e1)
752 }
753 return
754}
755
756// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
757
758func Ftruncate(fd int, length int64) (err error) {
759 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), uintptr(length>>32))
760 if e1 != 0 {
761 err = errnoErr(e1)
762 }
763 return
764}
765
766// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
767
768func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
769 var _p0 unsafe.Pointer
770 if len(buf) > 0 {
771 _p0 = unsafe.Pointer(&buf[0])
772 } else {
773 _p0 = unsafe.Pointer(&_zero)
774 }
775 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
776 n = int(r0)
777 if e1 != 0 {
778 err = errnoErr(e1)
779 }
780 return
781}
782
783// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
784
785func Getdtablesize() (size int) {
786 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
787 size = int(r0)
788 return
789}
790
791// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
792
793func Getegid() (egid int) {
794 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
795 egid = int(r0)
796 return
797}
798
799// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800
801func Geteuid() (uid int) {
802 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
803 uid = int(r0)
804 return
805}
806
807// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
808
809func Getgid() (gid int) {
810 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
811 gid = int(r0)
812 return
813}
814
815// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
816
817func Getpgid(pid int) (pgid int, err error) {
818 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
819 pgid = int(r0)
820 if e1 != 0 {
821 err = errnoErr(e1)
822 }
823 return
824}
825
826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
827
828func Getpgrp() (pgrp int) {
829 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
830 pgrp = int(r0)
831 return
832}
833
834// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
835
836func Getpid() (pid int) {
837 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
838 pid = int(r0)
839 return
840}
841
842// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
843
844func Getppid() (ppid int) {
845 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
846 ppid = int(r0)
847 return
848}
849
850// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
851
852func Getpriority(which int, who int) (prio int, err error) {
853 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
854 prio = int(r0)
855 if e1 != 0 {
856 err = errnoErr(e1)
857 }
858 return
859}
860
861// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
862
863func Getrlimit(which int, lim *Rlimit) (err error) {
864 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
865 if e1 != 0 {
866 err = errnoErr(e1)
867 }
868 return
869}
870
871// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
872
873func Getrusage(who int, rusage *Rusage) (err error) {
874 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
875 if e1 != 0 {
876 err = errnoErr(e1)
877 }
878 return
879}
880
881// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
882
883func Getsid(pid int) (sid int, err error) {
884 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
885 sid = int(r0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Gettimeofday(tv *Timeval) (err error) {
895 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Getuid() (uid int) {
905 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
906 uid = int(r0)
907 return
908}
909
910// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
911
912func Issetugid() (tainted bool) {
913 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
914 tainted = bool(r0 != 0)
915 return
916}
917
918// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
919
920func Kill(pid int, signum syscall.Signal) (err error) {
921 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
922 if e1 != 0 {
923 err = errnoErr(e1)
924 }
925 return
926}
927
928// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
929
930func Kqueue() (fd int, err error) {
931 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
932 fd = int(r0)
933 if e1 != 0 {
934 err = errnoErr(e1)
935 }
936 return
937}
938
939// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
940
941func Lchown(path string, uid int, gid int) (err error) {
942 var _p0 *byte
943 _p0, err = BytePtrFromString(path)
944 if err != nil {
945 return
946 }
947 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
948 use(unsafe.Pointer(_p0))
949 if e1 != 0 {
950 err = errnoErr(e1)
951 }
952 return
953}
954
955// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
956
957func Link(path string, link string) (err error) {
958 var _p0 *byte
959 _p0, err = BytePtrFromString(path)
960 if err != nil {
961 return
962 }
963 var _p1 *byte
964 _p1, err = BytePtrFromString(link)
965 if err != nil {
966 return
967 }
968 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
969 use(unsafe.Pointer(_p0))
970 use(unsafe.Pointer(_p1))
971 if e1 != 0 {
972 err = errnoErr(e1)
973 }
974 return
975}
976
977// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
978
979func Listen(s int, backlog int) (err error) {
980 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
981 if e1 != 0 {
982 err = errnoErr(e1)
983 }
984 return
985}
986
987// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
988
989func Lstat(path string, stat *Stat_t) (err error) {
990 var _p0 *byte
991 _p0, err = BytePtrFromString(path)
992 if err != nil {
993 return
994 }
995 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
996 use(unsafe.Pointer(_p0))
997 if e1 != 0 {
998 err = errnoErr(e1)
999 }
1000 return
1001}
1002
1003// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1004
1005func Mkdir(path string, mode uint32) (err error) {
1006 var _p0 *byte
1007 _p0, err = BytePtrFromString(path)
1008 if err != nil {
1009 return
1010 }
1011 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1012 use(unsafe.Pointer(_p0))
1013 if e1 != 0 {
1014 err = errnoErr(e1)
1015 }
1016 return
1017}
1018
1019// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1020
1021func Mkfifo(path string, mode uint32) (err error) {
1022 var _p0 *byte
1023 _p0, err = BytePtrFromString(path)
1024 if err != nil {
1025 return
1026 }
1027 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1028 use(unsafe.Pointer(_p0))
1029 if e1 != 0 {
1030 err = errnoErr(e1)
1031 }
1032 return
1033}
1034
1035// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1036
1037func Mknod(path string, mode uint32, dev int) (err error) {
1038 var _p0 *byte
1039 _p0, err = BytePtrFromString(path)
1040 if err != nil {
1041 return
1042 }
1043 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
1044 use(unsafe.Pointer(_p0))
1045 if e1 != 0 {
1046 err = errnoErr(e1)
1047 }
1048 return
1049}
1050
1051// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1052
1053func Mlock(b []byte) (err error) {
1054 var _p0 unsafe.Pointer
1055 if len(b) > 0 {
1056 _p0 = unsafe.Pointer(&b[0])
1057 } else {
1058 _p0 = unsafe.Pointer(&_zero)
1059 }
1060 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1061 if e1 != 0 {
1062 err = errnoErr(e1)
1063 }
1064 return
1065}
1066
1067// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1068
1069func Mlockall(flags int) (err error) {
1070 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1071 if e1 != 0 {
1072 err = errnoErr(e1)
1073 }
1074 return
1075}
1076
1077// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1078
1079func Mprotect(b []byte, prot int) (err error) {
1080 var _p0 unsafe.Pointer
1081 if len(b) > 0 {
1082 _p0 = unsafe.Pointer(&b[0])
1083 } else {
1084 _p0 = unsafe.Pointer(&_zero)
1085 }
1086 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Munlock(b []byte) (err error) {
1096 var _p0 unsafe.Pointer
1097 if len(b) > 0 {
1098 _p0 = unsafe.Pointer(&b[0])
1099 } else {
1100 _p0 = unsafe.Pointer(&_zero)
1101 }
1102 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1103 if e1 != 0 {
1104 err = errnoErr(e1)
1105 }
1106 return
1107}
1108
1109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1110
1111func Munlockall() (err error) {
1112 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1113 if e1 != 0 {
1114 err = errnoErr(e1)
1115 }
1116 return
1117}
1118
1119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1120
1121func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1122 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func Open(path string, mode int, perm uint32) (fd int, err error) {
1132 var _p0 *byte
1133 _p0, err = BytePtrFromString(path)
1134 if err != nil {
1135 return
1136 }
1137 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
1138 use(unsafe.Pointer(_p0))
1139 fd = int(r0)
1140 if e1 != 0 {
1141 err = errnoErr(e1)
1142 }
1143 return
1144}
1145
1146// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1147
1148func Pathconf(path string, name int) (val int, err error) {
1149 var _p0 *byte
1150 _p0, err = BytePtrFromString(path)
1151 if err != nil {
1152 return
1153 }
1154 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
1155 use(unsafe.Pointer(_p0))
1156 val = int(r0)
1157 if e1 != 0 {
1158 err = errnoErr(e1)
1159 }
1160 return
1161}
1162
1163// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1164
1165func Pread(fd int, p []byte, offset int64) (n int, err error) {
1166 var _p0 unsafe.Pointer
1167 if len(p) > 0 {
1168 _p0 = unsafe.Pointer(&p[0])
1169 } else {
1170 _p0 = unsafe.Pointer(&_zero)
1171 }
1172 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
1173 n = int(r0)
1174 if e1 != 0 {
1175 err = errnoErr(e1)
1176 }
1177 return
1178}
1179
1180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1181
1182func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1183 var _p0 unsafe.Pointer
1184 if len(p) > 0 {
1185 _p0 = unsafe.Pointer(&p[0])
1186 } else {
1187 _p0 = unsafe.Pointer(&_zero)
1188 }
1189 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
1190 n = int(r0)
1191 if e1 != 0 {
1192 err = errnoErr(e1)
1193 }
1194 return
1195}
1196
1197// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1198
1199func read(fd int, p []byte) (n int, err error) {
1200 var _p0 unsafe.Pointer
1201 if len(p) > 0 {
1202 _p0 = unsafe.Pointer(&p[0])
1203 } else {
1204 _p0 = unsafe.Pointer(&_zero)
1205 }
1206 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1207 n = int(r0)
1208 if e1 != 0 {
1209 err = errnoErr(e1)
1210 }
1211 return
1212}
1213
1214// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1215
1216func Readlink(path string, buf []byte) (n int, err error) {
1217 var _p0 *byte
1218 _p0, err = BytePtrFromString(path)
1219 if err != nil {
1220 return
1221 }
1222 var _p1 unsafe.Pointer
1223 if len(buf) > 0 {
1224 _p1 = unsafe.Pointer(&buf[0])
1225 } else {
1226 _p1 = unsafe.Pointer(&_zero)
1227 }
1228 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1229 use(unsafe.Pointer(_p0))
1230 n = int(r0)
1231 if e1 != 0 {
1232 err = errnoErr(e1)
1233 }
1234 return
1235}
1236
1237// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1238
1239func Rename(from string, to string) (err error) {
1240 var _p0 *byte
1241 _p0, err = BytePtrFromString(from)
1242 if err != nil {
1243 return
1244 }
1245 var _p1 *byte
1246 _p1, err = BytePtrFromString(to)
1247 if err != nil {
1248 return
1249 }
1250 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1251 use(unsafe.Pointer(_p0))
1252 use(unsafe.Pointer(_p1))
1253 if e1 != 0 {
1254 err = errnoErr(e1)
1255 }
1256 return
1257}
1258
1259// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1260
1261func Revoke(path string) (err error) {
1262 var _p0 *byte
1263 _p0, err = BytePtrFromString(path)
1264 if err != nil {
1265 return
1266 }
1267 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1268 use(unsafe.Pointer(_p0))
1269 if e1 != 0 {
1270 err = errnoErr(e1)
1271 }
1272 return
1273}
1274
1275// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1276
1277func Rmdir(path string) (err error) {
1278 var _p0 *byte
1279 _p0, err = BytePtrFromString(path)
1280 if err != nil {
1281 return
1282 }
1283 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1284 use(unsafe.Pointer(_p0))
1285 if e1 != 0 {
1286 err = errnoErr(e1)
1287 }
1288 return
1289}
1290
1291// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1292
1293func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1294 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0)
1295 newoffset = int64(int64(r1)<<32 | int64(r0))
1296 if e1 != 0 {
1297 err = errnoErr(e1)
1298 }
1299 return
1300}
1301
1302// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1303
1304func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1305 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1306 if e1 != 0 {
1307 err = errnoErr(e1)
1308 }
1309 return
1310}
1311
1312// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1313
1314func Setegid(egid int) (err error) {
1315 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1316 if e1 != 0 {
1317 err = errnoErr(e1)
1318 }
1319 return
1320}
1321
1322// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1323
1324func Seteuid(euid int) (err error) {
1325 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1326 if e1 != 0 {
1327 err = errnoErr(e1)
1328 }
1329 return
1330}
1331
1332// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1333
1334func Setgid(gid int) (err error) {
1335 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1336 if e1 != 0 {
1337 err = errnoErr(e1)
1338 }
1339 return
1340}
1341
1342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1343
1344func Setlogin(name string) (err error) {
1345 var _p0 *byte
1346 _p0, err = BytePtrFromString(name)
1347 if err != nil {
1348 return
1349 }
1350 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1351 use(unsafe.Pointer(_p0))
1352 if e1 != 0 {
1353 err = errnoErr(e1)
1354 }
1355 return
1356}
1357
1358// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1359
1360func Setpgid(pid int, pgid int) (err error) {
1361 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1362 if e1 != 0 {
1363 err = errnoErr(e1)
1364 }
1365 return
1366}
1367
1368// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1369
1370func Setpriority(which int, who int, prio int) (err error) {
1371 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1372 if e1 != 0 {
1373 err = errnoErr(e1)
1374 }
1375 return
1376}
1377
1378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1379
1380func Setregid(rgid int, egid int) (err error) {
1381 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1382 if e1 != 0 {
1383 err = errnoErr(e1)
1384 }
1385 return
1386}
1387
1388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1389
1390func Setreuid(ruid int, euid int) (err error) {
1391 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1392 if e1 != 0 {
1393 err = errnoErr(e1)
1394 }
1395 return
1396}
1397
1398// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1399
1400func Setresgid(rgid int, egid int, sgid int) (err error) {
1401 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1402 if e1 != 0 {
1403 err = errnoErr(e1)
1404 }
1405 return
1406}
1407
1408// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1409
1410func Setresuid(ruid int, euid int, suid int) (err error) {
1411 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1412 if e1 != 0 {
1413 err = errnoErr(e1)
1414 }
1415 return
1416}
1417
1418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1419
1420func Setrlimit(which int, lim *Rlimit) (err error) {
1421 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1422 if e1 != 0 {
1423 err = errnoErr(e1)
1424 }
1425 return
1426}
1427
1428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1429
1430func Setsid() (pid int, err error) {
1431 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1432 pid = int(r0)
1433 if e1 != 0 {
1434 err = errnoErr(e1)
1435 }
1436 return
1437}
1438
1439// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1440
1441func Settimeofday(tp *Timeval) (err error) {
1442 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1443 if e1 != 0 {
1444 err = errnoErr(e1)
1445 }
1446 return
1447}
1448
1449// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1450
1451func Setuid(uid int) (err error) {
1452 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1453 if e1 != 0 {
1454 err = errnoErr(e1)
1455 }
1456 return
1457}
1458
1459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1460
1461func Stat(path string, stat *Stat_t) (err error) {
1462 var _p0 *byte
1463 _p0, err = BytePtrFromString(path)
1464 if err != nil {
1465 return
1466 }
1467 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1468 use(unsafe.Pointer(_p0))
1469 if e1 != 0 {
1470 err = errnoErr(e1)
1471 }
1472 return
1473}
1474
1475// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1476
1477func Statfs(path string, stat *Statfs_t) (err error) {
1478 var _p0 *byte
1479 _p0, err = BytePtrFromString(path)
1480 if err != nil {
1481 return
1482 }
1483 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1484 use(unsafe.Pointer(_p0))
1485 if e1 != 0 {
1486 err = errnoErr(e1)
1487 }
1488 return
1489}
1490
1491// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1492
1493func Symlink(path string, link string) (err error) {
1494 var _p0 *byte
1495 _p0, err = BytePtrFromString(path)
1496 if err != nil {
1497 return
1498 }
1499 var _p1 *byte
1500 _p1, err = BytePtrFromString(link)
1501 if err != nil {
1502 return
1503 }
1504 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1505 use(unsafe.Pointer(_p0))
1506 use(unsafe.Pointer(_p1))
1507 if e1 != 0 {
1508 err = errnoErr(e1)
1509 }
1510 return
1511}
1512
1513// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1514
1515func Sync() (err error) {
1516 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1517 if e1 != 0 {
1518 err = errnoErr(e1)
1519 }
1520 return
1521}
1522
1523// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1524
1525func Truncate(path string, length int64) (err error) {
1526 var _p0 *byte
1527 _p0, err = BytePtrFromString(path)
1528 if err != nil {
1529 return
1530 }
1531 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32))
1532 use(unsafe.Pointer(_p0))
1533 if e1 != 0 {
1534 err = errnoErr(e1)
1535 }
1536 return
1537}
1538
1539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1540
1541func Umask(newmask int) (oldmask int) {
1542 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1543 oldmask = int(r0)
1544 return
1545}
1546
1547// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1548
1549func Undelete(path string) (err error) {
1550 var _p0 *byte
1551 _p0, err = BytePtrFromString(path)
1552 if err != nil {
1553 return
1554 }
1555 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1556 use(unsafe.Pointer(_p0))
1557 if e1 != 0 {
1558 err = errnoErr(e1)
1559 }
1560 return
1561}
1562
1563// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1564
1565func Unlink(path string) (err error) {
1566 var _p0 *byte
1567 _p0, err = BytePtrFromString(path)
1568 if err != nil {
1569 return
1570 }
1571 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1572 use(unsafe.Pointer(_p0))
1573 if e1 != 0 {
1574 err = errnoErr(e1)
1575 }
1576 return
1577}
1578
1579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1580
1581func Unmount(path string, flags int) (err error) {
1582 var _p0 *byte
1583 _p0, err = BytePtrFromString(path)
1584 if err != nil {
1585 return
1586 }
1587 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1588 use(unsafe.Pointer(_p0))
1589 if e1 != 0 {
1590 err = errnoErr(e1)
1591 }
1592 return
1593}
1594
1595// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1596
1597func write(fd int, p []byte) (n int, err error) {
1598 var _p0 unsafe.Pointer
1599 if len(p) > 0 {
1600 _p0 = unsafe.Pointer(&p[0])
1601 } else {
1602 _p0 = unsafe.Pointer(&_zero)
1603 }
1604 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1605 n = int(r0)
1606 if e1 != 0 {
1607 err = errnoErr(e1)
1608 }
1609 return
1610}
1611
1612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1613
1614func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1615 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0)
1616 ret = uintptr(r0)
1617 if e1 != 0 {
1618 err = errnoErr(e1)
1619 }
1620 return
1621}
1622
1623// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1624
1625func munmap(addr uintptr, length uintptr) (err error) {
1626 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1627 if e1 != 0 {
1628 err = errnoErr(e1)
1629 }
1630 return
1631}
1632
1633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1634
1635func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1636 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1637 n = int(r0)
1638 if e1 != 0 {
1639 err = errnoErr(e1)
1640 }
1641 return
1642}
1643
1644// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1645
1646func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1647 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1648 n = int(r0)
1649 if e1 != 0 {
1650 err = errnoErr(e1)
1651 }
1652 return
1653}
1654
1655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1656
1657func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) {
1658 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1659 nfd = int(r0)
1660 if e1 != 0 {
1661 err = errnoErr(e1)
1662 }
1663 return
1664}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
deleted file mode 100644
index 6e4cf14..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
+++ /dev/null
@@ -1,1664 +0,0 @@
1// mksyscall.pl syscall_bsd.go syscall_freebsd.go syscall_freebsd_amd64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,freebsd
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe() (r int, w int, err error) {
271 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
272 r = int(r0)
273 w = int(r1)
274 if e1 != 0 {
275 err = errnoErr(e1)
276 }
277 return
278}
279
280// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
281
282func Access(path string, mode uint32) (err error) {
283 var _p0 *byte
284 _p0, err = BytePtrFromString(path)
285 if err != nil {
286 return
287 }
288 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
289 use(unsafe.Pointer(_p0))
290 if e1 != 0 {
291 err = errnoErr(e1)
292 }
293 return
294}
295
296// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
297
298func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
299 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
300 if e1 != 0 {
301 err = errnoErr(e1)
302 }
303 return
304}
305
306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
307
308func Chdir(path string) (err error) {
309 var _p0 *byte
310 _p0, err = BytePtrFromString(path)
311 if err != nil {
312 return
313 }
314 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
315 use(unsafe.Pointer(_p0))
316 if e1 != 0 {
317 err = errnoErr(e1)
318 }
319 return
320}
321
322// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
323
324func Chflags(path string, flags int) (err error) {
325 var _p0 *byte
326 _p0, err = BytePtrFromString(path)
327 if err != nil {
328 return
329 }
330 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
331 use(unsafe.Pointer(_p0))
332 if e1 != 0 {
333 err = errnoErr(e1)
334 }
335 return
336}
337
338// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
339
340func Chmod(path string, mode uint32) (err error) {
341 var _p0 *byte
342 _p0, err = BytePtrFromString(path)
343 if err != nil {
344 return
345 }
346 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
347 use(unsafe.Pointer(_p0))
348 if e1 != 0 {
349 err = errnoErr(e1)
350 }
351 return
352}
353
354// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
355
356func Chown(path string, uid int, gid int) (err error) {
357 var _p0 *byte
358 _p0, err = BytePtrFromString(path)
359 if err != nil {
360 return
361 }
362 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
363 use(unsafe.Pointer(_p0))
364 if e1 != 0 {
365 err = errnoErr(e1)
366 }
367 return
368}
369
370// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
371
372func Chroot(path string) (err error) {
373 var _p0 *byte
374 _p0, err = BytePtrFromString(path)
375 if err != nil {
376 return
377 }
378 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
379 use(unsafe.Pointer(_p0))
380 if e1 != 0 {
381 err = errnoErr(e1)
382 }
383 return
384}
385
386// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
387
388func Close(fd int) (err error) {
389 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
390 if e1 != 0 {
391 err = errnoErr(e1)
392 }
393 return
394}
395
396// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
397
398func Dup(fd int) (nfd int, err error) {
399 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
400 nfd = int(r0)
401 if e1 != 0 {
402 err = errnoErr(e1)
403 }
404 return
405}
406
407// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
408
409func Dup2(from int, to int) (err error) {
410 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
411 if e1 != 0 {
412 err = errnoErr(e1)
413 }
414 return
415}
416
417// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
418
419func Exit(code int) {
420 Syscall(SYS_EXIT, uintptr(code), 0, 0)
421 return
422}
423
424// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
425
426func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
427 var _p0 *byte
428 _p0, err = BytePtrFromString(attrname)
429 if err != nil {
430 return
431 }
432 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
433 use(unsafe.Pointer(_p0))
434 ret = int(r0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
444 var _p0 *byte
445 _p0, err = BytePtrFromString(attrname)
446 if err != nil {
447 return
448 }
449 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
450 use(unsafe.Pointer(_p0))
451 ret = int(r0)
452 if e1 != 0 {
453 err = errnoErr(e1)
454 }
455 return
456}
457
458// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
459
460func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
461 var _p0 *byte
462 _p0, err = BytePtrFromString(attrname)
463 if err != nil {
464 return
465 }
466 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
467 use(unsafe.Pointer(_p0))
468 if e1 != 0 {
469 err = errnoErr(e1)
470 }
471 return
472}
473
474// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
475
476func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
477 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
478 ret = int(r0)
479 if e1 != 0 {
480 err = errnoErr(e1)
481 }
482 return
483}
484
485// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
486
487func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
488 var _p0 *byte
489 _p0, err = BytePtrFromString(file)
490 if err != nil {
491 return
492 }
493 var _p1 *byte
494 _p1, err = BytePtrFromString(attrname)
495 if err != nil {
496 return
497 }
498 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
499 use(unsafe.Pointer(_p0))
500 use(unsafe.Pointer(_p1))
501 ret = int(r0)
502 if e1 != 0 {
503 err = errnoErr(e1)
504 }
505 return
506}
507
508// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
509
510func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
511 var _p0 *byte
512 _p0, err = BytePtrFromString(file)
513 if err != nil {
514 return
515 }
516 var _p1 *byte
517 _p1, err = BytePtrFromString(attrname)
518 if err != nil {
519 return
520 }
521 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
522 use(unsafe.Pointer(_p0))
523 use(unsafe.Pointer(_p1))
524 ret = int(r0)
525 if e1 != 0 {
526 err = errnoErr(e1)
527 }
528 return
529}
530
531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
534 var _p0 *byte
535 _p0, err = BytePtrFromString(file)
536 if err != nil {
537 return
538 }
539 var _p1 *byte
540 _p1, err = BytePtrFromString(attrname)
541 if err != nil {
542 return
543 }
544 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
545 use(unsafe.Pointer(_p0))
546 use(unsafe.Pointer(_p1))
547 if e1 != 0 {
548 err = errnoErr(e1)
549 }
550 return
551}
552
553// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
554
555func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
556 var _p0 *byte
557 _p0, err = BytePtrFromString(file)
558 if err != nil {
559 return
560 }
561 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
562 use(unsafe.Pointer(_p0))
563 ret = int(r0)
564 if e1 != 0 {
565 err = errnoErr(e1)
566 }
567 return
568}
569
570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571
572func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
573 var _p0 *byte
574 _p0, err = BytePtrFromString(link)
575 if err != nil {
576 return
577 }
578 var _p1 *byte
579 _p1, err = BytePtrFromString(attrname)
580 if err != nil {
581 return
582 }
583 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
584 use(unsafe.Pointer(_p0))
585 use(unsafe.Pointer(_p1))
586 ret = int(r0)
587 if e1 != 0 {
588 err = errnoErr(e1)
589 }
590 return
591}
592
593// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
594
595func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
596 var _p0 *byte
597 _p0, err = BytePtrFromString(link)
598 if err != nil {
599 return
600 }
601 var _p1 *byte
602 _p1, err = BytePtrFromString(attrname)
603 if err != nil {
604 return
605 }
606 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
607 use(unsafe.Pointer(_p0))
608 use(unsafe.Pointer(_p1))
609 ret = int(r0)
610 if e1 != 0 {
611 err = errnoErr(e1)
612 }
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
619 var _p0 *byte
620 _p0, err = BytePtrFromString(link)
621 if err != nil {
622 return
623 }
624 var _p1 *byte
625 _p1, err = BytePtrFromString(attrname)
626 if err != nil {
627 return
628 }
629 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
630 use(unsafe.Pointer(_p0))
631 use(unsafe.Pointer(_p1))
632 if e1 != 0 {
633 err = errnoErr(e1)
634 }
635 return
636}
637
638// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
639
640func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
641 var _p0 *byte
642 _p0, err = BytePtrFromString(link)
643 if err != nil {
644 return
645 }
646 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
647 use(unsafe.Pointer(_p0))
648 ret = int(r0)
649 if e1 != 0 {
650 err = errnoErr(e1)
651 }
652 return
653}
654
655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
656
657func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
658 _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
659 if e1 != 0 {
660 err = errnoErr(e1)
661 }
662 return
663}
664
665// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
666
667func Fchdir(fd int) (err error) {
668 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
669 if e1 != 0 {
670 err = errnoErr(e1)
671 }
672 return
673}
674
675// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
676
677func Fchflags(fd int, flags int) (err error) {
678 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
679 if e1 != 0 {
680 err = errnoErr(e1)
681 }
682 return
683}
684
685// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
686
687func Fchmod(fd int, mode uint32) (err error) {
688 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
689 if e1 != 0 {
690 err = errnoErr(e1)
691 }
692 return
693}
694
695// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
696
697func Fchown(fd int, uid int, gid int) (err error) {
698 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
699 if e1 != 0 {
700 err = errnoErr(e1)
701 }
702 return
703}
704
705// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
706
707func Flock(fd int, how int) (err error) {
708 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
709 if e1 != 0 {
710 err = errnoErr(e1)
711 }
712 return
713}
714
715// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
716
717func Fpathconf(fd int, name int) (val int, err error) {
718 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
719 val = int(r0)
720 if e1 != 0 {
721 err = errnoErr(e1)
722 }
723 return
724}
725
726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
727
728func Fstat(fd int, stat *Stat_t) (err error) {
729 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
730 if e1 != 0 {
731 err = errnoErr(e1)
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Fstatfs(fd int, stat *Statfs_t) (err error) {
739 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
740 if e1 != 0 {
741 err = errnoErr(e1)
742 }
743 return
744}
745
746// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
747
748func Fsync(fd int) (err error) {
749 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
750 if e1 != 0 {
751 err = errnoErr(e1)
752 }
753 return
754}
755
756// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
757
758func Ftruncate(fd int, length int64) (err error) {
759 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
760 if e1 != 0 {
761 err = errnoErr(e1)
762 }
763 return
764}
765
766// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
767
768func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
769 var _p0 unsafe.Pointer
770 if len(buf) > 0 {
771 _p0 = unsafe.Pointer(&buf[0])
772 } else {
773 _p0 = unsafe.Pointer(&_zero)
774 }
775 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
776 n = int(r0)
777 if e1 != 0 {
778 err = errnoErr(e1)
779 }
780 return
781}
782
783// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
784
785func Getdtablesize() (size int) {
786 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
787 size = int(r0)
788 return
789}
790
791// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
792
793func Getegid() (egid int) {
794 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
795 egid = int(r0)
796 return
797}
798
799// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800
801func Geteuid() (uid int) {
802 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
803 uid = int(r0)
804 return
805}
806
807// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
808
809func Getgid() (gid int) {
810 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
811 gid = int(r0)
812 return
813}
814
815// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
816
817func Getpgid(pid int) (pgid int, err error) {
818 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
819 pgid = int(r0)
820 if e1 != 0 {
821 err = errnoErr(e1)
822 }
823 return
824}
825
826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
827
828func Getpgrp() (pgrp int) {
829 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
830 pgrp = int(r0)
831 return
832}
833
834// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
835
836func Getpid() (pid int) {
837 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
838 pid = int(r0)
839 return
840}
841
842// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
843
844func Getppid() (ppid int) {
845 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
846 ppid = int(r0)
847 return
848}
849
850// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
851
852func Getpriority(which int, who int) (prio int, err error) {
853 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
854 prio = int(r0)
855 if e1 != 0 {
856 err = errnoErr(e1)
857 }
858 return
859}
860
861// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
862
863func Getrlimit(which int, lim *Rlimit) (err error) {
864 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
865 if e1 != 0 {
866 err = errnoErr(e1)
867 }
868 return
869}
870
871// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
872
873func Getrusage(who int, rusage *Rusage) (err error) {
874 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
875 if e1 != 0 {
876 err = errnoErr(e1)
877 }
878 return
879}
880
881// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
882
883func Getsid(pid int) (sid int, err error) {
884 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
885 sid = int(r0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Gettimeofday(tv *Timeval) (err error) {
895 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Getuid() (uid int) {
905 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
906 uid = int(r0)
907 return
908}
909
910// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
911
912func Issetugid() (tainted bool) {
913 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
914 tainted = bool(r0 != 0)
915 return
916}
917
918// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
919
920func Kill(pid int, signum syscall.Signal) (err error) {
921 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
922 if e1 != 0 {
923 err = errnoErr(e1)
924 }
925 return
926}
927
928// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
929
930func Kqueue() (fd int, err error) {
931 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
932 fd = int(r0)
933 if e1 != 0 {
934 err = errnoErr(e1)
935 }
936 return
937}
938
939// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
940
941func Lchown(path string, uid int, gid int) (err error) {
942 var _p0 *byte
943 _p0, err = BytePtrFromString(path)
944 if err != nil {
945 return
946 }
947 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
948 use(unsafe.Pointer(_p0))
949 if e1 != 0 {
950 err = errnoErr(e1)
951 }
952 return
953}
954
955// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
956
957func Link(path string, link string) (err error) {
958 var _p0 *byte
959 _p0, err = BytePtrFromString(path)
960 if err != nil {
961 return
962 }
963 var _p1 *byte
964 _p1, err = BytePtrFromString(link)
965 if err != nil {
966 return
967 }
968 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
969 use(unsafe.Pointer(_p0))
970 use(unsafe.Pointer(_p1))
971 if e1 != 0 {
972 err = errnoErr(e1)
973 }
974 return
975}
976
977// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
978
979func Listen(s int, backlog int) (err error) {
980 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
981 if e1 != 0 {
982 err = errnoErr(e1)
983 }
984 return
985}
986
987// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
988
989func Lstat(path string, stat *Stat_t) (err error) {
990 var _p0 *byte
991 _p0, err = BytePtrFromString(path)
992 if err != nil {
993 return
994 }
995 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
996 use(unsafe.Pointer(_p0))
997 if e1 != 0 {
998 err = errnoErr(e1)
999 }
1000 return
1001}
1002
1003// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1004
1005func Mkdir(path string, mode uint32) (err error) {
1006 var _p0 *byte
1007 _p0, err = BytePtrFromString(path)
1008 if err != nil {
1009 return
1010 }
1011 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1012 use(unsafe.Pointer(_p0))
1013 if e1 != 0 {
1014 err = errnoErr(e1)
1015 }
1016 return
1017}
1018
1019// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1020
1021func Mkfifo(path string, mode uint32) (err error) {
1022 var _p0 *byte
1023 _p0, err = BytePtrFromString(path)
1024 if err != nil {
1025 return
1026 }
1027 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1028 use(unsafe.Pointer(_p0))
1029 if e1 != 0 {
1030 err = errnoErr(e1)
1031 }
1032 return
1033}
1034
1035// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1036
1037func Mknod(path string, mode uint32, dev int) (err error) {
1038 var _p0 *byte
1039 _p0, err = BytePtrFromString(path)
1040 if err != nil {
1041 return
1042 }
1043 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
1044 use(unsafe.Pointer(_p0))
1045 if e1 != 0 {
1046 err = errnoErr(e1)
1047 }
1048 return
1049}
1050
1051// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1052
1053func Mlock(b []byte) (err error) {
1054 var _p0 unsafe.Pointer
1055 if len(b) > 0 {
1056 _p0 = unsafe.Pointer(&b[0])
1057 } else {
1058 _p0 = unsafe.Pointer(&_zero)
1059 }
1060 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1061 if e1 != 0 {
1062 err = errnoErr(e1)
1063 }
1064 return
1065}
1066
1067// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1068
1069func Mlockall(flags int) (err error) {
1070 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1071 if e1 != 0 {
1072 err = errnoErr(e1)
1073 }
1074 return
1075}
1076
1077// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1078
1079func Mprotect(b []byte, prot int) (err error) {
1080 var _p0 unsafe.Pointer
1081 if len(b) > 0 {
1082 _p0 = unsafe.Pointer(&b[0])
1083 } else {
1084 _p0 = unsafe.Pointer(&_zero)
1085 }
1086 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Munlock(b []byte) (err error) {
1096 var _p0 unsafe.Pointer
1097 if len(b) > 0 {
1098 _p0 = unsafe.Pointer(&b[0])
1099 } else {
1100 _p0 = unsafe.Pointer(&_zero)
1101 }
1102 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1103 if e1 != 0 {
1104 err = errnoErr(e1)
1105 }
1106 return
1107}
1108
1109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1110
1111func Munlockall() (err error) {
1112 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1113 if e1 != 0 {
1114 err = errnoErr(e1)
1115 }
1116 return
1117}
1118
1119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1120
1121func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1122 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func Open(path string, mode int, perm uint32) (fd int, err error) {
1132 var _p0 *byte
1133 _p0, err = BytePtrFromString(path)
1134 if err != nil {
1135 return
1136 }
1137 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
1138 use(unsafe.Pointer(_p0))
1139 fd = int(r0)
1140 if e1 != 0 {
1141 err = errnoErr(e1)
1142 }
1143 return
1144}
1145
1146// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1147
1148func Pathconf(path string, name int) (val int, err error) {
1149 var _p0 *byte
1150 _p0, err = BytePtrFromString(path)
1151 if err != nil {
1152 return
1153 }
1154 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
1155 use(unsafe.Pointer(_p0))
1156 val = int(r0)
1157 if e1 != 0 {
1158 err = errnoErr(e1)
1159 }
1160 return
1161}
1162
1163// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1164
1165func Pread(fd int, p []byte, offset int64) (n int, err error) {
1166 var _p0 unsafe.Pointer
1167 if len(p) > 0 {
1168 _p0 = unsafe.Pointer(&p[0])
1169 } else {
1170 _p0 = unsafe.Pointer(&_zero)
1171 }
1172 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1173 n = int(r0)
1174 if e1 != 0 {
1175 err = errnoErr(e1)
1176 }
1177 return
1178}
1179
1180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1181
1182func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1183 var _p0 unsafe.Pointer
1184 if len(p) > 0 {
1185 _p0 = unsafe.Pointer(&p[0])
1186 } else {
1187 _p0 = unsafe.Pointer(&_zero)
1188 }
1189 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1190 n = int(r0)
1191 if e1 != 0 {
1192 err = errnoErr(e1)
1193 }
1194 return
1195}
1196
1197// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1198
1199func read(fd int, p []byte) (n int, err error) {
1200 var _p0 unsafe.Pointer
1201 if len(p) > 0 {
1202 _p0 = unsafe.Pointer(&p[0])
1203 } else {
1204 _p0 = unsafe.Pointer(&_zero)
1205 }
1206 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1207 n = int(r0)
1208 if e1 != 0 {
1209 err = errnoErr(e1)
1210 }
1211 return
1212}
1213
1214// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1215
1216func Readlink(path string, buf []byte) (n int, err error) {
1217 var _p0 *byte
1218 _p0, err = BytePtrFromString(path)
1219 if err != nil {
1220 return
1221 }
1222 var _p1 unsafe.Pointer
1223 if len(buf) > 0 {
1224 _p1 = unsafe.Pointer(&buf[0])
1225 } else {
1226 _p1 = unsafe.Pointer(&_zero)
1227 }
1228 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1229 use(unsafe.Pointer(_p0))
1230 n = int(r0)
1231 if e1 != 0 {
1232 err = errnoErr(e1)
1233 }
1234 return
1235}
1236
1237// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1238
1239func Rename(from string, to string) (err error) {
1240 var _p0 *byte
1241 _p0, err = BytePtrFromString(from)
1242 if err != nil {
1243 return
1244 }
1245 var _p1 *byte
1246 _p1, err = BytePtrFromString(to)
1247 if err != nil {
1248 return
1249 }
1250 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1251 use(unsafe.Pointer(_p0))
1252 use(unsafe.Pointer(_p1))
1253 if e1 != 0 {
1254 err = errnoErr(e1)
1255 }
1256 return
1257}
1258
1259// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1260
1261func Revoke(path string) (err error) {
1262 var _p0 *byte
1263 _p0, err = BytePtrFromString(path)
1264 if err != nil {
1265 return
1266 }
1267 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1268 use(unsafe.Pointer(_p0))
1269 if e1 != 0 {
1270 err = errnoErr(e1)
1271 }
1272 return
1273}
1274
1275// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1276
1277func Rmdir(path string) (err error) {
1278 var _p0 *byte
1279 _p0, err = BytePtrFromString(path)
1280 if err != nil {
1281 return
1282 }
1283 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1284 use(unsafe.Pointer(_p0))
1285 if e1 != 0 {
1286 err = errnoErr(e1)
1287 }
1288 return
1289}
1290
1291// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1292
1293func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1294 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1295 newoffset = int64(r0)
1296 if e1 != 0 {
1297 err = errnoErr(e1)
1298 }
1299 return
1300}
1301
1302// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1303
1304func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1305 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1306 if e1 != 0 {
1307 err = errnoErr(e1)
1308 }
1309 return
1310}
1311
1312// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1313
1314func Setegid(egid int) (err error) {
1315 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1316 if e1 != 0 {
1317 err = errnoErr(e1)
1318 }
1319 return
1320}
1321
1322// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1323
1324func Seteuid(euid int) (err error) {
1325 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1326 if e1 != 0 {
1327 err = errnoErr(e1)
1328 }
1329 return
1330}
1331
1332// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1333
1334func Setgid(gid int) (err error) {
1335 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1336 if e1 != 0 {
1337 err = errnoErr(e1)
1338 }
1339 return
1340}
1341
1342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1343
1344func Setlogin(name string) (err error) {
1345 var _p0 *byte
1346 _p0, err = BytePtrFromString(name)
1347 if err != nil {
1348 return
1349 }
1350 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1351 use(unsafe.Pointer(_p0))
1352 if e1 != 0 {
1353 err = errnoErr(e1)
1354 }
1355 return
1356}
1357
1358// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1359
1360func Setpgid(pid int, pgid int) (err error) {
1361 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1362 if e1 != 0 {
1363 err = errnoErr(e1)
1364 }
1365 return
1366}
1367
1368// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1369
1370func Setpriority(which int, who int, prio int) (err error) {
1371 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1372 if e1 != 0 {
1373 err = errnoErr(e1)
1374 }
1375 return
1376}
1377
1378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1379
1380func Setregid(rgid int, egid int) (err error) {
1381 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1382 if e1 != 0 {
1383 err = errnoErr(e1)
1384 }
1385 return
1386}
1387
1388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1389
1390func Setreuid(ruid int, euid int) (err error) {
1391 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1392 if e1 != 0 {
1393 err = errnoErr(e1)
1394 }
1395 return
1396}
1397
1398// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1399
1400func Setresgid(rgid int, egid int, sgid int) (err error) {
1401 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1402 if e1 != 0 {
1403 err = errnoErr(e1)
1404 }
1405 return
1406}
1407
1408// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1409
1410func Setresuid(ruid int, euid int, suid int) (err error) {
1411 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1412 if e1 != 0 {
1413 err = errnoErr(e1)
1414 }
1415 return
1416}
1417
1418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1419
1420func Setrlimit(which int, lim *Rlimit) (err error) {
1421 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1422 if e1 != 0 {
1423 err = errnoErr(e1)
1424 }
1425 return
1426}
1427
1428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1429
1430func Setsid() (pid int, err error) {
1431 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1432 pid = int(r0)
1433 if e1 != 0 {
1434 err = errnoErr(e1)
1435 }
1436 return
1437}
1438
1439// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1440
1441func Settimeofday(tp *Timeval) (err error) {
1442 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1443 if e1 != 0 {
1444 err = errnoErr(e1)
1445 }
1446 return
1447}
1448
1449// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1450
1451func Setuid(uid int) (err error) {
1452 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1453 if e1 != 0 {
1454 err = errnoErr(e1)
1455 }
1456 return
1457}
1458
1459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1460
1461func Stat(path string, stat *Stat_t) (err error) {
1462 var _p0 *byte
1463 _p0, err = BytePtrFromString(path)
1464 if err != nil {
1465 return
1466 }
1467 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1468 use(unsafe.Pointer(_p0))
1469 if e1 != 0 {
1470 err = errnoErr(e1)
1471 }
1472 return
1473}
1474
1475// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1476
1477func Statfs(path string, stat *Statfs_t) (err error) {
1478 var _p0 *byte
1479 _p0, err = BytePtrFromString(path)
1480 if err != nil {
1481 return
1482 }
1483 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1484 use(unsafe.Pointer(_p0))
1485 if e1 != 0 {
1486 err = errnoErr(e1)
1487 }
1488 return
1489}
1490
1491// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1492
1493func Symlink(path string, link string) (err error) {
1494 var _p0 *byte
1495 _p0, err = BytePtrFromString(path)
1496 if err != nil {
1497 return
1498 }
1499 var _p1 *byte
1500 _p1, err = BytePtrFromString(link)
1501 if err != nil {
1502 return
1503 }
1504 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1505 use(unsafe.Pointer(_p0))
1506 use(unsafe.Pointer(_p1))
1507 if e1 != 0 {
1508 err = errnoErr(e1)
1509 }
1510 return
1511}
1512
1513// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1514
1515func Sync() (err error) {
1516 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1517 if e1 != 0 {
1518 err = errnoErr(e1)
1519 }
1520 return
1521}
1522
1523// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1524
1525func Truncate(path string, length int64) (err error) {
1526 var _p0 *byte
1527 _p0, err = BytePtrFromString(path)
1528 if err != nil {
1529 return
1530 }
1531 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1532 use(unsafe.Pointer(_p0))
1533 if e1 != 0 {
1534 err = errnoErr(e1)
1535 }
1536 return
1537}
1538
1539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1540
1541func Umask(newmask int) (oldmask int) {
1542 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1543 oldmask = int(r0)
1544 return
1545}
1546
1547// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1548
1549func Undelete(path string) (err error) {
1550 var _p0 *byte
1551 _p0, err = BytePtrFromString(path)
1552 if err != nil {
1553 return
1554 }
1555 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1556 use(unsafe.Pointer(_p0))
1557 if e1 != 0 {
1558 err = errnoErr(e1)
1559 }
1560 return
1561}
1562
1563// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1564
1565func Unlink(path string) (err error) {
1566 var _p0 *byte
1567 _p0, err = BytePtrFromString(path)
1568 if err != nil {
1569 return
1570 }
1571 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1572 use(unsafe.Pointer(_p0))
1573 if e1 != 0 {
1574 err = errnoErr(e1)
1575 }
1576 return
1577}
1578
1579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1580
1581func Unmount(path string, flags int) (err error) {
1582 var _p0 *byte
1583 _p0, err = BytePtrFromString(path)
1584 if err != nil {
1585 return
1586 }
1587 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1588 use(unsafe.Pointer(_p0))
1589 if e1 != 0 {
1590 err = errnoErr(e1)
1591 }
1592 return
1593}
1594
1595// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1596
1597func write(fd int, p []byte) (n int, err error) {
1598 var _p0 unsafe.Pointer
1599 if len(p) > 0 {
1600 _p0 = unsafe.Pointer(&p[0])
1601 } else {
1602 _p0 = unsafe.Pointer(&_zero)
1603 }
1604 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1605 n = int(r0)
1606 if e1 != 0 {
1607 err = errnoErr(e1)
1608 }
1609 return
1610}
1611
1612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1613
1614func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1615 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1616 ret = uintptr(r0)
1617 if e1 != 0 {
1618 err = errnoErr(e1)
1619 }
1620 return
1621}
1622
1623// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1624
1625func munmap(addr uintptr, length uintptr) (err error) {
1626 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1627 if e1 != 0 {
1628 err = errnoErr(e1)
1629 }
1630 return
1631}
1632
1633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1634
1635func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1636 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1637 n = int(r0)
1638 if e1 != 0 {
1639 err = errnoErr(e1)
1640 }
1641 return
1642}
1643
1644// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1645
1646func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1647 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1648 n = int(r0)
1649 if e1 != 0 {
1650 err = errnoErr(e1)
1651 }
1652 return
1653}
1654
1655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1656
1657func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) {
1658 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1659 nfd = int(r0)
1660 if e1 != 0 {
1661 err = errnoErr(e1)
1662 }
1663 return
1664}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
deleted file mode 100644
index 1872d32..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
+++ /dev/null
@@ -1,1664 +0,0 @@
1// mksyscall.pl -l32 -arm syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm,freebsd
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe() (r int, w int, err error) {
271 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
272 r = int(r0)
273 w = int(r1)
274 if e1 != 0 {
275 err = errnoErr(e1)
276 }
277 return
278}
279
280// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
281
282func Access(path string, mode uint32) (err error) {
283 var _p0 *byte
284 _p0, err = BytePtrFromString(path)
285 if err != nil {
286 return
287 }
288 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
289 use(unsafe.Pointer(_p0))
290 if e1 != 0 {
291 err = errnoErr(e1)
292 }
293 return
294}
295
296// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
297
298func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
299 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
300 if e1 != 0 {
301 err = errnoErr(e1)
302 }
303 return
304}
305
306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
307
308func Chdir(path string) (err error) {
309 var _p0 *byte
310 _p0, err = BytePtrFromString(path)
311 if err != nil {
312 return
313 }
314 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
315 use(unsafe.Pointer(_p0))
316 if e1 != 0 {
317 err = errnoErr(e1)
318 }
319 return
320}
321
322// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
323
324func Chflags(path string, flags int) (err error) {
325 var _p0 *byte
326 _p0, err = BytePtrFromString(path)
327 if err != nil {
328 return
329 }
330 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
331 use(unsafe.Pointer(_p0))
332 if e1 != 0 {
333 err = errnoErr(e1)
334 }
335 return
336}
337
338// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
339
340func Chmod(path string, mode uint32) (err error) {
341 var _p0 *byte
342 _p0, err = BytePtrFromString(path)
343 if err != nil {
344 return
345 }
346 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
347 use(unsafe.Pointer(_p0))
348 if e1 != 0 {
349 err = errnoErr(e1)
350 }
351 return
352}
353
354// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
355
356func Chown(path string, uid int, gid int) (err error) {
357 var _p0 *byte
358 _p0, err = BytePtrFromString(path)
359 if err != nil {
360 return
361 }
362 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
363 use(unsafe.Pointer(_p0))
364 if e1 != 0 {
365 err = errnoErr(e1)
366 }
367 return
368}
369
370// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
371
372func Chroot(path string) (err error) {
373 var _p0 *byte
374 _p0, err = BytePtrFromString(path)
375 if err != nil {
376 return
377 }
378 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
379 use(unsafe.Pointer(_p0))
380 if e1 != 0 {
381 err = errnoErr(e1)
382 }
383 return
384}
385
386// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
387
388func Close(fd int) (err error) {
389 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
390 if e1 != 0 {
391 err = errnoErr(e1)
392 }
393 return
394}
395
396// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
397
398func Dup(fd int) (nfd int, err error) {
399 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
400 nfd = int(r0)
401 if e1 != 0 {
402 err = errnoErr(e1)
403 }
404 return
405}
406
407// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
408
409func Dup2(from int, to int) (err error) {
410 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
411 if e1 != 0 {
412 err = errnoErr(e1)
413 }
414 return
415}
416
417// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
418
419func Exit(code int) {
420 Syscall(SYS_EXIT, uintptr(code), 0, 0)
421 return
422}
423
424// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
425
426func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
427 var _p0 *byte
428 _p0, err = BytePtrFromString(attrname)
429 if err != nil {
430 return
431 }
432 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
433 use(unsafe.Pointer(_p0))
434 ret = int(r0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
444 var _p0 *byte
445 _p0, err = BytePtrFromString(attrname)
446 if err != nil {
447 return
448 }
449 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
450 use(unsafe.Pointer(_p0))
451 ret = int(r0)
452 if e1 != 0 {
453 err = errnoErr(e1)
454 }
455 return
456}
457
458// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
459
460func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
461 var _p0 *byte
462 _p0, err = BytePtrFromString(attrname)
463 if err != nil {
464 return
465 }
466 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
467 use(unsafe.Pointer(_p0))
468 if e1 != 0 {
469 err = errnoErr(e1)
470 }
471 return
472}
473
474// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
475
476func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
477 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
478 ret = int(r0)
479 if e1 != 0 {
480 err = errnoErr(e1)
481 }
482 return
483}
484
485// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
486
487func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
488 var _p0 *byte
489 _p0, err = BytePtrFromString(file)
490 if err != nil {
491 return
492 }
493 var _p1 *byte
494 _p1, err = BytePtrFromString(attrname)
495 if err != nil {
496 return
497 }
498 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
499 use(unsafe.Pointer(_p0))
500 use(unsafe.Pointer(_p1))
501 ret = int(r0)
502 if e1 != 0 {
503 err = errnoErr(e1)
504 }
505 return
506}
507
508// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
509
510func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
511 var _p0 *byte
512 _p0, err = BytePtrFromString(file)
513 if err != nil {
514 return
515 }
516 var _p1 *byte
517 _p1, err = BytePtrFromString(attrname)
518 if err != nil {
519 return
520 }
521 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
522 use(unsafe.Pointer(_p0))
523 use(unsafe.Pointer(_p1))
524 ret = int(r0)
525 if e1 != 0 {
526 err = errnoErr(e1)
527 }
528 return
529}
530
531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
534 var _p0 *byte
535 _p0, err = BytePtrFromString(file)
536 if err != nil {
537 return
538 }
539 var _p1 *byte
540 _p1, err = BytePtrFromString(attrname)
541 if err != nil {
542 return
543 }
544 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
545 use(unsafe.Pointer(_p0))
546 use(unsafe.Pointer(_p1))
547 if e1 != 0 {
548 err = errnoErr(e1)
549 }
550 return
551}
552
553// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
554
555func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
556 var _p0 *byte
557 _p0, err = BytePtrFromString(file)
558 if err != nil {
559 return
560 }
561 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
562 use(unsafe.Pointer(_p0))
563 ret = int(r0)
564 if e1 != 0 {
565 err = errnoErr(e1)
566 }
567 return
568}
569
570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571
572func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
573 var _p0 *byte
574 _p0, err = BytePtrFromString(link)
575 if err != nil {
576 return
577 }
578 var _p1 *byte
579 _p1, err = BytePtrFromString(attrname)
580 if err != nil {
581 return
582 }
583 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
584 use(unsafe.Pointer(_p0))
585 use(unsafe.Pointer(_p1))
586 ret = int(r0)
587 if e1 != 0 {
588 err = errnoErr(e1)
589 }
590 return
591}
592
593// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
594
595func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
596 var _p0 *byte
597 _p0, err = BytePtrFromString(link)
598 if err != nil {
599 return
600 }
601 var _p1 *byte
602 _p1, err = BytePtrFromString(attrname)
603 if err != nil {
604 return
605 }
606 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
607 use(unsafe.Pointer(_p0))
608 use(unsafe.Pointer(_p1))
609 ret = int(r0)
610 if e1 != 0 {
611 err = errnoErr(e1)
612 }
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
619 var _p0 *byte
620 _p0, err = BytePtrFromString(link)
621 if err != nil {
622 return
623 }
624 var _p1 *byte
625 _p1, err = BytePtrFromString(attrname)
626 if err != nil {
627 return
628 }
629 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
630 use(unsafe.Pointer(_p0))
631 use(unsafe.Pointer(_p1))
632 if e1 != 0 {
633 err = errnoErr(e1)
634 }
635 return
636}
637
638// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
639
640func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
641 var _p0 *byte
642 _p0, err = BytePtrFromString(link)
643 if err != nil {
644 return
645 }
646 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
647 use(unsafe.Pointer(_p0))
648 ret = int(r0)
649 if e1 != 0 {
650 err = errnoErr(e1)
651 }
652 return
653}
654
655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
656
657func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
658 _, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice), 0, 0)
659 if e1 != 0 {
660 err = errnoErr(e1)
661 }
662 return
663}
664
665// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
666
667func Fchdir(fd int) (err error) {
668 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
669 if e1 != 0 {
670 err = errnoErr(e1)
671 }
672 return
673}
674
675// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
676
677func Fchflags(fd int, flags int) (err error) {
678 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
679 if e1 != 0 {
680 err = errnoErr(e1)
681 }
682 return
683}
684
685// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
686
687func Fchmod(fd int, mode uint32) (err error) {
688 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
689 if e1 != 0 {
690 err = errnoErr(e1)
691 }
692 return
693}
694
695// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
696
697func Fchown(fd int, uid int, gid int) (err error) {
698 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
699 if e1 != 0 {
700 err = errnoErr(e1)
701 }
702 return
703}
704
705// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
706
707func Flock(fd int, how int) (err error) {
708 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
709 if e1 != 0 {
710 err = errnoErr(e1)
711 }
712 return
713}
714
715// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
716
717func Fpathconf(fd int, name int) (val int, err error) {
718 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
719 val = int(r0)
720 if e1 != 0 {
721 err = errnoErr(e1)
722 }
723 return
724}
725
726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
727
728func Fstat(fd int, stat *Stat_t) (err error) {
729 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
730 if e1 != 0 {
731 err = errnoErr(e1)
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Fstatfs(fd int, stat *Statfs_t) (err error) {
739 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
740 if e1 != 0 {
741 err = errnoErr(e1)
742 }
743 return
744}
745
746// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
747
748func Fsync(fd int) (err error) {
749 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
750 if e1 != 0 {
751 err = errnoErr(e1)
752 }
753 return
754}
755
756// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
757
758func Ftruncate(fd int, length int64) (err error) {
759 _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
760 if e1 != 0 {
761 err = errnoErr(e1)
762 }
763 return
764}
765
766// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
767
768func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
769 var _p0 unsafe.Pointer
770 if len(buf) > 0 {
771 _p0 = unsafe.Pointer(&buf[0])
772 } else {
773 _p0 = unsafe.Pointer(&_zero)
774 }
775 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
776 n = int(r0)
777 if e1 != 0 {
778 err = errnoErr(e1)
779 }
780 return
781}
782
783// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
784
785func Getdtablesize() (size int) {
786 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
787 size = int(r0)
788 return
789}
790
791// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
792
793func Getegid() (egid int) {
794 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
795 egid = int(r0)
796 return
797}
798
799// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800
801func Geteuid() (uid int) {
802 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
803 uid = int(r0)
804 return
805}
806
807// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
808
809func Getgid() (gid int) {
810 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
811 gid = int(r0)
812 return
813}
814
815// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
816
817func Getpgid(pid int) (pgid int, err error) {
818 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
819 pgid = int(r0)
820 if e1 != 0 {
821 err = errnoErr(e1)
822 }
823 return
824}
825
826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
827
828func Getpgrp() (pgrp int) {
829 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
830 pgrp = int(r0)
831 return
832}
833
834// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
835
836func Getpid() (pid int) {
837 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
838 pid = int(r0)
839 return
840}
841
842// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
843
844func Getppid() (ppid int) {
845 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
846 ppid = int(r0)
847 return
848}
849
850// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
851
852func Getpriority(which int, who int) (prio int, err error) {
853 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
854 prio = int(r0)
855 if e1 != 0 {
856 err = errnoErr(e1)
857 }
858 return
859}
860
861// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
862
863func Getrlimit(which int, lim *Rlimit) (err error) {
864 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
865 if e1 != 0 {
866 err = errnoErr(e1)
867 }
868 return
869}
870
871// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
872
873func Getrusage(who int, rusage *Rusage) (err error) {
874 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
875 if e1 != 0 {
876 err = errnoErr(e1)
877 }
878 return
879}
880
881// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
882
883func Getsid(pid int) (sid int, err error) {
884 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
885 sid = int(r0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Gettimeofday(tv *Timeval) (err error) {
895 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Getuid() (uid int) {
905 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
906 uid = int(r0)
907 return
908}
909
910// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
911
912func Issetugid() (tainted bool) {
913 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
914 tainted = bool(r0 != 0)
915 return
916}
917
918// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
919
920func Kill(pid int, signum syscall.Signal) (err error) {
921 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
922 if e1 != 0 {
923 err = errnoErr(e1)
924 }
925 return
926}
927
928// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
929
930func Kqueue() (fd int, err error) {
931 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
932 fd = int(r0)
933 if e1 != 0 {
934 err = errnoErr(e1)
935 }
936 return
937}
938
939// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
940
941func Lchown(path string, uid int, gid int) (err error) {
942 var _p0 *byte
943 _p0, err = BytePtrFromString(path)
944 if err != nil {
945 return
946 }
947 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
948 use(unsafe.Pointer(_p0))
949 if e1 != 0 {
950 err = errnoErr(e1)
951 }
952 return
953}
954
955// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
956
957func Link(path string, link string) (err error) {
958 var _p0 *byte
959 _p0, err = BytePtrFromString(path)
960 if err != nil {
961 return
962 }
963 var _p1 *byte
964 _p1, err = BytePtrFromString(link)
965 if err != nil {
966 return
967 }
968 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
969 use(unsafe.Pointer(_p0))
970 use(unsafe.Pointer(_p1))
971 if e1 != 0 {
972 err = errnoErr(e1)
973 }
974 return
975}
976
977// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
978
979func Listen(s int, backlog int) (err error) {
980 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
981 if e1 != 0 {
982 err = errnoErr(e1)
983 }
984 return
985}
986
987// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
988
989func Lstat(path string, stat *Stat_t) (err error) {
990 var _p0 *byte
991 _p0, err = BytePtrFromString(path)
992 if err != nil {
993 return
994 }
995 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
996 use(unsafe.Pointer(_p0))
997 if e1 != 0 {
998 err = errnoErr(e1)
999 }
1000 return
1001}
1002
1003// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1004
1005func Mkdir(path string, mode uint32) (err error) {
1006 var _p0 *byte
1007 _p0, err = BytePtrFromString(path)
1008 if err != nil {
1009 return
1010 }
1011 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1012 use(unsafe.Pointer(_p0))
1013 if e1 != 0 {
1014 err = errnoErr(e1)
1015 }
1016 return
1017}
1018
1019// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1020
1021func Mkfifo(path string, mode uint32) (err error) {
1022 var _p0 *byte
1023 _p0, err = BytePtrFromString(path)
1024 if err != nil {
1025 return
1026 }
1027 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1028 use(unsafe.Pointer(_p0))
1029 if e1 != 0 {
1030 err = errnoErr(e1)
1031 }
1032 return
1033}
1034
1035// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1036
1037func Mknod(path string, mode uint32, dev int) (err error) {
1038 var _p0 *byte
1039 _p0, err = BytePtrFromString(path)
1040 if err != nil {
1041 return
1042 }
1043 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
1044 use(unsafe.Pointer(_p0))
1045 if e1 != 0 {
1046 err = errnoErr(e1)
1047 }
1048 return
1049}
1050
1051// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1052
1053func Mlock(b []byte) (err error) {
1054 var _p0 unsafe.Pointer
1055 if len(b) > 0 {
1056 _p0 = unsafe.Pointer(&b[0])
1057 } else {
1058 _p0 = unsafe.Pointer(&_zero)
1059 }
1060 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1061 if e1 != 0 {
1062 err = errnoErr(e1)
1063 }
1064 return
1065}
1066
1067// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1068
1069func Mlockall(flags int) (err error) {
1070 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1071 if e1 != 0 {
1072 err = errnoErr(e1)
1073 }
1074 return
1075}
1076
1077// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1078
1079func Mprotect(b []byte, prot int) (err error) {
1080 var _p0 unsafe.Pointer
1081 if len(b) > 0 {
1082 _p0 = unsafe.Pointer(&b[0])
1083 } else {
1084 _p0 = unsafe.Pointer(&_zero)
1085 }
1086 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Munlock(b []byte) (err error) {
1096 var _p0 unsafe.Pointer
1097 if len(b) > 0 {
1098 _p0 = unsafe.Pointer(&b[0])
1099 } else {
1100 _p0 = unsafe.Pointer(&_zero)
1101 }
1102 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1103 if e1 != 0 {
1104 err = errnoErr(e1)
1105 }
1106 return
1107}
1108
1109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1110
1111func Munlockall() (err error) {
1112 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1113 if e1 != 0 {
1114 err = errnoErr(e1)
1115 }
1116 return
1117}
1118
1119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1120
1121func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1122 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func Open(path string, mode int, perm uint32) (fd int, err error) {
1132 var _p0 *byte
1133 _p0, err = BytePtrFromString(path)
1134 if err != nil {
1135 return
1136 }
1137 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
1138 use(unsafe.Pointer(_p0))
1139 fd = int(r0)
1140 if e1 != 0 {
1141 err = errnoErr(e1)
1142 }
1143 return
1144}
1145
1146// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1147
1148func Pathconf(path string, name int) (val int, err error) {
1149 var _p0 *byte
1150 _p0, err = BytePtrFromString(path)
1151 if err != nil {
1152 return
1153 }
1154 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
1155 use(unsafe.Pointer(_p0))
1156 val = int(r0)
1157 if e1 != 0 {
1158 err = errnoErr(e1)
1159 }
1160 return
1161}
1162
1163// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1164
1165func Pread(fd int, p []byte, offset int64) (n int, err error) {
1166 var _p0 unsafe.Pointer
1167 if len(p) > 0 {
1168 _p0 = unsafe.Pointer(&p[0])
1169 } else {
1170 _p0 = unsafe.Pointer(&_zero)
1171 }
1172 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
1173 n = int(r0)
1174 if e1 != 0 {
1175 err = errnoErr(e1)
1176 }
1177 return
1178}
1179
1180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1181
1182func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1183 var _p0 unsafe.Pointer
1184 if len(p) > 0 {
1185 _p0 = unsafe.Pointer(&p[0])
1186 } else {
1187 _p0 = unsafe.Pointer(&_zero)
1188 }
1189 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
1190 n = int(r0)
1191 if e1 != 0 {
1192 err = errnoErr(e1)
1193 }
1194 return
1195}
1196
1197// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1198
1199func read(fd int, p []byte) (n int, err error) {
1200 var _p0 unsafe.Pointer
1201 if len(p) > 0 {
1202 _p0 = unsafe.Pointer(&p[0])
1203 } else {
1204 _p0 = unsafe.Pointer(&_zero)
1205 }
1206 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1207 n = int(r0)
1208 if e1 != 0 {
1209 err = errnoErr(e1)
1210 }
1211 return
1212}
1213
1214// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1215
1216func Readlink(path string, buf []byte) (n int, err error) {
1217 var _p0 *byte
1218 _p0, err = BytePtrFromString(path)
1219 if err != nil {
1220 return
1221 }
1222 var _p1 unsafe.Pointer
1223 if len(buf) > 0 {
1224 _p1 = unsafe.Pointer(&buf[0])
1225 } else {
1226 _p1 = unsafe.Pointer(&_zero)
1227 }
1228 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1229 use(unsafe.Pointer(_p0))
1230 n = int(r0)
1231 if e1 != 0 {
1232 err = errnoErr(e1)
1233 }
1234 return
1235}
1236
1237// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1238
1239func Rename(from string, to string) (err error) {
1240 var _p0 *byte
1241 _p0, err = BytePtrFromString(from)
1242 if err != nil {
1243 return
1244 }
1245 var _p1 *byte
1246 _p1, err = BytePtrFromString(to)
1247 if err != nil {
1248 return
1249 }
1250 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1251 use(unsafe.Pointer(_p0))
1252 use(unsafe.Pointer(_p1))
1253 if e1 != 0 {
1254 err = errnoErr(e1)
1255 }
1256 return
1257}
1258
1259// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1260
1261func Revoke(path string) (err error) {
1262 var _p0 *byte
1263 _p0, err = BytePtrFromString(path)
1264 if err != nil {
1265 return
1266 }
1267 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1268 use(unsafe.Pointer(_p0))
1269 if e1 != 0 {
1270 err = errnoErr(e1)
1271 }
1272 return
1273}
1274
1275// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1276
1277func Rmdir(path string) (err error) {
1278 var _p0 *byte
1279 _p0, err = BytePtrFromString(path)
1280 if err != nil {
1281 return
1282 }
1283 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1284 use(unsafe.Pointer(_p0))
1285 if e1 != 0 {
1286 err = errnoErr(e1)
1287 }
1288 return
1289}
1290
1291// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1292
1293func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1294 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)
1295 newoffset = int64(int64(r1)<<32 | int64(r0))
1296 if e1 != 0 {
1297 err = errnoErr(e1)
1298 }
1299 return
1300}
1301
1302// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1303
1304func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1305 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1306 if e1 != 0 {
1307 err = errnoErr(e1)
1308 }
1309 return
1310}
1311
1312// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1313
1314func Setegid(egid int) (err error) {
1315 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1316 if e1 != 0 {
1317 err = errnoErr(e1)
1318 }
1319 return
1320}
1321
1322// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1323
1324func Seteuid(euid int) (err error) {
1325 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1326 if e1 != 0 {
1327 err = errnoErr(e1)
1328 }
1329 return
1330}
1331
1332// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1333
1334func Setgid(gid int) (err error) {
1335 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1336 if e1 != 0 {
1337 err = errnoErr(e1)
1338 }
1339 return
1340}
1341
1342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1343
1344func Setlogin(name string) (err error) {
1345 var _p0 *byte
1346 _p0, err = BytePtrFromString(name)
1347 if err != nil {
1348 return
1349 }
1350 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1351 use(unsafe.Pointer(_p0))
1352 if e1 != 0 {
1353 err = errnoErr(e1)
1354 }
1355 return
1356}
1357
1358// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1359
1360func Setpgid(pid int, pgid int) (err error) {
1361 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1362 if e1 != 0 {
1363 err = errnoErr(e1)
1364 }
1365 return
1366}
1367
1368// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1369
1370func Setpriority(which int, who int, prio int) (err error) {
1371 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1372 if e1 != 0 {
1373 err = errnoErr(e1)
1374 }
1375 return
1376}
1377
1378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1379
1380func Setregid(rgid int, egid int) (err error) {
1381 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1382 if e1 != 0 {
1383 err = errnoErr(e1)
1384 }
1385 return
1386}
1387
1388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1389
1390func Setreuid(ruid int, euid int) (err error) {
1391 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1392 if e1 != 0 {
1393 err = errnoErr(e1)
1394 }
1395 return
1396}
1397
1398// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1399
1400func Setresgid(rgid int, egid int, sgid int) (err error) {
1401 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1402 if e1 != 0 {
1403 err = errnoErr(e1)
1404 }
1405 return
1406}
1407
1408// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1409
1410func Setresuid(ruid int, euid int, suid int) (err error) {
1411 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1412 if e1 != 0 {
1413 err = errnoErr(e1)
1414 }
1415 return
1416}
1417
1418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1419
1420func Setrlimit(which int, lim *Rlimit) (err error) {
1421 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1422 if e1 != 0 {
1423 err = errnoErr(e1)
1424 }
1425 return
1426}
1427
1428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1429
1430func Setsid() (pid int, err error) {
1431 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1432 pid = int(r0)
1433 if e1 != 0 {
1434 err = errnoErr(e1)
1435 }
1436 return
1437}
1438
1439// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1440
1441func Settimeofday(tp *Timeval) (err error) {
1442 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1443 if e1 != 0 {
1444 err = errnoErr(e1)
1445 }
1446 return
1447}
1448
1449// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1450
1451func Setuid(uid int) (err error) {
1452 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1453 if e1 != 0 {
1454 err = errnoErr(e1)
1455 }
1456 return
1457}
1458
1459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1460
1461func Stat(path string, stat *Stat_t) (err error) {
1462 var _p0 *byte
1463 _p0, err = BytePtrFromString(path)
1464 if err != nil {
1465 return
1466 }
1467 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1468 use(unsafe.Pointer(_p0))
1469 if e1 != 0 {
1470 err = errnoErr(e1)
1471 }
1472 return
1473}
1474
1475// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1476
1477func Statfs(path string, stat *Statfs_t) (err error) {
1478 var _p0 *byte
1479 _p0, err = BytePtrFromString(path)
1480 if err != nil {
1481 return
1482 }
1483 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1484 use(unsafe.Pointer(_p0))
1485 if e1 != 0 {
1486 err = errnoErr(e1)
1487 }
1488 return
1489}
1490
1491// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1492
1493func Symlink(path string, link string) (err error) {
1494 var _p0 *byte
1495 _p0, err = BytePtrFromString(path)
1496 if err != nil {
1497 return
1498 }
1499 var _p1 *byte
1500 _p1, err = BytePtrFromString(link)
1501 if err != nil {
1502 return
1503 }
1504 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1505 use(unsafe.Pointer(_p0))
1506 use(unsafe.Pointer(_p1))
1507 if e1 != 0 {
1508 err = errnoErr(e1)
1509 }
1510 return
1511}
1512
1513// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1514
1515func Sync() (err error) {
1516 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1517 if e1 != 0 {
1518 err = errnoErr(e1)
1519 }
1520 return
1521}
1522
1523// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1524
1525func Truncate(path string, length int64) (err error) {
1526 var _p0 *byte
1527 _p0, err = BytePtrFromString(path)
1528 if err != nil {
1529 return
1530 }
1531 _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
1532 use(unsafe.Pointer(_p0))
1533 if e1 != 0 {
1534 err = errnoErr(e1)
1535 }
1536 return
1537}
1538
1539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1540
1541func Umask(newmask int) (oldmask int) {
1542 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1543 oldmask = int(r0)
1544 return
1545}
1546
1547// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1548
1549func Undelete(path string) (err error) {
1550 var _p0 *byte
1551 _p0, err = BytePtrFromString(path)
1552 if err != nil {
1553 return
1554 }
1555 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1556 use(unsafe.Pointer(_p0))
1557 if e1 != 0 {
1558 err = errnoErr(e1)
1559 }
1560 return
1561}
1562
1563// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1564
1565func Unlink(path string) (err error) {
1566 var _p0 *byte
1567 _p0, err = BytePtrFromString(path)
1568 if err != nil {
1569 return
1570 }
1571 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1572 use(unsafe.Pointer(_p0))
1573 if e1 != 0 {
1574 err = errnoErr(e1)
1575 }
1576 return
1577}
1578
1579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1580
1581func Unmount(path string, flags int) (err error) {
1582 var _p0 *byte
1583 _p0, err = BytePtrFromString(path)
1584 if err != nil {
1585 return
1586 }
1587 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1588 use(unsafe.Pointer(_p0))
1589 if e1 != 0 {
1590 err = errnoErr(e1)
1591 }
1592 return
1593}
1594
1595// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1596
1597func write(fd int, p []byte) (n int, err error) {
1598 var _p0 unsafe.Pointer
1599 if len(p) > 0 {
1600 _p0 = unsafe.Pointer(&p[0])
1601 } else {
1602 _p0 = unsafe.Pointer(&_zero)
1603 }
1604 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1605 n = int(r0)
1606 if e1 != 0 {
1607 err = errnoErr(e1)
1608 }
1609 return
1610}
1611
1612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1613
1614func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1615 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)
1616 ret = uintptr(r0)
1617 if e1 != 0 {
1618 err = errnoErr(e1)
1619 }
1620 return
1621}
1622
1623// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1624
1625func munmap(addr uintptr, length uintptr) (err error) {
1626 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1627 if e1 != 0 {
1628 err = errnoErr(e1)
1629 }
1630 return
1631}
1632
1633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1634
1635func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1636 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1637 n = int(r0)
1638 if e1 != 0 {
1639 err = errnoErr(e1)
1640 }
1641 return
1642}
1643
1644// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1645
1646func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1647 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1648 n = int(r0)
1649 if e1 != 0 {
1650 err = errnoErr(e1)
1651 }
1652 return
1653}
1654
1655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1656
1657func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) {
1658 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1659 nfd = int(r0)
1660 if e1 != 0 {
1661 err = errnoErr(e1)
1662 }
1663 return
1664}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_386.go
deleted file mode 100644
index ff6c39d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_386.go
+++ /dev/null
@@ -1,1628 +0,0 @@
1// mksyscall.pl -l32 syscall_linux.go syscall_linux_386.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,linux
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
18 var _p0 *byte
19 _p0, err = BytePtrFromString(oldpath)
20 if err != nil {
21 return
22 }
23 var _p1 *byte
24 _p1, err = BytePtrFromString(newpath)
25 if err != nil {
26 return
27 }
28 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
29 use(unsafe.Pointer(_p0))
30 use(unsafe.Pointer(_p1))
31 if e1 != 0 {
32 err = errnoErr(e1)
33 }
34 return
35}
36
37// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
38
39func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
40 var _p0 *byte
41 _p0, err = BytePtrFromString(path)
42 if err != nil {
43 return
44 }
45 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
46 use(unsafe.Pointer(_p0))
47 fd = int(r0)
48 if e1 != 0 {
49 err = errnoErr(e1)
50 }
51 return
52}
53
54// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
55
56func readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
57 var _p0 *byte
58 _p0, err = BytePtrFromString(path)
59 if err != nil {
60 return
61 }
62 var _p1 unsafe.Pointer
63 if len(buf) > 0 {
64 _p1 = unsafe.Pointer(&buf[0])
65 } else {
66 _p1 = unsafe.Pointer(&_zero)
67 }
68 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
69 use(unsafe.Pointer(_p0))
70 n = int(r0)
71 if e1 != 0 {
72 err = errnoErr(e1)
73 }
74 return
75}
76
77// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
78
79func symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
80 var _p0 *byte
81 _p0, err = BytePtrFromString(oldpath)
82 if err != nil {
83 return
84 }
85 var _p1 *byte
86 _p1, err = BytePtrFromString(newpath)
87 if err != nil {
88 return
89 }
90 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
91 use(unsafe.Pointer(_p0))
92 use(unsafe.Pointer(_p1))
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func unlinkat(dirfd int, path string, flags int) (err error) {
102 var _p0 *byte
103 _p0, err = BytePtrFromString(path)
104 if err != nil {
105 return
106 }
107 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
108 use(unsafe.Pointer(_p0))
109 if e1 != 0 {
110 err = errnoErr(e1)
111 }
112 return
113}
114
115// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
116
117func utimes(path string, times *[2]Timeval) (err error) {
118 var _p0 *byte
119 _p0, err = BytePtrFromString(path)
120 if err != nil {
121 return
122 }
123 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
124 use(unsafe.Pointer(_p0))
125 if e1 != 0 {
126 err = errnoErr(e1)
127 }
128 return
129}
130
131// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
132
133func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
134 var _p0 *byte
135 _p0, err = BytePtrFromString(path)
136 if err != nil {
137 return
138 }
139 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
140 use(unsafe.Pointer(_p0))
141 if e1 != 0 {
142 err = errnoErr(e1)
143 }
144 return
145}
146
147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
148
149func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
150 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
151 if e1 != 0 {
152 err = errnoErr(e1)
153 }
154 return
155}
156
157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
158
159func Getcwd(buf []byte) (n int, err error) {
160 var _p0 unsafe.Pointer
161 if len(buf) > 0 {
162 _p0 = unsafe.Pointer(&buf[0])
163 } else {
164 _p0 = unsafe.Pointer(&_zero)
165 }
166 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
167 n = int(r0)
168 if e1 != 0 {
169 err = errnoErr(e1)
170 }
171 return
172}
173
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175
176func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
177 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
178 wpid = int(r0)
179 if e1 != 0 {
180 err = errnoErr(e1)
181 }
182 return
183}
184
185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
186
187func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
188 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
189 if e1 != 0 {
190 err = errnoErr(e1)
191 }
192 return
193}
194
195// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
196
197func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
198 var _p0 *byte
199 _p0, err = BytePtrFromString(arg)
200 if err != nil {
201 return
202 }
203 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
204 use(unsafe.Pointer(_p0))
205 if e1 != 0 {
206 err = errnoErr(e1)
207 }
208 return
209}
210
211// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
212
213func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
214 var _p0 *byte
215 _p0, err = BytePtrFromString(source)
216 if err != nil {
217 return
218 }
219 var _p1 *byte
220 _p1, err = BytePtrFromString(target)
221 if err != nil {
222 return
223 }
224 var _p2 *byte
225 _p2, err = BytePtrFromString(fstype)
226 if err != nil {
227 return
228 }
229 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
230 use(unsafe.Pointer(_p0))
231 use(unsafe.Pointer(_p1))
232 use(unsafe.Pointer(_p2))
233 if e1 != 0 {
234 err = errnoErr(e1)
235 }
236 return
237}
238
239// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
240
241func Acct(path string) (err error) {
242 var _p0 *byte
243 _p0, err = BytePtrFromString(path)
244 if err != nil {
245 return
246 }
247 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
248 use(unsafe.Pointer(_p0))
249 if e1 != 0 {
250 err = errnoErr(e1)
251 }
252 return
253}
254
255// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
256
257func Adjtimex(buf *Timex) (state int, err error) {
258 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
259 state = int(r0)
260 if e1 != 0 {
261 err = errnoErr(e1)
262 }
263 return
264}
265
266// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
267
268func Chdir(path string) (err error) {
269 var _p0 *byte
270 _p0, err = BytePtrFromString(path)
271 if err != nil {
272 return
273 }
274 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
275 use(unsafe.Pointer(_p0))
276 if e1 != 0 {
277 err = errnoErr(e1)
278 }
279 return
280}
281
282// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
283
284func Chroot(path string) (err error) {
285 var _p0 *byte
286 _p0, err = BytePtrFromString(path)
287 if err != nil {
288 return
289 }
290 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
291 use(unsafe.Pointer(_p0))
292 if e1 != 0 {
293 err = errnoErr(e1)
294 }
295 return
296}
297
298// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
299
300func ClockGettime(clockid int32, time *Timespec) (err error) {
301 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
302 if e1 != 0 {
303 err = errnoErr(e1)
304 }
305 return
306}
307
308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
309
310func Close(fd int) (err error) {
311 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
312 if e1 != 0 {
313 err = errnoErr(e1)
314 }
315 return
316}
317
318// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
319
320func Dup(oldfd int) (fd int, err error) {
321 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
322 fd = int(r0)
323 if e1 != 0 {
324 err = errnoErr(e1)
325 }
326 return
327}
328
329// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
330
331func Dup3(oldfd int, newfd int, flags int) (err error) {
332 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
333 if e1 != 0 {
334 err = errnoErr(e1)
335 }
336 return
337}
338
339// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
340
341func EpollCreate(size int) (fd int, err error) {
342 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
343 fd = int(r0)
344 if e1 != 0 {
345 err = errnoErr(e1)
346 }
347 return
348}
349
350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
351
352func EpollCreate1(flag int) (fd int, err error) {
353 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
354 fd = int(r0)
355 if e1 != 0 {
356 err = errnoErr(e1)
357 }
358 return
359}
360
361// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
362
363func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
364 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
365 if e1 != 0 {
366 err = errnoErr(e1)
367 }
368 return
369}
370
371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372
373func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
374 var _p0 unsafe.Pointer
375 if len(events) > 0 {
376 _p0 = unsafe.Pointer(&events[0])
377 } else {
378 _p0 = unsafe.Pointer(&_zero)
379 }
380 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
381 n = int(r0)
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Exit(code int) {
391 Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0)
392 return
393}
394
395// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
396
397func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
398 var _p0 *byte
399 _p0, err = BytePtrFromString(path)
400 if err != nil {
401 return
402 }
403 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
404 use(unsafe.Pointer(_p0))
405 if e1 != 0 {
406 err = errnoErr(e1)
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
414 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func Fchdir(fd int) (err error) {
424 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
425 if e1 != 0 {
426 err = errnoErr(e1)
427 }
428 return
429}
430
431// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
432
433func Fchmod(fd int, mode uint32) (err error) {
434 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
444 var _p0 *byte
445 _p0, err = BytePtrFromString(path)
446 if err != nil {
447 return
448 }
449 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
450 use(unsafe.Pointer(_p0))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(path)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
466 use(unsafe.Pointer(_p0))
467 if e1 != 0 {
468 err = errnoErr(e1)
469 }
470 return
471}
472
473// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
474
475func fcntl(fd int, cmd int, arg int) (val int, err error) {
476 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
477 val = int(r0)
478 if e1 != 0 {
479 err = errnoErr(e1)
480 }
481 return
482}
483
484// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
485
486func Fdatasync(fd int) (err error) {
487 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
488 if e1 != 0 {
489 err = errnoErr(e1)
490 }
491 return
492}
493
494// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
495
496func Flock(fd int, how int) (err error) {
497 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
498 if e1 != 0 {
499 err = errnoErr(e1)
500 }
501 return
502}
503
504// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
505
506func Fsync(fd int) (err error) {
507 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
508 if e1 != 0 {
509 err = errnoErr(e1)
510 }
511 return
512}
513
514// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
515
516func Getdents(fd int, buf []byte) (n int, err error) {
517 var _p0 unsafe.Pointer
518 if len(buf) > 0 {
519 _p0 = unsafe.Pointer(&buf[0])
520 } else {
521 _p0 = unsafe.Pointer(&_zero)
522 }
523 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
524 n = int(r0)
525 if e1 != 0 {
526 err = errnoErr(e1)
527 }
528 return
529}
530
531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533func Getpgid(pid int) (pgid int, err error) {
534 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
535 pgid = int(r0)
536 if e1 != 0 {
537 err = errnoErr(e1)
538 }
539 return
540}
541
542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
543
544func Getpid() (pid int) {
545 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
546 pid = int(r0)
547 return
548}
549
550// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
551
552func Getppid() (ppid int) {
553 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
554 ppid = int(r0)
555 return
556}
557
558// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
559
560func Getpriority(which int, who int) (prio int, err error) {
561 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
562 prio = int(r0)
563 if e1 != 0 {
564 err = errnoErr(e1)
565 }
566 return
567}
568
569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
570
571func Getrusage(who int, rusage *Rusage) (err error) {
572 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
573 if e1 != 0 {
574 err = errnoErr(e1)
575 }
576 return
577}
578
579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
580
581func Gettid() (tid int) {
582 r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)
583 tid = int(r0)
584 return
585}
586
587// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
588
589func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
590 var _p0 *byte
591 _p0, err = BytePtrFromString(path)
592 if err != nil {
593 return
594 }
595 var _p1 *byte
596 _p1, err = BytePtrFromString(attr)
597 if err != nil {
598 return
599 }
600 var _p2 unsafe.Pointer
601 if len(dest) > 0 {
602 _p2 = unsafe.Pointer(&dest[0])
603 } else {
604 _p2 = unsafe.Pointer(&_zero)
605 }
606 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
607 use(unsafe.Pointer(_p0))
608 use(unsafe.Pointer(_p1))
609 sz = int(r0)
610 if e1 != 0 {
611 err = errnoErr(e1)
612 }
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
619 var _p0 *byte
620 _p0, err = BytePtrFromString(pathname)
621 if err != nil {
622 return
623 }
624 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
625 use(unsafe.Pointer(_p0))
626 watchdesc = int(r0)
627 if e1 != 0 {
628 err = errnoErr(e1)
629 }
630 return
631}
632
633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635func InotifyInit1(flags int) (fd int, err error) {
636 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
637 fd = int(r0)
638 if e1 != 0 {
639 err = errnoErr(e1)
640 }
641 return
642}
643
644// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
645
646func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
647 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
648 success = int(r0)
649 if e1 != 0 {
650 err = errnoErr(e1)
651 }
652 return
653}
654
655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
656
657func Kill(pid int, sig syscall.Signal) (err error) {
658 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
659 if e1 != 0 {
660 err = errnoErr(e1)
661 }
662 return
663}
664
665// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
666
667func Klogctl(typ int, buf []byte) (n int, err error) {
668 var _p0 unsafe.Pointer
669 if len(buf) > 0 {
670 _p0 = unsafe.Pointer(&buf[0])
671 } else {
672 _p0 = unsafe.Pointer(&_zero)
673 }
674 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
675 n = int(r0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Listxattr(path string, dest []byte) (sz int, err error) {
685 var _p0 *byte
686 _p0, err = BytePtrFromString(path)
687 if err != nil {
688 return
689 }
690 var _p1 unsafe.Pointer
691 if len(dest) > 0 {
692 _p1 = unsafe.Pointer(&dest[0])
693 } else {
694 _p1 = unsafe.Pointer(&_zero)
695 }
696 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
697 use(unsafe.Pointer(_p0))
698 sz = int(r0)
699 if e1 != 0 {
700 err = errnoErr(e1)
701 }
702 return
703}
704
705// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
706
707func Mkdirat(dirfd int, path string, mode uint32) (err error) {
708 var _p0 *byte
709 _p0, err = BytePtrFromString(path)
710 if err != nil {
711 return
712 }
713 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
714 use(unsafe.Pointer(_p0))
715 if e1 != 0 {
716 err = errnoErr(e1)
717 }
718 return
719}
720
721// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
722
723func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
724 var _p0 *byte
725 _p0, err = BytePtrFromString(path)
726 if err != nil {
727 return
728 }
729 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
730 use(unsafe.Pointer(_p0))
731 if e1 != 0 {
732 err = errnoErr(e1)
733 }
734 return
735}
736
737// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
738
739func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
740 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
741 if e1 != 0 {
742 err = errnoErr(e1)
743 }
744 return
745}
746
747// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
748
749func Pause() (err error) {
750 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
751 if e1 != 0 {
752 err = errnoErr(e1)
753 }
754 return
755}
756
757// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
758
759func PivotRoot(newroot string, putold string) (err error) {
760 var _p0 *byte
761 _p0, err = BytePtrFromString(newroot)
762 if err != nil {
763 return
764 }
765 var _p1 *byte
766 _p1, err = BytePtrFromString(putold)
767 if err != nil {
768 return
769 }
770 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
771 use(unsafe.Pointer(_p0))
772 use(unsafe.Pointer(_p1))
773 if e1 != 0 {
774 err = errnoErr(e1)
775 }
776 return
777}
778
779// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
780
781func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
782 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
783 if e1 != 0 {
784 err = errnoErr(e1)
785 }
786 return
787}
788
789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
790
791func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
792 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
793 if e1 != 0 {
794 err = errnoErr(e1)
795 }
796 return
797}
798
799// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800
801func read(fd int, p []byte) (n int, err error) {
802 var _p0 unsafe.Pointer
803 if len(p) > 0 {
804 _p0 = unsafe.Pointer(&p[0])
805 } else {
806 _p0 = unsafe.Pointer(&_zero)
807 }
808 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
809 n = int(r0)
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Removexattr(path string, attr string) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 var _p1 *byte
825 _p1, err = BytePtrFromString(attr)
826 if err != nil {
827 return
828 }
829 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
830 use(unsafe.Pointer(_p0))
831 use(unsafe.Pointer(_p1))
832 if e1 != 0 {
833 err = errnoErr(e1)
834 }
835 return
836}
837
838// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
839
840func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
841 var _p0 *byte
842 _p0, err = BytePtrFromString(oldpath)
843 if err != nil {
844 return
845 }
846 var _p1 *byte
847 _p1, err = BytePtrFromString(newpath)
848 if err != nil {
849 return
850 }
851 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
852 use(unsafe.Pointer(_p0))
853 use(unsafe.Pointer(_p1))
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Setdomainname(p []byte) (err error) {
863 var _p0 unsafe.Pointer
864 if len(p) > 0 {
865 _p0 = unsafe.Pointer(&p[0])
866 } else {
867 _p0 = unsafe.Pointer(&_zero)
868 }
869 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
870 if e1 != 0 {
871 err = errnoErr(e1)
872 }
873 return
874}
875
876// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
877
878func Sethostname(p []byte) (err error) {
879 var _p0 unsafe.Pointer
880 if len(p) > 0 {
881 _p0 = unsafe.Pointer(&p[0])
882 } else {
883 _p0 = unsafe.Pointer(&_zero)
884 }
885 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Setpgid(pid int, pgid int) (err error) {
895 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Setsid() (pid int, err error) {
905 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
906 pid = int(r0)
907 if e1 != 0 {
908 err = errnoErr(e1)
909 }
910 return
911}
912
913// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
914
915func Settimeofday(tv *Timeval) (err error) {
916 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
917 if e1 != 0 {
918 err = errnoErr(e1)
919 }
920 return
921}
922
923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
924
925func Setpriority(which int, who int, prio int) (err error) {
926 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
927 if e1 != 0 {
928 err = errnoErr(e1)
929 }
930 return
931}
932
933// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
934
935func Setxattr(path string, attr string, data []byte, flags int) (err error) {
936 var _p0 *byte
937 _p0, err = BytePtrFromString(path)
938 if err != nil {
939 return
940 }
941 var _p1 *byte
942 _p1, err = BytePtrFromString(attr)
943 if err != nil {
944 return
945 }
946 var _p2 unsafe.Pointer
947 if len(data) > 0 {
948 _p2 = unsafe.Pointer(&data[0])
949 } else {
950 _p2 = unsafe.Pointer(&_zero)
951 }
952 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
953 use(unsafe.Pointer(_p0))
954 use(unsafe.Pointer(_p1))
955 if e1 != 0 {
956 err = errnoErr(e1)
957 }
958 return
959}
960
961// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
962
963func Sync() {
964 Syscall(SYS_SYNC, 0, 0, 0)
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func Sysinfo(info *Sysinfo_t) (err error) {
971 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
972 if e1 != 0 {
973 err = errnoErr(e1)
974 }
975 return
976}
977
978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
979
980func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
981 r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
982 n = int64(int64(r1)<<32 | int64(r0))
983 if e1 != 0 {
984 err = errnoErr(e1)
985 }
986 return
987}
988
989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
990
991func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
992 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
993 if e1 != 0 {
994 err = errnoErr(e1)
995 }
996 return
997}
998
999// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1000
1001func Times(tms *Tms) (ticks uintptr, err error) {
1002 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
1003 ticks = uintptr(r0)
1004 if e1 != 0 {
1005 err = errnoErr(e1)
1006 }
1007 return
1008}
1009
1010// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1011
1012func Umask(mask int) (oldmask int) {
1013 r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0)
1014 oldmask = int(r0)
1015 return
1016}
1017
1018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1019
1020func Uname(buf *Utsname) (err error) {
1021 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
1022 if e1 != 0 {
1023 err = errnoErr(e1)
1024 }
1025 return
1026}
1027
1028// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1029
1030func Unmount(target string, flags int) (err error) {
1031 var _p0 *byte
1032 _p0, err = BytePtrFromString(target)
1033 if err != nil {
1034 return
1035 }
1036 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1037 use(unsafe.Pointer(_p0))
1038 if e1 != 0 {
1039 err = errnoErr(e1)
1040 }
1041 return
1042}
1043
1044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1045
1046func Unshare(flags int) (err error) {
1047 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
1048 if e1 != 0 {
1049 err = errnoErr(e1)
1050 }
1051 return
1052}
1053
1054// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1055
1056func Ustat(dev int, ubuf *Ustat_t) (err error) {
1057 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1058 if e1 != 0 {
1059 err = errnoErr(e1)
1060 }
1061 return
1062}
1063
1064// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1065
1066func Utime(path string, buf *Utimbuf) (err error) {
1067 var _p0 *byte
1068 _p0, err = BytePtrFromString(path)
1069 if err != nil {
1070 return
1071 }
1072 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1073 use(unsafe.Pointer(_p0))
1074 if e1 != 0 {
1075 err = errnoErr(e1)
1076 }
1077 return
1078}
1079
1080// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1081
1082func write(fd int, p []byte) (n int, err error) {
1083 var _p0 unsafe.Pointer
1084 if len(p) > 0 {
1085 _p0 = unsafe.Pointer(&p[0])
1086 } else {
1087 _p0 = unsafe.Pointer(&_zero)
1088 }
1089 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1090 n = int(r0)
1091 if e1 != 0 {
1092 err = errnoErr(e1)
1093 }
1094 return
1095}
1096
1097// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1098
1099func exitThread(code int) (err error) {
1100 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
1101 if e1 != 0 {
1102 err = errnoErr(e1)
1103 }
1104 return
1105}
1106
1107// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1108
1109func readlen(fd int, p *byte, np int) (n int, err error) {
1110 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1111 n = int(r0)
1112 if e1 != 0 {
1113 err = errnoErr(e1)
1114 }
1115 return
1116}
1117
1118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1119
1120func writelen(fd int, p *byte, np int) (n int, err error) {
1121 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1122 n = int(r0)
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func munmap(addr uintptr, length uintptr) (err error) {
1132 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Madvise(b []byte, advice int) (err error) {
1142 var _p0 unsafe.Pointer
1143 if len(b) > 0 {
1144 _p0 = unsafe.Pointer(&b[0])
1145 } else {
1146 _p0 = unsafe.Pointer(&_zero)
1147 }
1148 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
1149 if e1 != 0 {
1150 err = errnoErr(e1)
1151 }
1152 return
1153}
1154
1155// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1156
1157func Mprotect(b []byte, prot int) (err error) {
1158 var _p0 unsafe.Pointer
1159 if len(b) > 0 {
1160 _p0 = unsafe.Pointer(&b[0])
1161 } else {
1162 _p0 = unsafe.Pointer(&_zero)
1163 }
1164 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1165 if e1 != 0 {
1166 err = errnoErr(e1)
1167 }
1168 return
1169}
1170
1171// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1172
1173func Mlock(b []byte) (err error) {
1174 var _p0 unsafe.Pointer
1175 if len(b) > 0 {
1176 _p0 = unsafe.Pointer(&b[0])
1177 } else {
1178 _p0 = unsafe.Pointer(&_zero)
1179 }
1180 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1181 if e1 != 0 {
1182 err = errnoErr(e1)
1183 }
1184 return
1185}
1186
1187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1188
1189func Munlock(b []byte) (err error) {
1190 var _p0 unsafe.Pointer
1191 if len(b) > 0 {
1192 _p0 = unsafe.Pointer(&b[0])
1193 } else {
1194 _p0 = unsafe.Pointer(&_zero)
1195 }
1196 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1197 if e1 != 0 {
1198 err = errnoErr(e1)
1199 }
1200 return
1201}
1202
1203// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1204
1205func Mlockall(flags int) (err error) {
1206 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1207 if e1 != 0 {
1208 err = errnoErr(e1)
1209 }
1210 return
1211}
1212
1213// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1214
1215func Munlockall() (err error) {
1216 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1217 if e1 != 0 {
1218 err = errnoErr(e1)
1219 }
1220 return
1221}
1222
1223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1224
1225func pipe(p *[2]_C_int) (err error) {
1226 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
1227 if e1 != 0 {
1228 err = errnoErr(e1)
1229 }
1230 return
1231}
1232
1233// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1234
1235func pipe2(p *[2]_C_int, flags int) (err error) {
1236 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
1237 if e1 != 0 {
1238 err = errnoErr(e1)
1239 }
1240 return
1241}
1242
1243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1244
1245func Dup2(oldfd int, newfd int) (err error) {
1246 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1247 if e1 != 0 {
1248 err = errnoErr(e1)
1249 }
1250 return
1251}
1252
1253// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1254
1255func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1256 _, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice))
1257 if e1 != 0 {
1258 err = errnoErr(e1)
1259 }
1260 return
1261}
1262
1263// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1264
1265func Fchown(fd int, uid int, gid int) (err error) {
1266 _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid))
1267 if e1 != 0 {
1268 err = errnoErr(e1)
1269 }
1270 return
1271}
1272
1273// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1274
1275func Fstat(fd int, stat *Stat_t) (err error) {
1276 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1277 if e1 != 0 {
1278 err = errnoErr(e1)
1279 }
1280 return
1281}
1282
1283// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1284
1285func Ftruncate(fd int, length int64) (err error) {
1286 _, _, e1 := Syscall(SYS_FTRUNCATE64, uintptr(fd), uintptr(length), uintptr(length>>32))
1287 if e1 != 0 {
1288 err = errnoErr(e1)
1289 }
1290 return
1291}
1292
1293// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1294
1295func Getegid() (egid int) {
1296 r0, _, _ := RawSyscall(SYS_GETEGID32, 0, 0, 0)
1297 egid = int(r0)
1298 return
1299}
1300
1301// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1302
1303func Geteuid() (euid int) {
1304 r0, _, _ := RawSyscall(SYS_GETEUID32, 0, 0, 0)
1305 euid = int(r0)
1306 return
1307}
1308
1309// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1310
1311func Getgid() (gid int) {
1312 r0, _, _ := RawSyscall(SYS_GETGID32, 0, 0, 0)
1313 gid = int(r0)
1314 return
1315}
1316
1317// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1318
1319func Getuid() (uid int) {
1320 r0, _, _ := RawSyscall(SYS_GETUID32, 0, 0, 0)
1321 uid = int(r0)
1322 return
1323}
1324
1325// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1326
1327func InotifyInit() (fd int, err error) {
1328 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
1329 fd = int(r0)
1330 if e1 != 0 {
1331 err = errnoErr(e1)
1332 }
1333 return
1334}
1335
1336// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1337
1338func Ioperm(from int, num int, on int) (err error) {
1339 _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
1340 if e1 != 0 {
1341 err = errnoErr(e1)
1342 }
1343 return
1344}
1345
1346// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1347
1348func Iopl(level int) (err error) {
1349 _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0)
1350 if e1 != 0 {
1351 err = errnoErr(e1)
1352 }
1353 return
1354}
1355
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357
1358func Lchown(path string, uid int, gid int) (err error) {
1359 var _p0 *byte
1360 _p0, err = BytePtrFromString(path)
1361 if err != nil {
1362 return
1363 }
1364 _, _, e1 := Syscall(SYS_LCHOWN32, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
1365 use(unsafe.Pointer(_p0))
1366 if e1 != 0 {
1367 err = errnoErr(e1)
1368 }
1369 return
1370}
1371
1372// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1373
1374func Lstat(path string, stat *Stat_t) (err error) {
1375 var _p0 *byte
1376 _p0, err = BytePtrFromString(path)
1377 if err != nil {
1378 return
1379 }
1380 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1381 use(unsafe.Pointer(_p0))
1382 if e1 != 0 {
1383 err = errnoErr(e1)
1384 }
1385 return
1386}
1387
1388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1389
1390func Pread(fd int, p []byte, offset int64) (n int, err error) {
1391 var _p0 unsafe.Pointer
1392 if len(p) > 0 {
1393 _p0 = unsafe.Pointer(&p[0])
1394 } else {
1395 _p0 = unsafe.Pointer(&_zero)
1396 }
1397 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
1398 n = int(r0)
1399 if e1 != 0 {
1400 err = errnoErr(e1)
1401 }
1402 return
1403}
1404
1405// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1406
1407func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1408 var _p0 unsafe.Pointer
1409 if len(p) > 0 {
1410 _p0 = unsafe.Pointer(&p[0])
1411 } else {
1412 _p0 = unsafe.Pointer(&_zero)
1413 }
1414 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
1415 n = int(r0)
1416 if e1 != 0 {
1417 err = errnoErr(e1)
1418 }
1419 return
1420}
1421
1422// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1423
1424func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1425 r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1426 written = int(r0)
1427 if e1 != 0 {
1428 err = errnoErr(e1)
1429 }
1430 return
1431}
1432
1433// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1434
1435func Setfsgid(gid int) (err error) {
1436 _, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
1437 if e1 != 0 {
1438 err = errnoErr(e1)
1439 }
1440 return
1441}
1442
1443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1444
1445func Setfsuid(uid int) (err error) {
1446 _, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0)
1447 if e1 != 0 {
1448 err = errnoErr(e1)
1449 }
1450 return
1451}
1452
1453// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1454
1455func Setregid(rgid int, egid int) (err error) {
1456 _, _, e1 := RawSyscall(SYS_SETREGID32, uintptr(rgid), uintptr(egid), 0)
1457 if e1 != 0 {
1458 err = errnoErr(e1)
1459 }
1460 return
1461}
1462
1463// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1464
1465func Setresgid(rgid int, egid int, sgid int) (err error) {
1466 _, _, e1 := RawSyscall(SYS_SETRESGID32, uintptr(rgid), uintptr(egid), uintptr(sgid))
1467 if e1 != 0 {
1468 err = errnoErr(e1)
1469 }
1470 return
1471}
1472
1473// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1474
1475func Setresuid(ruid int, euid int, suid int) (err error) {
1476 _, _, e1 := RawSyscall(SYS_SETRESUID32, uintptr(ruid), uintptr(euid), uintptr(suid))
1477 if e1 != 0 {
1478 err = errnoErr(e1)
1479 }
1480 return
1481}
1482
1483// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1484
1485func Setreuid(ruid int, euid int) (err error) {
1486 _, _, e1 := RawSyscall(SYS_SETREUID32, uintptr(ruid), uintptr(euid), 0)
1487 if e1 != 0 {
1488 err = errnoErr(e1)
1489 }
1490 return
1491}
1492
1493// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1494
1495func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
1496 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
1497 n = int(r0)
1498 if e1 != 0 {
1499 err = errnoErr(e1)
1500 }
1501 return
1502}
1503
1504// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1505
1506func Stat(path string, stat *Stat_t) (err error) {
1507 var _p0 *byte
1508 _p0, err = BytePtrFromString(path)
1509 if err != nil {
1510 return
1511 }
1512 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1513 use(unsafe.Pointer(_p0))
1514 if e1 != 0 {
1515 err = errnoErr(e1)
1516 }
1517 return
1518}
1519
1520// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1521
1522func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
1523 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32), uintptr(flags))
1524 if e1 != 0 {
1525 err = errnoErr(e1)
1526 }
1527 return
1528}
1529
1530// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1531
1532func Truncate(path string, length int64) (err error) {
1533 var _p0 *byte
1534 _p0, err = BytePtrFromString(path)
1535 if err != nil {
1536 return
1537 }
1538 _, _, e1 := Syscall(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32))
1539 use(unsafe.Pointer(_p0))
1540 if e1 != 0 {
1541 err = errnoErr(e1)
1542 }
1543 return
1544}
1545
1546// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1547
1548func getgroups(n int, list *_Gid_t) (nn int, err error) {
1549 r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1550 nn = int(r0)
1551 if e1 != 0 {
1552 err = errnoErr(e1)
1553 }
1554 return
1555}
1556
1557// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1558
1559func setgroups(n int, list *_Gid_t) (err error) {
1560 _, _, e1 := RawSyscall(SYS_SETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1561 if e1 != 0 {
1562 err = errnoErr(e1)
1563 }
1564 return
1565}
1566
1567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1568
1569func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
1570 r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1571 n = int(r0)
1572 if e1 != 0 {
1573 err = errnoErr(e1)
1574 }
1575 return
1576}
1577
1578// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1579
1580func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
1581 r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
1582 xaddr = uintptr(r0)
1583 if e1 != 0 {
1584 err = errnoErr(e1)
1585 }
1586 return
1587}
1588
1589// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1590
1591func getrlimit(resource int, rlim *rlimit32) (err error) {
1592 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1593 if e1 != 0 {
1594 err = errnoErr(e1)
1595 }
1596 return
1597}
1598
1599// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1600
1601func setrlimit(resource int, rlim *rlimit32) (err error) {
1602 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1603 if e1 != 0 {
1604 err = errnoErr(e1)
1605 }
1606 return
1607}
1608
1609// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1610
1611func Gettimeofday(tv *Timeval) (err error) {
1612 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1613 if e1 != 0 {
1614 err = errnoErr(e1)
1615 }
1616 return
1617}
1618
1619// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1620
1621func Time(t *Time_t) (tt Time_t, err error) {
1622 r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
1623 tt = Time_t(r0)
1624 if e1 != 0 {
1625 err = errnoErr(e1)
1626 }
1627 return
1628}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_amd64.go
deleted file mode 100644
index c243852..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_amd64.go
+++ /dev/null
@@ -1,1822 +0,0 @@
1// mksyscall.pl syscall_linux.go syscall_linux_amd64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,linux
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
18 var _p0 *byte
19 _p0, err = BytePtrFromString(oldpath)
20 if err != nil {
21 return
22 }
23 var _p1 *byte
24 _p1, err = BytePtrFromString(newpath)
25 if err != nil {
26 return
27 }
28 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
29 use(unsafe.Pointer(_p0))
30 use(unsafe.Pointer(_p1))
31 if e1 != 0 {
32 err = errnoErr(e1)
33 }
34 return
35}
36
37// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
38
39func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
40 var _p0 *byte
41 _p0, err = BytePtrFromString(path)
42 if err != nil {
43 return
44 }
45 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
46 use(unsafe.Pointer(_p0))
47 fd = int(r0)
48 if e1 != 0 {
49 err = errnoErr(e1)
50 }
51 return
52}
53
54// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
55
56func readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
57 var _p0 *byte
58 _p0, err = BytePtrFromString(path)
59 if err != nil {
60 return
61 }
62 var _p1 unsafe.Pointer
63 if len(buf) > 0 {
64 _p1 = unsafe.Pointer(&buf[0])
65 } else {
66 _p1 = unsafe.Pointer(&_zero)
67 }
68 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
69 use(unsafe.Pointer(_p0))
70 n = int(r0)
71 if e1 != 0 {
72 err = errnoErr(e1)
73 }
74 return
75}
76
77// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
78
79func symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
80 var _p0 *byte
81 _p0, err = BytePtrFromString(oldpath)
82 if err != nil {
83 return
84 }
85 var _p1 *byte
86 _p1, err = BytePtrFromString(newpath)
87 if err != nil {
88 return
89 }
90 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
91 use(unsafe.Pointer(_p0))
92 use(unsafe.Pointer(_p1))
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func unlinkat(dirfd int, path string, flags int) (err error) {
102 var _p0 *byte
103 _p0, err = BytePtrFromString(path)
104 if err != nil {
105 return
106 }
107 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
108 use(unsafe.Pointer(_p0))
109 if e1 != 0 {
110 err = errnoErr(e1)
111 }
112 return
113}
114
115// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
116
117func utimes(path string, times *[2]Timeval) (err error) {
118 var _p0 *byte
119 _p0, err = BytePtrFromString(path)
120 if err != nil {
121 return
122 }
123 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
124 use(unsafe.Pointer(_p0))
125 if e1 != 0 {
126 err = errnoErr(e1)
127 }
128 return
129}
130
131// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
132
133func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
134 var _p0 *byte
135 _p0, err = BytePtrFromString(path)
136 if err != nil {
137 return
138 }
139 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
140 use(unsafe.Pointer(_p0))
141 if e1 != 0 {
142 err = errnoErr(e1)
143 }
144 return
145}
146
147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
148
149func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
150 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
151 if e1 != 0 {
152 err = errnoErr(e1)
153 }
154 return
155}
156
157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
158
159func Getcwd(buf []byte) (n int, err error) {
160 var _p0 unsafe.Pointer
161 if len(buf) > 0 {
162 _p0 = unsafe.Pointer(&buf[0])
163 } else {
164 _p0 = unsafe.Pointer(&_zero)
165 }
166 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
167 n = int(r0)
168 if e1 != 0 {
169 err = errnoErr(e1)
170 }
171 return
172}
173
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175
176func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
177 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
178 wpid = int(r0)
179 if e1 != 0 {
180 err = errnoErr(e1)
181 }
182 return
183}
184
185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
186
187func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
188 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
189 if e1 != 0 {
190 err = errnoErr(e1)
191 }
192 return
193}
194
195// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
196
197func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
198 var _p0 *byte
199 _p0, err = BytePtrFromString(arg)
200 if err != nil {
201 return
202 }
203 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
204 use(unsafe.Pointer(_p0))
205 if e1 != 0 {
206 err = errnoErr(e1)
207 }
208 return
209}
210
211// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
212
213func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
214 var _p0 *byte
215 _p0, err = BytePtrFromString(source)
216 if err != nil {
217 return
218 }
219 var _p1 *byte
220 _p1, err = BytePtrFromString(target)
221 if err != nil {
222 return
223 }
224 var _p2 *byte
225 _p2, err = BytePtrFromString(fstype)
226 if err != nil {
227 return
228 }
229 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
230 use(unsafe.Pointer(_p0))
231 use(unsafe.Pointer(_p1))
232 use(unsafe.Pointer(_p2))
233 if e1 != 0 {
234 err = errnoErr(e1)
235 }
236 return
237}
238
239// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
240
241func Acct(path string) (err error) {
242 var _p0 *byte
243 _p0, err = BytePtrFromString(path)
244 if err != nil {
245 return
246 }
247 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
248 use(unsafe.Pointer(_p0))
249 if e1 != 0 {
250 err = errnoErr(e1)
251 }
252 return
253}
254
255// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
256
257func Adjtimex(buf *Timex) (state int, err error) {
258 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
259 state = int(r0)
260 if e1 != 0 {
261 err = errnoErr(e1)
262 }
263 return
264}
265
266// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
267
268func Chdir(path string) (err error) {
269 var _p0 *byte
270 _p0, err = BytePtrFromString(path)
271 if err != nil {
272 return
273 }
274 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
275 use(unsafe.Pointer(_p0))
276 if e1 != 0 {
277 err = errnoErr(e1)
278 }
279 return
280}
281
282// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
283
284func Chroot(path string) (err error) {
285 var _p0 *byte
286 _p0, err = BytePtrFromString(path)
287 if err != nil {
288 return
289 }
290 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
291 use(unsafe.Pointer(_p0))
292 if e1 != 0 {
293 err = errnoErr(e1)
294 }
295 return
296}
297
298// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
299
300func ClockGettime(clockid int32, time *Timespec) (err error) {
301 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
302 if e1 != 0 {
303 err = errnoErr(e1)
304 }
305 return
306}
307
308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
309
310func Close(fd int) (err error) {
311 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
312 if e1 != 0 {
313 err = errnoErr(e1)
314 }
315 return
316}
317
318// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
319
320func Dup(oldfd int) (fd int, err error) {
321 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
322 fd = int(r0)
323 if e1 != 0 {
324 err = errnoErr(e1)
325 }
326 return
327}
328
329// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
330
331func Dup3(oldfd int, newfd int, flags int) (err error) {
332 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
333 if e1 != 0 {
334 err = errnoErr(e1)
335 }
336 return
337}
338
339// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
340
341func EpollCreate(size int) (fd int, err error) {
342 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
343 fd = int(r0)
344 if e1 != 0 {
345 err = errnoErr(e1)
346 }
347 return
348}
349
350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
351
352func EpollCreate1(flag int) (fd int, err error) {
353 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
354 fd = int(r0)
355 if e1 != 0 {
356 err = errnoErr(e1)
357 }
358 return
359}
360
361// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
362
363func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
364 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
365 if e1 != 0 {
366 err = errnoErr(e1)
367 }
368 return
369}
370
371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372
373func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
374 var _p0 unsafe.Pointer
375 if len(events) > 0 {
376 _p0 = unsafe.Pointer(&events[0])
377 } else {
378 _p0 = unsafe.Pointer(&_zero)
379 }
380 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
381 n = int(r0)
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Exit(code int) {
391 Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0)
392 return
393}
394
395// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
396
397func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
398 var _p0 *byte
399 _p0, err = BytePtrFromString(path)
400 if err != nil {
401 return
402 }
403 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
404 use(unsafe.Pointer(_p0))
405 if e1 != 0 {
406 err = errnoErr(e1)
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
414 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func Fchdir(fd int) (err error) {
424 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
425 if e1 != 0 {
426 err = errnoErr(e1)
427 }
428 return
429}
430
431// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
432
433func Fchmod(fd int, mode uint32) (err error) {
434 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
444 var _p0 *byte
445 _p0, err = BytePtrFromString(path)
446 if err != nil {
447 return
448 }
449 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
450 use(unsafe.Pointer(_p0))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(path)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
466 use(unsafe.Pointer(_p0))
467 if e1 != 0 {
468 err = errnoErr(e1)
469 }
470 return
471}
472
473// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
474
475func fcntl(fd int, cmd int, arg int) (val int, err error) {
476 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
477 val = int(r0)
478 if e1 != 0 {
479 err = errnoErr(e1)
480 }
481 return
482}
483
484// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
485
486func Fdatasync(fd int) (err error) {
487 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
488 if e1 != 0 {
489 err = errnoErr(e1)
490 }
491 return
492}
493
494// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
495
496func Flock(fd int, how int) (err error) {
497 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
498 if e1 != 0 {
499 err = errnoErr(e1)
500 }
501 return
502}
503
504// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
505
506func Fsync(fd int) (err error) {
507 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
508 if e1 != 0 {
509 err = errnoErr(e1)
510 }
511 return
512}
513
514// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
515
516func Getdents(fd int, buf []byte) (n int, err error) {
517 var _p0 unsafe.Pointer
518 if len(buf) > 0 {
519 _p0 = unsafe.Pointer(&buf[0])
520 } else {
521 _p0 = unsafe.Pointer(&_zero)
522 }
523 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
524 n = int(r0)
525 if e1 != 0 {
526 err = errnoErr(e1)
527 }
528 return
529}
530
531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533func Getpgid(pid int) (pgid int, err error) {
534 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
535 pgid = int(r0)
536 if e1 != 0 {
537 err = errnoErr(e1)
538 }
539 return
540}
541
542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
543
544func Getpid() (pid int) {
545 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
546 pid = int(r0)
547 return
548}
549
550// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
551
552func Getppid() (ppid int) {
553 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
554 ppid = int(r0)
555 return
556}
557
558// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
559
560func Getpriority(which int, who int) (prio int, err error) {
561 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
562 prio = int(r0)
563 if e1 != 0 {
564 err = errnoErr(e1)
565 }
566 return
567}
568
569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
570
571func Getrusage(who int, rusage *Rusage) (err error) {
572 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
573 if e1 != 0 {
574 err = errnoErr(e1)
575 }
576 return
577}
578
579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
580
581func Gettid() (tid int) {
582 r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)
583 tid = int(r0)
584 return
585}
586
587// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
588
589func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
590 var _p0 *byte
591 _p0, err = BytePtrFromString(path)
592 if err != nil {
593 return
594 }
595 var _p1 *byte
596 _p1, err = BytePtrFromString(attr)
597 if err != nil {
598 return
599 }
600 var _p2 unsafe.Pointer
601 if len(dest) > 0 {
602 _p2 = unsafe.Pointer(&dest[0])
603 } else {
604 _p2 = unsafe.Pointer(&_zero)
605 }
606 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
607 use(unsafe.Pointer(_p0))
608 use(unsafe.Pointer(_p1))
609 sz = int(r0)
610 if e1 != 0 {
611 err = errnoErr(e1)
612 }
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
619 var _p0 *byte
620 _p0, err = BytePtrFromString(pathname)
621 if err != nil {
622 return
623 }
624 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
625 use(unsafe.Pointer(_p0))
626 watchdesc = int(r0)
627 if e1 != 0 {
628 err = errnoErr(e1)
629 }
630 return
631}
632
633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635func InotifyInit1(flags int) (fd int, err error) {
636 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
637 fd = int(r0)
638 if e1 != 0 {
639 err = errnoErr(e1)
640 }
641 return
642}
643
644// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
645
646func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
647 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
648 success = int(r0)
649 if e1 != 0 {
650 err = errnoErr(e1)
651 }
652 return
653}
654
655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
656
657func Kill(pid int, sig syscall.Signal) (err error) {
658 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
659 if e1 != 0 {
660 err = errnoErr(e1)
661 }
662 return
663}
664
665// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
666
667func Klogctl(typ int, buf []byte) (n int, err error) {
668 var _p0 unsafe.Pointer
669 if len(buf) > 0 {
670 _p0 = unsafe.Pointer(&buf[0])
671 } else {
672 _p0 = unsafe.Pointer(&_zero)
673 }
674 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
675 n = int(r0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Listxattr(path string, dest []byte) (sz int, err error) {
685 var _p0 *byte
686 _p0, err = BytePtrFromString(path)
687 if err != nil {
688 return
689 }
690 var _p1 unsafe.Pointer
691 if len(dest) > 0 {
692 _p1 = unsafe.Pointer(&dest[0])
693 } else {
694 _p1 = unsafe.Pointer(&_zero)
695 }
696 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
697 use(unsafe.Pointer(_p0))
698 sz = int(r0)
699 if e1 != 0 {
700 err = errnoErr(e1)
701 }
702 return
703}
704
705// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
706
707func Mkdirat(dirfd int, path string, mode uint32) (err error) {
708 var _p0 *byte
709 _p0, err = BytePtrFromString(path)
710 if err != nil {
711 return
712 }
713 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
714 use(unsafe.Pointer(_p0))
715 if e1 != 0 {
716 err = errnoErr(e1)
717 }
718 return
719}
720
721// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
722
723func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
724 var _p0 *byte
725 _p0, err = BytePtrFromString(path)
726 if err != nil {
727 return
728 }
729 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
730 use(unsafe.Pointer(_p0))
731 if e1 != 0 {
732 err = errnoErr(e1)
733 }
734 return
735}
736
737// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
738
739func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
740 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
741 if e1 != 0 {
742 err = errnoErr(e1)
743 }
744 return
745}
746
747// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
748
749func Pause() (err error) {
750 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
751 if e1 != 0 {
752 err = errnoErr(e1)
753 }
754 return
755}
756
757// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
758
759func PivotRoot(newroot string, putold string) (err error) {
760 var _p0 *byte
761 _p0, err = BytePtrFromString(newroot)
762 if err != nil {
763 return
764 }
765 var _p1 *byte
766 _p1, err = BytePtrFromString(putold)
767 if err != nil {
768 return
769 }
770 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
771 use(unsafe.Pointer(_p0))
772 use(unsafe.Pointer(_p1))
773 if e1 != 0 {
774 err = errnoErr(e1)
775 }
776 return
777}
778
779// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
780
781func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
782 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
783 if e1 != 0 {
784 err = errnoErr(e1)
785 }
786 return
787}
788
789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
790
791func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
792 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
793 if e1 != 0 {
794 err = errnoErr(e1)
795 }
796 return
797}
798
799// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800
801func read(fd int, p []byte) (n int, err error) {
802 var _p0 unsafe.Pointer
803 if len(p) > 0 {
804 _p0 = unsafe.Pointer(&p[0])
805 } else {
806 _p0 = unsafe.Pointer(&_zero)
807 }
808 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
809 n = int(r0)
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Removexattr(path string, attr string) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 var _p1 *byte
825 _p1, err = BytePtrFromString(attr)
826 if err != nil {
827 return
828 }
829 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
830 use(unsafe.Pointer(_p0))
831 use(unsafe.Pointer(_p1))
832 if e1 != 0 {
833 err = errnoErr(e1)
834 }
835 return
836}
837
838// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
839
840func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
841 var _p0 *byte
842 _p0, err = BytePtrFromString(oldpath)
843 if err != nil {
844 return
845 }
846 var _p1 *byte
847 _p1, err = BytePtrFromString(newpath)
848 if err != nil {
849 return
850 }
851 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
852 use(unsafe.Pointer(_p0))
853 use(unsafe.Pointer(_p1))
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Setdomainname(p []byte) (err error) {
863 var _p0 unsafe.Pointer
864 if len(p) > 0 {
865 _p0 = unsafe.Pointer(&p[0])
866 } else {
867 _p0 = unsafe.Pointer(&_zero)
868 }
869 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
870 if e1 != 0 {
871 err = errnoErr(e1)
872 }
873 return
874}
875
876// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
877
878func Sethostname(p []byte) (err error) {
879 var _p0 unsafe.Pointer
880 if len(p) > 0 {
881 _p0 = unsafe.Pointer(&p[0])
882 } else {
883 _p0 = unsafe.Pointer(&_zero)
884 }
885 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Setpgid(pid int, pgid int) (err error) {
895 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Setsid() (pid int, err error) {
905 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
906 pid = int(r0)
907 if e1 != 0 {
908 err = errnoErr(e1)
909 }
910 return
911}
912
913// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
914
915func Settimeofday(tv *Timeval) (err error) {
916 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
917 if e1 != 0 {
918 err = errnoErr(e1)
919 }
920 return
921}
922
923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
924
925func Setpriority(which int, who int, prio int) (err error) {
926 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
927 if e1 != 0 {
928 err = errnoErr(e1)
929 }
930 return
931}
932
933// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
934
935func Setxattr(path string, attr string, data []byte, flags int) (err error) {
936 var _p0 *byte
937 _p0, err = BytePtrFromString(path)
938 if err != nil {
939 return
940 }
941 var _p1 *byte
942 _p1, err = BytePtrFromString(attr)
943 if err != nil {
944 return
945 }
946 var _p2 unsafe.Pointer
947 if len(data) > 0 {
948 _p2 = unsafe.Pointer(&data[0])
949 } else {
950 _p2 = unsafe.Pointer(&_zero)
951 }
952 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
953 use(unsafe.Pointer(_p0))
954 use(unsafe.Pointer(_p1))
955 if e1 != 0 {
956 err = errnoErr(e1)
957 }
958 return
959}
960
961// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
962
963func Sync() {
964 Syscall(SYS_SYNC, 0, 0, 0)
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func Sysinfo(info *Sysinfo_t) (err error) {
971 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
972 if e1 != 0 {
973 err = errnoErr(e1)
974 }
975 return
976}
977
978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
979
980func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
981 r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
982 n = int64(r0)
983 if e1 != 0 {
984 err = errnoErr(e1)
985 }
986 return
987}
988
989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
990
991func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
992 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
993 if e1 != 0 {
994 err = errnoErr(e1)
995 }
996 return
997}
998
999// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1000
1001func Times(tms *Tms) (ticks uintptr, err error) {
1002 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
1003 ticks = uintptr(r0)
1004 if e1 != 0 {
1005 err = errnoErr(e1)
1006 }
1007 return
1008}
1009
1010// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1011
1012func Umask(mask int) (oldmask int) {
1013 r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0)
1014 oldmask = int(r0)
1015 return
1016}
1017
1018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1019
1020func Uname(buf *Utsname) (err error) {
1021 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
1022 if e1 != 0 {
1023 err = errnoErr(e1)
1024 }
1025 return
1026}
1027
1028// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1029
1030func Unmount(target string, flags int) (err error) {
1031 var _p0 *byte
1032 _p0, err = BytePtrFromString(target)
1033 if err != nil {
1034 return
1035 }
1036 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1037 use(unsafe.Pointer(_p0))
1038 if e1 != 0 {
1039 err = errnoErr(e1)
1040 }
1041 return
1042}
1043
1044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1045
1046func Unshare(flags int) (err error) {
1047 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
1048 if e1 != 0 {
1049 err = errnoErr(e1)
1050 }
1051 return
1052}
1053
1054// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1055
1056func Ustat(dev int, ubuf *Ustat_t) (err error) {
1057 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1058 if e1 != 0 {
1059 err = errnoErr(e1)
1060 }
1061 return
1062}
1063
1064// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1065
1066func Utime(path string, buf *Utimbuf) (err error) {
1067 var _p0 *byte
1068 _p0, err = BytePtrFromString(path)
1069 if err != nil {
1070 return
1071 }
1072 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1073 use(unsafe.Pointer(_p0))
1074 if e1 != 0 {
1075 err = errnoErr(e1)
1076 }
1077 return
1078}
1079
1080// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1081
1082func write(fd int, p []byte) (n int, err error) {
1083 var _p0 unsafe.Pointer
1084 if len(p) > 0 {
1085 _p0 = unsafe.Pointer(&p[0])
1086 } else {
1087 _p0 = unsafe.Pointer(&_zero)
1088 }
1089 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1090 n = int(r0)
1091 if e1 != 0 {
1092 err = errnoErr(e1)
1093 }
1094 return
1095}
1096
1097// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1098
1099func exitThread(code int) (err error) {
1100 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
1101 if e1 != 0 {
1102 err = errnoErr(e1)
1103 }
1104 return
1105}
1106
1107// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1108
1109func readlen(fd int, p *byte, np int) (n int, err error) {
1110 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1111 n = int(r0)
1112 if e1 != 0 {
1113 err = errnoErr(e1)
1114 }
1115 return
1116}
1117
1118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1119
1120func writelen(fd int, p *byte, np int) (n int, err error) {
1121 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1122 n = int(r0)
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func munmap(addr uintptr, length uintptr) (err error) {
1132 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Madvise(b []byte, advice int) (err error) {
1142 var _p0 unsafe.Pointer
1143 if len(b) > 0 {
1144 _p0 = unsafe.Pointer(&b[0])
1145 } else {
1146 _p0 = unsafe.Pointer(&_zero)
1147 }
1148 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
1149 if e1 != 0 {
1150 err = errnoErr(e1)
1151 }
1152 return
1153}
1154
1155// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1156
1157func Mprotect(b []byte, prot int) (err error) {
1158 var _p0 unsafe.Pointer
1159 if len(b) > 0 {
1160 _p0 = unsafe.Pointer(&b[0])
1161 } else {
1162 _p0 = unsafe.Pointer(&_zero)
1163 }
1164 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1165 if e1 != 0 {
1166 err = errnoErr(e1)
1167 }
1168 return
1169}
1170
1171// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1172
1173func Mlock(b []byte) (err error) {
1174 var _p0 unsafe.Pointer
1175 if len(b) > 0 {
1176 _p0 = unsafe.Pointer(&b[0])
1177 } else {
1178 _p0 = unsafe.Pointer(&_zero)
1179 }
1180 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1181 if e1 != 0 {
1182 err = errnoErr(e1)
1183 }
1184 return
1185}
1186
1187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1188
1189func Munlock(b []byte) (err error) {
1190 var _p0 unsafe.Pointer
1191 if len(b) > 0 {
1192 _p0 = unsafe.Pointer(&b[0])
1193 } else {
1194 _p0 = unsafe.Pointer(&_zero)
1195 }
1196 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1197 if e1 != 0 {
1198 err = errnoErr(e1)
1199 }
1200 return
1201}
1202
1203// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1204
1205func Mlockall(flags int) (err error) {
1206 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1207 if e1 != 0 {
1208 err = errnoErr(e1)
1209 }
1210 return
1211}
1212
1213// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1214
1215func Munlockall() (err error) {
1216 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1217 if e1 != 0 {
1218 err = errnoErr(e1)
1219 }
1220 return
1221}
1222
1223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1224
1225func Dup2(oldfd int, newfd int) (err error) {
1226 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1227 if e1 != 0 {
1228 err = errnoErr(e1)
1229 }
1230 return
1231}
1232
1233// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1234
1235func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1236 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
1237 if e1 != 0 {
1238 err = errnoErr(e1)
1239 }
1240 return
1241}
1242
1243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1244
1245func Fchown(fd int, uid int, gid int) (err error) {
1246 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1247 if e1 != 0 {
1248 err = errnoErr(e1)
1249 }
1250 return
1251}
1252
1253// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1254
1255func Fstat(fd int, stat *Stat_t) (err error) {
1256 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1257 if e1 != 0 {
1258 err = errnoErr(e1)
1259 }
1260 return
1261}
1262
1263// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1264
1265func Fstatfs(fd int, buf *Statfs_t) (err error) {
1266 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
1267 if e1 != 0 {
1268 err = errnoErr(e1)
1269 }
1270 return
1271}
1272
1273// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1274
1275func Ftruncate(fd int, length int64) (err error) {
1276 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
1277 if e1 != 0 {
1278 err = errnoErr(e1)
1279 }
1280 return
1281}
1282
1283// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1284
1285func Getegid() (egid int) {
1286 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
1287 egid = int(r0)
1288 return
1289}
1290
1291// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1292
1293func Geteuid() (euid int) {
1294 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
1295 euid = int(r0)
1296 return
1297}
1298
1299// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1300
1301func Getgid() (gid int) {
1302 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
1303 gid = int(r0)
1304 return
1305}
1306
1307// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1308
1309func Getrlimit(resource int, rlim *Rlimit) (err error) {
1310 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1311 if e1 != 0 {
1312 err = errnoErr(e1)
1313 }
1314 return
1315}
1316
1317// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1318
1319func Getuid() (uid int) {
1320 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
1321 uid = int(r0)
1322 return
1323}
1324
1325// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1326
1327func InotifyInit() (fd int, err error) {
1328 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
1329 fd = int(r0)
1330 if e1 != 0 {
1331 err = errnoErr(e1)
1332 }
1333 return
1334}
1335
1336// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1337
1338func Ioperm(from int, num int, on int) (err error) {
1339 _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
1340 if e1 != 0 {
1341 err = errnoErr(e1)
1342 }
1343 return
1344}
1345
1346// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1347
1348func Iopl(level int) (err error) {
1349 _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0)
1350 if e1 != 0 {
1351 err = errnoErr(e1)
1352 }
1353 return
1354}
1355
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357
1358func Lchown(path string, uid int, gid int) (err error) {
1359 var _p0 *byte
1360 _p0, err = BytePtrFromString(path)
1361 if err != nil {
1362 return
1363 }
1364 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
1365 use(unsafe.Pointer(_p0))
1366 if e1 != 0 {
1367 err = errnoErr(e1)
1368 }
1369 return
1370}
1371
1372// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1373
1374func Listen(s int, n int) (err error) {
1375 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
1376 if e1 != 0 {
1377 err = errnoErr(e1)
1378 }
1379 return
1380}
1381
1382// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1383
1384func Lstat(path string, stat *Stat_t) (err error) {
1385 var _p0 *byte
1386 _p0, err = BytePtrFromString(path)
1387 if err != nil {
1388 return
1389 }
1390 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1391 use(unsafe.Pointer(_p0))
1392 if e1 != 0 {
1393 err = errnoErr(e1)
1394 }
1395 return
1396}
1397
1398// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1399
1400func Pread(fd int, p []byte, offset int64) (n int, err error) {
1401 var _p0 unsafe.Pointer
1402 if len(p) > 0 {
1403 _p0 = unsafe.Pointer(&p[0])
1404 } else {
1405 _p0 = unsafe.Pointer(&_zero)
1406 }
1407 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1408 n = int(r0)
1409 if e1 != 0 {
1410 err = errnoErr(e1)
1411 }
1412 return
1413}
1414
1415// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1416
1417func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1418 var _p0 unsafe.Pointer
1419 if len(p) > 0 {
1420 _p0 = unsafe.Pointer(&p[0])
1421 } else {
1422 _p0 = unsafe.Pointer(&_zero)
1423 }
1424 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1425 n = int(r0)
1426 if e1 != 0 {
1427 err = errnoErr(e1)
1428 }
1429 return
1430}
1431
1432// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1433
1434func Seek(fd int, offset int64, whence int) (off int64, err error) {
1435 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1436 off = int64(r0)
1437 if e1 != 0 {
1438 err = errnoErr(e1)
1439 }
1440 return
1441}
1442
1443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1444
1445func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
1446 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1447 n = int(r0)
1448 if e1 != 0 {
1449 err = errnoErr(e1)
1450 }
1451 return
1452}
1453
1454// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1455
1456func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1457 r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1458 written = int(r0)
1459 if e1 != 0 {
1460 err = errnoErr(e1)
1461 }
1462 return
1463}
1464
1465// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1466
1467func Setfsgid(gid int) (err error) {
1468 _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
1469 if e1 != 0 {
1470 err = errnoErr(e1)
1471 }
1472 return
1473}
1474
1475// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1476
1477func Setfsuid(uid int) (err error) {
1478 _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
1479 if e1 != 0 {
1480 err = errnoErr(e1)
1481 }
1482 return
1483}
1484
1485// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1486
1487func Setregid(rgid int, egid int) (err error) {
1488 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1489 if e1 != 0 {
1490 err = errnoErr(e1)
1491 }
1492 return
1493}
1494
1495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1496
1497func Setresgid(rgid int, egid int, sgid int) (err error) {
1498 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1499 if e1 != 0 {
1500 err = errnoErr(e1)
1501 }
1502 return
1503}
1504
1505// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1506
1507func Setresuid(ruid int, euid int, suid int) (err error) {
1508 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1509 if e1 != 0 {
1510 err = errnoErr(e1)
1511 }
1512 return
1513}
1514
1515// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1516
1517func Setrlimit(resource int, rlim *Rlimit) (err error) {
1518 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1519 if e1 != 0 {
1520 err = errnoErr(e1)
1521 }
1522 return
1523}
1524
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526
1527func Setreuid(ruid int, euid int) (err error) {
1528 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1529 if e1 != 0 {
1530 err = errnoErr(e1)
1531 }
1532 return
1533}
1534
1535// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1536
1537func Shutdown(fd int, how int) (err error) {
1538 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
1539 if e1 != 0 {
1540 err = errnoErr(e1)
1541 }
1542 return
1543}
1544
1545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1546
1547func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
1548 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
1549 n = int64(r0)
1550 if e1 != 0 {
1551 err = errnoErr(e1)
1552 }
1553 return
1554}
1555
1556// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1557
1558func Stat(path string, stat *Stat_t) (err error) {
1559 var _p0 *byte
1560 _p0, err = BytePtrFromString(path)
1561 if err != nil {
1562 return
1563 }
1564 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1565 use(unsafe.Pointer(_p0))
1566 if e1 != 0 {
1567 err = errnoErr(e1)
1568 }
1569 return
1570}
1571
1572// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1573
1574func Statfs(path string, buf *Statfs_t) (err error) {
1575 var _p0 *byte
1576 _p0, err = BytePtrFromString(path)
1577 if err != nil {
1578 return
1579 }
1580 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1581 use(unsafe.Pointer(_p0))
1582 if e1 != 0 {
1583 err = errnoErr(e1)
1584 }
1585 return
1586}
1587
1588// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1589
1590func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
1591 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0)
1592 if e1 != 0 {
1593 err = errnoErr(e1)
1594 }
1595 return
1596}
1597
1598// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1599
1600func Truncate(path string, length int64) (err error) {
1601 var _p0 *byte
1602 _p0, err = BytePtrFromString(path)
1603 if err != nil {
1604 return
1605 }
1606 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1607 use(unsafe.Pointer(_p0))
1608 if e1 != 0 {
1609 err = errnoErr(e1)
1610 }
1611 return
1612}
1613
1614// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1615
1616func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1617 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1618 fd = int(r0)
1619 if e1 != 0 {
1620 err = errnoErr(e1)
1621 }
1622 return
1623}
1624
1625// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1626
1627func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
1628 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1629 fd = int(r0)
1630 if e1 != 0 {
1631 err = errnoErr(e1)
1632 }
1633 return
1634}
1635
1636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1637
1638func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1639 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
1640 if e1 != 0 {
1641 err = errnoErr(e1)
1642 }
1643 return
1644}
1645
1646// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1647
1648func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1649 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
1650 if e1 != 0 {
1651 err = errnoErr(e1)
1652 }
1653 return
1654}
1655
1656// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1657
1658func getgroups(n int, list *_Gid_t) (nn int, err error) {
1659 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1660 nn = int(r0)
1661 if e1 != 0 {
1662 err = errnoErr(e1)
1663 }
1664 return
1665}
1666
1667// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1668
1669func setgroups(n int, list *_Gid_t) (err error) {
1670 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1671 if e1 != 0 {
1672 err = errnoErr(e1)
1673 }
1674 return
1675}
1676
1677// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1678
1679func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1680 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1681 if e1 != 0 {
1682 err = errnoErr(e1)
1683 }
1684 return
1685}
1686
1687// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1688
1689func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1690 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
1691 if e1 != 0 {
1692 err = errnoErr(e1)
1693 }
1694 return
1695}
1696
1697// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1698
1699func socket(domain int, typ int, proto int) (fd int, err error) {
1700 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
1701 fd = int(r0)
1702 if e1 != 0 {
1703 err = errnoErr(e1)
1704 }
1705 return
1706}
1707
1708// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1709
1710func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1711 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
1712 if e1 != 0 {
1713 err = errnoErr(e1)
1714 }
1715 return
1716}
1717
1718// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1719
1720func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1721 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1722 if e1 != 0 {
1723 err = errnoErr(e1)
1724 }
1725 return
1726}
1727
1728// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1729
1730func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1731 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1732 if e1 != 0 {
1733 err = errnoErr(e1)
1734 }
1735 return
1736}
1737
1738// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1739
1740func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1741 var _p0 unsafe.Pointer
1742 if len(p) > 0 {
1743 _p0 = unsafe.Pointer(&p[0])
1744 } else {
1745 _p0 = unsafe.Pointer(&_zero)
1746 }
1747 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
1748 n = int(r0)
1749 if e1 != 0 {
1750 err = errnoErr(e1)
1751 }
1752 return
1753}
1754
1755// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1756
1757func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1758 var _p0 unsafe.Pointer
1759 if len(buf) > 0 {
1760 _p0 = unsafe.Pointer(&buf[0])
1761 } else {
1762 _p0 = unsafe.Pointer(&_zero)
1763 }
1764 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
1765 if e1 != 0 {
1766 err = errnoErr(e1)
1767 }
1768 return
1769}
1770
1771// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1772
1773func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1774 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1775 n = int(r0)
1776 if e1 != 0 {
1777 err = errnoErr(e1)
1778 }
1779 return
1780}
1781
1782// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1783
1784func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1785 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1786 n = int(r0)
1787 if e1 != 0 {
1788 err = errnoErr(e1)
1789 }
1790 return
1791}
1792
1793// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1794
1795func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
1796 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
1797 xaddr = uintptr(r0)
1798 if e1 != 0 {
1799 err = errnoErr(e1)
1800 }
1801 return
1802}
1803
1804// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1805
1806func pipe(p *[2]_C_int) (err error) {
1807 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
1808 if e1 != 0 {
1809 err = errnoErr(e1)
1810 }
1811 return
1812}
1813
1814// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1815
1816func pipe2(p *[2]_C_int, flags int) (err error) {
1817 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
1818 if e1 != 0 {
1819 err = errnoErr(e1)
1820 }
1821 return
1822}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_arm.go
deleted file mode 100644
index dd66c97..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_arm.go
+++ /dev/null
@@ -1,1756 +0,0 @@
1// mksyscall.pl -l32 -arm syscall_linux.go syscall_linux_arm.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm,linux
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
18 var _p0 *byte
19 _p0, err = BytePtrFromString(oldpath)
20 if err != nil {
21 return
22 }
23 var _p1 *byte
24 _p1, err = BytePtrFromString(newpath)
25 if err != nil {
26 return
27 }
28 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
29 use(unsafe.Pointer(_p0))
30 use(unsafe.Pointer(_p1))
31 if e1 != 0 {
32 err = errnoErr(e1)
33 }
34 return
35}
36
37// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
38
39func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
40 var _p0 *byte
41 _p0, err = BytePtrFromString(path)
42 if err != nil {
43 return
44 }
45 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
46 use(unsafe.Pointer(_p0))
47 fd = int(r0)
48 if e1 != 0 {
49 err = errnoErr(e1)
50 }
51 return
52}
53
54// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
55
56func readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
57 var _p0 *byte
58 _p0, err = BytePtrFromString(path)
59 if err != nil {
60 return
61 }
62 var _p1 unsafe.Pointer
63 if len(buf) > 0 {
64 _p1 = unsafe.Pointer(&buf[0])
65 } else {
66 _p1 = unsafe.Pointer(&_zero)
67 }
68 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
69 use(unsafe.Pointer(_p0))
70 n = int(r0)
71 if e1 != 0 {
72 err = errnoErr(e1)
73 }
74 return
75}
76
77// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
78
79func symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
80 var _p0 *byte
81 _p0, err = BytePtrFromString(oldpath)
82 if err != nil {
83 return
84 }
85 var _p1 *byte
86 _p1, err = BytePtrFromString(newpath)
87 if err != nil {
88 return
89 }
90 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
91 use(unsafe.Pointer(_p0))
92 use(unsafe.Pointer(_p1))
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func unlinkat(dirfd int, path string, flags int) (err error) {
102 var _p0 *byte
103 _p0, err = BytePtrFromString(path)
104 if err != nil {
105 return
106 }
107 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
108 use(unsafe.Pointer(_p0))
109 if e1 != 0 {
110 err = errnoErr(e1)
111 }
112 return
113}
114
115// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
116
117func utimes(path string, times *[2]Timeval) (err error) {
118 var _p0 *byte
119 _p0, err = BytePtrFromString(path)
120 if err != nil {
121 return
122 }
123 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
124 use(unsafe.Pointer(_p0))
125 if e1 != 0 {
126 err = errnoErr(e1)
127 }
128 return
129}
130
131// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
132
133func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
134 var _p0 *byte
135 _p0, err = BytePtrFromString(path)
136 if err != nil {
137 return
138 }
139 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
140 use(unsafe.Pointer(_p0))
141 if e1 != 0 {
142 err = errnoErr(e1)
143 }
144 return
145}
146
147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
148
149func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
150 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
151 if e1 != 0 {
152 err = errnoErr(e1)
153 }
154 return
155}
156
157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
158
159func Getcwd(buf []byte) (n int, err error) {
160 var _p0 unsafe.Pointer
161 if len(buf) > 0 {
162 _p0 = unsafe.Pointer(&buf[0])
163 } else {
164 _p0 = unsafe.Pointer(&_zero)
165 }
166 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
167 n = int(r0)
168 if e1 != 0 {
169 err = errnoErr(e1)
170 }
171 return
172}
173
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175
176func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
177 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
178 wpid = int(r0)
179 if e1 != 0 {
180 err = errnoErr(e1)
181 }
182 return
183}
184
185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
186
187func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
188 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
189 if e1 != 0 {
190 err = errnoErr(e1)
191 }
192 return
193}
194
195// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
196
197func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
198 var _p0 *byte
199 _p0, err = BytePtrFromString(arg)
200 if err != nil {
201 return
202 }
203 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
204 use(unsafe.Pointer(_p0))
205 if e1 != 0 {
206 err = errnoErr(e1)
207 }
208 return
209}
210
211// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
212
213func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
214 var _p0 *byte
215 _p0, err = BytePtrFromString(source)
216 if err != nil {
217 return
218 }
219 var _p1 *byte
220 _p1, err = BytePtrFromString(target)
221 if err != nil {
222 return
223 }
224 var _p2 *byte
225 _p2, err = BytePtrFromString(fstype)
226 if err != nil {
227 return
228 }
229 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
230 use(unsafe.Pointer(_p0))
231 use(unsafe.Pointer(_p1))
232 use(unsafe.Pointer(_p2))
233 if e1 != 0 {
234 err = errnoErr(e1)
235 }
236 return
237}
238
239// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
240
241func Acct(path string) (err error) {
242 var _p0 *byte
243 _p0, err = BytePtrFromString(path)
244 if err != nil {
245 return
246 }
247 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
248 use(unsafe.Pointer(_p0))
249 if e1 != 0 {
250 err = errnoErr(e1)
251 }
252 return
253}
254
255// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
256
257func Adjtimex(buf *Timex) (state int, err error) {
258 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
259 state = int(r0)
260 if e1 != 0 {
261 err = errnoErr(e1)
262 }
263 return
264}
265
266// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
267
268func Chdir(path string) (err error) {
269 var _p0 *byte
270 _p0, err = BytePtrFromString(path)
271 if err != nil {
272 return
273 }
274 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
275 use(unsafe.Pointer(_p0))
276 if e1 != 0 {
277 err = errnoErr(e1)
278 }
279 return
280}
281
282// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
283
284func Chroot(path string) (err error) {
285 var _p0 *byte
286 _p0, err = BytePtrFromString(path)
287 if err != nil {
288 return
289 }
290 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
291 use(unsafe.Pointer(_p0))
292 if e1 != 0 {
293 err = errnoErr(e1)
294 }
295 return
296}
297
298// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
299
300func ClockGettime(clockid int32, time *Timespec) (err error) {
301 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
302 if e1 != 0 {
303 err = errnoErr(e1)
304 }
305 return
306}
307
308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
309
310func Close(fd int) (err error) {
311 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
312 if e1 != 0 {
313 err = errnoErr(e1)
314 }
315 return
316}
317
318// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
319
320func Dup(oldfd int) (fd int, err error) {
321 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
322 fd = int(r0)
323 if e1 != 0 {
324 err = errnoErr(e1)
325 }
326 return
327}
328
329// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
330
331func Dup3(oldfd int, newfd int, flags int) (err error) {
332 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
333 if e1 != 0 {
334 err = errnoErr(e1)
335 }
336 return
337}
338
339// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
340
341func EpollCreate(size int) (fd int, err error) {
342 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
343 fd = int(r0)
344 if e1 != 0 {
345 err = errnoErr(e1)
346 }
347 return
348}
349
350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
351
352func EpollCreate1(flag int) (fd int, err error) {
353 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
354 fd = int(r0)
355 if e1 != 0 {
356 err = errnoErr(e1)
357 }
358 return
359}
360
361// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
362
363func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
364 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
365 if e1 != 0 {
366 err = errnoErr(e1)
367 }
368 return
369}
370
371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372
373func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
374 var _p0 unsafe.Pointer
375 if len(events) > 0 {
376 _p0 = unsafe.Pointer(&events[0])
377 } else {
378 _p0 = unsafe.Pointer(&_zero)
379 }
380 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
381 n = int(r0)
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Exit(code int) {
391 Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0)
392 return
393}
394
395// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
396
397func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
398 var _p0 *byte
399 _p0, err = BytePtrFromString(path)
400 if err != nil {
401 return
402 }
403 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
404 use(unsafe.Pointer(_p0))
405 if e1 != 0 {
406 err = errnoErr(e1)
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
414 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func Fchdir(fd int) (err error) {
424 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
425 if e1 != 0 {
426 err = errnoErr(e1)
427 }
428 return
429}
430
431// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
432
433func Fchmod(fd int, mode uint32) (err error) {
434 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
444 var _p0 *byte
445 _p0, err = BytePtrFromString(path)
446 if err != nil {
447 return
448 }
449 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
450 use(unsafe.Pointer(_p0))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(path)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
466 use(unsafe.Pointer(_p0))
467 if e1 != 0 {
468 err = errnoErr(e1)
469 }
470 return
471}
472
473// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
474
475func fcntl(fd int, cmd int, arg int) (val int, err error) {
476 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
477 val = int(r0)
478 if e1 != 0 {
479 err = errnoErr(e1)
480 }
481 return
482}
483
484// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
485
486func Fdatasync(fd int) (err error) {
487 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
488 if e1 != 0 {
489 err = errnoErr(e1)
490 }
491 return
492}
493
494// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
495
496func Flock(fd int, how int) (err error) {
497 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
498 if e1 != 0 {
499 err = errnoErr(e1)
500 }
501 return
502}
503
504// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
505
506func Fsync(fd int) (err error) {
507 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
508 if e1 != 0 {
509 err = errnoErr(e1)
510 }
511 return
512}
513
514// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
515
516func Getdents(fd int, buf []byte) (n int, err error) {
517 var _p0 unsafe.Pointer
518 if len(buf) > 0 {
519 _p0 = unsafe.Pointer(&buf[0])
520 } else {
521 _p0 = unsafe.Pointer(&_zero)
522 }
523 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
524 n = int(r0)
525 if e1 != 0 {
526 err = errnoErr(e1)
527 }
528 return
529}
530
531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533func Getpgid(pid int) (pgid int, err error) {
534 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
535 pgid = int(r0)
536 if e1 != 0 {
537 err = errnoErr(e1)
538 }
539 return
540}
541
542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
543
544func Getpid() (pid int) {
545 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
546 pid = int(r0)
547 return
548}
549
550// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
551
552func Getppid() (ppid int) {
553 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
554 ppid = int(r0)
555 return
556}
557
558// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
559
560func Getpriority(which int, who int) (prio int, err error) {
561 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
562 prio = int(r0)
563 if e1 != 0 {
564 err = errnoErr(e1)
565 }
566 return
567}
568
569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
570
571func Getrusage(who int, rusage *Rusage) (err error) {
572 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
573 if e1 != 0 {
574 err = errnoErr(e1)
575 }
576 return
577}
578
579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
580
581func Gettid() (tid int) {
582 r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)
583 tid = int(r0)
584 return
585}
586
587// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
588
589func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
590 var _p0 *byte
591 _p0, err = BytePtrFromString(path)
592 if err != nil {
593 return
594 }
595 var _p1 *byte
596 _p1, err = BytePtrFromString(attr)
597 if err != nil {
598 return
599 }
600 var _p2 unsafe.Pointer
601 if len(dest) > 0 {
602 _p2 = unsafe.Pointer(&dest[0])
603 } else {
604 _p2 = unsafe.Pointer(&_zero)
605 }
606 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
607 use(unsafe.Pointer(_p0))
608 use(unsafe.Pointer(_p1))
609 sz = int(r0)
610 if e1 != 0 {
611 err = errnoErr(e1)
612 }
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
619 var _p0 *byte
620 _p0, err = BytePtrFromString(pathname)
621 if err != nil {
622 return
623 }
624 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
625 use(unsafe.Pointer(_p0))
626 watchdesc = int(r0)
627 if e1 != 0 {
628 err = errnoErr(e1)
629 }
630 return
631}
632
633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635func InotifyInit1(flags int) (fd int, err error) {
636 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
637 fd = int(r0)
638 if e1 != 0 {
639 err = errnoErr(e1)
640 }
641 return
642}
643
644// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
645
646func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
647 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
648 success = int(r0)
649 if e1 != 0 {
650 err = errnoErr(e1)
651 }
652 return
653}
654
655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
656
657func Kill(pid int, sig syscall.Signal) (err error) {
658 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
659 if e1 != 0 {
660 err = errnoErr(e1)
661 }
662 return
663}
664
665// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
666
667func Klogctl(typ int, buf []byte) (n int, err error) {
668 var _p0 unsafe.Pointer
669 if len(buf) > 0 {
670 _p0 = unsafe.Pointer(&buf[0])
671 } else {
672 _p0 = unsafe.Pointer(&_zero)
673 }
674 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
675 n = int(r0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Listxattr(path string, dest []byte) (sz int, err error) {
685 var _p0 *byte
686 _p0, err = BytePtrFromString(path)
687 if err != nil {
688 return
689 }
690 var _p1 unsafe.Pointer
691 if len(dest) > 0 {
692 _p1 = unsafe.Pointer(&dest[0])
693 } else {
694 _p1 = unsafe.Pointer(&_zero)
695 }
696 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
697 use(unsafe.Pointer(_p0))
698 sz = int(r0)
699 if e1 != 0 {
700 err = errnoErr(e1)
701 }
702 return
703}
704
705// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
706
707func Mkdirat(dirfd int, path string, mode uint32) (err error) {
708 var _p0 *byte
709 _p0, err = BytePtrFromString(path)
710 if err != nil {
711 return
712 }
713 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
714 use(unsafe.Pointer(_p0))
715 if e1 != 0 {
716 err = errnoErr(e1)
717 }
718 return
719}
720
721// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
722
723func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
724 var _p0 *byte
725 _p0, err = BytePtrFromString(path)
726 if err != nil {
727 return
728 }
729 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
730 use(unsafe.Pointer(_p0))
731 if e1 != 0 {
732 err = errnoErr(e1)
733 }
734 return
735}
736
737// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
738
739func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
740 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
741 if e1 != 0 {
742 err = errnoErr(e1)
743 }
744 return
745}
746
747// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
748
749func Pause() (err error) {
750 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
751 if e1 != 0 {
752 err = errnoErr(e1)
753 }
754 return
755}
756
757// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
758
759func PivotRoot(newroot string, putold string) (err error) {
760 var _p0 *byte
761 _p0, err = BytePtrFromString(newroot)
762 if err != nil {
763 return
764 }
765 var _p1 *byte
766 _p1, err = BytePtrFromString(putold)
767 if err != nil {
768 return
769 }
770 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
771 use(unsafe.Pointer(_p0))
772 use(unsafe.Pointer(_p1))
773 if e1 != 0 {
774 err = errnoErr(e1)
775 }
776 return
777}
778
779// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
780
781func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
782 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
783 if e1 != 0 {
784 err = errnoErr(e1)
785 }
786 return
787}
788
789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
790
791func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
792 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
793 if e1 != 0 {
794 err = errnoErr(e1)
795 }
796 return
797}
798
799// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800
801func read(fd int, p []byte) (n int, err error) {
802 var _p0 unsafe.Pointer
803 if len(p) > 0 {
804 _p0 = unsafe.Pointer(&p[0])
805 } else {
806 _p0 = unsafe.Pointer(&_zero)
807 }
808 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
809 n = int(r0)
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Removexattr(path string, attr string) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 var _p1 *byte
825 _p1, err = BytePtrFromString(attr)
826 if err != nil {
827 return
828 }
829 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
830 use(unsafe.Pointer(_p0))
831 use(unsafe.Pointer(_p1))
832 if e1 != 0 {
833 err = errnoErr(e1)
834 }
835 return
836}
837
838// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
839
840func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
841 var _p0 *byte
842 _p0, err = BytePtrFromString(oldpath)
843 if err != nil {
844 return
845 }
846 var _p1 *byte
847 _p1, err = BytePtrFromString(newpath)
848 if err != nil {
849 return
850 }
851 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
852 use(unsafe.Pointer(_p0))
853 use(unsafe.Pointer(_p1))
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Setdomainname(p []byte) (err error) {
863 var _p0 unsafe.Pointer
864 if len(p) > 0 {
865 _p0 = unsafe.Pointer(&p[0])
866 } else {
867 _p0 = unsafe.Pointer(&_zero)
868 }
869 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
870 if e1 != 0 {
871 err = errnoErr(e1)
872 }
873 return
874}
875
876// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
877
878func Sethostname(p []byte) (err error) {
879 var _p0 unsafe.Pointer
880 if len(p) > 0 {
881 _p0 = unsafe.Pointer(&p[0])
882 } else {
883 _p0 = unsafe.Pointer(&_zero)
884 }
885 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Setpgid(pid int, pgid int) (err error) {
895 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Setsid() (pid int, err error) {
905 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
906 pid = int(r0)
907 if e1 != 0 {
908 err = errnoErr(e1)
909 }
910 return
911}
912
913// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
914
915func Settimeofday(tv *Timeval) (err error) {
916 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
917 if e1 != 0 {
918 err = errnoErr(e1)
919 }
920 return
921}
922
923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
924
925func Setpriority(which int, who int, prio int) (err error) {
926 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
927 if e1 != 0 {
928 err = errnoErr(e1)
929 }
930 return
931}
932
933// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
934
935func Setxattr(path string, attr string, data []byte, flags int) (err error) {
936 var _p0 *byte
937 _p0, err = BytePtrFromString(path)
938 if err != nil {
939 return
940 }
941 var _p1 *byte
942 _p1, err = BytePtrFromString(attr)
943 if err != nil {
944 return
945 }
946 var _p2 unsafe.Pointer
947 if len(data) > 0 {
948 _p2 = unsafe.Pointer(&data[0])
949 } else {
950 _p2 = unsafe.Pointer(&_zero)
951 }
952 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
953 use(unsafe.Pointer(_p0))
954 use(unsafe.Pointer(_p1))
955 if e1 != 0 {
956 err = errnoErr(e1)
957 }
958 return
959}
960
961// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
962
963func Sync() {
964 Syscall(SYS_SYNC, 0, 0, 0)
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func Sysinfo(info *Sysinfo_t) (err error) {
971 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
972 if e1 != 0 {
973 err = errnoErr(e1)
974 }
975 return
976}
977
978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
979
980func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
981 r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
982 n = int64(int64(r1)<<32 | int64(r0))
983 if e1 != 0 {
984 err = errnoErr(e1)
985 }
986 return
987}
988
989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
990
991func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
992 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
993 if e1 != 0 {
994 err = errnoErr(e1)
995 }
996 return
997}
998
999// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1000
1001func Times(tms *Tms) (ticks uintptr, err error) {
1002 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
1003 ticks = uintptr(r0)
1004 if e1 != 0 {
1005 err = errnoErr(e1)
1006 }
1007 return
1008}
1009
1010// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1011
1012func Umask(mask int) (oldmask int) {
1013 r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0)
1014 oldmask = int(r0)
1015 return
1016}
1017
1018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1019
1020func Uname(buf *Utsname) (err error) {
1021 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
1022 if e1 != 0 {
1023 err = errnoErr(e1)
1024 }
1025 return
1026}
1027
1028// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1029
1030func Unmount(target string, flags int) (err error) {
1031 var _p0 *byte
1032 _p0, err = BytePtrFromString(target)
1033 if err != nil {
1034 return
1035 }
1036 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1037 use(unsafe.Pointer(_p0))
1038 if e1 != 0 {
1039 err = errnoErr(e1)
1040 }
1041 return
1042}
1043
1044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1045
1046func Unshare(flags int) (err error) {
1047 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
1048 if e1 != 0 {
1049 err = errnoErr(e1)
1050 }
1051 return
1052}
1053
1054// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1055
1056func Ustat(dev int, ubuf *Ustat_t) (err error) {
1057 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1058 if e1 != 0 {
1059 err = errnoErr(e1)
1060 }
1061 return
1062}
1063
1064// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1065
1066func Utime(path string, buf *Utimbuf) (err error) {
1067 var _p0 *byte
1068 _p0, err = BytePtrFromString(path)
1069 if err != nil {
1070 return
1071 }
1072 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1073 use(unsafe.Pointer(_p0))
1074 if e1 != 0 {
1075 err = errnoErr(e1)
1076 }
1077 return
1078}
1079
1080// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1081
1082func write(fd int, p []byte) (n int, err error) {
1083 var _p0 unsafe.Pointer
1084 if len(p) > 0 {
1085 _p0 = unsafe.Pointer(&p[0])
1086 } else {
1087 _p0 = unsafe.Pointer(&_zero)
1088 }
1089 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1090 n = int(r0)
1091 if e1 != 0 {
1092 err = errnoErr(e1)
1093 }
1094 return
1095}
1096
1097// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1098
1099func exitThread(code int) (err error) {
1100 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
1101 if e1 != 0 {
1102 err = errnoErr(e1)
1103 }
1104 return
1105}
1106
1107// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1108
1109func readlen(fd int, p *byte, np int) (n int, err error) {
1110 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1111 n = int(r0)
1112 if e1 != 0 {
1113 err = errnoErr(e1)
1114 }
1115 return
1116}
1117
1118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1119
1120func writelen(fd int, p *byte, np int) (n int, err error) {
1121 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1122 n = int(r0)
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func munmap(addr uintptr, length uintptr) (err error) {
1132 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Madvise(b []byte, advice int) (err error) {
1142 var _p0 unsafe.Pointer
1143 if len(b) > 0 {
1144 _p0 = unsafe.Pointer(&b[0])
1145 } else {
1146 _p0 = unsafe.Pointer(&_zero)
1147 }
1148 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
1149 if e1 != 0 {
1150 err = errnoErr(e1)
1151 }
1152 return
1153}
1154
1155// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1156
1157func Mprotect(b []byte, prot int) (err error) {
1158 var _p0 unsafe.Pointer
1159 if len(b) > 0 {
1160 _p0 = unsafe.Pointer(&b[0])
1161 } else {
1162 _p0 = unsafe.Pointer(&_zero)
1163 }
1164 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1165 if e1 != 0 {
1166 err = errnoErr(e1)
1167 }
1168 return
1169}
1170
1171// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1172
1173func Mlock(b []byte) (err error) {
1174 var _p0 unsafe.Pointer
1175 if len(b) > 0 {
1176 _p0 = unsafe.Pointer(&b[0])
1177 } else {
1178 _p0 = unsafe.Pointer(&_zero)
1179 }
1180 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1181 if e1 != 0 {
1182 err = errnoErr(e1)
1183 }
1184 return
1185}
1186
1187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1188
1189func Munlock(b []byte) (err error) {
1190 var _p0 unsafe.Pointer
1191 if len(b) > 0 {
1192 _p0 = unsafe.Pointer(&b[0])
1193 } else {
1194 _p0 = unsafe.Pointer(&_zero)
1195 }
1196 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1197 if e1 != 0 {
1198 err = errnoErr(e1)
1199 }
1200 return
1201}
1202
1203// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1204
1205func Mlockall(flags int) (err error) {
1206 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1207 if e1 != 0 {
1208 err = errnoErr(e1)
1209 }
1210 return
1211}
1212
1213// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1214
1215func Munlockall() (err error) {
1216 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1217 if e1 != 0 {
1218 err = errnoErr(e1)
1219 }
1220 return
1221}
1222
1223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1224
1225func pipe2(p *[2]_C_int, flags int) (err error) {
1226 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
1227 if e1 != 0 {
1228 err = errnoErr(e1)
1229 }
1230 return
1231}
1232
1233// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1234
1235func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1236 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1237 fd = int(r0)
1238 if e1 != 0 {
1239 err = errnoErr(e1)
1240 }
1241 return
1242}
1243
1244// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1245
1246func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
1247 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1248 fd = int(r0)
1249 if e1 != 0 {
1250 err = errnoErr(e1)
1251 }
1252 return
1253}
1254
1255// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1256
1257func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1258 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
1259 if e1 != 0 {
1260 err = errnoErr(e1)
1261 }
1262 return
1263}
1264
1265// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1266
1267func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1268 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
1269 if e1 != 0 {
1270 err = errnoErr(e1)
1271 }
1272 return
1273}
1274
1275// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1276
1277func getgroups(n int, list *_Gid_t) (nn int, err error) {
1278 r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1279 nn = int(r0)
1280 if e1 != 0 {
1281 err = errnoErr(e1)
1282 }
1283 return
1284}
1285
1286// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1287
1288func setgroups(n int, list *_Gid_t) (err error) {
1289 _, _, e1 := RawSyscall(SYS_SETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1290 if e1 != 0 {
1291 err = errnoErr(e1)
1292 }
1293 return
1294}
1295
1296// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1297
1298func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1299 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1300 if e1 != 0 {
1301 err = errnoErr(e1)
1302 }
1303 return
1304}
1305
1306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1307
1308func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1309 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
1310 if e1 != 0 {
1311 err = errnoErr(e1)
1312 }
1313 return
1314}
1315
1316// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1317
1318func socket(domain int, typ int, proto int) (fd int, err error) {
1319 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
1320 fd = int(r0)
1321 if e1 != 0 {
1322 err = errnoErr(e1)
1323 }
1324 return
1325}
1326
1327// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1328
1329func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1330 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1331 if e1 != 0 {
1332 err = errnoErr(e1)
1333 }
1334 return
1335}
1336
1337// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1338
1339func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1340 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1341 if e1 != 0 {
1342 err = errnoErr(e1)
1343 }
1344 return
1345}
1346
1347// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1348
1349func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1350 var _p0 unsafe.Pointer
1351 if len(p) > 0 {
1352 _p0 = unsafe.Pointer(&p[0])
1353 } else {
1354 _p0 = unsafe.Pointer(&_zero)
1355 }
1356 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
1357 n = int(r0)
1358 if e1 != 0 {
1359 err = errnoErr(e1)
1360 }
1361 return
1362}
1363
1364// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1365
1366func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1367 var _p0 unsafe.Pointer
1368 if len(buf) > 0 {
1369 _p0 = unsafe.Pointer(&buf[0])
1370 } else {
1371 _p0 = unsafe.Pointer(&_zero)
1372 }
1373 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
1374 if e1 != 0 {
1375 err = errnoErr(e1)
1376 }
1377 return
1378}
1379
1380// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1381
1382func socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) {
1383 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0)
1384 if e1 != 0 {
1385 err = errnoErr(e1)
1386 }
1387 return
1388}
1389
1390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1391
1392func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1393 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1394 n = int(r0)
1395 if e1 != 0 {
1396 err = errnoErr(e1)
1397 }
1398 return
1399}
1400
1401// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1402
1403func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1404 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1405 n = int(r0)
1406 if e1 != 0 {
1407 err = errnoErr(e1)
1408 }
1409 return
1410}
1411
1412// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1413
1414func Dup2(oldfd int, newfd int) (err error) {
1415 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1416 if e1 != 0 {
1417 err = errnoErr(e1)
1418 }
1419 return
1420}
1421
1422// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1423
1424func Fchown(fd int, uid int, gid int) (err error) {
1425 _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid))
1426 if e1 != 0 {
1427 err = errnoErr(e1)
1428 }
1429 return
1430}
1431
1432// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1433
1434func Fstat(fd int, stat *Stat_t) (err error) {
1435 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1436 if e1 != 0 {
1437 err = errnoErr(e1)
1438 }
1439 return
1440}
1441
1442// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1443
1444func Getegid() (egid int) {
1445 r0, _, _ := RawSyscall(SYS_GETEGID32, 0, 0, 0)
1446 egid = int(r0)
1447 return
1448}
1449
1450// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1451
1452func Geteuid() (euid int) {
1453 r0, _, _ := RawSyscall(SYS_GETEUID32, 0, 0, 0)
1454 euid = int(r0)
1455 return
1456}
1457
1458// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1459
1460func Getgid() (gid int) {
1461 r0, _, _ := RawSyscall(SYS_GETGID32, 0, 0, 0)
1462 gid = int(r0)
1463 return
1464}
1465
1466// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1467
1468func Getuid() (uid int) {
1469 r0, _, _ := RawSyscall(SYS_GETUID32, 0, 0, 0)
1470 uid = int(r0)
1471 return
1472}
1473
1474// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1475
1476func InotifyInit() (fd int, err error) {
1477 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
1478 fd = int(r0)
1479 if e1 != 0 {
1480 err = errnoErr(e1)
1481 }
1482 return
1483}
1484
1485// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1486
1487func Lchown(path string, uid int, gid int) (err error) {
1488 var _p0 *byte
1489 _p0, err = BytePtrFromString(path)
1490 if err != nil {
1491 return
1492 }
1493 _, _, e1 := Syscall(SYS_LCHOWN32, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
1494 use(unsafe.Pointer(_p0))
1495 if e1 != 0 {
1496 err = errnoErr(e1)
1497 }
1498 return
1499}
1500
1501// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1502
1503func Listen(s int, n int) (err error) {
1504 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
1505 if e1 != 0 {
1506 err = errnoErr(e1)
1507 }
1508 return
1509}
1510
1511// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1512
1513func Lstat(path string, stat *Stat_t) (err error) {
1514 var _p0 *byte
1515 _p0, err = BytePtrFromString(path)
1516 if err != nil {
1517 return
1518 }
1519 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1520 use(unsafe.Pointer(_p0))
1521 if e1 != 0 {
1522 err = errnoErr(e1)
1523 }
1524 return
1525}
1526
1527// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1528
1529func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1530 r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1531 written = int(r0)
1532 if e1 != 0 {
1533 err = errnoErr(e1)
1534 }
1535 return
1536}
1537
1538// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1539
1540func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
1541 r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1542 n = int(r0)
1543 if e1 != 0 {
1544 err = errnoErr(e1)
1545 }
1546 return
1547}
1548
1549// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1550
1551func Setfsgid(gid int) (err error) {
1552 _, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
1553 if e1 != 0 {
1554 err = errnoErr(e1)
1555 }
1556 return
1557}
1558
1559// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1560
1561func Setfsuid(uid int) (err error) {
1562 _, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0)
1563 if e1 != 0 {
1564 err = errnoErr(e1)
1565 }
1566 return
1567}
1568
1569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1570
1571func Setregid(rgid int, egid int) (err error) {
1572 _, _, e1 := RawSyscall(SYS_SETREGID32, uintptr(rgid), uintptr(egid), 0)
1573 if e1 != 0 {
1574 err = errnoErr(e1)
1575 }
1576 return
1577}
1578
1579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1580
1581func Setresgid(rgid int, egid int, sgid int) (err error) {
1582 _, _, e1 := RawSyscall(SYS_SETRESGID32, uintptr(rgid), uintptr(egid), uintptr(sgid))
1583 if e1 != 0 {
1584 err = errnoErr(e1)
1585 }
1586 return
1587}
1588
1589// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1590
1591func Setresuid(ruid int, euid int, suid int) (err error) {
1592 _, _, e1 := RawSyscall(SYS_SETRESUID32, uintptr(ruid), uintptr(euid), uintptr(suid))
1593 if e1 != 0 {
1594 err = errnoErr(e1)
1595 }
1596 return
1597}
1598
1599// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1600
1601func Setreuid(ruid int, euid int) (err error) {
1602 _, _, e1 := RawSyscall(SYS_SETREUID32, uintptr(ruid), uintptr(euid), 0)
1603 if e1 != 0 {
1604 err = errnoErr(e1)
1605 }
1606 return
1607}
1608
1609// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1610
1611func Shutdown(fd int, how int) (err error) {
1612 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
1613 if e1 != 0 {
1614 err = errnoErr(e1)
1615 }
1616 return
1617}
1618
1619// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1620
1621func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
1622 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
1623 n = int(r0)
1624 if e1 != 0 {
1625 err = errnoErr(e1)
1626 }
1627 return
1628}
1629
1630// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1631
1632func Stat(path string, stat *Stat_t) (err error) {
1633 var _p0 *byte
1634 _p0, err = BytePtrFromString(path)
1635 if err != nil {
1636 return
1637 }
1638 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1639 use(unsafe.Pointer(_p0))
1640 if e1 != 0 {
1641 err = errnoErr(e1)
1642 }
1643 return
1644}
1645
1646// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1647
1648func Gettimeofday(tv *Timeval) (err error) {
1649 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1650 if e1 != 0 {
1651 err = errnoErr(e1)
1652 }
1653 return
1654}
1655
1656// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1657
1658func Time(t *Time_t) (tt Time_t, err error) {
1659 r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
1660 tt = Time_t(r0)
1661 if e1 != 0 {
1662 err = errnoErr(e1)
1663 }
1664 return
1665}
1666
1667// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1668
1669func Pread(fd int, p []byte, offset int64) (n int, err error) {
1670 var _p0 unsafe.Pointer
1671 if len(p) > 0 {
1672 _p0 = unsafe.Pointer(&p[0])
1673 } else {
1674 _p0 = unsafe.Pointer(&_zero)
1675 }
1676 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
1677 n = int(r0)
1678 if e1 != 0 {
1679 err = errnoErr(e1)
1680 }
1681 return
1682}
1683
1684// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1685
1686func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1687 var _p0 unsafe.Pointer
1688 if len(p) > 0 {
1689 _p0 = unsafe.Pointer(&p[0])
1690 } else {
1691 _p0 = unsafe.Pointer(&_zero)
1692 }
1693 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
1694 n = int(r0)
1695 if e1 != 0 {
1696 err = errnoErr(e1)
1697 }
1698 return
1699}
1700
1701// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1702
1703func Truncate(path string, length int64) (err error) {
1704 var _p0 *byte
1705 _p0, err = BytePtrFromString(path)
1706 if err != nil {
1707 return
1708 }
1709 _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
1710 use(unsafe.Pointer(_p0))
1711 if e1 != 0 {
1712 err = errnoErr(e1)
1713 }
1714 return
1715}
1716
1717// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1718
1719func Ftruncate(fd int, length int64) (err error) {
1720 _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
1721 if e1 != 0 {
1722 err = errnoErr(e1)
1723 }
1724 return
1725}
1726
1727// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1728
1729func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
1730 r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
1731 xaddr = uintptr(r0)
1732 if e1 != 0 {
1733 err = errnoErr(e1)
1734 }
1735 return
1736}
1737
1738// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1739
1740func getrlimit(resource int, rlim *rlimit32) (err error) {
1741 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1742 if e1 != 0 {
1743 err = errnoErr(e1)
1744 }
1745 return
1746}
1747
1748// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1749
1750func setrlimit(resource int, rlim *rlimit32) (err error) {
1751 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1752 if e1 != 0 {
1753 err = errnoErr(e1)
1754 }
1755 return
1756}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_arm64.go
deleted file mode 100644
index d0a6ed8..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_arm64.go
+++ /dev/null
@@ -1,1750 +0,0 @@
1// mksyscall.pl syscall_linux.go syscall_linux_arm64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm64,linux
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
18 var _p0 *byte
19 _p0, err = BytePtrFromString(oldpath)
20 if err != nil {
21 return
22 }
23 var _p1 *byte
24 _p1, err = BytePtrFromString(newpath)
25 if err != nil {
26 return
27 }
28 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
29 use(unsafe.Pointer(_p0))
30 use(unsafe.Pointer(_p1))
31 if e1 != 0 {
32 err = errnoErr(e1)
33 }
34 return
35}
36
37// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
38
39func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
40 var _p0 *byte
41 _p0, err = BytePtrFromString(path)
42 if err != nil {
43 return
44 }
45 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
46 use(unsafe.Pointer(_p0))
47 fd = int(r0)
48 if e1 != 0 {
49 err = errnoErr(e1)
50 }
51 return
52}
53
54// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
55
56func readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
57 var _p0 *byte
58 _p0, err = BytePtrFromString(path)
59 if err != nil {
60 return
61 }
62 var _p1 unsafe.Pointer
63 if len(buf) > 0 {
64 _p1 = unsafe.Pointer(&buf[0])
65 } else {
66 _p1 = unsafe.Pointer(&_zero)
67 }
68 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
69 use(unsafe.Pointer(_p0))
70 n = int(r0)
71 if e1 != 0 {
72 err = errnoErr(e1)
73 }
74 return
75}
76
77// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
78
79func symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
80 var _p0 *byte
81 _p0, err = BytePtrFromString(oldpath)
82 if err != nil {
83 return
84 }
85 var _p1 *byte
86 _p1, err = BytePtrFromString(newpath)
87 if err != nil {
88 return
89 }
90 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
91 use(unsafe.Pointer(_p0))
92 use(unsafe.Pointer(_p1))
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func unlinkat(dirfd int, path string, flags int) (err error) {
102 var _p0 *byte
103 _p0, err = BytePtrFromString(path)
104 if err != nil {
105 return
106 }
107 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
108 use(unsafe.Pointer(_p0))
109 if e1 != 0 {
110 err = errnoErr(e1)
111 }
112 return
113}
114
115// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
116
117func utimes(path string, times *[2]Timeval) (err error) {
118 var _p0 *byte
119 _p0, err = BytePtrFromString(path)
120 if err != nil {
121 return
122 }
123 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
124 use(unsafe.Pointer(_p0))
125 if e1 != 0 {
126 err = errnoErr(e1)
127 }
128 return
129}
130
131// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
132
133func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
134 var _p0 *byte
135 _p0, err = BytePtrFromString(path)
136 if err != nil {
137 return
138 }
139 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
140 use(unsafe.Pointer(_p0))
141 if e1 != 0 {
142 err = errnoErr(e1)
143 }
144 return
145}
146
147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
148
149func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
150 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
151 if e1 != 0 {
152 err = errnoErr(e1)
153 }
154 return
155}
156
157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
158
159func Getcwd(buf []byte) (n int, err error) {
160 var _p0 unsafe.Pointer
161 if len(buf) > 0 {
162 _p0 = unsafe.Pointer(&buf[0])
163 } else {
164 _p0 = unsafe.Pointer(&_zero)
165 }
166 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
167 n = int(r0)
168 if e1 != 0 {
169 err = errnoErr(e1)
170 }
171 return
172}
173
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175
176func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
177 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
178 wpid = int(r0)
179 if e1 != 0 {
180 err = errnoErr(e1)
181 }
182 return
183}
184
185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
186
187func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
188 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
189 if e1 != 0 {
190 err = errnoErr(e1)
191 }
192 return
193}
194
195// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
196
197func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
198 var _p0 *byte
199 _p0, err = BytePtrFromString(arg)
200 if err != nil {
201 return
202 }
203 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
204 use(unsafe.Pointer(_p0))
205 if e1 != 0 {
206 err = errnoErr(e1)
207 }
208 return
209}
210
211// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
212
213func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
214 var _p0 *byte
215 _p0, err = BytePtrFromString(source)
216 if err != nil {
217 return
218 }
219 var _p1 *byte
220 _p1, err = BytePtrFromString(target)
221 if err != nil {
222 return
223 }
224 var _p2 *byte
225 _p2, err = BytePtrFromString(fstype)
226 if err != nil {
227 return
228 }
229 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
230 use(unsafe.Pointer(_p0))
231 use(unsafe.Pointer(_p1))
232 use(unsafe.Pointer(_p2))
233 if e1 != 0 {
234 err = errnoErr(e1)
235 }
236 return
237}
238
239// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
240
241func Acct(path string) (err error) {
242 var _p0 *byte
243 _p0, err = BytePtrFromString(path)
244 if err != nil {
245 return
246 }
247 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
248 use(unsafe.Pointer(_p0))
249 if e1 != 0 {
250 err = errnoErr(e1)
251 }
252 return
253}
254
255// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
256
257func Adjtimex(buf *Timex) (state int, err error) {
258 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
259 state = int(r0)
260 if e1 != 0 {
261 err = errnoErr(e1)
262 }
263 return
264}
265
266// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
267
268func Chdir(path string) (err error) {
269 var _p0 *byte
270 _p0, err = BytePtrFromString(path)
271 if err != nil {
272 return
273 }
274 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
275 use(unsafe.Pointer(_p0))
276 if e1 != 0 {
277 err = errnoErr(e1)
278 }
279 return
280}
281
282// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
283
284func Chroot(path string) (err error) {
285 var _p0 *byte
286 _p0, err = BytePtrFromString(path)
287 if err != nil {
288 return
289 }
290 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
291 use(unsafe.Pointer(_p0))
292 if e1 != 0 {
293 err = errnoErr(e1)
294 }
295 return
296}
297
298// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
299
300func ClockGettime(clockid int32, time *Timespec) (err error) {
301 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
302 if e1 != 0 {
303 err = errnoErr(e1)
304 }
305 return
306}
307
308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
309
310func Close(fd int) (err error) {
311 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
312 if e1 != 0 {
313 err = errnoErr(e1)
314 }
315 return
316}
317
318// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
319
320func Dup(oldfd int) (fd int, err error) {
321 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
322 fd = int(r0)
323 if e1 != 0 {
324 err = errnoErr(e1)
325 }
326 return
327}
328
329// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
330
331func Dup3(oldfd int, newfd int, flags int) (err error) {
332 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
333 if e1 != 0 {
334 err = errnoErr(e1)
335 }
336 return
337}
338
339// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
340
341func EpollCreate(size int) (fd int, err error) {
342 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
343 fd = int(r0)
344 if e1 != 0 {
345 err = errnoErr(e1)
346 }
347 return
348}
349
350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
351
352func EpollCreate1(flag int) (fd int, err error) {
353 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
354 fd = int(r0)
355 if e1 != 0 {
356 err = errnoErr(e1)
357 }
358 return
359}
360
361// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
362
363func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
364 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
365 if e1 != 0 {
366 err = errnoErr(e1)
367 }
368 return
369}
370
371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372
373func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
374 var _p0 unsafe.Pointer
375 if len(events) > 0 {
376 _p0 = unsafe.Pointer(&events[0])
377 } else {
378 _p0 = unsafe.Pointer(&_zero)
379 }
380 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
381 n = int(r0)
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Exit(code int) {
391 Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0)
392 return
393}
394
395// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
396
397func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
398 var _p0 *byte
399 _p0, err = BytePtrFromString(path)
400 if err != nil {
401 return
402 }
403 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
404 use(unsafe.Pointer(_p0))
405 if e1 != 0 {
406 err = errnoErr(e1)
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
414 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func Fchdir(fd int) (err error) {
424 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
425 if e1 != 0 {
426 err = errnoErr(e1)
427 }
428 return
429}
430
431// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
432
433func Fchmod(fd int, mode uint32) (err error) {
434 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
444 var _p0 *byte
445 _p0, err = BytePtrFromString(path)
446 if err != nil {
447 return
448 }
449 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
450 use(unsafe.Pointer(_p0))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(path)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
466 use(unsafe.Pointer(_p0))
467 if e1 != 0 {
468 err = errnoErr(e1)
469 }
470 return
471}
472
473// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
474
475func fcntl(fd int, cmd int, arg int) (val int, err error) {
476 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
477 val = int(r0)
478 if e1 != 0 {
479 err = errnoErr(e1)
480 }
481 return
482}
483
484// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
485
486func Fdatasync(fd int) (err error) {
487 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
488 if e1 != 0 {
489 err = errnoErr(e1)
490 }
491 return
492}
493
494// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
495
496func Flock(fd int, how int) (err error) {
497 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
498 if e1 != 0 {
499 err = errnoErr(e1)
500 }
501 return
502}
503
504// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
505
506func Fsync(fd int) (err error) {
507 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
508 if e1 != 0 {
509 err = errnoErr(e1)
510 }
511 return
512}
513
514// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
515
516func Getdents(fd int, buf []byte) (n int, err error) {
517 var _p0 unsafe.Pointer
518 if len(buf) > 0 {
519 _p0 = unsafe.Pointer(&buf[0])
520 } else {
521 _p0 = unsafe.Pointer(&_zero)
522 }
523 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
524 n = int(r0)
525 if e1 != 0 {
526 err = errnoErr(e1)
527 }
528 return
529}
530
531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533func Getpgid(pid int) (pgid int, err error) {
534 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
535 pgid = int(r0)
536 if e1 != 0 {
537 err = errnoErr(e1)
538 }
539 return
540}
541
542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
543
544func Getpid() (pid int) {
545 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
546 pid = int(r0)
547 return
548}
549
550// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
551
552func Getppid() (ppid int) {
553 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
554 ppid = int(r0)
555 return
556}
557
558// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
559
560func Getpriority(which int, who int) (prio int, err error) {
561 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
562 prio = int(r0)
563 if e1 != 0 {
564 err = errnoErr(e1)
565 }
566 return
567}
568
569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
570
571func Getrusage(who int, rusage *Rusage) (err error) {
572 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
573 if e1 != 0 {
574 err = errnoErr(e1)
575 }
576 return
577}
578
579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
580
581func Gettid() (tid int) {
582 r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)
583 tid = int(r0)
584 return
585}
586
587// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
588
589func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
590 var _p0 *byte
591 _p0, err = BytePtrFromString(path)
592 if err != nil {
593 return
594 }
595 var _p1 *byte
596 _p1, err = BytePtrFromString(attr)
597 if err != nil {
598 return
599 }
600 var _p2 unsafe.Pointer
601 if len(dest) > 0 {
602 _p2 = unsafe.Pointer(&dest[0])
603 } else {
604 _p2 = unsafe.Pointer(&_zero)
605 }
606 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
607 use(unsafe.Pointer(_p0))
608 use(unsafe.Pointer(_p1))
609 sz = int(r0)
610 if e1 != 0 {
611 err = errnoErr(e1)
612 }
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
619 var _p0 *byte
620 _p0, err = BytePtrFromString(pathname)
621 if err != nil {
622 return
623 }
624 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
625 use(unsafe.Pointer(_p0))
626 watchdesc = int(r0)
627 if e1 != 0 {
628 err = errnoErr(e1)
629 }
630 return
631}
632
633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635func InotifyInit1(flags int) (fd int, err error) {
636 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
637 fd = int(r0)
638 if e1 != 0 {
639 err = errnoErr(e1)
640 }
641 return
642}
643
644// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
645
646func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
647 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
648 success = int(r0)
649 if e1 != 0 {
650 err = errnoErr(e1)
651 }
652 return
653}
654
655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
656
657func Kill(pid int, sig syscall.Signal) (err error) {
658 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
659 if e1 != 0 {
660 err = errnoErr(e1)
661 }
662 return
663}
664
665// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
666
667func Klogctl(typ int, buf []byte) (n int, err error) {
668 var _p0 unsafe.Pointer
669 if len(buf) > 0 {
670 _p0 = unsafe.Pointer(&buf[0])
671 } else {
672 _p0 = unsafe.Pointer(&_zero)
673 }
674 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
675 n = int(r0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Listxattr(path string, dest []byte) (sz int, err error) {
685 var _p0 *byte
686 _p0, err = BytePtrFromString(path)
687 if err != nil {
688 return
689 }
690 var _p1 unsafe.Pointer
691 if len(dest) > 0 {
692 _p1 = unsafe.Pointer(&dest[0])
693 } else {
694 _p1 = unsafe.Pointer(&_zero)
695 }
696 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
697 use(unsafe.Pointer(_p0))
698 sz = int(r0)
699 if e1 != 0 {
700 err = errnoErr(e1)
701 }
702 return
703}
704
705// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
706
707func Mkdirat(dirfd int, path string, mode uint32) (err error) {
708 var _p0 *byte
709 _p0, err = BytePtrFromString(path)
710 if err != nil {
711 return
712 }
713 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
714 use(unsafe.Pointer(_p0))
715 if e1 != 0 {
716 err = errnoErr(e1)
717 }
718 return
719}
720
721// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
722
723func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
724 var _p0 *byte
725 _p0, err = BytePtrFromString(path)
726 if err != nil {
727 return
728 }
729 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
730 use(unsafe.Pointer(_p0))
731 if e1 != 0 {
732 err = errnoErr(e1)
733 }
734 return
735}
736
737// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
738
739func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
740 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
741 if e1 != 0 {
742 err = errnoErr(e1)
743 }
744 return
745}
746
747// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
748
749func Pause() (err error) {
750 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
751 if e1 != 0 {
752 err = errnoErr(e1)
753 }
754 return
755}
756
757// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
758
759func PivotRoot(newroot string, putold string) (err error) {
760 var _p0 *byte
761 _p0, err = BytePtrFromString(newroot)
762 if err != nil {
763 return
764 }
765 var _p1 *byte
766 _p1, err = BytePtrFromString(putold)
767 if err != nil {
768 return
769 }
770 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
771 use(unsafe.Pointer(_p0))
772 use(unsafe.Pointer(_p1))
773 if e1 != 0 {
774 err = errnoErr(e1)
775 }
776 return
777}
778
779// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
780
781func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
782 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
783 if e1 != 0 {
784 err = errnoErr(e1)
785 }
786 return
787}
788
789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
790
791func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
792 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
793 if e1 != 0 {
794 err = errnoErr(e1)
795 }
796 return
797}
798
799// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800
801func read(fd int, p []byte) (n int, err error) {
802 var _p0 unsafe.Pointer
803 if len(p) > 0 {
804 _p0 = unsafe.Pointer(&p[0])
805 } else {
806 _p0 = unsafe.Pointer(&_zero)
807 }
808 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
809 n = int(r0)
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Removexattr(path string, attr string) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 var _p1 *byte
825 _p1, err = BytePtrFromString(attr)
826 if err != nil {
827 return
828 }
829 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
830 use(unsafe.Pointer(_p0))
831 use(unsafe.Pointer(_p1))
832 if e1 != 0 {
833 err = errnoErr(e1)
834 }
835 return
836}
837
838// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
839
840func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
841 var _p0 *byte
842 _p0, err = BytePtrFromString(oldpath)
843 if err != nil {
844 return
845 }
846 var _p1 *byte
847 _p1, err = BytePtrFromString(newpath)
848 if err != nil {
849 return
850 }
851 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
852 use(unsafe.Pointer(_p0))
853 use(unsafe.Pointer(_p1))
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Setdomainname(p []byte) (err error) {
863 var _p0 unsafe.Pointer
864 if len(p) > 0 {
865 _p0 = unsafe.Pointer(&p[0])
866 } else {
867 _p0 = unsafe.Pointer(&_zero)
868 }
869 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
870 if e1 != 0 {
871 err = errnoErr(e1)
872 }
873 return
874}
875
876// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
877
878func Sethostname(p []byte) (err error) {
879 var _p0 unsafe.Pointer
880 if len(p) > 0 {
881 _p0 = unsafe.Pointer(&p[0])
882 } else {
883 _p0 = unsafe.Pointer(&_zero)
884 }
885 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Setpgid(pid int, pgid int) (err error) {
895 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Setsid() (pid int, err error) {
905 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
906 pid = int(r0)
907 if e1 != 0 {
908 err = errnoErr(e1)
909 }
910 return
911}
912
913// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
914
915func Settimeofday(tv *Timeval) (err error) {
916 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
917 if e1 != 0 {
918 err = errnoErr(e1)
919 }
920 return
921}
922
923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
924
925func Setpriority(which int, who int, prio int) (err error) {
926 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
927 if e1 != 0 {
928 err = errnoErr(e1)
929 }
930 return
931}
932
933// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
934
935func Setxattr(path string, attr string, data []byte, flags int) (err error) {
936 var _p0 *byte
937 _p0, err = BytePtrFromString(path)
938 if err != nil {
939 return
940 }
941 var _p1 *byte
942 _p1, err = BytePtrFromString(attr)
943 if err != nil {
944 return
945 }
946 var _p2 unsafe.Pointer
947 if len(data) > 0 {
948 _p2 = unsafe.Pointer(&data[0])
949 } else {
950 _p2 = unsafe.Pointer(&_zero)
951 }
952 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
953 use(unsafe.Pointer(_p0))
954 use(unsafe.Pointer(_p1))
955 if e1 != 0 {
956 err = errnoErr(e1)
957 }
958 return
959}
960
961// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
962
963func Sync() {
964 Syscall(SYS_SYNC, 0, 0, 0)
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func Sysinfo(info *Sysinfo_t) (err error) {
971 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
972 if e1 != 0 {
973 err = errnoErr(e1)
974 }
975 return
976}
977
978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
979
980func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
981 r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
982 n = int64(r0)
983 if e1 != 0 {
984 err = errnoErr(e1)
985 }
986 return
987}
988
989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
990
991func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
992 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
993 if e1 != 0 {
994 err = errnoErr(e1)
995 }
996 return
997}
998
999// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1000
1001func Times(tms *Tms) (ticks uintptr, err error) {
1002 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
1003 ticks = uintptr(r0)
1004 if e1 != 0 {
1005 err = errnoErr(e1)
1006 }
1007 return
1008}
1009
1010// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1011
1012func Umask(mask int) (oldmask int) {
1013 r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0)
1014 oldmask = int(r0)
1015 return
1016}
1017
1018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1019
1020func Uname(buf *Utsname) (err error) {
1021 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
1022 if e1 != 0 {
1023 err = errnoErr(e1)
1024 }
1025 return
1026}
1027
1028// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1029
1030func Unmount(target string, flags int) (err error) {
1031 var _p0 *byte
1032 _p0, err = BytePtrFromString(target)
1033 if err != nil {
1034 return
1035 }
1036 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1037 use(unsafe.Pointer(_p0))
1038 if e1 != 0 {
1039 err = errnoErr(e1)
1040 }
1041 return
1042}
1043
1044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1045
1046func Unshare(flags int) (err error) {
1047 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
1048 if e1 != 0 {
1049 err = errnoErr(e1)
1050 }
1051 return
1052}
1053
1054// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1055
1056func Ustat(dev int, ubuf *Ustat_t) (err error) {
1057 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1058 if e1 != 0 {
1059 err = errnoErr(e1)
1060 }
1061 return
1062}
1063
1064// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1065
1066func Utime(path string, buf *Utimbuf) (err error) {
1067 var _p0 *byte
1068 _p0, err = BytePtrFromString(path)
1069 if err != nil {
1070 return
1071 }
1072 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1073 use(unsafe.Pointer(_p0))
1074 if e1 != 0 {
1075 err = errnoErr(e1)
1076 }
1077 return
1078}
1079
1080// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1081
1082func write(fd int, p []byte) (n int, err error) {
1083 var _p0 unsafe.Pointer
1084 if len(p) > 0 {
1085 _p0 = unsafe.Pointer(&p[0])
1086 } else {
1087 _p0 = unsafe.Pointer(&_zero)
1088 }
1089 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1090 n = int(r0)
1091 if e1 != 0 {
1092 err = errnoErr(e1)
1093 }
1094 return
1095}
1096
1097// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1098
1099func exitThread(code int) (err error) {
1100 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
1101 if e1 != 0 {
1102 err = errnoErr(e1)
1103 }
1104 return
1105}
1106
1107// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1108
1109func readlen(fd int, p *byte, np int) (n int, err error) {
1110 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1111 n = int(r0)
1112 if e1 != 0 {
1113 err = errnoErr(e1)
1114 }
1115 return
1116}
1117
1118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1119
1120func writelen(fd int, p *byte, np int) (n int, err error) {
1121 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1122 n = int(r0)
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func munmap(addr uintptr, length uintptr) (err error) {
1132 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Madvise(b []byte, advice int) (err error) {
1142 var _p0 unsafe.Pointer
1143 if len(b) > 0 {
1144 _p0 = unsafe.Pointer(&b[0])
1145 } else {
1146 _p0 = unsafe.Pointer(&_zero)
1147 }
1148 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
1149 if e1 != 0 {
1150 err = errnoErr(e1)
1151 }
1152 return
1153}
1154
1155// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1156
1157func Mprotect(b []byte, prot int) (err error) {
1158 var _p0 unsafe.Pointer
1159 if len(b) > 0 {
1160 _p0 = unsafe.Pointer(&b[0])
1161 } else {
1162 _p0 = unsafe.Pointer(&_zero)
1163 }
1164 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1165 if e1 != 0 {
1166 err = errnoErr(e1)
1167 }
1168 return
1169}
1170
1171// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1172
1173func Mlock(b []byte) (err error) {
1174 var _p0 unsafe.Pointer
1175 if len(b) > 0 {
1176 _p0 = unsafe.Pointer(&b[0])
1177 } else {
1178 _p0 = unsafe.Pointer(&_zero)
1179 }
1180 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1181 if e1 != 0 {
1182 err = errnoErr(e1)
1183 }
1184 return
1185}
1186
1187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1188
1189func Munlock(b []byte) (err error) {
1190 var _p0 unsafe.Pointer
1191 if len(b) > 0 {
1192 _p0 = unsafe.Pointer(&b[0])
1193 } else {
1194 _p0 = unsafe.Pointer(&_zero)
1195 }
1196 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1197 if e1 != 0 {
1198 err = errnoErr(e1)
1199 }
1200 return
1201}
1202
1203// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1204
1205func Mlockall(flags int) (err error) {
1206 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1207 if e1 != 0 {
1208 err = errnoErr(e1)
1209 }
1210 return
1211}
1212
1213// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1214
1215func Munlockall() (err error) {
1216 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1217 if e1 != 0 {
1218 err = errnoErr(e1)
1219 }
1220 return
1221}
1222
1223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1224
1225func Fchown(fd int, uid int, gid int) (err error) {
1226 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1227 if e1 != 0 {
1228 err = errnoErr(e1)
1229 }
1230 return
1231}
1232
1233// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1234
1235func Fstat(fd int, stat *Stat_t) (err error) {
1236 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1237 if e1 != 0 {
1238 err = errnoErr(e1)
1239 }
1240 return
1241}
1242
1243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1244
1245func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
1246 var _p0 *byte
1247 _p0, err = BytePtrFromString(path)
1248 if err != nil {
1249 return
1250 }
1251 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
1252 use(unsafe.Pointer(_p0))
1253 if e1 != 0 {
1254 err = errnoErr(e1)
1255 }
1256 return
1257}
1258
1259// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1260
1261func Fstatfs(fd int, buf *Statfs_t) (err error) {
1262 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
1263 if e1 != 0 {
1264 err = errnoErr(e1)
1265 }
1266 return
1267}
1268
1269// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1270
1271func Ftruncate(fd int, length int64) (err error) {
1272 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
1273 if e1 != 0 {
1274 err = errnoErr(e1)
1275 }
1276 return
1277}
1278
1279// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1280
1281func Getegid() (egid int) {
1282 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
1283 egid = int(r0)
1284 return
1285}
1286
1287// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1288
1289func Geteuid() (euid int) {
1290 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
1291 euid = int(r0)
1292 return
1293}
1294
1295// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1296
1297func Getgid() (gid int) {
1298 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
1299 gid = int(r0)
1300 return
1301}
1302
1303// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1304
1305func Getrlimit(resource int, rlim *Rlimit) (err error) {
1306 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1307 if e1 != 0 {
1308 err = errnoErr(e1)
1309 }
1310 return
1311}
1312
1313// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1314
1315func Getuid() (uid int) {
1316 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
1317 uid = int(r0)
1318 return
1319}
1320
1321// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1322
1323func Listen(s int, n int) (err error) {
1324 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
1325 if e1 != 0 {
1326 err = errnoErr(e1)
1327 }
1328 return
1329}
1330
1331// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1332
1333func Pread(fd int, p []byte, offset int64) (n int, err error) {
1334 var _p0 unsafe.Pointer
1335 if len(p) > 0 {
1336 _p0 = unsafe.Pointer(&p[0])
1337 } else {
1338 _p0 = unsafe.Pointer(&_zero)
1339 }
1340 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1341 n = int(r0)
1342 if e1 != 0 {
1343 err = errnoErr(e1)
1344 }
1345 return
1346}
1347
1348// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1349
1350func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1351 var _p0 unsafe.Pointer
1352 if len(p) > 0 {
1353 _p0 = unsafe.Pointer(&p[0])
1354 } else {
1355 _p0 = unsafe.Pointer(&_zero)
1356 }
1357 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1358 n = int(r0)
1359 if e1 != 0 {
1360 err = errnoErr(e1)
1361 }
1362 return
1363}
1364
1365// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1366
1367func Seek(fd int, offset int64, whence int) (off int64, err error) {
1368 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1369 off = int64(r0)
1370 if e1 != 0 {
1371 err = errnoErr(e1)
1372 }
1373 return
1374}
1375
1376// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1377
1378func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
1379 r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1380 n = int(r0)
1381 if e1 != 0 {
1382 err = errnoErr(e1)
1383 }
1384 return
1385}
1386
1387// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1388
1389func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1390 r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1391 written = int(r0)
1392 if e1 != 0 {
1393 err = errnoErr(e1)
1394 }
1395 return
1396}
1397
1398// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1399
1400func Setfsgid(gid int) (err error) {
1401 _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
1402 if e1 != 0 {
1403 err = errnoErr(e1)
1404 }
1405 return
1406}
1407
1408// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1409
1410func Setfsuid(uid int) (err error) {
1411 _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
1412 if e1 != 0 {
1413 err = errnoErr(e1)
1414 }
1415 return
1416}
1417
1418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1419
1420func Setregid(rgid int, egid int) (err error) {
1421 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1422 if e1 != 0 {
1423 err = errnoErr(e1)
1424 }
1425 return
1426}
1427
1428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1429
1430func Setresgid(rgid int, egid int, sgid int) (err error) {
1431 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1432 if e1 != 0 {
1433 err = errnoErr(e1)
1434 }
1435 return
1436}
1437
1438// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1439
1440func Setresuid(ruid int, euid int, suid int) (err error) {
1441 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1442 if e1 != 0 {
1443 err = errnoErr(e1)
1444 }
1445 return
1446}
1447
1448// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1449
1450func Setrlimit(resource int, rlim *Rlimit) (err error) {
1451 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1452 if e1 != 0 {
1453 err = errnoErr(e1)
1454 }
1455 return
1456}
1457
1458// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1459
1460func Setreuid(ruid int, euid int) (err error) {
1461 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1462 if e1 != 0 {
1463 err = errnoErr(e1)
1464 }
1465 return
1466}
1467
1468// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1469
1470func Shutdown(fd int, how int) (err error) {
1471 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
1472 if e1 != 0 {
1473 err = errnoErr(e1)
1474 }
1475 return
1476}
1477
1478// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1479
1480func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
1481 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
1482 n = int64(r0)
1483 if e1 != 0 {
1484 err = errnoErr(e1)
1485 }
1486 return
1487}
1488
1489// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1490
1491func Statfs(path string, buf *Statfs_t) (err error) {
1492 var _p0 *byte
1493 _p0, err = BytePtrFromString(path)
1494 if err != nil {
1495 return
1496 }
1497 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1498 use(unsafe.Pointer(_p0))
1499 if e1 != 0 {
1500 err = errnoErr(e1)
1501 }
1502 return
1503}
1504
1505// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1506
1507func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
1508 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0)
1509 if e1 != 0 {
1510 err = errnoErr(e1)
1511 }
1512 return
1513}
1514
1515// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1516
1517func Truncate(path string, length int64) (err error) {
1518 var _p0 *byte
1519 _p0, err = BytePtrFromString(path)
1520 if err != nil {
1521 return
1522 }
1523 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1524 use(unsafe.Pointer(_p0))
1525 if e1 != 0 {
1526 err = errnoErr(e1)
1527 }
1528 return
1529}
1530
1531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1532
1533func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1534 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1535 fd = int(r0)
1536 if e1 != 0 {
1537 err = errnoErr(e1)
1538 }
1539 return
1540}
1541
1542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1543
1544func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
1545 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1546 fd = int(r0)
1547 if e1 != 0 {
1548 err = errnoErr(e1)
1549 }
1550 return
1551}
1552
1553// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1554
1555func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1556 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
1557 if e1 != 0 {
1558 err = errnoErr(e1)
1559 }
1560 return
1561}
1562
1563// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1564
1565func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1566 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
1567 if e1 != 0 {
1568 err = errnoErr(e1)
1569 }
1570 return
1571}
1572
1573// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1574
1575func getgroups(n int, list *_Gid_t) (nn int, err error) {
1576 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1577 nn = int(r0)
1578 if e1 != 0 {
1579 err = errnoErr(e1)
1580 }
1581 return
1582}
1583
1584// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1585
1586func setgroups(n int, list *_Gid_t) (err error) {
1587 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1588 if e1 != 0 {
1589 err = errnoErr(e1)
1590 }
1591 return
1592}
1593
1594// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1595
1596func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1597 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1598 if e1 != 0 {
1599 err = errnoErr(e1)
1600 }
1601 return
1602}
1603
1604// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1605
1606func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1607 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
1608 if e1 != 0 {
1609 err = errnoErr(e1)
1610 }
1611 return
1612}
1613
1614// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1615
1616func socket(domain int, typ int, proto int) (fd int, err error) {
1617 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
1618 fd = int(r0)
1619 if e1 != 0 {
1620 err = errnoErr(e1)
1621 }
1622 return
1623}
1624
1625// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1626
1627func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1628 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
1629 if e1 != 0 {
1630 err = errnoErr(e1)
1631 }
1632 return
1633}
1634
1635// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1636
1637func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1638 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1639 if e1 != 0 {
1640 err = errnoErr(e1)
1641 }
1642 return
1643}
1644
1645// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1646
1647func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1648 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1649 if e1 != 0 {
1650 err = errnoErr(e1)
1651 }
1652 return
1653}
1654
1655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1656
1657func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1658 var _p0 unsafe.Pointer
1659 if len(p) > 0 {
1660 _p0 = unsafe.Pointer(&p[0])
1661 } else {
1662 _p0 = unsafe.Pointer(&_zero)
1663 }
1664 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
1665 n = int(r0)
1666 if e1 != 0 {
1667 err = errnoErr(e1)
1668 }
1669 return
1670}
1671
1672// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1673
1674func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1675 var _p0 unsafe.Pointer
1676 if len(buf) > 0 {
1677 _p0 = unsafe.Pointer(&buf[0])
1678 } else {
1679 _p0 = unsafe.Pointer(&_zero)
1680 }
1681 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
1682 if e1 != 0 {
1683 err = errnoErr(e1)
1684 }
1685 return
1686}
1687
1688// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1689
1690func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1691 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1692 n = int(r0)
1693 if e1 != 0 {
1694 err = errnoErr(e1)
1695 }
1696 return
1697}
1698
1699// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1700
1701func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1702 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1703 n = int(r0)
1704 if e1 != 0 {
1705 err = errnoErr(e1)
1706 }
1707 return
1708}
1709
1710// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1711
1712func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
1713 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
1714 xaddr = uintptr(r0)
1715 if e1 != 0 {
1716 err = errnoErr(e1)
1717 }
1718 return
1719}
1720
1721// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1722
1723func Gettimeofday(tv *Timeval) (err error) {
1724 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1725 if e1 != 0 {
1726 err = errnoErr(e1)
1727 }
1728 return
1729}
1730
1731// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1732
1733func Time(t *Time_t) (tt Time_t, err error) {
1734 r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
1735 tt = Time_t(r0)
1736 if e1 != 0 {
1737 err = errnoErr(e1)
1738 }
1739 return
1740}
1741
1742// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1743
1744func pipe2(p *[2]_C_int, flags int) (err error) {
1745 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
1746 if e1 != 0 {
1747 err = errnoErr(e1)
1748 }
1749 return
1750}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
deleted file mode 100644
index f58a3ff..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
+++ /dev/null
@@ -1,1792 +0,0 @@
1// mksyscall.pl syscall_linux.go syscall_linux_ppc64x.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build ppc64,linux
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
18 var _p0 *byte
19 _p0, err = BytePtrFromString(oldpath)
20 if err != nil {
21 return
22 }
23 var _p1 *byte
24 _p1, err = BytePtrFromString(newpath)
25 if err != nil {
26 return
27 }
28 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
29 use(unsafe.Pointer(_p0))
30 use(unsafe.Pointer(_p1))
31 if e1 != 0 {
32 err = errnoErr(e1)
33 }
34 return
35}
36
37// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
38
39func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
40 var _p0 *byte
41 _p0, err = BytePtrFromString(path)
42 if err != nil {
43 return
44 }
45 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
46 use(unsafe.Pointer(_p0))
47 fd = int(r0)
48 if e1 != 0 {
49 err = errnoErr(e1)
50 }
51 return
52}
53
54// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
55
56func readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
57 var _p0 *byte
58 _p0, err = BytePtrFromString(path)
59 if err != nil {
60 return
61 }
62 var _p1 unsafe.Pointer
63 if len(buf) > 0 {
64 _p1 = unsafe.Pointer(&buf[0])
65 } else {
66 _p1 = unsafe.Pointer(&_zero)
67 }
68 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
69 use(unsafe.Pointer(_p0))
70 n = int(r0)
71 if e1 != 0 {
72 err = errnoErr(e1)
73 }
74 return
75}
76
77// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
78
79func symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
80 var _p0 *byte
81 _p0, err = BytePtrFromString(oldpath)
82 if err != nil {
83 return
84 }
85 var _p1 *byte
86 _p1, err = BytePtrFromString(newpath)
87 if err != nil {
88 return
89 }
90 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
91 use(unsafe.Pointer(_p0))
92 use(unsafe.Pointer(_p1))
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func unlinkat(dirfd int, path string, flags int) (err error) {
102 var _p0 *byte
103 _p0, err = BytePtrFromString(path)
104 if err != nil {
105 return
106 }
107 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
108 use(unsafe.Pointer(_p0))
109 if e1 != 0 {
110 err = errnoErr(e1)
111 }
112 return
113}
114
115// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
116
117func utimes(path string, times *[2]Timeval) (err error) {
118 var _p0 *byte
119 _p0, err = BytePtrFromString(path)
120 if err != nil {
121 return
122 }
123 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
124 use(unsafe.Pointer(_p0))
125 if e1 != 0 {
126 err = errnoErr(e1)
127 }
128 return
129}
130
131// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
132
133func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
134 var _p0 *byte
135 _p0, err = BytePtrFromString(path)
136 if err != nil {
137 return
138 }
139 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
140 use(unsafe.Pointer(_p0))
141 if e1 != 0 {
142 err = errnoErr(e1)
143 }
144 return
145}
146
147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
148
149func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
150 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
151 if e1 != 0 {
152 err = errnoErr(e1)
153 }
154 return
155}
156
157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
158
159func Getcwd(buf []byte) (n int, err error) {
160 var _p0 unsafe.Pointer
161 if len(buf) > 0 {
162 _p0 = unsafe.Pointer(&buf[0])
163 } else {
164 _p0 = unsafe.Pointer(&_zero)
165 }
166 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
167 n = int(r0)
168 if e1 != 0 {
169 err = errnoErr(e1)
170 }
171 return
172}
173
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175
176func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
177 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
178 wpid = int(r0)
179 if e1 != 0 {
180 err = errnoErr(e1)
181 }
182 return
183}
184
185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
186
187func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
188 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
189 if e1 != 0 {
190 err = errnoErr(e1)
191 }
192 return
193}
194
195// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
196
197func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
198 var _p0 *byte
199 _p0, err = BytePtrFromString(arg)
200 if err != nil {
201 return
202 }
203 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
204 use(unsafe.Pointer(_p0))
205 if e1 != 0 {
206 err = errnoErr(e1)
207 }
208 return
209}
210
211// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
212
213func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
214 var _p0 *byte
215 _p0, err = BytePtrFromString(source)
216 if err != nil {
217 return
218 }
219 var _p1 *byte
220 _p1, err = BytePtrFromString(target)
221 if err != nil {
222 return
223 }
224 var _p2 *byte
225 _p2, err = BytePtrFromString(fstype)
226 if err != nil {
227 return
228 }
229 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
230 use(unsafe.Pointer(_p0))
231 use(unsafe.Pointer(_p1))
232 use(unsafe.Pointer(_p2))
233 if e1 != 0 {
234 err = errnoErr(e1)
235 }
236 return
237}
238
239// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
240
241func Acct(path string) (err error) {
242 var _p0 *byte
243 _p0, err = BytePtrFromString(path)
244 if err != nil {
245 return
246 }
247 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
248 use(unsafe.Pointer(_p0))
249 if e1 != 0 {
250 err = errnoErr(e1)
251 }
252 return
253}
254
255// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
256
257func Adjtimex(buf *Timex) (state int, err error) {
258 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
259 state = int(r0)
260 if e1 != 0 {
261 err = errnoErr(e1)
262 }
263 return
264}
265
266// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
267
268func Chdir(path string) (err error) {
269 var _p0 *byte
270 _p0, err = BytePtrFromString(path)
271 if err != nil {
272 return
273 }
274 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
275 use(unsafe.Pointer(_p0))
276 if e1 != 0 {
277 err = errnoErr(e1)
278 }
279 return
280}
281
282// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
283
284func Chroot(path string) (err error) {
285 var _p0 *byte
286 _p0, err = BytePtrFromString(path)
287 if err != nil {
288 return
289 }
290 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
291 use(unsafe.Pointer(_p0))
292 if e1 != 0 {
293 err = errnoErr(e1)
294 }
295 return
296}
297
298// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
299
300func ClockGettime(clockid int32, time *Timespec) (err error) {
301 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
302 if e1 != 0 {
303 err = errnoErr(e1)
304 }
305 return
306}
307
308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
309
310func Close(fd int) (err error) {
311 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
312 if e1 != 0 {
313 err = errnoErr(e1)
314 }
315 return
316}
317
318// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
319
320func Dup(oldfd int) (fd int, err error) {
321 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
322 fd = int(r0)
323 if e1 != 0 {
324 err = errnoErr(e1)
325 }
326 return
327}
328
329// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
330
331func Dup3(oldfd int, newfd int, flags int) (err error) {
332 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
333 if e1 != 0 {
334 err = errnoErr(e1)
335 }
336 return
337}
338
339// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
340
341func EpollCreate(size int) (fd int, err error) {
342 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
343 fd = int(r0)
344 if e1 != 0 {
345 err = errnoErr(e1)
346 }
347 return
348}
349
350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
351
352func EpollCreate1(flag int) (fd int, err error) {
353 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
354 fd = int(r0)
355 if e1 != 0 {
356 err = errnoErr(e1)
357 }
358 return
359}
360
361// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
362
363func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
364 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
365 if e1 != 0 {
366 err = errnoErr(e1)
367 }
368 return
369}
370
371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372
373func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
374 var _p0 unsafe.Pointer
375 if len(events) > 0 {
376 _p0 = unsafe.Pointer(&events[0])
377 } else {
378 _p0 = unsafe.Pointer(&_zero)
379 }
380 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
381 n = int(r0)
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Exit(code int) {
391 Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0)
392 return
393}
394
395// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
396
397func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
398 var _p0 *byte
399 _p0, err = BytePtrFromString(path)
400 if err != nil {
401 return
402 }
403 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
404 use(unsafe.Pointer(_p0))
405 if e1 != 0 {
406 err = errnoErr(e1)
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
414 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func Fchdir(fd int) (err error) {
424 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
425 if e1 != 0 {
426 err = errnoErr(e1)
427 }
428 return
429}
430
431// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
432
433func Fchmod(fd int, mode uint32) (err error) {
434 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
444 var _p0 *byte
445 _p0, err = BytePtrFromString(path)
446 if err != nil {
447 return
448 }
449 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
450 use(unsafe.Pointer(_p0))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(path)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
466 use(unsafe.Pointer(_p0))
467 if e1 != 0 {
468 err = errnoErr(e1)
469 }
470 return
471}
472
473// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
474
475func fcntl(fd int, cmd int, arg int) (val int, err error) {
476 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
477 val = int(r0)
478 if e1 != 0 {
479 err = errnoErr(e1)
480 }
481 return
482}
483
484// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
485
486func Fdatasync(fd int) (err error) {
487 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
488 if e1 != 0 {
489 err = errnoErr(e1)
490 }
491 return
492}
493
494// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
495
496func Flock(fd int, how int) (err error) {
497 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
498 if e1 != 0 {
499 err = errnoErr(e1)
500 }
501 return
502}
503
504// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
505
506func Fsync(fd int) (err error) {
507 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
508 if e1 != 0 {
509 err = errnoErr(e1)
510 }
511 return
512}
513
514// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
515
516func Getdents(fd int, buf []byte) (n int, err error) {
517 var _p0 unsafe.Pointer
518 if len(buf) > 0 {
519 _p0 = unsafe.Pointer(&buf[0])
520 } else {
521 _p0 = unsafe.Pointer(&_zero)
522 }
523 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
524 n = int(r0)
525 if e1 != 0 {
526 err = errnoErr(e1)
527 }
528 return
529}
530
531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533func Getpgid(pid int) (pgid int, err error) {
534 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
535 pgid = int(r0)
536 if e1 != 0 {
537 err = errnoErr(e1)
538 }
539 return
540}
541
542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
543
544func Getpid() (pid int) {
545 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
546 pid = int(r0)
547 return
548}
549
550// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
551
552func Getppid() (ppid int) {
553 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
554 ppid = int(r0)
555 return
556}
557
558// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
559
560func Getpriority(which int, who int) (prio int, err error) {
561 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
562 prio = int(r0)
563 if e1 != 0 {
564 err = errnoErr(e1)
565 }
566 return
567}
568
569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
570
571func Getrusage(who int, rusage *Rusage) (err error) {
572 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
573 if e1 != 0 {
574 err = errnoErr(e1)
575 }
576 return
577}
578
579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
580
581func Gettid() (tid int) {
582 r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)
583 tid = int(r0)
584 return
585}
586
587// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
588
589func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
590 var _p0 *byte
591 _p0, err = BytePtrFromString(path)
592 if err != nil {
593 return
594 }
595 var _p1 *byte
596 _p1, err = BytePtrFromString(attr)
597 if err != nil {
598 return
599 }
600 var _p2 unsafe.Pointer
601 if len(dest) > 0 {
602 _p2 = unsafe.Pointer(&dest[0])
603 } else {
604 _p2 = unsafe.Pointer(&_zero)
605 }
606 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
607 use(unsafe.Pointer(_p0))
608 use(unsafe.Pointer(_p1))
609 sz = int(r0)
610 if e1 != 0 {
611 err = errnoErr(e1)
612 }
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
619 var _p0 *byte
620 _p0, err = BytePtrFromString(pathname)
621 if err != nil {
622 return
623 }
624 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
625 use(unsafe.Pointer(_p0))
626 watchdesc = int(r0)
627 if e1 != 0 {
628 err = errnoErr(e1)
629 }
630 return
631}
632
633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635func InotifyInit1(flags int) (fd int, err error) {
636 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
637 fd = int(r0)
638 if e1 != 0 {
639 err = errnoErr(e1)
640 }
641 return
642}
643
644// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
645
646func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
647 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
648 success = int(r0)
649 if e1 != 0 {
650 err = errnoErr(e1)
651 }
652 return
653}
654
655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
656
657func Kill(pid int, sig syscall.Signal) (err error) {
658 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
659 if e1 != 0 {
660 err = errnoErr(e1)
661 }
662 return
663}
664
665// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
666
667func Klogctl(typ int, buf []byte) (n int, err error) {
668 var _p0 unsafe.Pointer
669 if len(buf) > 0 {
670 _p0 = unsafe.Pointer(&buf[0])
671 } else {
672 _p0 = unsafe.Pointer(&_zero)
673 }
674 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
675 n = int(r0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Listxattr(path string, dest []byte) (sz int, err error) {
685 var _p0 *byte
686 _p0, err = BytePtrFromString(path)
687 if err != nil {
688 return
689 }
690 var _p1 unsafe.Pointer
691 if len(dest) > 0 {
692 _p1 = unsafe.Pointer(&dest[0])
693 } else {
694 _p1 = unsafe.Pointer(&_zero)
695 }
696 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
697 use(unsafe.Pointer(_p0))
698 sz = int(r0)
699 if e1 != 0 {
700 err = errnoErr(e1)
701 }
702 return
703}
704
705// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
706
707func Mkdirat(dirfd int, path string, mode uint32) (err error) {
708 var _p0 *byte
709 _p0, err = BytePtrFromString(path)
710 if err != nil {
711 return
712 }
713 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
714 use(unsafe.Pointer(_p0))
715 if e1 != 0 {
716 err = errnoErr(e1)
717 }
718 return
719}
720
721// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
722
723func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
724 var _p0 *byte
725 _p0, err = BytePtrFromString(path)
726 if err != nil {
727 return
728 }
729 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
730 use(unsafe.Pointer(_p0))
731 if e1 != 0 {
732 err = errnoErr(e1)
733 }
734 return
735}
736
737// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
738
739func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
740 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
741 if e1 != 0 {
742 err = errnoErr(e1)
743 }
744 return
745}
746
747// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
748
749func Pause() (err error) {
750 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
751 if e1 != 0 {
752 err = errnoErr(e1)
753 }
754 return
755}
756
757// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
758
759func PivotRoot(newroot string, putold string) (err error) {
760 var _p0 *byte
761 _p0, err = BytePtrFromString(newroot)
762 if err != nil {
763 return
764 }
765 var _p1 *byte
766 _p1, err = BytePtrFromString(putold)
767 if err != nil {
768 return
769 }
770 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
771 use(unsafe.Pointer(_p0))
772 use(unsafe.Pointer(_p1))
773 if e1 != 0 {
774 err = errnoErr(e1)
775 }
776 return
777}
778
779// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
780
781func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
782 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
783 if e1 != 0 {
784 err = errnoErr(e1)
785 }
786 return
787}
788
789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
790
791func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
792 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
793 if e1 != 0 {
794 err = errnoErr(e1)
795 }
796 return
797}
798
799// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800
801func read(fd int, p []byte) (n int, err error) {
802 var _p0 unsafe.Pointer
803 if len(p) > 0 {
804 _p0 = unsafe.Pointer(&p[0])
805 } else {
806 _p0 = unsafe.Pointer(&_zero)
807 }
808 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
809 n = int(r0)
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Removexattr(path string, attr string) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 var _p1 *byte
825 _p1, err = BytePtrFromString(attr)
826 if err != nil {
827 return
828 }
829 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
830 use(unsafe.Pointer(_p0))
831 use(unsafe.Pointer(_p1))
832 if e1 != 0 {
833 err = errnoErr(e1)
834 }
835 return
836}
837
838// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
839
840func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
841 var _p0 *byte
842 _p0, err = BytePtrFromString(oldpath)
843 if err != nil {
844 return
845 }
846 var _p1 *byte
847 _p1, err = BytePtrFromString(newpath)
848 if err != nil {
849 return
850 }
851 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
852 use(unsafe.Pointer(_p0))
853 use(unsafe.Pointer(_p1))
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Setdomainname(p []byte) (err error) {
863 var _p0 unsafe.Pointer
864 if len(p) > 0 {
865 _p0 = unsafe.Pointer(&p[0])
866 } else {
867 _p0 = unsafe.Pointer(&_zero)
868 }
869 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
870 if e1 != 0 {
871 err = errnoErr(e1)
872 }
873 return
874}
875
876// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
877
878func Sethostname(p []byte) (err error) {
879 var _p0 unsafe.Pointer
880 if len(p) > 0 {
881 _p0 = unsafe.Pointer(&p[0])
882 } else {
883 _p0 = unsafe.Pointer(&_zero)
884 }
885 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Setpgid(pid int, pgid int) (err error) {
895 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Setsid() (pid int, err error) {
905 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
906 pid = int(r0)
907 if e1 != 0 {
908 err = errnoErr(e1)
909 }
910 return
911}
912
913// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
914
915func Settimeofday(tv *Timeval) (err error) {
916 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
917 if e1 != 0 {
918 err = errnoErr(e1)
919 }
920 return
921}
922
923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
924
925func Setpriority(which int, who int, prio int) (err error) {
926 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
927 if e1 != 0 {
928 err = errnoErr(e1)
929 }
930 return
931}
932
933// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
934
935func Setxattr(path string, attr string, data []byte, flags int) (err error) {
936 var _p0 *byte
937 _p0, err = BytePtrFromString(path)
938 if err != nil {
939 return
940 }
941 var _p1 *byte
942 _p1, err = BytePtrFromString(attr)
943 if err != nil {
944 return
945 }
946 var _p2 unsafe.Pointer
947 if len(data) > 0 {
948 _p2 = unsafe.Pointer(&data[0])
949 } else {
950 _p2 = unsafe.Pointer(&_zero)
951 }
952 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
953 use(unsafe.Pointer(_p0))
954 use(unsafe.Pointer(_p1))
955 if e1 != 0 {
956 err = errnoErr(e1)
957 }
958 return
959}
960
961// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
962
963func Sync() {
964 Syscall(SYS_SYNC, 0, 0, 0)
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func Sysinfo(info *Sysinfo_t) (err error) {
971 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
972 if e1 != 0 {
973 err = errnoErr(e1)
974 }
975 return
976}
977
978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
979
980func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
981 r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
982 n = int64(r0)
983 if e1 != 0 {
984 err = errnoErr(e1)
985 }
986 return
987}
988
989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
990
991func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
992 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
993 if e1 != 0 {
994 err = errnoErr(e1)
995 }
996 return
997}
998
999// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1000
1001func Times(tms *Tms) (ticks uintptr, err error) {
1002 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
1003 ticks = uintptr(r0)
1004 if e1 != 0 {
1005 err = errnoErr(e1)
1006 }
1007 return
1008}
1009
1010// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1011
1012func Umask(mask int) (oldmask int) {
1013 r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0)
1014 oldmask = int(r0)
1015 return
1016}
1017
1018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1019
1020func Uname(buf *Utsname) (err error) {
1021 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
1022 if e1 != 0 {
1023 err = errnoErr(e1)
1024 }
1025 return
1026}
1027
1028// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1029
1030func Unmount(target string, flags int) (err error) {
1031 var _p0 *byte
1032 _p0, err = BytePtrFromString(target)
1033 if err != nil {
1034 return
1035 }
1036 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1037 use(unsafe.Pointer(_p0))
1038 if e1 != 0 {
1039 err = errnoErr(e1)
1040 }
1041 return
1042}
1043
1044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1045
1046func Unshare(flags int) (err error) {
1047 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
1048 if e1 != 0 {
1049 err = errnoErr(e1)
1050 }
1051 return
1052}
1053
1054// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1055
1056func Ustat(dev int, ubuf *Ustat_t) (err error) {
1057 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1058 if e1 != 0 {
1059 err = errnoErr(e1)
1060 }
1061 return
1062}
1063
1064// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1065
1066func Utime(path string, buf *Utimbuf) (err error) {
1067 var _p0 *byte
1068 _p0, err = BytePtrFromString(path)
1069 if err != nil {
1070 return
1071 }
1072 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1073 use(unsafe.Pointer(_p0))
1074 if e1 != 0 {
1075 err = errnoErr(e1)
1076 }
1077 return
1078}
1079
1080// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1081
1082func write(fd int, p []byte) (n int, err error) {
1083 var _p0 unsafe.Pointer
1084 if len(p) > 0 {
1085 _p0 = unsafe.Pointer(&p[0])
1086 } else {
1087 _p0 = unsafe.Pointer(&_zero)
1088 }
1089 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1090 n = int(r0)
1091 if e1 != 0 {
1092 err = errnoErr(e1)
1093 }
1094 return
1095}
1096
1097// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1098
1099func exitThread(code int) (err error) {
1100 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
1101 if e1 != 0 {
1102 err = errnoErr(e1)
1103 }
1104 return
1105}
1106
1107// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1108
1109func readlen(fd int, p *byte, np int) (n int, err error) {
1110 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1111 n = int(r0)
1112 if e1 != 0 {
1113 err = errnoErr(e1)
1114 }
1115 return
1116}
1117
1118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1119
1120func writelen(fd int, p *byte, np int) (n int, err error) {
1121 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1122 n = int(r0)
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func munmap(addr uintptr, length uintptr) (err error) {
1132 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Madvise(b []byte, advice int) (err error) {
1142 var _p0 unsafe.Pointer
1143 if len(b) > 0 {
1144 _p0 = unsafe.Pointer(&b[0])
1145 } else {
1146 _p0 = unsafe.Pointer(&_zero)
1147 }
1148 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
1149 if e1 != 0 {
1150 err = errnoErr(e1)
1151 }
1152 return
1153}
1154
1155// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1156
1157func Mprotect(b []byte, prot int) (err error) {
1158 var _p0 unsafe.Pointer
1159 if len(b) > 0 {
1160 _p0 = unsafe.Pointer(&b[0])
1161 } else {
1162 _p0 = unsafe.Pointer(&_zero)
1163 }
1164 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1165 if e1 != 0 {
1166 err = errnoErr(e1)
1167 }
1168 return
1169}
1170
1171// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1172
1173func Mlock(b []byte) (err error) {
1174 var _p0 unsafe.Pointer
1175 if len(b) > 0 {
1176 _p0 = unsafe.Pointer(&b[0])
1177 } else {
1178 _p0 = unsafe.Pointer(&_zero)
1179 }
1180 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1181 if e1 != 0 {
1182 err = errnoErr(e1)
1183 }
1184 return
1185}
1186
1187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1188
1189func Munlock(b []byte) (err error) {
1190 var _p0 unsafe.Pointer
1191 if len(b) > 0 {
1192 _p0 = unsafe.Pointer(&b[0])
1193 } else {
1194 _p0 = unsafe.Pointer(&_zero)
1195 }
1196 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1197 if e1 != 0 {
1198 err = errnoErr(e1)
1199 }
1200 return
1201}
1202
1203// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1204
1205func Mlockall(flags int) (err error) {
1206 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1207 if e1 != 0 {
1208 err = errnoErr(e1)
1209 }
1210 return
1211}
1212
1213// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1214
1215func Munlockall() (err error) {
1216 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1217 if e1 != 0 {
1218 err = errnoErr(e1)
1219 }
1220 return
1221}
1222
1223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1224
1225func Fchown(fd int, uid int, gid int) (err error) {
1226 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1227 if e1 != 0 {
1228 err = errnoErr(e1)
1229 }
1230 return
1231}
1232
1233// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1234
1235func Fstat(fd int, stat *Stat_t) (err error) {
1236 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1237 if e1 != 0 {
1238 err = errnoErr(e1)
1239 }
1240 return
1241}
1242
1243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1244
1245func Fstatfs(fd int, buf *Statfs_t) (err error) {
1246 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
1247 if e1 != 0 {
1248 err = errnoErr(e1)
1249 }
1250 return
1251}
1252
1253// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1254
1255func Ftruncate(fd int, length int64) (err error) {
1256 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
1257 if e1 != 0 {
1258 err = errnoErr(e1)
1259 }
1260 return
1261}
1262
1263// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1264
1265func Getegid() (egid int) {
1266 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
1267 egid = int(r0)
1268 return
1269}
1270
1271// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1272
1273func Geteuid() (euid int) {
1274 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
1275 euid = int(r0)
1276 return
1277}
1278
1279// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1280
1281func Getgid() (gid int) {
1282 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
1283 gid = int(r0)
1284 return
1285}
1286
1287// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1288
1289func Getrlimit(resource int, rlim *Rlimit) (err error) {
1290 _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1291 if e1 != 0 {
1292 err = errnoErr(e1)
1293 }
1294 return
1295}
1296
1297// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1298
1299func Getuid() (uid int) {
1300 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
1301 uid = int(r0)
1302 return
1303}
1304
1305// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1306
1307func Ioperm(from int, num int, on int) (err error) {
1308 _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
1309 if e1 != 0 {
1310 err = errnoErr(e1)
1311 }
1312 return
1313}
1314
1315// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1316
1317func Iopl(level int) (err error) {
1318 _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0)
1319 if e1 != 0 {
1320 err = errnoErr(e1)
1321 }
1322 return
1323}
1324
1325// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1326
1327func Lchown(path string, uid int, gid int) (err error) {
1328 var _p0 *byte
1329 _p0, err = BytePtrFromString(path)
1330 if err != nil {
1331 return
1332 }
1333 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
1334 use(unsafe.Pointer(_p0))
1335 if e1 != 0 {
1336 err = errnoErr(e1)
1337 }
1338 return
1339}
1340
1341// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1342
1343func Listen(s int, n int) (err error) {
1344 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
1345 if e1 != 0 {
1346 err = errnoErr(e1)
1347 }
1348 return
1349}
1350
1351// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1352
1353func Lstat(path string, stat *Stat_t) (err error) {
1354 var _p0 *byte
1355 _p0, err = BytePtrFromString(path)
1356 if err != nil {
1357 return
1358 }
1359 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1360 use(unsafe.Pointer(_p0))
1361 if e1 != 0 {
1362 err = errnoErr(e1)
1363 }
1364 return
1365}
1366
1367// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1368
1369func Pread(fd int, p []byte, offset int64) (n int, err error) {
1370 var _p0 unsafe.Pointer
1371 if len(p) > 0 {
1372 _p0 = unsafe.Pointer(&p[0])
1373 } else {
1374 _p0 = unsafe.Pointer(&_zero)
1375 }
1376 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1377 n = int(r0)
1378 if e1 != 0 {
1379 err = errnoErr(e1)
1380 }
1381 return
1382}
1383
1384// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1385
1386func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1387 var _p0 unsafe.Pointer
1388 if len(p) > 0 {
1389 _p0 = unsafe.Pointer(&p[0])
1390 } else {
1391 _p0 = unsafe.Pointer(&_zero)
1392 }
1393 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1394 n = int(r0)
1395 if e1 != 0 {
1396 err = errnoErr(e1)
1397 }
1398 return
1399}
1400
1401// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1402
1403func Seek(fd int, offset int64, whence int) (off int64, err error) {
1404 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1405 off = int64(r0)
1406 if e1 != 0 {
1407 err = errnoErr(e1)
1408 }
1409 return
1410}
1411
1412// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1413
1414func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
1415 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1416 n = int(r0)
1417 if e1 != 0 {
1418 err = errnoErr(e1)
1419 }
1420 return
1421}
1422
1423// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1424
1425func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1426 r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1427 written = int(r0)
1428 if e1 != 0 {
1429 err = errnoErr(e1)
1430 }
1431 return
1432}
1433
1434// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1435
1436func Setfsgid(gid int) (err error) {
1437 _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
1438 if e1 != 0 {
1439 err = errnoErr(e1)
1440 }
1441 return
1442}
1443
1444// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1445
1446func Setfsuid(uid int) (err error) {
1447 _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
1448 if e1 != 0 {
1449 err = errnoErr(e1)
1450 }
1451 return
1452}
1453
1454// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1455
1456func Setregid(rgid int, egid int) (err error) {
1457 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1458 if e1 != 0 {
1459 err = errnoErr(e1)
1460 }
1461 return
1462}
1463
1464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1465
1466func Setresgid(rgid int, egid int, sgid int) (err error) {
1467 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1468 if e1 != 0 {
1469 err = errnoErr(e1)
1470 }
1471 return
1472}
1473
1474// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1475
1476func Setresuid(ruid int, euid int, suid int) (err error) {
1477 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1478 if e1 != 0 {
1479 err = errnoErr(e1)
1480 }
1481 return
1482}
1483
1484// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1485
1486func Setrlimit(resource int, rlim *Rlimit) (err error) {
1487 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1488 if e1 != 0 {
1489 err = errnoErr(e1)
1490 }
1491 return
1492}
1493
1494// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1495
1496func Setreuid(ruid int, euid int) (err error) {
1497 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1498 if e1 != 0 {
1499 err = errnoErr(e1)
1500 }
1501 return
1502}
1503
1504// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1505
1506func Shutdown(fd int, how int) (err error) {
1507 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
1508 if e1 != 0 {
1509 err = errnoErr(e1)
1510 }
1511 return
1512}
1513
1514// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1515
1516func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
1517 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
1518 n = int64(r0)
1519 if e1 != 0 {
1520 err = errnoErr(e1)
1521 }
1522 return
1523}
1524
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526
1527func Stat(path string, stat *Stat_t) (err error) {
1528 var _p0 *byte
1529 _p0, err = BytePtrFromString(path)
1530 if err != nil {
1531 return
1532 }
1533 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1534 use(unsafe.Pointer(_p0))
1535 if e1 != 0 {
1536 err = errnoErr(e1)
1537 }
1538 return
1539}
1540
1541// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1542
1543func Statfs(path string, buf *Statfs_t) (err error) {
1544 var _p0 *byte
1545 _p0, err = BytePtrFromString(path)
1546 if err != nil {
1547 return
1548 }
1549 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1550 use(unsafe.Pointer(_p0))
1551 if e1 != 0 {
1552 err = errnoErr(e1)
1553 }
1554 return
1555}
1556
1557// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1558
1559func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
1560 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0)
1561 if e1 != 0 {
1562 err = errnoErr(e1)
1563 }
1564 return
1565}
1566
1567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1568
1569func Truncate(path string, length int64) (err error) {
1570 var _p0 *byte
1571 _p0, err = BytePtrFromString(path)
1572 if err != nil {
1573 return
1574 }
1575 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1576 use(unsafe.Pointer(_p0))
1577 if e1 != 0 {
1578 err = errnoErr(e1)
1579 }
1580 return
1581}
1582
1583// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1584
1585func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1586 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1587 fd = int(r0)
1588 if e1 != 0 {
1589 err = errnoErr(e1)
1590 }
1591 return
1592}
1593
1594// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1595
1596func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
1597 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1598 fd = int(r0)
1599 if e1 != 0 {
1600 err = errnoErr(e1)
1601 }
1602 return
1603}
1604
1605// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1606
1607func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1608 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
1609 if e1 != 0 {
1610 err = errnoErr(e1)
1611 }
1612 return
1613}
1614
1615// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1616
1617func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1618 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
1619 if e1 != 0 {
1620 err = errnoErr(e1)
1621 }
1622 return
1623}
1624
1625// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1626
1627func getgroups(n int, list *_Gid_t) (nn int, err error) {
1628 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1629 nn = int(r0)
1630 if e1 != 0 {
1631 err = errnoErr(e1)
1632 }
1633 return
1634}
1635
1636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1637
1638func setgroups(n int, list *_Gid_t) (err error) {
1639 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1640 if e1 != 0 {
1641 err = errnoErr(e1)
1642 }
1643 return
1644}
1645
1646// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1647
1648func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1649 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1650 if e1 != 0 {
1651 err = errnoErr(e1)
1652 }
1653 return
1654}
1655
1656// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1657
1658func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1659 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
1660 if e1 != 0 {
1661 err = errnoErr(e1)
1662 }
1663 return
1664}
1665
1666// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1667
1668func socket(domain int, typ int, proto int) (fd int, err error) {
1669 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
1670 fd = int(r0)
1671 if e1 != 0 {
1672 err = errnoErr(e1)
1673 }
1674 return
1675}
1676
1677// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1678
1679func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1680 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
1681 if e1 != 0 {
1682 err = errnoErr(e1)
1683 }
1684 return
1685}
1686
1687// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1688
1689func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1690 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1691 if e1 != 0 {
1692 err = errnoErr(e1)
1693 }
1694 return
1695}
1696
1697// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1698
1699func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1700 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1701 if e1 != 0 {
1702 err = errnoErr(e1)
1703 }
1704 return
1705}
1706
1707// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1708
1709func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1710 var _p0 unsafe.Pointer
1711 if len(p) > 0 {
1712 _p0 = unsafe.Pointer(&p[0])
1713 } else {
1714 _p0 = unsafe.Pointer(&_zero)
1715 }
1716 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
1717 n = int(r0)
1718 if e1 != 0 {
1719 err = errnoErr(e1)
1720 }
1721 return
1722}
1723
1724// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1725
1726func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1727 var _p0 unsafe.Pointer
1728 if len(buf) > 0 {
1729 _p0 = unsafe.Pointer(&buf[0])
1730 } else {
1731 _p0 = unsafe.Pointer(&_zero)
1732 }
1733 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
1734 if e1 != 0 {
1735 err = errnoErr(e1)
1736 }
1737 return
1738}
1739
1740// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1741
1742func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1743 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1744 n = int(r0)
1745 if e1 != 0 {
1746 err = errnoErr(e1)
1747 }
1748 return
1749}
1750
1751// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1752
1753func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1754 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1755 n = int(r0)
1756 if e1 != 0 {
1757 err = errnoErr(e1)
1758 }
1759 return
1760}
1761
1762// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1763
1764func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
1765 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
1766 xaddr = uintptr(r0)
1767 if e1 != 0 {
1768 err = errnoErr(e1)
1769 }
1770 return
1771}
1772
1773// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1774
1775func Gettimeofday(tv *Timeval) (err error) {
1776 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1777 if e1 != 0 {
1778 err = errnoErr(e1)
1779 }
1780 return
1781}
1782
1783// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1784
1785func Time(t *Time_t) (tt Time_t, err error) {
1786 r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
1787 tt = Time_t(r0)
1788 if e1 != 0 {
1789 err = errnoErr(e1)
1790 }
1791 return
1792}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
deleted file mode 100644
index 22fc7a4..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
+++ /dev/null
@@ -1,1792 +0,0 @@
1// mksyscall.pl syscall_linux.go syscall_linux_ppc64x.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build ppc64le,linux
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
18 var _p0 *byte
19 _p0, err = BytePtrFromString(oldpath)
20 if err != nil {
21 return
22 }
23 var _p1 *byte
24 _p1, err = BytePtrFromString(newpath)
25 if err != nil {
26 return
27 }
28 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
29 use(unsafe.Pointer(_p0))
30 use(unsafe.Pointer(_p1))
31 if e1 != 0 {
32 err = errnoErr(e1)
33 }
34 return
35}
36
37// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
38
39func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
40 var _p0 *byte
41 _p0, err = BytePtrFromString(path)
42 if err != nil {
43 return
44 }
45 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
46 use(unsafe.Pointer(_p0))
47 fd = int(r0)
48 if e1 != 0 {
49 err = errnoErr(e1)
50 }
51 return
52}
53
54// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
55
56func readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
57 var _p0 *byte
58 _p0, err = BytePtrFromString(path)
59 if err != nil {
60 return
61 }
62 var _p1 unsafe.Pointer
63 if len(buf) > 0 {
64 _p1 = unsafe.Pointer(&buf[0])
65 } else {
66 _p1 = unsafe.Pointer(&_zero)
67 }
68 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
69 use(unsafe.Pointer(_p0))
70 n = int(r0)
71 if e1 != 0 {
72 err = errnoErr(e1)
73 }
74 return
75}
76
77// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
78
79func symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
80 var _p0 *byte
81 _p0, err = BytePtrFromString(oldpath)
82 if err != nil {
83 return
84 }
85 var _p1 *byte
86 _p1, err = BytePtrFromString(newpath)
87 if err != nil {
88 return
89 }
90 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
91 use(unsafe.Pointer(_p0))
92 use(unsafe.Pointer(_p1))
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func unlinkat(dirfd int, path string, flags int) (err error) {
102 var _p0 *byte
103 _p0, err = BytePtrFromString(path)
104 if err != nil {
105 return
106 }
107 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
108 use(unsafe.Pointer(_p0))
109 if e1 != 0 {
110 err = errnoErr(e1)
111 }
112 return
113}
114
115// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
116
117func utimes(path string, times *[2]Timeval) (err error) {
118 var _p0 *byte
119 _p0, err = BytePtrFromString(path)
120 if err != nil {
121 return
122 }
123 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
124 use(unsafe.Pointer(_p0))
125 if e1 != 0 {
126 err = errnoErr(e1)
127 }
128 return
129}
130
131// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
132
133func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
134 var _p0 *byte
135 _p0, err = BytePtrFromString(path)
136 if err != nil {
137 return
138 }
139 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
140 use(unsafe.Pointer(_p0))
141 if e1 != 0 {
142 err = errnoErr(e1)
143 }
144 return
145}
146
147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
148
149func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
150 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
151 if e1 != 0 {
152 err = errnoErr(e1)
153 }
154 return
155}
156
157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
158
159func Getcwd(buf []byte) (n int, err error) {
160 var _p0 unsafe.Pointer
161 if len(buf) > 0 {
162 _p0 = unsafe.Pointer(&buf[0])
163 } else {
164 _p0 = unsafe.Pointer(&_zero)
165 }
166 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
167 n = int(r0)
168 if e1 != 0 {
169 err = errnoErr(e1)
170 }
171 return
172}
173
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175
176func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
177 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
178 wpid = int(r0)
179 if e1 != 0 {
180 err = errnoErr(e1)
181 }
182 return
183}
184
185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
186
187func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
188 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
189 if e1 != 0 {
190 err = errnoErr(e1)
191 }
192 return
193}
194
195// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
196
197func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
198 var _p0 *byte
199 _p0, err = BytePtrFromString(arg)
200 if err != nil {
201 return
202 }
203 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
204 use(unsafe.Pointer(_p0))
205 if e1 != 0 {
206 err = errnoErr(e1)
207 }
208 return
209}
210
211// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
212
213func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
214 var _p0 *byte
215 _p0, err = BytePtrFromString(source)
216 if err != nil {
217 return
218 }
219 var _p1 *byte
220 _p1, err = BytePtrFromString(target)
221 if err != nil {
222 return
223 }
224 var _p2 *byte
225 _p2, err = BytePtrFromString(fstype)
226 if err != nil {
227 return
228 }
229 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
230 use(unsafe.Pointer(_p0))
231 use(unsafe.Pointer(_p1))
232 use(unsafe.Pointer(_p2))
233 if e1 != 0 {
234 err = errnoErr(e1)
235 }
236 return
237}
238
239// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
240
241func Acct(path string) (err error) {
242 var _p0 *byte
243 _p0, err = BytePtrFromString(path)
244 if err != nil {
245 return
246 }
247 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
248 use(unsafe.Pointer(_p0))
249 if e1 != 0 {
250 err = errnoErr(e1)
251 }
252 return
253}
254
255// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
256
257func Adjtimex(buf *Timex) (state int, err error) {
258 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
259 state = int(r0)
260 if e1 != 0 {
261 err = errnoErr(e1)
262 }
263 return
264}
265
266// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
267
268func Chdir(path string) (err error) {
269 var _p0 *byte
270 _p0, err = BytePtrFromString(path)
271 if err != nil {
272 return
273 }
274 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
275 use(unsafe.Pointer(_p0))
276 if e1 != 0 {
277 err = errnoErr(e1)
278 }
279 return
280}
281
282// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
283
284func Chroot(path string) (err error) {
285 var _p0 *byte
286 _p0, err = BytePtrFromString(path)
287 if err != nil {
288 return
289 }
290 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
291 use(unsafe.Pointer(_p0))
292 if e1 != 0 {
293 err = errnoErr(e1)
294 }
295 return
296}
297
298// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
299
300func ClockGettime(clockid int32, time *Timespec) (err error) {
301 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
302 if e1 != 0 {
303 err = errnoErr(e1)
304 }
305 return
306}
307
308// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
309
310func Close(fd int) (err error) {
311 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
312 if e1 != 0 {
313 err = errnoErr(e1)
314 }
315 return
316}
317
318// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
319
320func Dup(oldfd int) (fd int, err error) {
321 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
322 fd = int(r0)
323 if e1 != 0 {
324 err = errnoErr(e1)
325 }
326 return
327}
328
329// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
330
331func Dup3(oldfd int, newfd int, flags int) (err error) {
332 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
333 if e1 != 0 {
334 err = errnoErr(e1)
335 }
336 return
337}
338
339// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
340
341func EpollCreate(size int) (fd int, err error) {
342 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
343 fd = int(r0)
344 if e1 != 0 {
345 err = errnoErr(e1)
346 }
347 return
348}
349
350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
351
352func EpollCreate1(flag int) (fd int, err error) {
353 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
354 fd = int(r0)
355 if e1 != 0 {
356 err = errnoErr(e1)
357 }
358 return
359}
360
361// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
362
363func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
364 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
365 if e1 != 0 {
366 err = errnoErr(e1)
367 }
368 return
369}
370
371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372
373func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
374 var _p0 unsafe.Pointer
375 if len(events) > 0 {
376 _p0 = unsafe.Pointer(&events[0])
377 } else {
378 _p0 = unsafe.Pointer(&_zero)
379 }
380 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
381 n = int(r0)
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Exit(code int) {
391 Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0)
392 return
393}
394
395// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
396
397func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
398 var _p0 *byte
399 _p0, err = BytePtrFromString(path)
400 if err != nil {
401 return
402 }
403 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
404 use(unsafe.Pointer(_p0))
405 if e1 != 0 {
406 err = errnoErr(e1)
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
414 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func Fchdir(fd int) (err error) {
424 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
425 if e1 != 0 {
426 err = errnoErr(e1)
427 }
428 return
429}
430
431// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
432
433func Fchmod(fd int, mode uint32) (err error) {
434 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
435 if e1 != 0 {
436 err = errnoErr(e1)
437 }
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
444 var _p0 *byte
445 _p0, err = BytePtrFromString(path)
446 if err != nil {
447 return
448 }
449 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
450 use(unsafe.Pointer(_p0))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(path)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
466 use(unsafe.Pointer(_p0))
467 if e1 != 0 {
468 err = errnoErr(e1)
469 }
470 return
471}
472
473// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
474
475func fcntl(fd int, cmd int, arg int) (val int, err error) {
476 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
477 val = int(r0)
478 if e1 != 0 {
479 err = errnoErr(e1)
480 }
481 return
482}
483
484// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
485
486func Fdatasync(fd int) (err error) {
487 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
488 if e1 != 0 {
489 err = errnoErr(e1)
490 }
491 return
492}
493
494// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
495
496func Flock(fd int, how int) (err error) {
497 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
498 if e1 != 0 {
499 err = errnoErr(e1)
500 }
501 return
502}
503
504// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
505
506func Fsync(fd int) (err error) {
507 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
508 if e1 != 0 {
509 err = errnoErr(e1)
510 }
511 return
512}
513
514// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
515
516func Getdents(fd int, buf []byte) (n int, err error) {
517 var _p0 unsafe.Pointer
518 if len(buf) > 0 {
519 _p0 = unsafe.Pointer(&buf[0])
520 } else {
521 _p0 = unsafe.Pointer(&_zero)
522 }
523 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
524 n = int(r0)
525 if e1 != 0 {
526 err = errnoErr(e1)
527 }
528 return
529}
530
531// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533func Getpgid(pid int) (pgid int, err error) {
534 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
535 pgid = int(r0)
536 if e1 != 0 {
537 err = errnoErr(e1)
538 }
539 return
540}
541
542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
543
544func Getpid() (pid int) {
545 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
546 pid = int(r0)
547 return
548}
549
550// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
551
552func Getppid() (ppid int) {
553 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
554 ppid = int(r0)
555 return
556}
557
558// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
559
560func Getpriority(which int, who int) (prio int, err error) {
561 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
562 prio = int(r0)
563 if e1 != 0 {
564 err = errnoErr(e1)
565 }
566 return
567}
568
569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
570
571func Getrusage(who int, rusage *Rusage) (err error) {
572 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
573 if e1 != 0 {
574 err = errnoErr(e1)
575 }
576 return
577}
578
579// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
580
581func Gettid() (tid int) {
582 r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)
583 tid = int(r0)
584 return
585}
586
587// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
588
589func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
590 var _p0 *byte
591 _p0, err = BytePtrFromString(path)
592 if err != nil {
593 return
594 }
595 var _p1 *byte
596 _p1, err = BytePtrFromString(attr)
597 if err != nil {
598 return
599 }
600 var _p2 unsafe.Pointer
601 if len(dest) > 0 {
602 _p2 = unsafe.Pointer(&dest[0])
603 } else {
604 _p2 = unsafe.Pointer(&_zero)
605 }
606 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
607 use(unsafe.Pointer(_p0))
608 use(unsafe.Pointer(_p1))
609 sz = int(r0)
610 if e1 != 0 {
611 err = errnoErr(e1)
612 }
613 return
614}
615
616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
617
618func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
619 var _p0 *byte
620 _p0, err = BytePtrFromString(pathname)
621 if err != nil {
622 return
623 }
624 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
625 use(unsafe.Pointer(_p0))
626 watchdesc = int(r0)
627 if e1 != 0 {
628 err = errnoErr(e1)
629 }
630 return
631}
632
633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635func InotifyInit1(flags int) (fd int, err error) {
636 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
637 fd = int(r0)
638 if e1 != 0 {
639 err = errnoErr(e1)
640 }
641 return
642}
643
644// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
645
646func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
647 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
648 success = int(r0)
649 if e1 != 0 {
650 err = errnoErr(e1)
651 }
652 return
653}
654
655// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
656
657func Kill(pid int, sig syscall.Signal) (err error) {
658 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
659 if e1 != 0 {
660 err = errnoErr(e1)
661 }
662 return
663}
664
665// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
666
667func Klogctl(typ int, buf []byte) (n int, err error) {
668 var _p0 unsafe.Pointer
669 if len(buf) > 0 {
670 _p0 = unsafe.Pointer(&buf[0])
671 } else {
672 _p0 = unsafe.Pointer(&_zero)
673 }
674 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
675 n = int(r0)
676 if e1 != 0 {
677 err = errnoErr(e1)
678 }
679 return
680}
681
682// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
683
684func Listxattr(path string, dest []byte) (sz int, err error) {
685 var _p0 *byte
686 _p0, err = BytePtrFromString(path)
687 if err != nil {
688 return
689 }
690 var _p1 unsafe.Pointer
691 if len(dest) > 0 {
692 _p1 = unsafe.Pointer(&dest[0])
693 } else {
694 _p1 = unsafe.Pointer(&_zero)
695 }
696 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
697 use(unsafe.Pointer(_p0))
698 sz = int(r0)
699 if e1 != 0 {
700 err = errnoErr(e1)
701 }
702 return
703}
704
705// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
706
707func Mkdirat(dirfd int, path string, mode uint32) (err error) {
708 var _p0 *byte
709 _p0, err = BytePtrFromString(path)
710 if err != nil {
711 return
712 }
713 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
714 use(unsafe.Pointer(_p0))
715 if e1 != 0 {
716 err = errnoErr(e1)
717 }
718 return
719}
720
721// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
722
723func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
724 var _p0 *byte
725 _p0, err = BytePtrFromString(path)
726 if err != nil {
727 return
728 }
729 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
730 use(unsafe.Pointer(_p0))
731 if e1 != 0 {
732 err = errnoErr(e1)
733 }
734 return
735}
736
737// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
738
739func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
740 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
741 if e1 != 0 {
742 err = errnoErr(e1)
743 }
744 return
745}
746
747// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
748
749func Pause() (err error) {
750 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
751 if e1 != 0 {
752 err = errnoErr(e1)
753 }
754 return
755}
756
757// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
758
759func PivotRoot(newroot string, putold string) (err error) {
760 var _p0 *byte
761 _p0, err = BytePtrFromString(newroot)
762 if err != nil {
763 return
764 }
765 var _p1 *byte
766 _p1, err = BytePtrFromString(putold)
767 if err != nil {
768 return
769 }
770 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
771 use(unsafe.Pointer(_p0))
772 use(unsafe.Pointer(_p1))
773 if e1 != 0 {
774 err = errnoErr(e1)
775 }
776 return
777}
778
779// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
780
781func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
782 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
783 if e1 != 0 {
784 err = errnoErr(e1)
785 }
786 return
787}
788
789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
790
791func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
792 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
793 if e1 != 0 {
794 err = errnoErr(e1)
795 }
796 return
797}
798
799// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800
801func read(fd int, p []byte) (n int, err error) {
802 var _p0 unsafe.Pointer
803 if len(p) > 0 {
804 _p0 = unsafe.Pointer(&p[0])
805 } else {
806 _p0 = unsafe.Pointer(&_zero)
807 }
808 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
809 n = int(r0)
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Removexattr(path string, attr string) (err error) {
819 var _p0 *byte
820 _p0, err = BytePtrFromString(path)
821 if err != nil {
822 return
823 }
824 var _p1 *byte
825 _p1, err = BytePtrFromString(attr)
826 if err != nil {
827 return
828 }
829 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
830 use(unsafe.Pointer(_p0))
831 use(unsafe.Pointer(_p1))
832 if e1 != 0 {
833 err = errnoErr(e1)
834 }
835 return
836}
837
838// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
839
840func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
841 var _p0 *byte
842 _p0, err = BytePtrFromString(oldpath)
843 if err != nil {
844 return
845 }
846 var _p1 *byte
847 _p1, err = BytePtrFromString(newpath)
848 if err != nil {
849 return
850 }
851 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
852 use(unsafe.Pointer(_p0))
853 use(unsafe.Pointer(_p1))
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Setdomainname(p []byte) (err error) {
863 var _p0 unsafe.Pointer
864 if len(p) > 0 {
865 _p0 = unsafe.Pointer(&p[0])
866 } else {
867 _p0 = unsafe.Pointer(&_zero)
868 }
869 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
870 if e1 != 0 {
871 err = errnoErr(e1)
872 }
873 return
874}
875
876// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
877
878func Sethostname(p []byte) (err error) {
879 var _p0 unsafe.Pointer
880 if len(p) > 0 {
881 _p0 = unsafe.Pointer(&p[0])
882 } else {
883 _p0 = unsafe.Pointer(&_zero)
884 }
885 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
886 if e1 != 0 {
887 err = errnoErr(e1)
888 }
889 return
890}
891
892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894func Setpgid(pid int, pgid int) (err error) {
895 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
896 if e1 != 0 {
897 err = errnoErr(e1)
898 }
899 return
900}
901
902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
903
904func Setsid() (pid int, err error) {
905 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
906 pid = int(r0)
907 if e1 != 0 {
908 err = errnoErr(e1)
909 }
910 return
911}
912
913// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
914
915func Settimeofday(tv *Timeval) (err error) {
916 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
917 if e1 != 0 {
918 err = errnoErr(e1)
919 }
920 return
921}
922
923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
924
925func Setpriority(which int, who int, prio int) (err error) {
926 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
927 if e1 != 0 {
928 err = errnoErr(e1)
929 }
930 return
931}
932
933// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
934
935func Setxattr(path string, attr string, data []byte, flags int) (err error) {
936 var _p0 *byte
937 _p0, err = BytePtrFromString(path)
938 if err != nil {
939 return
940 }
941 var _p1 *byte
942 _p1, err = BytePtrFromString(attr)
943 if err != nil {
944 return
945 }
946 var _p2 unsafe.Pointer
947 if len(data) > 0 {
948 _p2 = unsafe.Pointer(&data[0])
949 } else {
950 _p2 = unsafe.Pointer(&_zero)
951 }
952 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
953 use(unsafe.Pointer(_p0))
954 use(unsafe.Pointer(_p1))
955 if e1 != 0 {
956 err = errnoErr(e1)
957 }
958 return
959}
960
961// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
962
963func Sync() {
964 Syscall(SYS_SYNC, 0, 0, 0)
965 return
966}
967
968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
969
970func Sysinfo(info *Sysinfo_t) (err error) {
971 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
972 if e1 != 0 {
973 err = errnoErr(e1)
974 }
975 return
976}
977
978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
979
980func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
981 r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
982 n = int64(r0)
983 if e1 != 0 {
984 err = errnoErr(e1)
985 }
986 return
987}
988
989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
990
991func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
992 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
993 if e1 != 0 {
994 err = errnoErr(e1)
995 }
996 return
997}
998
999// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1000
1001func Times(tms *Tms) (ticks uintptr, err error) {
1002 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
1003 ticks = uintptr(r0)
1004 if e1 != 0 {
1005 err = errnoErr(e1)
1006 }
1007 return
1008}
1009
1010// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1011
1012func Umask(mask int) (oldmask int) {
1013 r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0)
1014 oldmask = int(r0)
1015 return
1016}
1017
1018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1019
1020func Uname(buf *Utsname) (err error) {
1021 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
1022 if e1 != 0 {
1023 err = errnoErr(e1)
1024 }
1025 return
1026}
1027
1028// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1029
1030func Unmount(target string, flags int) (err error) {
1031 var _p0 *byte
1032 _p0, err = BytePtrFromString(target)
1033 if err != nil {
1034 return
1035 }
1036 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1037 use(unsafe.Pointer(_p0))
1038 if e1 != 0 {
1039 err = errnoErr(e1)
1040 }
1041 return
1042}
1043
1044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1045
1046func Unshare(flags int) (err error) {
1047 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
1048 if e1 != 0 {
1049 err = errnoErr(e1)
1050 }
1051 return
1052}
1053
1054// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1055
1056func Ustat(dev int, ubuf *Ustat_t) (err error) {
1057 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1058 if e1 != 0 {
1059 err = errnoErr(e1)
1060 }
1061 return
1062}
1063
1064// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1065
1066func Utime(path string, buf *Utimbuf) (err error) {
1067 var _p0 *byte
1068 _p0, err = BytePtrFromString(path)
1069 if err != nil {
1070 return
1071 }
1072 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1073 use(unsafe.Pointer(_p0))
1074 if e1 != 0 {
1075 err = errnoErr(e1)
1076 }
1077 return
1078}
1079
1080// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1081
1082func write(fd int, p []byte) (n int, err error) {
1083 var _p0 unsafe.Pointer
1084 if len(p) > 0 {
1085 _p0 = unsafe.Pointer(&p[0])
1086 } else {
1087 _p0 = unsafe.Pointer(&_zero)
1088 }
1089 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1090 n = int(r0)
1091 if e1 != 0 {
1092 err = errnoErr(e1)
1093 }
1094 return
1095}
1096
1097// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1098
1099func exitThread(code int) (err error) {
1100 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
1101 if e1 != 0 {
1102 err = errnoErr(e1)
1103 }
1104 return
1105}
1106
1107// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1108
1109func readlen(fd int, p *byte, np int) (n int, err error) {
1110 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1111 n = int(r0)
1112 if e1 != 0 {
1113 err = errnoErr(e1)
1114 }
1115 return
1116}
1117
1118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1119
1120func writelen(fd int, p *byte, np int) (n int, err error) {
1121 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1122 n = int(r0)
1123 if e1 != 0 {
1124 err = errnoErr(e1)
1125 }
1126 return
1127}
1128
1129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131func munmap(addr uintptr, length uintptr) (err error) {
1132 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1133 if e1 != 0 {
1134 err = errnoErr(e1)
1135 }
1136 return
1137}
1138
1139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141func Madvise(b []byte, advice int) (err error) {
1142 var _p0 unsafe.Pointer
1143 if len(b) > 0 {
1144 _p0 = unsafe.Pointer(&b[0])
1145 } else {
1146 _p0 = unsafe.Pointer(&_zero)
1147 }
1148 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
1149 if e1 != 0 {
1150 err = errnoErr(e1)
1151 }
1152 return
1153}
1154
1155// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1156
1157func Mprotect(b []byte, prot int) (err error) {
1158 var _p0 unsafe.Pointer
1159 if len(b) > 0 {
1160 _p0 = unsafe.Pointer(&b[0])
1161 } else {
1162 _p0 = unsafe.Pointer(&_zero)
1163 }
1164 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1165 if e1 != 0 {
1166 err = errnoErr(e1)
1167 }
1168 return
1169}
1170
1171// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1172
1173func Mlock(b []byte) (err error) {
1174 var _p0 unsafe.Pointer
1175 if len(b) > 0 {
1176 _p0 = unsafe.Pointer(&b[0])
1177 } else {
1178 _p0 = unsafe.Pointer(&_zero)
1179 }
1180 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1181 if e1 != 0 {
1182 err = errnoErr(e1)
1183 }
1184 return
1185}
1186
1187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1188
1189func Munlock(b []byte) (err error) {
1190 var _p0 unsafe.Pointer
1191 if len(b) > 0 {
1192 _p0 = unsafe.Pointer(&b[0])
1193 } else {
1194 _p0 = unsafe.Pointer(&_zero)
1195 }
1196 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1197 if e1 != 0 {
1198 err = errnoErr(e1)
1199 }
1200 return
1201}
1202
1203// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1204
1205func Mlockall(flags int) (err error) {
1206 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1207 if e1 != 0 {
1208 err = errnoErr(e1)
1209 }
1210 return
1211}
1212
1213// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1214
1215func Munlockall() (err error) {
1216 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1217 if e1 != 0 {
1218 err = errnoErr(e1)
1219 }
1220 return
1221}
1222
1223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1224
1225func Fchown(fd int, uid int, gid int) (err error) {
1226 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1227 if e1 != 0 {
1228 err = errnoErr(e1)
1229 }
1230 return
1231}
1232
1233// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1234
1235func Fstat(fd int, stat *Stat_t) (err error) {
1236 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1237 if e1 != 0 {
1238 err = errnoErr(e1)
1239 }
1240 return
1241}
1242
1243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1244
1245func Fstatfs(fd int, buf *Statfs_t) (err error) {
1246 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
1247 if e1 != 0 {
1248 err = errnoErr(e1)
1249 }
1250 return
1251}
1252
1253// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1254
1255func Ftruncate(fd int, length int64) (err error) {
1256 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
1257 if e1 != 0 {
1258 err = errnoErr(e1)
1259 }
1260 return
1261}
1262
1263// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1264
1265func Getegid() (egid int) {
1266 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
1267 egid = int(r0)
1268 return
1269}
1270
1271// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1272
1273func Geteuid() (euid int) {
1274 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
1275 euid = int(r0)
1276 return
1277}
1278
1279// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1280
1281func Getgid() (gid int) {
1282 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
1283 gid = int(r0)
1284 return
1285}
1286
1287// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1288
1289func Getrlimit(resource int, rlim *Rlimit) (err error) {
1290 _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1291 if e1 != 0 {
1292 err = errnoErr(e1)
1293 }
1294 return
1295}
1296
1297// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1298
1299func Getuid() (uid int) {
1300 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
1301 uid = int(r0)
1302 return
1303}
1304
1305// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1306
1307func Ioperm(from int, num int, on int) (err error) {
1308 _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
1309 if e1 != 0 {
1310 err = errnoErr(e1)
1311 }
1312 return
1313}
1314
1315// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1316
1317func Iopl(level int) (err error) {
1318 _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0)
1319 if e1 != 0 {
1320 err = errnoErr(e1)
1321 }
1322 return
1323}
1324
1325// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1326
1327func Lchown(path string, uid int, gid int) (err error) {
1328 var _p0 *byte
1329 _p0, err = BytePtrFromString(path)
1330 if err != nil {
1331 return
1332 }
1333 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
1334 use(unsafe.Pointer(_p0))
1335 if e1 != 0 {
1336 err = errnoErr(e1)
1337 }
1338 return
1339}
1340
1341// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1342
1343func Listen(s int, n int) (err error) {
1344 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
1345 if e1 != 0 {
1346 err = errnoErr(e1)
1347 }
1348 return
1349}
1350
1351// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1352
1353func Lstat(path string, stat *Stat_t) (err error) {
1354 var _p0 *byte
1355 _p0, err = BytePtrFromString(path)
1356 if err != nil {
1357 return
1358 }
1359 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1360 use(unsafe.Pointer(_p0))
1361 if e1 != 0 {
1362 err = errnoErr(e1)
1363 }
1364 return
1365}
1366
1367// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1368
1369func Pread(fd int, p []byte, offset int64) (n int, err error) {
1370 var _p0 unsafe.Pointer
1371 if len(p) > 0 {
1372 _p0 = unsafe.Pointer(&p[0])
1373 } else {
1374 _p0 = unsafe.Pointer(&_zero)
1375 }
1376 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1377 n = int(r0)
1378 if e1 != 0 {
1379 err = errnoErr(e1)
1380 }
1381 return
1382}
1383
1384// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1385
1386func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1387 var _p0 unsafe.Pointer
1388 if len(p) > 0 {
1389 _p0 = unsafe.Pointer(&p[0])
1390 } else {
1391 _p0 = unsafe.Pointer(&_zero)
1392 }
1393 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1394 n = int(r0)
1395 if e1 != 0 {
1396 err = errnoErr(e1)
1397 }
1398 return
1399}
1400
1401// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1402
1403func Seek(fd int, offset int64, whence int) (off int64, err error) {
1404 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1405 off = int64(r0)
1406 if e1 != 0 {
1407 err = errnoErr(e1)
1408 }
1409 return
1410}
1411
1412// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1413
1414func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
1415 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1416 n = int(r0)
1417 if e1 != 0 {
1418 err = errnoErr(e1)
1419 }
1420 return
1421}
1422
1423// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1424
1425func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1426 r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1427 written = int(r0)
1428 if e1 != 0 {
1429 err = errnoErr(e1)
1430 }
1431 return
1432}
1433
1434// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1435
1436func Setfsgid(gid int) (err error) {
1437 _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
1438 if e1 != 0 {
1439 err = errnoErr(e1)
1440 }
1441 return
1442}
1443
1444// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1445
1446func Setfsuid(uid int) (err error) {
1447 _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
1448 if e1 != 0 {
1449 err = errnoErr(e1)
1450 }
1451 return
1452}
1453
1454// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1455
1456func Setregid(rgid int, egid int) (err error) {
1457 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1458 if e1 != 0 {
1459 err = errnoErr(e1)
1460 }
1461 return
1462}
1463
1464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1465
1466func Setresgid(rgid int, egid int, sgid int) (err error) {
1467 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1468 if e1 != 0 {
1469 err = errnoErr(e1)
1470 }
1471 return
1472}
1473
1474// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1475
1476func Setresuid(ruid int, euid int, suid int) (err error) {
1477 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1478 if e1 != 0 {
1479 err = errnoErr(e1)
1480 }
1481 return
1482}
1483
1484// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1485
1486func Setrlimit(resource int, rlim *Rlimit) (err error) {
1487 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1488 if e1 != 0 {
1489 err = errnoErr(e1)
1490 }
1491 return
1492}
1493
1494// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1495
1496func Setreuid(ruid int, euid int) (err error) {
1497 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1498 if e1 != 0 {
1499 err = errnoErr(e1)
1500 }
1501 return
1502}
1503
1504// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1505
1506func Shutdown(fd int, how int) (err error) {
1507 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
1508 if e1 != 0 {
1509 err = errnoErr(e1)
1510 }
1511 return
1512}
1513
1514// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1515
1516func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
1517 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
1518 n = int64(r0)
1519 if e1 != 0 {
1520 err = errnoErr(e1)
1521 }
1522 return
1523}
1524
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526
1527func Stat(path string, stat *Stat_t) (err error) {
1528 var _p0 *byte
1529 _p0, err = BytePtrFromString(path)
1530 if err != nil {
1531 return
1532 }
1533 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1534 use(unsafe.Pointer(_p0))
1535 if e1 != 0 {
1536 err = errnoErr(e1)
1537 }
1538 return
1539}
1540
1541// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1542
1543func Statfs(path string, buf *Statfs_t) (err error) {
1544 var _p0 *byte
1545 _p0, err = BytePtrFromString(path)
1546 if err != nil {
1547 return
1548 }
1549 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1550 use(unsafe.Pointer(_p0))
1551 if e1 != 0 {
1552 err = errnoErr(e1)
1553 }
1554 return
1555}
1556
1557// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1558
1559func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
1560 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0)
1561 if e1 != 0 {
1562 err = errnoErr(e1)
1563 }
1564 return
1565}
1566
1567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1568
1569func Truncate(path string, length int64) (err error) {
1570 var _p0 *byte
1571 _p0, err = BytePtrFromString(path)
1572 if err != nil {
1573 return
1574 }
1575 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1576 use(unsafe.Pointer(_p0))
1577 if e1 != 0 {
1578 err = errnoErr(e1)
1579 }
1580 return
1581}
1582
1583// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1584
1585func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1586 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1587 fd = int(r0)
1588 if e1 != 0 {
1589 err = errnoErr(e1)
1590 }
1591 return
1592}
1593
1594// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1595
1596func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
1597 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1598 fd = int(r0)
1599 if e1 != 0 {
1600 err = errnoErr(e1)
1601 }
1602 return
1603}
1604
1605// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1606
1607func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1608 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
1609 if e1 != 0 {
1610 err = errnoErr(e1)
1611 }
1612 return
1613}
1614
1615// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1616
1617func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1618 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
1619 if e1 != 0 {
1620 err = errnoErr(e1)
1621 }
1622 return
1623}
1624
1625// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1626
1627func getgroups(n int, list *_Gid_t) (nn int, err error) {
1628 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1629 nn = int(r0)
1630 if e1 != 0 {
1631 err = errnoErr(e1)
1632 }
1633 return
1634}
1635
1636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1637
1638func setgroups(n int, list *_Gid_t) (err error) {
1639 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1640 if e1 != 0 {
1641 err = errnoErr(e1)
1642 }
1643 return
1644}
1645
1646// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1647
1648func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1649 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1650 if e1 != 0 {
1651 err = errnoErr(e1)
1652 }
1653 return
1654}
1655
1656// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1657
1658func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1659 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
1660 if e1 != 0 {
1661 err = errnoErr(e1)
1662 }
1663 return
1664}
1665
1666// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1667
1668func socket(domain int, typ int, proto int) (fd int, err error) {
1669 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
1670 fd = int(r0)
1671 if e1 != 0 {
1672 err = errnoErr(e1)
1673 }
1674 return
1675}
1676
1677// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1678
1679func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1680 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
1681 if e1 != 0 {
1682 err = errnoErr(e1)
1683 }
1684 return
1685}
1686
1687// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1688
1689func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1690 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1691 if e1 != 0 {
1692 err = errnoErr(e1)
1693 }
1694 return
1695}
1696
1697// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1698
1699func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1700 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1701 if e1 != 0 {
1702 err = errnoErr(e1)
1703 }
1704 return
1705}
1706
1707// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1708
1709func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1710 var _p0 unsafe.Pointer
1711 if len(p) > 0 {
1712 _p0 = unsafe.Pointer(&p[0])
1713 } else {
1714 _p0 = unsafe.Pointer(&_zero)
1715 }
1716 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
1717 n = int(r0)
1718 if e1 != 0 {
1719 err = errnoErr(e1)
1720 }
1721 return
1722}
1723
1724// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1725
1726func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1727 var _p0 unsafe.Pointer
1728 if len(buf) > 0 {
1729 _p0 = unsafe.Pointer(&buf[0])
1730 } else {
1731 _p0 = unsafe.Pointer(&_zero)
1732 }
1733 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
1734 if e1 != 0 {
1735 err = errnoErr(e1)
1736 }
1737 return
1738}
1739
1740// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1741
1742func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1743 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1744 n = int(r0)
1745 if e1 != 0 {
1746 err = errnoErr(e1)
1747 }
1748 return
1749}
1750
1751// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1752
1753func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1754 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
1755 n = int(r0)
1756 if e1 != 0 {
1757 err = errnoErr(e1)
1758 }
1759 return
1760}
1761
1762// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1763
1764func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
1765 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
1766 xaddr = uintptr(r0)
1767 if e1 != 0 {
1768 err = errnoErr(e1)
1769 }
1770 return
1771}
1772
1773// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1774
1775func Gettimeofday(tv *Timeval) (err error) {
1776 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1777 if e1 != 0 {
1778 err = errnoErr(e1)
1779 }
1780 return
1781}
1782
1783// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1784
1785func Time(t *Time_t) (tt Time_t, err error) {
1786 r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
1787 tt = Time_t(r0)
1788 if e1 != 0 {
1789 err = errnoErr(e1)
1790 }
1791 return
1792}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_386.go
deleted file mode 100644
index 00ca1f9..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_386.go
+++ /dev/null
@@ -1,1326 +0,0 @@
1// mksyscall.pl -l32 -netbsd syscall_bsd.go syscall_netbsd.go syscall_netbsd_386.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,netbsd
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe() (fd1 int, fd2 int, err error) {
271 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
272 fd1 = int(r0)
273 fd2 = int(r1)
274 if e1 != 0 {
275 err = errnoErr(e1)
276 }
277 return
278}
279
280// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
281
282func getdents(fd int, buf []byte) (n int, err error) {
283 var _p0 unsafe.Pointer
284 if len(buf) > 0 {
285 _p0 = unsafe.Pointer(&buf[0])
286 } else {
287 _p0 = unsafe.Pointer(&_zero)
288 }
289 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
290 n = int(r0)
291 if e1 != 0 {
292 err = errnoErr(e1)
293 }
294 return
295}
296
297// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
298
299func Access(path string, mode uint32) (err error) {
300 var _p0 *byte
301 _p0, err = BytePtrFromString(path)
302 if err != nil {
303 return
304 }
305 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
306 use(unsafe.Pointer(_p0))
307 if e1 != 0 {
308 err = errnoErr(e1)
309 }
310 return
311}
312
313// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
314
315func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
316 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
317 if e1 != 0 {
318 err = errnoErr(e1)
319 }
320 return
321}
322
323// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
324
325func Chdir(path string) (err error) {
326 var _p0 *byte
327 _p0, err = BytePtrFromString(path)
328 if err != nil {
329 return
330 }
331 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
332 use(unsafe.Pointer(_p0))
333 if e1 != 0 {
334 err = errnoErr(e1)
335 }
336 return
337}
338
339// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
340
341func Chflags(path string, flags int) (err error) {
342 var _p0 *byte
343 _p0, err = BytePtrFromString(path)
344 if err != nil {
345 return
346 }
347 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
348 use(unsafe.Pointer(_p0))
349 if e1 != 0 {
350 err = errnoErr(e1)
351 }
352 return
353}
354
355// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
356
357func Chmod(path string, mode uint32) (err error) {
358 var _p0 *byte
359 _p0, err = BytePtrFromString(path)
360 if err != nil {
361 return
362 }
363 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
364 use(unsafe.Pointer(_p0))
365 if e1 != 0 {
366 err = errnoErr(e1)
367 }
368 return
369}
370
371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372
373func Chown(path string, uid int, gid int) (err error) {
374 var _p0 *byte
375 _p0, err = BytePtrFromString(path)
376 if err != nil {
377 return
378 }
379 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
380 use(unsafe.Pointer(_p0))
381 if e1 != 0 {
382 err = errnoErr(e1)
383 }
384 return
385}
386
387// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
388
389func Chroot(path string) (err error) {
390 var _p0 *byte
391 _p0, err = BytePtrFromString(path)
392 if err != nil {
393 return
394 }
395 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
396 use(unsafe.Pointer(_p0))
397 if e1 != 0 {
398 err = errnoErr(e1)
399 }
400 return
401}
402
403// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
404
405func Close(fd int) (err error) {
406 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
407 if e1 != 0 {
408 err = errnoErr(e1)
409 }
410 return
411}
412
413// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
414
415func Dup(fd int) (nfd int, err error) {
416 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
417 nfd = int(r0)
418 if e1 != 0 {
419 err = errnoErr(e1)
420 }
421 return
422}
423
424// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
425
426func Dup2(from int, to int) (err error) {
427 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
428 if e1 != 0 {
429 err = errnoErr(e1)
430 }
431 return
432}
433
434// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
435
436func Exit(code int) {
437 Syscall(SYS_EXIT, uintptr(code), 0, 0)
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Fchdir(fd int) (err error) {
444 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
445 if e1 != 0 {
446 err = errnoErr(e1)
447 }
448 return
449}
450
451// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452
453func Fchflags(fd int, flags int) (err error) {
454 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
455 if e1 != 0 {
456 err = errnoErr(e1)
457 }
458 return
459}
460
461// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
462
463func Fchmod(fd int, mode uint32) (err error) {
464 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
465 if e1 != 0 {
466 err = errnoErr(e1)
467 }
468 return
469}
470
471// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
472
473func Fchown(fd int, uid int, gid int) (err error) {
474 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
475 if e1 != 0 {
476 err = errnoErr(e1)
477 }
478 return
479}
480
481// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
482
483func Flock(fd int, how int) (err error) {
484 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
485 if e1 != 0 {
486 err = errnoErr(e1)
487 }
488 return
489}
490
491// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
492
493func Fpathconf(fd int, name int) (val int, err error) {
494 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
495 val = int(r0)
496 if e1 != 0 {
497 err = errnoErr(e1)
498 }
499 return
500}
501
502// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
503
504func Fstat(fd int, stat *Stat_t) (err error) {
505 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
506 if e1 != 0 {
507 err = errnoErr(e1)
508 }
509 return
510}
511
512// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
513
514func Fsync(fd int) (err error) {
515 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
516 if e1 != 0 {
517 err = errnoErr(e1)
518 }
519 return
520}
521
522// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
523
524func Ftruncate(fd int, length int64) (err error) {
525 _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
526 if e1 != 0 {
527 err = errnoErr(e1)
528 }
529 return
530}
531
532// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
533
534func Getegid() (egid int) {
535 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
536 egid = int(r0)
537 return
538}
539
540// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
541
542func Geteuid() (uid int) {
543 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
544 uid = int(r0)
545 return
546}
547
548// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
549
550func Getgid() (gid int) {
551 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
552 gid = int(r0)
553 return
554}
555
556// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
557
558func Getpgid(pid int) (pgid int, err error) {
559 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
560 pgid = int(r0)
561 if e1 != 0 {
562 err = errnoErr(e1)
563 }
564 return
565}
566
567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
568
569func Getpgrp() (pgrp int) {
570 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
571 pgrp = int(r0)
572 return
573}
574
575// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
576
577func Getpid() (pid int) {
578 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
579 pid = int(r0)
580 return
581}
582
583// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
584
585func Getppid() (ppid int) {
586 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
587 ppid = int(r0)
588 return
589}
590
591// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
592
593func Getpriority(which int, who int) (prio int, err error) {
594 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
595 prio = int(r0)
596 if e1 != 0 {
597 err = errnoErr(e1)
598 }
599 return
600}
601
602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
603
604func Getrlimit(which int, lim *Rlimit) (err error) {
605 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
606 if e1 != 0 {
607 err = errnoErr(e1)
608 }
609 return
610}
611
612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
613
614func Getrusage(who int, rusage *Rusage) (err error) {
615 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
616 if e1 != 0 {
617 err = errnoErr(e1)
618 }
619 return
620}
621
622// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
623
624func Getsid(pid int) (sid int, err error) {
625 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
626 sid = int(r0)
627 if e1 != 0 {
628 err = errnoErr(e1)
629 }
630 return
631}
632
633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635func Gettimeofday(tv *Timeval) (err error) {
636 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
637 if e1 != 0 {
638 err = errnoErr(e1)
639 }
640 return
641}
642
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644
645func Getuid() (uid int) {
646 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
647 uid = int(r0)
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func Issetugid() (tainted bool) {
654 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
655 tainted = bool(r0 != 0)
656 return
657}
658
659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
660
661func Kill(pid int, signum syscall.Signal) (err error) {
662 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
663 if e1 != 0 {
664 err = errnoErr(e1)
665 }
666 return
667}
668
669// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
670
671func Kqueue() (fd int, err error) {
672 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
673 fd = int(r0)
674 if e1 != 0 {
675 err = errnoErr(e1)
676 }
677 return
678}
679
680// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
681
682func Lchown(path string, uid int, gid int) (err error) {
683 var _p0 *byte
684 _p0, err = BytePtrFromString(path)
685 if err != nil {
686 return
687 }
688 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
689 use(unsafe.Pointer(_p0))
690 if e1 != 0 {
691 err = errnoErr(e1)
692 }
693 return
694}
695
696// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
697
698func Link(path string, link string) (err error) {
699 var _p0 *byte
700 _p0, err = BytePtrFromString(path)
701 if err != nil {
702 return
703 }
704 var _p1 *byte
705 _p1, err = BytePtrFromString(link)
706 if err != nil {
707 return
708 }
709 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
710 use(unsafe.Pointer(_p0))
711 use(unsafe.Pointer(_p1))
712 if e1 != 0 {
713 err = errnoErr(e1)
714 }
715 return
716}
717
718// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
719
720func Listen(s int, backlog int) (err error) {
721 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
722 if e1 != 0 {
723 err = errnoErr(e1)
724 }
725 return
726}
727
728// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729
730func Lstat(path string, stat *Stat_t) (err error) {
731 var _p0 *byte
732 _p0, err = BytePtrFromString(path)
733 if err != nil {
734 return
735 }
736 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
737 use(unsafe.Pointer(_p0))
738 if e1 != 0 {
739 err = errnoErr(e1)
740 }
741 return
742}
743
744// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
745
746func Mkdir(path string, mode uint32) (err error) {
747 var _p0 *byte
748 _p0, err = BytePtrFromString(path)
749 if err != nil {
750 return
751 }
752 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
753 use(unsafe.Pointer(_p0))
754 if e1 != 0 {
755 err = errnoErr(e1)
756 }
757 return
758}
759
760// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
761
762func Mkfifo(path string, mode uint32) (err error) {
763 var _p0 *byte
764 _p0, err = BytePtrFromString(path)
765 if err != nil {
766 return
767 }
768 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
769 use(unsafe.Pointer(_p0))
770 if e1 != 0 {
771 err = errnoErr(e1)
772 }
773 return
774}
775
776// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
777
778func Mknod(path string, mode uint32, dev int) (err error) {
779 var _p0 *byte
780 _p0, err = BytePtrFromString(path)
781 if err != nil {
782 return
783 }
784 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
785 use(unsafe.Pointer(_p0))
786 if e1 != 0 {
787 err = errnoErr(e1)
788 }
789 return
790}
791
792// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
793
794func Mlock(b []byte) (err error) {
795 var _p0 unsafe.Pointer
796 if len(b) > 0 {
797 _p0 = unsafe.Pointer(&b[0])
798 } else {
799 _p0 = unsafe.Pointer(&_zero)
800 }
801 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
802 if e1 != 0 {
803 err = errnoErr(e1)
804 }
805 return
806}
807
808// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
809
810func Mlockall(flags int) (err error) {
811 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
812 if e1 != 0 {
813 err = errnoErr(e1)
814 }
815 return
816}
817
818// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
819
820func Mprotect(b []byte, prot int) (err error) {
821 var _p0 unsafe.Pointer
822 if len(b) > 0 {
823 _p0 = unsafe.Pointer(&b[0])
824 } else {
825 _p0 = unsafe.Pointer(&_zero)
826 }
827 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
828 if e1 != 0 {
829 err = errnoErr(e1)
830 }
831 return
832}
833
834// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
835
836func Munlock(b []byte) (err error) {
837 var _p0 unsafe.Pointer
838 if len(b) > 0 {
839 _p0 = unsafe.Pointer(&b[0])
840 } else {
841 _p0 = unsafe.Pointer(&_zero)
842 }
843 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
844 if e1 != 0 {
845 err = errnoErr(e1)
846 }
847 return
848}
849
850// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
851
852func Munlockall() (err error) {
853 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
863 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
864 if e1 != 0 {
865 err = errnoErr(e1)
866 }
867 return
868}
869
870// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
871
872func Open(path string, mode int, perm uint32) (fd int, err error) {
873 var _p0 *byte
874 _p0, err = BytePtrFromString(path)
875 if err != nil {
876 return
877 }
878 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
879 use(unsafe.Pointer(_p0))
880 fd = int(r0)
881 if e1 != 0 {
882 err = errnoErr(e1)
883 }
884 return
885}
886
887// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
888
889func Pathconf(path string, name int) (val int, err error) {
890 var _p0 *byte
891 _p0, err = BytePtrFromString(path)
892 if err != nil {
893 return
894 }
895 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
896 use(unsafe.Pointer(_p0))
897 val = int(r0)
898 if e1 != 0 {
899 err = errnoErr(e1)
900 }
901 return
902}
903
904// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
905
906func Pread(fd int, p []byte, offset int64) (n int, err error) {
907 var _p0 unsafe.Pointer
908 if len(p) > 0 {
909 _p0 = unsafe.Pointer(&p[0])
910 } else {
911 _p0 = unsafe.Pointer(&_zero)
912 }
913 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
914 n = int(r0)
915 if e1 != 0 {
916 err = errnoErr(e1)
917 }
918 return
919}
920
921// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
922
923func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
924 var _p0 unsafe.Pointer
925 if len(p) > 0 {
926 _p0 = unsafe.Pointer(&p[0])
927 } else {
928 _p0 = unsafe.Pointer(&_zero)
929 }
930 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
931 n = int(r0)
932 if e1 != 0 {
933 err = errnoErr(e1)
934 }
935 return
936}
937
938// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
939
940func read(fd int, p []byte) (n int, err error) {
941 var _p0 unsafe.Pointer
942 if len(p) > 0 {
943 _p0 = unsafe.Pointer(&p[0])
944 } else {
945 _p0 = unsafe.Pointer(&_zero)
946 }
947 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
948 n = int(r0)
949 if e1 != 0 {
950 err = errnoErr(e1)
951 }
952 return
953}
954
955// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
956
957func Readlink(path string, buf []byte) (n int, err error) {
958 var _p0 *byte
959 _p0, err = BytePtrFromString(path)
960 if err != nil {
961 return
962 }
963 var _p1 unsafe.Pointer
964 if len(buf) > 0 {
965 _p1 = unsafe.Pointer(&buf[0])
966 } else {
967 _p1 = unsafe.Pointer(&_zero)
968 }
969 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
970 use(unsafe.Pointer(_p0))
971 n = int(r0)
972 if e1 != 0 {
973 err = errnoErr(e1)
974 }
975 return
976}
977
978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
979
980func Rename(from string, to string) (err error) {
981 var _p0 *byte
982 _p0, err = BytePtrFromString(from)
983 if err != nil {
984 return
985 }
986 var _p1 *byte
987 _p1, err = BytePtrFromString(to)
988 if err != nil {
989 return
990 }
991 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
992 use(unsafe.Pointer(_p0))
993 use(unsafe.Pointer(_p1))
994 if e1 != 0 {
995 err = errnoErr(e1)
996 }
997 return
998}
999
1000// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1001
1002func Revoke(path string) (err error) {
1003 var _p0 *byte
1004 _p0, err = BytePtrFromString(path)
1005 if err != nil {
1006 return
1007 }
1008 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1009 use(unsafe.Pointer(_p0))
1010 if e1 != 0 {
1011 err = errnoErr(e1)
1012 }
1013 return
1014}
1015
1016// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1017
1018func Rmdir(path string) (err error) {
1019 var _p0 *byte
1020 _p0, err = BytePtrFromString(path)
1021 if err != nil {
1022 return
1023 }
1024 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1025 use(unsafe.Pointer(_p0))
1026 if e1 != 0 {
1027 err = errnoErr(e1)
1028 }
1029 return
1030}
1031
1032// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1033
1034func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1035 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)
1036 newoffset = int64(int64(r1)<<32 | int64(r0))
1037 if e1 != 0 {
1038 err = errnoErr(e1)
1039 }
1040 return
1041}
1042
1043// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1044
1045func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1046 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1047 if e1 != 0 {
1048 err = errnoErr(e1)
1049 }
1050 return
1051}
1052
1053// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1054
1055func Setegid(egid int) (err error) {
1056 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1057 if e1 != 0 {
1058 err = errnoErr(e1)
1059 }
1060 return
1061}
1062
1063// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1064
1065func Seteuid(euid int) (err error) {
1066 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1067 if e1 != 0 {
1068 err = errnoErr(e1)
1069 }
1070 return
1071}
1072
1073// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1074
1075func Setgid(gid int) (err error) {
1076 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1077 if e1 != 0 {
1078 err = errnoErr(e1)
1079 }
1080 return
1081}
1082
1083// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1084
1085func Setpgid(pid int, pgid int) (err error) {
1086 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Setpriority(which int, who int, prio int) (err error) {
1096 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1097 if e1 != 0 {
1098 err = errnoErr(e1)
1099 }
1100 return
1101}
1102
1103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1104
1105func Setregid(rgid int, egid int) (err error) {
1106 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1107 if e1 != 0 {
1108 err = errnoErr(e1)
1109 }
1110 return
1111}
1112
1113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1114
1115func Setreuid(ruid int, euid int) (err error) {
1116 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1117 if e1 != 0 {
1118 err = errnoErr(e1)
1119 }
1120 return
1121}
1122
1123// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1124
1125func Setrlimit(which int, lim *Rlimit) (err error) {
1126 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1127 if e1 != 0 {
1128 err = errnoErr(e1)
1129 }
1130 return
1131}
1132
1133// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1134
1135func Setsid() (pid int, err error) {
1136 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1137 pid = int(r0)
1138 if e1 != 0 {
1139 err = errnoErr(e1)
1140 }
1141 return
1142}
1143
1144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1145
1146func Settimeofday(tp *Timeval) (err error) {
1147 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1148 if e1 != 0 {
1149 err = errnoErr(e1)
1150 }
1151 return
1152}
1153
1154// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1155
1156func Setuid(uid int) (err error) {
1157 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1158 if e1 != 0 {
1159 err = errnoErr(e1)
1160 }
1161 return
1162}
1163
1164// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1165
1166func Stat(path string, stat *Stat_t) (err error) {
1167 var _p0 *byte
1168 _p0, err = BytePtrFromString(path)
1169 if err != nil {
1170 return
1171 }
1172 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1173 use(unsafe.Pointer(_p0))
1174 if e1 != 0 {
1175 err = errnoErr(e1)
1176 }
1177 return
1178}
1179
1180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1181
1182func Symlink(path string, link string) (err error) {
1183 var _p0 *byte
1184 _p0, err = BytePtrFromString(path)
1185 if err != nil {
1186 return
1187 }
1188 var _p1 *byte
1189 _p1, err = BytePtrFromString(link)
1190 if err != nil {
1191 return
1192 }
1193 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1194 use(unsafe.Pointer(_p0))
1195 use(unsafe.Pointer(_p1))
1196 if e1 != 0 {
1197 err = errnoErr(e1)
1198 }
1199 return
1200}
1201
1202// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1203
1204func Sync() (err error) {
1205 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1206 if e1 != 0 {
1207 err = errnoErr(e1)
1208 }
1209 return
1210}
1211
1212// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1213
1214func Truncate(path string, length int64) (err error) {
1215 var _p0 *byte
1216 _p0, err = BytePtrFromString(path)
1217 if err != nil {
1218 return
1219 }
1220 _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
1221 use(unsafe.Pointer(_p0))
1222 if e1 != 0 {
1223 err = errnoErr(e1)
1224 }
1225 return
1226}
1227
1228// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1229
1230func Umask(newmask int) (oldmask int) {
1231 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1232 oldmask = int(r0)
1233 return
1234}
1235
1236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1237
1238func Unlink(path string) (err error) {
1239 var _p0 *byte
1240 _p0, err = BytePtrFromString(path)
1241 if err != nil {
1242 return
1243 }
1244 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1245 use(unsafe.Pointer(_p0))
1246 if e1 != 0 {
1247 err = errnoErr(e1)
1248 }
1249 return
1250}
1251
1252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1253
1254func Unmount(path string, flags int) (err error) {
1255 var _p0 *byte
1256 _p0, err = BytePtrFromString(path)
1257 if err != nil {
1258 return
1259 }
1260 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1261 use(unsafe.Pointer(_p0))
1262 if e1 != 0 {
1263 err = errnoErr(e1)
1264 }
1265 return
1266}
1267
1268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1269
1270func write(fd int, p []byte) (n int, err error) {
1271 var _p0 unsafe.Pointer
1272 if len(p) > 0 {
1273 _p0 = unsafe.Pointer(&p[0])
1274 } else {
1275 _p0 = unsafe.Pointer(&_zero)
1276 }
1277 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1278 n = int(r0)
1279 if e1 != 0 {
1280 err = errnoErr(e1)
1281 }
1282 return
1283}
1284
1285// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1286
1287func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1288 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)
1289 ret = uintptr(r0)
1290 if e1 != 0 {
1291 err = errnoErr(e1)
1292 }
1293 return
1294}
1295
1296// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1297
1298func munmap(addr uintptr, length uintptr) (err error) {
1299 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1300 if e1 != 0 {
1301 err = errnoErr(e1)
1302 }
1303 return
1304}
1305
1306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1307
1308func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1309 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1310 n = int(r0)
1311 if e1 != 0 {
1312 err = errnoErr(e1)
1313 }
1314 return
1315}
1316
1317// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1318
1319func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1320 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1321 n = int(r0)
1322 if e1 != 0 {
1323 err = errnoErr(e1)
1324 }
1325 return
1326}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
deleted file mode 100644
index 03f31b9..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
+++ /dev/null
@@ -1,1326 +0,0 @@
1// mksyscall.pl -netbsd syscall_bsd.go syscall_netbsd.go syscall_netbsd_amd64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,netbsd
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe() (fd1 int, fd2 int, err error) {
271 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
272 fd1 = int(r0)
273 fd2 = int(r1)
274 if e1 != 0 {
275 err = errnoErr(e1)
276 }
277 return
278}
279
280// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
281
282func getdents(fd int, buf []byte) (n int, err error) {
283 var _p0 unsafe.Pointer
284 if len(buf) > 0 {
285 _p0 = unsafe.Pointer(&buf[0])
286 } else {
287 _p0 = unsafe.Pointer(&_zero)
288 }
289 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
290 n = int(r0)
291 if e1 != 0 {
292 err = errnoErr(e1)
293 }
294 return
295}
296
297// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
298
299func Access(path string, mode uint32) (err error) {
300 var _p0 *byte
301 _p0, err = BytePtrFromString(path)
302 if err != nil {
303 return
304 }
305 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
306 use(unsafe.Pointer(_p0))
307 if e1 != 0 {
308 err = errnoErr(e1)
309 }
310 return
311}
312
313// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
314
315func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
316 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
317 if e1 != 0 {
318 err = errnoErr(e1)
319 }
320 return
321}
322
323// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
324
325func Chdir(path string) (err error) {
326 var _p0 *byte
327 _p0, err = BytePtrFromString(path)
328 if err != nil {
329 return
330 }
331 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
332 use(unsafe.Pointer(_p0))
333 if e1 != 0 {
334 err = errnoErr(e1)
335 }
336 return
337}
338
339// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
340
341func Chflags(path string, flags int) (err error) {
342 var _p0 *byte
343 _p0, err = BytePtrFromString(path)
344 if err != nil {
345 return
346 }
347 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
348 use(unsafe.Pointer(_p0))
349 if e1 != 0 {
350 err = errnoErr(e1)
351 }
352 return
353}
354
355// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
356
357func Chmod(path string, mode uint32) (err error) {
358 var _p0 *byte
359 _p0, err = BytePtrFromString(path)
360 if err != nil {
361 return
362 }
363 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
364 use(unsafe.Pointer(_p0))
365 if e1 != 0 {
366 err = errnoErr(e1)
367 }
368 return
369}
370
371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372
373func Chown(path string, uid int, gid int) (err error) {
374 var _p0 *byte
375 _p0, err = BytePtrFromString(path)
376 if err != nil {
377 return
378 }
379 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
380 use(unsafe.Pointer(_p0))
381 if e1 != 0 {
382 err = errnoErr(e1)
383 }
384 return
385}
386
387// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
388
389func Chroot(path string) (err error) {
390 var _p0 *byte
391 _p0, err = BytePtrFromString(path)
392 if err != nil {
393 return
394 }
395 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
396 use(unsafe.Pointer(_p0))
397 if e1 != 0 {
398 err = errnoErr(e1)
399 }
400 return
401}
402
403// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
404
405func Close(fd int) (err error) {
406 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
407 if e1 != 0 {
408 err = errnoErr(e1)
409 }
410 return
411}
412
413// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
414
415func Dup(fd int) (nfd int, err error) {
416 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
417 nfd = int(r0)
418 if e1 != 0 {
419 err = errnoErr(e1)
420 }
421 return
422}
423
424// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
425
426func Dup2(from int, to int) (err error) {
427 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
428 if e1 != 0 {
429 err = errnoErr(e1)
430 }
431 return
432}
433
434// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
435
436func Exit(code int) {
437 Syscall(SYS_EXIT, uintptr(code), 0, 0)
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Fchdir(fd int) (err error) {
444 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
445 if e1 != 0 {
446 err = errnoErr(e1)
447 }
448 return
449}
450
451// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452
453func Fchflags(fd int, flags int) (err error) {
454 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
455 if e1 != 0 {
456 err = errnoErr(e1)
457 }
458 return
459}
460
461// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
462
463func Fchmod(fd int, mode uint32) (err error) {
464 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
465 if e1 != 0 {
466 err = errnoErr(e1)
467 }
468 return
469}
470
471// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
472
473func Fchown(fd int, uid int, gid int) (err error) {
474 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
475 if e1 != 0 {
476 err = errnoErr(e1)
477 }
478 return
479}
480
481// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
482
483func Flock(fd int, how int) (err error) {
484 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
485 if e1 != 0 {
486 err = errnoErr(e1)
487 }
488 return
489}
490
491// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
492
493func Fpathconf(fd int, name int) (val int, err error) {
494 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
495 val = int(r0)
496 if e1 != 0 {
497 err = errnoErr(e1)
498 }
499 return
500}
501
502// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
503
504func Fstat(fd int, stat *Stat_t) (err error) {
505 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
506 if e1 != 0 {
507 err = errnoErr(e1)
508 }
509 return
510}
511
512// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
513
514func Fsync(fd int) (err error) {
515 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
516 if e1 != 0 {
517 err = errnoErr(e1)
518 }
519 return
520}
521
522// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
523
524func Ftruncate(fd int, length int64) (err error) {
525 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length))
526 if e1 != 0 {
527 err = errnoErr(e1)
528 }
529 return
530}
531
532// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
533
534func Getegid() (egid int) {
535 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
536 egid = int(r0)
537 return
538}
539
540// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
541
542func Geteuid() (uid int) {
543 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
544 uid = int(r0)
545 return
546}
547
548// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
549
550func Getgid() (gid int) {
551 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
552 gid = int(r0)
553 return
554}
555
556// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
557
558func Getpgid(pid int) (pgid int, err error) {
559 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
560 pgid = int(r0)
561 if e1 != 0 {
562 err = errnoErr(e1)
563 }
564 return
565}
566
567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
568
569func Getpgrp() (pgrp int) {
570 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
571 pgrp = int(r0)
572 return
573}
574
575// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
576
577func Getpid() (pid int) {
578 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
579 pid = int(r0)
580 return
581}
582
583// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
584
585func Getppid() (ppid int) {
586 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
587 ppid = int(r0)
588 return
589}
590
591// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
592
593func Getpriority(which int, who int) (prio int, err error) {
594 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
595 prio = int(r0)
596 if e1 != 0 {
597 err = errnoErr(e1)
598 }
599 return
600}
601
602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
603
604func Getrlimit(which int, lim *Rlimit) (err error) {
605 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
606 if e1 != 0 {
607 err = errnoErr(e1)
608 }
609 return
610}
611
612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
613
614func Getrusage(who int, rusage *Rusage) (err error) {
615 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
616 if e1 != 0 {
617 err = errnoErr(e1)
618 }
619 return
620}
621
622// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
623
624func Getsid(pid int) (sid int, err error) {
625 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
626 sid = int(r0)
627 if e1 != 0 {
628 err = errnoErr(e1)
629 }
630 return
631}
632
633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635func Gettimeofday(tv *Timeval) (err error) {
636 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
637 if e1 != 0 {
638 err = errnoErr(e1)
639 }
640 return
641}
642
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644
645func Getuid() (uid int) {
646 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
647 uid = int(r0)
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func Issetugid() (tainted bool) {
654 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
655 tainted = bool(r0 != 0)
656 return
657}
658
659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
660
661func Kill(pid int, signum syscall.Signal) (err error) {
662 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
663 if e1 != 0 {
664 err = errnoErr(e1)
665 }
666 return
667}
668
669// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
670
671func Kqueue() (fd int, err error) {
672 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
673 fd = int(r0)
674 if e1 != 0 {
675 err = errnoErr(e1)
676 }
677 return
678}
679
680// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
681
682func Lchown(path string, uid int, gid int) (err error) {
683 var _p0 *byte
684 _p0, err = BytePtrFromString(path)
685 if err != nil {
686 return
687 }
688 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
689 use(unsafe.Pointer(_p0))
690 if e1 != 0 {
691 err = errnoErr(e1)
692 }
693 return
694}
695
696// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
697
698func Link(path string, link string) (err error) {
699 var _p0 *byte
700 _p0, err = BytePtrFromString(path)
701 if err != nil {
702 return
703 }
704 var _p1 *byte
705 _p1, err = BytePtrFromString(link)
706 if err != nil {
707 return
708 }
709 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
710 use(unsafe.Pointer(_p0))
711 use(unsafe.Pointer(_p1))
712 if e1 != 0 {
713 err = errnoErr(e1)
714 }
715 return
716}
717
718// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
719
720func Listen(s int, backlog int) (err error) {
721 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
722 if e1 != 0 {
723 err = errnoErr(e1)
724 }
725 return
726}
727
728// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729
730func Lstat(path string, stat *Stat_t) (err error) {
731 var _p0 *byte
732 _p0, err = BytePtrFromString(path)
733 if err != nil {
734 return
735 }
736 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
737 use(unsafe.Pointer(_p0))
738 if e1 != 0 {
739 err = errnoErr(e1)
740 }
741 return
742}
743
744// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
745
746func Mkdir(path string, mode uint32) (err error) {
747 var _p0 *byte
748 _p0, err = BytePtrFromString(path)
749 if err != nil {
750 return
751 }
752 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
753 use(unsafe.Pointer(_p0))
754 if e1 != 0 {
755 err = errnoErr(e1)
756 }
757 return
758}
759
760// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
761
762func Mkfifo(path string, mode uint32) (err error) {
763 var _p0 *byte
764 _p0, err = BytePtrFromString(path)
765 if err != nil {
766 return
767 }
768 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
769 use(unsafe.Pointer(_p0))
770 if e1 != 0 {
771 err = errnoErr(e1)
772 }
773 return
774}
775
776// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
777
778func Mknod(path string, mode uint32, dev int) (err error) {
779 var _p0 *byte
780 _p0, err = BytePtrFromString(path)
781 if err != nil {
782 return
783 }
784 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
785 use(unsafe.Pointer(_p0))
786 if e1 != 0 {
787 err = errnoErr(e1)
788 }
789 return
790}
791
792// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
793
794func Mlock(b []byte) (err error) {
795 var _p0 unsafe.Pointer
796 if len(b) > 0 {
797 _p0 = unsafe.Pointer(&b[0])
798 } else {
799 _p0 = unsafe.Pointer(&_zero)
800 }
801 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
802 if e1 != 0 {
803 err = errnoErr(e1)
804 }
805 return
806}
807
808// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
809
810func Mlockall(flags int) (err error) {
811 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
812 if e1 != 0 {
813 err = errnoErr(e1)
814 }
815 return
816}
817
818// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
819
820func Mprotect(b []byte, prot int) (err error) {
821 var _p0 unsafe.Pointer
822 if len(b) > 0 {
823 _p0 = unsafe.Pointer(&b[0])
824 } else {
825 _p0 = unsafe.Pointer(&_zero)
826 }
827 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
828 if e1 != 0 {
829 err = errnoErr(e1)
830 }
831 return
832}
833
834// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
835
836func Munlock(b []byte) (err error) {
837 var _p0 unsafe.Pointer
838 if len(b) > 0 {
839 _p0 = unsafe.Pointer(&b[0])
840 } else {
841 _p0 = unsafe.Pointer(&_zero)
842 }
843 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
844 if e1 != 0 {
845 err = errnoErr(e1)
846 }
847 return
848}
849
850// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
851
852func Munlockall() (err error) {
853 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
863 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
864 if e1 != 0 {
865 err = errnoErr(e1)
866 }
867 return
868}
869
870// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
871
872func Open(path string, mode int, perm uint32) (fd int, err error) {
873 var _p0 *byte
874 _p0, err = BytePtrFromString(path)
875 if err != nil {
876 return
877 }
878 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
879 use(unsafe.Pointer(_p0))
880 fd = int(r0)
881 if e1 != 0 {
882 err = errnoErr(e1)
883 }
884 return
885}
886
887// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
888
889func Pathconf(path string, name int) (val int, err error) {
890 var _p0 *byte
891 _p0, err = BytePtrFromString(path)
892 if err != nil {
893 return
894 }
895 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
896 use(unsafe.Pointer(_p0))
897 val = int(r0)
898 if e1 != 0 {
899 err = errnoErr(e1)
900 }
901 return
902}
903
904// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
905
906func Pread(fd int, p []byte, offset int64) (n int, err error) {
907 var _p0 unsafe.Pointer
908 if len(p) > 0 {
909 _p0 = unsafe.Pointer(&p[0])
910 } else {
911 _p0 = unsafe.Pointer(&_zero)
912 }
913 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)
914 n = int(r0)
915 if e1 != 0 {
916 err = errnoErr(e1)
917 }
918 return
919}
920
921// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
922
923func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
924 var _p0 unsafe.Pointer
925 if len(p) > 0 {
926 _p0 = unsafe.Pointer(&p[0])
927 } else {
928 _p0 = unsafe.Pointer(&_zero)
929 }
930 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)
931 n = int(r0)
932 if e1 != 0 {
933 err = errnoErr(e1)
934 }
935 return
936}
937
938// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
939
940func read(fd int, p []byte) (n int, err error) {
941 var _p0 unsafe.Pointer
942 if len(p) > 0 {
943 _p0 = unsafe.Pointer(&p[0])
944 } else {
945 _p0 = unsafe.Pointer(&_zero)
946 }
947 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
948 n = int(r0)
949 if e1 != 0 {
950 err = errnoErr(e1)
951 }
952 return
953}
954
955// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
956
957func Readlink(path string, buf []byte) (n int, err error) {
958 var _p0 *byte
959 _p0, err = BytePtrFromString(path)
960 if err != nil {
961 return
962 }
963 var _p1 unsafe.Pointer
964 if len(buf) > 0 {
965 _p1 = unsafe.Pointer(&buf[0])
966 } else {
967 _p1 = unsafe.Pointer(&_zero)
968 }
969 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
970 use(unsafe.Pointer(_p0))
971 n = int(r0)
972 if e1 != 0 {
973 err = errnoErr(e1)
974 }
975 return
976}
977
978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
979
980func Rename(from string, to string) (err error) {
981 var _p0 *byte
982 _p0, err = BytePtrFromString(from)
983 if err != nil {
984 return
985 }
986 var _p1 *byte
987 _p1, err = BytePtrFromString(to)
988 if err != nil {
989 return
990 }
991 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
992 use(unsafe.Pointer(_p0))
993 use(unsafe.Pointer(_p1))
994 if e1 != 0 {
995 err = errnoErr(e1)
996 }
997 return
998}
999
1000// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1001
1002func Revoke(path string) (err error) {
1003 var _p0 *byte
1004 _p0, err = BytePtrFromString(path)
1005 if err != nil {
1006 return
1007 }
1008 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1009 use(unsafe.Pointer(_p0))
1010 if e1 != 0 {
1011 err = errnoErr(e1)
1012 }
1013 return
1014}
1015
1016// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1017
1018func Rmdir(path string) (err error) {
1019 var _p0 *byte
1020 _p0, err = BytePtrFromString(path)
1021 if err != nil {
1022 return
1023 }
1024 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1025 use(unsafe.Pointer(_p0))
1026 if e1 != 0 {
1027 err = errnoErr(e1)
1028 }
1029 return
1030}
1031
1032// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1033
1034func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1035 r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0)
1036 newoffset = int64(r0)
1037 if e1 != 0 {
1038 err = errnoErr(e1)
1039 }
1040 return
1041}
1042
1043// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1044
1045func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1046 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1047 if e1 != 0 {
1048 err = errnoErr(e1)
1049 }
1050 return
1051}
1052
1053// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1054
1055func Setegid(egid int) (err error) {
1056 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1057 if e1 != 0 {
1058 err = errnoErr(e1)
1059 }
1060 return
1061}
1062
1063// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1064
1065func Seteuid(euid int) (err error) {
1066 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1067 if e1 != 0 {
1068 err = errnoErr(e1)
1069 }
1070 return
1071}
1072
1073// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1074
1075func Setgid(gid int) (err error) {
1076 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1077 if e1 != 0 {
1078 err = errnoErr(e1)
1079 }
1080 return
1081}
1082
1083// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1084
1085func Setpgid(pid int, pgid int) (err error) {
1086 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Setpriority(which int, who int, prio int) (err error) {
1096 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1097 if e1 != 0 {
1098 err = errnoErr(e1)
1099 }
1100 return
1101}
1102
1103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1104
1105func Setregid(rgid int, egid int) (err error) {
1106 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1107 if e1 != 0 {
1108 err = errnoErr(e1)
1109 }
1110 return
1111}
1112
1113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1114
1115func Setreuid(ruid int, euid int) (err error) {
1116 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1117 if e1 != 0 {
1118 err = errnoErr(e1)
1119 }
1120 return
1121}
1122
1123// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1124
1125func Setrlimit(which int, lim *Rlimit) (err error) {
1126 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1127 if e1 != 0 {
1128 err = errnoErr(e1)
1129 }
1130 return
1131}
1132
1133// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1134
1135func Setsid() (pid int, err error) {
1136 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1137 pid = int(r0)
1138 if e1 != 0 {
1139 err = errnoErr(e1)
1140 }
1141 return
1142}
1143
1144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1145
1146func Settimeofday(tp *Timeval) (err error) {
1147 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1148 if e1 != 0 {
1149 err = errnoErr(e1)
1150 }
1151 return
1152}
1153
1154// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1155
1156func Setuid(uid int) (err error) {
1157 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1158 if e1 != 0 {
1159 err = errnoErr(e1)
1160 }
1161 return
1162}
1163
1164// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1165
1166func Stat(path string, stat *Stat_t) (err error) {
1167 var _p0 *byte
1168 _p0, err = BytePtrFromString(path)
1169 if err != nil {
1170 return
1171 }
1172 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1173 use(unsafe.Pointer(_p0))
1174 if e1 != 0 {
1175 err = errnoErr(e1)
1176 }
1177 return
1178}
1179
1180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1181
1182func Symlink(path string, link string) (err error) {
1183 var _p0 *byte
1184 _p0, err = BytePtrFromString(path)
1185 if err != nil {
1186 return
1187 }
1188 var _p1 *byte
1189 _p1, err = BytePtrFromString(link)
1190 if err != nil {
1191 return
1192 }
1193 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1194 use(unsafe.Pointer(_p0))
1195 use(unsafe.Pointer(_p1))
1196 if e1 != 0 {
1197 err = errnoErr(e1)
1198 }
1199 return
1200}
1201
1202// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1203
1204func Sync() (err error) {
1205 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1206 if e1 != 0 {
1207 err = errnoErr(e1)
1208 }
1209 return
1210}
1211
1212// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1213
1214func Truncate(path string, length int64) (err error) {
1215 var _p0 *byte
1216 _p0, err = BytePtrFromString(path)
1217 if err != nil {
1218 return
1219 }
1220 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length))
1221 use(unsafe.Pointer(_p0))
1222 if e1 != 0 {
1223 err = errnoErr(e1)
1224 }
1225 return
1226}
1227
1228// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1229
1230func Umask(newmask int) (oldmask int) {
1231 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1232 oldmask = int(r0)
1233 return
1234}
1235
1236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1237
1238func Unlink(path string) (err error) {
1239 var _p0 *byte
1240 _p0, err = BytePtrFromString(path)
1241 if err != nil {
1242 return
1243 }
1244 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1245 use(unsafe.Pointer(_p0))
1246 if e1 != 0 {
1247 err = errnoErr(e1)
1248 }
1249 return
1250}
1251
1252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1253
1254func Unmount(path string, flags int) (err error) {
1255 var _p0 *byte
1256 _p0, err = BytePtrFromString(path)
1257 if err != nil {
1258 return
1259 }
1260 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1261 use(unsafe.Pointer(_p0))
1262 if e1 != 0 {
1263 err = errnoErr(e1)
1264 }
1265 return
1266}
1267
1268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1269
1270func write(fd int, p []byte) (n int, err error) {
1271 var _p0 unsafe.Pointer
1272 if len(p) > 0 {
1273 _p0 = unsafe.Pointer(&p[0])
1274 } else {
1275 _p0 = unsafe.Pointer(&_zero)
1276 }
1277 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1278 n = int(r0)
1279 if e1 != 0 {
1280 err = errnoErr(e1)
1281 }
1282 return
1283}
1284
1285// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1286
1287func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1288 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0)
1289 ret = uintptr(r0)
1290 if e1 != 0 {
1291 err = errnoErr(e1)
1292 }
1293 return
1294}
1295
1296// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1297
1298func munmap(addr uintptr, length uintptr) (err error) {
1299 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1300 if e1 != 0 {
1301 err = errnoErr(e1)
1302 }
1303 return
1304}
1305
1306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1307
1308func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1309 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1310 n = int(r0)
1311 if e1 != 0 {
1312 err = errnoErr(e1)
1313 }
1314 return
1315}
1316
1317// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1318
1319func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1320 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1321 n = int(r0)
1322 if e1 != 0 {
1323 err = errnoErr(e1)
1324 }
1325 return
1326}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
deleted file mode 100644
index 84dc61c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
+++ /dev/null
@@ -1,1326 +0,0 @@
1// mksyscall.pl -l32 -arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build arm,netbsd
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe() (fd1 int, fd2 int, err error) {
271 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
272 fd1 = int(r0)
273 fd2 = int(r1)
274 if e1 != 0 {
275 err = errnoErr(e1)
276 }
277 return
278}
279
280// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
281
282func getdents(fd int, buf []byte) (n int, err error) {
283 var _p0 unsafe.Pointer
284 if len(buf) > 0 {
285 _p0 = unsafe.Pointer(&buf[0])
286 } else {
287 _p0 = unsafe.Pointer(&_zero)
288 }
289 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
290 n = int(r0)
291 if e1 != 0 {
292 err = errnoErr(e1)
293 }
294 return
295}
296
297// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
298
299func Access(path string, mode uint32) (err error) {
300 var _p0 *byte
301 _p0, err = BytePtrFromString(path)
302 if err != nil {
303 return
304 }
305 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
306 use(unsafe.Pointer(_p0))
307 if e1 != 0 {
308 err = errnoErr(e1)
309 }
310 return
311}
312
313// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
314
315func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
316 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
317 if e1 != 0 {
318 err = errnoErr(e1)
319 }
320 return
321}
322
323// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
324
325func Chdir(path string) (err error) {
326 var _p0 *byte
327 _p0, err = BytePtrFromString(path)
328 if err != nil {
329 return
330 }
331 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
332 use(unsafe.Pointer(_p0))
333 if e1 != 0 {
334 err = errnoErr(e1)
335 }
336 return
337}
338
339// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
340
341func Chflags(path string, flags int) (err error) {
342 var _p0 *byte
343 _p0, err = BytePtrFromString(path)
344 if err != nil {
345 return
346 }
347 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
348 use(unsafe.Pointer(_p0))
349 if e1 != 0 {
350 err = errnoErr(e1)
351 }
352 return
353}
354
355// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
356
357func Chmod(path string, mode uint32) (err error) {
358 var _p0 *byte
359 _p0, err = BytePtrFromString(path)
360 if err != nil {
361 return
362 }
363 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
364 use(unsafe.Pointer(_p0))
365 if e1 != 0 {
366 err = errnoErr(e1)
367 }
368 return
369}
370
371// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372
373func Chown(path string, uid int, gid int) (err error) {
374 var _p0 *byte
375 _p0, err = BytePtrFromString(path)
376 if err != nil {
377 return
378 }
379 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
380 use(unsafe.Pointer(_p0))
381 if e1 != 0 {
382 err = errnoErr(e1)
383 }
384 return
385}
386
387// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
388
389func Chroot(path string) (err error) {
390 var _p0 *byte
391 _p0, err = BytePtrFromString(path)
392 if err != nil {
393 return
394 }
395 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
396 use(unsafe.Pointer(_p0))
397 if e1 != 0 {
398 err = errnoErr(e1)
399 }
400 return
401}
402
403// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
404
405func Close(fd int) (err error) {
406 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
407 if e1 != 0 {
408 err = errnoErr(e1)
409 }
410 return
411}
412
413// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
414
415func Dup(fd int) (nfd int, err error) {
416 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
417 nfd = int(r0)
418 if e1 != 0 {
419 err = errnoErr(e1)
420 }
421 return
422}
423
424// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
425
426func Dup2(from int, to int) (err error) {
427 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
428 if e1 != 0 {
429 err = errnoErr(e1)
430 }
431 return
432}
433
434// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
435
436func Exit(code int) {
437 Syscall(SYS_EXIT, uintptr(code), 0, 0)
438 return
439}
440
441// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443func Fchdir(fd int) (err error) {
444 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
445 if e1 != 0 {
446 err = errnoErr(e1)
447 }
448 return
449}
450
451// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452
453func Fchflags(fd int, flags int) (err error) {
454 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
455 if e1 != 0 {
456 err = errnoErr(e1)
457 }
458 return
459}
460
461// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
462
463func Fchmod(fd int, mode uint32) (err error) {
464 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
465 if e1 != 0 {
466 err = errnoErr(e1)
467 }
468 return
469}
470
471// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
472
473func Fchown(fd int, uid int, gid int) (err error) {
474 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
475 if e1 != 0 {
476 err = errnoErr(e1)
477 }
478 return
479}
480
481// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
482
483func Flock(fd int, how int) (err error) {
484 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
485 if e1 != 0 {
486 err = errnoErr(e1)
487 }
488 return
489}
490
491// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
492
493func Fpathconf(fd int, name int) (val int, err error) {
494 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
495 val = int(r0)
496 if e1 != 0 {
497 err = errnoErr(e1)
498 }
499 return
500}
501
502// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
503
504func Fstat(fd int, stat *Stat_t) (err error) {
505 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
506 if e1 != 0 {
507 err = errnoErr(e1)
508 }
509 return
510}
511
512// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
513
514func Fsync(fd int) (err error) {
515 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
516 if e1 != 0 {
517 err = errnoErr(e1)
518 }
519 return
520}
521
522// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
523
524func Ftruncate(fd int, length int64) (err error) {
525 _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
526 if e1 != 0 {
527 err = errnoErr(e1)
528 }
529 return
530}
531
532// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
533
534func Getegid() (egid int) {
535 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
536 egid = int(r0)
537 return
538}
539
540// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
541
542func Geteuid() (uid int) {
543 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
544 uid = int(r0)
545 return
546}
547
548// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
549
550func Getgid() (gid int) {
551 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
552 gid = int(r0)
553 return
554}
555
556// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
557
558func Getpgid(pid int) (pgid int, err error) {
559 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
560 pgid = int(r0)
561 if e1 != 0 {
562 err = errnoErr(e1)
563 }
564 return
565}
566
567// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
568
569func Getpgrp() (pgrp int) {
570 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
571 pgrp = int(r0)
572 return
573}
574
575// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
576
577func Getpid() (pid int) {
578 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
579 pid = int(r0)
580 return
581}
582
583// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
584
585func Getppid() (ppid int) {
586 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
587 ppid = int(r0)
588 return
589}
590
591// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
592
593func Getpriority(which int, who int) (prio int, err error) {
594 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
595 prio = int(r0)
596 if e1 != 0 {
597 err = errnoErr(e1)
598 }
599 return
600}
601
602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
603
604func Getrlimit(which int, lim *Rlimit) (err error) {
605 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
606 if e1 != 0 {
607 err = errnoErr(e1)
608 }
609 return
610}
611
612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
613
614func Getrusage(who int, rusage *Rusage) (err error) {
615 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
616 if e1 != 0 {
617 err = errnoErr(e1)
618 }
619 return
620}
621
622// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
623
624func Getsid(pid int) (sid int, err error) {
625 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
626 sid = int(r0)
627 if e1 != 0 {
628 err = errnoErr(e1)
629 }
630 return
631}
632
633// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
634
635func Gettimeofday(tv *Timeval) (err error) {
636 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
637 if e1 != 0 {
638 err = errnoErr(e1)
639 }
640 return
641}
642
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644
645func Getuid() (uid int) {
646 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
647 uid = int(r0)
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func Issetugid() (tainted bool) {
654 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
655 tainted = bool(r0 != 0)
656 return
657}
658
659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
660
661func Kill(pid int, signum syscall.Signal) (err error) {
662 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
663 if e1 != 0 {
664 err = errnoErr(e1)
665 }
666 return
667}
668
669// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
670
671func Kqueue() (fd int, err error) {
672 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
673 fd = int(r0)
674 if e1 != 0 {
675 err = errnoErr(e1)
676 }
677 return
678}
679
680// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
681
682func Lchown(path string, uid int, gid int) (err error) {
683 var _p0 *byte
684 _p0, err = BytePtrFromString(path)
685 if err != nil {
686 return
687 }
688 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
689 use(unsafe.Pointer(_p0))
690 if e1 != 0 {
691 err = errnoErr(e1)
692 }
693 return
694}
695
696// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
697
698func Link(path string, link string) (err error) {
699 var _p0 *byte
700 _p0, err = BytePtrFromString(path)
701 if err != nil {
702 return
703 }
704 var _p1 *byte
705 _p1, err = BytePtrFromString(link)
706 if err != nil {
707 return
708 }
709 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
710 use(unsafe.Pointer(_p0))
711 use(unsafe.Pointer(_p1))
712 if e1 != 0 {
713 err = errnoErr(e1)
714 }
715 return
716}
717
718// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
719
720func Listen(s int, backlog int) (err error) {
721 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
722 if e1 != 0 {
723 err = errnoErr(e1)
724 }
725 return
726}
727
728// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
729
730func Lstat(path string, stat *Stat_t) (err error) {
731 var _p0 *byte
732 _p0, err = BytePtrFromString(path)
733 if err != nil {
734 return
735 }
736 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
737 use(unsafe.Pointer(_p0))
738 if e1 != 0 {
739 err = errnoErr(e1)
740 }
741 return
742}
743
744// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
745
746func Mkdir(path string, mode uint32) (err error) {
747 var _p0 *byte
748 _p0, err = BytePtrFromString(path)
749 if err != nil {
750 return
751 }
752 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
753 use(unsafe.Pointer(_p0))
754 if e1 != 0 {
755 err = errnoErr(e1)
756 }
757 return
758}
759
760// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
761
762func Mkfifo(path string, mode uint32) (err error) {
763 var _p0 *byte
764 _p0, err = BytePtrFromString(path)
765 if err != nil {
766 return
767 }
768 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
769 use(unsafe.Pointer(_p0))
770 if e1 != 0 {
771 err = errnoErr(e1)
772 }
773 return
774}
775
776// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
777
778func Mknod(path string, mode uint32, dev int) (err error) {
779 var _p0 *byte
780 _p0, err = BytePtrFromString(path)
781 if err != nil {
782 return
783 }
784 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
785 use(unsafe.Pointer(_p0))
786 if e1 != 0 {
787 err = errnoErr(e1)
788 }
789 return
790}
791
792// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
793
794func Mlock(b []byte) (err error) {
795 var _p0 unsafe.Pointer
796 if len(b) > 0 {
797 _p0 = unsafe.Pointer(&b[0])
798 } else {
799 _p0 = unsafe.Pointer(&_zero)
800 }
801 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
802 if e1 != 0 {
803 err = errnoErr(e1)
804 }
805 return
806}
807
808// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
809
810func Mlockall(flags int) (err error) {
811 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
812 if e1 != 0 {
813 err = errnoErr(e1)
814 }
815 return
816}
817
818// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
819
820func Mprotect(b []byte, prot int) (err error) {
821 var _p0 unsafe.Pointer
822 if len(b) > 0 {
823 _p0 = unsafe.Pointer(&b[0])
824 } else {
825 _p0 = unsafe.Pointer(&_zero)
826 }
827 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
828 if e1 != 0 {
829 err = errnoErr(e1)
830 }
831 return
832}
833
834// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
835
836func Munlock(b []byte) (err error) {
837 var _p0 unsafe.Pointer
838 if len(b) > 0 {
839 _p0 = unsafe.Pointer(&b[0])
840 } else {
841 _p0 = unsafe.Pointer(&_zero)
842 }
843 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
844 if e1 != 0 {
845 err = errnoErr(e1)
846 }
847 return
848}
849
850// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
851
852func Munlockall() (err error) {
853 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
854 if e1 != 0 {
855 err = errnoErr(e1)
856 }
857 return
858}
859
860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861
862func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
863 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
864 if e1 != 0 {
865 err = errnoErr(e1)
866 }
867 return
868}
869
870// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
871
872func Open(path string, mode int, perm uint32) (fd int, err error) {
873 var _p0 *byte
874 _p0, err = BytePtrFromString(path)
875 if err != nil {
876 return
877 }
878 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
879 use(unsafe.Pointer(_p0))
880 fd = int(r0)
881 if e1 != 0 {
882 err = errnoErr(e1)
883 }
884 return
885}
886
887// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
888
889func Pathconf(path string, name int) (val int, err error) {
890 var _p0 *byte
891 _p0, err = BytePtrFromString(path)
892 if err != nil {
893 return
894 }
895 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
896 use(unsafe.Pointer(_p0))
897 val = int(r0)
898 if e1 != 0 {
899 err = errnoErr(e1)
900 }
901 return
902}
903
904// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
905
906func Pread(fd int, p []byte, offset int64) (n int, err error) {
907 var _p0 unsafe.Pointer
908 if len(p) > 0 {
909 _p0 = unsafe.Pointer(&p[0])
910 } else {
911 _p0 = unsafe.Pointer(&_zero)
912 }
913 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
914 n = int(r0)
915 if e1 != 0 {
916 err = errnoErr(e1)
917 }
918 return
919}
920
921// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
922
923func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
924 var _p0 unsafe.Pointer
925 if len(p) > 0 {
926 _p0 = unsafe.Pointer(&p[0])
927 } else {
928 _p0 = unsafe.Pointer(&_zero)
929 }
930 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
931 n = int(r0)
932 if e1 != 0 {
933 err = errnoErr(e1)
934 }
935 return
936}
937
938// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
939
940func read(fd int, p []byte) (n int, err error) {
941 var _p0 unsafe.Pointer
942 if len(p) > 0 {
943 _p0 = unsafe.Pointer(&p[0])
944 } else {
945 _p0 = unsafe.Pointer(&_zero)
946 }
947 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
948 n = int(r0)
949 if e1 != 0 {
950 err = errnoErr(e1)
951 }
952 return
953}
954
955// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
956
957func Readlink(path string, buf []byte) (n int, err error) {
958 var _p0 *byte
959 _p0, err = BytePtrFromString(path)
960 if err != nil {
961 return
962 }
963 var _p1 unsafe.Pointer
964 if len(buf) > 0 {
965 _p1 = unsafe.Pointer(&buf[0])
966 } else {
967 _p1 = unsafe.Pointer(&_zero)
968 }
969 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
970 use(unsafe.Pointer(_p0))
971 n = int(r0)
972 if e1 != 0 {
973 err = errnoErr(e1)
974 }
975 return
976}
977
978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
979
980func Rename(from string, to string) (err error) {
981 var _p0 *byte
982 _p0, err = BytePtrFromString(from)
983 if err != nil {
984 return
985 }
986 var _p1 *byte
987 _p1, err = BytePtrFromString(to)
988 if err != nil {
989 return
990 }
991 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
992 use(unsafe.Pointer(_p0))
993 use(unsafe.Pointer(_p1))
994 if e1 != 0 {
995 err = errnoErr(e1)
996 }
997 return
998}
999
1000// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1001
1002func Revoke(path string) (err error) {
1003 var _p0 *byte
1004 _p0, err = BytePtrFromString(path)
1005 if err != nil {
1006 return
1007 }
1008 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1009 use(unsafe.Pointer(_p0))
1010 if e1 != 0 {
1011 err = errnoErr(e1)
1012 }
1013 return
1014}
1015
1016// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1017
1018func Rmdir(path string) (err error) {
1019 var _p0 *byte
1020 _p0, err = BytePtrFromString(path)
1021 if err != nil {
1022 return
1023 }
1024 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1025 use(unsafe.Pointer(_p0))
1026 if e1 != 0 {
1027 err = errnoErr(e1)
1028 }
1029 return
1030}
1031
1032// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1033
1034func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1035 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)
1036 newoffset = int64(int64(r1)<<32 | int64(r0))
1037 if e1 != 0 {
1038 err = errnoErr(e1)
1039 }
1040 return
1041}
1042
1043// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1044
1045func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1046 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1047 if e1 != 0 {
1048 err = errnoErr(e1)
1049 }
1050 return
1051}
1052
1053// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1054
1055func Setegid(egid int) (err error) {
1056 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1057 if e1 != 0 {
1058 err = errnoErr(e1)
1059 }
1060 return
1061}
1062
1063// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1064
1065func Seteuid(euid int) (err error) {
1066 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1067 if e1 != 0 {
1068 err = errnoErr(e1)
1069 }
1070 return
1071}
1072
1073// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1074
1075func Setgid(gid int) (err error) {
1076 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1077 if e1 != 0 {
1078 err = errnoErr(e1)
1079 }
1080 return
1081}
1082
1083// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1084
1085func Setpgid(pid int, pgid int) (err error) {
1086 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1087 if e1 != 0 {
1088 err = errnoErr(e1)
1089 }
1090 return
1091}
1092
1093// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094
1095func Setpriority(which int, who int, prio int) (err error) {
1096 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1097 if e1 != 0 {
1098 err = errnoErr(e1)
1099 }
1100 return
1101}
1102
1103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1104
1105func Setregid(rgid int, egid int) (err error) {
1106 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1107 if e1 != 0 {
1108 err = errnoErr(e1)
1109 }
1110 return
1111}
1112
1113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1114
1115func Setreuid(ruid int, euid int) (err error) {
1116 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1117 if e1 != 0 {
1118 err = errnoErr(e1)
1119 }
1120 return
1121}
1122
1123// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1124
1125func Setrlimit(which int, lim *Rlimit) (err error) {
1126 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1127 if e1 != 0 {
1128 err = errnoErr(e1)
1129 }
1130 return
1131}
1132
1133// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1134
1135func Setsid() (pid int, err error) {
1136 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1137 pid = int(r0)
1138 if e1 != 0 {
1139 err = errnoErr(e1)
1140 }
1141 return
1142}
1143
1144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1145
1146func Settimeofday(tp *Timeval) (err error) {
1147 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1148 if e1 != 0 {
1149 err = errnoErr(e1)
1150 }
1151 return
1152}
1153
1154// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1155
1156func Setuid(uid int) (err error) {
1157 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1158 if e1 != 0 {
1159 err = errnoErr(e1)
1160 }
1161 return
1162}
1163
1164// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1165
1166func Stat(path string, stat *Stat_t) (err error) {
1167 var _p0 *byte
1168 _p0, err = BytePtrFromString(path)
1169 if err != nil {
1170 return
1171 }
1172 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1173 use(unsafe.Pointer(_p0))
1174 if e1 != 0 {
1175 err = errnoErr(e1)
1176 }
1177 return
1178}
1179
1180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1181
1182func Symlink(path string, link string) (err error) {
1183 var _p0 *byte
1184 _p0, err = BytePtrFromString(path)
1185 if err != nil {
1186 return
1187 }
1188 var _p1 *byte
1189 _p1, err = BytePtrFromString(link)
1190 if err != nil {
1191 return
1192 }
1193 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1194 use(unsafe.Pointer(_p0))
1195 use(unsafe.Pointer(_p1))
1196 if e1 != 0 {
1197 err = errnoErr(e1)
1198 }
1199 return
1200}
1201
1202// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1203
1204func Sync() (err error) {
1205 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1206 if e1 != 0 {
1207 err = errnoErr(e1)
1208 }
1209 return
1210}
1211
1212// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1213
1214func Truncate(path string, length int64) (err error) {
1215 var _p0 *byte
1216 _p0, err = BytePtrFromString(path)
1217 if err != nil {
1218 return
1219 }
1220 _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
1221 use(unsafe.Pointer(_p0))
1222 if e1 != 0 {
1223 err = errnoErr(e1)
1224 }
1225 return
1226}
1227
1228// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1229
1230func Umask(newmask int) (oldmask int) {
1231 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1232 oldmask = int(r0)
1233 return
1234}
1235
1236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1237
1238func Unlink(path string) (err error) {
1239 var _p0 *byte
1240 _p0, err = BytePtrFromString(path)
1241 if err != nil {
1242 return
1243 }
1244 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1245 use(unsafe.Pointer(_p0))
1246 if e1 != 0 {
1247 err = errnoErr(e1)
1248 }
1249 return
1250}
1251
1252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1253
1254func Unmount(path string, flags int) (err error) {
1255 var _p0 *byte
1256 _p0, err = BytePtrFromString(path)
1257 if err != nil {
1258 return
1259 }
1260 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1261 use(unsafe.Pointer(_p0))
1262 if e1 != 0 {
1263 err = errnoErr(e1)
1264 }
1265 return
1266}
1267
1268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1269
1270func write(fd int, p []byte) (n int, err error) {
1271 var _p0 unsafe.Pointer
1272 if len(p) > 0 {
1273 _p0 = unsafe.Pointer(&p[0])
1274 } else {
1275 _p0 = unsafe.Pointer(&_zero)
1276 }
1277 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1278 n = int(r0)
1279 if e1 != 0 {
1280 err = errnoErr(e1)
1281 }
1282 return
1283}
1284
1285// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1286
1287func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1288 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)
1289 ret = uintptr(r0)
1290 if e1 != 0 {
1291 err = errnoErr(e1)
1292 }
1293 return
1294}
1295
1296// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1297
1298func munmap(addr uintptr, length uintptr) (err error) {
1299 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1300 if e1 != 0 {
1301 err = errnoErr(e1)
1302 }
1303 return
1304}
1305
1306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1307
1308func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1309 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1310 n = int(r0)
1311 if e1 != 0 {
1312 err = errnoErr(e1)
1313 }
1314 return
1315}
1316
1317// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1318
1319func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1320 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1321 n = int(r0)
1322 if e1 != 0 {
1323 err = errnoErr(e1)
1324 }
1325 return
1326}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_openbsd_386.go
deleted file mode 100644
index 02b3528..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_openbsd_386.go
+++ /dev/null
@@ -1,1386 +0,0 @@
1// mksyscall.pl -l32 -openbsd syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build 386,openbsd
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe(p *[2]_C_int) (err error) {
271 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
272 if e1 != 0 {
273 err = errnoErr(e1)
274 }
275 return
276}
277
278// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
279
280func getdents(fd int, buf []byte) (n int, err error) {
281 var _p0 unsafe.Pointer
282 if len(buf) > 0 {
283 _p0 = unsafe.Pointer(&buf[0])
284 } else {
285 _p0 = unsafe.Pointer(&_zero)
286 }
287 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
288 n = int(r0)
289 if e1 != 0 {
290 err = errnoErr(e1)
291 }
292 return
293}
294
295// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
296
297func Access(path string, mode uint32) (err error) {
298 var _p0 *byte
299 _p0, err = BytePtrFromString(path)
300 if err != nil {
301 return
302 }
303 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
304 use(unsafe.Pointer(_p0))
305 if e1 != 0 {
306 err = errnoErr(e1)
307 }
308 return
309}
310
311// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
312
313func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
314 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
315 if e1 != 0 {
316 err = errnoErr(e1)
317 }
318 return
319}
320
321// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
322
323func Chdir(path string) (err error) {
324 var _p0 *byte
325 _p0, err = BytePtrFromString(path)
326 if err != nil {
327 return
328 }
329 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
330 use(unsafe.Pointer(_p0))
331 if e1 != 0 {
332 err = errnoErr(e1)
333 }
334 return
335}
336
337// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
338
339func Chflags(path string, flags int) (err error) {
340 var _p0 *byte
341 _p0, err = BytePtrFromString(path)
342 if err != nil {
343 return
344 }
345 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
346 use(unsafe.Pointer(_p0))
347 if e1 != 0 {
348 err = errnoErr(e1)
349 }
350 return
351}
352
353// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
354
355func Chmod(path string, mode uint32) (err error) {
356 var _p0 *byte
357 _p0, err = BytePtrFromString(path)
358 if err != nil {
359 return
360 }
361 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
362 use(unsafe.Pointer(_p0))
363 if e1 != 0 {
364 err = errnoErr(e1)
365 }
366 return
367}
368
369// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
370
371func Chown(path string, uid int, gid int) (err error) {
372 var _p0 *byte
373 _p0, err = BytePtrFromString(path)
374 if err != nil {
375 return
376 }
377 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
378 use(unsafe.Pointer(_p0))
379 if e1 != 0 {
380 err = errnoErr(e1)
381 }
382 return
383}
384
385// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
386
387func Chroot(path string) (err error) {
388 var _p0 *byte
389 _p0, err = BytePtrFromString(path)
390 if err != nil {
391 return
392 }
393 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
394 use(unsafe.Pointer(_p0))
395 if e1 != 0 {
396 err = errnoErr(e1)
397 }
398 return
399}
400
401// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
402
403func Close(fd int) (err error) {
404 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
405 if e1 != 0 {
406 err = errnoErr(e1)
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Dup(fd int) (nfd int, err error) {
414 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
415 nfd = int(r0)
416 if e1 != 0 {
417 err = errnoErr(e1)
418 }
419 return
420}
421
422// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
423
424func Dup2(from int, to int) (err error) {
425 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
426 if e1 != 0 {
427 err = errnoErr(e1)
428 }
429 return
430}
431
432// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
433
434func Exit(code int) {
435 Syscall(SYS_EXIT, uintptr(code), 0, 0)
436 return
437}
438
439// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
440
441func Fchdir(fd int) (err error) {
442 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
443 if e1 != 0 {
444 err = errnoErr(e1)
445 }
446 return
447}
448
449// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
450
451func Fchflags(fd int, flags int) (err error) {
452 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
453 if e1 != 0 {
454 err = errnoErr(e1)
455 }
456 return
457}
458
459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
460
461func Fchmod(fd int, mode uint32) (err error) {
462 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
463 if e1 != 0 {
464 err = errnoErr(e1)
465 }
466 return
467}
468
469// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
470
471func Fchown(fd int, uid int, gid int) (err error) {
472 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
473 if e1 != 0 {
474 err = errnoErr(e1)
475 }
476 return
477}
478
479// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
480
481func Flock(fd int, how int) (err error) {
482 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
483 if e1 != 0 {
484 err = errnoErr(e1)
485 }
486 return
487}
488
489// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
490
491func Fpathconf(fd int, name int) (val int, err error) {
492 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
493 val = int(r0)
494 if e1 != 0 {
495 err = errnoErr(e1)
496 }
497 return
498}
499
500// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
501
502func Fstat(fd int, stat *Stat_t) (err error) {
503 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
504 if e1 != 0 {
505 err = errnoErr(e1)
506 }
507 return
508}
509
510// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
511
512func Fstatfs(fd int, stat *Statfs_t) (err error) {
513 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
514 if e1 != 0 {
515 err = errnoErr(e1)
516 }
517 return
518}
519
520// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
521
522func Fsync(fd int) (err error) {
523 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
524 if e1 != 0 {
525 err = errnoErr(e1)
526 }
527 return
528}
529
530// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
531
532func Ftruncate(fd int, length int64) (err error) {
533 _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
534 if e1 != 0 {
535 err = errnoErr(e1)
536 }
537 return
538}
539
540// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
541
542func Getegid() (egid int) {
543 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
544 egid = int(r0)
545 return
546}
547
548// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
549
550func Geteuid() (uid int) {
551 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
552 uid = int(r0)
553 return
554}
555
556// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
557
558func Getgid() (gid int) {
559 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
560 gid = int(r0)
561 return
562}
563
564// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
565
566func Getpgid(pid int) (pgid int, err error) {
567 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
568 pgid = int(r0)
569 if e1 != 0 {
570 err = errnoErr(e1)
571 }
572 return
573}
574
575// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
576
577func Getpgrp() (pgrp int) {
578 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
579 pgrp = int(r0)
580 return
581}
582
583// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
584
585func Getpid() (pid int) {
586 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
587 pid = int(r0)
588 return
589}
590
591// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
592
593func Getppid() (ppid int) {
594 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
595 ppid = int(r0)
596 return
597}
598
599// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
600
601func Getpriority(which int, who int) (prio int, err error) {
602 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
603 prio = int(r0)
604 if e1 != 0 {
605 err = errnoErr(e1)
606 }
607 return
608}
609
610// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
611
612func Getrlimit(which int, lim *Rlimit) (err error) {
613 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
614 if e1 != 0 {
615 err = errnoErr(e1)
616 }
617 return
618}
619
620// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
621
622func Getrusage(who int, rusage *Rusage) (err error) {
623 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
624 if e1 != 0 {
625 err = errnoErr(e1)
626 }
627 return
628}
629
630// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
631
632func Getsid(pid int) (sid int, err error) {
633 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
634 sid = int(r0)
635 if e1 != 0 {
636 err = errnoErr(e1)
637 }
638 return
639}
640
641// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642
643func Gettimeofday(tv *Timeval) (err error) {
644 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
645 if e1 != 0 {
646 err = errnoErr(e1)
647 }
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func Getuid() (uid int) {
654 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
655 uid = int(r0)
656 return
657}
658
659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
660
661func Issetugid() (tainted bool) {
662 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
663 tainted = bool(r0 != 0)
664 return
665}
666
667// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
668
669func Kill(pid int, signum syscall.Signal) (err error) {
670 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
671 if e1 != 0 {
672 err = errnoErr(e1)
673 }
674 return
675}
676
677// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
678
679func Kqueue() (fd int, err error) {
680 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
681 fd = int(r0)
682 if e1 != 0 {
683 err = errnoErr(e1)
684 }
685 return
686}
687
688// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
689
690func Lchown(path string, uid int, gid int) (err error) {
691 var _p0 *byte
692 _p0, err = BytePtrFromString(path)
693 if err != nil {
694 return
695 }
696 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
697 use(unsafe.Pointer(_p0))
698 if e1 != 0 {
699 err = errnoErr(e1)
700 }
701 return
702}
703
704// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
705
706func Link(path string, link string) (err error) {
707 var _p0 *byte
708 _p0, err = BytePtrFromString(path)
709 if err != nil {
710 return
711 }
712 var _p1 *byte
713 _p1, err = BytePtrFromString(link)
714 if err != nil {
715 return
716 }
717 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
718 use(unsafe.Pointer(_p0))
719 use(unsafe.Pointer(_p1))
720 if e1 != 0 {
721 err = errnoErr(e1)
722 }
723 return
724}
725
726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
727
728func Listen(s int, backlog int) (err error) {
729 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
730 if e1 != 0 {
731 err = errnoErr(e1)
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Lstat(path string, stat *Stat_t) (err error) {
739 var _p0 *byte
740 _p0, err = BytePtrFromString(path)
741 if err != nil {
742 return
743 }
744 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
745 use(unsafe.Pointer(_p0))
746 if e1 != 0 {
747 err = errnoErr(e1)
748 }
749 return
750}
751
752// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
753
754func Mkdir(path string, mode uint32) (err error) {
755 var _p0 *byte
756 _p0, err = BytePtrFromString(path)
757 if err != nil {
758 return
759 }
760 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
761 use(unsafe.Pointer(_p0))
762 if e1 != 0 {
763 err = errnoErr(e1)
764 }
765 return
766}
767
768// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
769
770func Mkfifo(path string, mode uint32) (err error) {
771 var _p0 *byte
772 _p0, err = BytePtrFromString(path)
773 if err != nil {
774 return
775 }
776 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
777 use(unsafe.Pointer(_p0))
778 if e1 != 0 {
779 err = errnoErr(e1)
780 }
781 return
782}
783
784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
785
786func Mknod(path string, mode uint32, dev int) (err error) {
787 var _p0 *byte
788 _p0, err = BytePtrFromString(path)
789 if err != nil {
790 return
791 }
792 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
793 use(unsafe.Pointer(_p0))
794 if e1 != 0 {
795 err = errnoErr(e1)
796 }
797 return
798}
799
800// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
801
802func Mlock(b []byte) (err error) {
803 var _p0 unsafe.Pointer
804 if len(b) > 0 {
805 _p0 = unsafe.Pointer(&b[0])
806 } else {
807 _p0 = unsafe.Pointer(&_zero)
808 }
809 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Mlockall(flags int) (err error) {
819 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
820 if e1 != 0 {
821 err = errnoErr(e1)
822 }
823 return
824}
825
826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
827
828func Mprotect(b []byte, prot int) (err error) {
829 var _p0 unsafe.Pointer
830 if len(b) > 0 {
831 _p0 = unsafe.Pointer(&b[0])
832 } else {
833 _p0 = unsafe.Pointer(&_zero)
834 }
835 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
836 if e1 != 0 {
837 err = errnoErr(e1)
838 }
839 return
840}
841
842// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
843
844func Munlock(b []byte) (err error) {
845 var _p0 unsafe.Pointer
846 if len(b) > 0 {
847 _p0 = unsafe.Pointer(&b[0])
848 } else {
849 _p0 = unsafe.Pointer(&_zero)
850 }
851 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
852 if e1 != 0 {
853 err = errnoErr(e1)
854 }
855 return
856}
857
858// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
859
860func Munlockall() (err error) {
861 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
862 if e1 != 0 {
863 err = errnoErr(e1)
864 }
865 return
866}
867
868// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
869
870func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
871 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
872 if e1 != 0 {
873 err = errnoErr(e1)
874 }
875 return
876}
877
878// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
879
880func Open(path string, mode int, perm uint32) (fd int, err error) {
881 var _p0 *byte
882 _p0, err = BytePtrFromString(path)
883 if err != nil {
884 return
885 }
886 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
887 use(unsafe.Pointer(_p0))
888 fd = int(r0)
889 if e1 != 0 {
890 err = errnoErr(e1)
891 }
892 return
893}
894
895// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
896
897func Pathconf(path string, name int) (val int, err error) {
898 var _p0 *byte
899 _p0, err = BytePtrFromString(path)
900 if err != nil {
901 return
902 }
903 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
904 use(unsafe.Pointer(_p0))
905 val = int(r0)
906 if e1 != 0 {
907 err = errnoErr(e1)
908 }
909 return
910}
911
912// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
913
914func Pread(fd int, p []byte, offset int64) (n int, err error) {
915 var _p0 unsafe.Pointer
916 if len(p) > 0 {
917 _p0 = unsafe.Pointer(&p[0])
918 } else {
919 _p0 = unsafe.Pointer(&_zero)
920 }
921 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
922 n = int(r0)
923 if e1 != 0 {
924 err = errnoErr(e1)
925 }
926 return
927}
928
929// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
930
931func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
932 var _p0 unsafe.Pointer
933 if len(p) > 0 {
934 _p0 = unsafe.Pointer(&p[0])
935 } else {
936 _p0 = unsafe.Pointer(&_zero)
937 }
938 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
939 n = int(r0)
940 if e1 != 0 {
941 err = errnoErr(e1)
942 }
943 return
944}
945
946// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
947
948func read(fd int, p []byte) (n int, err error) {
949 var _p0 unsafe.Pointer
950 if len(p) > 0 {
951 _p0 = unsafe.Pointer(&p[0])
952 } else {
953 _p0 = unsafe.Pointer(&_zero)
954 }
955 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
956 n = int(r0)
957 if e1 != 0 {
958 err = errnoErr(e1)
959 }
960 return
961}
962
963// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
964
965func Readlink(path string, buf []byte) (n int, err error) {
966 var _p0 *byte
967 _p0, err = BytePtrFromString(path)
968 if err != nil {
969 return
970 }
971 var _p1 unsafe.Pointer
972 if len(buf) > 0 {
973 _p1 = unsafe.Pointer(&buf[0])
974 } else {
975 _p1 = unsafe.Pointer(&_zero)
976 }
977 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
978 use(unsafe.Pointer(_p0))
979 n = int(r0)
980 if e1 != 0 {
981 err = errnoErr(e1)
982 }
983 return
984}
985
986// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
987
988func Rename(from string, to string) (err error) {
989 var _p0 *byte
990 _p0, err = BytePtrFromString(from)
991 if err != nil {
992 return
993 }
994 var _p1 *byte
995 _p1, err = BytePtrFromString(to)
996 if err != nil {
997 return
998 }
999 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1000 use(unsafe.Pointer(_p0))
1001 use(unsafe.Pointer(_p1))
1002 if e1 != 0 {
1003 err = errnoErr(e1)
1004 }
1005 return
1006}
1007
1008// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1009
1010func Revoke(path string) (err error) {
1011 var _p0 *byte
1012 _p0, err = BytePtrFromString(path)
1013 if err != nil {
1014 return
1015 }
1016 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1017 use(unsafe.Pointer(_p0))
1018 if e1 != 0 {
1019 err = errnoErr(e1)
1020 }
1021 return
1022}
1023
1024// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1025
1026func Rmdir(path string) (err error) {
1027 var _p0 *byte
1028 _p0, err = BytePtrFromString(path)
1029 if err != nil {
1030 return
1031 }
1032 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1033 use(unsafe.Pointer(_p0))
1034 if e1 != 0 {
1035 err = errnoErr(e1)
1036 }
1037 return
1038}
1039
1040// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1041
1042func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1043 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)
1044 newoffset = int64(int64(r1)<<32 | int64(r0))
1045 if e1 != 0 {
1046 err = errnoErr(e1)
1047 }
1048 return
1049}
1050
1051// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1052
1053func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1054 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1055 if e1 != 0 {
1056 err = errnoErr(e1)
1057 }
1058 return
1059}
1060
1061// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1062
1063func Setegid(egid int) (err error) {
1064 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1065 if e1 != 0 {
1066 err = errnoErr(e1)
1067 }
1068 return
1069}
1070
1071// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1072
1073func Seteuid(euid int) (err error) {
1074 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1075 if e1 != 0 {
1076 err = errnoErr(e1)
1077 }
1078 return
1079}
1080
1081// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1082
1083func Setgid(gid int) (err error) {
1084 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1085 if e1 != 0 {
1086 err = errnoErr(e1)
1087 }
1088 return
1089}
1090
1091// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1092
1093func Setlogin(name string) (err error) {
1094 var _p0 *byte
1095 _p0, err = BytePtrFromString(name)
1096 if err != nil {
1097 return
1098 }
1099 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1100 use(unsafe.Pointer(_p0))
1101 if e1 != 0 {
1102 err = errnoErr(e1)
1103 }
1104 return
1105}
1106
1107// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1108
1109func Setpgid(pid int, pgid int) (err error) {
1110 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1111 if e1 != 0 {
1112 err = errnoErr(e1)
1113 }
1114 return
1115}
1116
1117// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1118
1119func Setpriority(which int, who int, prio int) (err error) {
1120 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1121 if e1 != 0 {
1122 err = errnoErr(e1)
1123 }
1124 return
1125}
1126
1127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1128
1129func Setregid(rgid int, egid int) (err error) {
1130 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1131 if e1 != 0 {
1132 err = errnoErr(e1)
1133 }
1134 return
1135}
1136
1137// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1138
1139func Setreuid(ruid int, euid int) (err error) {
1140 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1141 if e1 != 0 {
1142 err = errnoErr(e1)
1143 }
1144 return
1145}
1146
1147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1148
1149func Setresgid(rgid int, egid int, sgid int) (err error) {
1150 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1151 if e1 != 0 {
1152 err = errnoErr(e1)
1153 }
1154 return
1155}
1156
1157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1158
1159func Setresuid(ruid int, euid int, suid int) (err error) {
1160 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1161 if e1 != 0 {
1162 err = errnoErr(e1)
1163 }
1164 return
1165}
1166
1167// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1168
1169func Setrlimit(which int, lim *Rlimit) (err error) {
1170 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1171 if e1 != 0 {
1172 err = errnoErr(e1)
1173 }
1174 return
1175}
1176
1177// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1178
1179func Setsid() (pid int, err error) {
1180 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1181 pid = int(r0)
1182 if e1 != 0 {
1183 err = errnoErr(e1)
1184 }
1185 return
1186}
1187
1188// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1189
1190func Settimeofday(tp *Timeval) (err error) {
1191 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1192 if e1 != 0 {
1193 err = errnoErr(e1)
1194 }
1195 return
1196}
1197
1198// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1199
1200func Setuid(uid int) (err error) {
1201 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1202 if e1 != 0 {
1203 err = errnoErr(e1)
1204 }
1205 return
1206}
1207
1208// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1209
1210func Stat(path string, stat *Stat_t) (err error) {
1211 var _p0 *byte
1212 _p0, err = BytePtrFromString(path)
1213 if err != nil {
1214 return
1215 }
1216 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1217 use(unsafe.Pointer(_p0))
1218 if e1 != 0 {
1219 err = errnoErr(e1)
1220 }
1221 return
1222}
1223
1224// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1225
1226func Statfs(path string, stat *Statfs_t) (err error) {
1227 var _p0 *byte
1228 _p0, err = BytePtrFromString(path)
1229 if err != nil {
1230 return
1231 }
1232 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1233 use(unsafe.Pointer(_p0))
1234 if e1 != 0 {
1235 err = errnoErr(e1)
1236 }
1237 return
1238}
1239
1240// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1241
1242func Symlink(path string, link string) (err error) {
1243 var _p0 *byte
1244 _p0, err = BytePtrFromString(path)
1245 if err != nil {
1246 return
1247 }
1248 var _p1 *byte
1249 _p1, err = BytePtrFromString(link)
1250 if err != nil {
1251 return
1252 }
1253 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1254 use(unsafe.Pointer(_p0))
1255 use(unsafe.Pointer(_p1))
1256 if e1 != 0 {
1257 err = errnoErr(e1)
1258 }
1259 return
1260}
1261
1262// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1263
1264func Sync() (err error) {
1265 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1266 if e1 != 0 {
1267 err = errnoErr(e1)
1268 }
1269 return
1270}
1271
1272// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1273
1274func Truncate(path string, length int64) (err error) {
1275 var _p0 *byte
1276 _p0, err = BytePtrFromString(path)
1277 if err != nil {
1278 return
1279 }
1280 _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
1281 use(unsafe.Pointer(_p0))
1282 if e1 != 0 {
1283 err = errnoErr(e1)
1284 }
1285 return
1286}
1287
1288// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1289
1290func Umask(newmask int) (oldmask int) {
1291 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1292 oldmask = int(r0)
1293 return
1294}
1295
1296// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1297
1298func Unlink(path string) (err error) {
1299 var _p0 *byte
1300 _p0, err = BytePtrFromString(path)
1301 if err != nil {
1302 return
1303 }
1304 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1305 use(unsafe.Pointer(_p0))
1306 if e1 != 0 {
1307 err = errnoErr(e1)
1308 }
1309 return
1310}
1311
1312// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1313
1314func Unmount(path string, flags int) (err error) {
1315 var _p0 *byte
1316 _p0, err = BytePtrFromString(path)
1317 if err != nil {
1318 return
1319 }
1320 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1321 use(unsafe.Pointer(_p0))
1322 if e1 != 0 {
1323 err = errnoErr(e1)
1324 }
1325 return
1326}
1327
1328// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1329
1330func write(fd int, p []byte) (n int, err error) {
1331 var _p0 unsafe.Pointer
1332 if len(p) > 0 {
1333 _p0 = unsafe.Pointer(&p[0])
1334 } else {
1335 _p0 = unsafe.Pointer(&_zero)
1336 }
1337 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1338 n = int(r0)
1339 if e1 != 0 {
1340 err = errnoErr(e1)
1341 }
1342 return
1343}
1344
1345// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1346
1347func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1348 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)
1349 ret = uintptr(r0)
1350 if e1 != 0 {
1351 err = errnoErr(e1)
1352 }
1353 return
1354}
1355
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357
1358func munmap(addr uintptr, length uintptr) (err error) {
1359 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1369 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1370 n = int(r0)
1371 if e1 != 0 {
1372 err = errnoErr(e1)
1373 }
1374 return
1375}
1376
1377// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1378
1379func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1380 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1381 n = int(r0)
1382 if e1 != 0 {
1383 err = errnoErr(e1)
1384 }
1385 return
1386}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
deleted file mode 100644
index 7dc2b7e..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
+++ /dev/null
@@ -1,1386 +0,0 @@
1// mksyscall.pl -openbsd syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,openbsd
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
19 n = int(r0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24}
25
26// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28func setgroups(ngid int, gid *_Gid_t) (err error) {
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30 if e1 != 0 {
31 err = errnoErr(e1)
32 }
33 return
34}
35
36// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
37
38func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
40 wpid = int(r0)
41 if e1 != 0 {
42 err = errnoErr(e1)
43 }
44 return
45}
46
47// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48
49func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
51 fd = int(r0)
52 if e1 != 0 {
53 err = errnoErr(e1)
54 }
55 return
56}
57
58// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
59
60func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
62 if e1 != 0 {
63 err = errnoErr(e1)
64 }
65 return
66}
67
68// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
69
70func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
72 if e1 != 0 {
73 err = errnoErr(e1)
74 }
75 return
76}
77
78// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
79
80func socket(domain int, typ int, proto int) (fd int, err error) {
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
82 fd = int(r0)
83 if e1 != 0 {
84 err = errnoErr(e1)
85 }
86 return
87}
88
89// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
90
91func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
93 if e1 != 0 {
94 err = errnoErr(e1)
95 }
96 return
97}
98
99// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
100
101func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
113 if e1 != 0 {
114 err = errnoErr(e1)
115 }
116 return
117}
118
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120
121func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Shutdown(s int, how int) (err error) {
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
133 if e1 != 0 {
134 err = errnoErr(e1)
135 }
136 return
137}
138
139// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
140
141func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
143 if e1 != 0 {
144 err = errnoErr(e1)
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
152 var _p0 unsafe.Pointer
153 if len(p) > 0 {
154 _p0 = unsafe.Pointer(&p[0])
155 } else {
156 _p0 = unsafe.Pointer(&_zero)
157 }
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
159 n = int(r0)
160 if e1 != 0 {
161 err = errnoErr(e1)
162 }
163 return
164}
165
166// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167
168func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
169 var _p0 unsafe.Pointer
170 if len(buf) > 0 {
171 _p0 = unsafe.Pointer(&buf[0])
172 } else {
173 _p0 = unsafe.Pointer(&_zero)
174 }
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
176 if e1 != 0 {
177 err = errnoErr(e1)
178 }
179 return
180}
181
182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183
184func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
186 n = int(r0)
187 if e1 != 0 {
188 err = errnoErr(e1)
189 }
190 return
191}
192
193// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194
195func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
197 n = int(r0)
198 if e1 != 0 {
199 err = errnoErr(e1)
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
208 n = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
218 var _p0 unsafe.Pointer
219 if len(mib) > 0 {
220 _p0 = unsafe.Pointer(&mib[0])
221 } else {
222 _p0 = unsafe.Pointer(&_zero)
223 }
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func utimes(path string, timeval *[2]Timeval) (err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(path)
236 if err != nil {
237 return
238 }
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
240 use(unsafe.Pointer(_p0))
241 if e1 != 0 {
242 err = errnoErr(e1)
243 }
244 return
245}
246
247// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248
249func futimes(fd int, timeval *[2]Timeval) (err error) {
250 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
251 if e1 != 0 {
252 err = errnoErr(e1)
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func fcntl(fd int, cmd int, arg int) (val int, err error) {
260 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
261 val = int(r0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func pipe(p *[2]_C_int) (err error) {
271 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
272 if e1 != 0 {
273 err = errnoErr(e1)
274 }
275 return
276}
277
278// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
279
280func getdents(fd int, buf []byte) (n int, err error) {
281 var _p0 unsafe.Pointer
282 if len(buf) > 0 {
283 _p0 = unsafe.Pointer(&buf[0])
284 } else {
285 _p0 = unsafe.Pointer(&_zero)
286 }
287 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
288 n = int(r0)
289 if e1 != 0 {
290 err = errnoErr(e1)
291 }
292 return
293}
294
295// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
296
297func Access(path string, mode uint32) (err error) {
298 var _p0 *byte
299 _p0, err = BytePtrFromString(path)
300 if err != nil {
301 return
302 }
303 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
304 use(unsafe.Pointer(_p0))
305 if e1 != 0 {
306 err = errnoErr(e1)
307 }
308 return
309}
310
311// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
312
313func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
314 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
315 if e1 != 0 {
316 err = errnoErr(e1)
317 }
318 return
319}
320
321// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
322
323func Chdir(path string) (err error) {
324 var _p0 *byte
325 _p0, err = BytePtrFromString(path)
326 if err != nil {
327 return
328 }
329 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
330 use(unsafe.Pointer(_p0))
331 if e1 != 0 {
332 err = errnoErr(e1)
333 }
334 return
335}
336
337// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
338
339func Chflags(path string, flags int) (err error) {
340 var _p0 *byte
341 _p0, err = BytePtrFromString(path)
342 if err != nil {
343 return
344 }
345 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
346 use(unsafe.Pointer(_p0))
347 if e1 != 0 {
348 err = errnoErr(e1)
349 }
350 return
351}
352
353// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
354
355func Chmod(path string, mode uint32) (err error) {
356 var _p0 *byte
357 _p0, err = BytePtrFromString(path)
358 if err != nil {
359 return
360 }
361 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
362 use(unsafe.Pointer(_p0))
363 if e1 != 0 {
364 err = errnoErr(e1)
365 }
366 return
367}
368
369// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
370
371func Chown(path string, uid int, gid int) (err error) {
372 var _p0 *byte
373 _p0, err = BytePtrFromString(path)
374 if err != nil {
375 return
376 }
377 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
378 use(unsafe.Pointer(_p0))
379 if e1 != 0 {
380 err = errnoErr(e1)
381 }
382 return
383}
384
385// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
386
387func Chroot(path string) (err error) {
388 var _p0 *byte
389 _p0, err = BytePtrFromString(path)
390 if err != nil {
391 return
392 }
393 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
394 use(unsafe.Pointer(_p0))
395 if e1 != 0 {
396 err = errnoErr(e1)
397 }
398 return
399}
400
401// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
402
403func Close(fd int) (err error) {
404 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
405 if e1 != 0 {
406 err = errnoErr(e1)
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Dup(fd int) (nfd int, err error) {
414 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
415 nfd = int(r0)
416 if e1 != 0 {
417 err = errnoErr(e1)
418 }
419 return
420}
421
422// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
423
424func Dup2(from int, to int) (err error) {
425 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
426 if e1 != 0 {
427 err = errnoErr(e1)
428 }
429 return
430}
431
432// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
433
434func Exit(code int) {
435 Syscall(SYS_EXIT, uintptr(code), 0, 0)
436 return
437}
438
439// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
440
441func Fchdir(fd int) (err error) {
442 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
443 if e1 != 0 {
444 err = errnoErr(e1)
445 }
446 return
447}
448
449// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
450
451func Fchflags(fd int, flags int) (err error) {
452 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
453 if e1 != 0 {
454 err = errnoErr(e1)
455 }
456 return
457}
458
459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
460
461func Fchmod(fd int, mode uint32) (err error) {
462 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
463 if e1 != 0 {
464 err = errnoErr(e1)
465 }
466 return
467}
468
469// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
470
471func Fchown(fd int, uid int, gid int) (err error) {
472 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
473 if e1 != 0 {
474 err = errnoErr(e1)
475 }
476 return
477}
478
479// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
480
481func Flock(fd int, how int) (err error) {
482 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
483 if e1 != 0 {
484 err = errnoErr(e1)
485 }
486 return
487}
488
489// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
490
491func Fpathconf(fd int, name int) (val int, err error) {
492 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
493 val = int(r0)
494 if e1 != 0 {
495 err = errnoErr(e1)
496 }
497 return
498}
499
500// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
501
502func Fstat(fd int, stat *Stat_t) (err error) {
503 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
504 if e1 != 0 {
505 err = errnoErr(e1)
506 }
507 return
508}
509
510// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
511
512func Fstatfs(fd int, stat *Statfs_t) (err error) {
513 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
514 if e1 != 0 {
515 err = errnoErr(e1)
516 }
517 return
518}
519
520// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
521
522func Fsync(fd int) (err error) {
523 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
524 if e1 != 0 {
525 err = errnoErr(e1)
526 }
527 return
528}
529
530// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
531
532func Ftruncate(fd int, length int64) (err error) {
533 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length))
534 if e1 != 0 {
535 err = errnoErr(e1)
536 }
537 return
538}
539
540// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
541
542func Getegid() (egid int) {
543 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
544 egid = int(r0)
545 return
546}
547
548// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
549
550func Geteuid() (uid int) {
551 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
552 uid = int(r0)
553 return
554}
555
556// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
557
558func Getgid() (gid int) {
559 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
560 gid = int(r0)
561 return
562}
563
564// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
565
566func Getpgid(pid int) (pgid int, err error) {
567 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
568 pgid = int(r0)
569 if e1 != 0 {
570 err = errnoErr(e1)
571 }
572 return
573}
574
575// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
576
577func Getpgrp() (pgrp int) {
578 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
579 pgrp = int(r0)
580 return
581}
582
583// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
584
585func Getpid() (pid int) {
586 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
587 pid = int(r0)
588 return
589}
590
591// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
592
593func Getppid() (ppid int) {
594 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
595 ppid = int(r0)
596 return
597}
598
599// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
600
601func Getpriority(which int, who int) (prio int, err error) {
602 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
603 prio = int(r0)
604 if e1 != 0 {
605 err = errnoErr(e1)
606 }
607 return
608}
609
610// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
611
612func Getrlimit(which int, lim *Rlimit) (err error) {
613 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
614 if e1 != 0 {
615 err = errnoErr(e1)
616 }
617 return
618}
619
620// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
621
622func Getrusage(who int, rusage *Rusage) (err error) {
623 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
624 if e1 != 0 {
625 err = errnoErr(e1)
626 }
627 return
628}
629
630// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
631
632func Getsid(pid int) (sid int, err error) {
633 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
634 sid = int(r0)
635 if e1 != 0 {
636 err = errnoErr(e1)
637 }
638 return
639}
640
641// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642
643func Gettimeofday(tv *Timeval) (err error) {
644 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
645 if e1 != 0 {
646 err = errnoErr(e1)
647 }
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func Getuid() (uid int) {
654 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
655 uid = int(r0)
656 return
657}
658
659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
660
661func Issetugid() (tainted bool) {
662 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
663 tainted = bool(r0 != 0)
664 return
665}
666
667// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
668
669func Kill(pid int, signum syscall.Signal) (err error) {
670 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
671 if e1 != 0 {
672 err = errnoErr(e1)
673 }
674 return
675}
676
677// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
678
679func Kqueue() (fd int, err error) {
680 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
681 fd = int(r0)
682 if e1 != 0 {
683 err = errnoErr(e1)
684 }
685 return
686}
687
688// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
689
690func Lchown(path string, uid int, gid int) (err error) {
691 var _p0 *byte
692 _p0, err = BytePtrFromString(path)
693 if err != nil {
694 return
695 }
696 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
697 use(unsafe.Pointer(_p0))
698 if e1 != 0 {
699 err = errnoErr(e1)
700 }
701 return
702}
703
704// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
705
706func Link(path string, link string) (err error) {
707 var _p0 *byte
708 _p0, err = BytePtrFromString(path)
709 if err != nil {
710 return
711 }
712 var _p1 *byte
713 _p1, err = BytePtrFromString(link)
714 if err != nil {
715 return
716 }
717 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
718 use(unsafe.Pointer(_p0))
719 use(unsafe.Pointer(_p1))
720 if e1 != 0 {
721 err = errnoErr(e1)
722 }
723 return
724}
725
726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
727
728func Listen(s int, backlog int) (err error) {
729 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
730 if e1 != 0 {
731 err = errnoErr(e1)
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Lstat(path string, stat *Stat_t) (err error) {
739 var _p0 *byte
740 _p0, err = BytePtrFromString(path)
741 if err != nil {
742 return
743 }
744 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
745 use(unsafe.Pointer(_p0))
746 if e1 != 0 {
747 err = errnoErr(e1)
748 }
749 return
750}
751
752// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
753
754func Mkdir(path string, mode uint32) (err error) {
755 var _p0 *byte
756 _p0, err = BytePtrFromString(path)
757 if err != nil {
758 return
759 }
760 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
761 use(unsafe.Pointer(_p0))
762 if e1 != 0 {
763 err = errnoErr(e1)
764 }
765 return
766}
767
768// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
769
770func Mkfifo(path string, mode uint32) (err error) {
771 var _p0 *byte
772 _p0, err = BytePtrFromString(path)
773 if err != nil {
774 return
775 }
776 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
777 use(unsafe.Pointer(_p0))
778 if e1 != 0 {
779 err = errnoErr(e1)
780 }
781 return
782}
783
784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
785
786func Mknod(path string, mode uint32, dev int) (err error) {
787 var _p0 *byte
788 _p0, err = BytePtrFromString(path)
789 if err != nil {
790 return
791 }
792 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
793 use(unsafe.Pointer(_p0))
794 if e1 != 0 {
795 err = errnoErr(e1)
796 }
797 return
798}
799
800// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
801
802func Mlock(b []byte) (err error) {
803 var _p0 unsafe.Pointer
804 if len(b) > 0 {
805 _p0 = unsafe.Pointer(&b[0])
806 } else {
807 _p0 = unsafe.Pointer(&_zero)
808 }
809 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
810 if e1 != 0 {
811 err = errnoErr(e1)
812 }
813 return
814}
815
816// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
817
818func Mlockall(flags int) (err error) {
819 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
820 if e1 != 0 {
821 err = errnoErr(e1)
822 }
823 return
824}
825
826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
827
828func Mprotect(b []byte, prot int) (err error) {
829 var _p0 unsafe.Pointer
830 if len(b) > 0 {
831 _p0 = unsafe.Pointer(&b[0])
832 } else {
833 _p0 = unsafe.Pointer(&_zero)
834 }
835 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
836 if e1 != 0 {
837 err = errnoErr(e1)
838 }
839 return
840}
841
842// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
843
844func Munlock(b []byte) (err error) {
845 var _p0 unsafe.Pointer
846 if len(b) > 0 {
847 _p0 = unsafe.Pointer(&b[0])
848 } else {
849 _p0 = unsafe.Pointer(&_zero)
850 }
851 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
852 if e1 != 0 {
853 err = errnoErr(e1)
854 }
855 return
856}
857
858// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
859
860func Munlockall() (err error) {
861 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
862 if e1 != 0 {
863 err = errnoErr(e1)
864 }
865 return
866}
867
868// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
869
870func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
871 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
872 if e1 != 0 {
873 err = errnoErr(e1)
874 }
875 return
876}
877
878// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
879
880func Open(path string, mode int, perm uint32) (fd int, err error) {
881 var _p0 *byte
882 _p0, err = BytePtrFromString(path)
883 if err != nil {
884 return
885 }
886 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
887 use(unsafe.Pointer(_p0))
888 fd = int(r0)
889 if e1 != 0 {
890 err = errnoErr(e1)
891 }
892 return
893}
894
895// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
896
897func Pathconf(path string, name int) (val int, err error) {
898 var _p0 *byte
899 _p0, err = BytePtrFromString(path)
900 if err != nil {
901 return
902 }
903 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
904 use(unsafe.Pointer(_p0))
905 val = int(r0)
906 if e1 != 0 {
907 err = errnoErr(e1)
908 }
909 return
910}
911
912// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
913
914func Pread(fd int, p []byte, offset int64) (n int, err error) {
915 var _p0 unsafe.Pointer
916 if len(p) > 0 {
917 _p0 = unsafe.Pointer(&p[0])
918 } else {
919 _p0 = unsafe.Pointer(&_zero)
920 }
921 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)
922 n = int(r0)
923 if e1 != 0 {
924 err = errnoErr(e1)
925 }
926 return
927}
928
929// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
930
931func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
932 var _p0 unsafe.Pointer
933 if len(p) > 0 {
934 _p0 = unsafe.Pointer(&p[0])
935 } else {
936 _p0 = unsafe.Pointer(&_zero)
937 }
938 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)
939 n = int(r0)
940 if e1 != 0 {
941 err = errnoErr(e1)
942 }
943 return
944}
945
946// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
947
948func read(fd int, p []byte) (n int, err error) {
949 var _p0 unsafe.Pointer
950 if len(p) > 0 {
951 _p0 = unsafe.Pointer(&p[0])
952 } else {
953 _p0 = unsafe.Pointer(&_zero)
954 }
955 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
956 n = int(r0)
957 if e1 != 0 {
958 err = errnoErr(e1)
959 }
960 return
961}
962
963// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
964
965func Readlink(path string, buf []byte) (n int, err error) {
966 var _p0 *byte
967 _p0, err = BytePtrFromString(path)
968 if err != nil {
969 return
970 }
971 var _p1 unsafe.Pointer
972 if len(buf) > 0 {
973 _p1 = unsafe.Pointer(&buf[0])
974 } else {
975 _p1 = unsafe.Pointer(&_zero)
976 }
977 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
978 use(unsafe.Pointer(_p0))
979 n = int(r0)
980 if e1 != 0 {
981 err = errnoErr(e1)
982 }
983 return
984}
985
986// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
987
988func Rename(from string, to string) (err error) {
989 var _p0 *byte
990 _p0, err = BytePtrFromString(from)
991 if err != nil {
992 return
993 }
994 var _p1 *byte
995 _p1, err = BytePtrFromString(to)
996 if err != nil {
997 return
998 }
999 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1000 use(unsafe.Pointer(_p0))
1001 use(unsafe.Pointer(_p1))
1002 if e1 != 0 {
1003 err = errnoErr(e1)
1004 }
1005 return
1006}
1007
1008// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1009
1010func Revoke(path string) (err error) {
1011 var _p0 *byte
1012 _p0, err = BytePtrFromString(path)
1013 if err != nil {
1014 return
1015 }
1016 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
1017 use(unsafe.Pointer(_p0))
1018 if e1 != 0 {
1019 err = errnoErr(e1)
1020 }
1021 return
1022}
1023
1024// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1025
1026func Rmdir(path string) (err error) {
1027 var _p0 *byte
1028 _p0, err = BytePtrFromString(path)
1029 if err != nil {
1030 return
1031 }
1032 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
1033 use(unsafe.Pointer(_p0))
1034 if e1 != 0 {
1035 err = errnoErr(e1)
1036 }
1037 return
1038}
1039
1040// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1041
1042func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1043 r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0)
1044 newoffset = int64(r0)
1045 if e1 != 0 {
1046 err = errnoErr(e1)
1047 }
1048 return
1049}
1050
1051// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1052
1053func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1054 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1055 if e1 != 0 {
1056 err = errnoErr(e1)
1057 }
1058 return
1059}
1060
1061// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1062
1063func Setegid(egid int) (err error) {
1064 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
1065 if e1 != 0 {
1066 err = errnoErr(e1)
1067 }
1068 return
1069}
1070
1071// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1072
1073func Seteuid(euid int) (err error) {
1074 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
1075 if e1 != 0 {
1076 err = errnoErr(e1)
1077 }
1078 return
1079}
1080
1081// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1082
1083func Setgid(gid int) (err error) {
1084 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
1085 if e1 != 0 {
1086 err = errnoErr(e1)
1087 }
1088 return
1089}
1090
1091// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1092
1093func Setlogin(name string) (err error) {
1094 var _p0 *byte
1095 _p0, err = BytePtrFromString(name)
1096 if err != nil {
1097 return
1098 }
1099 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
1100 use(unsafe.Pointer(_p0))
1101 if e1 != 0 {
1102 err = errnoErr(e1)
1103 }
1104 return
1105}
1106
1107// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1108
1109func Setpgid(pid int, pgid int) (err error) {
1110 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1111 if e1 != 0 {
1112 err = errnoErr(e1)
1113 }
1114 return
1115}
1116
1117// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1118
1119func Setpriority(which int, who int, prio int) (err error) {
1120 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1121 if e1 != 0 {
1122 err = errnoErr(e1)
1123 }
1124 return
1125}
1126
1127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1128
1129func Setregid(rgid int, egid int) (err error) {
1130 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1131 if e1 != 0 {
1132 err = errnoErr(e1)
1133 }
1134 return
1135}
1136
1137// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1138
1139func Setreuid(ruid int, euid int) (err error) {
1140 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1141 if e1 != 0 {
1142 err = errnoErr(e1)
1143 }
1144 return
1145}
1146
1147// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1148
1149func Setresgid(rgid int, egid int, sgid int) (err error) {
1150 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1151 if e1 != 0 {
1152 err = errnoErr(e1)
1153 }
1154 return
1155}
1156
1157// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1158
1159func Setresuid(ruid int, euid int, suid int) (err error) {
1160 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1161 if e1 != 0 {
1162 err = errnoErr(e1)
1163 }
1164 return
1165}
1166
1167// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1168
1169func Setrlimit(which int, lim *Rlimit) (err error) {
1170 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1171 if e1 != 0 {
1172 err = errnoErr(e1)
1173 }
1174 return
1175}
1176
1177// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1178
1179func Setsid() (pid int, err error) {
1180 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1181 pid = int(r0)
1182 if e1 != 0 {
1183 err = errnoErr(e1)
1184 }
1185 return
1186}
1187
1188// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1189
1190func Settimeofday(tp *Timeval) (err error) {
1191 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1192 if e1 != 0 {
1193 err = errnoErr(e1)
1194 }
1195 return
1196}
1197
1198// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1199
1200func Setuid(uid int) (err error) {
1201 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
1202 if e1 != 0 {
1203 err = errnoErr(e1)
1204 }
1205 return
1206}
1207
1208// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1209
1210func Stat(path string, stat *Stat_t) (err error) {
1211 var _p0 *byte
1212 _p0, err = BytePtrFromString(path)
1213 if err != nil {
1214 return
1215 }
1216 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1217 use(unsafe.Pointer(_p0))
1218 if e1 != 0 {
1219 err = errnoErr(e1)
1220 }
1221 return
1222}
1223
1224// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1225
1226func Statfs(path string, stat *Statfs_t) (err error) {
1227 var _p0 *byte
1228 _p0, err = BytePtrFromString(path)
1229 if err != nil {
1230 return
1231 }
1232 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1233 use(unsafe.Pointer(_p0))
1234 if e1 != 0 {
1235 err = errnoErr(e1)
1236 }
1237 return
1238}
1239
1240// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1241
1242func Symlink(path string, link string) (err error) {
1243 var _p0 *byte
1244 _p0, err = BytePtrFromString(path)
1245 if err != nil {
1246 return
1247 }
1248 var _p1 *byte
1249 _p1, err = BytePtrFromString(link)
1250 if err != nil {
1251 return
1252 }
1253 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1254 use(unsafe.Pointer(_p0))
1255 use(unsafe.Pointer(_p1))
1256 if e1 != 0 {
1257 err = errnoErr(e1)
1258 }
1259 return
1260}
1261
1262// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1263
1264func Sync() (err error) {
1265 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
1266 if e1 != 0 {
1267 err = errnoErr(e1)
1268 }
1269 return
1270}
1271
1272// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1273
1274func Truncate(path string, length int64) (err error) {
1275 var _p0 *byte
1276 _p0, err = BytePtrFromString(path)
1277 if err != nil {
1278 return
1279 }
1280 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length))
1281 use(unsafe.Pointer(_p0))
1282 if e1 != 0 {
1283 err = errnoErr(e1)
1284 }
1285 return
1286}
1287
1288// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1289
1290func Umask(newmask int) (oldmask int) {
1291 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
1292 oldmask = int(r0)
1293 return
1294}
1295
1296// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1297
1298func Unlink(path string) (err error) {
1299 var _p0 *byte
1300 _p0, err = BytePtrFromString(path)
1301 if err != nil {
1302 return
1303 }
1304 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
1305 use(unsafe.Pointer(_p0))
1306 if e1 != 0 {
1307 err = errnoErr(e1)
1308 }
1309 return
1310}
1311
1312// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1313
1314func Unmount(path string, flags int) (err error) {
1315 var _p0 *byte
1316 _p0, err = BytePtrFromString(path)
1317 if err != nil {
1318 return
1319 }
1320 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1321 use(unsafe.Pointer(_p0))
1322 if e1 != 0 {
1323 err = errnoErr(e1)
1324 }
1325 return
1326}
1327
1328// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1329
1330func write(fd int, p []byte) (n int, err error) {
1331 var _p0 unsafe.Pointer
1332 if len(p) > 0 {
1333 _p0 = unsafe.Pointer(&p[0])
1334 } else {
1335 _p0 = unsafe.Pointer(&_zero)
1336 }
1337 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1338 n = int(r0)
1339 if e1 != 0 {
1340 err = errnoErr(e1)
1341 }
1342 return
1343}
1344
1345// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1346
1347func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1348 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0)
1349 ret = uintptr(r0)
1350 if e1 != 0 {
1351 err = errnoErr(e1)
1352 }
1353 return
1354}
1355
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357
1358func munmap(addr uintptr, length uintptr) (err error) {
1359 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1369 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1370 n = int(r0)
1371 if e1 != 0 {
1372 err = errnoErr(e1)
1373 }
1374 return
1375}
1376
1377// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1378
1379func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1380 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
1381 n = int(r0)
1382 if e1 != 0 {
1383 err = errnoErr(e1)
1384 }
1385 return
1386}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
deleted file mode 100644
index 8d2a836..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
+++ /dev/null
@@ -1,1559 +0,0 @@
1// mksyscall_solaris.pl syscall_solaris.go syscall_solaris_amd64.go
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3
4// +build amd64,solaris
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13//go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so"
14//go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
15//go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
16//go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
17//go:cgo_import_dynamic libc_utimes utimes "libc.so"
18//go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
19//go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
20//go:cgo_import_dynamic libc_futimesat futimesat "libc.so"
21//go:cgo_import_dynamic libc_accept accept "libsocket.so"
22//go:cgo_import_dynamic libc_recvmsg recvmsg "libsocket.so"
23//go:cgo_import_dynamic libc_sendmsg sendmsg "libsocket.so"
24//go:cgo_import_dynamic libc_acct acct "libc.so"
25//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
26//go:cgo_import_dynamic libc_access access "libc.so"
27//go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
28//go:cgo_import_dynamic libc_chdir chdir "libc.so"
29//go:cgo_import_dynamic libc_chmod chmod "libc.so"
30//go:cgo_import_dynamic libc_chown chown "libc.so"
31//go:cgo_import_dynamic libc_chroot chroot "libc.so"
32//go:cgo_import_dynamic libc_close close "libc.so"
33//go:cgo_import_dynamic libc_creat creat "libc.so"
34//go:cgo_import_dynamic libc_dup dup "libc.so"
35//go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
36//go:cgo_import_dynamic libc_exit exit "libc.so"
37//go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
38//go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
39//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
40//go:cgo_import_dynamic libc_fchown fchown "libc.so"
41//go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
42//go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so"
43//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
44//go:cgo_import_dynamic libc_fstat fstat "libc.so"
45//go:cgo_import_dynamic libc_getdents getdents "libc.so"
46//go:cgo_import_dynamic libc_getgid getgid "libc.so"
47//go:cgo_import_dynamic libc_getpid getpid "libc.so"
48//go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
49//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
50//go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
51//go:cgo_import_dynamic libc_getegid getegid "libc.so"
52//go:cgo_import_dynamic libc_getppid getppid "libc.so"
53//go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
54//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
55//go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
56//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
57//go:cgo_import_dynamic libc_getuid getuid "libc.so"
58//go:cgo_import_dynamic libc_kill kill "libc.so"
59//go:cgo_import_dynamic libc_lchown lchown "libc.so"
60//go:cgo_import_dynamic libc_link link "libc.so"
61//go:cgo_import_dynamic libc_listen listen "libsocket.so"
62//go:cgo_import_dynamic libc_lstat lstat "libc.so"
63//go:cgo_import_dynamic libc_madvise madvise "libc.so"
64//go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
65//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
66//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
67//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
68//go:cgo_import_dynamic libc_mknod mknod "libc.so"
69//go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
70//go:cgo_import_dynamic libc_mlock mlock "libc.so"
71//go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
72//go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
73//go:cgo_import_dynamic libc_munlock munlock "libc.so"
74//go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
75//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
76//go:cgo_import_dynamic libc_open open "libc.so"
77//go:cgo_import_dynamic libc_openat openat "libc.so"
78//go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
79//go:cgo_import_dynamic libc_pause pause "libc.so"
80//go:cgo_import_dynamic libc_pread pread "libc.so"
81//go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
82//go:cgo_import_dynamic libc_read read "libc.so"
83//go:cgo_import_dynamic libc_readlink readlink "libc.so"
84//go:cgo_import_dynamic libc_rename rename "libc.so"
85//go:cgo_import_dynamic libc_renameat renameat "libc.so"
86//go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
87//go:cgo_import_dynamic libc_lseek lseek "libc.so"
88//go:cgo_import_dynamic libc_setegid setegid "libc.so"
89//go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
90//go:cgo_import_dynamic libc_setgid setgid "libc.so"
91//go:cgo_import_dynamic libc_sethostname sethostname "libc.so"
92//go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
93//go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
94//go:cgo_import_dynamic libc_setregid setregid "libc.so"
95//go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
96//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
97//go:cgo_import_dynamic libc_setsid setsid "libc.so"
98//go:cgo_import_dynamic libc_setuid setuid "libc.so"
99//go:cgo_import_dynamic libc_shutdown shutdown "libsocket.so"
100//go:cgo_import_dynamic libc_stat stat "libc.so"
101//go:cgo_import_dynamic libc_symlink symlink "libc.so"
102//go:cgo_import_dynamic libc_sync sync "libc.so"
103//go:cgo_import_dynamic libc_times times "libc.so"
104//go:cgo_import_dynamic libc_truncate truncate "libc.so"
105//go:cgo_import_dynamic libc_fsync fsync "libc.so"
106//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
107//go:cgo_import_dynamic libc_umask umask "libc.so"
108//go:cgo_import_dynamic libc_uname uname "libc.so"
109//go:cgo_import_dynamic libc_umount umount "libc.so"
110//go:cgo_import_dynamic libc_unlink unlink "libc.so"
111//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
112//go:cgo_import_dynamic libc_ustat ustat "libc.so"
113//go:cgo_import_dynamic libc_utime utime "libc.so"
114//go:cgo_import_dynamic libc_bind bind "libsocket.so"
115//go:cgo_import_dynamic libc_connect connect "libsocket.so"
116//go:cgo_import_dynamic libc_mmap mmap "libc.so"
117//go:cgo_import_dynamic libc_munmap munmap "libc.so"
118//go:cgo_import_dynamic libc_sendto sendto "libsocket.so"
119//go:cgo_import_dynamic libc_socket socket "libsocket.so"
120//go:cgo_import_dynamic libc_socketpair socketpair "libsocket.so"
121//go:cgo_import_dynamic libc_write write "libc.so"
122//go:cgo_import_dynamic libc_getsockopt getsockopt "libsocket.so"
123//go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so"
124//go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so"
125//go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
126//go:cgo_import_dynamic libc_sysconf sysconf "libc.so"
127
128//go:linkname procgetsockname libc_getsockname
129//go:linkname procGetcwd libc_getcwd
130//go:linkname procgetgroups libc_getgroups
131//go:linkname procsetgroups libc_setgroups
132//go:linkname procutimes libc_utimes
133//go:linkname procutimensat libc_utimensat
134//go:linkname procfcntl libc_fcntl
135//go:linkname procfutimesat libc_futimesat
136//go:linkname procaccept libc_accept
137//go:linkname procrecvmsg libc_recvmsg
138//go:linkname procsendmsg libc_sendmsg
139//go:linkname procacct libc_acct
140//go:linkname procioctl libc_ioctl
141//go:linkname procAccess libc_access
142//go:linkname procAdjtime libc_adjtime
143//go:linkname procChdir libc_chdir
144//go:linkname procChmod libc_chmod
145//go:linkname procChown libc_chown
146//go:linkname procChroot libc_chroot
147//go:linkname procClose libc_close
148//go:linkname procCreat libc_creat
149//go:linkname procDup libc_dup
150//go:linkname procDup2 libc_dup2
151//go:linkname procExit libc_exit
152//go:linkname procFchdir libc_fchdir
153//go:linkname procFchmod libc_fchmod
154//go:linkname procFchmodat libc_fchmodat
155//go:linkname procFchown libc_fchown
156//go:linkname procFchownat libc_fchownat
157//go:linkname procFdatasync libc_fdatasync
158//go:linkname procFpathconf libc_fpathconf
159//go:linkname procFstat libc_fstat
160//go:linkname procGetdents libc_getdents
161//go:linkname procGetgid libc_getgid
162//go:linkname procGetpid libc_getpid
163//go:linkname procGetpgid libc_getpgid
164//go:linkname procGetpgrp libc_getpgrp
165//go:linkname procGeteuid libc_geteuid
166//go:linkname procGetegid libc_getegid
167//go:linkname procGetppid libc_getppid
168//go:linkname procGetpriority libc_getpriority
169//go:linkname procGetrlimit libc_getrlimit
170//go:linkname procGetrusage libc_getrusage
171//go:linkname procGettimeofday libc_gettimeofday
172//go:linkname procGetuid libc_getuid
173//go:linkname procKill libc_kill
174//go:linkname procLchown libc_lchown
175//go:linkname procLink libc_link
176//go:linkname proclisten libc_listen
177//go:linkname procLstat libc_lstat
178//go:linkname procMadvise libc_madvise
179//go:linkname procMkdir libc_mkdir
180//go:linkname procMkdirat libc_mkdirat
181//go:linkname procMkfifo libc_mkfifo
182//go:linkname procMkfifoat libc_mkfifoat
183//go:linkname procMknod libc_mknod
184//go:linkname procMknodat libc_mknodat
185//go:linkname procMlock libc_mlock
186//go:linkname procMlockall libc_mlockall
187//go:linkname procMprotect libc_mprotect
188//go:linkname procMunlock libc_munlock
189//go:linkname procMunlockall libc_munlockall
190//go:linkname procNanosleep libc_nanosleep
191//go:linkname procOpen libc_open
192//go:linkname procOpenat libc_openat
193//go:linkname procPathconf libc_pathconf
194//go:linkname procPause libc_pause
195//go:linkname procPread libc_pread
196//go:linkname procPwrite libc_pwrite
197//go:linkname procread libc_read
198//go:linkname procReadlink libc_readlink
199//go:linkname procRename libc_rename
200//go:linkname procRenameat libc_renameat
201//go:linkname procRmdir libc_rmdir
202//go:linkname proclseek libc_lseek
203//go:linkname procSetegid libc_setegid
204//go:linkname procSeteuid libc_seteuid
205//go:linkname procSetgid libc_setgid
206//go:linkname procSethostname libc_sethostname
207//go:linkname procSetpgid libc_setpgid
208//go:linkname procSetpriority libc_setpriority
209//go:linkname procSetregid libc_setregid
210//go:linkname procSetreuid libc_setreuid
211//go:linkname procSetrlimit libc_setrlimit
212//go:linkname procSetsid libc_setsid
213//go:linkname procSetuid libc_setuid
214//go:linkname procshutdown libc_shutdown
215//go:linkname procStat libc_stat
216//go:linkname procSymlink libc_symlink
217//go:linkname procSync libc_sync
218//go:linkname procTimes libc_times
219//go:linkname procTruncate libc_truncate
220//go:linkname procFsync libc_fsync
221//go:linkname procFtruncate libc_ftruncate
222//go:linkname procUmask libc_umask
223//go:linkname procUname libc_uname
224//go:linkname procumount libc_umount
225//go:linkname procUnlink libc_unlink
226//go:linkname procUnlinkat libc_unlinkat
227//go:linkname procUstat libc_ustat
228//go:linkname procUtime libc_utime
229//go:linkname procbind libc_bind
230//go:linkname procconnect libc_connect
231//go:linkname procmmap libc_mmap
232//go:linkname procmunmap libc_munmap
233//go:linkname procsendto libc_sendto
234//go:linkname procsocket libc_socket
235//go:linkname procsocketpair libc_socketpair
236//go:linkname procwrite libc_write
237//go:linkname procgetsockopt libc_getsockopt
238//go:linkname procgetpeername libc_getpeername
239//go:linkname procsetsockopt libc_setsockopt
240//go:linkname procrecvfrom libc_recvfrom
241//go:linkname procsysconf libc_sysconf
242
243var (
244 procgetsockname,
245 procGetcwd,
246 procgetgroups,
247 procsetgroups,
248 procutimes,
249 procutimensat,
250 procfcntl,
251 procfutimesat,
252 procaccept,
253 procrecvmsg,
254 procsendmsg,
255 procacct,
256 procioctl,
257 procAccess,
258 procAdjtime,
259 procChdir,
260 procChmod,
261 procChown,
262 procChroot,
263 procClose,
264 procCreat,
265 procDup,
266 procDup2,
267 procExit,
268 procFchdir,
269 procFchmod,
270 procFchmodat,
271 procFchown,
272 procFchownat,
273 procFdatasync,
274 procFpathconf,
275 procFstat,
276 procGetdents,
277 procGetgid,
278 procGetpid,
279 procGetpgid,
280 procGetpgrp,
281 procGeteuid,
282 procGetegid,
283 procGetppid,
284 procGetpriority,
285 procGetrlimit,
286 procGetrusage,
287 procGettimeofday,
288 procGetuid,
289 procKill,
290 procLchown,
291 procLink,
292 proclisten,
293 procLstat,
294 procMadvise,
295 procMkdir,
296 procMkdirat,
297 procMkfifo,
298 procMkfifoat,
299 procMknod,
300 procMknodat,
301 procMlock,
302 procMlockall,
303 procMprotect,
304 procMunlock,
305 procMunlockall,
306 procNanosleep,
307 procOpen,
308 procOpenat,
309 procPathconf,
310 procPause,
311 procPread,
312 procPwrite,
313 procread,
314 procReadlink,
315 procRename,
316 procRenameat,
317 procRmdir,
318 proclseek,
319 procSetegid,
320 procSeteuid,
321 procSetgid,
322 procSethostname,
323 procSetpgid,
324 procSetpriority,
325 procSetregid,
326 procSetreuid,
327 procSetrlimit,
328 procSetsid,
329 procSetuid,
330 procshutdown,
331 procStat,
332 procSymlink,
333 procSync,
334 procTimes,
335 procTruncate,
336 procFsync,
337 procFtruncate,
338 procUmask,
339 procUname,
340 procumount,
341 procUnlink,
342 procUnlinkat,
343 procUstat,
344 procUtime,
345 procbind,
346 procconnect,
347 procmmap,
348 procmunmap,
349 procsendto,
350 procsocket,
351 procsocketpair,
352 procwrite,
353 procgetsockopt,
354 procgetpeername,
355 procsetsockopt,
356 procrecvfrom,
357 procsysconf syscallFunc
358)
359
360func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
361 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
362 if e1 != 0 {
363 err = e1
364 }
365 return
366}
367
368func Getcwd(buf []byte) (n int, err error) {
369 var _p0 *byte
370 if len(buf) > 0 {
371 _p0 = &buf[0]
372 }
373 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
374 n = int(r0)
375 if e1 != 0 {
376 err = e1
377 }
378 return
379}
380
381func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
382 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
383 n = int(r0)
384 if e1 != 0 {
385 err = e1
386 }
387 return
388}
389
390func setgroups(ngid int, gid *_Gid_t) (err error) {
391 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
392 if e1 != 0 {
393 err = e1
394 }
395 return
396}
397
398func utimes(path string, times *[2]Timeval) (err error) {
399 var _p0 *byte
400 _p0, err = BytePtrFromString(path)
401 if err != nil {
402 return
403 }
404 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
405 use(unsafe.Pointer(_p0))
406 if e1 != 0 {
407 err = e1
408 }
409 return
410}
411
412func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) {
413 var _p0 *byte
414 _p0, err = BytePtrFromString(path)
415 if err != nil {
416 return
417 }
418 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
419 use(unsafe.Pointer(_p0))
420 if e1 != 0 {
421 err = e1
422 }
423 return
424}
425
426func fcntl(fd int, cmd int, arg int) (val int, err error) {
427 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
428 val = int(r0)
429 if e1 != 0 {
430 err = e1
431 }
432 return
433}
434
435func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) {
436 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0)
437 if e1 != 0 {
438 err = e1
439 }
440 return
441}
442
443func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
444 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
445 fd = int(r0)
446 if e1 != 0 {
447 err = e1
448 }
449 return
450}
451
452func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
453 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
454 n = int(r0)
455 if e1 != 0 {
456 err = e1
457 }
458 return
459}
460
461func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
462 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
463 n = int(r0)
464 if e1 != 0 {
465 err = e1
466 }
467 return
468}
469
470func acct(path *byte) (err error) {
471 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0)
472 if e1 != 0 {
473 err = e1
474 }
475 return
476}
477
478func ioctl(fd int, req int, arg uintptr) (err error) {
479 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
480 if e1 != 0 {
481 err = e1
482 }
483 return
484}
485
486func Access(path string, mode uint32) (err error) {
487 var _p0 *byte
488 _p0, err = BytePtrFromString(path)
489 if err != nil {
490 return
491 }
492 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
493 use(unsafe.Pointer(_p0))
494 if e1 != 0 {
495 err = e1
496 }
497 return
498}
499
500func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
501 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0)
502 if e1 != 0 {
503 err = e1
504 }
505 return
506}
507
508func Chdir(path string) (err error) {
509 var _p0 *byte
510 _p0, err = BytePtrFromString(path)
511 if err != nil {
512 return
513 }
514 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
515 use(unsafe.Pointer(_p0))
516 if e1 != 0 {
517 err = e1
518 }
519 return
520}
521
522func Chmod(path string, mode uint32) (err error) {
523 var _p0 *byte
524 _p0, err = BytePtrFromString(path)
525 if err != nil {
526 return
527 }
528 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
529 use(unsafe.Pointer(_p0))
530 if e1 != 0 {
531 err = e1
532 }
533 return
534}
535
536func Chown(path string, uid int, gid int) (err error) {
537 var _p0 *byte
538 _p0, err = BytePtrFromString(path)
539 if err != nil {
540 return
541 }
542 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
543 use(unsafe.Pointer(_p0))
544 if e1 != 0 {
545 err = e1
546 }
547 return
548}
549
550func Chroot(path string) (err error) {
551 var _p0 *byte
552 _p0, err = BytePtrFromString(path)
553 if err != nil {
554 return
555 }
556 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
557 use(unsafe.Pointer(_p0))
558 if e1 != 0 {
559 err = e1
560 }
561 return
562}
563
564func Close(fd int) (err error) {
565 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0)
566 if e1 != 0 {
567 err = e1
568 }
569 return
570}
571
572func Creat(path string, mode uint32) (fd int, err error) {
573 var _p0 *byte
574 _p0, err = BytePtrFromString(path)
575 if err != nil {
576 return
577 }
578 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
579 use(unsafe.Pointer(_p0))
580 fd = int(r0)
581 if e1 != 0 {
582 err = e1
583 }
584 return
585}
586
587func Dup(fd int) (nfd int, err error) {
588 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
589 nfd = int(r0)
590 if e1 != 0 {
591 err = e1
592 }
593 return
594}
595
596func Dup2(oldfd int, newfd int) (err error) {
597 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0)
598 if e1 != 0 {
599 err = e1
600 }
601 return
602}
603
604func Exit(code int) {
605 sysvicall6(uintptr(unsafe.Pointer(&procExit)), 1, uintptr(code), 0, 0, 0, 0, 0)
606 return
607}
608
609func Fchdir(fd int) (err error) {
610 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
611 if e1 != 0 {
612 err = e1
613 }
614 return
615}
616
617func Fchmod(fd int, mode uint32) (err error) {
618 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
619 if e1 != 0 {
620 err = e1
621 }
622 return
623}
624
625func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
626 var _p0 *byte
627 _p0, err = BytePtrFromString(path)
628 if err != nil {
629 return
630 }
631 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
632 use(unsafe.Pointer(_p0))
633 if e1 != 0 {
634 err = e1
635 }
636 return
637}
638
639func Fchown(fd int, uid int, gid int) (err error) {
640 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
641 if e1 != 0 {
642 err = e1
643 }
644 return
645}
646
647func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
648 var _p0 *byte
649 _p0, err = BytePtrFromString(path)
650 if err != nil {
651 return
652 }
653 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
654 use(unsafe.Pointer(_p0))
655 if e1 != 0 {
656 err = e1
657 }
658 return
659}
660
661func Fdatasync(fd int) (err error) {
662 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
663 if e1 != 0 {
664 err = e1
665 }
666 return
667}
668
669func Fpathconf(fd int, name int) (val int, err error) {
670 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
671 val = int(r0)
672 if e1 != 0 {
673 err = e1
674 }
675 return
676}
677
678func Fstat(fd int, stat *Stat_t) (err error) {
679 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
680 if e1 != 0 {
681 err = e1
682 }
683 return
684}
685
686func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) {
687 var _p0 *byte
688 if len(buf) > 0 {
689 _p0 = &buf[0]
690 }
691 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
692 n = int(r0)
693 if e1 != 0 {
694 err = e1
695 }
696 return
697}
698
699func Getgid() (gid int) {
700 r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetgid)), 0, 0, 0, 0, 0, 0, 0)
701 gid = int(r0)
702 return
703}
704
705func Getpid() (pid int) {
706 r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpid)), 0, 0, 0, 0, 0, 0, 0)
707 pid = int(r0)
708 return
709}
710
711func Getpgid(pid int) (pgid int, err error) {
712 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
713 pgid = int(r0)
714 if e1 != 0 {
715 err = e1
716 }
717 return
718}
719
720func Getpgrp() (pgid int, err error) {
721 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0)
722 pgid = int(r0)
723 if e1 != 0 {
724 err = e1
725 }
726 return
727}
728
729func Geteuid() (euid int) {
730 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGeteuid)), 0, 0, 0, 0, 0, 0, 0)
731 euid = int(r0)
732 return
733}
734
735func Getegid() (egid int) {
736 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetegid)), 0, 0, 0, 0, 0, 0, 0)
737 egid = int(r0)
738 return
739}
740
741func Getppid() (ppid int) {
742 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetppid)), 0, 0, 0, 0, 0, 0, 0)
743 ppid = int(r0)
744 return
745}
746
747func Getpriority(which int, who int) (n int, err error) {
748 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
749 n = int(r0)
750 if e1 != 0 {
751 err = e1
752 }
753 return
754}
755
756func Getrlimit(which int, lim *Rlimit) (err error) {
757 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
758 if e1 != 0 {
759 err = e1
760 }
761 return
762}
763
764func Getrusage(who int, rusage *Rusage) (err error) {
765 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0)
766 if e1 != 0 {
767 err = e1
768 }
769 return
770}
771
772func Gettimeofday(tv *Timeval) (err error) {
773 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0)
774 if e1 != 0 {
775 err = e1
776 }
777 return
778}
779
780func Getuid() (uid int) {
781 r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetuid)), 0, 0, 0, 0, 0, 0, 0)
782 uid = int(r0)
783 return
784}
785
786func Kill(pid int, signum syscall.Signal) (err error) {
787 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
788 if e1 != 0 {
789 err = e1
790 }
791 return
792}
793
794func Lchown(path string, uid int, gid int) (err error) {
795 var _p0 *byte
796 _p0, err = BytePtrFromString(path)
797 if err != nil {
798 return
799 }
800 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
801 use(unsafe.Pointer(_p0))
802 if e1 != 0 {
803 err = e1
804 }
805 return
806}
807
808func Link(path string, link string) (err error) {
809 var _p0 *byte
810 _p0, err = BytePtrFromString(path)
811 if err != nil {
812 return
813 }
814 var _p1 *byte
815 _p1, err = BytePtrFromString(link)
816 if err != nil {
817 return
818 }
819 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
820 use(unsafe.Pointer(_p0))
821 use(unsafe.Pointer(_p1))
822 if e1 != 0 {
823 err = e1
824 }
825 return
826}
827
828func Listen(s int, backlog int) (err error) {
829 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
830 if e1 != 0 {
831 err = e1
832 }
833 return
834}
835
836func Lstat(path string, stat *Stat_t) (err error) {
837 var _p0 *byte
838 _p0, err = BytePtrFromString(path)
839 if err != nil {
840 return
841 }
842 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
843 use(unsafe.Pointer(_p0))
844 if e1 != 0 {
845 err = e1
846 }
847 return
848}
849
850func Madvise(b []byte, advice int) (err error) {
851 var _p0 *byte
852 if len(b) > 0 {
853 _p0 = &b[0]
854 }
855 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0)
856 if e1 != 0 {
857 err = e1
858 }
859 return
860}
861
862func Mkdir(path string, mode uint32) (err error) {
863 var _p0 *byte
864 _p0, err = BytePtrFromString(path)
865 if err != nil {
866 return
867 }
868 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
869 use(unsafe.Pointer(_p0))
870 if e1 != 0 {
871 err = e1
872 }
873 return
874}
875
876func Mkdirat(dirfd int, path string, mode uint32) (err error) {
877 var _p0 *byte
878 _p0, err = BytePtrFromString(path)
879 if err != nil {
880 return
881 }
882 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
883 use(unsafe.Pointer(_p0))
884 if e1 != 0 {
885 err = e1
886 }
887 return
888}
889
890func Mkfifo(path string, mode uint32) (err error) {
891 var _p0 *byte
892 _p0, err = BytePtrFromString(path)
893 if err != nil {
894 return
895 }
896 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
897 use(unsafe.Pointer(_p0))
898 if e1 != 0 {
899 err = e1
900 }
901 return
902}
903
904func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
905 var _p0 *byte
906 _p0, err = BytePtrFromString(path)
907 if err != nil {
908 return
909 }
910 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
911 use(unsafe.Pointer(_p0))
912 if e1 != 0 {
913 err = e1
914 }
915 return
916}
917
918func Mknod(path string, mode uint32, dev int) (err error) {
919 var _p0 *byte
920 _p0, err = BytePtrFromString(path)
921 if err != nil {
922 return
923 }
924 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0)
925 use(unsafe.Pointer(_p0))
926 if e1 != 0 {
927 err = e1
928 }
929 return
930}
931
932func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
933 var _p0 *byte
934 _p0, err = BytePtrFromString(path)
935 if err != nil {
936 return
937 }
938 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
939 use(unsafe.Pointer(_p0))
940 if e1 != 0 {
941 err = e1
942 }
943 return
944}
945
946func Mlock(b []byte) (err error) {
947 var _p0 *byte
948 if len(b) > 0 {
949 _p0 = &b[0]
950 }
951 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
952 if e1 != 0 {
953 err = e1
954 }
955 return
956}
957
958func Mlockall(flags int) (err error) {
959 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0)
960 if e1 != 0 {
961 err = e1
962 }
963 return
964}
965
966func Mprotect(b []byte, prot int) (err error) {
967 var _p0 *byte
968 if len(b) > 0 {
969 _p0 = &b[0]
970 }
971 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0)
972 if e1 != 0 {
973 err = e1
974 }
975 return
976}
977
978func Munlock(b []byte) (err error) {
979 var _p0 *byte
980 if len(b) > 0 {
981 _p0 = &b[0]
982 }
983 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
984 if e1 != 0 {
985 err = e1
986 }
987 return
988}
989
990func Munlockall() (err error) {
991 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0)
992 if e1 != 0 {
993 err = e1
994 }
995 return
996}
997
998func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
999 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0)
1000 if e1 != 0 {
1001 err = e1
1002 }
1003 return
1004}
1005
1006func Open(path string, mode int, perm uint32) (fd int, err error) {
1007 var _p0 *byte
1008 _p0, err = BytePtrFromString(path)
1009 if err != nil {
1010 return
1011 }
1012 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
1013 use(unsafe.Pointer(_p0))
1014 fd = int(r0)
1015 if e1 != 0 {
1016 err = e1
1017 }
1018 return
1019}
1020
1021func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
1022 var _p0 *byte
1023 _p0, err = BytePtrFromString(path)
1024 if err != nil {
1025 return
1026 }
1027 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
1028 use(unsafe.Pointer(_p0))
1029 fd = int(r0)
1030 if e1 != 0 {
1031 err = e1
1032 }
1033 return
1034}
1035
1036func Pathconf(path string, name int) (val int, err error) {
1037 var _p0 *byte
1038 _p0, err = BytePtrFromString(path)
1039 if err != nil {
1040 return
1041 }
1042 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0)
1043 use(unsafe.Pointer(_p0))
1044 val = int(r0)
1045 if e1 != 0 {
1046 err = e1
1047 }
1048 return
1049}
1050
1051func Pause() (err error) {
1052 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0)
1053 if e1 != 0 {
1054 err = e1
1055 }
1056 return
1057}
1058
1059func Pread(fd int, p []byte, offset int64) (n int, err error) {
1060 var _p0 *byte
1061 if len(p) > 0 {
1062 _p0 = &p[0]
1063 }
1064 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1065 n = int(r0)
1066 if e1 != 0 {
1067 err = e1
1068 }
1069 return
1070}
1071
1072func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1073 var _p0 *byte
1074 if len(p) > 0 {
1075 _p0 = &p[0]
1076 }
1077 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
1078 n = int(r0)
1079 if e1 != 0 {
1080 err = e1
1081 }
1082 return
1083}
1084
1085func read(fd int, p []byte) (n int, err error) {
1086 var _p0 *byte
1087 if len(p) > 0 {
1088 _p0 = &p[0]
1089 }
1090 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1091 n = int(r0)
1092 if e1 != 0 {
1093 err = e1
1094 }
1095 return
1096}
1097
1098func Readlink(path string, buf []byte) (n int, err error) {
1099 var _p0 *byte
1100 _p0, err = BytePtrFromString(path)
1101 if err != nil {
1102 return
1103 }
1104 var _p1 *byte
1105 if len(buf) > 0 {
1106 _p1 = &buf[0]
1107 }
1108 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0)
1109 use(unsafe.Pointer(_p0))
1110 n = int(r0)
1111 if e1 != 0 {
1112 err = e1
1113 }
1114 return
1115}
1116
1117func Rename(from string, to string) (err error) {
1118 var _p0 *byte
1119 _p0, err = BytePtrFromString(from)
1120 if err != nil {
1121 return
1122 }
1123 var _p1 *byte
1124 _p1, err = BytePtrFromString(to)
1125 if err != nil {
1126 return
1127 }
1128 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1129 use(unsafe.Pointer(_p0))
1130 use(unsafe.Pointer(_p1))
1131 if e1 != 0 {
1132 err = e1
1133 }
1134 return
1135}
1136
1137func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
1138 var _p0 *byte
1139 _p0, err = BytePtrFromString(oldpath)
1140 if err != nil {
1141 return
1142 }
1143 var _p1 *byte
1144 _p1, err = BytePtrFromString(newpath)
1145 if err != nil {
1146 return
1147 }
1148 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1149 use(unsafe.Pointer(_p0))
1150 use(unsafe.Pointer(_p1))
1151 if e1 != 0 {
1152 err = e1
1153 }
1154 return
1155}
1156
1157func Rmdir(path string) (err error) {
1158 var _p0 *byte
1159 _p0, err = BytePtrFromString(path)
1160 if err != nil {
1161 return
1162 }
1163 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1164 use(unsafe.Pointer(_p0))
1165 if e1 != 0 {
1166 err = e1
1167 }
1168 return
1169}
1170
1171func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1172 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
1173 newoffset = int64(r0)
1174 if e1 != 0 {
1175 err = e1
1176 }
1177 return
1178}
1179
1180func Setegid(egid int) (err error) {
1181 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
1182 if e1 != 0 {
1183 err = e1
1184 }
1185 return
1186}
1187
1188func Seteuid(euid int) (err error) {
1189 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
1190 if e1 != 0 {
1191 err = e1
1192 }
1193 return
1194}
1195
1196func Setgid(gid int) (err error) {
1197 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
1198 if e1 != 0 {
1199 err = e1
1200 }
1201 return
1202}
1203
1204func Sethostname(p []byte) (err error) {
1205 var _p0 *byte
1206 if len(p) > 0 {
1207 _p0 = &p[0]
1208 }
1209 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0)
1210 if e1 != 0 {
1211 err = e1
1212 }
1213 return
1214}
1215
1216func Setpgid(pid int, pgid int) (err error) {
1217 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
1218 if e1 != 0 {
1219 err = e1
1220 }
1221 return
1222}
1223
1224func Setpriority(which int, who int, prio int) (err error) {
1225 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
1226 if e1 != 0 {
1227 err = e1
1228 }
1229 return
1230}
1231
1232func Setregid(rgid int, egid int) (err error) {
1233 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
1234 if e1 != 0 {
1235 err = e1
1236 }
1237 return
1238}
1239
1240func Setreuid(ruid int, euid int) (err error) {
1241 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
1242 if e1 != 0 {
1243 err = e1
1244 }
1245 return
1246}
1247
1248func Setrlimit(which int, lim *Rlimit) (err error) {
1249 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
1250 if e1 != 0 {
1251 err = e1
1252 }
1253 return
1254}
1255
1256func Setsid() (pid int, err error) {
1257 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0)
1258 pid = int(r0)
1259 if e1 != 0 {
1260 err = e1
1261 }
1262 return
1263}
1264
1265func Setuid(uid int) (err error) {
1266 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
1267 if e1 != 0 {
1268 err = e1
1269 }
1270 return
1271}
1272
1273func Shutdown(s int, how int) (err error) {
1274 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
1275 if e1 != 0 {
1276 err = e1
1277 }
1278 return
1279}
1280
1281func Stat(path string, stat *Stat_t) (err error) {
1282 var _p0 *byte
1283 _p0, err = BytePtrFromString(path)
1284 if err != nil {
1285 return
1286 }
1287 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
1288 use(unsafe.Pointer(_p0))
1289 if e1 != 0 {
1290 err = e1
1291 }
1292 return
1293}
1294
1295func Symlink(path string, link string) (err error) {
1296 var _p0 *byte
1297 _p0, err = BytePtrFromString(path)
1298 if err != nil {
1299 return
1300 }
1301 var _p1 *byte
1302 _p1, err = BytePtrFromString(link)
1303 if err != nil {
1304 return
1305 }
1306 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
1307 use(unsafe.Pointer(_p0))
1308 use(unsafe.Pointer(_p1))
1309 if e1 != 0 {
1310 err = e1
1311 }
1312 return
1313}
1314
1315func Sync() (err error) {
1316 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0)
1317 if e1 != 0 {
1318 err = e1
1319 }
1320 return
1321}
1322
1323func Times(tms *Tms) (ticks uintptr, err error) {
1324 r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0)
1325 ticks = uintptr(r0)
1326 if e1 != 0 {
1327 err = e1
1328 }
1329 return
1330}
1331
1332func Truncate(path string, length int64) (err error) {
1333 var _p0 *byte
1334 _p0, err = BytePtrFromString(path)
1335 if err != nil {
1336 return
1337 }
1338 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
1339 use(unsafe.Pointer(_p0))
1340 if e1 != 0 {
1341 err = e1
1342 }
1343 return
1344}
1345
1346func Fsync(fd int) (err error) {
1347 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
1348 if e1 != 0 {
1349 err = e1
1350 }
1351 return
1352}
1353
1354func Ftruncate(fd int, length int64) (err error) {
1355 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
1356 if e1 != 0 {
1357 err = e1
1358 }
1359 return
1360}
1361
1362func Umask(mask int) (oldmask int) {
1363 r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0)
1364 oldmask = int(r0)
1365 return
1366}
1367
1368func Uname(buf *Utsname) (err error) {
1369 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
1370 if e1 != 0 {
1371 err = e1
1372 }
1373 return
1374}
1375
1376func Unmount(target string, flags int) (err error) {
1377 var _p0 *byte
1378 _p0, err = BytePtrFromString(target)
1379 if err != nil {
1380 return
1381 }
1382 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0)
1383 use(unsafe.Pointer(_p0))
1384 if e1 != 0 {
1385 err = e1
1386 }
1387 return
1388}
1389
1390func Unlink(path string) (err error) {
1391 var _p0 *byte
1392 _p0, err = BytePtrFromString(path)
1393 if err != nil {
1394 return
1395 }
1396 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
1397 use(unsafe.Pointer(_p0))
1398 if e1 != 0 {
1399 err = e1
1400 }
1401 return
1402}
1403
1404func Unlinkat(dirfd int, path string) (err error) {
1405 var _p0 *byte
1406 _p0, err = BytePtrFromString(path)
1407 if err != nil {
1408 return
1409 }
1410 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0)
1411 use(unsafe.Pointer(_p0))
1412 if e1 != 0 {
1413 err = e1
1414 }
1415 return
1416}
1417
1418func Ustat(dev int, ubuf *Ustat_t) (err error) {
1419 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0)
1420 if e1 != 0 {
1421 err = e1
1422 }
1423 return
1424}
1425
1426func Utime(path string, buf *Utimbuf) (err error) {
1427 var _p0 *byte
1428 _p0, err = BytePtrFromString(path)
1429 if err != nil {
1430 return
1431 }
1432 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
1433 use(unsafe.Pointer(_p0))
1434 if e1 != 0 {
1435 err = e1
1436 }
1437 return
1438}
1439
1440func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1441 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procbind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
1442 if e1 != 0 {
1443 err = e1
1444 }
1445 return
1446}
1447
1448func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1449 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procconnect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
1450 if e1 != 0 {
1451 err = e1
1452 }
1453 return
1454}
1455
1456func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1457 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1458 ret = uintptr(r0)
1459 if e1 != 0 {
1460 err = e1
1461 }
1462 return
1463}
1464
1465func munmap(addr uintptr, length uintptr) (err error) {
1466 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
1467 if e1 != 0 {
1468 err = e1
1469 }
1470 return
1471}
1472
1473func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1474 var _p0 *byte
1475 if len(buf) > 0 {
1476 _p0 = &buf[0]
1477 }
1478 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
1479 if e1 != 0 {
1480 err = e1
1481 }
1482 return
1483}
1484
1485func socket(domain int, typ int, proto int) (fd int, err error) {
1486 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsocket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
1487 fd = int(r0)
1488 if e1 != 0 {
1489 err = e1
1490 }
1491 return
1492}
1493
1494func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1495 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsocketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
1496 if e1 != 0 {
1497 err = e1
1498 }
1499 return
1500}
1501
1502func write(fd int, p []byte) (n int, err error) {
1503 var _p0 *byte
1504 if len(p) > 0 {
1505 _p0 = &p[0]
1506 }
1507 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
1508 n = int(r0)
1509 if e1 != 0 {
1510 err = e1
1511 }
1512 return
1513}
1514
1515func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1516 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1517 if e1 != 0 {
1518 err = e1
1519 }
1520 return
1521}
1522
1523func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1524 _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
1525 if e1 != 0 {
1526 err = e1
1527 }
1528 return
1529}
1530
1531func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1532 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
1533 if e1 != 0 {
1534 err = e1
1535 }
1536 return
1537}
1538
1539func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1540 var _p0 *byte
1541 if len(p) > 0 {
1542 _p0 = &p[0]
1543 }
1544 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
1545 n = int(r0)
1546 if e1 != 0 {
1547 err = e1
1548 }
1549 return
1550}
1551
1552func sysconf(name int) (n int64, err error) {
1553 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsysconf)), 1, uintptr(name), 0, 0, 0, 0, 0)
1554 n = int64(r0)
1555 if e1 != 0 {
1556 err = e1
1557 }
1558 return
1559}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysctl_openbsd.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysctl_openbsd.go
deleted file mode 100644
index 83bb935..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysctl_openbsd.go
+++ /dev/null
@@ -1,270 +0,0 @@
1// mksysctl_openbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4package unix
5
6type mibentry struct {
7 ctlname string
8 ctloid []_C_int
9}
10
11var sysctlMib = []mibentry{
12 {"ddb.console", []_C_int{9, 6}},
13 {"ddb.log", []_C_int{9, 7}},
14 {"ddb.max_line", []_C_int{9, 3}},
15 {"ddb.max_width", []_C_int{9, 2}},
16 {"ddb.panic", []_C_int{9, 5}},
17 {"ddb.radix", []_C_int{9, 1}},
18 {"ddb.tab_stop_width", []_C_int{9, 4}},
19 {"ddb.trigger", []_C_int{9, 8}},
20 {"fs.posix.setuid", []_C_int{3, 1, 1}},
21 {"hw.allowpowerdown", []_C_int{6, 22}},
22 {"hw.byteorder", []_C_int{6, 4}},
23 {"hw.cpuspeed", []_C_int{6, 12}},
24 {"hw.diskcount", []_C_int{6, 10}},
25 {"hw.disknames", []_C_int{6, 8}},
26 {"hw.diskstats", []_C_int{6, 9}},
27 {"hw.machine", []_C_int{6, 1}},
28 {"hw.model", []_C_int{6, 2}},
29 {"hw.ncpu", []_C_int{6, 3}},
30 {"hw.ncpufound", []_C_int{6, 21}},
31 {"hw.pagesize", []_C_int{6, 7}},
32 {"hw.physmem", []_C_int{6, 19}},
33 {"hw.product", []_C_int{6, 15}},
34 {"hw.serialno", []_C_int{6, 17}},
35 {"hw.setperf", []_C_int{6, 13}},
36 {"hw.usermem", []_C_int{6, 20}},
37 {"hw.uuid", []_C_int{6, 18}},
38 {"hw.vendor", []_C_int{6, 14}},
39 {"hw.version", []_C_int{6, 16}},
40 {"kern.arandom", []_C_int{1, 37}},
41 {"kern.argmax", []_C_int{1, 8}},
42 {"kern.boottime", []_C_int{1, 21}},
43 {"kern.bufcachepercent", []_C_int{1, 72}},
44 {"kern.ccpu", []_C_int{1, 45}},
45 {"kern.clockrate", []_C_int{1, 12}},
46 {"kern.consdev", []_C_int{1, 75}},
47 {"kern.cp_time", []_C_int{1, 40}},
48 {"kern.cp_time2", []_C_int{1, 71}},
49 {"kern.cryptodevallowsoft", []_C_int{1, 53}},
50 {"kern.domainname", []_C_int{1, 22}},
51 {"kern.file", []_C_int{1, 73}},
52 {"kern.forkstat", []_C_int{1, 42}},
53 {"kern.fscale", []_C_int{1, 46}},
54 {"kern.fsync", []_C_int{1, 33}},
55 {"kern.hostid", []_C_int{1, 11}},
56 {"kern.hostname", []_C_int{1, 10}},
57 {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}},
58 {"kern.job_control", []_C_int{1, 19}},
59 {"kern.malloc.buckets", []_C_int{1, 39, 1}},
60 {"kern.malloc.kmemnames", []_C_int{1, 39, 3}},
61 {"kern.maxclusters", []_C_int{1, 67}},
62 {"kern.maxfiles", []_C_int{1, 7}},
63 {"kern.maxlocksperuid", []_C_int{1, 70}},
64 {"kern.maxpartitions", []_C_int{1, 23}},
65 {"kern.maxproc", []_C_int{1, 6}},
66 {"kern.maxthread", []_C_int{1, 25}},
67 {"kern.maxvnodes", []_C_int{1, 5}},
68 {"kern.mbstat", []_C_int{1, 59}},
69 {"kern.msgbuf", []_C_int{1, 48}},
70 {"kern.msgbufsize", []_C_int{1, 38}},
71 {"kern.nchstats", []_C_int{1, 41}},
72 {"kern.netlivelocks", []_C_int{1, 76}},
73 {"kern.nfiles", []_C_int{1, 56}},
74 {"kern.ngroups", []_C_int{1, 18}},
75 {"kern.nosuidcoredump", []_C_int{1, 32}},
76 {"kern.nprocs", []_C_int{1, 47}},
77 {"kern.nselcoll", []_C_int{1, 43}},
78 {"kern.nthreads", []_C_int{1, 26}},
79 {"kern.numvnodes", []_C_int{1, 58}},
80 {"kern.osrelease", []_C_int{1, 2}},
81 {"kern.osrevision", []_C_int{1, 3}},
82 {"kern.ostype", []_C_int{1, 1}},
83 {"kern.osversion", []_C_int{1, 27}},
84 {"kern.pool_debug", []_C_int{1, 77}},
85 {"kern.posix1version", []_C_int{1, 17}},
86 {"kern.proc", []_C_int{1, 66}},
87 {"kern.random", []_C_int{1, 31}},
88 {"kern.rawpartition", []_C_int{1, 24}},
89 {"kern.saved_ids", []_C_int{1, 20}},
90 {"kern.securelevel", []_C_int{1, 9}},
91 {"kern.seminfo", []_C_int{1, 61}},
92 {"kern.shminfo", []_C_int{1, 62}},
93 {"kern.somaxconn", []_C_int{1, 28}},
94 {"kern.sominconn", []_C_int{1, 29}},
95 {"kern.splassert", []_C_int{1, 54}},
96 {"kern.stackgap_random", []_C_int{1, 50}},
97 {"kern.sysvipc_info", []_C_int{1, 51}},
98 {"kern.sysvmsg", []_C_int{1, 34}},
99 {"kern.sysvsem", []_C_int{1, 35}},
100 {"kern.sysvshm", []_C_int{1, 36}},
101 {"kern.timecounter.choice", []_C_int{1, 69, 4}},
102 {"kern.timecounter.hardware", []_C_int{1, 69, 3}},
103 {"kern.timecounter.tick", []_C_int{1, 69, 1}},
104 {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}},
105 {"kern.tty.maxptys", []_C_int{1, 44, 6}},
106 {"kern.tty.nptys", []_C_int{1, 44, 7}},
107 {"kern.tty.tk_cancc", []_C_int{1, 44, 4}},
108 {"kern.tty.tk_nin", []_C_int{1, 44, 1}},
109 {"kern.tty.tk_nout", []_C_int{1, 44, 2}},
110 {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}},
111 {"kern.tty.ttyinfo", []_C_int{1, 44, 5}},
112 {"kern.ttycount", []_C_int{1, 57}},
113 {"kern.userasymcrypto", []_C_int{1, 60}},
114 {"kern.usercrypto", []_C_int{1, 52}},
115 {"kern.usermount", []_C_int{1, 30}},
116 {"kern.version", []_C_int{1, 4}},
117 {"kern.vnode", []_C_int{1, 13}},
118 {"kern.watchdog.auto", []_C_int{1, 64, 2}},
119 {"kern.watchdog.period", []_C_int{1, 64, 1}},
120 {"net.bpf.bufsize", []_C_int{4, 31, 1}},
121 {"net.bpf.maxbufsize", []_C_int{4, 31, 2}},
122 {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}},
123 {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}},
124 {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}},
125 {"net.inet.carp.log", []_C_int{4, 2, 112, 3}},
126 {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}},
127 {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}},
128 {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}},
129 {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}},
130 {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}},
131 {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}},
132 {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}},
133 {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}},
134 {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}},
135 {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}},
136 {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}},
137 {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}},
138 {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}},
139 {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}},
140 {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}},
141 {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}},
142 {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}},
143 {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}},
144 {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}},
145 {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}},
146 {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}},
147 {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}},
148 {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}},
149 {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}},
150 {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}},
151 {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}},
152 {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}},
153 {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}},
154 {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}},
155 {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}},
156 {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}},
157 {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}},
158 {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}},
159 {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}},
160 {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}},
161 {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}},
162 {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}},
163 {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}},
164 {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}},
165 {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}},
166 {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}},
167 {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}},
168 {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}},
169 {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}},
170 {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}},
171 {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}},
172 {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}},
173 {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}},
174 {"net.inet.mobileip.allow", []_C_int{4, 2, 55, 1}},
175 {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}},
176 {"net.inet.pim.stats", []_C_int{4, 2, 103, 1}},
177 {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}},
178 {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}},
179 {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}},
180 {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}},
181 {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}},
182 {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}},
183 {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}},
184 {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}},
185 {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}},
186 {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}},
187 {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}},
188 {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}},
189 {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}},
190 {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}},
191 {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}},
192 {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}},
193 {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}},
194 {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}},
195 {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}},
196 {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}},
197 {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}},
198 {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}},
199 {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}},
200 {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}},
201 {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}},
202 {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}},
203 {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}},
204 {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}},
205 {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}},
206 {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}},
207 {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}},
208 {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}},
209 {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}},
210 {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}},
211 {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}},
212 {"net.inet6.icmp6.nd6_prune", []_C_int{4, 24, 30, 6}},
213 {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}},
214 {"net.inet6.icmp6.nd6_useloopback", []_C_int{4, 24, 30, 11}},
215 {"net.inet6.icmp6.nodeinfo", []_C_int{4, 24, 30, 13}},
216 {"net.inet6.icmp6.rediraccept", []_C_int{4, 24, 30, 2}},
217 {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}},
218 {"net.inet6.ip6.accept_rtadv", []_C_int{4, 24, 17, 12}},
219 {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}},
220 {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}},
221 {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}},
222 {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}},
223 {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}},
224 {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}},
225 {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}},
226 {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}},
227 {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}},
228 {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}},
229 {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}},
230 {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}},
231 {"net.inet6.ip6.maxifdefrouters", []_C_int{4, 24, 17, 47}},
232 {"net.inet6.ip6.maxifprefixes", []_C_int{4, 24, 17, 46}},
233 {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}},
234 {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}},
235 {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}},
236 {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}},
237 {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}},
238 {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}},
239 {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}},
240 {"net.inet6.ip6.rr_prune", []_C_int{4, 24, 17, 22}},
241 {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}},
242 {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}},
243 {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}},
244 {"net.inet6.ip6.v6only", []_C_int{4, 24, 17, 24}},
245 {"net.key.sadb_dump", []_C_int{4, 30, 1}},
246 {"net.key.spd_dump", []_C_int{4, 30, 2}},
247 {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}},
248 {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}},
249 {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}},
250 {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}},
251 {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}},
252 {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}},
253 {"net.mpls.maxloop_inkernel", []_C_int{4, 33, 4}},
254 {"net.mpls.ttl", []_C_int{4, 33, 2}},
255 {"net.pflow.stats", []_C_int{4, 34, 1}},
256 {"net.pipex.enable", []_C_int{4, 35, 1}},
257 {"vm.anonmin", []_C_int{2, 7}},
258 {"vm.loadavg", []_C_int{2, 2}},
259 {"vm.maxslp", []_C_int{2, 10}},
260 {"vm.nkmempages", []_C_int{2, 6}},
261 {"vm.psstrings", []_C_int{2, 3}},
262 {"vm.swapencrypt.enable", []_C_int{2, 5, 0}},
263 {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}},
264 {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}},
265 {"vm.uspace", []_C_int{2, 11}},
266 {"vm.uvmexp", []_C_int{2, 4}},
267 {"vm.vmmeter", []_C_int{2, 1}},
268 {"vm.vnodemin", []_C_int{2, 9}},
269 {"vm.vtextmin", []_C_int{2, 8}},
270}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_386.go
deleted file mode 100644
index 2786773..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_386.go
+++ /dev/null
@@ -1,398 +0,0 @@
1// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/syscall.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build 386,darwin
5
6package unix
7
8const (
9 SYS_SYSCALL = 0
10 SYS_EXIT = 1
11 SYS_FORK = 2
12 SYS_READ = 3
13 SYS_WRITE = 4
14 SYS_OPEN = 5
15 SYS_CLOSE = 6
16 SYS_WAIT4 = 7
17 SYS_LINK = 9
18 SYS_UNLINK = 10
19 SYS_CHDIR = 12
20 SYS_FCHDIR = 13
21 SYS_MKNOD = 14
22 SYS_CHMOD = 15
23 SYS_CHOWN = 16
24 SYS_GETFSSTAT = 18
25 SYS_GETPID = 20
26 SYS_SETUID = 23
27 SYS_GETUID = 24
28 SYS_GETEUID = 25
29 SYS_PTRACE = 26
30 SYS_RECVMSG = 27
31 SYS_SENDMSG = 28
32 SYS_RECVFROM = 29
33 SYS_ACCEPT = 30
34 SYS_GETPEERNAME = 31
35 SYS_GETSOCKNAME = 32
36 SYS_ACCESS = 33
37 SYS_CHFLAGS = 34
38 SYS_FCHFLAGS = 35
39 SYS_SYNC = 36
40 SYS_KILL = 37
41 SYS_GETPPID = 39
42 SYS_DUP = 41
43 SYS_PIPE = 42
44 SYS_GETEGID = 43
45 SYS_SIGACTION = 46
46 SYS_GETGID = 47
47 SYS_SIGPROCMASK = 48
48 SYS_GETLOGIN = 49
49 SYS_SETLOGIN = 50
50 SYS_ACCT = 51
51 SYS_SIGPENDING = 52
52 SYS_SIGALTSTACK = 53
53 SYS_IOCTL = 54
54 SYS_REBOOT = 55
55 SYS_REVOKE = 56
56 SYS_SYMLINK = 57
57 SYS_READLINK = 58
58 SYS_EXECVE = 59
59 SYS_UMASK = 60
60 SYS_CHROOT = 61
61 SYS_MSYNC = 65
62 SYS_VFORK = 66
63 SYS_MUNMAP = 73
64 SYS_MPROTECT = 74
65 SYS_MADVISE = 75
66 SYS_MINCORE = 78
67 SYS_GETGROUPS = 79
68 SYS_SETGROUPS = 80
69 SYS_GETPGRP = 81
70 SYS_SETPGID = 82
71 SYS_SETITIMER = 83
72 SYS_SWAPON = 85
73 SYS_GETITIMER = 86
74 SYS_GETDTABLESIZE = 89
75 SYS_DUP2 = 90
76 SYS_FCNTL = 92
77 SYS_SELECT = 93
78 SYS_FSYNC = 95
79 SYS_SETPRIORITY = 96
80 SYS_SOCKET = 97
81 SYS_CONNECT = 98
82 SYS_GETPRIORITY = 100
83 SYS_BIND = 104
84 SYS_SETSOCKOPT = 105
85 SYS_LISTEN = 106
86 SYS_SIGSUSPEND = 111
87 SYS_GETTIMEOFDAY = 116
88 SYS_GETRUSAGE = 117
89 SYS_GETSOCKOPT = 118
90 SYS_READV = 120
91 SYS_WRITEV = 121
92 SYS_SETTIMEOFDAY = 122
93 SYS_FCHOWN = 123
94 SYS_FCHMOD = 124
95 SYS_SETREUID = 126
96 SYS_SETREGID = 127
97 SYS_RENAME = 128
98 SYS_FLOCK = 131
99 SYS_MKFIFO = 132
100 SYS_SENDTO = 133
101 SYS_SHUTDOWN = 134
102 SYS_SOCKETPAIR = 135
103 SYS_MKDIR = 136
104 SYS_RMDIR = 137
105 SYS_UTIMES = 138
106 SYS_FUTIMES = 139
107 SYS_ADJTIME = 140
108 SYS_GETHOSTUUID = 142
109 SYS_SETSID = 147
110 SYS_GETPGID = 151
111 SYS_SETPRIVEXEC = 152
112 SYS_PREAD = 153
113 SYS_PWRITE = 154
114 SYS_NFSSVC = 155
115 SYS_STATFS = 157
116 SYS_FSTATFS = 158
117 SYS_UNMOUNT = 159
118 SYS_GETFH = 161
119 SYS_QUOTACTL = 165
120 SYS_MOUNT = 167
121 SYS_CSOPS = 169
122 SYS_CSOPS_AUDITTOKEN = 170
123 SYS_WAITID = 173
124 SYS_KDEBUG_TRACE64 = 179
125 SYS_KDEBUG_TRACE = 180
126 SYS_SETGID = 181
127 SYS_SETEGID = 182
128 SYS_SETEUID = 183
129 SYS_SIGRETURN = 184
130 SYS_CHUD = 185
131 SYS_FDATASYNC = 187
132 SYS_STAT = 188
133 SYS_FSTAT = 189
134 SYS_LSTAT = 190
135 SYS_PATHCONF = 191
136 SYS_FPATHCONF = 192
137 SYS_GETRLIMIT = 194
138 SYS_SETRLIMIT = 195
139 SYS_GETDIRENTRIES = 196
140 SYS_MMAP = 197
141 SYS_LSEEK = 199
142 SYS_TRUNCATE = 200
143 SYS_FTRUNCATE = 201
144 SYS_SYSCTL = 202
145 SYS_MLOCK = 203
146 SYS_MUNLOCK = 204
147 SYS_UNDELETE = 205
148 SYS_OPEN_DPROTECTED_NP = 216
149 SYS_GETATTRLIST = 220
150 SYS_SETATTRLIST = 221
151 SYS_GETDIRENTRIESATTR = 222
152 SYS_EXCHANGEDATA = 223
153 SYS_SEARCHFS = 225
154 SYS_DELETE = 226
155 SYS_COPYFILE = 227
156 SYS_FGETATTRLIST = 228
157 SYS_FSETATTRLIST = 229
158 SYS_POLL = 230
159 SYS_WATCHEVENT = 231
160 SYS_WAITEVENT = 232
161 SYS_MODWATCH = 233
162 SYS_GETXATTR = 234
163 SYS_FGETXATTR = 235
164 SYS_SETXATTR = 236
165 SYS_FSETXATTR = 237
166 SYS_REMOVEXATTR = 238
167 SYS_FREMOVEXATTR = 239
168 SYS_LISTXATTR = 240
169 SYS_FLISTXATTR = 241
170 SYS_FSCTL = 242
171 SYS_INITGROUPS = 243
172 SYS_POSIX_SPAWN = 244
173 SYS_FFSCTL = 245
174 SYS_NFSCLNT = 247
175 SYS_FHOPEN = 248
176 SYS_MINHERIT = 250
177 SYS_SEMSYS = 251
178 SYS_MSGSYS = 252
179 SYS_SHMSYS = 253
180 SYS_SEMCTL = 254
181 SYS_SEMGET = 255
182 SYS_SEMOP = 256
183 SYS_MSGCTL = 258
184 SYS_MSGGET = 259
185 SYS_MSGSND = 260
186 SYS_MSGRCV = 261
187 SYS_SHMAT = 262
188 SYS_SHMCTL = 263
189 SYS_SHMDT = 264
190 SYS_SHMGET = 265
191 SYS_SHM_OPEN = 266
192 SYS_SHM_UNLINK = 267
193 SYS_SEM_OPEN = 268
194 SYS_SEM_CLOSE = 269
195 SYS_SEM_UNLINK = 270
196 SYS_SEM_WAIT = 271
197 SYS_SEM_TRYWAIT = 272
198 SYS_SEM_POST = 273
199 SYS_SYSCTLBYNAME = 274
200 SYS_OPEN_EXTENDED = 277
201 SYS_UMASK_EXTENDED = 278
202 SYS_STAT_EXTENDED = 279
203 SYS_LSTAT_EXTENDED = 280
204 SYS_FSTAT_EXTENDED = 281
205 SYS_CHMOD_EXTENDED = 282
206 SYS_FCHMOD_EXTENDED = 283
207 SYS_ACCESS_EXTENDED = 284
208 SYS_SETTID = 285
209 SYS_GETTID = 286
210 SYS_SETSGROUPS = 287
211 SYS_GETSGROUPS = 288
212 SYS_SETWGROUPS = 289
213 SYS_GETWGROUPS = 290
214 SYS_MKFIFO_EXTENDED = 291
215 SYS_MKDIR_EXTENDED = 292
216 SYS_IDENTITYSVC = 293
217 SYS_SHARED_REGION_CHECK_NP = 294
218 SYS_VM_PRESSURE_MONITOR = 296
219 SYS_PSYNCH_RW_LONGRDLOCK = 297
220 SYS_PSYNCH_RW_YIELDWRLOCK = 298
221 SYS_PSYNCH_RW_DOWNGRADE = 299
222 SYS_PSYNCH_RW_UPGRADE = 300
223 SYS_PSYNCH_MUTEXWAIT = 301
224 SYS_PSYNCH_MUTEXDROP = 302
225 SYS_PSYNCH_CVBROAD = 303
226 SYS_PSYNCH_CVSIGNAL = 304
227 SYS_PSYNCH_CVWAIT = 305
228 SYS_PSYNCH_RW_RDLOCK = 306
229 SYS_PSYNCH_RW_WRLOCK = 307
230 SYS_PSYNCH_RW_UNLOCK = 308
231 SYS_PSYNCH_RW_UNLOCK2 = 309
232 SYS_GETSID = 310
233 SYS_SETTID_WITH_PID = 311
234 SYS_PSYNCH_CVCLRPREPOST = 312
235 SYS_AIO_FSYNC = 313
236 SYS_AIO_RETURN = 314
237 SYS_AIO_SUSPEND = 315
238 SYS_AIO_CANCEL = 316
239 SYS_AIO_ERROR = 317
240 SYS_AIO_READ = 318
241 SYS_AIO_WRITE = 319
242 SYS_LIO_LISTIO = 320
243 SYS_IOPOLICYSYS = 322
244 SYS_PROCESS_POLICY = 323
245 SYS_MLOCKALL = 324
246 SYS_MUNLOCKALL = 325
247 SYS_ISSETUGID = 327
248 SYS___PTHREAD_KILL = 328
249 SYS___PTHREAD_SIGMASK = 329
250 SYS___SIGWAIT = 330
251 SYS___DISABLE_THREADSIGNAL = 331
252 SYS___PTHREAD_MARKCANCEL = 332
253 SYS___PTHREAD_CANCELED = 333
254 SYS___SEMWAIT_SIGNAL = 334
255 SYS_PROC_INFO = 336
256 SYS_SENDFILE = 337
257 SYS_STAT64 = 338
258 SYS_FSTAT64 = 339
259 SYS_LSTAT64 = 340
260 SYS_STAT64_EXTENDED = 341
261 SYS_LSTAT64_EXTENDED = 342
262 SYS_FSTAT64_EXTENDED = 343
263 SYS_GETDIRENTRIES64 = 344
264 SYS_STATFS64 = 345
265 SYS_FSTATFS64 = 346
266 SYS_GETFSSTAT64 = 347
267 SYS___PTHREAD_CHDIR = 348
268 SYS___PTHREAD_FCHDIR = 349
269 SYS_AUDIT = 350
270 SYS_AUDITON = 351
271 SYS_GETAUID = 353
272 SYS_SETAUID = 354
273 SYS_GETAUDIT_ADDR = 357
274 SYS_SETAUDIT_ADDR = 358
275 SYS_AUDITCTL = 359
276 SYS_BSDTHREAD_CREATE = 360
277 SYS_BSDTHREAD_TERMINATE = 361
278 SYS_KQUEUE = 362
279 SYS_KEVENT = 363
280 SYS_LCHOWN = 364
281 SYS_STACK_SNAPSHOT = 365
282 SYS_BSDTHREAD_REGISTER = 366
283 SYS_WORKQ_OPEN = 367
284 SYS_WORKQ_KERNRETURN = 368
285 SYS_KEVENT64 = 369
286 SYS___OLD_SEMWAIT_SIGNAL = 370
287 SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
288 SYS_THREAD_SELFID = 372
289 SYS_LEDGER = 373
290 SYS___MAC_EXECVE = 380
291 SYS___MAC_SYSCALL = 381
292 SYS___MAC_GET_FILE = 382
293 SYS___MAC_SET_FILE = 383
294 SYS___MAC_GET_LINK = 384
295 SYS___MAC_SET_LINK = 385
296 SYS___MAC_GET_PROC = 386
297 SYS___MAC_SET_PROC = 387
298 SYS___MAC_GET_FD = 388
299 SYS___MAC_SET_FD = 389
300 SYS___MAC_GET_PID = 390
301 SYS___MAC_GET_LCID = 391
302 SYS___MAC_GET_LCTX = 392
303 SYS___MAC_SET_LCTX = 393
304 SYS_SETLCID = 394
305 SYS_GETLCID = 395
306 SYS_READ_NOCANCEL = 396
307 SYS_WRITE_NOCANCEL = 397
308 SYS_OPEN_NOCANCEL = 398
309 SYS_CLOSE_NOCANCEL = 399
310 SYS_WAIT4_NOCANCEL = 400
311 SYS_RECVMSG_NOCANCEL = 401
312 SYS_SENDMSG_NOCANCEL = 402
313 SYS_RECVFROM_NOCANCEL = 403
314 SYS_ACCEPT_NOCANCEL = 404
315 SYS_MSYNC_NOCANCEL = 405
316 SYS_FCNTL_NOCANCEL = 406
317 SYS_SELECT_NOCANCEL = 407
318 SYS_FSYNC_NOCANCEL = 408
319 SYS_CONNECT_NOCANCEL = 409
320 SYS_SIGSUSPEND_NOCANCEL = 410
321 SYS_READV_NOCANCEL = 411
322 SYS_WRITEV_NOCANCEL = 412
323 SYS_SENDTO_NOCANCEL = 413
324 SYS_PREAD_NOCANCEL = 414
325 SYS_PWRITE_NOCANCEL = 415
326 SYS_WAITID_NOCANCEL = 416
327 SYS_POLL_NOCANCEL = 417
328 SYS_MSGSND_NOCANCEL = 418
329 SYS_MSGRCV_NOCANCEL = 419
330 SYS_SEM_WAIT_NOCANCEL = 420
331 SYS_AIO_SUSPEND_NOCANCEL = 421
332 SYS___SIGWAIT_NOCANCEL = 422
333 SYS___SEMWAIT_SIGNAL_NOCANCEL = 423
334 SYS___MAC_MOUNT = 424
335 SYS___MAC_GET_MOUNT = 425
336 SYS___MAC_GETFSSTAT = 426
337 SYS_FSGETPATH = 427
338 SYS_AUDIT_SESSION_SELF = 428
339 SYS_AUDIT_SESSION_JOIN = 429
340 SYS_FILEPORT_MAKEPORT = 430
341 SYS_FILEPORT_MAKEFD = 431
342 SYS_AUDIT_SESSION_PORT = 432
343 SYS_PID_SUSPEND = 433
344 SYS_PID_RESUME = 434
345 SYS_PID_HIBERNATE = 435
346 SYS_PID_SHUTDOWN_SOCKETS = 436
347 SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
348 SYS_KAS_INFO = 439
349 SYS_MEMORYSTATUS_CONTROL = 440
350 SYS_GUARDED_OPEN_NP = 441
351 SYS_GUARDED_CLOSE_NP = 442
352 SYS_GUARDED_KQUEUE_NP = 443
353 SYS_CHANGE_FDGUARD_NP = 444
354 SYS_PROC_RLIMIT_CONTROL = 446
355 SYS_CONNECTX = 447
356 SYS_DISCONNECTX = 448
357 SYS_PEELOFF = 449
358 SYS_SOCKET_DELEGATE = 450
359 SYS_TELEMETRY = 451
360 SYS_PROC_UUID_POLICY = 452
361 SYS_MEMORYSTATUS_GET_LEVEL = 453
362 SYS_SYSTEM_OVERRIDE = 454
363 SYS_VFS_PURGE = 455
364 SYS_SFI_CTL = 456
365 SYS_SFI_PIDCTL = 457
366 SYS_COALITION = 458
367 SYS_COALITION_INFO = 459
368 SYS_NECP_MATCH_POLICY = 460
369 SYS_GETATTRLISTBULK = 461
370 SYS_OPENAT = 463
371 SYS_OPENAT_NOCANCEL = 464
372 SYS_RENAMEAT = 465
373 SYS_FACCESSAT = 466
374 SYS_FCHMODAT = 467
375 SYS_FCHOWNAT = 468
376 SYS_FSTATAT = 469
377 SYS_FSTATAT64 = 470
378 SYS_LINKAT = 471
379 SYS_UNLINKAT = 472
380 SYS_READLINKAT = 473
381 SYS_SYMLINKAT = 474
382 SYS_MKDIRAT = 475
383 SYS_GETATTRLISTAT = 476
384 SYS_PROC_TRACE_LOG = 477
385 SYS_BSDTHREAD_CTL = 478
386 SYS_OPENBYID_NP = 479
387 SYS_RECVMSG_X = 480
388 SYS_SENDMSG_X = 481
389 SYS_THREAD_SELFUSAGE = 482
390 SYS_CSRCTL = 483
391 SYS_GUARDED_OPEN_DPROTECTED_NP = 484
392 SYS_GUARDED_WRITE_NP = 485
393 SYS_GUARDED_PWRITE_NP = 486
394 SYS_GUARDED_WRITEV_NP = 487
395 SYS_RENAME_EXT = 488
396 SYS_MREMAP_ENCRYPTED = 489
397 SYS_MAXSYSCALL = 490
398)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_amd64.go
deleted file mode 100644
index 09de240..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_amd64.go
+++ /dev/null
@@ -1,398 +0,0 @@
1// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/syscall.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build amd64,darwin
5
6package unix
7
8const (
9 SYS_SYSCALL = 0
10 SYS_EXIT = 1
11 SYS_FORK = 2
12 SYS_READ = 3
13 SYS_WRITE = 4
14 SYS_OPEN = 5
15 SYS_CLOSE = 6
16 SYS_WAIT4 = 7
17 SYS_LINK = 9
18 SYS_UNLINK = 10
19 SYS_CHDIR = 12
20 SYS_FCHDIR = 13
21 SYS_MKNOD = 14
22 SYS_CHMOD = 15
23 SYS_CHOWN = 16
24 SYS_GETFSSTAT = 18
25 SYS_GETPID = 20
26 SYS_SETUID = 23
27 SYS_GETUID = 24
28 SYS_GETEUID = 25
29 SYS_PTRACE = 26
30 SYS_RECVMSG = 27
31 SYS_SENDMSG = 28
32 SYS_RECVFROM = 29
33 SYS_ACCEPT = 30
34 SYS_GETPEERNAME = 31
35 SYS_GETSOCKNAME = 32
36 SYS_ACCESS = 33
37 SYS_CHFLAGS = 34
38 SYS_FCHFLAGS = 35
39 SYS_SYNC = 36
40 SYS_KILL = 37
41 SYS_GETPPID = 39
42 SYS_DUP = 41
43 SYS_PIPE = 42
44 SYS_GETEGID = 43
45 SYS_SIGACTION = 46
46 SYS_GETGID = 47
47 SYS_SIGPROCMASK = 48
48 SYS_GETLOGIN = 49
49 SYS_SETLOGIN = 50
50 SYS_ACCT = 51
51 SYS_SIGPENDING = 52
52 SYS_SIGALTSTACK = 53
53 SYS_IOCTL = 54
54 SYS_REBOOT = 55
55 SYS_REVOKE = 56
56 SYS_SYMLINK = 57
57 SYS_READLINK = 58
58 SYS_EXECVE = 59
59 SYS_UMASK = 60
60 SYS_CHROOT = 61
61 SYS_MSYNC = 65
62 SYS_VFORK = 66
63 SYS_MUNMAP = 73
64 SYS_MPROTECT = 74
65 SYS_MADVISE = 75
66 SYS_MINCORE = 78
67 SYS_GETGROUPS = 79
68 SYS_SETGROUPS = 80
69 SYS_GETPGRP = 81
70 SYS_SETPGID = 82
71 SYS_SETITIMER = 83
72 SYS_SWAPON = 85
73 SYS_GETITIMER = 86
74 SYS_GETDTABLESIZE = 89
75 SYS_DUP2 = 90
76 SYS_FCNTL = 92
77 SYS_SELECT = 93
78 SYS_FSYNC = 95
79 SYS_SETPRIORITY = 96
80 SYS_SOCKET = 97
81 SYS_CONNECT = 98
82 SYS_GETPRIORITY = 100
83 SYS_BIND = 104
84 SYS_SETSOCKOPT = 105
85 SYS_LISTEN = 106
86 SYS_SIGSUSPEND = 111
87 SYS_GETTIMEOFDAY = 116
88 SYS_GETRUSAGE = 117
89 SYS_GETSOCKOPT = 118
90 SYS_READV = 120
91 SYS_WRITEV = 121
92 SYS_SETTIMEOFDAY = 122
93 SYS_FCHOWN = 123
94 SYS_FCHMOD = 124
95 SYS_SETREUID = 126
96 SYS_SETREGID = 127
97 SYS_RENAME = 128
98 SYS_FLOCK = 131
99 SYS_MKFIFO = 132
100 SYS_SENDTO = 133
101 SYS_SHUTDOWN = 134
102 SYS_SOCKETPAIR = 135
103 SYS_MKDIR = 136
104 SYS_RMDIR = 137
105 SYS_UTIMES = 138
106 SYS_FUTIMES = 139
107 SYS_ADJTIME = 140
108 SYS_GETHOSTUUID = 142
109 SYS_SETSID = 147
110 SYS_GETPGID = 151
111 SYS_SETPRIVEXEC = 152
112 SYS_PREAD = 153
113 SYS_PWRITE = 154
114 SYS_NFSSVC = 155
115 SYS_STATFS = 157
116 SYS_FSTATFS = 158
117 SYS_UNMOUNT = 159
118 SYS_GETFH = 161
119 SYS_QUOTACTL = 165
120 SYS_MOUNT = 167
121 SYS_CSOPS = 169
122 SYS_CSOPS_AUDITTOKEN = 170
123 SYS_WAITID = 173
124 SYS_KDEBUG_TRACE64 = 179
125 SYS_KDEBUG_TRACE = 180
126 SYS_SETGID = 181
127 SYS_SETEGID = 182
128 SYS_SETEUID = 183
129 SYS_SIGRETURN = 184
130 SYS_CHUD = 185
131 SYS_FDATASYNC = 187
132 SYS_STAT = 188
133 SYS_FSTAT = 189
134 SYS_LSTAT = 190
135 SYS_PATHCONF = 191
136 SYS_FPATHCONF = 192
137 SYS_GETRLIMIT = 194
138 SYS_SETRLIMIT = 195
139 SYS_GETDIRENTRIES = 196
140 SYS_MMAP = 197
141 SYS_LSEEK = 199
142 SYS_TRUNCATE = 200
143 SYS_FTRUNCATE = 201
144 SYS_SYSCTL = 202
145 SYS_MLOCK = 203
146 SYS_MUNLOCK = 204
147 SYS_UNDELETE = 205
148 SYS_OPEN_DPROTECTED_NP = 216
149 SYS_GETATTRLIST = 220
150 SYS_SETATTRLIST = 221
151 SYS_GETDIRENTRIESATTR = 222
152 SYS_EXCHANGEDATA = 223
153 SYS_SEARCHFS = 225
154 SYS_DELETE = 226
155 SYS_COPYFILE = 227
156 SYS_FGETATTRLIST = 228
157 SYS_FSETATTRLIST = 229
158 SYS_POLL = 230
159 SYS_WATCHEVENT = 231
160 SYS_WAITEVENT = 232
161 SYS_MODWATCH = 233
162 SYS_GETXATTR = 234
163 SYS_FGETXATTR = 235
164 SYS_SETXATTR = 236
165 SYS_FSETXATTR = 237
166 SYS_REMOVEXATTR = 238
167 SYS_FREMOVEXATTR = 239
168 SYS_LISTXATTR = 240
169 SYS_FLISTXATTR = 241
170 SYS_FSCTL = 242
171 SYS_INITGROUPS = 243
172 SYS_POSIX_SPAWN = 244
173 SYS_FFSCTL = 245
174 SYS_NFSCLNT = 247
175 SYS_FHOPEN = 248
176 SYS_MINHERIT = 250
177 SYS_SEMSYS = 251
178 SYS_MSGSYS = 252
179 SYS_SHMSYS = 253
180 SYS_SEMCTL = 254
181 SYS_SEMGET = 255
182 SYS_SEMOP = 256
183 SYS_MSGCTL = 258
184 SYS_MSGGET = 259
185 SYS_MSGSND = 260
186 SYS_MSGRCV = 261
187 SYS_SHMAT = 262
188 SYS_SHMCTL = 263
189 SYS_SHMDT = 264
190 SYS_SHMGET = 265
191 SYS_SHM_OPEN = 266
192 SYS_SHM_UNLINK = 267
193 SYS_SEM_OPEN = 268
194 SYS_SEM_CLOSE = 269
195 SYS_SEM_UNLINK = 270
196 SYS_SEM_WAIT = 271
197 SYS_SEM_TRYWAIT = 272
198 SYS_SEM_POST = 273
199 SYS_SYSCTLBYNAME = 274
200 SYS_OPEN_EXTENDED = 277
201 SYS_UMASK_EXTENDED = 278
202 SYS_STAT_EXTENDED = 279
203 SYS_LSTAT_EXTENDED = 280
204 SYS_FSTAT_EXTENDED = 281
205 SYS_CHMOD_EXTENDED = 282
206 SYS_FCHMOD_EXTENDED = 283
207 SYS_ACCESS_EXTENDED = 284
208 SYS_SETTID = 285
209 SYS_GETTID = 286
210 SYS_SETSGROUPS = 287
211 SYS_GETSGROUPS = 288
212 SYS_SETWGROUPS = 289
213 SYS_GETWGROUPS = 290
214 SYS_MKFIFO_EXTENDED = 291
215 SYS_MKDIR_EXTENDED = 292
216 SYS_IDENTITYSVC = 293
217 SYS_SHARED_REGION_CHECK_NP = 294
218 SYS_VM_PRESSURE_MONITOR = 296
219 SYS_PSYNCH_RW_LONGRDLOCK = 297
220 SYS_PSYNCH_RW_YIELDWRLOCK = 298
221 SYS_PSYNCH_RW_DOWNGRADE = 299
222 SYS_PSYNCH_RW_UPGRADE = 300
223 SYS_PSYNCH_MUTEXWAIT = 301
224 SYS_PSYNCH_MUTEXDROP = 302
225 SYS_PSYNCH_CVBROAD = 303
226 SYS_PSYNCH_CVSIGNAL = 304
227 SYS_PSYNCH_CVWAIT = 305
228 SYS_PSYNCH_RW_RDLOCK = 306
229 SYS_PSYNCH_RW_WRLOCK = 307
230 SYS_PSYNCH_RW_UNLOCK = 308
231 SYS_PSYNCH_RW_UNLOCK2 = 309
232 SYS_GETSID = 310
233 SYS_SETTID_WITH_PID = 311
234 SYS_PSYNCH_CVCLRPREPOST = 312
235 SYS_AIO_FSYNC = 313
236 SYS_AIO_RETURN = 314
237 SYS_AIO_SUSPEND = 315
238 SYS_AIO_CANCEL = 316
239 SYS_AIO_ERROR = 317
240 SYS_AIO_READ = 318
241 SYS_AIO_WRITE = 319
242 SYS_LIO_LISTIO = 320
243 SYS_IOPOLICYSYS = 322
244 SYS_PROCESS_POLICY = 323
245 SYS_MLOCKALL = 324
246 SYS_MUNLOCKALL = 325
247 SYS_ISSETUGID = 327
248 SYS___PTHREAD_KILL = 328
249 SYS___PTHREAD_SIGMASK = 329
250 SYS___SIGWAIT = 330
251 SYS___DISABLE_THREADSIGNAL = 331
252 SYS___PTHREAD_MARKCANCEL = 332
253 SYS___PTHREAD_CANCELED = 333
254 SYS___SEMWAIT_SIGNAL = 334
255 SYS_PROC_INFO = 336
256 SYS_SENDFILE = 337
257 SYS_STAT64 = 338
258 SYS_FSTAT64 = 339
259 SYS_LSTAT64 = 340
260 SYS_STAT64_EXTENDED = 341
261 SYS_LSTAT64_EXTENDED = 342
262 SYS_FSTAT64_EXTENDED = 343
263 SYS_GETDIRENTRIES64 = 344
264 SYS_STATFS64 = 345
265 SYS_FSTATFS64 = 346
266 SYS_GETFSSTAT64 = 347
267 SYS___PTHREAD_CHDIR = 348
268 SYS___PTHREAD_FCHDIR = 349
269 SYS_AUDIT = 350
270 SYS_AUDITON = 351
271 SYS_GETAUID = 353
272 SYS_SETAUID = 354
273 SYS_GETAUDIT_ADDR = 357
274 SYS_SETAUDIT_ADDR = 358
275 SYS_AUDITCTL = 359
276 SYS_BSDTHREAD_CREATE = 360
277 SYS_BSDTHREAD_TERMINATE = 361
278 SYS_KQUEUE = 362
279 SYS_KEVENT = 363
280 SYS_LCHOWN = 364
281 SYS_STACK_SNAPSHOT = 365
282 SYS_BSDTHREAD_REGISTER = 366
283 SYS_WORKQ_OPEN = 367
284 SYS_WORKQ_KERNRETURN = 368
285 SYS_KEVENT64 = 369
286 SYS___OLD_SEMWAIT_SIGNAL = 370
287 SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
288 SYS_THREAD_SELFID = 372
289 SYS_LEDGER = 373
290 SYS___MAC_EXECVE = 380
291 SYS___MAC_SYSCALL = 381
292 SYS___MAC_GET_FILE = 382
293 SYS___MAC_SET_FILE = 383
294 SYS___MAC_GET_LINK = 384
295 SYS___MAC_SET_LINK = 385
296 SYS___MAC_GET_PROC = 386
297 SYS___MAC_SET_PROC = 387
298 SYS___MAC_GET_FD = 388
299 SYS___MAC_SET_FD = 389
300 SYS___MAC_GET_PID = 390
301 SYS___MAC_GET_LCID = 391
302 SYS___MAC_GET_LCTX = 392
303 SYS___MAC_SET_LCTX = 393
304 SYS_SETLCID = 394
305 SYS_GETLCID = 395
306 SYS_READ_NOCANCEL = 396
307 SYS_WRITE_NOCANCEL = 397
308 SYS_OPEN_NOCANCEL = 398
309 SYS_CLOSE_NOCANCEL = 399
310 SYS_WAIT4_NOCANCEL = 400
311 SYS_RECVMSG_NOCANCEL = 401
312 SYS_SENDMSG_NOCANCEL = 402
313 SYS_RECVFROM_NOCANCEL = 403
314 SYS_ACCEPT_NOCANCEL = 404
315 SYS_MSYNC_NOCANCEL = 405
316 SYS_FCNTL_NOCANCEL = 406
317 SYS_SELECT_NOCANCEL = 407
318 SYS_FSYNC_NOCANCEL = 408
319 SYS_CONNECT_NOCANCEL = 409
320 SYS_SIGSUSPEND_NOCANCEL = 410
321 SYS_READV_NOCANCEL = 411
322 SYS_WRITEV_NOCANCEL = 412
323 SYS_SENDTO_NOCANCEL = 413
324 SYS_PREAD_NOCANCEL = 414
325 SYS_PWRITE_NOCANCEL = 415
326 SYS_WAITID_NOCANCEL = 416
327 SYS_POLL_NOCANCEL = 417
328 SYS_MSGSND_NOCANCEL = 418
329 SYS_MSGRCV_NOCANCEL = 419
330 SYS_SEM_WAIT_NOCANCEL = 420
331 SYS_AIO_SUSPEND_NOCANCEL = 421
332 SYS___SIGWAIT_NOCANCEL = 422
333 SYS___SEMWAIT_SIGNAL_NOCANCEL = 423
334 SYS___MAC_MOUNT = 424
335 SYS___MAC_GET_MOUNT = 425
336 SYS___MAC_GETFSSTAT = 426
337 SYS_FSGETPATH = 427
338 SYS_AUDIT_SESSION_SELF = 428
339 SYS_AUDIT_SESSION_JOIN = 429
340 SYS_FILEPORT_MAKEPORT = 430
341 SYS_FILEPORT_MAKEFD = 431
342 SYS_AUDIT_SESSION_PORT = 432
343 SYS_PID_SUSPEND = 433
344 SYS_PID_RESUME = 434
345 SYS_PID_HIBERNATE = 435
346 SYS_PID_SHUTDOWN_SOCKETS = 436
347 SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
348 SYS_KAS_INFO = 439
349 SYS_MEMORYSTATUS_CONTROL = 440
350 SYS_GUARDED_OPEN_NP = 441
351 SYS_GUARDED_CLOSE_NP = 442
352 SYS_GUARDED_KQUEUE_NP = 443
353 SYS_CHANGE_FDGUARD_NP = 444
354 SYS_PROC_RLIMIT_CONTROL = 446
355 SYS_CONNECTX = 447
356 SYS_DISCONNECTX = 448
357 SYS_PEELOFF = 449
358 SYS_SOCKET_DELEGATE = 450
359 SYS_TELEMETRY = 451
360 SYS_PROC_UUID_POLICY = 452
361 SYS_MEMORYSTATUS_GET_LEVEL = 453
362 SYS_SYSTEM_OVERRIDE = 454
363 SYS_VFS_PURGE = 455
364 SYS_SFI_CTL = 456
365 SYS_SFI_PIDCTL = 457
366 SYS_COALITION = 458
367 SYS_COALITION_INFO = 459
368 SYS_NECP_MATCH_POLICY = 460
369 SYS_GETATTRLISTBULK = 461
370 SYS_OPENAT = 463
371 SYS_OPENAT_NOCANCEL = 464
372 SYS_RENAMEAT = 465
373 SYS_FACCESSAT = 466
374 SYS_FCHMODAT = 467
375 SYS_FCHOWNAT = 468
376 SYS_FSTATAT = 469
377 SYS_FSTATAT64 = 470
378 SYS_LINKAT = 471
379 SYS_UNLINKAT = 472
380 SYS_READLINKAT = 473
381 SYS_SYMLINKAT = 474
382 SYS_MKDIRAT = 475
383 SYS_GETATTRLISTAT = 476
384 SYS_PROC_TRACE_LOG = 477
385 SYS_BSDTHREAD_CTL = 478
386 SYS_OPENBYID_NP = 479
387 SYS_RECVMSG_X = 480
388 SYS_SENDMSG_X = 481
389 SYS_THREAD_SELFUSAGE = 482
390 SYS_CSRCTL = 483
391 SYS_GUARDED_OPEN_DPROTECTED_NP = 484
392 SYS_GUARDED_WRITE_NP = 485
393 SYS_GUARDED_PWRITE_NP = 486
394 SYS_GUARDED_WRITEV_NP = 487
395 SYS_RENAME_EXT = 488
396 SYS_MREMAP_ENCRYPTED = 489
397 SYS_MAXSYSCALL = 490
398)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_arm.go
deleted file mode 100644
index b8c9aea..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_arm.go
+++ /dev/null
@@ -1,358 +0,0 @@
1// mksysnum_darwin.pl /usr/include/sys/syscall.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build arm,darwin
5
6package unix
7
8const (
9 SYS_SYSCALL = 0
10 SYS_EXIT = 1
11 SYS_FORK = 2
12 SYS_READ = 3
13 SYS_WRITE = 4
14 SYS_OPEN = 5
15 SYS_CLOSE = 6
16 SYS_WAIT4 = 7
17 SYS_LINK = 9
18 SYS_UNLINK = 10
19 SYS_CHDIR = 12
20 SYS_FCHDIR = 13
21 SYS_MKNOD = 14
22 SYS_CHMOD = 15
23 SYS_CHOWN = 16
24 SYS_GETFSSTAT = 18
25 SYS_GETPID = 20
26 SYS_SETUID = 23
27 SYS_GETUID = 24
28 SYS_GETEUID = 25
29 SYS_PTRACE = 26
30 SYS_RECVMSG = 27
31 SYS_SENDMSG = 28
32 SYS_RECVFROM = 29
33 SYS_ACCEPT = 30
34 SYS_GETPEERNAME = 31
35 SYS_GETSOCKNAME = 32
36 SYS_ACCESS = 33
37 SYS_CHFLAGS = 34
38 SYS_FCHFLAGS = 35
39 SYS_SYNC = 36
40 SYS_KILL = 37
41 SYS_GETPPID = 39
42 SYS_DUP = 41
43 SYS_PIPE = 42
44 SYS_GETEGID = 43
45 SYS_SIGACTION = 46
46 SYS_GETGID = 47
47 SYS_SIGPROCMASK = 48
48 SYS_GETLOGIN = 49
49 SYS_SETLOGIN = 50
50 SYS_ACCT = 51
51 SYS_SIGPENDING = 52
52 SYS_SIGALTSTACK = 53
53 SYS_IOCTL = 54
54 SYS_REBOOT = 55
55 SYS_REVOKE = 56
56 SYS_SYMLINK = 57
57 SYS_READLINK = 58
58 SYS_EXECVE = 59
59 SYS_UMASK = 60
60 SYS_CHROOT = 61
61 SYS_MSYNC = 65
62 SYS_VFORK = 66
63 SYS_MUNMAP = 73
64 SYS_MPROTECT = 74
65 SYS_MADVISE = 75
66 SYS_MINCORE = 78
67 SYS_GETGROUPS = 79
68 SYS_SETGROUPS = 80
69 SYS_GETPGRP = 81
70 SYS_SETPGID = 82
71 SYS_SETITIMER = 83
72 SYS_SWAPON = 85
73 SYS_GETITIMER = 86
74 SYS_GETDTABLESIZE = 89
75 SYS_DUP2 = 90
76 SYS_FCNTL = 92
77 SYS_SELECT = 93
78 SYS_FSYNC = 95
79 SYS_SETPRIORITY = 96
80 SYS_SOCKET = 97
81 SYS_CONNECT = 98
82 SYS_GETPRIORITY = 100
83 SYS_BIND = 104
84 SYS_SETSOCKOPT = 105
85 SYS_LISTEN = 106
86 SYS_SIGSUSPEND = 111
87 SYS_GETTIMEOFDAY = 116
88 SYS_GETRUSAGE = 117
89 SYS_GETSOCKOPT = 118
90 SYS_READV = 120
91 SYS_WRITEV = 121
92 SYS_SETTIMEOFDAY = 122
93 SYS_FCHOWN = 123
94 SYS_FCHMOD = 124
95 SYS_SETREUID = 126
96 SYS_SETREGID = 127
97 SYS_RENAME = 128
98 SYS_FLOCK = 131
99 SYS_MKFIFO = 132
100 SYS_SENDTO = 133
101 SYS_SHUTDOWN = 134
102 SYS_SOCKETPAIR = 135
103 SYS_MKDIR = 136
104 SYS_RMDIR = 137
105 SYS_UTIMES = 138
106 SYS_FUTIMES = 139
107 SYS_ADJTIME = 140
108 SYS_GETHOSTUUID = 142
109 SYS_SETSID = 147
110 SYS_GETPGID = 151
111 SYS_SETPRIVEXEC = 152
112 SYS_PREAD = 153
113 SYS_PWRITE = 154
114 SYS_NFSSVC = 155
115 SYS_STATFS = 157
116 SYS_FSTATFS = 158
117 SYS_UNMOUNT = 159
118 SYS_GETFH = 161
119 SYS_QUOTACTL = 165
120 SYS_MOUNT = 167
121 SYS_CSOPS = 169
122 SYS_CSOPS_AUDITTOKEN = 170
123 SYS_WAITID = 173
124 SYS_KDEBUG_TRACE = 180
125 SYS_SETGID = 181
126 SYS_SETEGID = 182
127 SYS_SETEUID = 183
128 SYS_SIGRETURN = 184
129 SYS_CHUD = 185
130 SYS_FDATASYNC = 187
131 SYS_STAT = 188
132 SYS_FSTAT = 189
133 SYS_LSTAT = 190
134 SYS_PATHCONF = 191
135 SYS_FPATHCONF = 192
136 SYS_GETRLIMIT = 194
137 SYS_SETRLIMIT = 195
138 SYS_GETDIRENTRIES = 196
139 SYS_MMAP = 197
140 SYS_LSEEK = 199
141 SYS_TRUNCATE = 200
142 SYS_FTRUNCATE = 201
143 SYS___SYSCTL = 202
144 SYS_MLOCK = 203
145 SYS_MUNLOCK = 204
146 SYS_UNDELETE = 205
147 SYS_ATSOCKET = 206
148 SYS_ATGETMSG = 207
149 SYS_ATPUTMSG = 208
150 SYS_ATPSNDREQ = 209
151 SYS_ATPSNDRSP = 210
152 SYS_ATPGETREQ = 211
153 SYS_ATPGETRSP = 212
154 SYS_OPEN_DPROTECTED_NP = 216
155 SYS_GETATTRLIST = 220
156 SYS_SETATTRLIST = 221
157 SYS_GETDIRENTRIESATTR = 222
158 SYS_EXCHANGEDATA = 223
159 SYS_SEARCHFS = 225
160 SYS_DELETE = 226
161 SYS_COPYFILE = 227
162 SYS_FGETATTRLIST = 228
163 SYS_FSETATTRLIST = 229
164 SYS_POLL = 230
165 SYS_WATCHEVENT = 231
166 SYS_WAITEVENT = 232
167 SYS_MODWATCH = 233
168 SYS_GETXATTR = 234
169 SYS_FGETXATTR = 235
170 SYS_SETXATTR = 236
171 SYS_FSETXATTR = 237
172 SYS_REMOVEXATTR = 238
173 SYS_FREMOVEXATTR = 239
174 SYS_LISTXATTR = 240
175 SYS_FLISTXATTR = 241
176 SYS_FSCTL = 242
177 SYS_INITGROUPS = 243
178 SYS_POSIX_SPAWN = 244
179 SYS_FFSCTL = 245
180 SYS_NFSCLNT = 247
181 SYS_FHOPEN = 248
182 SYS_MINHERIT = 250
183 SYS_SEMSYS = 251
184 SYS_MSGSYS = 252
185 SYS_SHMSYS = 253
186 SYS_SEMCTL = 254
187 SYS_SEMGET = 255
188 SYS_SEMOP = 256
189 SYS_MSGCTL = 258
190 SYS_MSGGET = 259
191 SYS_MSGSND = 260
192 SYS_MSGRCV = 261
193 SYS_SHMAT = 262
194 SYS_SHMCTL = 263
195 SYS_SHMDT = 264
196 SYS_SHMGET = 265
197 SYS_SHM_OPEN = 266
198 SYS_SHM_UNLINK = 267
199 SYS_SEM_OPEN = 268
200 SYS_SEM_CLOSE = 269
201 SYS_SEM_UNLINK = 270
202 SYS_SEM_WAIT = 271
203 SYS_SEM_TRYWAIT = 272
204 SYS_SEM_POST = 273
205 SYS_SEM_GETVALUE = 274
206 SYS_SEM_INIT = 275
207 SYS_SEM_DESTROY = 276
208 SYS_OPEN_EXTENDED = 277
209 SYS_UMASK_EXTENDED = 278
210 SYS_STAT_EXTENDED = 279
211 SYS_LSTAT_EXTENDED = 280
212 SYS_FSTAT_EXTENDED = 281
213 SYS_CHMOD_EXTENDED = 282
214 SYS_FCHMOD_EXTENDED = 283
215 SYS_ACCESS_EXTENDED = 284
216 SYS_SETTID = 285
217 SYS_GETTID = 286
218 SYS_SETSGROUPS = 287
219 SYS_GETSGROUPS = 288
220 SYS_SETWGROUPS = 289
221 SYS_GETWGROUPS = 290
222 SYS_MKFIFO_EXTENDED = 291
223 SYS_MKDIR_EXTENDED = 292
224 SYS_IDENTITYSVC = 293
225 SYS_SHARED_REGION_CHECK_NP = 294
226 SYS_VM_PRESSURE_MONITOR = 296
227 SYS_PSYNCH_RW_LONGRDLOCK = 297
228 SYS_PSYNCH_RW_YIELDWRLOCK = 298
229 SYS_PSYNCH_RW_DOWNGRADE = 299
230 SYS_PSYNCH_RW_UPGRADE = 300
231 SYS_PSYNCH_MUTEXWAIT = 301
232 SYS_PSYNCH_MUTEXDROP = 302
233 SYS_PSYNCH_CVBROAD = 303
234 SYS_PSYNCH_CVSIGNAL = 304
235 SYS_PSYNCH_CVWAIT = 305
236 SYS_PSYNCH_RW_RDLOCK = 306
237 SYS_PSYNCH_RW_WRLOCK = 307
238 SYS_PSYNCH_RW_UNLOCK = 308
239 SYS_PSYNCH_RW_UNLOCK2 = 309
240 SYS_GETSID = 310
241 SYS_SETTID_WITH_PID = 311
242 SYS_PSYNCH_CVCLRPREPOST = 312
243 SYS_AIO_FSYNC = 313
244 SYS_AIO_RETURN = 314
245 SYS_AIO_SUSPEND = 315
246 SYS_AIO_CANCEL = 316
247 SYS_AIO_ERROR = 317
248 SYS_AIO_READ = 318
249 SYS_AIO_WRITE = 319
250 SYS_LIO_LISTIO = 320
251 SYS_IOPOLICYSYS = 322
252 SYS_PROCESS_POLICY = 323
253 SYS_MLOCKALL = 324
254 SYS_MUNLOCKALL = 325
255 SYS_ISSETUGID = 327
256 SYS___PTHREAD_KILL = 328
257 SYS___PTHREAD_SIGMASK = 329
258 SYS___SIGWAIT = 330
259 SYS___DISABLE_THREADSIGNAL = 331
260 SYS___PTHREAD_MARKCANCEL = 332
261 SYS___PTHREAD_CANCELED = 333
262 SYS___SEMWAIT_SIGNAL = 334
263 SYS_PROC_INFO = 336
264 SYS_SENDFILE = 337
265 SYS_STAT64 = 338
266 SYS_FSTAT64 = 339
267 SYS_LSTAT64 = 340
268 SYS_STAT64_EXTENDED = 341
269 SYS_LSTAT64_EXTENDED = 342
270 SYS_FSTAT64_EXTENDED = 343
271 SYS_GETDIRENTRIES64 = 344
272 SYS_STATFS64 = 345
273 SYS_FSTATFS64 = 346
274 SYS_GETFSSTAT64 = 347
275 SYS___PTHREAD_CHDIR = 348
276 SYS___PTHREAD_FCHDIR = 349
277 SYS_AUDIT = 350
278 SYS_AUDITON = 351
279 SYS_GETAUID = 353
280 SYS_SETAUID = 354
281 SYS_GETAUDIT_ADDR = 357
282 SYS_SETAUDIT_ADDR = 358
283 SYS_AUDITCTL = 359
284 SYS_BSDTHREAD_CREATE = 360
285 SYS_BSDTHREAD_TERMINATE = 361
286 SYS_KQUEUE = 362
287 SYS_KEVENT = 363
288 SYS_LCHOWN = 364
289 SYS_STACK_SNAPSHOT = 365
290 SYS_BSDTHREAD_REGISTER = 366
291 SYS_WORKQ_OPEN = 367
292 SYS_WORKQ_KERNRETURN = 368
293 SYS_KEVENT64 = 369
294 SYS___OLD_SEMWAIT_SIGNAL = 370
295 SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
296 SYS_THREAD_SELFID = 372
297 SYS_LEDGER = 373
298 SYS___MAC_EXECVE = 380
299 SYS___MAC_SYSCALL = 381
300 SYS___MAC_GET_FILE = 382
301 SYS___MAC_SET_FILE = 383
302 SYS___MAC_GET_LINK = 384
303 SYS___MAC_SET_LINK = 385
304 SYS___MAC_GET_PROC = 386
305 SYS___MAC_SET_PROC = 387
306 SYS___MAC_GET_FD = 388
307 SYS___MAC_SET_FD = 389
308 SYS___MAC_GET_PID = 390
309 SYS___MAC_GET_LCID = 391
310 SYS___MAC_GET_LCTX = 392
311 SYS___MAC_SET_LCTX = 393
312 SYS_SETLCID = 394
313 SYS_GETLCID = 395
314 SYS_READ_NOCANCEL = 396
315 SYS_WRITE_NOCANCEL = 397
316 SYS_OPEN_NOCANCEL = 398
317 SYS_CLOSE_NOCANCEL = 399
318 SYS_WAIT4_NOCANCEL = 400
319 SYS_RECVMSG_NOCANCEL = 401
320 SYS_SENDMSG_NOCANCEL = 402
321 SYS_RECVFROM_NOCANCEL = 403
322 SYS_ACCEPT_NOCANCEL = 404
323 SYS_MSYNC_NOCANCEL = 405
324 SYS_FCNTL_NOCANCEL = 406
325 SYS_SELECT_NOCANCEL = 407
326 SYS_FSYNC_NOCANCEL = 408
327 SYS_CONNECT_NOCANCEL = 409
328 SYS_SIGSUSPEND_NOCANCEL = 410
329 SYS_READV_NOCANCEL = 411
330 SYS_WRITEV_NOCANCEL = 412
331 SYS_SENDTO_NOCANCEL = 413
332 SYS_PREAD_NOCANCEL = 414
333 SYS_PWRITE_NOCANCEL = 415
334 SYS_WAITID_NOCANCEL = 416
335 SYS_POLL_NOCANCEL = 417
336 SYS_MSGSND_NOCANCEL = 418
337 SYS_MSGRCV_NOCANCEL = 419
338 SYS_SEM_WAIT_NOCANCEL = 420
339 SYS_AIO_SUSPEND_NOCANCEL = 421
340 SYS___SIGWAIT_NOCANCEL = 422
341 SYS___SEMWAIT_SIGNAL_NOCANCEL = 423
342 SYS___MAC_MOUNT = 424
343 SYS___MAC_GET_MOUNT = 425
344 SYS___MAC_GETFSSTAT = 426
345 SYS_FSGETPATH = 427
346 SYS_AUDIT_SESSION_SELF = 428
347 SYS_AUDIT_SESSION_JOIN = 429
348 SYS_FILEPORT_MAKEPORT = 430
349 SYS_FILEPORT_MAKEFD = 431
350 SYS_AUDIT_SESSION_PORT = 432
351 SYS_PID_SUSPEND = 433
352 SYS_PID_RESUME = 434
353 SYS_PID_HIBERNATE = 435
354 SYS_PID_SHUTDOWN_SOCKETS = 436
355 SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
356 SYS_KAS_INFO = 439
357 SYS_MAXSYSCALL = 440
358)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_arm64.go
deleted file mode 100644
index 26677eb..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_darwin_arm64.go
+++ /dev/null
@@ -1,398 +0,0 @@
1// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/usr/include/sys/syscall.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build arm64,darwin
5
6package unix
7
8const (
9 SYS_SYSCALL = 0
10 SYS_EXIT = 1
11 SYS_FORK = 2
12 SYS_READ = 3
13 SYS_WRITE = 4
14 SYS_OPEN = 5
15 SYS_CLOSE = 6
16 SYS_WAIT4 = 7
17 SYS_LINK = 9
18 SYS_UNLINK = 10
19 SYS_CHDIR = 12
20 SYS_FCHDIR = 13
21 SYS_MKNOD = 14
22 SYS_CHMOD = 15
23 SYS_CHOWN = 16
24 SYS_GETFSSTAT = 18
25 SYS_GETPID = 20
26 SYS_SETUID = 23
27 SYS_GETUID = 24
28 SYS_GETEUID = 25
29 SYS_PTRACE = 26
30 SYS_RECVMSG = 27
31 SYS_SENDMSG = 28
32 SYS_RECVFROM = 29
33 SYS_ACCEPT = 30
34 SYS_GETPEERNAME = 31
35 SYS_GETSOCKNAME = 32
36 SYS_ACCESS = 33
37 SYS_CHFLAGS = 34
38 SYS_FCHFLAGS = 35
39 SYS_SYNC = 36
40 SYS_KILL = 37
41 SYS_GETPPID = 39
42 SYS_DUP = 41
43 SYS_PIPE = 42
44 SYS_GETEGID = 43
45 SYS_SIGACTION = 46
46 SYS_GETGID = 47
47 SYS_SIGPROCMASK = 48
48 SYS_GETLOGIN = 49
49 SYS_SETLOGIN = 50
50 SYS_ACCT = 51
51 SYS_SIGPENDING = 52
52 SYS_SIGALTSTACK = 53
53 SYS_IOCTL = 54
54 SYS_REBOOT = 55
55 SYS_REVOKE = 56
56 SYS_SYMLINK = 57
57 SYS_READLINK = 58
58 SYS_EXECVE = 59
59 SYS_UMASK = 60
60 SYS_CHROOT = 61
61 SYS_MSYNC = 65
62 SYS_VFORK = 66
63 SYS_MUNMAP = 73
64 SYS_MPROTECT = 74
65 SYS_MADVISE = 75
66 SYS_MINCORE = 78
67 SYS_GETGROUPS = 79
68 SYS_SETGROUPS = 80
69 SYS_GETPGRP = 81
70 SYS_SETPGID = 82
71 SYS_SETITIMER = 83
72 SYS_SWAPON = 85
73 SYS_GETITIMER = 86
74 SYS_GETDTABLESIZE = 89
75 SYS_DUP2 = 90
76 SYS_FCNTL = 92
77 SYS_SELECT = 93
78 SYS_FSYNC = 95
79 SYS_SETPRIORITY = 96
80 SYS_SOCKET = 97
81 SYS_CONNECT = 98
82 SYS_GETPRIORITY = 100
83 SYS_BIND = 104
84 SYS_SETSOCKOPT = 105
85 SYS_LISTEN = 106
86 SYS_SIGSUSPEND = 111
87 SYS_GETTIMEOFDAY = 116
88 SYS_GETRUSAGE = 117
89 SYS_GETSOCKOPT = 118
90 SYS_READV = 120
91 SYS_WRITEV = 121
92 SYS_SETTIMEOFDAY = 122
93 SYS_FCHOWN = 123
94 SYS_FCHMOD = 124
95 SYS_SETREUID = 126
96 SYS_SETREGID = 127
97 SYS_RENAME = 128
98 SYS_FLOCK = 131
99 SYS_MKFIFO = 132
100 SYS_SENDTO = 133
101 SYS_SHUTDOWN = 134
102 SYS_SOCKETPAIR = 135
103 SYS_MKDIR = 136
104 SYS_RMDIR = 137
105 SYS_UTIMES = 138
106 SYS_FUTIMES = 139
107 SYS_ADJTIME = 140
108 SYS_GETHOSTUUID = 142
109 SYS_SETSID = 147
110 SYS_GETPGID = 151
111 SYS_SETPRIVEXEC = 152
112 SYS_PREAD = 153
113 SYS_PWRITE = 154
114 SYS_NFSSVC = 155
115 SYS_STATFS = 157
116 SYS_FSTATFS = 158
117 SYS_UNMOUNT = 159
118 SYS_GETFH = 161
119 SYS_QUOTACTL = 165
120 SYS_MOUNT = 167
121 SYS_CSOPS = 169
122 SYS_CSOPS_AUDITTOKEN = 170
123 SYS_WAITID = 173
124 SYS_KDEBUG_TRACE64 = 179
125 SYS_KDEBUG_TRACE = 180
126 SYS_SETGID = 181
127 SYS_SETEGID = 182
128 SYS_SETEUID = 183
129 SYS_SIGRETURN = 184
130 SYS_CHUD = 185
131 SYS_FDATASYNC = 187
132 SYS_STAT = 188
133 SYS_FSTAT = 189
134 SYS_LSTAT = 190
135 SYS_PATHCONF = 191
136 SYS_FPATHCONF = 192
137 SYS_GETRLIMIT = 194
138 SYS_SETRLIMIT = 195
139 SYS_GETDIRENTRIES = 196
140 SYS_MMAP = 197
141 SYS_LSEEK = 199
142 SYS_TRUNCATE = 200
143 SYS_FTRUNCATE = 201
144 SYS_SYSCTL = 202
145 SYS_MLOCK = 203
146 SYS_MUNLOCK = 204
147 SYS_UNDELETE = 205
148 SYS_OPEN_DPROTECTED_NP = 216
149 SYS_GETATTRLIST = 220
150 SYS_SETATTRLIST = 221
151 SYS_GETDIRENTRIESATTR = 222
152 SYS_EXCHANGEDATA = 223
153 SYS_SEARCHFS = 225
154 SYS_DELETE = 226
155 SYS_COPYFILE = 227
156 SYS_FGETATTRLIST = 228
157 SYS_FSETATTRLIST = 229
158 SYS_POLL = 230
159 SYS_WATCHEVENT = 231
160 SYS_WAITEVENT = 232
161 SYS_MODWATCH = 233
162 SYS_GETXATTR = 234
163 SYS_FGETXATTR = 235
164 SYS_SETXATTR = 236
165 SYS_FSETXATTR = 237
166 SYS_REMOVEXATTR = 238
167 SYS_FREMOVEXATTR = 239
168 SYS_LISTXATTR = 240
169 SYS_FLISTXATTR = 241
170 SYS_FSCTL = 242
171 SYS_INITGROUPS = 243
172 SYS_POSIX_SPAWN = 244
173 SYS_FFSCTL = 245
174 SYS_NFSCLNT = 247
175 SYS_FHOPEN = 248
176 SYS_MINHERIT = 250
177 SYS_SEMSYS = 251
178 SYS_MSGSYS = 252
179 SYS_SHMSYS = 253
180 SYS_SEMCTL = 254
181 SYS_SEMGET = 255
182 SYS_SEMOP = 256
183 SYS_MSGCTL = 258
184 SYS_MSGGET = 259
185 SYS_MSGSND = 260
186 SYS_MSGRCV = 261
187 SYS_SHMAT = 262
188 SYS_SHMCTL = 263
189 SYS_SHMDT = 264
190 SYS_SHMGET = 265
191 SYS_SHM_OPEN = 266
192 SYS_SHM_UNLINK = 267
193 SYS_SEM_OPEN = 268
194 SYS_SEM_CLOSE = 269
195 SYS_SEM_UNLINK = 270
196 SYS_SEM_WAIT = 271
197 SYS_SEM_TRYWAIT = 272
198 SYS_SEM_POST = 273
199 SYS_SYSCTLBYNAME = 274
200 SYS_OPEN_EXTENDED = 277
201 SYS_UMASK_EXTENDED = 278
202 SYS_STAT_EXTENDED = 279
203 SYS_LSTAT_EXTENDED = 280
204 SYS_FSTAT_EXTENDED = 281
205 SYS_CHMOD_EXTENDED = 282
206 SYS_FCHMOD_EXTENDED = 283
207 SYS_ACCESS_EXTENDED = 284
208 SYS_SETTID = 285
209 SYS_GETTID = 286
210 SYS_SETSGROUPS = 287
211 SYS_GETSGROUPS = 288
212 SYS_SETWGROUPS = 289
213 SYS_GETWGROUPS = 290
214 SYS_MKFIFO_EXTENDED = 291
215 SYS_MKDIR_EXTENDED = 292
216 SYS_IDENTITYSVC = 293
217 SYS_SHARED_REGION_CHECK_NP = 294
218 SYS_VM_PRESSURE_MONITOR = 296
219 SYS_PSYNCH_RW_LONGRDLOCK = 297
220 SYS_PSYNCH_RW_YIELDWRLOCK = 298
221 SYS_PSYNCH_RW_DOWNGRADE = 299
222 SYS_PSYNCH_RW_UPGRADE = 300
223 SYS_PSYNCH_MUTEXWAIT = 301
224 SYS_PSYNCH_MUTEXDROP = 302
225 SYS_PSYNCH_CVBROAD = 303
226 SYS_PSYNCH_CVSIGNAL = 304
227 SYS_PSYNCH_CVWAIT = 305
228 SYS_PSYNCH_RW_RDLOCK = 306
229 SYS_PSYNCH_RW_WRLOCK = 307
230 SYS_PSYNCH_RW_UNLOCK = 308
231 SYS_PSYNCH_RW_UNLOCK2 = 309
232 SYS_GETSID = 310
233 SYS_SETTID_WITH_PID = 311
234 SYS_PSYNCH_CVCLRPREPOST = 312
235 SYS_AIO_FSYNC = 313
236 SYS_AIO_RETURN = 314
237 SYS_AIO_SUSPEND = 315
238 SYS_AIO_CANCEL = 316
239 SYS_AIO_ERROR = 317
240 SYS_AIO_READ = 318
241 SYS_AIO_WRITE = 319
242 SYS_LIO_LISTIO = 320
243 SYS_IOPOLICYSYS = 322
244 SYS_PROCESS_POLICY = 323
245 SYS_MLOCKALL = 324
246 SYS_MUNLOCKALL = 325
247 SYS_ISSETUGID = 327
248 SYS___PTHREAD_KILL = 328
249 SYS___PTHREAD_SIGMASK = 329
250 SYS___SIGWAIT = 330
251 SYS___DISABLE_THREADSIGNAL = 331
252 SYS___PTHREAD_MARKCANCEL = 332
253 SYS___PTHREAD_CANCELED = 333
254 SYS___SEMWAIT_SIGNAL = 334
255 SYS_PROC_INFO = 336
256 SYS_SENDFILE = 337
257 SYS_STAT64 = 338
258 SYS_FSTAT64 = 339
259 SYS_LSTAT64 = 340
260 SYS_STAT64_EXTENDED = 341
261 SYS_LSTAT64_EXTENDED = 342
262 SYS_FSTAT64_EXTENDED = 343
263 SYS_GETDIRENTRIES64 = 344
264 SYS_STATFS64 = 345
265 SYS_FSTATFS64 = 346
266 SYS_GETFSSTAT64 = 347
267 SYS___PTHREAD_CHDIR = 348
268 SYS___PTHREAD_FCHDIR = 349
269 SYS_AUDIT = 350
270 SYS_AUDITON = 351
271 SYS_GETAUID = 353
272 SYS_SETAUID = 354
273 SYS_GETAUDIT_ADDR = 357
274 SYS_SETAUDIT_ADDR = 358
275 SYS_AUDITCTL = 359
276 SYS_BSDTHREAD_CREATE = 360
277 SYS_BSDTHREAD_TERMINATE = 361
278 SYS_KQUEUE = 362
279 SYS_KEVENT = 363
280 SYS_LCHOWN = 364
281 SYS_STACK_SNAPSHOT = 365
282 SYS_BSDTHREAD_REGISTER = 366
283 SYS_WORKQ_OPEN = 367
284 SYS_WORKQ_KERNRETURN = 368
285 SYS_KEVENT64 = 369
286 SYS___OLD_SEMWAIT_SIGNAL = 370
287 SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
288 SYS_THREAD_SELFID = 372
289 SYS_LEDGER = 373
290 SYS___MAC_EXECVE = 380
291 SYS___MAC_SYSCALL = 381
292 SYS___MAC_GET_FILE = 382
293 SYS___MAC_SET_FILE = 383
294 SYS___MAC_GET_LINK = 384
295 SYS___MAC_SET_LINK = 385
296 SYS___MAC_GET_PROC = 386
297 SYS___MAC_SET_PROC = 387
298 SYS___MAC_GET_FD = 388
299 SYS___MAC_SET_FD = 389
300 SYS___MAC_GET_PID = 390
301 SYS___MAC_GET_LCID = 391
302 SYS___MAC_GET_LCTX = 392
303 SYS___MAC_SET_LCTX = 393
304 SYS_SETLCID = 394
305 SYS_GETLCID = 395
306 SYS_READ_NOCANCEL = 396
307 SYS_WRITE_NOCANCEL = 397
308 SYS_OPEN_NOCANCEL = 398
309 SYS_CLOSE_NOCANCEL = 399
310 SYS_WAIT4_NOCANCEL = 400
311 SYS_RECVMSG_NOCANCEL = 401
312 SYS_SENDMSG_NOCANCEL = 402
313 SYS_RECVFROM_NOCANCEL = 403
314 SYS_ACCEPT_NOCANCEL = 404
315 SYS_MSYNC_NOCANCEL = 405
316 SYS_FCNTL_NOCANCEL = 406
317 SYS_SELECT_NOCANCEL = 407
318 SYS_FSYNC_NOCANCEL = 408
319 SYS_CONNECT_NOCANCEL = 409
320 SYS_SIGSUSPEND_NOCANCEL = 410
321 SYS_READV_NOCANCEL = 411
322 SYS_WRITEV_NOCANCEL = 412
323 SYS_SENDTO_NOCANCEL = 413
324 SYS_PREAD_NOCANCEL = 414
325 SYS_PWRITE_NOCANCEL = 415
326 SYS_WAITID_NOCANCEL = 416
327 SYS_POLL_NOCANCEL = 417
328 SYS_MSGSND_NOCANCEL = 418
329 SYS_MSGRCV_NOCANCEL = 419
330 SYS_SEM_WAIT_NOCANCEL = 420
331 SYS_AIO_SUSPEND_NOCANCEL = 421
332 SYS___SIGWAIT_NOCANCEL = 422
333 SYS___SEMWAIT_SIGNAL_NOCANCEL = 423
334 SYS___MAC_MOUNT = 424
335 SYS___MAC_GET_MOUNT = 425
336 SYS___MAC_GETFSSTAT = 426
337 SYS_FSGETPATH = 427
338 SYS_AUDIT_SESSION_SELF = 428
339 SYS_AUDIT_SESSION_JOIN = 429
340 SYS_FILEPORT_MAKEPORT = 430
341 SYS_FILEPORT_MAKEFD = 431
342 SYS_AUDIT_SESSION_PORT = 432
343 SYS_PID_SUSPEND = 433
344 SYS_PID_RESUME = 434
345 SYS_PID_HIBERNATE = 435
346 SYS_PID_SHUTDOWN_SOCKETS = 436
347 SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
348 SYS_KAS_INFO = 439
349 SYS_MEMORYSTATUS_CONTROL = 440
350 SYS_GUARDED_OPEN_NP = 441
351 SYS_GUARDED_CLOSE_NP = 442
352 SYS_GUARDED_KQUEUE_NP = 443
353 SYS_CHANGE_FDGUARD_NP = 444
354 SYS_PROC_RLIMIT_CONTROL = 446
355 SYS_CONNECTX = 447
356 SYS_DISCONNECTX = 448
357 SYS_PEELOFF = 449
358 SYS_SOCKET_DELEGATE = 450
359 SYS_TELEMETRY = 451
360 SYS_PROC_UUID_POLICY = 452
361 SYS_MEMORYSTATUS_GET_LEVEL = 453
362 SYS_SYSTEM_OVERRIDE = 454
363 SYS_VFS_PURGE = 455
364 SYS_SFI_CTL = 456
365 SYS_SFI_PIDCTL = 457
366 SYS_COALITION = 458
367 SYS_COALITION_INFO = 459
368 SYS_NECP_MATCH_POLICY = 460
369 SYS_GETATTRLISTBULK = 461
370 SYS_OPENAT = 463
371 SYS_OPENAT_NOCANCEL = 464
372 SYS_RENAMEAT = 465
373 SYS_FACCESSAT = 466
374 SYS_FCHMODAT = 467
375 SYS_FCHOWNAT = 468
376 SYS_FSTATAT = 469
377 SYS_FSTATAT64 = 470
378 SYS_LINKAT = 471
379 SYS_UNLINKAT = 472
380 SYS_READLINKAT = 473
381 SYS_SYMLINKAT = 474
382 SYS_MKDIRAT = 475
383 SYS_GETATTRLISTAT = 476
384 SYS_PROC_TRACE_LOG = 477
385 SYS_BSDTHREAD_CTL = 478
386 SYS_OPENBYID_NP = 479
387 SYS_RECVMSG_X = 480
388 SYS_SENDMSG_X = 481
389 SYS_THREAD_SELFUSAGE = 482
390 SYS_CSRCTL = 483
391 SYS_GUARDED_OPEN_DPROTECTED_NP = 484
392 SYS_GUARDED_WRITE_NP = 485
393 SYS_GUARDED_PWRITE_NP = 486
394 SYS_GUARDED_WRITEV_NP = 487
395 SYS_RENAME_EXT = 488
396 SYS_MREMAP_ENCRYPTED = 489
397 SYS_MAXSYSCALL = 490
398)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_dragonfly_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_dragonfly_386.go
deleted file mode 100644
index 785240a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_dragonfly_386.go
+++ /dev/null
@@ -1,304 +0,0 @@
1// mksysnum_dragonfly.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build 386,dragonfly
5
6package unix
7
8const (
9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
10 SYS_EXIT = 1 // { void exit(int rval); }
11 SYS_FORK = 2 // { int fork(void); }
12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); }
13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); }
14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
15 SYS_CLOSE = 6 // { int close(int fd); }
16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, \
17 SYS_LINK = 9 // { int link(char *path, char *link); }
18 SYS_UNLINK = 10 // { int unlink(char *path); }
19 SYS_CHDIR = 12 // { int chdir(char *path); }
20 SYS_FCHDIR = 13 // { int fchdir(int fd); }
21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break obreak_args int
25 SYS_GETFSSTAT = 18 // { int getfsstat(struct statfs *buf, long bufsize, \
26 SYS_GETPID = 20 // { pid_t getpid(void); }
27 SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, \
28 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
29 SYS_SETUID = 23 // { int setuid(uid_t uid); }
30 SYS_GETUID = 24 // { uid_t getuid(void); }
31 SYS_GETEUID = 25 // { uid_t geteuid(void); }
32 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, \
33 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); }
34 SYS_SENDMSG = 28 // { int sendmsg(int s, caddr_t msg, int flags); }
35 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, \
36 SYS_ACCEPT = 30 // { int accept(int s, caddr_t name, int *anamelen); }
37 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, caddr_t asa, int *alen); }
38 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, caddr_t asa, int *alen); }
39 SYS_ACCESS = 33 // { int access(char *path, int flags); }
40 SYS_CHFLAGS = 34 // { int chflags(char *path, int flags); }
41 SYS_FCHFLAGS = 35 // { int fchflags(int fd, int flags); }
42 SYS_SYNC = 36 // { int sync(void); }
43 SYS_KILL = 37 // { int kill(int pid, int signum); }
44 SYS_GETPPID = 39 // { pid_t getppid(void); }
45 SYS_DUP = 41 // { int dup(u_int fd); }
46 SYS_PIPE = 42 // { int pipe(void); }
47 SYS_GETEGID = 43 // { gid_t getegid(void); }
48 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \
49 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, \
50 SYS_GETGID = 47 // { gid_t getgid(void); }
51 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); }
52 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
53 SYS_ACCT = 51 // { int acct(char *path); }
54 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); }
55 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); }
56 SYS_REBOOT = 55 // { int reboot(int opt); }
57 SYS_REVOKE = 56 // { int revoke(char *path); }
58 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
59 SYS_READLINK = 58 // { int readlink(char *path, char *buf, int count); }
60 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); }
61 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args int
62 SYS_CHROOT = 61 // { int chroot(char *path); }
63 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); }
64 SYS_VFORK = 66 // { pid_t vfork(void); }
65 SYS_SBRK = 69 // { int sbrk(int incr); }
66 SYS_SSTK = 70 // { int sstk(int incr); }
67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
68 SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); }
69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); }
70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \
71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); }
72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); }
73 SYS_GETPGRP = 81 // { int getpgrp(void); }
74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, \
76 SYS_SWAPON = 85 // { int swapon(char *name); }
77 SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); }
78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); }
80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \
82 SYS_FSYNC = 95 // { int fsync(int fd); }
83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); }
84 SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); }
85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); }
86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
87 SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); }
88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \
89 SYS_LISTEN = 106 // { int listen(int s, int backlog); }
90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \
91 SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); }
92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \
93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \
95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \
96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
100 SYS_RENAME = 128 // { int rename(char *from, char *to); }
101 SYS_FLOCK = 131 // { int flock(int fd, int how); }
102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \
104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, \
106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
107 SYS_RMDIR = 137 // { int rmdir(char *path); }
108 SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); }
109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
110 SYS_SETSID = 147 // { int setsid(void); }
111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
112 SYS_STATFS = 157 // { int statfs(char *path, struct statfs *buf); }
113 SYS_FSTATFS = 158 // { int fstatfs(int fd, struct statfs *buf); }
114 SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); }
115 SYS_GETDOMAINNAME = 162 // { int getdomainname(char *domainname, int len); }
116 SYS_SETDOMAINNAME = 163 // { int setdomainname(char *domainname, int len); }
117 SYS_UNAME = 164 // { int uname(struct utsname *name); }
118 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
119 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
120 SYS_EXTPREAD = 173 // { ssize_t extpread(int fd, void *buf, \
121 SYS_EXTPWRITE = 174 // { ssize_t extpwrite(int fd, const void *buf, \
122 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
123 SYS_SETGID = 181 // { int setgid(gid_t gid); }
124 SYS_SETEGID = 182 // { int setegid(gid_t egid); }
125 SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
126 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
127 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
128 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \
129 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \
130 SYS_MMAP = 197 // { caddr_t mmap(caddr_t addr, size_t len, int prot, \
131 // SYS_NOSYS = 198; // { int nosys(void); } __syscall __syscall_args int
132 SYS_LSEEK = 199 // { off_t lseek(int fd, int pad, off_t offset, \
133 SYS_TRUNCATE = 200 // { int truncate(char *path, int pad, off_t length); }
134 SYS_FTRUNCATE = 201 // { int ftruncate(int fd, int pad, off_t length); }
135 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, \
136 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
137 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
138 SYS_UNDELETE = 205 // { int undelete(char *path); }
139 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
140 SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
141 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
142 SYS___SEMCTL = 220 // { int __semctl(int semid, int semnum, int cmd, \
143 SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); }
144 SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \
145 SYS_MSGCTL = 224 // { int msgctl(int msqid, int cmd, \
146 SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
147 SYS_MSGSND = 226 // { int msgsnd(int msqid, void *msgp, size_t msgsz, \
148 SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, size_t msgsz, \
149 SYS_SHMAT = 228 // { caddr_t shmat(int shmid, const void *shmaddr, \
150 SYS_SHMCTL = 229 // { int shmctl(int shmid, int cmd, \
151 SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
152 SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); }
153 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
154 SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, \
155 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
156 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \
157 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); }
158 SYS_RFORK = 251 // { int rfork(int flags); }
159 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, u_int nfds, \
160 SYS_ISSETUGID = 253 // { int issetugid(void); }
161 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
162 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
163 SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); }
164 SYS_EXTPREADV = 289 // { ssize_t extpreadv(int fd, struct iovec *iovp, \
165 SYS_EXTPWRITEV = 290 // { ssize_t extpwritev(int fd, struct iovec *iovp,\
166 SYS_FHSTATFS = 297 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
167 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); }
168 SYS_MODNEXT = 300 // { int modnext(int modid); }
169 SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); }
170 SYS_MODFNEXT = 302 // { int modfnext(int modid); }
171 SYS_MODFIND = 303 // { int modfind(const char *name); }
172 SYS_KLDLOAD = 304 // { int kldload(const char *file); }
173 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
174 SYS_KLDFIND = 306 // { int kldfind(const char *file); }
175 SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
176 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat* stat); }
177 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
178 SYS_GETSID = 310 // { int getsid(pid_t pid); }
179 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
180 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
181 SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); }
182 SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
183 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); }
184 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
185 SYS_AIO_READ = 318 // { int aio_read(struct aiocb *aiocbp); }
186 SYS_AIO_WRITE = 319 // { int aio_write(struct aiocb *aiocbp); }
187 SYS_LIO_LISTIO = 320 // { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); }
188 SYS_YIELD = 321 // { int yield(void); }
189 SYS_MLOCKALL = 324 // { int mlockall(int how); }
190 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
191 SYS___GETCWD = 326 // { int __getcwd(u_char *buf, u_int buflen); }
192 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); }
193 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); }
194 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
195 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
196 SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
197 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
198 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
199 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
200 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
201 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); }
202 SYS_JAIL = 338 // { int jail(struct jail *jail); }
203 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, \
204 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
205 SYS_SIGACTION = 342 // { int sigaction(int sig, const struct sigaction *act, \
206 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
207 SYS_SIGRETURN = 344 // { int sigreturn(ucontext_t *sigcntxp); }
208 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set,\
209 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set,\
210 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \
211 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \
212 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, \
213 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, \
214 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \
215 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); }
216 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \
217 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, \
218 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \
219 SYS_EXTATTR_SET_FILE = 356 // { int extattr_set_file(const char *path, \
220 SYS_EXTATTR_GET_FILE = 357 // { int extattr_get_file(const char *path, \
221 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
222 SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); }
223 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
224 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
225 SYS_KQUEUE = 362 // { int kqueue(void); }
226 SYS_KEVENT = 363 // { int kevent(int fd, \
227 SYS_SCTP_PEELOFF = 364 // { int sctp_peeloff(int sd, caddr_t name ); }
228 SYS_LCHFLAGS = 391 // { int lchflags(char *path, int flags); }
229 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); }
230 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, \
231 SYS_VARSYM_SET = 450 // { int varsym_set(int level, const char *name, const char *data); }
232 SYS_VARSYM_GET = 451 // { int varsym_get(int mask, const char *wild, char *buf, int bufsize); }
233 SYS_VARSYM_LIST = 452 // { int varsym_list(int level, char *buf, int maxsize, int *marker); }
234 SYS_EXEC_SYS_REGISTER = 465 // { int exec_sys_register(void *entry); }
235 SYS_EXEC_SYS_UNREGISTER = 466 // { int exec_sys_unregister(int id); }
236 SYS_SYS_CHECKPOINT = 467 // { int sys_checkpoint(int type, int fd, pid_t pid, int retval); }
237 SYS_MOUNTCTL = 468 // { int mountctl(const char *path, int op, int fd, const void *ctl, int ctllen, void *buf, int buflen); }
238 SYS_UMTX_SLEEP = 469 // { int umtx_sleep(volatile const int *ptr, int value, int timeout); }
239 SYS_UMTX_WAKEUP = 470 // { int umtx_wakeup(volatile const int *ptr, int count); }
240 SYS_JAIL_ATTACH = 471 // { int jail_attach(int jid); }
241 SYS_SET_TLS_AREA = 472 // { int set_tls_area(int which, struct tls_info *info, size_t infosize); }
242 SYS_GET_TLS_AREA = 473 // { int get_tls_area(int which, struct tls_info *info, size_t infosize); }
243 SYS_CLOSEFROM = 474 // { int closefrom(int fd); }
244 SYS_STAT = 475 // { int stat(const char *path, struct stat *ub); }
245 SYS_FSTAT = 476 // { int fstat(int fd, struct stat *sb); }
246 SYS_LSTAT = 477 // { int lstat(const char *path, struct stat *ub); }
247 SYS_FHSTAT = 478 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }
248 SYS_GETDIRENTRIES = 479 // { int getdirentries(int fd, char *buf, u_int count, \
249 SYS_GETDENTS = 480 // { int getdents(int fd, char *buf, size_t count); }
250 SYS_USCHED_SET = 481 // { int usched_set(pid_t pid, int cmd, void *data, \
251 SYS_EXTACCEPT = 482 // { int extaccept(int s, int flags, caddr_t name, int *anamelen); }
252 SYS_EXTCONNECT = 483 // { int extconnect(int s, int flags, caddr_t name, int namelen); }
253 SYS_MCONTROL = 485 // { int mcontrol(void *addr, size_t len, int behav, off_t value); }
254 SYS_VMSPACE_CREATE = 486 // { int vmspace_create(void *id, int type, void *data); }
255 SYS_VMSPACE_DESTROY = 487 // { int vmspace_destroy(void *id); }
256 SYS_VMSPACE_CTL = 488 // { int vmspace_ctl(void *id, int cmd, \
257 SYS_VMSPACE_MMAP = 489 // { int vmspace_mmap(void *id, void *addr, size_t len, \
258 SYS_VMSPACE_MUNMAP = 490 // { int vmspace_munmap(void *id, void *addr, \
259 SYS_VMSPACE_MCONTROL = 491 // { int vmspace_mcontrol(void *id, void *addr, \
260 SYS_VMSPACE_PREAD = 492 // { ssize_t vmspace_pread(void *id, void *buf, \
261 SYS_VMSPACE_PWRITE = 493 // { ssize_t vmspace_pwrite(void *id, const void *buf, \
262 SYS_EXTEXIT = 494 // { void extexit(int how, int status, void *addr); }
263 SYS_LWP_CREATE = 495 // { int lwp_create(struct lwp_params *params); }
264 SYS_LWP_GETTID = 496 // { lwpid_t lwp_gettid(void); }
265 SYS_LWP_KILL = 497 // { int lwp_kill(pid_t pid, lwpid_t tid, int signum); }
266 SYS_LWP_RTPRIO = 498 // { int lwp_rtprio(int function, pid_t pid, lwpid_t tid, struct rtprio *rtp); }
267 SYS_PSELECT = 499 // { int pselect(int nd, fd_set *in, fd_set *ou, \
268 SYS_STATVFS = 500 // { int statvfs(const char *path, struct statvfs *buf); }
269 SYS_FSTATVFS = 501 // { int fstatvfs(int fd, struct statvfs *buf); }
270 SYS_FHSTATVFS = 502 // { int fhstatvfs(const struct fhandle *u_fhp, struct statvfs *buf); }
271 SYS_GETVFSSTAT = 503 // { int getvfsstat(struct statfs *buf, \
272 SYS_OPENAT = 504 // { int openat(int fd, char *path, int flags, int mode); }
273 SYS_FSTATAT = 505 // { int fstatat(int fd, char *path, \
274 SYS_FCHMODAT = 506 // { int fchmodat(int fd, char *path, int mode, \
275 SYS_FCHOWNAT = 507 // { int fchownat(int fd, char *path, int uid, int gid, \
276 SYS_UNLINKAT = 508 // { int unlinkat(int fd, char *path, int flags); }
277 SYS_FACCESSAT = 509 // { int faccessat(int fd, char *path, int amode, \
278 SYS_MQ_OPEN = 510 // { mqd_t mq_open(const char * name, int oflag, \
279 SYS_MQ_CLOSE = 511 // { int mq_close(mqd_t mqdes); }
280 SYS_MQ_UNLINK = 512 // { int mq_unlink(const char *name); }
281 SYS_MQ_GETATTR = 513 // { int mq_getattr(mqd_t mqdes, \
282 SYS_MQ_SETATTR = 514 // { int mq_setattr(mqd_t mqdes, \
283 SYS_MQ_NOTIFY = 515 // { int mq_notify(mqd_t mqdes, \
284 SYS_MQ_SEND = 516 // { int mq_send(mqd_t mqdes, const char *msg_ptr, \
285 SYS_MQ_RECEIVE = 517 // { ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, \
286 SYS_MQ_TIMEDSEND = 518 // { int mq_timedsend(mqd_t mqdes, \
287 SYS_MQ_TIMEDRECEIVE = 519 // { ssize_t mq_timedreceive(mqd_t mqdes, \
288 SYS_IOPRIO_SET = 520 // { int ioprio_set(int which, int who, int prio); }
289 SYS_IOPRIO_GET = 521 // { int ioprio_get(int which, int who); }
290 SYS_CHROOT_KERNEL = 522 // { int chroot_kernel(char *path); }
291 SYS_RENAMEAT = 523 // { int renameat(int oldfd, char *old, int newfd, \
292 SYS_MKDIRAT = 524 // { int mkdirat(int fd, char *path, mode_t mode); }
293 SYS_MKFIFOAT = 525 // { int mkfifoat(int fd, char *path, mode_t mode); }
294 SYS_MKNODAT = 526 // { int mknodat(int fd, char *path, mode_t mode, \
295 SYS_READLINKAT = 527 // { int readlinkat(int fd, char *path, char *buf, \
296 SYS_SYMLINKAT = 528 // { int symlinkat(char *path1, int fd, char *path2); }
297 SYS_SWAPOFF = 529 // { int swapoff(char *name); }
298 SYS_VQUOTACTL = 530 // { int vquotactl(const char *path, \
299 SYS_LINKAT = 531 // { int linkat(int fd1, char *path1, int fd2, \
300 SYS_EACCESS = 532 // { int eaccess(char *path, int flags); }
301 SYS_LPATHCONF = 533 // { int lpathconf(char *path, int name); }
302 SYS_VMM_GUEST_CTL = 534 // { int vmm_guest_ctl(int op, struct vmm_guest_options *options); }
303 SYS_VMM_GUEST_SYNC_ADDR = 535 // { int vmm_guest_sync_addr(long *dstaddr, long *srcaddr); }
304)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go
deleted file mode 100644
index d6038fa..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go
+++ /dev/null
@@ -1,304 +0,0 @@
1// mksysnum_dragonfly.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build amd64,dragonfly
5
6package unix
7
8const (
9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
10 SYS_EXIT = 1 // { void exit(int rval); }
11 SYS_FORK = 2 // { int fork(void); }
12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); }
13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); }
14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
15 SYS_CLOSE = 6 // { int close(int fd); }
16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, \
17 SYS_LINK = 9 // { int link(char *path, char *link); }
18 SYS_UNLINK = 10 // { int unlink(char *path); }
19 SYS_CHDIR = 12 // { int chdir(char *path); }
20 SYS_FCHDIR = 13 // { int fchdir(int fd); }
21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break obreak_args int
25 SYS_GETFSSTAT = 18 // { int getfsstat(struct statfs *buf, long bufsize, \
26 SYS_GETPID = 20 // { pid_t getpid(void); }
27 SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, \
28 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
29 SYS_SETUID = 23 // { int setuid(uid_t uid); }
30 SYS_GETUID = 24 // { uid_t getuid(void); }
31 SYS_GETEUID = 25 // { uid_t geteuid(void); }
32 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, \
33 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); }
34 SYS_SENDMSG = 28 // { int sendmsg(int s, caddr_t msg, int flags); }
35 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, \
36 SYS_ACCEPT = 30 // { int accept(int s, caddr_t name, int *anamelen); }
37 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, caddr_t asa, int *alen); }
38 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, caddr_t asa, int *alen); }
39 SYS_ACCESS = 33 // { int access(char *path, int flags); }
40 SYS_CHFLAGS = 34 // { int chflags(char *path, int flags); }
41 SYS_FCHFLAGS = 35 // { int fchflags(int fd, int flags); }
42 SYS_SYNC = 36 // { int sync(void); }
43 SYS_KILL = 37 // { int kill(int pid, int signum); }
44 SYS_GETPPID = 39 // { pid_t getppid(void); }
45 SYS_DUP = 41 // { int dup(u_int fd); }
46 SYS_PIPE = 42 // { int pipe(void); }
47 SYS_GETEGID = 43 // { gid_t getegid(void); }
48 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \
49 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, \
50 SYS_GETGID = 47 // { gid_t getgid(void); }
51 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); }
52 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
53 SYS_ACCT = 51 // { int acct(char *path); }
54 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); }
55 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); }
56 SYS_REBOOT = 55 // { int reboot(int opt); }
57 SYS_REVOKE = 56 // { int revoke(char *path); }
58 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
59 SYS_READLINK = 58 // { int readlink(char *path, char *buf, int count); }
60 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); }
61 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args int
62 SYS_CHROOT = 61 // { int chroot(char *path); }
63 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); }
64 SYS_VFORK = 66 // { pid_t vfork(void); }
65 SYS_SBRK = 69 // { int sbrk(int incr); }
66 SYS_SSTK = 70 // { int sstk(int incr); }
67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
68 SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); }
69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); }
70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \
71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); }
72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); }
73 SYS_GETPGRP = 81 // { int getpgrp(void); }
74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, \
76 SYS_SWAPON = 85 // { int swapon(char *name); }
77 SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); }
78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); }
80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \
82 SYS_FSYNC = 95 // { int fsync(int fd); }
83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); }
84 SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); }
85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); }
86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
87 SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); }
88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \
89 SYS_LISTEN = 106 // { int listen(int s, int backlog); }
90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \
91 SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); }
92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \
93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \
95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \
96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
100 SYS_RENAME = 128 // { int rename(char *from, char *to); }
101 SYS_FLOCK = 131 // { int flock(int fd, int how); }
102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \
104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, \
106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
107 SYS_RMDIR = 137 // { int rmdir(char *path); }
108 SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); }
109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
110 SYS_SETSID = 147 // { int setsid(void); }
111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
112 SYS_STATFS = 157 // { int statfs(char *path, struct statfs *buf); }
113 SYS_FSTATFS = 158 // { int fstatfs(int fd, struct statfs *buf); }
114 SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); }
115 SYS_GETDOMAINNAME = 162 // { int getdomainname(char *domainname, int len); }
116 SYS_SETDOMAINNAME = 163 // { int setdomainname(char *domainname, int len); }
117 SYS_UNAME = 164 // { int uname(struct utsname *name); }
118 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
119 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
120 SYS_EXTPREAD = 173 // { ssize_t extpread(int fd, void *buf, \
121 SYS_EXTPWRITE = 174 // { ssize_t extpwrite(int fd, const void *buf, \
122 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
123 SYS_SETGID = 181 // { int setgid(gid_t gid); }
124 SYS_SETEGID = 182 // { int setegid(gid_t egid); }
125 SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
126 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
127 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
128 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \
129 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \
130 SYS_MMAP = 197 // { caddr_t mmap(caddr_t addr, size_t len, int prot, \
131 // SYS_NOSYS = 198; // { int nosys(void); } __syscall __syscall_args int
132 SYS_LSEEK = 199 // { off_t lseek(int fd, int pad, off_t offset, \
133 SYS_TRUNCATE = 200 // { int truncate(char *path, int pad, off_t length); }
134 SYS_FTRUNCATE = 201 // { int ftruncate(int fd, int pad, off_t length); }
135 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, \
136 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
137 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
138 SYS_UNDELETE = 205 // { int undelete(char *path); }
139 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
140 SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
141 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
142 SYS___SEMCTL = 220 // { int __semctl(int semid, int semnum, int cmd, \
143 SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); }
144 SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \
145 SYS_MSGCTL = 224 // { int msgctl(int msqid, int cmd, \
146 SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
147 SYS_MSGSND = 226 // { int msgsnd(int msqid, void *msgp, size_t msgsz, \
148 SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, size_t msgsz, \
149 SYS_SHMAT = 228 // { caddr_t shmat(int shmid, const void *shmaddr, \
150 SYS_SHMCTL = 229 // { int shmctl(int shmid, int cmd, \
151 SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
152 SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); }
153 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
154 SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, \
155 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
156 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \
157 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); }
158 SYS_RFORK = 251 // { int rfork(int flags); }
159 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, u_int nfds, \
160 SYS_ISSETUGID = 253 // { int issetugid(void); }
161 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
162 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
163 SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); }
164 SYS_EXTPREADV = 289 // { ssize_t extpreadv(int fd, struct iovec *iovp, \
165 SYS_EXTPWRITEV = 290 // { ssize_t extpwritev(int fd, struct iovec *iovp,\
166 SYS_FHSTATFS = 297 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
167 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); }
168 SYS_MODNEXT = 300 // { int modnext(int modid); }
169 SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); }
170 SYS_MODFNEXT = 302 // { int modfnext(int modid); }
171 SYS_MODFIND = 303 // { int modfind(const char *name); }
172 SYS_KLDLOAD = 304 // { int kldload(const char *file); }
173 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
174 SYS_KLDFIND = 306 // { int kldfind(const char *file); }
175 SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
176 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat* stat); }
177 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
178 SYS_GETSID = 310 // { int getsid(pid_t pid); }
179 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
180 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
181 SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); }
182 SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
183 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); }
184 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
185 SYS_AIO_READ = 318 // { int aio_read(struct aiocb *aiocbp); }
186 SYS_AIO_WRITE = 319 // { int aio_write(struct aiocb *aiocbp); }
187 SYS_LIO_LISTIO = 320 // { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); }
188 SYS_YIELD = 321 // { int yield(void); }
189 SYS_MLOCKALL = 324 // { int mlockall(int how); }
190 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
191 SYS___GETCWD = 326 // { int __getcwd(u_char *buf, u_int buflen); }
192 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); }
193 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); }
194 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
195 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
196 SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
197 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
198 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
199 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
200 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
201 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); }
202 SYS_JAIL = 338 // { int jail(struct jail *jail); }
203 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, \
204 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
205 SYS_SIGACTION = 342 // { int sigaction(int sig, const struct sigaction *act, \
206 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
207 SYS_SIGRETURN = 344 // { int sigreturn(ucontext_t *sigcntxp); }
208 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set,\
209 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set,\
210 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \
211 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \
212 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, \
213 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, \
214 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \
215 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); }
216 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \
217 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, \
218 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \
219 SYS_EXTATTR_SET_FILE = 356 // { int extattr_set_file(const char *path, \
220 SYS_EXTATTR_GET_FILE = 357 // { int extattr_get_file(const char *path, \
221 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
222 SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); }
223 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
224 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
225 SYS_KQUEUE = 362 // { int kqueue(void); }
226 SYS_KEVENT = 363 // { int kevent(int fd, \
227 SYS_SCTP_PEELOFF = 364 // { int sctp_peeloff(int sd, caddr_t name ); }
228 SYS_LCHFLAGS = 391 // { int lchflags(char *path, int flags); }
229 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); }
230 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, \
231 SYS_VARSYM_SET = 450 // { int varsym_set(int level, const char *name, const char *data); }
232 SYS_VARSYM_GET = 451 // { int varsym_get(int mask, const char *wild, char *buf, int bufsize); }
233 SYS_VARSYM_LIST = 452 // { int varsym_list(int level, char *buf, int maxsize, int *marker); }
234 SYS_EXEC_SYS_REGISTER = 465 // { int exec_sys_register(void *entry); }
235 SYS_EXEC_SYS_UNREGISTER = 466 // { int exec_sys_unregister(int id); }
236 SYS_SYS_CHECKPOINT = 467 // { int sys_checkpoint(int type, int fd, pid_t pid, int retval); }
237 SYS_MOUNTCTL = 468 // { int mountctl(const char *path, int op, int fd, const void *ctl, int ctllen, void *buf, int buflen); }
238 SYS_UMTX_SLEEP = 469 // { int umtx_sleep(volatile const int *ptr, int value, int timeout); }
239 SYS_UMTX_WAKEUP = 470 // { int umtx_wakeup(volatile const int *ptr, int count); }
240 SYS_JAIL_ATTACH = 471 // { int jail_attach(int jid); }
241 SYS_SET_TLS_AREA = 472 // { int set_tls_area(int which, struct tls_info *info, size_t infosize); }
242 SYS_GET_TLS_AREA = 473 // { int get_tls_area(int which, struct tls_info *info, size_t infosize); }
243 SYS_CLOSEFROM = 474 // { int closefrom(int fd); }
244 SYS_STAT = 475 // { int stat(const char *path, struct stat *ub); }
245 SYS_FSTAT = 476 // { int fstat(int fd, struct stat *sb); }
246 SYS_LSTAT = 477 // { int lstat(const char *path, struct stat *ub); }
247 SYS_FHSTAT = 478 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }
248 SYS_GETDIRENTRIES = 479 // { int getdirentries(int fd, char *buf, u_int count, \
249 SYS_GETDENTS = 480 // { int getdents(int fd, char *buf, size_t count); }
250 SYS_USCHED_SET = 481 // { int usched_set(pid_t pid, int cmd, void *data, \
251 SYS_EXTACCEPT = 482 // { int extaccept(int s, int flags, caddr_t name, int *anamelen); }
252 SYS_EXTCONNECT = 483 // { int extconnect(int s, int flags, caddr_t name, int namelen); }
253 SYS_MCONTROL = 485 // { int mcontrol(void *addr, size_t len, int behav, off_t value); }
254 SYS_VMSPACE_CREATE = 486 // { int vmspace_create(void *id, int type, void *data); }
255 SYS_VMSPACE_DESTROY = 487 // { int vmspace_destroy(void *id); }
256 SYS_VMSPACE_CTL = 488 // { int vmspace_ctl(void *id, int cmd, \
257 SYS_VMSPACE_MMAP = 489 // { int vmspace_mmap(void *id, void *addr, size_t len, \
258 SYS_VMSPACE_MUNMAP = 490 // { int vmspace_munmap(void *id, void *addr, \
259 SYS_VMSPACE_MCONTROL = 491 // { int vmspace_mcontrol(void *id, void *addr, \
260 SYS_VMSPACE_PREAD = 492 // { ssize_t vmspace_pread(void *id, void *buf, \
261 SYS_VMSPACE_PWRITE = 493 // { ssize_t vmspace_pwrite(void *id, const void *buf, \
262 SYS_EXTEXIT = 494 // { void extexit(int how, int status, void *addr); }
263 SYS_LWP_CREATE = 495 // { int lwp_create(struct lwp_params *params); }
264 SYS_LWP_GETTID = 496 // { lwpid_t lwp_gettid(void); }
265 SYS_LWP_KILL = 497 // { int lwp_kill(pid_t pid, lwpid_t tid, int signum); }
266 SYS_LWP_RTPRIO = 498 // { int lwp_rtprio(int function, pid_t pid, lwpid_t tid, struct rtprio *rtp); }
267 SYS_PSELECT = 499 // { int pselect(int nd, fd_set *in, fd_set *ou, \
268 SYS_STATVFS = 500 // { int statvfs(const char *path, struct statvfs *buf); }
269 SYS_FSTATVFS = 501 // { int fstatvfs(int fd, struct statvfs *buf); }
270 SYS_FHSTATVFS = 502 // { int fhstatvfs(const struct fhandle *u_fhp, struct statvfs *buf); }
271 SYS_GETVFSSTAT = 503 // { int getvfsstat(struct statfs *buf, \
272 SYS_OPENAT = 504 // { int openat(int fd, char *path, int flags, int mode); }
273 SYS_FSTATAT = 505 // { int fstatat(int fd, char *path, \
274 SYS_FCHMODAT = 506 // { int fchmodat(int fd, char *path, int mode, \
275 SYS_FCHOWNAT = 507 // { int fchownat(int fd, char *path, int uid, int gid, \
276 SYS_UNLINKAT = 508 // { int unlinkat(int fd, char *path, int flags); }
277 SYS_FACCESSAT = 509 // { int faccessat(int fd, char *path, int amode, \
278 SYS_MQ_OPEN = 510 // { mqd_t mq_open(const char * name, int oflag, \
279 SYS_MQ_CLOSE = 511 // { int mq_close(mqd_t mqdes); }
280 SYS_MQ_UNLINK = 512 // { int mq_unlink(const char *name); }
281 SYS_MQ_GETATTR = 513 // { int mq_getattr(mqd_t mqdes, \
282 SYS_MQ_SETATTR = 514 // { int mq_setattr(mqd_t mqdes, \
283 SYS_MQ_NOTIFY = 515 // { int mq_notify(mqd_t mqdes, \
284 SYS_MQ_SEND = 516 // { int mq_send(mqd_t mqdes, const char *msg_ptr, \
285 SYS_MQ_RECEIVE = 517 // { ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, \
286 SYS_MQ_TIMEDSEND = 518 // { int mq_timedsend(mqd_t mqdes, \
287 SYS_MQ_TIMEDRECEIVE = 519 // { ssize_t mq_timedreceive(mqd_t mqdes, \
288 SYS_IOPRIO_SET = 520 // { int ioprio_set(int which, int who, int prio); }
289 SYS_IOPRIO_GET = 521 // { int ioprio_get(int which, int who); }
290 SYS_CHROOT_KERNEL = 522 // { int chroot_kernel(char *path); }
291 SYS_RENAMEAT = 523 // { int renameat(int oldfd, char *old, int newfd, \
292 SYS_MKDIRAT = 524 // { int mkdirat(int fd, char *path, mode_t mode); }
293 SYS_MKFIFOAT = 525 // { int mkfifoat(int fd, char *path, mode_t mode); }
294 SYS_MKNODAT = 526 // { int mknodat(int fd, char *path, mode_t mode, \
295 SYS_READLINKAT = 527 // { int readlinkat(int fd, char *path, char *buf, \
296 SYS_SYMLINKAT = 528 // { int symlinkat(char *path1, int fd, char *path2); }
297 SYS_SWAPOFF = 529 // { int swapoff(char *name); }
298 SYS_VQUOTACTL = 530 // { int vquotactl(const char *path, \
299 SYS_LINKAT = 531 // { int linkat(int fd1, char *path1, int fd2, \
300 SYS_EACCESS = 532 // { int eaccess(char *path, int flags); }
301 SYS_LPATHCONF = 533 // { int lpathconf(char *path, int name); }
302 SYS_VMM_GUEST_CTL = 534 // { int vmm_guest_ctl(int op, struct vmm_guest_options *options); }
303 SYS_VMM_GUEST_SYNC_ADDR = 535 // { int vmm_guest_sync_addr(long *dstaddr, long *srcaddr); }
304)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_386.go
deleted file mode 100644
index 262a845..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_386.go
+++ /dev/null
@@ -1,351 +0,0 @@
1// mksysnum_freebsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build 386,freebsd
5
6package unix
7
8const (
9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \
11 SYS_FORK = 2 // { int fork(void); }
12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \
13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \
14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
15 SYS_CLOSE = 6 // { int close(int fd); }
16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \
17 SYS_LINK = 9 // { int link(char *path, char *link); }
18 SYS_UNLINK = 10 // { int unlink(char *path); }
19 SYS_CHDIR = 12 // { int chdir(char *path); }
20 SYS_FCHDIR = 13 // { int fchdir(int fd); }
21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \
25 SYS_GETPID = 20 // { pid_t getpid(void); }
26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \
27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
28 SYS_SETUID = 23 // { int setuid(uid_t uid); }
29 SYS_GETUID = 24 // { uid_t getuid(void); }
30 SYS_GETEUID = 25 // { uid_t geteuid(void); }
31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \
32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \
33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \
34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \
35 SYS_ACCEPT = 30 // { int accept(int s, \
36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \
37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \
38 SYS_ACCESS = 33 // { int access(char *path, int amode); }
39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); }
40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); }
41 SYS_SYNC = 36 // { int sync(void); }
42 SYS_KILL = 37 // { int kill(int pid, int signum); }
43 SYS_GETPPID = 39 // { pid_t getppid(void); }
44 SYS_DUP = 41 // { int dup(u_int fd); }
45 SYS_PIPE = 42 // { int pipe(void); }
46 SYS_GETEGID = 43 // { gid_t getegid(void); }
47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \
48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \
49 SYS_GETGID = 47 // { gid_t getgid(void); }
50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \
51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
52 SYS_ACCT = 51 // { int acct(char *path); }
53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \
54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \
55 SYS_REBOOT = 55 // { int reboot(int opt); }
56 SYS_REVOKE = 56 // { int revoke(char *path); }
57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \
59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \
60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \
61 SYS_CHROOT = 61 // { int chroot(char *path); }
62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \
63 SYS_VFORK = 66 // { int vfork(void); }
64 SYS_SBRK = 69 // { int sbrk(int incr); }
65 SYS_SSTK = 70 // { int sstk(int incr); }
66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \
67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \
69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \
70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \
71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \
72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \
73 SYS_GETPGRP = 81 // { int getpgrp(void); }
74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \
76 SYS_SWAPON = 85 // { int swapon(char *name); }
77 SYS_GETITIMER = 86 // { int getitimer(u_int which, \
78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); }
80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \
82 SYS_FSYNC = 95 // { int fsync(int fd); }
83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \
84 SYS_SOCKET = 97 // { int socket(int domain, int type, \
85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \
86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
87 SYS_BIND = 104 // { int bind(int s, caddr_t name, \
88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \
89 SYS_LISTEN = 106 // { int listen(int s, int backlog); }
90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \
91 SYS_GETRUSAGE = 117 // { int getrusage(int who, \
92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \
93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \
94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \
95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \
96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
100 SYS_RENAME = 128 // { int rename(char *from, char *to); }
101 SYS_FLOCK = 131 // { int flock(int fd, int how); }
102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \
104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \
106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
107 SYS_RMDIR = 137 // { int rmdir(char *path); }
108 SYS_UTIMES = 138 // { int utimes(char *path, \
109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
110 SYS_SETSID = 147 // { int setsid(void); }
111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
112 SYS_LGETFH = 160 // { int lgetfh(char *fname, \
113 SYS_GETFH = 161 // { int getfh(char *fname, \
114 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
115 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
116 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
117 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
118 SYS_SETFIB = 175 // { int setfib(int fibnum); }
119 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
120 SYS_SETGID = 181 // { int setgid(gid_t gid); }
121 SYS_SETEGID = 182 // { int setegid(gid_t egid); }
122 SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
123 SYS_STAT = 188 // { int stat(char *path, struct stat *ub); }
124 SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); }
125 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); }
126 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
127 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
128 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \
129 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \
130 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \
131 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \
132 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \
133 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \
134 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \
135 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \
136 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
137 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
138 SYS_UNDELETE = 205 // { int undelete(char *path); }
139 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
140 SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
141 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
142 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
143 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
144 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
145 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \
146 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); }
147 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \
148 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \
149 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); }
150 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \
151 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
152 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \
153 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \
154 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\
155 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
156 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \
157 SYS_RFORK = 251 // { int rfork(int flags); }
158 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
159 SYS_ISSETUGID = 253 // { int issetugid(void); }
160 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
161 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
162 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
163 SYS_LUTIMES = 276 // { int lutimes(char *path, \
164 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); }
165 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); }
166 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); }
167 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \
168 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \
169 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \
170 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \
171 SYS_MODNEXT = 300 // { int modnext(int modid); }
172 SYS_MODSTAT = 301 // { int modstat(int modid, \
173 SYS_MODFNEXT = 302 // { int modfnext(int modid); }
174 SYS_MODFIND = 303 // { int modfind(const char *name); }
175 SYS_KLDLOAD = 304 // { int kldload(const char *file); }
176 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
177 SYS_KLDFIND = 306 // { int kldfind(const char *file); }
178 SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
179 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \
180 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
181 SYS_GETSID = 310 // { int getsid(pid_t pid); }
182 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
183 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
184 SYS_YIELD = 321 // { int yield(void); }
185 SYS_MLOCKALL = 324 // { int mlockall(int how); }
186 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
187 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); }
188 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \
189 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \
190 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \
191 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
192 SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
193 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
194 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
195 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \
196 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
197 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \
198 SYS_JAIL = 338 // { int jail(struct jail *jail); }
199 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \
200 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
201 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
202 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \
203 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \
204 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \
205 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \
206 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \
207 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \
208 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \
209 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \
210 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \
211 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \
212 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \
213 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
214 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
215 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
216 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
217 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
218 SYS_KQUEUE = 362 // { int kqueue(void); }
219 SYS_KEVENT = 363 // { int kevent(int fd, \
220 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \
221 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \
222 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \
223 SYS___SETUGID = 374 // { int __setugid(int flag); }
224 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); }
225 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \
226 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); }
227 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); }
228 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \
229 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \
230 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \
231 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \
232 SYS_KENV = 390 // { int kenv(int what, const char *name, \
233 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \
234 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \
235 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \
236 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \
237 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \
238 SYS_STATFS = 396 // { int statfs(char *path, \
239 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
240 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
241 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
242 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
243 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
244 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \
245 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \
246 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \
247 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \
248 SYS_SIGACTION = 416 // { int sigaction(int sig, \
249 SYS_SIGRETURN = 417 // { int sigreturn( \
250 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); }
251 SYS_SETCONTEXT = 422 // { int setcontext( \
252 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \
253 SYS_SWAPOFF = 424 // { int swapoff(const char *name); }
254 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \
255 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \
256 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \
257 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \
258 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \
259 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \
260 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
261 SYS_THR_SELF = 432 // { int thr_self(long *id); }
262 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
263 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); }
264 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); }
265 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
266 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
267 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
268 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
269 SYS_THR_SUSPEND = 442 // { int thr_suspend( \
270 SYS_THR_WAKE = 443 // { int thr_wake(long id); }
271 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
272 SYS_AUDIT = 445 // { int audit(const void *record, \
273 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \
274 SYS_GETAUID = 447 // { int getauid(uid_t *auid); }
275 SYS_SETAUID = 448 // { int setauid(uid_t *auid); }
276 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); }
277 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); }
278 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \
279 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \
280 SYS_AUDITCTL = 453 // { int auditctl(char *path); }
281 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
282 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
283 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
284 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
285 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
286 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
287 SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
288 SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
289 SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
290 SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
291 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
292 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
293 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
294 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \
295 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); }
296 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); }
297 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); }
298 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \
299 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); }
300 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); }
301 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \
302 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \
303 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \
304 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \
305 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \
306 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \
307 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \
308 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \
309 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \
310 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \
311 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \
312 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); }
313 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); }
314 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \
315 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \
316 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \
317 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \
318 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
319 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
320 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
321 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
322 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
323 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
324 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
325 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
326 SYS_CAP_NEW = 514 // { int cap_new(int fd, uint64_t rights); }
327 SYS_CAP_GETRIGHTS = 515 // { int cap_getrights(int fd, \
328 SYS_CAP_ENTER = 516 // { int cap_enter(void); }
329 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
330 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
331 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); }
332 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); }
333 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \
334 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \
335 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); }
336 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \
337 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \
338 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \
339 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \
340 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \
341 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
342 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
343 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
344 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
345 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
346 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
347 SYS_ACCEPT4 = 541 // { int accept4(int s, \
348 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
349 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
350 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
351)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
deleted file mode 100644
index 57a60ea..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
+++ /dev/null
@@ -1,351 +0,0 @@
1// mksysnum_freebsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build amd64,freebsd
5
6package unix
7
8const (
9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \
11 SYS_FORK = 2 // { int fork(void); }
12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \
13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \
14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
15 SYS_CLOSE = 6 // { int close(int fd); }
16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \
17 SYS_LINK = 9 // { int link(char *path, char *link); }
18 SYS_UNLINK = 10 // { int unlink(char *path); }
19 SYS_CHDIR = 12 // { int chdir(char *path); }
20 SYS_FCHDIR = 13 // { int fchdir(int fd); }
21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \
25 SYS_GETPID = 20 // { pid_t getpid(void); }
26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \
27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
28 SYS_SETUID = 23 // { int setuid(uid_t uid); }
29 SYS_GETUID = 24 // { uid_t getuid(void); }
30 SYS_GETEUID = 25 // { uid_t geteuid(void); }
31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \
32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \
33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \
34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \
35 SYS_ACCEPT = 30 // { int accept(int s, \
36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \
37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \
38 SYS_ACCESS = 33 // { int access(char *path, int amode); }
39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); }
40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); }
41 SYS_SYNC = 36 // { int sync(void); }
42 SYS_KILL = 37 // { int kill(int pid, int signum); }
43 SYS_GETPPID = 39 // { pid_t getppid(void); }
44 SYS_DUP = 41 // { int dup(u_int fd); }
45 SYS_PIPE = 42 // { int pipe(void); }
46 SYS_GETEGID = 43 // { gid_t getegid(void); }
47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \
48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \
49 SYS_GETGID = 47 // { gid_t getgid(void); }
50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \
51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
52 SYS_ACCT = 51 // { int acct(char *path); }
53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \
54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \
55 SYS_REBOOT = 55 // { int reboot(int opt); }
56 SYS_REVOKE = 56 // { int revoke(char *path); }
57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \
59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \
60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \
61 SYS_CHROOT = 61 // { int chroot(char *path); }
62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \
63 SYS_VFORK = 66 // { int vfork(void); }
64 SYS_SBRK = 69 // { int sbrk(int incr); }
65 SYS_SSTK = 70 // { int sstk(int incr); }
66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \
67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \
69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \
70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \
71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \
72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \
73 SYS_GETPGRP = 81 // { int getpgrp(void); }
74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \
76 SYS_SWAPON = 85 // { int swapon(char *name); }
77 SYS_GETITIMER = 86 // { int getitimer(u_int which, \
78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); }
80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \
82 SYS_FSYNC = 95 // { int fsync(int fd); }
83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \
84 SYS_SOCKET = 97 // { int socket(int domain, int type, \
85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \
86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
87 SYS_BIND = 104 // { int bind(int s, caddr_t name, \
88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \
89 SYS_LISTEN = 106 // { int listen(int s, int backlog); }
90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \
91 SYS_GETRUSAGE = 117 // { int getrusage(int who, \
92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \
93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \
94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \
95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \
96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
100 SYS_RENAME = 128 // { int rename(char *from, char *to); }
101 SYS_FLOCK = 131 // { int flock(int fd, int how); }
102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \
104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \
106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
107 SYS_RMDIR = 137 // { int rmdir(char *path); }
108 SYS_UTIMES = 138 // { int utimes(char *path, \
109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
110 SYS_SETSID = 147 // { int setsid(void); }
111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
112 SYS_LGETFH = 160 // { int lgetfh(char *fname, \
113 SYS_GETFH = 161 // { int getfh(char *fname, \
114 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
115 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
116 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
117 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
118 SYS_SETFIB = 175 // { int setfib(int fibnum); }
119 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
120 SYS_SETGID = 181 // { int setgid(gid_t gid); }
121 SYS_SETEGID = 182 // { int setegid(gid_t egid); }
122 SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
123 SYS_STAT = 188 // { int stat(char *path, struct stat *ub); }
124 SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); }
125 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); }
126 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
127 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
128 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \
129 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \
130 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \
131 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \
132 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \
133 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \
134 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \
135 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \
136 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
137 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
138 SYS_UNDELETE = 205 // { int undelete(char *path); }
139 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
140 SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
141 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
142 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
143 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
144 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
145 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \
146 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); }
147 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \
148 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \
149 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); }
150 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \
151 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
152 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \
153 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \
154 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\
155 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
156 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \
157 SYS_RFORK = 251 // { int rfork(int flags); }
158 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
159 SYS_ISSETUGID = 253 // { int issetugid(void); }
160 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
161 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
162 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
163 SYS_LUTIMES = 276 // { int lutimes(char *path, \
164 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); }
165 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); }
166 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); }
167 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \
168 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \
169 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \
170 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \
171 SYS_MODNEXT = 300 // { int modnext(int modid); }
172 SYS_MODSTAT = 301 // { int modstat(int modid, \
173 SYS_MODFNEXT = 302 // { int modfnext(int modid); }
174 SYS_MODFIND = 303 // { int modfind(const char *name); }
175 SYS_KLDLOAD = 304 // { int kldload(const char *file); }
176 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
177 SYS_KLDFIND = 306 // { int kldfind(const char *file); }
178 SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
179 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \
180 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
181 SYS_GETSID = 310 // { int getsid(pid_t pid); }
182 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
183 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
184 SYS_YIELD = 321 // { int yield(void); }
185 SYS_MLOCKALL = 324 // { int mlockall(int how); }
186 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
187 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); }
188 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \
189 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \
190 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \
191 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
192 SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
193 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
194 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
195 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \
196 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
197 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \
198 SYS_JAIL = 338 // { int jail(struct jail *jail); }
199 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \
200 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
201 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
202 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \
203 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \
204 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \
205 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \
206 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \
207 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \
208 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \
209 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \
210 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \
211 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \
212 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \
213 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
214 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
215 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
216 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
217 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
218 SYS_KQUEUE = 362 // { int kqueue(void); }
219 SYS_KEVENT = 363 // { int kevent(int fd, \
220 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \
221 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \
222 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \
223 SYS___SETUGID = 374 // { int __setugid(int flag); }
224 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); }
225 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \
226 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); }
227 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); }
228 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \
229 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \
230 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \
231 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \
232 SYS_KENV = 390 // { int kenv(int what, const char *name, \
233 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \
234 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \
235 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \
236 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \
237 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \
238 SYS_STATFS = 396 // { int statfs(char *path, \
239 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
240 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
241 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
242 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
243 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
244 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \
245 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \
246 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \
247 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \
248 SYS_SIGACTION = 416 // { int sigaction(int sig, \
249 SYS_SIGRETURN = 417 // { int sigreturn( \
250 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); }
251 SYS_SETCONTEXT = 422 // { int setcontext( \
252 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \
253 SYS_SWAPOFF = 424 // { int swapoff(const char *name); }
254 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \
255 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \
256 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \
257 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \
258 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \
259 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \
260 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
261 SYS_THR_SELF = 432 // { int thr_self(long *id); }
262 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
263 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); }
264 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); }
265 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
266 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
267 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
268 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
269 SYS_THR_SUSPEND = 442 // { int thr_suspend( \
270 SYS_THR_WAKE = 443 // { int thr_wake(long id); }
271 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
272 SYS_AUDIT = 445 // { int audit(const void *record, \
273 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \
274 SYS_GETAUID = 447 // { int getauid(uid_t *auid); }
275 SYS_SETAUID = 448 // { int setauid(uid_t *auid); }
276 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); }
277 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); }
278 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \
279 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \
280 SYS_AUDITCTL = 453 // { int auditctl(char *path); }
281 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
282 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
283 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
284 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
285 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
286 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
287 SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
288 SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
289 SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
290 SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
291 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
292 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
293 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
294 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \
295 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); }
296 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); }
297 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); }
298 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \
299 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); }
300 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); }
301 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \
302 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \
303 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \
304 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \
305 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \
306 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \
307 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \
308 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \
309 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \
310 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \
311 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \
312 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); }
313 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); }
314 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \
315 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \
316 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \
317 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \
318 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
319 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
320 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
321 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
322 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
323 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
324 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
325 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
326 SYS_CAP_NEW = 514 // { int cap_new(int fd, uint64_t rights); }
327 SYS_CAP_GETRIGHTS = 515 // { int cap_getrights(int fd, \
328 SYS_CAP_ENTER = 516 // { int cap_enter(void); }
329 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
330 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
331 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); }
332 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); }
333 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \
334 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \
335 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); }
336 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \
337 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \
338 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \
339 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \
340 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \
341 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
342 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
343 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
344 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
345 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
346 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
347 SYS_ACCEPT4 = 541 // { int accept4(int s, \
348 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
349 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
350 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
351)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
deleted file mode 100644
index 206b9f6..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
+++ /dev/null
@@ -1,351 +0,0 @@
1// mksysnum_freebsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build arm,freebsd
5
6package unix
7
8const (
9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \
11 SYS_FORK = 2 // { int fork(void); }
12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \
13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \
14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
15 SYS_CLOSE = 6 // { int close(int fd); }
16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \
17 SYS_LINK = 9 // { int link(char *path, char *link); }
18 SYS_UNLINK = 10 // { int unlink(char *path); }
19 SYS_CHDIR = 12 // { int chdir(char *path); }
20 SYS_FCHDIR = 13 // { int fchdir(int fd); }
21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \
25 SYS_GETPID = 20 // { pid_t getpid(void); }
26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \
27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
28 SYS_SETUID = 23 // { int setuid(uid_t uid); }
29 SYS_GETUID = 24 // { uid_t getuid(void); }
30 SYS_GETEUID = 25 // { uid_t geteuid(void); }
31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \
32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \
33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \
34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \
35 SYS_ACCEPT = 30 // { int accept(int s, \
36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \
37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \
38 SYS_ACCESS = 33 // { int access(char *path, int amode); }
39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); }
40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); }
41 SYS_SYNC = 36 // { int sync(void); }
42 SYS_KILL = 37 // { int kill(int pid, int signum); }
43 SYS_GETPPID = 39 // { pid_t getppid(void); }
44 SYS_DUP = 41 // { int dup(u_int fd); }
45 SYS_PIPE = 42 // { int pipe(void); }
46 SYS_GETEGID = 43 // { gid_t getegid(void); }
47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \
48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \
49 SYS_GETGID = 47 // { gid_t getgid(void); }
50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \
51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
52 SYS_ACCT = 51 // { int acct(char *path); }
53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \
54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \
55 SYS_REBOOT = 55 // { int reboot(int opt); }
56 SYS_REVOKE = 56 // { int revoke(char *path); }
57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \
59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \
60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \
61 SYS_CHROOT = 61 // { int chroot(char *path); }
62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \
63 SYS_VFORK = 66 // { int vfork(void); }
64 SYS_SBRK = 69 // { int sbrk(int incr); }
65 SYS_SSTK = 70 // { int sstk(int incr); }
66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \
67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \
69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \
70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \
71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \
72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \
73 SYS_GETPGRP = 81 // { int getpgrp(void); }
74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \
76 SYS_SWAPON = 85 // { int swapon(char *name); }
77 SYS_GETITIMER = 86 // { int getitimer(u_int which, \
78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); }
80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \
82 SYS_FSYNC = 95 // { int fsync(int fd); }
83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \
84 SYS_SOCKET = 97 // { int socket(int domain, int type, \
85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \
86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
87 SYS_BIND = 104 // { int bind(int s, caddr_t name, \
88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \
89 SYS_LISTEN = 106 // { int listen(int s, int backlog); }
90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \
91 SYS_GETRUSAGE = 117 // { int getrusage(int who, \
92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \
93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \
94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \
95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \
96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
100 SYS_RENAME = 128 // { int rename(char *from, char *to); }
101 SYS_FLOCK = 131 // { int flock(int fd, int how); }
102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \
104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \
106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
107 SYS_RMDIR = 137 // { int rmdir(char *path); }
108 SYS_UTIMES = 138 // { int utimes(char *path, \
109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
110 SYS_SETSID = 147 // { int setsid(void); }
111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
112 SYS_LGETFH = 160 // { int lgetfh(char *fname, \
113 SYS_GETFH = 161 // { int getfh(char *fname, \
114 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
115 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
116 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
117 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
118 SYS_SETFIB = 175 // { int setfib(int fibnum); }
119 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
120 SYS_SETGID = 181 // { int setgid(gid_t gid); }
121 SYS_SETEGID = 182 // { int setegid(gid_t egid); }
122 SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
123 SYS_STAT = 188 // { int stat(char *path, struct stat *ub); }
124 SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); }
125 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); }
126 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
127 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
128 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \
129 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \
130 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \
131 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \
132 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \
133 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \
134 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \
135 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \
136 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
137 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
138 SYS_UNDELETE = 205 // { int undelete(char *path); }
139 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
140 SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
141 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
142 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
143 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
144 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
145 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \
146 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); }
147 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \
148 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \
149 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); }
150 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \
151 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
152 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \
153 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \
154 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\
155 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
156 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \
157 SYS_RFORK = 251 // { int rfork(int flags); }
158 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
159 SYS_ISSETUGID = 253 // { int issetugid(void); }
160 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
161 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
162 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
163 SYS_LUTIMES = 276 // { int lutimes(char *path, \
164 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); }
165 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); }
166 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); }
167 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \
168 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \
169 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \
170 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \
171 SYS_MODNEXT = 300 // { int modnext(int modid); }
172 SYS_MODSTAT = 301 // { int modstat(int modid, \
173 SYS_MODFNEXT = 302 // { int modfnext(int modid); }
174 SYS_MODFIND = 303 // { int modfind(const char *name); }
175 SYS_KLDLOAD = 304 // { int kldload(const char *file); }
176 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
177 SYS_KLDFIND = 306 // { int kldfind(const char *file); }
178 SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
179 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \
180 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
181 SYS_GETSID = 310 // { int getsid(pid_t pid); }
182 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
183 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
184 SYS_YIELD = 321 // { int yield(void); }
185 SYS_MLOCKALL = 324 // { int mlockall(int how); }
186 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
187 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); }
188 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \
189 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \
190 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \
191 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
192 SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
193 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
194 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
195 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \
196 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
197 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \
198 SYS_JAIL = 338 // { int jail(struct jail *jail); }
199 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \
200 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
201 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
202 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \
203 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \
204 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \
205 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \
206 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \
207 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \
208 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \
209 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \
210 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \
211 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \
212 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \
213 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
214 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
215 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
216 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
217 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
218 SYS_KQUEUE = 362 // { int kqueue(void); }
219 SYS_KEVENT = 363 // { int kevent(int fd, \
220 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \
221 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \
222 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \
223 SYS___SETUGID = 374 // { int __setugid(int flag); }
224 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); }
225 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \
226 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); }
227 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); }
228 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \
229 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \
230 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \
231 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \
232 SYS_KENV = 390 // { int kenv(int what, const char *name, \
233 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \
234 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \
235 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \
236 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \
237 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \
238 SYS_STATFS = 396 // { int statfs(char *path, \
239 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
240 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
241 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
242 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
243 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
244 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \
245 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \
246 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \
247 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \
248 SYS_SIGACTION = 416 // { int sigaction(int sig, \
249 SYS_SIGRETURN = 417 // { int sigreturn( \
250 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); }
251 SYS_SETCONTEXT = 422 // { int setcontext( \
252 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \
253 SYS_SWAPOFF = 424 // { int swapoff(const char *name); }
254 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \
255 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \
256 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \
257 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \
258 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \
259 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \
260 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
261 SYS_THR_SELF = 432 // { int thr_self(long *id); }
262 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
263 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); }
264 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); }
265 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
266 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
267 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
268 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
269 SYS_THR_SUSPEND = 442 // { int thr_suspend( \
270 SYS_THR_WAKE = 443 // { int thr_wake(long id); }
271 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
272 SYS_AUDIT = 445 // { int audit(const void *record, \
273 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \
274 SYS_GETAUID = 447 // { int getauid(uid_t *auid); }
275 SYS_SETAUID = 448 // { int setauid(uid_t *auid); }
276 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); }
277 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); }
278 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \
279 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \
280 SYS_AUDITCTL = 453 // { int auditctl(char *path); }
281 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
282 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
283 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
284 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
285 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
286 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
287 SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
288 SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
289 SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
290 SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
291 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
292 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
293 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
294 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \
295 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); }
296 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); }
297 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); }
298 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \
299 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); }
300 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); }
301 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \
302 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \
303 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \
304 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \
305 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \
306 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \
307 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \
308 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \
309 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \
310 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \
311 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \
312 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); }
313 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); }
314 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \
315 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \
316 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \
317 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \
318 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
319 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
320 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
321 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
322 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
323 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
324 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
325 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
326 SYS_CAP_NEW = 514 // { int cap_new(int fd, uint64_t rights); }
327 SYS_CAP_GETRIGHTS = 515 // { int cap_getrights(int fd, \
328 SYS_CAP_ENTER = 516 // { int cap_enter(void); }
329 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
330 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
331 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); }
332 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); }
333 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \
334 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \
335 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); }
336 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \
337 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \
338 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \
339 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \
340 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \
341 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
342 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
343 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
344 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
345 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
346 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
347 SYS_ACCEPT4 = 541 // { int accept4(int s, \
348 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
349 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
350 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
351)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_386.go
deleted file mode 100644
index ba952c6..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_386.go
+++ /dev/null
@@ -1,355 +0,0 @@
1// mksysnum_linux.pl /usr/include/asm/unistd_32.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build 386,linux
5
6package unix
7
8const (
9 SYS_RESTART_SYSCALL = 0
10 SYS_EXIT = 1
11 SYS_FORK = 2
12 SYS_READ = 3
13 SYS_WRITE = 4
14 SYS_OPEN = 5
15 SYS_CLOSE = 6
16 SYS_WAITPID = 7
17 SYS_CREAT = 8
18 SYS_LINK = 9
19 SYS_UNLINK = 10
20 SYS_EXECVE = 11
21 SYS_CHDIR = 12
22 SYS_TIME = 13
23 SYS_MKNOD = 14
24 SYS_CHMOD = 15
25 SYS_LCHOWN = 16
26 SYS_BREAK = 17
27 SYS_OLDSTAT = 18
28 SYS_LSEEK = 19
29 SYS_GETPID = 20
30 SYS_MOUNT = 21
31 SYS_UMOUNT = 22
32 SYS_SETUID = 23
33 SYS_GETUID = 24
34 SYS_STIME = 25
35 SYS_PTRACE = 26
36 SYS_ALARM = 27
37 SYS_OLDFSTAT = 28
38 SYS_PAUSE = 29
39 SYS_UTIME = 30
40 SYS_STTY = 31
41 SYS_GTTY = 32
42 SYS_ACCESS = 33
43 SYS_NICE = 34
44 SYS_FTIME = 35
45 SYS_SYNC = 36
46 SYS_KILL = 37
47 SYS_RENAME = 38
48 SYS_MKDIR = 39
49 SYS_RMDIR = 40
50 SYS_DUP = 41
51 SYS_PIPE = 42
52 SYS_TIMES = 43
53 SYS_PROF = 44
54 SYS_BRK = 45
55 SYS_SETGID = 46
56 SYS_GETGID = 47
57 SYS_SIGNAL = 48
58 SYS_GETEUID = 49
59 SYS_GETEGID = 50
60 SYS_ACCT = 51
61 SYS_UMOUNT2 = 52
62 SYS_LOCK = 53
63 SYS_IOCTL = 54
64 SYS_FCNTL = 55
65 SYS_MPX = 56
66 SYS_SETPGID = 57
67 SYS_ULIMIT = 58
68 SYS_OLDOLDUNAME = 59
69 SYS_UMASK = 60
70 SYS_CHROOT = 61
71 SYS_USTAT = 62
72 SYS_DUP2 = 63
73 SYS_GETPPID = 64
74 SYS_GETPGRP = 65
75 SYS_SETSID = 66
76 SYS_SIGACTION = 67
77 SYS_SGETMASK = 68
78 SYS_SSETMASK = 69
79 SYS_SETREUID = 70
80 SYS_SETREGID = 71
81 SYS_SIGSUSPEND = 72
82 SYS_SIGPENDING = 73
83 SYS_SETHOSTNAME = 74
84 SYS_SETRLIMIT = 75
85 SYS_GETRLIMIT = 76
86 SYS_GETRUSAGE = 77
87 SYS_GETTIMEOFDAY = 78
88 SYS_SETTIMEOFDAY = 79
89 SYS_GETGROUPS = 80
90 SYS_SETGROUPS = 81
91 SYS_SELECT = 82
92 SYS_SYMLINK = 83
93 SYS_OLDLSTAT = 84
94 SYS_READLINK = 85
95 SYS_USELIB = 86
96 SYS_SWAPON = 87
97 SYS_REBOOT = 88
98 SYS_READDIR = 89
99 SYS_MMAP = 90
100 SYS_MUNMAP = 91
101 SYS_TRUNCATE = 92
102 SYS_FTRUNCATE = 93
103 SYS_FCHMOD = 94
104 SYS_FCHOWN = 95
105 SYS_GETPRIORITY = 96
106 SYS_SETPRIORITY = 97
107 SYS_PROFIL = 98
108 SYS_STATFS = 99
109 SYS_FSTATFS = 100
110 SYS_IOPERM = 101
111 SYS_SOCKETCALL = 102
112 SYS_SYSLOG = 103
113 SYS_SETITIMER = 104
114 SYS_GETITIMER = 105
115 SYS_STAT = 106
116 SYS_LSTAT = 107
117 SYS_FSTAT = 108
118 SYS_OLDUNAME = 109
119 SYS_IOPL = 110
120 SYS_VHANGUP = 111
121 SYS_IDLE = 112
122 SYS_VM86OLD = 113
123 SYS_WAIT4 = 114
124 SYS_SWAPOFF = 115
125 SYS_SYSINFO = 116
126 SYS_IPC = 117
127 SYS_FSYNC = 118
128 SYS_SIGRETURN = 119
129 SYS_CLONE = 120
130 SYS_SETDOMAINNAME = 121
131 SYS_UNAME = 122
132 SYS_MODIFY_LDT = 123
133 SYS_ADJTIMEX = 124
134 SYS_MPROTECT = 125
135 SYS_SIGPROCMASK = 126
136 SYS_CREATE_MODULE = 127
137 SYS_INIT_MODULE = 128
138 SYS_DELETE_MODULE = 129
139 SYS_GET_KERNEL_SYMS = 130
140 SYS_QUOTACTL = 131
141 SYS_GETPGID = 132
142 SYS_FCHDIR = 133
143 SYS_BDFLUSH = 134
144 SYS_SYSFS = 135
145 SYS_PERSONALITY = 136
146 SYS_AFS_SYSCALL = 137
147 SYS_SETFSUID = 138
148 SYS_SETFSGID = 139
149 SYS__LLSEEK = 140
150 SYS_GETDENTS = 141
151 SYS__NEWSELECT = 142
152 SYS_FLOCK = 143
153 SYS_MSYNC = 144
154 SYS_READV = 145
155 SYS_WRITEV = 146
156 SYS_GETSID = 147
157 SYS_FDATASYNC = 148
158 SYS__SYSCTL = 149
159 SYS_MLOCK = 150
160 SYS_MUNLOCK = 151
161 SYS_MLOCKALL = 152
162 SYS_MUNLOCKALL = 153
163 SYS_SCHED_SETPARAM = 154
164 SYS_SCHED_GETPARAM = 155
165 SYS_SCHED_SETSCHEDULER = 156
166 SYS_SCHED_GETSCHEDULER = 157
167 SYS_SCHED_YIELD = 158
168 SYS_SCHED_GET_PRIORITY_MAX = 159
169 SYS_SCHED_GET_PRIORITY_MIN = 160
170 SYS_SCHED_RR_GET_INTERVAL = 161
171 SYS_NANOSLEEP = 162
172 SYS_MREMAP = 163
173 SYS_SETRESUID = 164
174 SYS_GETRESUID = 165
175 SYS_VM86 = 166
176 SYS_QUERY_MODULE = 167
177 SYS_POLL = 168
178 SYS_NFSSERVCTL = 169
179 SYS_SETRESGID = 170
180 SYS_GETRESGID = 171
181 SYS_PRCTL = 172
182 SYS_RT_SIGRETURN = 173
183 SYS_RT_SIGACTION = 174
184 SYS_RT_SIGPROCMASK = 175
185 SYS_RT_SIGPENDING = 176
186 SYS_RT_SIGTIMEDWAIT = 177
187 SYS_RT_SIGQUEUEINFO = 178
188 SYS_RT_SIGSUSPEND = 179
189 SYS_PREAD64 = 180
190 SYS_PWRITE64 = 181
191 SYS_CHOWN = 182
192 SYS_GETCWD = 183
193 SYS_CAPGET = 184
194 SYS_CAPSET = 185
195 SYS_SIGALTSTACK = 186
196 SYS_SENDFILE = 187
197 SYS_GETPMSG = 188
198 SYS_PUTPMSG = 189
199 SYS_VFORK = 190
200 SYS_UGETRLIMIT = 191
201 SYS_MMAP2 = 192
202 SYS_TRUNCATE64 = 193
203 SYS_FTRUNCATE64 = 194
204 SYS_STAT64 = 195
205 SYS_LSTAT64 = 196
206 SYS_FSTAT64 = 197
207 SYS_LCHOWN32 = 198
208 SYS_GETUID32 = 199
209 SYS_GETGID32 = 200
210 SYS_GETEUID32 = 201
211 SYS_GETEGID32 = 202
212 SYS_SETREUID32 = 203
213 SYS_SETREGID32 = 204
214 SYS_GETGROUPS32 = 205
215 SYS_SETGROUPS32 = 206
216 SYS_FCHOWN32 = 207
217 SYS_SETRESUID32 = 208
218 SYS_GETRESUID32 = 209
219 SYS_SETRESGID32 = 210
220 SYS_GETRESGID32 = 211
221 SYS_CHOWN32 = 212
222 SYS_SETUID32 = 213
223 SYS_SETGID32 = 214
224 SYS_SETFSUID32 = 215
225 SYS_SETFSGID32 = 216
226 SYS_PIVOT_ROOT = 217
227 SYS_MINCORE = 218
228 SYS_MADVISE = 219
229 SYS_MADVISE1 = 219
230 SYS_GETDENTS64 = 220
231 SYS_FCNTL64 = 221
232 SYS_GETTID = 224
233 SYS_READAHEAD = 225
234 SYS_SETXATTR = 226
235 SYS_LSETXATTR = 227
236 SYS_FSETXATTR = 228
237 SYS_GETXATTR = 229
238 SYS_LGETXATTR = 230
239 SYS_FGETXATTR = 231
240 SYS_LISTXATTR = 232
241 SYS_LLISTXATTR = 233
242 SYS_FLISTXATTR = 234
243 SYS_REMOVEXATTR = 235
244 SYS_LREMOVEXATTR = 236
245 SYS_FREMOVEXATTR = 237
246 SYS_TKILL = 238
247 SYS_SENDFILE64 = 239
248 SYS_FUTEX = 240
249 SYS_SCHED_SETAFFINITY = 241
250 SYS_SCHED_GETAFFINITY = 242
251 SYS_SET_THREAD_AREA = 243
252 SYS_GET_THREAD_AREA = 244
253 SYS_IO_SETUP = 245
254 SYS_IO_DESTROY = 246
255 SYS_IO_GETEVENTS = 247
256 SYS_IO_SUBMIT = 248
257 SYS_IO_CANCEL = 249
258 SYS_FADVISE64 = 250
259 SYS_EXIT_GROUP = 252
260 SYS_LOOKUP_DCOOKIE = 253
261 SYS_EPOLL_CREATE = 254
262 SYS_EPOLL_CTL = 255
263 SYS_EPOLL_WAIT = 256
264 SYS_REMAP_FILE_PAGES = 257
265 SYS_SET_TID_ADDRESS = 258
266 SYS_TIMER_CREATE = 259
267 SYS_TIMER_SETTIME = 260
268 SYS_TIMER_GETTIME = 261
269 SYS_TIMER_GETOVERRUN = 262
270 SYS_TIMER_DELETE = 263
271 SYS_CLOCK_SETTIME = 264
272 SYS_CLOCK_GETTIME = 265
273 SYS_CLOCK_GETRES = 266
274 SYS_CLOCK_NANOSLEEP = 267
275 SYS_STATFS64 = 268
276 SYS_FSTATFS64 = 269
277 SYS_TGKILL = 270
278 SYS_UTIMES = 271
279 SYS_FADVISE64_64 = 272
280 SYS_VSERVER = 273
281 SYS_MBIND = 274
282 SYS_GET_MEMPOLICY = 275
283 SYS_SET_MEMPOLICY = 276
284 SYS_MQ_OPEN = 277
285 SYS_MQ_UNLINK = 278
286 SYS_MQ_TIMEDSEND = 279
287 SYS_MQ_TIMEDRECEIVE = 280
288 SYS_MQ_NOTIFY = 281
289 SYS_MQ_GETSETATTR = 282
290 SYS_KEXEC_LOAD = 283
291 SYS_WAITID = 284
292 SYS_ADD_KEY = 286
293 SYS_REQUEST_KEY = 287
294 SYS_KEYCTL = 288
295 SYS_IOPRIO_SET = 289
296 SYS_IOPRIO_GET = 290
297 SYS_INOTIFY_INIT = 291
298 SYS_INOTIFY_ADD_WATCH = 292
299 SYS_INOTIFY_RM_WATCH = 293
300 SYS_MIGRATE_PAGES = 294
301 SYS_OPENAT = 295
302 SYS_MKDIRAT = 296
303 SYS_MKNODAT = 297
304 SYS_FCHOWNAT = 298
305 SYS_FUTIMESAT = 299
306 SYS_FSTATAT64 = 300
307 SYS_UNLINKAT = 301
308 SYS_RENAMEAT = 302
309 SYS_LINKAT = 303
310 SYS_SYMLINKAT = 304
311 SYS_READLINKAT = 305
312 SYS_FCHMODAT = 306
313 SYS_FACCESSAT = 307
314 SYS_PSELECT6 = 308
315 SYS_PPOLL = 309
316 SYS_UNSHARE = 310
317 SYS_SET_ROBUST_LIST = 311
318 SYS_GET_ROBUST_LIST = 312
319 SYS_SPLICE = 313
320 SYS_SYNC_FILE_RANGE = 314
321 SYS_TEE = 315
322 SYS_VMSPLICE = 316
323 SYS_MOVE_PAGES = 317
324 SYS_GETCPU = 318
325 SYS_EPOLL_PWAIT = 319
326 SYS_UTIMENSAT = 320
327 SYS_SIGNALFD = 321
328 SYS_TIMERFD_CREATE = 322
329 SYS_EVENTFD = 323
330 SYS_FALLOCATE = 324
331 SYS_TIMERFD_SETTIME = 325
332 SYS_TIMERFD_GETTIME = 326
333 SYS_SIGNALFD4 = 327
334 SYS_EVENTFD2 = 328
335 SYS_EPOLL_CREATE1 = 329
336 SYS_DUP3 = 330
337 SYS_PIPE2 = 331
338 SYS_INOTIFY_INIT1 = 332
339 SYS_PREADV = 333
340 SYS_PWRITEV = 334
341 SYS_RT_TGSIGQUEUEINFO = 335
342 SYS_PERF_EVENT_OPEN = 336
343 SYS_RECVMMSG = 337
344 SYS_FANOTIFY_INIT = 338
345 SYS_FANOTIFY_MARK = 339
346 SYS_PRLIMIT64 = 340
347 SYS_NAME_TO_HANDLE_AT = 341
348 SYS_OPEN_BY_HANDLE_AT = 342
349 SYS_CLOCK_ADJTIME = 343
350 SYS_SYNCFS = 344
351 SYS_SENDMMSG = 345
352 SYS_SETNS = 346
353 SYS_PROCESS_VM_READV = 347
354 SYS_PROCESS_VM_WRITEV = 348
355)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_amd64.go
deleted file mode 100644
index ddac31f..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_amd64.go
+++ /dev/null
@@ -1,321 +0,0 @@
1// mksysnum_linux.pl /usr/include/asm/unistd_64.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build amd64,linux
5
6package unix
7
8const (
9 SYS_READ = 0
10 SYS_WRITE = 1
11 SYS_OPEN = 2
12 SYS_CLOSE = 3
13 SYS_STAT = 4
14 SYS_FSTAT = 5
15 SYS_LSTAT = 6
16 SYS_POLL = 7
17 SYS_LSEEK = 8
18 SYS_MMAP = 9
19 SYS_MPROTECT = 10
20 SYS_MUNMAP = 11
21 SYS_BRK = 12
22 SYS_RT_SIGACTION = 13
23 SYS_RT_SIGPROCMASK = 14
24 SYS_RT_SIGRETURN = 15
25 SYS_IOCTL = 16
26 SYS_PREAD64 = 17
27 SYS_PWRITE64 = 18
28 SYS_READV = 19
29 SYS_WRITEV = 20
30 SYS_ACCESS = 21
31 SYS_PIPE = 22
32 SYS_SELECT = 23
33 SYS_SCHED_YIELD = 24
34 SYS_MREMAP = 25
35 SYS_MSYNC = 26
36 SYS_MINCORE = 27
37 SYS_MADVISE = 28
38 SYS_SHMGET = 29
39 SYS_SHMAT = 30
40 SYS_SHMCTL = 31
41 SYS_DUP = 32
42 SYS_DUP2 = 33
43 SYS_PAUSE = 34
44 SYS_NANOSLEEP = 35
45 SYS_GETITIMER = 36
46 SYS_ALARM = 37
47 SYS_SETITIMER = 38
48 SYS_GETPID = 39
49 SYS_SENDFILE = 40
50 SYS_SOCKET = 41
51 SYS_CONNECT = 42
52 SYS_ACCEPT = 43
53 SYS_SENDTO = 44
54 SYS_RECVFROM = 45
55 SYS_SENDMSG = 46
56 SYS_RECVMSG = 47
57 SYS_SHUTDOWN = 48
58 SYS_BIND = 49
59 SYS_LISTEN = 50
60 SYS_GETSOCKNAME = 51
61 SYS_GETPEERNAME = 52
62 SYS_SOCKETPAIR = 53
63 SYS_SETSOCKOPT = 54
64 SYS_GETSOCKOPT = 55
65 SYS_CLONE = 56
66 SYS_FORK = 57
67 SYS_VFORK = 58
68 SYS_EXECVE = 59
69 SYS_EXIT = 60
70 SYS_WAIT4 = 61
71 SYS_KILL = 62
72 SYS_UNAME = 63
73 SYS_SEMGET = 64
74 SYS_SEMOP = 65
75 SYS_SEMCTL = 66
76 SYS_SHMDT = 67
77 SYS_MSGGET = 68
78 SYS_MSGSND = 69
79 SYS_MSGRCV = 70
80 SYS_MSGCTL = 71
81 SYS_FCNTL = 72
82 SYS_FLOCK = 73
83 SYS_FSYNC = 74
84 SYS_FDATASYNC = 75
85 SYS_TRUNCATE = 76
86 SYS_FTRUNCATE = 77
87 SYS_GETDENTS = 78
88 SYS_GETCWD = 79
89 SYS_CHDIR = 80
90 SYS_FCHDIR = 81
91 SYS_RENAME = 82
92 SYS_MKDIR = 83
93 SYS_RMDIR = 84
94 SYS_CREAT = 85
95 SYS_LINK = 86
96 SYS_UNLINK = 87
97 SYS_SYMLINK = 88
98 SYS_READLINK = 89
99 SYS_CHMOD = 90
100 SYS_FCHMOD = 91
101 SYS_CHOWN = 92
102 SYS_FCHOWN = 93
103 SYS_LCHOWN = 94
104 SYS_UMASK = 95
105 SYS_GETTIMEOFDAY = 96
106 SYS_GETRLIMIT = 97
107 SYS_GETRUSAGE = 98
108 SYS_SYSINFO = 99
109 SYS_TIMES = 100
110 SYS_PTRACE = 101
111 SYS_GETUID = 102
112 SYS_SYSLOG = 103
113 SYS_GETGID = 104
114 SYS_SETUID = 105
115 SYS_SETGID = 106
116 SYS_GETEUID = 107
117 SYS_GETEGID = 108
118 SYS_SETPGID = 109
119 SYS_GETPPID = 110
120 SYS_GETPGRP = 111
121 SYS_SETSID = 112
122 SYS_SETREUID = 113
123 SYS_SETREGID = 114
124 SYS_GETGROUPS = 115
125 SYS_SETGROUPS = 116
126 SYS_SETRESUID = 117
127 SYS_GETRESUID = 118
128 SYS_SETRESGID = 119
129 SYS_GETRESGID = 120
130 SYS_GETPGID = 121
131 SYS_SETFSUID = 122
132 SYS_SETFSGID = 123
133 SYS_GETSID = 124
134 SYS_CAPGET = 125
135 SYS_CAPSET = 126
136 SYS_RT_SIGPENDING = 127
137 SYS_RT_SIGTIMEDWAIT = 128
138 SYS_RT_SIGQUEUEINFO = 129
139 SYS_RT_SIGSUSPEND = 130
140 SYS_SIGALTSTACK = 131
141 SYS_UTIME = 132
142 SYS_MKNOD = 133
143 SYS_USELIB = 134
144 SYS_PERSONALITY = 135
145 SYS_USTAT = 136
146 SYS_STATFS = 137
147 SYS_FSTATFS = 138
148 SYS_SYSFS = 139
149 SYS_GETPRIORITY = 140
150 SYS_SETPRIORITY = 141
151 SYS_SCHED_SETPARAM = 142
152 SYS_SCHED_GETPARAM = 143
153 SYS_SCHED_SETSCHEDULER = 144
154 SYS_SCHED_GETSCHEDULER = 145
155 SYS_SCHED_GET_PRIORITY_MAX = 146
156 SYS_SCHED_GET_PRIORITY_MIN = 147
157 SYS_SCHED_RR_GET_INTERVAL = 148
158 SYS_MLOCK = 149
159 SYS_MUNLOCK = 150
160 SYS_MLOCKALL = 151
161 SYS_MUNLOCKALL = 152
162 SYS_VHANGUP = 153
163 SYS_MODIFY_LDT = 154
164 SYS_PIVOT_ROOT = 155
165 SYS__SYSCTL = 156
166 SYS_PRCTL = 157
167 SYS_ARCH_PRCTL = 158
168 SYS_ADJTIMEX = 159
169 SYS_SETRLIMIT = 160
170 SYS_CHROOT = 161
171 SYS_SYNC = 162
172 SYS_ACCT = 163
173 SYS_SETTIMEOFDAY = 164
174 SYS_MOUNT = 165
175 SYS_UMOUNT2 = 166
176 SYS_SWAPON = 167
177 SYS_SWAPOFF = 168
178 SYS_REBOOT = 169
179 SYS_SETHOSTNAME = 170
180 SYS_SETDOMAINNAME = 171
181 SYS_IOPL = 172
182 SYS_IOPERM = 173
183 SYS_CREATE_MODULE = 174
184 SYS_INIT_MODULE = 175
185 SYS_DELETE_MODULE = 176
186 SYS_GET_KERNEL_SYMS = 177
187 SYS_QUERY_MODULE = 178
188 SYS_QUOTACTL = 179
189 SYS_NFSSERVCTL = 180
190 SYS_GETPMSG = 181
191 SYS_PUTPMSG = 182
192 SYS_AFS_SYSCALL = 183
193 SYS_TUXCALL = 184
194 SYS_SECURITY = 185
195 SYS_GETTID = 186
196 SYS_READAHEAD = 187
197 SYS_SETXATTR = 188
198 SYS_LSETXATTR = 189
199 SYS_FSETXATTR = 190
200 SYS_GETXATTR = 191
201 SYS_LGETXATTR = 192
202 SYS_FGETXATTR = 193
203 SYS_LISTXATTR = 194
204 SYS_LLISTXATTR = 195
205 SYS_FLISTXATTR = 196
206 SYS_REMOVEXATTR = 197
207 SYS_LREMOVEXATTR = 198
208 SYS_FREMOVEXATTR = 199
209 SYS_TKILL = 200
210 SYS_TIME = 201
211 SYS_FUTEX = 202
212 SYS_SCHED_SETAFFINITY = 203
213 SYS_SCHED_GETAFFINITY = 204
214 SYS_SET_THREAD_AREA = 205
215 SYS_IO_SETUP = 206
216 SYS_IO_DESTROY = 207
217 SYS_IO_GETEVENTS = 208
218 SYS_IO_SUBMIT = 209
219 SYS_IO_CANCEL = 210
220 SYS_GET_THREAD_AREA = 211
221 SYS_LOOKUP_DCOOKIE = 212
222 SYS_EPOLL_CREATE = 213
223 SYS_EPOLL_CTL_OLD = 214
224 SYS_EPOLL_WAIT_OLD = 215
225 SYS_REMAP_FILE_PAGES = 216
226 SYS_GETDENTS64 = 217
227 SYS_SET_TID_ADDRESS = 218
228 SYS_RESTART_SYSCALL = 219
229 SYS_SEMTIMEDOP = 220
230 SYS_FADVISE64 = 221
231 SYS_TIMER_CREATE = 222
232 SYS_TIMER_SETTIME = 223
233 SYS_TIMER_GETTIME = 224
234 SYS_TIMER_GETOVERRUN = 225
235 SYS_TIMER_DELETE = 226
236 SYS_CLOCK_SETTIME = 227
237 SYS_CLOCK_GETTIME = 228
238 SYS_CLOCK_GETRES = 229
239 SYS_CLOCK_NANOSLEEP = 230
240 SYS_EXIT_GROUP = 231
241 SYS_EPOLL_WAIT = 232
242 SYS_EPOLL_CTL = 233
243 SYS_TGKILL = 234
244 SYS_UTIMES = 235
245 SYS_VSERVER = 236
246 SYS_MBIND = 237
247 SYS_SET_MEMPOLICY = 238
248 SYS_GET_MEMPOLICY = 239
249 SYS_MQ_OPEN = 240
250 SYS_MQ_UNLINK = 241
251 SYS_MQ_TIMEDSEND = 242
252 SYS_MQ_TIMEDRECEIVE = 243
253 SYS_MQ_NOTIFY = 244
254 SYS_MQ_GETSETATTR = 245
255 SYS_KEXEC_LOAD = 246
256 SYS_WAITID = 247
257 SYS_ADD_KEY = 248
258 SYS_REQUEST_KEY = 249
259 SYS_KEYCTL = 250
260 SYS_IOPRIO_SET = 251
261 SYS_IOPRIO_GET = 252
262 SYS_INOTIFY_INIT = 253
263 SYS_INOTIFY_ADD_WATCH = 254
264 SYS_INOTIFY_RM_WATCH = 255
265 SYS_MIGRATE_PAGES = 256
266 SYS_OPENAT = 257
267 SYS_MKDIRAT = 258
268 SYS_MKNODAT = 259
269 SYS_FCHOWNAT = 260
270 SYS_FUTIMESAT = 261
271 SYS_NEWFSTATAT = 262
272 SYS_UNLINKAT = 263
273 SYS_RENAMEAT = 264
274 SYS_LINKAT = 265
275 SYS_SYMLINKAT = 266
276 SYS_READLINKAT = 267
277 SYS_FCHMODAT = 268
278 SYS_FACCESSAT = 269
279 SYS_PSELECT6 = 270
280 SYS_PPOLL = 271
281 SYS_UNSHARE = 272
282 SYS_SET_ROBUST_LIST = 273
283 SYS_GET_ROBUST_LIST = 274
284 SYS_SPLICE = 275
285 SYS_TEE = 276
286 SYS_SYNC_FILE_RANGE = 277
287 SYS_VMSPLICE = 278
288 SYS_MOVE_PAGES = 279
289 SYS_UTIMENSAT = 280
290 SYS_EPOLL_PWAIT = 281
291 SYS_SIGNALFD = 282
292 SYS_TIMERFD_CREATE = 283
293 SYS_EVENTFD = 284
294 SYS_FALLOCATE = 285
295 SYS_TIMERFD_SETTIME = 286
296 SYS_TIMERFD_GETTIME = 287
297 SYS_ACCEPT4 = 288
298 SYS_SIGNALFD4 = 289
299 SYS_EVENTFD2 = 290
300 SYS_EPOLL_CREATE1 = 291
301 SYS_DUP3 = 292
302 SYS_PIPE2 = 293
303 SYS_INOTIFY_INIT1 = 294
304 SYS_PREADV = 295
305 SYS_PWRITEV = 296
306 SYS_RT_TGSIGQUEUEINFO = 297
307 SYS_PERF_EVENT_OPEN = 298
308 SYS_RECVMMSG = 299
309 SYS_FANOTIFY_INIT = 300
310 SYS_FANOTIFY_MARK = 301
311 SYS_PRLIMIT64 = 302
312 SYS_NAME_TO_HANDLE_AT = 303
313 SYS_OPEN_BY_HANDLE_AT = 304
314 SYS_CLOCK_ADJTIME = 305
315 SYS_SYNCFS = 306
316 SYS_SENDMMSG = 307
317 SYS_SETNS = 308
318 SYS_GETCPU = 309
319 SYS_PROCESS_VM_READV = 310
320 SYS_PROCESS_VM_WRITEV = 311
321)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_arm.go
deleted file mode 100644
index 45ced17..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_arm.go
+++ /dev/null
@@ -1,356 +0,0 @@
1// mksysnum_linux.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build arm,linux
5
6package unix
7
8const (
9 SYS_OABI_SYSCALL_BASE = 0
10 SYS_SYSCALL_BASE = 0
11 SYS_RESTART_SYSCALL = 0
12 SYS_EXIT = 1
13 SYS_FORK = 2
14 SYS_READ = 3
15 SYS_WRITE = 4
16 SYS_OPEN = 5
17 SYS_CLOSE = 6
18 SYS_CREAT = 8
19 SYS_LINK = 9
20 SYS_UNLINK = 10
21 SYS_EXECVE = 11
22 SYS_CHDIR = 12
23 SYS_TIME = 13
24 SYS_MKNOD = 14
25 SYS_CHMOD = 15
26 SYS_LCHOWN = 16
27 SYS_LSEEK = 19
28 SYS_GETPID = 20
29 SYS_MOUNT = 21
30 SYS_UMOUNT = 22
31 SYS_SETUID = 23
32 SYS_GETUID = 24
33 SYS_STIME = 25
34 SYS_PTRACE = 26
35 SYS_ALARM = 27
36 SYS_PAUSE = 29
37 SYS_UTIME = 30
38 SYS_ACCESS = 33
39 SYS_NICE = 34
40 SYS_SYNC = 36
41 SYS_KILL = 37
42 SYS_RENAME = 38
43 SYS_MKDIR = 39
44 SYS_RMDIR = 40
45 SYS_DUP = 41
46 SYS_PIPE = 42
47 SYS_TIMES = 43
48 SYS_BRK = 45
49 SYS_SETGID = 46
50 SYS_GETGID = 47
51 SYS_GETEUID = 49
52 SYS_GETEGID = 50
53 SYS_ACCT = 51
54 SYS_UMOUNT2 = 52
55 SYS_IOCTL = 54
56 SYS_FCNTL = 55
57 SYS_SETPGID = 57
58 SYS_UMASK = 60
59 SYS_CHROOT = 61
60 SYS_USTAT = 62
61 SYS_DUP2 = 63
62 SYS_GETPPID = 64
63 SYS_GETPGRP = 65
64 SYS_SETSID = 66
65 SYS_SIGACTION = 67
66 SYS_SETREUID = 70
67 SYS_SETREGID = 71
68 SYS_SIGSUSPEND = 72
69 SYS_SIGPENDING = 73
70 SYS_SETHOSTNAME = 74
71 SYS_SETRLIMIT = 75
72 SYS_GETRLIMIT = 76
73 SYS_GETRUSAGE = 77
74 SYS_GETTIMEOFDAY = 78
75 SYS_SETTIMEOFDAY = 79
76 SYS_GETGROUPS = 80
77 SYS_SETGROUPS = 81
78 SYS_SELECT = 82
79 SYS_SYMLINK = 83
80 SYS_READLINK = 85
81 SYS_USELIB = 86
82 SYS_SWAPON = 87
83 SYS_REBOOT = 88
84 SYS_READDIR = 89
85 SYS_MMAP = 90
86 SYS_MUNMAP = 91
87 SYS_TRUNCATE = 92
88 SYS_FTRUNCATE = 93
89 SYS_FCHMOD = 94
90 SYS_FCHOWN = 95
91 SYS_GETPRIORITY = 96
92 SYS_SETPRIORITY = 97
93 SYS_STATFS = 99
94 SYS_FSTATFS = 100
95 SYS_SOCKETCALL = 102
96 SYS_SYSLOG = 103
97 SYS_SETITIMER = 104
98 SYS_GETITIMER = 105
99 SYS_STAT = 106
100 SYS_LSTAT = 107
101 SYS_FSTAT = 108
102 SYS_VHANGUP = 111
103 SYS_SYSCALL = 113
104 SYS_WAIT4 = 114
105 SYS_SWAPOFF = 115
106 SYS_SYSINFO = 116
107 SYS_IPC = 117
108 SYS_FSYNC = 118
109 SYS_SIGRETURN = 119
110 SYS_CLONE = 120
111 SYS_SETDOMAINNAME = 121
112 SYS_UNAME = 122
113 SYS_ADJTIMEX = 124
114 SYS_MPROTECT = 125
115 SYS_SIGPROCMASK = 126
116 SYS_INIT_MODULE = 128
117 SYS_DELETE_MODULE = 129
118 SYS_QUOTACTL = 131
119 SYS_GETPGID = 132
120 SYS_FCHDIR = 133
121 SYS_BDFLUSH = 134
122 SYS_SYSFS = 135
123 SYS_PERSONALITY = 136
124 SYS_SETFSUID = 138
125 SYS_SETFSGID = 139
126 SYS__LLSEEK = 140
127 SYS_GETDENTS = 141
128 SYS__NEWSELECT = 142
129 SYS_FLOCK = 143
130 SYS_MSYNC = 144
131 SYS_READV = 145
132 SYS_WRITEV = 146
133 SYS_GETSID = 147
134 SYS_FDATASYNC = 148
135 SYS__SYSCTL = 149
136 SYS_MLOCK = 150
137 SYS_MUNLOCK = 151
138 SYS_MLOCKALL = 152
139 SYS_MUNLOCKALL = 153
140 SYS_SCHED_SETPARAM = 154
141 SYS_SCHED_GETPARAM = 155
142 SYS_SCHED_SETSCHEDULER = 156
143 SYS_SCHED_GETSCHEDULER = 157
144 SYS_SCHED_YIELD = 158
145 SYS_SCHED_GET_PRIORITY_MAX = 159
146 SYS_SCHED_GET_PRIORITY_MIN = 160
147 SYS_SCHED_RR_GET_INTERVAL = 161
148 SYS_NANOSLEEP = 162
149 SYS_MREMAP = 163
150 SYS_SETRESUID = 164
151 SYS_GETRESUID = 165
152 SYS_POLL = 168
153 SYS_NFSSERVCTL = 169
154 SYS_SETRESGID = 170
155 SYS_GETRESGID = 171
156 SYS_PRCTL = 172
157 SYS_RT_SIGRETURN = 173
158 SYS_RT_SIGACTION = 174
159 SYS_RT_SIGPROCMASK = 175
160 SYS_RT_SIGPENDING = 176
161 SYS_RT_SIGTIMEDWAIT = 177
162 SYS_RT_SIGQUEUEINFO = 178
163 SYS_RT_SIGSUSPEND = 179
164 SYS_PREAD64 = 180
165 SYS_PWRITE64 = 181
166 SYS_CHOWN = 182
167 SYS_GETCWD = 183
168 SYS_CAPGET = 184
169 SYS_CAPSET = 185
170 SYS_SIGALTSTACK = 186
171 SYS_SENDFILE = 187
172 SYS_VFORK = 190
173 SYS_UGETRLIMIT = 191
174 SYS_MMAP2 = 192
175 SYS_TRUNCATE64 = 193
176 SYS_FTRUNCATE64 = 194
177 SYS_STAT64 = 195
178 SYS_LSTAT64 = 196
179 SYS_FSTAT64 = 197
180 SYS_LCHOWN32 = 198
181 SYS_GETUID32 = 199
182 SYS_GETGID32 = 200
183 SYS_GETEUID32 = 201
184 SYS_GETEGID32 = 202
185 SYS_SETREUID32 = 203
186 SYS_SETREGID32 = 204
187 SYS_GETGROUPS32 = 205
188 SYS_SETGROUPS32 = 206
189 SYS_FCHOWN32 = 207
190 SYS_SETRESUID32 = 208
191 SYS_GETRESUID32 = 209
192 SYS_SETRESGID32 = 210
193 SYS_GETRESGID32 = 211
194 SYS_CHOWN32 = 212
195 SYS_SETUID32 = 213
196 SYS_SETGID32 = 214
197 SYS_SETFSUID32 = 215
198 SYS_SETFSGID32 = 216
199 SYS_GETDENTS64 = 217
200 SYS_PIVOT_ROOT = 218
201 SYS_MINCORE = 219
202 SYS_MADVISE = 220
203 SYS_FCNTL64 = 221
204 SYS_GETTID = 224
205 SYS_READAHEAD = 225
206 SYS_SETXATTR = 226
207 SYS_LSETXATTR = 227
208 SYS_FSETXATTR = 228
209 SYS_GETXATTR = 229
210 SYS_LGETXATTR = 230
211 SYS_FGETXATTR = 231
212 SYS_LISTXATTR = 232
213 SYS_LLISTXATTR = 233
214 SYS_FLISTXATTR = 234
215 SYS_REMOVEXATTR = 235
216 SYS_LREMOVEXATTR = 236
217 SYS_FREMOVEXATTR = 237
218 SYS_TKILL = 238
219 SYS_SENDFILE64 = 239
220 SYS_FUTEX = 240
221 SYS_SCHED_SETAFFINITY = 241
222 SYS_SCHED_GETAFFINITY = 242
223 SYS_IO_SETUP = 243
224 SYS_IO_DESTROY = 244
225 SYS_IO_GETEVENTS = 245
226 SYS_IO_SUBMIT = 246
227 SYS_IO_CANCEL = 247
228 SYS_EXIT_GROUP = 248
229 SYS_LOOKUP_DCOOKIE = 249
230 SYS_EPOLL_CREATE = 250
231 SYS_EPOLL_CTL = 251
232 SYS_EPOLL_WAIT = 252
233 SYS_REMAP_FILE_PAGES = 253
234 SYS_SET_TID_ADDRESS = 256
235 SYS_TIMER_CREATE = 257
236 SYS_TIMER_SETTIME = 258
237 SYS_TIMER_GETTIME = 259
238 SYS_TIMER_GETOVERRUN = 260
239 SYS_TIMER_DELETE = 261
240 SYS_CLOCK_SETTIME = 262
241 SYS_CLOCK_GETTIME = 263
242 SYS_CLOCK_GETRES = 264
243 SYS_CLOCK_NANOSLEEP = 265
244 SYS_STATFS64 = 266
245 SYS_FSTATFS64 = 267
246 SYS_TGKILL = 268
247 SYS_UTIMES = 269
248 SYS_ARM_FADVISE64_64 = 270
249 SYS_PCICONFIG_IOBASE = 271
250 SYS_PCICONFIG_READ = 272
251 SYS_PCICONFIG_WRITE = 273
252 SYS_MQ_OPEN = 274
253 SYS_MQ_UNLINK = 275
254 SYS_MQ_TIMEDSEND = 276
255 SYS_MQ_TIMEDRECEIVE = 277
256 SYS_MQ_NOTIFY = 278
257 SYS_MQ_GETSETATTR = 279
258 SYS_WAITID = 280
259 SYS_SOCKET = 281
260 SYS_BIND = 282
261 SYS_CONNECT = 283
262 SYS_LISTEN = 284
263 SYS_ACCEPT = 285
264 SYS_GETSOCKNAME = 286
265 SYS_GETPEERNAME = 287
266 SYS_SOCKETPAIR = 288
267 SYS_SEND = 289
268 SYS_SENDTO = 290
269 SYS_RECV = 291
270 SYS_RECVFROM = 292
271 SYS_SHUTDOWN = 293
272 SYS_SETSOCKOPT = 294
273 SYS_GETSOCKOPT = 295
274 SYS_SENDMSG = 296
275 SYS_RECVMSG = 297
276 SYS_SEMOP = 298
277 SYS_SEMGET = 299
278 SYS_SEMCTL = 300
279 SYS_MSGSND = 301
280 SYS_MSGRCV = 302
281 SYS_MSGGET = 303
282 SYS_MSGCTL = 304
283 SYS_SHMAT = 305
284 SYS_SHMDT = 306
285 SYS_SHMGET = 307
286 SYS_SHMCTL = 308
287 SYS_ADD_KEY = 309
288 SYS_REQUEST_KEY = 310
289 SYS_KEYCTL = 311
290 SYS_SEMTIMEDOP = 312
291 SYS_VSERVER = 313
292 SYS_IOPRIO_SET = 314
293 SYS_IOPRIO_GET = 315
294 SYS_INOTIFY_INIT = 316
295 SYS_INOTIFY_ADD_WATCH = 317
296 SYS_INOTIFY_RM_WATCH = 318
297 SYS_MBIND = 319
298 SYS_GET_MEMPOLICY = 320
299 SYS_SET_MEMPOLICY = 321
300 SYS_OPENAT = 322
301 SYS_MKDIRAT = 323
302 SYS_MKNODAT = 324
303 SYS_FCHOWNAT = 325
304 SYS_FUTIMESAT = 326
305 SYS_FSTATAT64 = 327
306 SYS_UNLINKAT = 328
307 SYS_RENAMEAT = 329
308 SYS_LINKAT = 330
309 SYS_SYMLINKAT = 331
310 SYS_READLINKAT = 332
311 SYS_FCHMODAT = 333
312 SYS_FACCESSAT = 334
313 SYS_PSELECT6 = 335
314 SYS_PPOLL = 336
315 SYS_UNSHARE = 337
316 SYS_SET_ROBUST_LIST = 338
317 SYS_GET_ROBUST_LIST = 339
318 SYS_SPLICE = 340
319 SYS_ARM_SYNC_FILE_RANGE = 341
320 SYS_TEE = 342
321 SYS_VMSPLICE = 343
322 SYS_MOVE_PAGES = 344
323 SYS_GETCPU = 345
324 SYS_EPOLL_PWAIT = 346
325 SYS_KEXEC_LOAD = 347
326 SYS_UTIMENSAT = 348
327 SYS_SIGNALFD = 349
328 SYS_TIMERFD_CREATE = 350
329 SYS_EVENTFD = 351
330 SYS_FALLOCATE = 352
331 SYS_TIMERFD_SETTIME = 353
332 SYS_TIMERFD_GETTIME = 354
333 SYS_SIGNALFD4 = 355
334 SYS_EVENTFD2 = 356
335 SYS_EPOLL_CREATE1 = 357
336 SYS_DUP3 = 358
337 SYS_PIPE2 = 359
338 SYS_INOTIFY_INIT1 = 360
339 SYS_PREADV = 361
340 SYS_PWRITEV = 362
341 SYS_RT_TGSIGQUEUEINFO = 363
342 SYS_PERF_EVENT_OPEN = 364
343 SYS_RECVMMSG = 365
344 SYS_ACCEPT4 = 366
345 SYS_FANOTIFY_INIT = 367
346 SYS_FANOTIFY_MARK = 368
347 SYS_PRLIMIT64 = 369
348 SYS_NAME_TO_HANDLE_AT = 370
349 SYS_OPEN_BY_HANDLE_AT = 371
350 SYS_CLOCK_ADJTIME = 372
351 SYS_SYNCFS = 373
352 SYS_SENDMMSG = 374
353 SYS_SETNS = 375
354 SYS_PROCESS_VM_READV = 376
355 SYS_PROCESS_VM_WRITEV = 377
356)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_arm64.go
deleted file mode 100644
index 2e9514f..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_arm64.go
+++ /dev/null
@@ -1,272 +0,0 @@
1// mksysnum_linux.pl /usr/include/asm-generic/unistd.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build arm64,linux
5
6package unix
7
8const (
9 SYS_IO_SETUP = 0
10 SYS_IO_DESTROY = 1
11 SYS_IO_SUBMIT = 2
12 SYS_IO_CANCEL = 3
13 SYS_IO_GETEVENTS = 4
14 SYS_SETXATTR = 5
15 SYS_LSETXATTR = 6
16 SYS_FSETXATTR = 7
17 SYS_GETXATTR = 8
18 SYS_LGETXATTR = 9
19 SYS_FGETXATTR = 10
20 SYS_LISTXATTR = 11
21 SYS_LLISTXATTR = 12
22 SYS_FLISTXATTR = 13
23 SYS_REMOVEXATTR = 14
24 SYS_LREMOVEXATTR = 15
25 SYS_FREMOVEXATTR = 16
26 SYS_GETCWD = 17
27 SYS_LOOKUP_DCOOKIE = 18
28 SYS_EVENTFD2 = 19
29 SYS_EPOLL_CREATE1 = 20
30 SYS_EPOLL_CTL = 21
31 SYS_EPOLL_PWAIT = 22
32 SYS_DUP = 23
33 SYS_DUP3 = 24
34 SYS_FCNTL = 25
35 SYS_INOTIFY_INIT1 = 26
36 SYS_INOTIFY_ADD_WATCH = 27
37 SYS_INOTIFY_RM_WATCH = 28
38 SYS_IOCTL = 29
39 SYS_IOPRIO_SET = 30
40 SYS_IOPRIO_GET = 31
41 SYS_FLOCK = 32
42 SYS_MKNODAT = 33
43 SYS_MKDIRAT = 34
44 SYS_UNLINKAT = 35
45 SYS_SYMLINKAT = 36
46 SYS_LINKAT = 37
47 SYS_RENAMEAT = 38
48 SYS_UMOUNT2 = 39
49 SYS_MOUNT = 40
50 SYS_PIVOT_ROOT = 41
51 SYS_NFSSERVCTL = 42
52 SYS_STATFS = 43
53 SYS_FSTATFS = 44
54 SYS_TRUNCATE = 45
55 SYS_FTRUNCATE = 46
56 SYS_FALLOCATE = 47
57 SYS_FACCESSAT = 48
58 SYS_CHDIR = 49
59 SYS_FCHDIR = 50
60 SYS_CHROOT = 51
61 SYS_FCHMOD = 52
62 SYS_FCHMODAT = 53
63 SYS_FCHOWNAT = 54
64 SYS_FCHOWN = 55
65 SYS_OPENAT = 56
66 SYS_CLOSE = 57
67 SYS_VHANGUP = 58
68 SYS_PIPE2 = 59
69 SYS_QUOTACTL = 60
70 SYS_GETDENTS64 = 61
71 SYS_LSEEK = 62
72 SYS_READ = 63
73 SYS_WRITE = 64
74 SYS_READV = 65
75 SYS_WRITEV = 66
76 SYS_PREAD64 = 67
77 SYS_PWRITE64 = 68
78 SYS_PREADV = 69
79 SYS_PWRITEV = 70
80 SYS_SENDFILE = 71
81 SYS_PSELECT6 = 72
82 SYS_PPOLL = 73
83 SYS_SIGNALFD4 = 74
84 SYS_VMSPLICE = 75
85 SYS_SPLICE = 76
86 SYS_TEE = 77
87 SYS_READLINKAT = 78
88 SYS_FSTATAT = 79
89 SYS_FSTAT = 80
90 SYS_SYNC = 81
91 SYS_FSYNC = 82
92 SYS_FDATASYNC = 83
93 SYS_SYNC_FILE_RANGE = 84
94 SYS_TIMERFD_CREATE = 85
95 SYS_TIMERFD_SETTIME = 86
96 SYS_TIMERFD_GETTIME = 87
97 SYS_UTIMENSAT = 88
98 SYS_ACCT = 89
99 SYS_CAPGET = 90
100 SYS_CAPSET = 91
101 SYS_PERSONALITY = 92
102 SYS_EXIT = 93
103 SYS_EXIT_GROUP = 94
104 SYS_WAITID = 95
105 SYS_SET_TID_ADDRESS = 96
106 SYS_UNSHARE = 97
107 SYS_FUTEX = 98
108 SYS_SET_ROBUST_LIST = 99
109 SYS_GET_ROBUST_LIST = 100
110 SYS_NANOSLEEP = 101
111 SYS_GETITIMER = 102
112 SYS_SETITIMER = 103
113 SYS_KEXEC_LOAD = 104
114 SYS_INIT_MODULE = 105
115 SYS_DELETE_MODULE = 106
116 SYS_TIMER_CREATE = 107
117 SYS_TIMER_GETTIME = 108
118 SYS_TIMER_GETOVERRUN = 109
119 SYS_TIMER_SETTIME = 110
120 SYS_TIMER_DELETE = 111
121 SYS_CLOCK_SETTIME = 112
122 SYS_CLOCK_GETTIME = 113
123 SYS_CLOCK_GETRES = 114
124 SYS_CLOCK_NANOSLEEP = 115
125 SYS_SYSLOG = 116
126 SYS_PTRACE = 117
127 SYS_SCHED_SETPARAM = 118
128 SYS_SCHED_SETSCHEDULER = 119
129 SYS_SCHED_GETSCHEDULER = 120
130 SYS_SCHED_GETPARAM = 121
131 SYS_SCHED_SETAFFINITY = 122
132 SYS_SCHED_GETAFFINITY = 123
133 SYS_SCHED_YIELD = 124
134 SYS_SCHED_GET_PRIORITY_MAX = 125
135 SYS_SCHED_GET_PRIORITY_MIN = 126
136 SYS_SCHED_RR_GET_INTERVAL = 127
137 SYS_RESTART_SYSCALL = 128
138 SYS_KILL = 129
139 SYS_TKILL = 130
140 SYS_TGKILL = 131
141 SYS_SIGALTSTACK = 132
142 SYS_RT_SIGSUSPEND = 133
143 SYS_RT_SIGACTION = 134
144 SYS_RT_SIGPROCMASK = 135
145 SYS_RT_SIGPENDING = 136
146 SYS_RT_SIGTIMEDWAIT = 137
147 SYS_RT_SIGQUEUEINFO = 138
148 SYS_RT_SIGRETURN = 139
149 SYS_SETPRIORITY = 140
150 SYS_GETPRIORITY = 141
151 SYS_REBOOT = 142
152 SYS_SETREGID = 143
153 SYS_SETGID = 144
154 SYS_SETREUID = 145
155 SYS_SETUID = 146
156 SYS_SETRESUID = 147
157 SYS_GETRESUID = 148
158 SYS_SETRESGID = 149
159 SYS_GETRESGID = 150
160 SYS_SETFSUID = 151
161 SYS_SETFSGID = 152
162 SYS_TIMES = 153
163 SYS_SETPGID = 154
164 SYS_GETPGID = 155
165 SYS_GETSID = 156
166 SYS_SETSID = 157
167 SYS_GETGROUPS = 158
168 SYS_SETGROUPS = 159
169 SYS_UNAME = 160
170 SYS_SETHOSTNAME = 161
171 SYS_SETDOMAINNAME = 162
172 SYS_GETRLIMIT = 163
173 SYS_SETRLIMIT = 164
174 SYS_GETRUSAGE = 165
175 SYS_UMASK = 166
176 SYS_PRCTL = 167
177 SYS_GETCPU = 168
178 SYS_GETTIMEOFDAY = 169
179 SYS_SETTIMEOFDAY = 170
180 SYS_ADJTIMEX = 171
181 SYS_GETPID = 172
182 SYS_GETPPID = 173
183 SYS_GETUID = 174
184 SYS_GETEUID = 175
185 SYS_GETGID = 176
186 SYS_GETEGID = 177
187 SYS_GETTID = 178
188 SYS_SYSINFO = 179
189 SYS_MQ_OPEN = 180
190 SYS_MQ_UNLINK = 181
191 SYS_MQ_TIMEDSEND = 182
192 SYS_MQ_TIMEDRECEIVE = 183
193 SYS_MQ_NOTIFY = 184
194 SYS_MQ_GETSETATTR = 185
195 SYS_MSGGET = 186
196 SYS_MSGCTL = 187
197 SYS_MSGRCV = 188
198 SYS_MSGSND = 189
199 SYS_SEMGET = 190
200 SYS_SEMCTL = 191
201 SYS_SEMTIMEDOP = 192
202 SYS_SEMOP = 193
203 SYS_SHMGET = 194
204 SYS_SHMCTL = 195
205 SYS_SHMAT = 196
206 SYS_SHMDT = 197
207 SYS_SOCKET = 198
208 SYS_SOCKETPAIR = 199
209 SYS_BIND = 200
210 SYS_LISTEN = 201
211 SYS_ACCEPT = 202
212 SYS_CONNECT = 203
213 SYS_GETSOCKNAME = 204
214 SYS_GETPEERNAME = 205
215 SYS_SENDTO = 206
216 SYS_RECVFROM = 207
217 SYS_SETSOCKOPT = 208
218 SYS_GETSOCKOPT = 209
219 SYS_SHUTDOWN = 210
220 SYS_SENDMSG = 211
221 SYS_RECVMSG = 212
222 SYS_READAHEAD = 213
223 SYS_BRK = 214
224 SYS_MUNMAP = 215
225 SYS_MREMAP = 216
226 SYS_ADD_KEY = 217
227 SYS_REQUEST_KEY = 218
228 SYS_KEYCTL = 219
229 SYS_CLONE = 220
230 SYS_EXECVE = 221
231 SYS_MMAP = 222
232 SYS_FADVISE64 = 223
233 SYS_SWAPON = 224
234 SYS_SWAPOFF = 225
235 SYS_MPROTECT = 226
236 SYS_MSYNC = 227
237 SYS_MLOCK = 228
238 SYS_MUNLOCK = 229
239 SYS_MLOCKALL = 230
240 SYS_MUNLOCKALL = 231
241 SYS_MINCORE = 232
242 SYS_MADVISE = 233
243 SYS_REMAP_FILE_PAGES = 234
244 SYS_MBIND = 235
245 SYS_GET_MEMPOLICY = 236
246 SYS_SET_MEMPOLICY = 237
247 SYS_MIGRATE_PAGES = 238
248 SYS_MOVE_PAGES = 239
249 SYS_RT_TGSIGQUEUEINFO = 240
250 SYS_PERF_EVENT_OPEN = 241
251 SYS_ACCEPT4 = 242
252 SYS_RECVMMSG = 243
253 SYS_ARCH_SPECIFIC_SYSCALL = 244
254 SYS_WAIT4 = 260
255 SYS_PRLIMIT64 = 261
256 SYS_FANOTIFY_INIT = 262
257 SYS_FANOTIFY_MARK = 263
258 SYS_NAME_TO_HANDLE_AT = 264
259 SYS_OPEN_BY_HANDLE_AT = 265
260 SYS_CLOCK_ADJTIME = 266
261 SYS_SYNCFS = 267
262 SYS_SETNS = 268
263 SYS_SENDMMSG = 269
264 SYS_PROCESS_VM_READV = 270
265 SYS_PROCESS_VM_WRITEV = 271
266 SYS_KCMP = 272
267 SYS_FINIT_MODULE = 273
268 SYS_SCHED_SETATTR = 274
269 SYS_SCHED_GETATTR = 275
270 SYS_RENAMEAT2 = 276
271 SYS_SECCOMP = 277
272)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
deleted file mode 100644
index e1b08f0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
+++ /dev/null
@@ -1,360 +0,0 @@
1// mksysnum_linux.pl /usr/include/asm/unistd.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build ppc64,linux
5
6package unix
7
8const (
9 SYS_RESTART_SYSCALL = 0
10 SYS_EXIT = 1
11 SYS_FORK = 2
12 SYS_READ = 3
13 SYS_WRITE = 4
14 SYS_OPEN = 5
15 SYS_CLOSE = 6
16 SYS_WAITPID = 7
17 SYS_CREAT = 8
18 SYS_LINK = 9
19 SYS_UNLINK = 10
20 SYS_EXECVE = 11
21 SYS_CHDIR = 12
22 SYS_TIME = 13
23 SYS_MKNOD = 14
24 SYS_CHMOD = 15
25 SYS_LCHOWN = 16
26 SYS_BREAK = 17
27 SYS_OLDSTAT = 18
28 SYS_LSEEK = 19
29 SYS_GETPID = 20
30 SYS_MOUNT = 21
31 SYS_UMOUNT = 22
32 SYS_SETUID = 23
33 SYS_GETUID = 24
34 SYS_STIME = 25
35 SYS_PTRACE = 26
36 SYS_ALARM = 27
37 SYS_OLDFSTAT = 28
38 SYS_PAUSE = 29
39 SYS_UTIME = 30
40 SYS_STTY = 31
41 SYS_GTTY = 32
42 SYS_ACCESS = 33
43 SYS_NICE = 34
44 SYS_FTIME = 35
45 SYS_SYNC = 36
46 SYS_KILL = 37
47 SYS_RENAME = 38
48 SYS_MKDIR = 39
49 SYS_RMDIR = 40
50 SYS_DUP = 41
51 SYS_PIPE = 42
52 SYS_TIMES = 43
53 SYS_PROF = 44
54 SYS_BRK = 45
55 SYS_SETGID = 46
56 SYS_GETGID = 47
57 SYS_SIGNAL = 48
58 SYS_GETEUID = 49
59 SYS_GETEGID = 50
60 SYS_ACCT = 51
61 SYS_UMOUNT2 = 52
62 SYS_LOCK = 53
63 SYS_IOCTL = 54
64 SYS_FCNTL = 55
65 SYS_MPX = 56
66 SYS_SETPGID = 57
67 SYS_ULIMIT = 58
68 SYS_OLDOLDUNAME = 59
69 SYS_UMASK = 60
70 SYS_CHROOT = 61
71 SYS_USTAT = 62
72 SYS_DUP2 = 63
73 SYS_GETPPID = 64
74 SYS_GETPGRP = 65
75 SYS_SETSID = 66
76 SYS_SIGACTION = 67
77 SYS_SGETMASK = 68
78 SYS_SSETMASK = 69
79 SYS_SETREUID = 70
80 SYS_SETREGID = 71
81 SYS_SIGSUSPEND = 72
82 SYS_SIGPENDING = 73
83 SYS_SETHOSTNAME = 74
84 SYS_SETRLIMIT = 75
85 SYS_GETRLIMIT = 76
86 SYS_GETRUSAGE = 77
87 SYS_GETTIMEOFDAY = 78
88 SYS_SETTIMEOFDAY = 79
89 SYS_GETGROUPS = 80
90 SYS_SETGROUPS = 81
91 SYS_SELECT = 82
92 SYS_SYMLINK = 83
93 SYS_OLDLSTAT = 84
94 SYS_READLINK = 85
95 SYS_USELIB = 86
96 SYS_SWAPON = 87
97 SYS_REBOOT = 88
98 SYS_READDIR = 89
99 SYS_MMAP = 90
100 SYS_MUNMAP = 91
101 SYS_TRUNCATE = 92
102 SYS_FTRUNCATE = 93
103 SYS_FCHMOD = 94
104 SYS_FCHOWN = 95
105 SYS_GETPRIORITY = 96
106 SYS_SETPRIORITY = 97
107 SYS_PROFIL = 98
108 SYS_STATFS = 99
109 SYS_FSTATFS = 100
110 SYS_IOPERM = 101
111 SYS_SOCKETCALL = 102
112 SYS_SYSLOG = 103
113 SYS_SETITIMER = 104
114 SYS_GETITIMER = 105
115 SYS_STAT = 106
116 SYS_LSTAT = 107
117 SYS_FSTAT = 108
118 SYS_OLDUNAME = 109
119 SYS_IOPL = 110
120 SYS_VHANGUP = 111
121 SYS_IDLE = 112
122 SYS_VM86 = 113
123 SYS_WAIT4 = 114
124 SYS_SWAPOFF = 115
125 SYS_SYSINFO = 116
126 SYS_IPC = 117
127 SYS_FSYNC = 118
128 SYS_SIGRETURN = 119
129 SYS_CLONE = 120
130 SYS_SETDOMAINNAME = 121
131 SYS_UNAME = 122
132 SYS_MODIFY_LDT = 123
133 SYS_ADJTIMEX = 124
134 SYS_MPROTECT = 125
135 SYS_SIGPROCMASK = 126
136 SYS_CREATE_MODULE = 127
137 SYS_INIT_MODULE = 128
138 SYS_DELETE_MODULE = 129
139 SYS_GET_KERNEL_SYMS = 130
140 SYS_QUOTACTL = 131
141 SYS_GETPGID = 132
142 SYS_FCHDIR = 133
143 SYS_BDFLUSH = 134
144 SYS_SYSFS = 135
145 SYS_PERSONALITY = 136
146 SYS_AFS_SYSCALL = 137
147 SYS_SETFSUID = 138
148 SYS_SETFSGID = 139
149 SYS__LLSEEK = 140
150 SYS_GETDENTS = 141
151 SYS__NEWSELECT = 142
152 SYS_FLOCK = 143
153 SYS_MSYNC = 144
154 SYS_READV = 145
155 SYS_WRITEV = 146
156 SYS_GETSID = 147
157 SYS_FDATASYNC = 148
158 SYS__SYSCTL = 149
159 SYS_MLOCK = 150
160 SYS_MUNLOCK = 151
161 SYS_MLOCKALL = 152
162 SYS_MUNLOCKALL = 153
163 SYS_SCHED_SETPARAM = 154
164 SYS_SCHED_GETPARAM = 155
165 SYS_SCHED_SETSCHEDULER = 156
166 SYS_SCHED_GETSCHEDULER = 157
167 SYS_SCHED_YIELD = 158
168 SYS_SCHED_GET_PRIORITY_MAX = 159
169 SYS_SCHED_GET_PRIORITY_MIN = 160
170 SYS_SCHED_RR_GET_INTERVAL = 161
171 SYS_NANOSLEEP = 162
172 SYS_MREMAP = 163
173 SYS_SETRESUID = 164
174 SYS_GETRESUID = 165
175 SYS_QUERY_MODULE = 166
176 SYS_POLL = 167
177 SYS_NFSSERVCTL = 168
178 SYS_SETRESGID = 169
179 SYS_GETRESGID = 170
180 SYS_PRCTL = 171
181 SYS_RT_SIGRETURN = 172
182 SYS_RT_SIGACTION = 173
183 SYS_RT_SIGPROCMASK = 174
184 SYS_RT_SIGPENDING = 175
185 SYS_RT_SIGTIMEDWAIT = 176
186 SYS_RT_SIGQUEUEINFO = 177
187 SYS_RT_SIGSUSPEND = 178
188 SYS_PREAD64 = 179
189 SYS_PWRITE64 = 180
190 SYS_CHOWN = 181
191 SYS_GETCWD = 182
192 SYS_CAPGET = 183
193 SYS_CAPSET = 184
194 SYS_SIGALTSTACK = 185
195 SYS_SENDFILE = 186
196 SYS_GETPMSG = 187
197 SYS_PUTPMSG = 188
198 SYS_VFORK = 189
199 SYS_UGETRLIMIT = 190
200 SYS_READAHEAD = 191
201 SYS_PCICONFIG_READ = 198
202 SYS_PCICONFIG_WRITE = 199
203 SYS_PCICONFIG_IOBASE = 200
204 SYS_MULTIPLEXER = 201
205 SYS_GETDENTS64 = 202
206 SYS_PIVOT_ROOT = 203
207 SYS_MADVISE = 205
208 SYS_MINCORE = 206
209 SYS_GETTID = 207
210 SYS_TKILL = 208
211 SYS_SETXATTR = 209
212 SYS_LSETXATTR = 210
213 SYS_FSETXATTR = 211
214 SYS_GETXATTR = 212
215 SYS_LGETXATTR = 213
216 SYS_FGETXATTR = 214
217 SYS_LISTXATTR = 215
218 SYS_LLISTXATTR = 216
219 SYS_FLISTXATTR = 217
220 SYS_REMOVEXATTR = 218
221 SYS_LREMOVEXATTR = 219
222 SYS_FREMOVEXATTR = 220
223 SYS_FUTEX = 221
224 SYS_SCHED_SETAFFINITY = 222
225 SYS_SCHED_GETAFFINITY = 223
226 SYS_TUXCALL = 225
227 SYS_IO_SETUP = 227
228 SYS_IO_DESTROY = 228
229 SYS_IO_GETEVENTS = 229
230 SYS_IO_SUBMIT = 230
231 SYS_IO_CANCEL = 231
232 SYS_SET_TID_ADDRESS = 232
233 SYS_FADVISE64 = 233
234 SYS_EXIT_GROUP = 234
235 SYS_LOOKUP_DCOOKIE = 235
236 SYS_EPOLL_CREATE = 236
237 SYS_EPOLL_CTL = 237
238 SYS_EPOLL_WAIT = 238
239 SYS_REMAP_FILE_PAGES = 239
240 SYS_TIMER_CREATE = 240
241 SYS_TIMER_SETTIME = 241
242 SYS_TIMER_GETTIME = 242
243 SYS_TIMER_GETOVERRUN = 243
244 SYS_TIMER_DELETE = 244
245 SYS_CLOCK_SETTIME = 245
246 SYS_CLOCK_GETTIME = 246
247 SYS_CLOCK_GETRES = 247
248 SYS_CLOCK_NANOSLEEP = 248
249 SYS_SWAPCONTEXT = 249
250 SYS_TGKILL = 250
251 SYS_UTIMES = 251
252 SYS_STATFS64 = 252
253 SYS_FSTATFS64 = 253
254 SYS_RTAS = 255
255 SYS_SYS_DEBUG_SETCONTEXT = 256
256 SYS_MIGRATE_PAGES = 258
257 SYS_MBIND = 259
258 SYS_GET_MEMPOLICY = 260
259 SYS_SET_MEMPOLICY = 261
260 SYS_MQ_OPEN = 262
261 SYS_MQ_UNLINK = 263
262 SYS_MQ_TIMEDSEND = 264
263 SYS_MQ_TIMEDRECEIVE = 265
264 SYS_MQ_NOTIFY = 266
265 SYS_MQ_GETSETATTR = 267
266 SYS_KEXEC_LOAD = 268
267 SYS_ADD_KEY = 269
268 SYS_REQUEST_KEY = 270
269 SYS_KEYCTL = 271
270 SYS_WAITID = 272
271 SYS_IOPRIO_SET = 273
272 SYS_IOPRIO_GET = 274
273 SYS_INOTIFY_INIT = 275
274 SYS_INOTIFY_ADD_WATCH = 276
275 SYS_INOTIFY_RM_WATCH = 277
276 SYS_SPU_RUN = 278
277 SYS_SPU_CREATE = 279
278 SYS_PSELECT6 = 280
279 SYS_PPOLL = 281
280 SYS_UNSHARE = 282
281 SYS_SPLICE = 283
282 SYS_TEE = 284
283 SYS_VMSPLICE = 285
284 SYS_OPENAT = 286
285 SYS_MKDIRAT = 287
286 SYS_MKNODAT = 288
287 SYS_FCHOWNAT = 289
288 SYS_FUTIMESAT = 290
289 SYS_NEWFSTATAT = 291
290 SYS_UNLINKAT = 292
291 SYS_RENAMEAT = 293
292 SYS_LINKAT = 294
293 SYS_SYMLINKAT = 295
294 SYS_READLINKAT = 296
295 SYS_FCHMODAT = 297
296 SYS_FACCESSAT = 298
297 SYS_GET_ROBUST_LIST = 299
298 SYS_SET_ROBUST_LIST = 300
299 SYS_MOVE_PAGES = 301
300 SYS_GETCPU = 302
301 SYS_EPOLL_PWAIT = 303
302 SYS_UTIMENSAT = 304
303 SYS_SIGNALFD = 305
304 SYS_TIMERFD_CREATE = 306
305 SYS_EVENTFD = 307
306 SYS_SYNC_FILE_RANGE2 = 308
307 SYS_FALLOCATE = 309
308 SYS_SUBPAGE_PROT = 310
309 SYS_TIMERFD_SETTIME = 311
310 SYS_TIMERFD_GETTIME = 312
311 SYS_SIGNALFD4 = 313
312 SYS_EVENTFD2 = 314
313 SYS_EPOLL_CREATE1 = 315
314 SYS_DUP3 = 316
315 SYS_PIPE2 = 317
316 SYS_INOTIFY_INIT1 = 318
317 SYS_PERF_EVENT_OPEN = 319
318 SYS_PREADV = 320
319 SYS_PWRITEV = 321
320 SYS_RT_TGSIGQUEUEINFO = 322
321 SYS_FANOTIFY_INIT = 323
322 SYS_FANOTIFY_MARK = 324
323 SYS_PRLIMIT64 = 325
324 SYS_SOCKET = 326
325 SYS_BIND = 327
326 SYS_CONNECT = 328
327 SYS_LISTEN = 329
328 SYS_ACCEPT = 330
329 SYS_GETSOCKNAME = 331
330 SYS_GETPEERNAME = 332
331 SYS_SOCKETPAIR = 333
332 SYS_SEND = 334
333 SYS_SENDTO = 335
334 SYS_RECV = 336
335 SYS_RECVFROM = 337
336 SYS_SHUTDOWN = 338
337 SYS_SETSOCKOPT = 339
338 SYS_GETSOCKOPT = 340
339 SYS_SENDMSG = 341
340 SYS_RECVMSG = 342
341 SYS_RECVMMSG = 343
342 SYS_ACCEPT4 = 344
343 SYS_NAME_TO_HANDLE_AT = 345
344 SYS_OPEN_BY_HANDLE_AT = 346
345 SYS_CLOCK_ADJTIME = 347
346 SYS_SYNCFS = 348
347 SYS_SENDMMSG = 349
348 SYS_SETNS = 350
349 SYS_PROCESS_VM_READV = 351
350 SYS_PROCESS_VM_WRITEV = 352
351 SYS_FINIT_MODULE = 353
352 SYS_KCMP = 354
353 SYS_SCHED_SETATTR = 355
354 SYS_SCHED_GETATTR = 356
355 SYS_RENAMEAT2 = 357
356 SYS_SECCOMP = 358
357 SYS_GETRANDOM = 359
358 SYS_MEMFD_CREATE = 360
359 SYS_BPF = 361
360)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
deleted file mode 100644
index 45e63f5..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
+++ /dev/null
@@ -1,353 +0,0 @@
1// mksysnum_linux.pl /usr/include/powerpc64le-linux-gnu/asm/unistd.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build ppc64le,linux
5
6package unix
7
8const (
9 SYS_RESTART_SYSCALL = 0
10 SYS_EXIT = 1
11 SYS_FORK = 2
12 SYS_READ = 3
13 SYS_WRITE = 4
14 SYS_OPEN = 5
15 SYS_CLOSE = 6
16 SYS_WAITPID = 7
17 SYS_CREAT = 8
18 SYS_LINK = 9
19 SYS_UNLINK = 10
20 SYS_EXECVE = 11
21 SYS_CHDIR = 12
22 SYS_TIME = 13
23 SYS_MKNOD = 14
24 SYS_CHMOD = 15
25 SYS_LCHOWN = 16
26 SYS_BREAK = 17
27 SYS_OLDSTAT = 18
28 SYS_LSEEK = 19
29 SYS_GETPID = 20
30 SYS_MOUNT = 21
31 SYS_UMOUNT = 22
32 SYS_SETUID = 23
33 SYS_GETUID = 24
34 SYS_STIME = 25
35 SYS_PTRACE = 26
36 SYS_ALARM = 27
37 SYS_OLDFSTAT = 28
38 SYS_PAUSE = 29
39 SYS_UTIME = 30
40 SYS_STTY = 31
41 SYS_GTTY = 32
42 SYS_ACCESS = 33
43 SYS_NICE = 34
44 SYS_FTIME = 35
45 SYS_SYNC = 36
46 SYS_KILL = 37
47 SYS_RENAME = 38
48 SYS_MKDIR = 39
49 SYS_RMDIR = 40
50 SYS_DUP = 41
51 SYS_PIPE = 42
52 SYS_TIMES = 43
53 SYS_PROF = 44
54 SYS_BRK = 45
55 SYS_SETGID = 46
56 SYS_GETGID = 47
57 SYS_SIGNAL = 48
58 SYS_GETEUID = 49
59 SYS_GETEGID = 50
60 SYS_ACCT = 51
61 SYS_UMOUNT2 = 52
62 SYS_LOCK = 53
63 SYS_IOCTL = 54
64 SYS_FCNTL = 55
65 SYS_MPX = 56
66 SYS_SETPGID = 57
67 SYS_ULIMIT = 58
68 SYS_OLDOLDUNAME = 59
69 SYS_UMASK = 60
70 SYS_CHROOT = 61
71 SYS_USTAT = 62
72 SYS_DUP2 = 63
73 SYS_GETPPID = 64
74 SYS_GETPGRP = 65
75 SYS_SETSID = 66
76 SYS_SIGACTION = 67
77 SYS_SGETMASK = 68
78 SYS_SSETMASK = 69
79 SYS_SETREUID = 70
80 SYS_SETREGID = 71
81 SYS_SIGSUSPEND = 72
82 SYS_SIGPENDING = 73
83 SYS_SETHOSTNAME = 74
84 SYS_SETRLIMIT = 75
85 SYS_GETRLIMIT = 76
86 SYS_GETRUSAGE = 77
87 SYS_GETTIMEOFDAY = 78
88 SYS_SETTIMEOFDAY = 79
89 SYS_GETGROUPS = 80
90 SYS_SETGROUPS = 81
91 SYS_SELECT = 82
92 SYS_SYMLINK = 83
93 SYS_OLDLSTAT = 84
94 SYS_READLINK = 85
95 SYS_USELIB = 86
96 SYS_SWAPON = 87
97 SYS_REBOOT = 88
98 SYS_READDIR = 89
99 SYS_MMAP = 90
100 SYS_MUNMAP = 91
101 SYS_TRUNCATE = 92
102 SYS_FTRUNCATE = 93
103 SYS_FCHMOD = 94
104 SYS_FCHOWN = 95
105 SYS_GETPRIORITY = 96
106 SYS_SETPRIORITY = 97
107 SYS_PROFIL = 98
108 SYS_STATFS = 99
109 SYS_FSTATFS = 100
110 SYS_IOPERM = 101
111 SYS_SOCKETCALL = 102
112 SYS_SYSLOG = 103
113 SYS_SETITIMER = 104
114 SYS_GETITIMER = 105
115 SYS_STAT = 106
116 SYS_LSTAT = 107
117 SYS_FSTAT = 108
118 SYS_OLDUNAME = 109
119 SYS_IOPL = 110
120 SYS_VHANGUP = 111
121 SYS_IDLE = 112
122 SYS_VM86 = 113
123 SYS_WAIT4 = 114
124 SYS_SWAPOFF = 115
125 SYS_SYSINFO = 116
126 SYS_IPC = 117
127 SYS_FSYNC = 118
128 SYS_SIGRETURN = 119
129 SYS_CLONE = 120
130 SYS_SETDOMAINNAME = 121
131 SYS_UNAME = 122
132 SYS_MODIFY_LDT = 123
133 SYS_ADJTIMEX = 124
134 SYS_MPROTECT = 125
135 SYS_SIGPROCMASK = 126
136 SYS_CREATE_MODULE = 127
137 SYS_INIT_MODULE = 128
138 SYS_DELETE_MODULE = 129
139 SYS_GET_KERNEL_SYMS = 130
140 SYS_QUOTACTL = 131
141 SYS_GETPGID = 132
142 SYS_FCHDIR = 133
143 SYS_BDFLUSH = 134
144 SYS_SYSFS = 135
145 SYS_PERSONALITY = 136
146 SYS_AFS_SYSCALL = 137
147 SYS_SETFSUID = 138
148 SYS_SETFSGID = 139
149 SYS__LLSEEK = 140
150 SYS_GETDENTS = 141
151 SYS__NEWSELECT = 142
152 SYS_FLOCK = 143
153 SYS_MSYNC = 144
154 SYS_READV = 145
155 SYS_WRITEV = 146
156 SYS_GETSID = 147
157 SYS_FDATASYNC = 148
158 SYS__SYSCTL = 149
159 SYS_MLOCK = 150
160 SYS_MUNLOCK = 151
161 SYS_MLOCKALL = 152
162 SYS_MUNLOCKALL = 153
163 SYS_SCHED_SETPARAM = 154
164 SYS_SCHED_GETPARAM = 155
165 SYS_SCHED_SETSCHEDULER = 156
166 SYS_SCHED_GETSCHEDULER = 157
167 SYS_SCHED_YIELD = 158
168 SYS_SCHED_GET_PRIORITY_MAX = 159
169 SYS_SCHED_GET_PRIORITY_MIN = 160
170 SYS_SCHED_RR_GET_INTERVAL = 161
171 SYS_NANOSLEEP = 162
172 SYS_MREMAP = 163
173 SYS_SETRESUID = 164
174 SYS_GETRESUID = 165
175 SYS_QUERY_MODULE = 166
176 SYS_POLL = 167
177 SYS_NFSSERVCTL = 168
178 SYS_SETRESGID = 169
179 SYS_GETRESGID = 170
180 SYS_PRCTL = 171
181 SYS_RT_SIGRETURN = 172
182 SYS_RT_SIGACTION = 173
183 SYS_RT_SIGPROCMASK = 174
184 SYS_RT_SIGPENDING = 175
185 SYS_RT_SIGTIMEDWAIT = 176
186 SYS_RT_SIGQUEUEINFO = 177
187 SYS_RT_SIGSUSPEND = 178
188 SYS_PREAD64 = 179
189 SYS_PWRITE64 = 180
190 SYS_CHOWN = 181
191 SYS_GETCWD = 182
192 SYS_CAPGET = 183
193 SYS_CAPSET = 184
194 SYS_SIGALTSTACK = 185
195 SYS_SENDFILE = 186
196 SYS_GETPMSG = 187
197 SYS_PUTPMSG = 188
198 SYS_VFORK = 189
199 SYS_UGETRLIMIT = 190
200 SYS_READAHEAD = 191
201 SYS_PCICONFIG_READ = 198
202 SYS_PCICONFIG_WRITE = 199
203 SYS_PCICONFIG_IOBASE = 200
204 SYS_MULTIPLEXER = 201
205 SYS_GETDENTS64 = 202
206 SYS_PIVOT_ROOT = 203
207 SYS_MADVISE = 205
208 SYS_MINCORE = 206
209 SYS_GETTID = 207
210 SYS_TKILL = 208
211 SYS_SETXATTR = 209
212 SYS_LSETXATTR = 210
213 SYS_FSETXATTR = 211
214 SYS_GETXATTR = 212
215 SYS_LGETXATTR = 213
216 SYS_FGETXATTR = 214
217 SYS_LISTXATTR = 215
218 SYS_LLISTXATTR = 216
219 SYS_FLISTXATTR = 217
220 SYS_REMOVEXATTR = 218
221 SYS_LREMOVEXATTR = 219
222 SYS_FREMOVEXATTR = 220
223 SYS_FUTEX = 221
224 SYS_SCHED_SETAFFINITY = 222
225 SYS_SCHED_GETAFFINITY = 223
226 SYS_TUXCALL = 225
227 SYS_IO_SETUP = 227
228 SYS_IO_DESTROY = 228
229 SYS_IO_GETEVENTS = 229
230 SYS_IO_SUBMIT = 230
231 SYS_IO_CANCEL = 231
232 SYS_SET_TID_ADDRESS = 232
233 SYS_FADVISE64 = 233
234 SYS_EXIT_GROUP = 234
235 SYS_LOOKUP_DCOOKIE = 235
236 SYS_EPOLL_CREATE = 236
237 SYS_EPOLL_CTL = 237
238 SYS_EPOLL_WAIT = 238
239 SYS_REMAP_FILE_PAGES = 239
240 SYS_TIMER_CREATE = 240
241 SYS_TIMER_SETTIME = 241
242 SYS_TIMER_GETTIME = 242
243 SYS_TIMER_GETOVERRUN = 243
244 SYS_TIMER_DELETE = 244
245 SYS_CLOCK_SETTIME = 245
246 SYS_CLOCK_GETTIME = 246
247 SYS_CLOCK_GETRES = 247
248 SYS_CLOCK_NANOSLEEP = 248
249 SYS_SWAPCONTEXT = 249
250 SYS_TGKILL = 250
251 SYS_UTIMES = 251
252 SYS_STATFS64 = 252
253 SYS_FSTATFS64 = 253
254 SYS_RTAS = 255
255 SYS_SYS_DEBUG_SETCONTEXT = 256
256 SYS_MIGRATE_PAGES = 258
257 SYS_MBIND = 259
258 SYS_GET_MEMPOLICY = 260
259 SYS_SET_MEMPOLICY = 261
260 SYS_MQ_OPEN = 262
261 SYS_MQ_UNLINK = 263
262 SYS_MQ_TIMEDSEND = 264
263 SYS_MQ_TIMEDRECEIVE = 265
264 SYS_MQ_NOTIFY = 266
265 SYS_MQ_GETSETATTR = 267
266 SYS_KEXEC_LOAD = 268
267 SYS_ADD_KEY = 269
268 SYS_REQUEST_KEY = 270
269 SYS_KEYCTL = 271
270 SYS_WAITID = 272
271 SYS_IOPRIO_SET = 273
272 SYS_IOPRIO_GET = 274
273 SYS_INOTIFY_INIT = 275
274 SYS_INOTIFY_ADD_WATCH = 276
275 SYS_INOTIFY_RM_WATCH = 277
276 SYS_SPU_RUN = 278
277 SYS_SPU_CREATE = 279
278 SYS_PSELECT6 = 280
279 SYS_PPOLL = 281
280 SYS_UNSHARE = 282
281 SYS_SPLICE = 283
282 SYS_TEE = 284
283 SYS_VMSPLICE = 285
284 SYS_OPENAT = 286
285 SYS_MKDIRAT = 287
286 SYS_MKNODAT = 288
287 SYS_FCHOWNAT = 289
288 SYS_FUTIMESAT = 290
289 SYS_NEWFSTATAT = 291
290 SYS_UNLINKAT = 292
291 SYS_RENAMEAT = 293
292 SYS_LINKAT = 294
293 SYS_SYMLINKAT = 295
294 SYS_READLINKAT = 296
295 SYS_FCHMODAT = 297
296 SYS_FACCESSAT = 298
297 SYS_GET_ROBUST_LIST = 299
298 SYS_SET_ROBUST_LIST = 300
299 SYS_MOVE_PAGES = 301
300 SYS_GETCPU = 302
301 SYS_EPOLL_PWAIT = 303
302 SYS_UTIMENSAT = 304
303 SYS_SIGNALFD = 305
304 SYS_TIMERFD_CREATE = 306
305 SYS_EVENTFD = 307
306 SYS_SYNC_FILE_RANGE2 = 308
307 SYS_FALLOCATE = 309
308 SYS_SUBPAGE_PROT = 310
309 SYS_TIMERFD_SETTIME = 311
310 SYS_TIMERFD_GETTIME = 312
311 SYS_SIGNALFD4 = 313
312 SYS_EVENTFD2 = 314
313 SYS_EPOLL_CREATE1 = 315
314 SYS_DUP3 = 316
315 SYS_PIPE2 = 317
316 SYS_INOTIFY_INIT1 = 318
317 SYS_PERF_EVENT_OPEN = 319
318 SYS_PREADV = 320
319 SYS_PWRITEV = 321
320 SYS_RT_TGSIGQUEUEINFO = 322
321 SYS_FANOTIFY_INIT = 323
322 SYS_FANOTIFY_MARK = 324
323 SYS_PRLIMIT64 = 325
324 SYS_SOCKET = 326
325 SYS_BIND = 327
326 SYS_CONNECT = 328
327 SYS_LISTEN = 329
328 SYS_ACCEPT = 330
329 SYS_GETSOCKNAME = 331
330 SYS_GETPEERNAME = 332
331 SYS_SOCKETPAIR = 333
332 SYS_SEND = 334
333 SYS_SENDTO = 335
334 SYS_RECV = 336
335 SYS_RECVFROM = 337
336 SYS_SHUTDOWN = 338
337 SYS_SETSOCKOPT = 339
338 SYS_GETSOCKOPT = 340
339 SYS_SENDMSG = 341
340 SYS_RECVMSG = 342
341 SYS_RECVMMSG = 343
342 SYS_ACCEPT4 = 344
343 SYS_NAME_TO_HANDLE_AT = 345
344 SYS_OPEN_BY_HANDLE_AT = 346
345 SYS_CLOCK_ADJTIME = 347
346 SYS_SYNCFS = 348
347 SYS_SENDMMSG = 349
348 SYS_SETNS = 350
349 SYS_PROCESS_VM_READV = 351
350 SYS_PROCESS_VM_WRITEV = 352
351 SYS_FINIT_MODULE = 353
352 SYS_KCMP = 354
353)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_386.go
deleted file mode 100644
index f60d8f9..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_386.go
+++ /dev/null
@@ -1,273 +0,0 @@
1// mksysnum_netbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build 386,netbsd
5
6package unix
7
8const (
9 SYS_EXIT = 1 // { void|sys||exit(int rval); }
10 SYS_FORK = 2 // { int|sys||fork(void); }
11 SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
12 SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); }
13 SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); }
14 SYS_CLOSE = 6 // { int|sys||close(int fd); }
15 SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); }
16 SYS_UNLINK = 10 // { int|sys||unlink(const char *path); }
17 SYS_CHDIR = 12 // { int|sys||chdir(const char *path); }
18 SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); }
19 SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); }
20 SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); }
21 SYS_BREAK = 17 // { int|sys||obreak(char *nsize); }
22 SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); }
23 SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); }
24 SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); }
25 SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); }
26 SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); }
27 SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); }
28 SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); }
29 SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); }
30 SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); }
31 SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); }
32 SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); }
33 SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); }
34 SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); }
35 SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); }
36 SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); }
37 SYS_SYNC = 36 // { void|sys||sync(void); }
38 SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); }
39 SYS_GETPPID = 39 // { pid_t|sys||getppid(void); }
40 SYS_DUP = 41 // { int|sys||dup(int fd); }
41 SYS_PIPE = 42 // { int|sys||pipe(void); }
42 SYS_GETEGID = 43 // { gid_t|sys||getegid(void); }
43 SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); }
44 SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); }
45 SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); }
46 SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); }
47 SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); }
48 SYS_ACCT = 51 // { int|sys||acct(const char *path); }
49 SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); }
50 SYS_REVOKE = 56 // { int|sys||revoke(const char *path); }
51 SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); }
52 SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); }
53 SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); }
54 SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); }
55 SYS_CHROOT = 61 // { int|sys||chroot(const char *path); }
56 SYS_VFORK = 66 // { int|sys||vfork(void); }
57 SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); }
58 SYS_SSTK = 70 // { int|sys||sstk(int incr); }
59 SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); }
60 SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); }
61 SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); }
62 SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); }
63 SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); }
64 SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); }
65 SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); }
66 SYS_GETPGRP = 81 // { int|sys||getpgrp(void); }
67 SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); }
68 SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); }
69 SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); }
70 SYS_FSYNC = 95 // { int|sys||fsync(int fd); }
71 SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); }
72 SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); }
73 SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); }
74 SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); }
75 SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); }
76 SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); }
77 SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); }
78 SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); }
79 SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); }
80 SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); }
81 SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); }
82 SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); }
83 SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); }
84 SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); }
85 SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); }
86 SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); }
87 SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); }
88 SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); }
89 SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); }
90 SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); }
91 SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); }
92 SYS_SETSID = 147 // { int|sys||setsid(void); }
93 SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); }
94 SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); }
95 SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); }
96 SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); }
97 SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); }
98 SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); }
99 SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); }
100 SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); }
101 SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); }
102 SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); }
103 SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); }
104 SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); }
105 SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); }
106 SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); }
107 SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); }
108 SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); }
109 SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); }
110 SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); }
111 SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); }
112 SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); }
113 SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); }
114 SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); }
115 SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); }
116 SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); }
117 SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); }
118 SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); }
119 SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); }
120 SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
121 SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); }
122 SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); }
123 SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); }
124 SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); }
125 SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); }
126 SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); }
127 SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); }
128 SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); }
129 SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); }
130 SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); }
131 SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); }
132 SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); }
133 SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); }
134 SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); }
135 SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); }
136 SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); }
137 SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); }
138 SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); }
139 SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); }
140 SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); }
141 SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); }
142 SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); }
143 SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); }
144 SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); }
145 SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); }
146 SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); }
147 SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); }
148 SYS_ISSETUGID = 305 // { int|sys||issetugid(void); }
149 SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); }
150 SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); }
151 SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); }
152 SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); }
153 SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); }
154 SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); }
155 SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); }
156 SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); }
157 SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); }
158 SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); }
159 SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); }
160 SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); }
161 SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); }
162 SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); }
163 SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
164 SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); }
165 SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); }
166 SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); }
167 SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); }
168 SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); }
169 SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); }
170 SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); }
171 SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); }
172 SYS_KQUEUE = 344 // { int|sys||kqueue(void); }
173 SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); }
174 SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); }
175 SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); }
176 SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); }
177 SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); }
178 SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); }
179 SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); }
180 SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); }
181 SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); }
182 SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); }
183 SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); }
184 SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); }
185 SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
186 SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); }
187 SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); }
188 SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
189 SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); }
190 SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); }
191 SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
192 SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); }
193 SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); }
194 SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); }
195 SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); }
196 SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); }
197 SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); }
198 SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); }
199 SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); }
200 SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); }
201 SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); }
202 SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); }
203 SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); }
204 SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); }
205 SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); }
206 SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); }
207 SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); }
208 SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); }
209 SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); }
210 SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); }
211 SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); }
212 SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); }
213 SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); }
214 SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); }
215 SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); }
216 SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); }
217 SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); }
218 SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); }
219 SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); }
220 SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); }
221 SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); }
222 SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); }
223 SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); }
224 SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); }
225 SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); }
226 SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); }
227 SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); }
228 SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); }
229 SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); }
230 SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); }
231 SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); }
232 SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); }
233 SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); }
234 SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); }
235 SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); }
236 SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); }
237 SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); }
238 SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); }
239 SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); }
240 SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); }
241 SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); }
242 SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); }
243 SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); }
244 SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); }
245 SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); }
246 SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); }
247 SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); }
248 SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); }
249 SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); }
250 SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); }
251 SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); }
252 SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); }
253 SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); }
254 SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); }
255 SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); }
256 SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); }
257 SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); }
258 SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); }
259 SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); }
260 SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); }
261 SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); }
262 SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); }
263 SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); }
264 SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); }
265 SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); }
266 SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); }
267 SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); }
268 SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); }
269 SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); }
270 SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); }
271 SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); }
272 SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); }
273)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go
deleted file mode 100644
index 48a91d4..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go
+++ /dev/null
@@ -1,273 +0,0 @@
1// mksysnum_netbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build amd64,netbsd
5
6package unix
7
8const (
9 SYS_EXIT = 1 // { void|sys||exit(int rval); }
10 SYS_FORK = 2 // { int|sys||fork(void); }
11 SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
12 SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); }
13 SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); }
14 SYS_CLOSE = 6 // { int|sys||close(int fd); }
15 SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); }
16 SYS_UNLINK = 10 // { int|sys||unlink(const char *path); }
17 SYS_CHDIR = 12 // { int|sys||chdir(const char *path); }
18 SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); }
19 SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); }
20 SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); }
21 SYS_BREAK = 17 // { int|sys||obreak(char *nsize); }
22 SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); }
23 SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); }
24 SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); }
25 SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); }
26 SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); }
27 SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); }
28 SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); }
29 SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); }
30 SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); }
31 SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); }
32 SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); }
33 SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); }
34 SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); }
35 SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); }
36 SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); }
37 SYS_SYNC = 36 // { void|sys||sync(void); }
38 SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); }
39 SYS_GETPPID = 39 // { pid_t|sys||getppid(void); }
40 SYS_DUP = 41 // { int|sys||dup(int fd); }
41 SYS_PIPE = 42 // { int|sys||pipe(void); }
42 SYS_GETEGID = 43 // { gid_t|sys||getegid(void); }
43 SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); }
44 SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); }
45 SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); }
46 SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); }
47 SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); }
48 SYS_ACCT = 51 // { int|sys||acct(const char *path); }
49 SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); }
50 SYS_REVOKE = 56 // { int|sys||revoke(const char *path); }
51 SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); }
52 SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); }
53 SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); }
54 SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); }
55 SYS_CHROOT = 61 // { int|sys||chroot(const char *path); }
56 SYS_VFORK = 66 // { int|sys||vfork(void); }
57 SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); }
58 SYS_SSTK = 70 // { int|sys||sstk(int incr); }
59 SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); }
60 SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); }
61 SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); }
62 SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); }
63 SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); }
64 SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); }
65 SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); }
66 SYS_GETPGRP = 81 // { int|sys||getpgrp(void); }
67 SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); }
68 SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); }
69 SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); }
70 SYS_FSYNC = 95 // { int|sys||fsync(int fd); }
71 SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); }
72 SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); }
73 SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); }
74 SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); }
75 SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); }
76 SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); }
77 SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); }
78 SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); }
79 SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); }
80 SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); }
81 SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); }
82 SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); }
83 SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); }
84 SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); }
85 SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); }
86 SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); }
87 SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); }
88 SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); }
89 SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); }
90 SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); }
91 SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); }
92 SYS_SETSID = 147 // { int|sys||setsid(void); }
93 SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); }
94 SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); }
95 SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); }
96 SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); }
97 SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); }
98 SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); }
99 SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); }
100 SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); }
101 SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); }
102 SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); }
103 SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); }
104 SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); }
105 SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); }
106 SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); }
107 SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); }
108 SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); }
109 SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); }
110 SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); }
111 SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); }
112 SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); }
113 SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); }
114 SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); }
115 SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); }
116 SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); }
117 SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); }
118 SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); }
119 SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); }
120 SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
121 SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); }
122 SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); }
123 SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); }
124 SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); }
125 SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); }
126 SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); }
127 SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); }
128 SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); }
129 SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); }
130 SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); }
131 SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); }
132 SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); }
133 SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); }
134 SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); }
135 SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); }
136 SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); }
137 SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); }
138 SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); }
139 SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); }
140 SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); }
141 SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); }
142 SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); }
143 SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); }
144 SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); }
145 SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); }
146 SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); }
147 SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); }
148 SYS_ISSETUGID = 305 // { int|sys||issetugid(void); }
149 SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); }
150 SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); }
151 SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); }
152 SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); }
153 SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); }
154 SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); }
155 SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); }
156 SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); }
157 SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); }
158 SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); }
159 SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); }
160 SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); }
161 SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); }
162 SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); }
163 SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
164 SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); }
165 SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); }
166 SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); }
167 SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); }
168 SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); }
169 SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); }
170 SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); }
171 SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); }
172 SYS_KQUEUE = 344 // { int|sys||kqueue(void); }
173 SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); }
174 SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); }
175 SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); }
176 SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); }
177 SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); }
178 SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); }
179 SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); }
180 SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); }
181 SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); }
182 SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); }
183 SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); }
184 SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); }
185 SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
186 SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); }
187 SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); }
188 SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
189 SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); }
190 SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); }
191 SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
192 SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); }
193 SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); }
194 SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); }
195 SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); }
196 SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); }
197 SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); }
198 SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); }
199 SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); }
200 SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); }
201 SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); }
202 SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); }
203 SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); }
204 SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); }
205 SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); }
206 SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); }
207 SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); }
208 SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); }
209 SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); }
210 SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); }
211 SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); }
212 SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); }
213 SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); }
214 SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); }
215 SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); }
216 SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); }
217 SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); }
218 SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); }
219 SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); }
220 SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); }
221 SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); }
222 SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); }
223 SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); }
224 SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); }
225 SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); }
226 SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); }
227 SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); }
228 SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); }
229 SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); }
230 SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); }
231 SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); }
232 SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); }
233 SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); }
234 SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); }
235 SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); }
236 SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); }
237 SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); }
238 SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); }
239 SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); }
240 SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); }
241 SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); }
242 SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); }
243 SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); }
244 SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); }
245 SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); }
246 SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); }
247 SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); }
248 SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); }
249 SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); }
250 SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); }
251 SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); }
252 SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); }
253 SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); }
254 SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); }
255 SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); }
256 SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); }
257 SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); }
258 SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); }
259 SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); }
260 SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); }
261 SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); }
262 SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); }
263 SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); }
264 SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); }
265 SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); }
266 SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); }
267 SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); }
268 SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); }
269 SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); }
270 SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); }
271 SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); }
272 SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); }
273)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_arm.go
deleted file mode 100644
index 612ba66..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_netbsd_arm.go
+++ /dev/null
@@ -1,273 +0,0 @@
1// mksysnum_netbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build arm,netbsd
5
6package unix
7
8const (
9 SYS_EXIT = 1 // { void|sys||exit(int rval); }
10 SYS_FORK = 2 // { int|sys||fork(void); }
11 SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
12 SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); }
13 SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); }
14 SYS_CLOSE = 6 // { int|sys||close(int fd); }
15 SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); }
16 SYS_UNLINK = 10 // { int|sys||unlink(const char *path); }
17 SYS_CHDIR = 12 // { int|sys||chdir(const char *path); }
18 SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); }
19 SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); }
20 SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); }
21 SYS_BREAK = 17 // { int|sys||obreak(char *nsize); }
22 SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); }
23 SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); }
24 SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); }
25 SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); }
26 SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); }
27 SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); }
28 SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); }
29 SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); }
30 SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); }
31 SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); }
32 SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); }
33 SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); }
34 SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); }
35 SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); }
36 SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); }
37 SYS_SYNC = 36 // { void|sys||sync(void); }
38 SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); }
39 SYS_GETPPID = 39 // { pid_t|sys||getppid(void); }
40 SYS_DUP = 41 // { int|sys||dup(int fd); }
41 SYS_PIPE = 42 // { int|sys||pipe(void); }
42 SYS_GETEGID = 43 // { gid_t|sys||getegid(void); }
43 SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); }
44 SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); }
45 SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); }
46 SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); }
47 SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); }
48 SYS_ACCT = 51 // { int|sys||acct(const char *path); }
49 SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); }
50 SYS_REVOKE = 56 // { int|sys||revoke(const char *path); }
51 SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); }
52 SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); }
53 SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); }
54 SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); }
55 SYS_CHROOT = 61 // { int|sys||chroot(const char *path); }
56 SYS_VFORK = 66 // { int|sys||vfork(void); }
57 SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); }
58 SYS_SSTK = 70 // { int|sys||sstk(int incr); }
59 SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); }
60 SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); }
61 SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); }
62 SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); }
63 SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); }
64 SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); }
65 SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); }
66 SYS_GETPGRP = 81 // { int|sys||getpgrp(void); }
67 SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); }
68 SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); }
69 SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); }
70 SYS_FSYNC = 95 // { int|sys||fsync(int fd); }
71 SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); }
72 SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); }
73 SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); }
74 SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); }
75 SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); }
76 SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); }
77 SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); }
78 SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); }
79 SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); }
80 SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); }
81 SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); }
82 SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); }
83 SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); }
84 SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); }
85 SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); }
86 SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); }
87 SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); }
88 SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); }
89 SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); }
90 SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); }
91 SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); }
92 SYS_SETSID = 147 // { int|sys||setsid(void); }
93 SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); }
94 SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); }
95 SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); }
96 SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); }
97 SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); }
98 SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); }
99 SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); }
100 SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); }
101 SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); }
102 SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); }
103 SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); }
104 SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); }
105 SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); }
106 SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); }
107 SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); }
108 SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); }
109 SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); }
110 SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); }
111 SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); }
112 SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); }
113 SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); }
114 SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); }
115 SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); }
116 SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); }
117 SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); }
118 SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); }
119 SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); }
120 SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
121 SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); }
122 SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); }
123 SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); }
124 SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); }
125 SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); }
126 SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); }
127 SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); }
128 SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); }
129 SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); }
130 SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); }
131 SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); }
132 SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); }
133 SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); }
134 SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); }
135 SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); }
136 SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); }
137 SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); }
138 SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); }
139 SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); }
140 SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); }
141 SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); }
142 SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); }
143 SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); }
144 SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); }
145 SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); }
146 SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); }
147 SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); }
148 SYS_ISSETUGID = 305 // { int|sys||issetugid(void); }
149 SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); }
150 SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); }
151 SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); }
152 SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); }
153 SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); }
154 SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); }
155 SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); }
156 SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); }
157 SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); }
158 SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); }
159 SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); }
160 SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); }
161 SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); }
162 SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); }
163 SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
164 SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); }
165 SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); }
166 SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); }
167 SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); }
168 SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); }
169 SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); }
170 SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); }
171 SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); }
172 SYS_KQUEUE = 344 // { int|sys||kqueue(void); }
173 SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); }
174 SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); }
175 SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); }
176 SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); }
177 SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); }
178 SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); }
179 SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); }
180 SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); }
181 SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); }
182 SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); }
183 SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); }
184 SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); }
185 SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
186 SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); }
187 SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); }
188 SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
189 SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); }
190 SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); }
191 SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); }
192 SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); }
193 SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); }
194 SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); }
195 SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); }
196 SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); }
197 SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); }
198 SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); }
199 SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); }
200 SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); }
201 SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); }
202 SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); }
203 SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); }
204 SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); }
205 SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); }
206 SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); }
207 SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); }
208 SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); }
209 SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); }
210 SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); }
211 SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); }
212 SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); }
213 SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); }
214 SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); }
215 SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); }
216 SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); }
217 SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); }
218 SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); }
219 SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); }
220 SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); }
221 SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); }
222 SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); }
223 SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); }
224 SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); }
225 SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); }
226 SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); }
227 SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); }
228 SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); }
229 SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); }
230 SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); }
231 SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); }
232 SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); }
233 SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); }
234 SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); }
235 SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); }
236 SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); }
237 SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); }
238 SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); }
239 SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); }
240 SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); }
241 SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); }
242 SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); }
243 SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); }
244 SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); }
245 SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); }
246 SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); }
247 SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); }
248 SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); }
249 SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); }
250 SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); }
251 SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); }
252 SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); }
253 SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); }
254 SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); }
255 SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); }
256 SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); }
257 SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); }
258 SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); }
259 SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); }
260 SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); }
261 SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); }
262 SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); }
263 SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); }
264 SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); }
265 SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); }
266 SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); }
267 SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); }
268 SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); }
269 SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); }
270 SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); }
271 SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); }
272 SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); }
273)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_openbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_openbsd_386.go
deleted file mode 100644
index 3e8ce2a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_openbsd_386.go
+++ /dev/null
@@ -1,207 +0,0 @@
1// mksysnum_openbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build 386,openbsd
5
6package unix
7
8const (
9 SYS_EXIT = 1 // { void sys_exit(int rval); }
10 SYS_FORK = 2 // { int sys_fork(void); }
11 SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
12 SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \
13 SYS_OPEN = 5 // { int sys_open(const char *path, \
14 SYS_CLOSE = 6 // { int sys_close(int fd); }
15 SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \
16 SYS_LINK = 9 // { int sys_link(const char *path, const char *link); }
17 SYS_UNLINK = 10 // { int sys_unlink(const char *path); }
18 SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \
19 SYS_CHDIR = 12 // { int sys_chdir(const char *path); }
20 SYS_FCHDIR = 13 // { int sys_fchdir(int fd); }
21 SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \
22 SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); }
23 SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \
24 SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break
25 SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); }
26 SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \
27 SYS_GETPID = 20 // { pid_t sys_getpid(void); }
28 SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \
29 SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); }
30 SYS_SETUID = 23 // { int sys_setuid(uid_t uid); }
31 SYS_GETUID = 24 // { uid_t sys_getuid(void); }
32 SYS_GETEUID = 25 // { uid_t sys_geteuid(void); }
33 SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \
34 SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \
35 SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \
36 SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \
37 SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \
38 SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \
39 SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \
40 SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); }
41 SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); }
42 SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); }
43 SYS_SYNC = 36 // { void sys_sync(void); }
44 SYS_KILL = 37 // { int sys_kill(int pid, int signum); }
45 SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); }
46 SYS_GETPPID = 39 // { pid_t sys_getppid(void); }
47 SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); }
48 SYS_DUP = 41 // { int sys_dup(int fd); }
49 SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \
50 SYS_GETEGID = 43 // { gid_t sys_getegid(void); }
51 SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \
52 SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \
53 SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \
54 SYS_GETGID = 47 // { gid_t sys_getgid(void); }
55 SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); }
56 SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); }
57 SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); }
58 SYS_ACCT = 51 // { int sys_acct(const char *path); }
59 SYS_SIGPENDING = 52 // { int sys_sigpending(void); }
60 SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); }
61 SYS_IOCTL = 54 // { int sys_ioctl(int fd, \
62 SYS_REBOOT = 55 // { int sys_reboot(int opt); }
63 SYS_REVOKE = 56 // { int sys_revoke(const char *path); }
64 SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \
65 SYS_READLINK = 58 // { int sys_readlink(const char *path, char *buf, \
66 SYS_EXECVE = 59 // { int sys_execve(const char *path, \
67 SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); }
68 SYS_CHROOT = 61 // { int sys_chroot(const char *path); }
69 SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \
70 SYS_STATFS = 63 // { int sys_statfs(const char *path, \
71 SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); }
72 SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \
73 SYS_VFORK = 66 // { int sys_vfork(void); }
74 SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \
75 SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \
76 SYS_SETITIMER = 69 // { int sys_setitimer(int which, \
77 SYS_GETITIMER = 70 // { int sys_getitimer(int which, \
78 SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \
79 SYS_KEVENT = 72 // { int sys_kevent(int fd, \
80 SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); }
81 SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \
82 SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \
83 SYS_UTIMES = 76 // { int sys_utimes(const char *path, \
84 SYS_FUTIMES = 77 // { int sys_futimes(int fd, \
85 SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, \
86 SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \
87 SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \
88 SYS_GETPGRP = 81 // { int sys_getpgrp(void); }
89 SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, int pgid); }
90 SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \
91 SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \
92 SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \
93 SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \
94 SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \
95 SYS_DUP2 = 90 // { int sys_dup2(int from, int to); }
96 SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \
97 SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); }
98 SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \
99 SYS_FSYNC = 95 // { int sys_fsync(int fd); }
100 SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); }
101 SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); }
102 SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \
103 SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); }
104 SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); }
105 SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); }
106 SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \
107 SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \
108 SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); }
109 SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \
110 SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
111 SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); }
112 SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \
113 SYS_READV = 120 // { ssize_t sys_readv(int fd, \
114 SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \
115 SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); }
116 SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); }
117 SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); }
118 SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); }
119 SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); }
120 SYS_FLOCK = 131 // { int sys_flock(int fd, int how); }
121 SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); }
122 SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \
123 SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); }
124 SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \
125 SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); }
126 SYS_RMDIR = 137 // { int sys_rmdir(const char *path); }
127 SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \
128 SYS_SETSID = 147 // { int sys_setsid(void); }
129 SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \
130 SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); }
131 SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); }
132 SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); }
133 SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \
134 SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \
135 SYS_SETGID = 181 // { int sys_setgid(gid_t gid); }
136 SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); }
137 SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); }
138 SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); }
139 SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); }
140 SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); }
141 SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \
142 SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \
143 SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \
144 SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \
145 SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \
146 SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); }
147 SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \
148 SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); }
149 SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); }
150 SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); }
151 SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \
152 SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); }
153 SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); }
154 SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \
155 SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
156 SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \
157 SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); }
158 SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \
159 SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \
160 SYS_ISSETUGID = 253 // { int sys_issetugid(void); }
161 SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); }
162 SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); }
163 SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); }
164 SYS_PIPE = 263 // { int sys_pipe(int *fdp); }
165 SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); }
166 SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \
167 SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \
168 SYS_KQUEUE = 269 // { int sys_kqueue(void); }
169 SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); }
170 SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); }
171 SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \
172 SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \
173 SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \
174 SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \
175 SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \
176 SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); }
177 SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \
178 SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); }
179 SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \
180 SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \
181 SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \
182 SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \
183 SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \
184 SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); }
185 SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); }
186 SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \
187 SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); }
188 SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \
189 SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); }
190 SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \
191 SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); }
192 SYS_GETRTABLE = 311 // { int sys_getrtable(void); }
193 SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \
194 SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \
195 SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \
196 SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \
197 SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \
198 SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \
199 SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \
200 SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \
201 SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \
202 SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \
203 SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \
204 SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \
205 SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); }
206 SYS___GET_TCB = 330 // { void *sys___get_tcb(void); }
207)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go
deleted file mode 100644
index bd28146..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go
+++ /dev/null
@@ -1,207 +0,0 @@
1// mksysnum_openbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
3
4// +build amd64,openbsd
5
6package unix
7
8const (
9 SYS_EXIT = 1 // { void sys_exit(int rval); }
10 SYS_FORK = 2 // { int sys_fork(void); }
11 SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
12 SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \
13 SYS_OPEN = 5 // { int sys_open(const char *path, \
14 SYS_CLOSE = 6 // { int sys_close(int fd); }
15 SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \
16 SYS_LINK = 9 // { int sys_link(const char *path, const char *link); }
17 SYS_UNLINK = 10 // { int sys_unlink(const char *path); }
18 SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \
19 SYS_CHDIR = 12 // { int sys_chdir(const char *path); }
20 SYS_FCHDIR = 13 // { int sys_fchdir(int fd); }
21 SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \
22 SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); }
23 SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \
24 SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break
25 SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); }
26 SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \
27 SYS_GETPID = 20 // { pid_t sys_getpid(void); }
28 SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \
29 SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); }
30 SYS_SETUID = 23 // { int sys_setuid(uid_t uid); }
31 SYS_GETUID = 24 // { uid_t sys_getuid(void); }
32 SYS_GETEUID = 25 // { uid_t sys_geteuid(void); }
33 SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \
34 SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \
35 SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \
36 SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \
37 SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \
38 SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \
39 SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \
40 SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); }
41 SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); }
42 SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); }
43 SYS_SYNC = 36 // { void sys_sync(void); }
44 SYS_KILL = 37 // { int sys_kill(int pid, int signum); }
45 SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); }
46 SYS_GETPPID = 39 // { pid_t sys_getppid(void); }
47 SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); }
48 SYS_DUP = 41 // { int sys_dup(int fd); }
49 SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \
50 SYS_GETEGID = 43 // { gid_t sys_getegid(void); }
51 SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \
52 SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \
53 SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \
54 SYS_GETGID = 47 // { gid_t sys_getgid(void); }
55 SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); }
56 SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); }
57 SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); }
58 SYS_ACCT = 51 // { int sys_acct(const char *path); }
59 SYS_SIGPENDING = 52 // { int sys_sigpending(void); }
60 SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); }
61 SYS_IOCTL = 54 // { int sys_ioctl(int fd, \
62 SYS_REBOOT = 55 // { int sys_reboot(int opt); }
63 SYS_REVOKE = 56 // { int sys_revoke(const char *path); }
64 SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \
65 SYS_READLINK = 58 // { int sys_readlink(const char *path, char *buf, \
66 SYS_EXECVE = 59 // { int sys_execve(const char *path, \
67 SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); }
68 SYS_CHROOT = 61 // { int sys_chroot(const char *path); }
69 SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \
70 SYS_STATFS = 63 // { int sys_statfs(const char *path, \
71 SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); }
72 SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \
73 SYS_VFORK = 66 // { int sys_vfork(void); }
74 SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \
75 SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \
76 SYS_SETITIMER = 69 // { int sys_setitimer(int which, \
77 SYS_GETITIMER = 70 // { int sys_getitimer(int which, \
78 SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \
79 SYS_KEVENT = 72 // { int sys_kevent(int fd, \
80 SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); }
81 SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \
82 SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \
83 SYS_UTIMES = 76 // { int sys_utimes(const char *path, \
84 SYS_FUTIMES = 77 // { int sys_futimes(int fd, \
85 SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, \
86 SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \
87 SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \
88 SYS_GETPGRP = 81 // { int sys_getpgrp(void); }
89 SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, int pgid); }
90 SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \
91 SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \
92 SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \
93 SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \
94 SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \
95 SYS_DUP2 = 90 // { int sys_dup2(int from, int to); }
96 SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \
97 SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); }
98 SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \
99 SYS_FSYNC = 95 // { int sys_fsync(int fd); }
100 SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); }
101 SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); }
102 SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \
103 SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); }
104 SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); }
105 SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); }
106 SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \
107 SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \
108 SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); }
109 SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \
110 SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
111 SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); }
112 SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \
113 SYS_READV = 120 // { ssize_t sys_readv(int fd, \
114 SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \
115 SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); }
116 SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); }
117 SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); }
118 SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); }
119 SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); }
120 SYS_FLOCK = 131 // { int sys_flock(int fd, int how); }
121 SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); }
122 SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \
123 SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); }
124 SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \
125 SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); }
126 SYS_RMDIR = 137 // { int sys_rmdir(const char *path); }
127 SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \
128 SYS_SETSID = 147 // { int sys_setsid(void); }
129 SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \
130 SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); }
131 SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); }
132 SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); }
133 SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \
134 SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \
135 SYS_SETGID = 181 // { int sys_setgid(gid_t gid); }
136 SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); }
137 SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); }
138 SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); }
139 SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); }
140 SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); }
141 SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \
142 SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \
143 SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \
144 SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \
145 SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \
146 SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); }
147 SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \
148 SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); }
149 SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); }
150 SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); }
151 SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \
152 SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); }
153 SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); }
154 SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \
155 SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
156 SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \
157 SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); }
158 SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \
159 SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \
160 SYS_ISSETUGID = 253 // { int sys_issetugid(void); }
161 SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); }
162 SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); }
163 SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); }
164 SYS_PIPE = 263 // { int sys_pipe(int *fdp); }
165 SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); }
166 SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \
167 SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \
168 SYS_KQUEUE = 269 // { int sys_kqueue(void); }
169 SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); }
170 SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); }
171 SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \
172 SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \
173 SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \
174 SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \
175 SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \
176 SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); }
177 SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \
178 SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); }
179 SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \
180 SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \
181 SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \
182 SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \
183 SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \
184 SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); }
185 SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); }
186 SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \
187 SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); }
188 SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \
189 SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); }
190 SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \
191 SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); }
192 SYS_GETRTABLE = 311 // { int sys_getrtable(void); }
193 SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \
194 SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \
195 SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \
196 SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \
197 SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \
198 SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \
199 SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \
200 SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \
201 SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \
202 SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \
203 SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \
204 SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \
205 SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); }
206 SYS___GET_TCB = 330 // { void *sys___get_tcb(void); }
207)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_solaris_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_solaris_amd64.go
deleted file mode 100644
index c708659..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_solaris_amd64.go
+++ /dev/null
@@ -1,13 +0,0 @@
1// Copyright 2014 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build amd64,solaris
6
7package unix
8
9// TODO(aram): remove these before Go 1.3.
10const (
11 SYS_EXECVE = 59
12 SYS_FCNTL = 62
13)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_386.go
deleted file mode 100644
index 2de1d44..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_386.go
+++ /dev/null
@@ -1,447 +0,0 @@
1// +build 386,darwin
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_darwin.go
4
5package unix
6
7const (
8 sizeofPtr = 0x4
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x4
12 sizeofLongLong = 0x8
13)
14
15type (
16 _C_short int16
17 _C_int int32
18 _C_long int32
19 _C_long_long int64
20)
21
22type Timespec struct {
23 Sec int32
24 Nsec int32
25}
26
27type Timeval struct {
28 Sec int32
29 Usec int32
30}
31
32type Timeval32 struct{}
33
34type Rusage struct {
35 Utime Timeval
36 Stime Timeval
37 Maxrss int32
38 Ixrss int32
39 Idrss int32
40 Isrss int32
41 Minflt int32
42 Majflt int32
43 Nswap int32
44 Inblock int32
45 Oublock int32
46 Msgsnd int32
47 Msgrcv int32
48 Nsignals int32
49 Nvcsw int32
50 Nivcsw int32
51}
52
53type Rlimit struct {
54 Cur uint64
55 Max uint64
56}
57
58type _Gid_t uint32
59
60type Stat_t struct {
61 Dev int32
62 Mode uint16
63 Nlink uint16
64 Ino uint64
65 Uid uint32
66 Gid uint32
67 Rdev int32
68 Atimespec Timespec
69 Mtimespec Timespec
70 Ctimespec Timespec
71 Birthtimespec Timespec
72 Size int64
73 Blocks int64
74 Blksize int32
75 Flags uint32
76 Gen uint32
77 Lspare int32
78 Qspare [2]int64
79}
80
81type Statfs_t struct {
82 Bsize uint32
83 Iosize int32
84 Blocks uint64
85 Bfree uint64
86 Bavail uint64
87 Files uint64
88 Ffree uint64
89 Fsid Fsid
90 Owner uint32
91 Type uint32
92 Flags uint32
93 Fssubtype uint32
94 Fstypename [16]int8
95 Mntonname [1024]int8
96 Mntfromname [1024]int8
97 Reserved [8]uint32
98}
99
100type Flock_t struct {
101 Start int64
102 Len int64
103 Pid int32
104 Type int16
105 Whence int16
106}
107
108type Fstore_t struct {
109 Flags uint32
110 Posmode int32
111 Offset int64
112 Length int64
113 Bytesalloc int64
114}
115
116type Radvisory_t struct {
117 Offset int64
118 Count int32
119}
120
121type Fbootstraptransfer_t struct {
122 Offset int64
123 Length uint32
124 Buffer *byte
125}
126
127type Log2phys_t struct {
128 Flags uint32
129 Contigbytes int64
130 Devoffset int64
131}
132
133type Fsid struct {
134 Val [2]int32
135}
136
137type Dirent struct {
138 Ino uint64
139 Seekoff uint64
140 Reclen uint16
141 Namlen uint16
142 Type uint8
143 Name [1024]int8
144 Pad_cgo_0 [3]byte
145}
146
147type RawSockaddrInet4 struct {
148 Len uint8
149 Family uint8
150 Port uint16
151 Addr [4]byte /* in_addr */
152 Zero [8]int8
153}
154
155type RawSockaddrInet6 struct {
156 Len uint8
157 Family uint8
158 Port uint16
159 Flowinfo uint32
160 Addr [16]byte /* in6_addr */
161 Scope_id uint32
162}
163
164type RawSockaddrUnix struct {
165 Len uint8
166 Family uint8
167 Path [104]int8
168}
169
170type RawSockaddrDatalink struct {
171 Len uint8
172 Family uint8
173 Index uint16
174 Type uint8
175 Nlen uint8
176 Alen uint8
177 Slen uint8
178 Data [12]int8
179}
180
181type RawSockaddr struct {
182 Len uint8
183 Family uint8
184 Data [14]int8
185}
186
187type RawSockaddrAny struct {
188 Addr RawSockaddr
189 Pad [92]int8
190}
191
192type _Socklen uint32
193
194type Linger struct {
195 Onoff int32
196 Linger int32
197}
198
199type Iovec struct {
200 Base *byte
201 Len uint32
202}
203
204type IPMreq struct {
205 Multiaddr [4]byte /* in_addr */
206 Interface [4]byte /* in_addr */
207}
208
209type IPv6Mreq struct {
210 Multiaddr [16]byte /* in6_addr */
211 Interface uint32
212}
213
214type Msghdr struct {
215 Name *byte
216 Namelen uint32
217 Iov *Iovec
218 Iovlen int32
219 Control *byte
220 Controllen uint32
221 Flags int32
222}
223
224type Cmsghdr struct {
225 Len uint32
226 Level int32
227 Type int32
228}
229
230type Inet4Pktinfo struct {
231 Ifindex uint32
232 Spec_dst [4]byte /* in_addr */
233 Addr [4]byte /* in_addr */
234}
235
236type Inet6Pktinfo struct {
237 Addr [16]byte /* in6_addr */
238 Ifindex uint32
239}
240
241type IPv6MTUInfo struct {
242 Addr RawSockaddrInet6
243 Mtu uint32
244}
245
246type ICMPv6Filter struct {
247 Filt [8]uint32
248}
249
250const (
251 SizeofSockaddrInet4 = 0x10
252 SizeofSockaddrInet6 = 0x1c
253 SizeofSockaddrAny = 0x6c
254 SizeofSockaddrUnix = 0x6a
255 SizeofSockaddrDatalink = 0x14
256 SizeofLinger = 0x8
257 SizeofIPMreq = 0x8
258 SizeofIPv6Mreq = 0x14
259 SizeofMsghdr = 0x1c
260 SizeofCmsghdr = 0xc
261 SizeofInet4Pktinfo = 0xc
262 SizeofInet6Pktinfo = 0x14
263 SizeofIPv6MTUInfo = 0x20
264 SizeofICMPv6Filter = 0x20
265)
266
267const (
268 PTRACE_TRACEME = 0x0
269 PTRACE_CONT = 0x7
270 PTRACE_KILL = 0x8
271)
272
273type Kevent_t struct {
274 Ident uint32
275 Filter int16
276 Flags uint16
277 Fflags uint32
278 Data int32
279 Udata *byte
280}
281
282type FdSet struct {
283 Bits [32]int32
284}
285
286const (
287 SizeofIfMsghdr = 0x70
288 SizeofIfData = 0x60
289 SizeofIfaMsghdr = 0x14
290 SizeofIfmaMsghdr = 0x10
291 SizeofIfmaMsghdr2 = 0x14
292 SizeofRtMsghdr = 0x5c
293 SizeofRtMetrics = 0x38
294)
295
296type IfMsghdr struct {
297 Msglen uint16
298 Version uint8
299 Type uint8
300 Addrs int32
301 Flags int32
302 Index uint16
303 Pad_cgo_0 [2]byte
304 Data IfData
305}
306
307type IfData struct {
308 Type uint8
309 Typelen uint8
310 Physical uint8
311 Addrlen uint8
312 Hdrlen uint8
313 Recvquota uint8
314 Xmitquota uint8
315 Unused1 uint8
316 Mtu uint32
317 Metric uint32
318 Baudrate uint32
319 Ipackets uint32
320 Ierrors uint32
321 Opackets uint32
322 Oerrors uint32
323 Collisions uint32
324 Ibytes uint32
325 Obytes uint32
326 Imcasts uint32
327 Omcasts uint32
328 Iqdrops uint32
329 Noproto uint32
330 Recvtiming uint32
331 Xmittiming uint32
332 Lastchange Timeval
333 Unused2 uint32
334 Hwassist uint32
335 Reserved1 uint32
336 Reserved2 uint32
337}
338
339type IfaMsghdr struct {
340 Msglen uint16
341 Version uint8
342 Type uint8
343 Addrs int32
344 Flags int32
345 Index uint16
346 Pad_cgo_0 [2]byte
347 Metric int32
348}
349
350type IfmaMsghdr struct {
351 Msglen uint16
352 Version uint8
353 Type uint8
354 Addrs int32
355 Flags int32
356 Index uint16
357 Pad_cgo_0 [2]byte
358}
359
360type IfmaMsghdr2 struct {
361 Msglen uint16
362 Version uint8
363 Type uint8
364 Addrs int32
365 Flags int32
366 Index uint16
367 Pad_cgo_0 [2]byte
368 Refcount int32
369}
370
371type RtMsghdr struct {
372 Msglen uint16
373 Version uint8
374 Type uint8
375 Index uint16
376 Pad_cgo_0 [2]byte
377 Flags int32
378 Addrs int32
379 Pid int32
380 Seq int32
381 Errno int32
382 Use int32
383 Inits uint32
384 Rmx RtMetrics
385}
386
387type RtMetrics struct {
388 Locks uint32
389 Mtu uint32
390 Hopcount uint32
391 Expire int32
392 Recvpipe uint32
393 Sendpipe uint32
394 Ssthresh uint32
395 Rtt uint32
396 Rttvar uint32
397 Pksent uint32
398 Filler [4]uint32
399}
400
401const (
402 SizeofBpfVersion = 0x4
403 SizeofBpfStat = 0x8
404 SizeofBpfProgram = 0x8
405 SizeofBpfInsn = 0x8
406 SizeofBpfHdr = 0x14
407)
408
409type BpfVersion struct {
410 Major uint16
411 Minor uint16
412}
413
414type BpfStat struct {
415 Recv uint32
416 Drop uint32
417}
418
419type BpfProgram struct {
420 Len uint32
421 Insns *BpfInsn
422}
423
424type BpfInsn struct {
425 Code uint16
426 Jt uint8
427 Jf uint8
428 K uint32
429}
430
431type BpfHdr struct {
432 Tstamp Timeval
433 Caplen uint32
434 Datalen uint32
435 Hdrlen uint16
436 Pad_cgo_0 [2]byte
437}
438
439type Termios struct {
440 Iflag uint32
441 Oflag uint32
442 Cflag uint32
443 Lflag uint32
444 Cc [20]uint8
445 Ispeed uint32
446 Ospeed uint32
447}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_amd64.go
deleted file mode 100644
index 0446578..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_amd64.go
+++ /dev/null
@@ -1,462 +0,0 @@
1// +build amd64,darwin
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_darwin.go
4
5package unix
6
7const (
8 sizeofPtr = 0x8
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x8
12 sizeofLongLong = 0x8
13)
14
15type (
16 _C_short int16
17 _C_int int32
18 _C_long int64
19 _C_long_long int64
20)
21
22type Timespec struct {
23 Sec int64
24 Nsec int64
25}
26
27type Timeval struct {
28 Sec int64
29 Usec int32
30 Pad_cgo_0 [4]byte
31}
32
33type Timeval32 struct {
34 Sec int32
35 Usec int32
36}
37
38type Rusage struct {
39 Utime Timeval
40 Stime Timeval
41 Maxrss int64
42 Ixrss int64
43 Idrss int64
44 Isrss int64
45 Minflt int64
46 Majflt int64
47 Nswap int64
48 Inblock int64
49 Oublock int64
50 Msgsnd int64
51 Msgrcv int64
52 Nsignals int64
53 Nvcsw int64
54 Nivcsw int64
55}
56
57type Rlimit struct {
58 Cur uint64
59 Max uint64
60}
61
62type _Gid_t uint32
63
64type Stat_t struct {
65 Dev int32
66 Mode uint16
67 Nlink uint16
68 Ino uint64
69 Uid uint32
70 Gid uint32
71 Rdev int32
72 Pad_cgo_0 [4]byte
73 Atimespec Timespec
74 Mtimespec Timespec
75 Ctimespec Timespec
76 Birthtimespec Timespec
77 Size int64
78 Blocks int64
79 Blksize int32
80 Flags uint32
81 Gen uint32
82 Lspare int32
83 Qspare [2]int64
84}
85
86type Statfs_t struct {
87 Bsize uint32
88 Iosize int32
89 Blocks uint64
90 Bfree uint64
91 Bavail uint64
92 Files uint64
93 Ffree uint64
94 Fsid Fsid
95 Owner uint32
96 Type uint32
97 Flags uint32
98 Fssubtype uint32
99 Fstypename [16]int8
100 Mntonname [1024]int8
101 Mntfromname [1024]int8
102 Reserved [8]uint32
103}
104
105type Flock_t struct {
106 Start int64
107 Len int64
108 Pid int32
109 Type int16
110 Whence int16
111}
112
113type Fstore_t struct {
114 Flags uint32
115 Posmode int32
116 Offset int64
117 Length int64
118 Bytesalloc int64
119}
120
121type Radvisory_t struct {
122 Offset int64
123 Count int32
124 Pad_cgo_0 [4]byte
125}
126
127type Fbootstraptransfer_t struct {
128 Offset int64
129 Length uint64
130 Buffer *byte
131}
132
133type Log2phys_t struct {
134 Flags uint32
135 Pad_cgo_0 [8]byte
136 Pad_cgo_1 [8]byte
137}
138
139type Fsid struct {
140 Val [2]int32
141}
142
143type Dirent struct {
144 Ino uint64
145 Seekoff uint64
146 Reclen uint16
147 Namlen uint16
148 Type uint8
149 Name [1024]int8
150 Pad_cgo_0 [3]byte
151}
152
153type RawSockaddrInet4 struct {
154 Len uint8
155 Family uint8
156 Port uint16
157 Addr [4]byte /* in_addr */
158 Zero [8]int8
159}
160
161type RawSockaddrInet6 struct {
162 Len uint8
163 Family uint8
164 Port uint16
165 Flowinfo uint32
166 Addr [16]byte /* in6_addr */
167 Scope_id uint32
168}
169
170type RawSockaddrUnix struct {
171 Len uint8
172 Family uint8
173 Path [104]int8
174}
175
176type RawSockaddrDatalink struct {
177 Len uint8
178 Family uint8
179 Index uint16
180 Type uint8
181 Nlen uint8
182 Alen uint8
183 Slen uint8
184 Data [12]int8
185}
186
187type RawSockaddr struct {
188 Len uint8
189 Family uint8
190 Data [14]int8
191}
192
193type RawSockaddrAny struct {
194 Addr RawSockaddr
195 Pad [92]int8
196}
197
198type _Socklen uint32
199
200type Linger struct {
201 Onoff int32
202 Linger int32
203}
204
205type Iovec struct {
206 Base *byte
207 Len uint64
208}
209
210type IPMreq struct {
211 Multiaddr [4]byte /* in_addr */
212 Interface [4]byte /* in_addr */
213}
214
215type IPv6Mreq struct {
216 Multiaddr [16]byte /* in6_addr */
217 Interface uint32
218}
219
220type Msghdr struct {
221 Name *byte
222 Namelen uint32
223 Pad_cgo_0 [4]byte
224 Iov *Iovec
225 Iovlen int32
226 Pad_cgo_1 [4]byte
227 Control *byte
228 Controllen uint32
229 Flags int32
230}
231
232type Cmsghdr struct {
233 Len uint32
234 Level int32
235 Type int32
236}
237
238type Inet4Pktinfo struct {
239 Ifindex uint32
240 Spec_dst [4]byte /* in_addr */
241 Addr [4]byte /* in_addr */
242}
243
244type Inet6Pktinfo struct {
245 Addr [16]byte /* in6_addr */
246 Ifindex uint32
247}
248
249type IPv6MTUInfo struct {
250 Addr RawSockaddrInet6
251 Mtu uint32
252}
253
254type ICMPv6Filter struct {
255 Filt [8]uint32
256}
257
258const (
259 SizeofSockaddrInet4 = 0x10
260 SizeofSockaddrInet6 = 0x1c
261 SizeofSockaddrAny = 0x6c
262 SizeofSockaddrUnix = 0x6a
263 SizeofSockaddrDatalink = 0x14
264 SizeofLinger = 0x8
265 SizeofIPMreq = 0x8
266 SizeofIPv6Mreq = 0x14
267 SizeofMsghdr = 0x30
268 SizeofCmsghdr = 0xc
269 SizeofInet4Pktinfo = 0xc
270 SizeofInet6Pktinfo = 0x14
271 SizeofIPv6MTUInfo = 0x20
272 SizeofICMPv6Filter = 0x20
273)
274
275const (
276 PTRACE_TRACEME = 0x0
277 PTRACE_CONT = 0x7
278 PTRACE_KILL = 0x8
279)
280
281type Kevent_t struct {
282 Ident uint64
283 Filter int16
284 Flags uint16
285 Fflags uint32
286 Data int64
287 Udata *byte
288}
289
290type FdSet struct {
291 Bits [32]int32
292}
293
294const (
295 SizeofIfMsghdr = 0x70
296 SizeofIfData = 0x60
297 SizeofIfaMsghdr = 0x14
298 SizeofIfmaMsghdr = 0x10
299 SizeofIfmaMsghdr2 = 0x14
300 SizeofRtMsghdr = 0x5c
301 SizeofRtMetrics = 0x38
302)
303
304type IfMsghdr struct {
305 Msglen uint16
306 Version uint8
307 Type uint8
308 Addrs int32
309 Flags int32
310 Index uint16
311 Pad_cgo_0 [2]byte
312 Data IfData
313}
314
315type IfData struct {
316 Type uint8
317 Typelen uint8
318 Physical uint8
319 Addrlen uint8
320 Hdrlen uint8
321 Recvquota uint8
322 Xmitquota uint8
323 Unused1 uint8
324 Mtu uint32
325 Metric uint32
326 Baudrate uint32
327 Ipackets uint32
328 Ierrors uint32
329 Opackets uint32
330 Oerrors uint32
331 Collisions uint32
332 Ibytes uint32
333 Obytes uint32
334 Imcasts uint32
335 Omcasts uint32
336 Iqdrops uint32
337 Noproto uint32
338 Recvtiming uint32
339 Xmittiming uint32
340 Lastchange Timeval32
341 Unused2 uint32
342 Hwassist uint32
343 Reserved1 uint32
344 Reserved2 uint32
345}
346
347type IfaMsghdr struct {
348 Msglen uint16
349 Version uint8
350 Type uint8
351 Addrs int32
352 Flags int32
353 Index uint16
354 Pad_cgo_0 [2]byte
355 Metric int32
356}
357
358type IfmaMsghdr struct {
359 Msglen uint16
360 Version uint8
361 Type uint8
362 Addrs int32
363 Flags int32
364 Index uint16
365 Pad_cgo_0 [2]byte
366}
367
368type IfmaMsghdr2 struct {
369 Msglen uint16
370 Version uint8
371 Type uint8
372 Addrs int32
373 Flags int32
374 Index uint16
375 Pad_cgo_0 [2]byte
376 Refcount int32
377}
378
379type RtMsghdr struct {
380 Msglen uint16
381 Version uint8
382 Type uint8
383 Index uint16
384 Pad_cgo_0 [2]byte
385 Flags int32
386 Addrs int32
387 Pid int32
388 Seq int32
389 Errno int32
390 Use int32
391 Inits uint32
392 Rmx RtMetrics
393}
394
395type RtMetrics struct {
396 Locks uint32
397 Mtu uint32
398 Hopcount uint32
399 Expire int32
400 Recvpipe uint32
401 Sendpipe uint32
402 Ssthresh uint32
403 Rtt uint32
404 Rttvar uint32
405 Pksent uint32
406 Filler [4]uint32
407}
408
409const (
410 SizeofBpfVersion = 0x4
411 SizeofBpfStat = 0x8
412 SizeofBpfProgram = 0x10
413 SizeofBpfInsn = 0x8
414 SizeofBpfHdr = 0x14
415)
416
417type BpfVersion struct {
418 Major uint16
419 Minor uint16
420}
421
422type BpfStat struct {
423 Recv uint32
424 Drop uint32
425}
426
427type BpfProgram struct {
428 Len uint32
429 Pad_cgo_0 [4]byte
430 Insns *BpfInsn
431}
432
433type BpfInsn struct {
434 Code uint16
435 Jt uint8
436 Jf uint8
437 K uint32
438}
439
440type BpfHdr struct {
441 Tstamp Timeval32
442 Caplen uint32
443 Datalen uint32
444 Hdrlen uint16
445 Pad_cgo_0 [2]byte
446}
447
448type Termios struct {
449 Iflag uint64
450 Oflag uint64
451 Cflag uint64
452 Lflag uint64
453 Cc [20]uint8
454 Pad_cgo_0 [4]byte
455 Ispeed uint64
456 Ospeed uint64
457}
458
459const (
460 AT_FDCWD = -0x2
461 AT_SYMLINK_NOFOLLOW = 0x20
462)
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_arm.go
deleted file mode 100644
index 66df363..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_arm.go
+++ /dev/null
@@ -1,449 +0,0 @@
1// NOTE: cgo can't generate struct Stat_t and struct Statfs_t yet
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_darwin.go
4
5// +build arm,darwin
6
7package unix
8
9const (
10 sizeofPtr = 0x4
11 sizeofShort = 0x2
12 sizeofInt = 0x4
13 sizeofLong = 0x4
14 sizeofLongLong = 0x8
15)
16
17type (
18 _C_short int16
19 _C_int int32
20 _C_long int32
21 _C_long_long int64
22)
23
24type Timespec struct {
25 Sec int32
26 Nsec int32
27}
28
29type Timeval struct {
30 Sec int32
31 Usec int32
32}
33
34type Timeval32 [0]byte
35
36type Rusage struct {
37 Utime Timeval
38 Stime Timeval
39 Maxrss int32
40 Ixrss int32
41 Idrss int32
42 Isrss int32
43 Minflt int32
44 Majflt int32
45 Nswap int32
46 Inblock int32
47 Oublock int32
48 Msgsnd int32
49 Msgrcv int32
50 Nsignals int32
51 Nvcsw int32
52 Nivcsw int32
53}
54
55type Rlimit struct {
56 Cur uint64
57 Max uint64
58}
59
60type _Gid_t uint32
61
62type Stat_t struct {
63 Dev int32
64 Mode uint16
65 Nlink uint16
66 Ino uint64
67 Uid uint32
68 Gid uint32
69 Rdev int32
70 Atimespec Timespec
71 Mtimespec Timespec
72 Ctimespec Timespec
73 Birthtimespec Timespec
74 Size int64
75 Blocks int64
76 Blksize int32
77 Flags uint32
78 Gen uint32
79 Lspare int32
80 Qspare [2]int64
81}
82
83type Statfs_t struct {
84 Bsize uint32
85 Iosize int32
86 Blocks uint64
87 Bfree uint64
88 Bavail uint64
89 Files uint64
90 Ffree uint64
91 Fsid Fsid
92 Owner uint32
93 Type uint32
94 Flags uint32
95 Fssubtype uint32
96 Fstypename [16]int8
97 Mntonname [1024]int8
98 Mntfromname [1024]int8
99 Reserved [8]uint32
100}
101
102type Flock_t struct {
103 Start int64
104 Len int64
105 Pid int32
106 Type int16
107 Whence int16
108}
109
110type Fstore_t struct {
111 Flags uint32
112 Posmode int32
113 Offset int64
114 Length int64
115 Bytesalloc int64
116}
117
118type Radvisory_t struct {
119 Offset int64
120 Count int32
121}
122
123type Fbootstraptransfer_t struct {
124 Offset int64
125 Length uint32
126 Buffer *byte
127}
128
129type Log2phys_t struct {
130 Flags uint32
131 Contigbytes int64
132 Devoffset int64
133}
134
135type Fsid struct {
136 Val [2]int32
137}
138
139type Dirent struct {
140 Ino uint64
141 Seekoff uint64
142 Reclen uint16
143 Namlen uint16
144 Type uint8
145 Name [1024]int8
146 Pad_cgo_0 [3]byte
147}
148
149type RawSockaddrInet4 struct {
150 Len uint8
151 Family uint8
152 Port uint16
153 Addr [4]byte /* in_addr */
154 Zero [8]int8
155}
156
157type RawSockaddrInet6 struct {
158 Len uint8
159 Family uint8
160 Port uint16
161 Flowinfo uint32
162 Addr [16]byte /* in6_addr */
163 Scope_id uint32
164}
165
166type RawSockaddrUnix struct {
167 Len uint8
168 Family uint8
169 Path [104]int8
170}
171
172type RawSockaddrDatalink struct {
173 Len uint8
174 Family uint8
175 Index uint16
176 Type uint8
177 Nlen uint8
178 Alen uint8
179 Slen uint8
180 Data [12]int8
181}
182
183type RawSockaddr struct {
184 Len uint8
185 Family uint8
186 Data [14]int8
187}
188
189type RawSockaddrAny struct {
190 Addr RawSockaddr
191 Pad [92]int8
192}
193
194type _Socklen uint32
195
196type Linger struct {
197 Onoff int32
198 Linger int32
199}
200
201type Iovec struct {
202 Base *byte
203 Len uint32
204}
205
206type IPMreq struct {
207 Multiaddr [4]byte /* in_addr */
208 Interface [4]byte /* in_addr */
209}
210
211type IPv6Mreq struct {
212 Multiaddr [16]byte /* in6_addr */
213 Interface uint32
214}
215
216type Msghdr struct {
217 Name *byte
218 Namelen uint32
219 Iov *Iovec
220 Iovlen int32
221 Control *byte
222 Controllen uint32
223 Flags int32
224}
225
226type Cmsghdr struct {
227 Len uint32
228 Level int32
229 Type int32
230}
231
232type Inet4Pktinfo struct {
233 Ifindex uint32
234 Spec_dst [4]byte /* in_addr */
235 Addr [4]byte /* in_addr */
236}
237
238type Inet6Pktinfo struct {
239 Addr [16]byte /* in6_addr */
240 Ifindex uint32
241}
242
243type IPv6MTUInfo struct {
244 Addr RawSockaddrInet6
245 Mtu uint32
246}
247
248type ICMPv6Filter struct {
249 Filt [8]uint32
250}
251
252const (
253 SizeofSockaddrInet4 = 0x10
254 SizeofSockaddrInet6 = 0x1c
255 SizeofSockaddrAny = 0x6c
256 SizeofSockaddrUnix = 0x6a
257 SizeofSockaddrDatalink = 0x14
258 SizeofLinger = 0x8
259 SizeofIPMreq = 0x8
260 SizeofIPv6Mreq = 0x14
261 SizeofMsghdr = 0x1c
262 SizeofCmsghdr = 0xc
263 SizeofInet4Pktinfo = 0xc
264 SizeofInet6Pktinfo = 0x14
265 SizeofIPv6MTUInfo = 0x20
266 SizeofICMPv6Filter = 0x20
267)
268
269const (
270 PTRACE_TRACEME = 0x0
271 PTRACE_CONT = 0x7
272 PTRACE_KILL = 0x8
273)
274
275type Kevent_t struct {
276 Ident uint32
277 Filter int16
278 Flags uint16
279 Fflags uint32
280 Data int32
281 Udata *byte
282}
283
284type FdSet struct {
285 Bits [32]int32
286}
287
288const (
289 SizeofIfMsghdr = 0x70
290 SizeofIfData = 0x60
291 SizeofIfaMsghdr = 0x14
292 SizeofIfmaMsghdr = 0x10
293 SizeofIfmaMsghdr2 = 0x14
294 SizeofRtMsghdr = 0x5c
295 SizeofRtMetrics = 0x38
296)
297
298type IfMsghdr struct {
299 Msglen uint16
300 Version uint8
301 Type uint8
302 Addrs int32
303 Flags int32
304 Index uint16
305 Pad_cgo_0 [2]byte
306 Data IfData
307}
308
309type IfData struct {
310 Type uint8
311 Typelen uint8
312 Physical uint8
313 Addrlen uint8
314 Hdrlen uint8
315 Recvquota uint8
316 Xmitquota uint8
317 Unused1 uint8
318 Mtu uint32
319 Metric uint32
320 Baudrate uint32
321 Ipackets uint32
322 Ierrors uint32
323 Opackets uint32
324 Oerrors uint32
325 Collisions uint32
326 Ibytes uint32
327 Obytes uint32
328 Imcasts uint32
329 Omcasts uint32
330 Iqdrops uint32
331 Noproto uint32
332 Recvtiming uint32
333 Xmittiming uint32
334 Lastchange Timeval
335 Unused2 uint32
336 Hwassist uint32
337 Reserved1 uint32
338 Reserved2 uint32
339}
340
341type IfaMsghdr struct {
342 Msglen uint16
343 Version uint8
344 Type uint8
345 Addrs int32
346 Flags int32
347 Index uint16
348 Pad_cgo_0 [2]byte
349 Metric int32
350}
351
352type IfmaMsghdr struct {
353 Msglen uint16
354 Version uint8
355 Type uint8
356 Addrs int32
357 Flags int32
358 Index uint16
359 Pad_cgo_0 [2]byte
360}
361
362type IfmaMsghdr2 struct {
363 Msglen uint16
364 Version uint8
365 Type uint8
366 Addrs int32
367 Flags int32
368 Index uint16
369 Pad_cgo_0 [2]byte
370 Refcount int32
371}
372
373type RtMsghdr struct {
374 Msglen uint16
375 Version uint8
376 Type uint8
377 Index uint16
378 Pad_cgo_0 [2]byte
379 Flags int32
380 Addrs int32
381 Pid int32
382 Seq int32
383 Errno int32
384 Use int32
385 Inits uint32
386 Rmx RtMetrics
387}
388
389type RtMetrics struct {
390 Locks uint32
391 Mtu uint32
392 Hopcount uint32
393 Expire int32
394 Recvpipe uint32
395 Sendpipe uint32
396 Ssthresh uint32
397 Rtt uint32
398 Rttvar uint32
399 Pksent uint32
400 Filler [4]uint32
401}
402
403const (
404 SizeofBpfVersion = 0x4
405 SizeofBpfStat = 0x8
406 SizeofBpfProgram = 0x8
407 SizeofBpfInsn = 0x8
408 SizeofBpfHdr = 0x14
409)
410
411type BpfVersion struct {
412 Major uint16
413 Minor uint16
414}
415
416type BpfStat struct {
417 Recv uint32
418 Drop uint32
419}
420
421type BpfProgram struct {
422 Len uint32
423 Insns *BpfInsn
424}
425
426type BpfInsn struct {
427 Code uint16
428 Jt uint8
429 Jf uint8
430 K uint32
431}
432
433type BpfHdr struct {
434 Tstamp Timeval
435 Caplen uint32
436 Datalen uint32
437 Hdrlen uint16
438 Pad_cgo_0 [2]byte
439}
440
441type Termios struct {
442 Iflag uint32
443 Oflag uint32
444 Cflag uint32
445 Lflag uint32
446 Cc [20]uint8
447 Ispeed uint32
448 Ospeed uint32
449}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_arm64.go
deleted file mode 100644
index 85d56ea..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_darwin_arm64.go
+++ /dev/null
@@ -1,457 +0,0 @@
1// +build arm64,darwin
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_darwin.go
4
5package unix
6
7const (
8 sizeofPtr = 0x8
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x8
12 sizeofLongLong = 0x8
13)
14
15type (
16 _C_short int16
17 _C_int int32
18 _C_long int64
19 _C_long_long int64
20)
21
22type Timespec struct {
23 Sec int64
24 Nsec int64
25}
26
27type Timeval struct {
28 Sec int64
29 Usec int32
30 Pad_cgo_0 [4]byte
31}
32
33type Timeval32 struct {
34 Sec int32
35 Usec int32
36}
37
38type Rusage struct {
39 Utime Timeval
40 Stime Timeval
41 Maxrss int64
42 Ixrss int64
43 Idrss int64
44 Isrss int64
45 Minflt int64
46 Majflt int64
47 Nswap int64
48 Inblock int64
49 Oublock int64
50 Msgsnd int64
51 Msgrcv int64
52 Nsignals int64
53 Nvcsw int64
54 Nivcsw int64
55}
56
57type Rlimit struct {
58 Cur uint64
59 Max uint64
60}
61
62type _Gid_t uint32
63
64type Stat_t struct {
65 Dev int32
66 Mode uint16
67 Nlink uint16
68 Ino uint64
69 Uid uint32
70 Gid uint32
71 Rdev int32
72 Pad_cgo_0 [4]byte
73 Atimespec Timespec
74 Mtimespec Timespec
75 Ctimespec Timespec
76 Birthtimespec Timespec
77 Size int64
78 Blocks int64
79 Blksize int32
80 Flags uint32
81 Gen uint32
82 Lspare int32
83 Qspare [2]int64
84}
85
86type Statfs_t struct {
87 Bsize uint32
88 Iosize int32
89 Blocks uint64
90 Bfree uint64
91 Bavail uint64
92 Files uint64
93 Ffree uint64
94 Fsid Fsid
95 Owner uint32
96 Type uint32
97 Flags uint32
98 Fssubtype uint32
99 Fstypename [16]int8
100 Mntonname [1024]int8
101 Mntfromname [1024]int8
102 Reserved [8]uint32
103}
104
105type Flock_t struct {
106 Start int64
107 Len int64
108 Pid int32
109 Type int16
110 Whence int16
111}
112
113type Fstore_t struct {
114 Flags uint32
115 Posmode int32
116 Offset int64
117 Length int64
118 Bytesalloc int64
119}
120
121type Radvisory_t struct {
122 Offset int64
123 Count int32
124 Pad_cgo_0 [4]byte
125}
126
127type Fbootstraptransfer_t struct {
128 Offset int64
129 Length uint64
130 Buffer *byte
131}
132
133type Log2phys_t struct {
134 Flags uint32
135 Pad_cgo_0 [8]byte
136 Pad_cgo_1 [8]byte
137}
138
139type Fsid struct {
140 Val [2]int32
141}
142
143type Dirent struct {
144 Ino uint64
145 Seekoff uint64
146 Reclen uint16
147 Namlen uint16
148 Type uint8
149 Name [1024]int8
150 Pad_cgo_0 [3]byte
151}
152
153type RawSockaddrInet4 struct {
154 Len uint8
155 Family uint8
156 Port uint16
157 Addr [4]byte /* in_addr */
158 Zero [8]int8
159}
160
161type RawSockaddrInet6 struct {
162 Len uint8
163 Family uint8
164 Port uint16
165 Flowinfo uint32
166 Addr [16]byte /* in6_addr */
167 Scope_id uint32
168}
169
170type RawSockaddrUnix struct {
171 Len uint8
172 Family uint8
173 Path [104]int8
174}
175
176type RawSockaddrDatalink struct {
177 Len uint8
178 Family uint8
179 Index uint16
180 Type uint8
181 Nlen uint8
182 Alen uint8
183 Slen uint8
184 Data [12]int8
185}
186
187type RawSockaddr struct {
188 Len uint8
189 Family uint8
190 Data [14]int8
191}
192
193type RawSockaddrAny struct {
194 Addr RawSockaddr
195 Pad [92]int8
196}
197
198type _Socklen uint32
199
200type Linger struct {
201 Onoff int32
202 Linger int32
203}
204
205type Iovec struct {
206 Base *byte
207 Len uint64
208}
209
210type IPMreq struct {
211 Multiaddr [4]byte /* in_addr */
212 Interface [4]byte /* in_addr */
213}
214
215type IPv6Mreq struct {
216 Multiaddr [16]byte /* in6_addr */
217 Interface uint32
218}
219
220type Msghdr struct {
221 Name *byte
222 Namelen uint32
223 Pad_cgo_0 [4]byte
224 Iov *Iovec
225 Iovlen int32
226 Pad_cgo_1 [4]byte
227 Control *byte
228 Controllen uint32
229 Flags int32
230}
231
232type Cmsghdr struct {
233 Len uint32
234 Level int32
235 Type int32
236}
237
238type Inet4Pktinfo struct {
239 Ifindex uint32
240 Spec_dst [4]byte /* in_addr */
241 Addr [4]byte /* in_addr */
242}
243
244type Inet6Pktinfo struct {
245 Addr [16]byte /* in6_addr */
246 Ifindex uint32
247}
248
249type IPv6MTUInfo struct {
250 Addr RawSockaddrInet6
251 Mtu uint32
252}
253
254type ICMPv6Filter struct {
255 Filt [8]uint32
256}
257
258const (
259 SizeofSockaddrInet4 = 0x10
260 SizeofSockaddrInet6 = 0x1c
261 SizeofSockaddrAny = 0x6c
262 SizeofSockaddrUnix = 0x6a
263 SizeofSockaddrDatalink = 0x14
264 SizeofLinger = 0x8
265 SizeofIPMreq = 0x8
266 SizeofIPv6Mreq = 0x14
267 SizeofMsghdr = 0x30
268 SizeofCmsghdr = 0xc
269 SizeofInet4Pktinfo = 0xc
270 SizeofInet6Pktinfo = 0x14
271 SizeofIPv6MTUInfo = 0x20
272 SizeofICMPv6Filter = 0x20
273)
274
275const (
276 PTRACE_TRACEME = 0x0
277 PTRACE_CONT = 0x7
278 PTRACE_KILL = 0x8
279)
280
281type Kevent_t struct {
282 Ident uint64
283 Filter int16
284 Flags uint16
285 Fflags uint32
286 Data int64
287 Udata *byte
288}
289
290type FdSet struct {
291 Bits [32]int32
292}
293
294const (
295 SizeofIfMsghdr = 0x70
296 SizeofIfData = 0x60
297 SizeofIfaMsghdr = 0x14
298 SizeofIfmaMsghdr = 0x10
299 SizeofIfmaMsghdr2 = 0x14
300 SizeofRtMsghdr = 0x5c
301 SizeofRtMetrics = 0x38
302)
303
304type IfMsghdr struct {
305 Msglen uint16
306 Version uint8
307 Type uint8
308 Addrs int32
309 Flags int32
310 Index uint16
311 Pad_cgo_0 [2]byte
312 Data IfData
313}
314
315type IfData struct {
316 Type uint8
317 Typelen uint8
318 Physical uint8
319 Addrlen uint8
320 Hdrlen uint8
321 Recvquota uint8
322 Xmitquota uint8
323 Unused1 uint8
324 Mtu uint32
325 Metric uint32
326 Baudrate uint32
327 Ipackets uint32
328 Ierrors uint32
329 Opackets uint32
330 Oerrors uint32
331 Collisions uint32
332 Ibytes uint32
333 Obytes uint32
334 Imcasts uint32
335 Omcasts uint32
336 Iqdrops uint32
337 Noproto uint32
338 Recvtiming uint32
339 Xmittiming uint32
340 Lastchange Timeval32
341 Unused2 uint32
342 Hwassist uint32
343 Reserved1 uint32
344 Reserved2 uint32
345}
346
347type IfaMsghdr struct {
348 Msglen uint16
349 Version uint8
350 Type uint8
351 Addrs int32
352 Flags int32
353 Index uint16
354 Pad_cgo_0 [2]byte
355 Metric int32
356}
357
358type IfmaMsghdr struct {
359 Msglen uint16
360 Version uint8
361 Type uint8
362 Addrs int32
363 Flags int32
364 Index uint16
365 Pad_cgo_0 [2]byte
366}
367
368type IfmaMsghdr2 struct {
369 Msglen uint16
370 Version uint8
371 Type uint8
372 Addrs int32
373 Flags int32
374 Index uint16
375 Pad_cgo_0 [2]byte
376 Refcount int32
377}
378
379type RtMsghdr struct {
380 Msglen uint16
381 Version uint8
382 Type uint8
383 Index uint16
384 Pad_cgo_0 [2]byte
385 Flags int32
386 Addrs int32
387 Pid int32
388 Seq int32
389 Errno int32
390 Use int32
391 Inits uint32
392 Rmx RtMetrics
393}
394
395type RtMetrics struct {
396 Locks uint32
397 Mtu uint32
398 Hopcount uint32
399 Expire int32
400 Recvpipe uint32
401 Sendpipe uint32
402 Ssthresh uint32
403 Rtt uint32
404 Rttvar uint32
405 Pksent uint32
406 Filler [4]uint32
407}
408
409const (
410 SizeofBpfVersion = 0x4
411 SizeofBpfStat = 0x8
412 SizeofBpfProgram = 0x10
413 SizeofBpfInsn = 0x8
414 SizeofBpfHdr = 0x14
415)
416
417type BpfVersion struct {
418 Major uint16
419 Minor uint16
420}
421
422type BpfStat struct {
423 Recv uint32
424 Drop uint32
425}
426
427type BpfProgram struct {
428 Len uint32
429 Pad_cgo_0 [4]byte
430 Insns *BpfInsn
431}
432
433type BpfInsn struct {
434 Code uint16
435 Jt uint8
436 Jf uint8
437 K uint32
438}
439
440type BpfHdr struct {
441 Tstamp Timeval32
442 Caplen uint32
443 Datalen uint32
444 Hdrlen uint16
445 Pad_cgo_0 [2]byte
446}
447
448type Termios struct {
449 Iflag uint64
450 Oflag uint64
451 Cflag uint64
452 Lflag uint64
453 Cc [20]uint8
454 Pad_cgo_0 [4]byte
455 Ispeed uint64
456 Ospeed uint64
457}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_dragonfly_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_dragonfly_386.go
deleted file mode 100644
index b7e7ff0..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_dragonfly_386.go
+++ /dev/null
@@ -1,437 +0,0 @@
1// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs types_dragonfly.go
3
4// +build 386,dragonfly
5
6package unix
7
8const (
9 sizeofPtr = 0x4
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x4
13 sizeofLongLong = 0x8
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int32
25 Nsec int32
26}
27
28type Timeval struct {
29 Sec int32
30 Usec int32
31}
32
33type Rusage struct {
34 Utime Timeval
35 Stime Timeval
36 Maxrss int32
37 Ixrss int32
38 Idrss int32
39 Isrss int32
40 Minflt int32
41 Majflt int32
42 Nswap int32
43 Inblock int32
44 Oublock int32
45 Msgsnd int32
46 Msgrcv int32
47 Nsignals int32
48 Nvcsw int32
49 Nivcsw int32
50}
51
52type Rlimit struct {
53 Cur int64
54 Max int64
55}
56
57type _Gid_t uint32
58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct {
77 Ino uint64
78 Nlink uint32
79 Dev uint32
80 Mode uint16
81 Padding1 uint16
82 Uid uint32
83 Gid uint32
84 Rdev uint32
85 Atim Timespec
86 Mtim Timespec
87 Ctim Timespec
88 Size int64
89 Blocks int64
90 Blksize uint32
91 Flags uint32
92 Gen uint32
93 Lspare int32
94 Qspare1 int64
95 Qspare2 int64
96}
97
98type Statfs_t struct {
99 Spare2 int32
100 Bsize int32
101 Iosize int32
102 Blocks int32
103 Bfree int32
104 Bavail int32
105 Files int32
106 Ffree int32
107 Fsid Fsid
108 Owner uint32
109 Type int32
110 Flags int32
111 Syncwrites int32
112 Asyncwrites int32
113 Fstypename [16]int8
114 Mntonname [80]int8
115 Syncreads int32
116 Asyncreads int32
117 Spares1 int16
118 Mntfromname [80]int8
119 Spares2 int16
120 Spare [2]int32
121}
122
123type Flock_t struct {
124 Start int64
125 Len int64
126 Pid int32
127 Type int16
128 Whence int16
129}
130
131type Dirent struct {
132 Fileno uint64
133 Namlen uint16
134 Type uint8
135 Unused1 uint8
136 Unused2 uint32
137 Name [256]int8
138}
139
140type Fsid struct {
141 Val [2]int32
142}
143
144type RawSockaddrInet4 struct {
145 Len uint8
146 Family uint8
147 Port uint16
148 Addr [4]byte /* in_addr */
149 Zero [8]int8
150}
151
152type RawSockaddrInet6 struct {
153 Len uint8
154 Family uint8
155 Port uint16
156 Flowinfo uint32
157 Addr [16]byte /* in6_addr */
158 Scope_id uint32
159}
160
161type RawSockaddrUnix struct {
162 Len uint8
163 Family uint8
164 Path [104]int8
165}
166
167type RawSockaddrDatalink struct {
168 Len uint8
169 Family uint8
170 Index uint16
171 Type uint8
172 Nlen uint8
173 Alen uint8
174 Slen uint8
175 Data [12]int8
176 Rcf uint16
177 Route [16]uint16
178}
179
180type RawSockaddr struct {
181 Len uint8
182 Family uint8
183 Data [14]int8
184}
185
186type RawSockaddrAny struct {
187 Addr RawSockaddr
188 Pad [92]int8
189}
190
191type _Socklen uint32
192
193type Linger struct {
194 Onoff int32
195 Linger int32
196}
197
198type Iovec struct {
199 Base *byte
200 Len uint32
201}
202
203type IPMreq struct {
204 Multiaddr [4]byte /* in_addr */
205 Interface [4]byte /* in_addr */
206}
207
208type IPv6Mreq struct {
209 Multiaddr [16]byte /* in6_addr */
210 Interface uint32
211}
212
213type Msghdr struct {
214 Name *byte
215 Namelen uint32
216 Iov *Iovec
217 Iovlen int32
218 Control *byte
219 Controllen uint32
220 Flags int32
221}
222
223type Cmsghdr struct {
224 Len uint32
225 Level int32
226 Type int32
227}
228
229type Inet6Pktinfo struct {
230 Addr [16]byte /* in6_addr */
231 Ifindex uint32
232}
233
234type IPv6MTUInfo struct {
235 Addr RawSockaddrInet6
236 Mtu uint32
237}
238
239type ICMPv6Filter struct {
240 Filt [8]uint32
241}
242
243const (
244 SizeofSockaddrInet4 = 0x10
245 SizeofSockaddrInet6 = 0x1c
246 SizeofSockaddrAny = 0x6c
247 SizeofSockaddrUnix = 0x6a
248 SizeofSockaddrDatalink = 0x36
249 SizeofLinger = 0x8
250 SizeofIPMreq = 0x8
251 SizeofIPv6Mreq = 0x14
252 SizeofMsghdr = 0x1c
253 SizeofCmsghdr = 0xc
254 SizeofInet6Pktinfo = 0x14
255 SizeofIPv6MTUInfo = 0x20
256 SizeofICMPv6Filter = 0x20
257)
258
259const (
260 PTRACE_TRACEME = 0x0
261 PTRACE_CONT = 0x7
262 PTRACE_KILL = 0x8
263)
264
265type Kevent_t struct {
266 Ident uint32
267 Filter int16
268 Flags uint16
269 Fflags uint32
270 Data int32
271 Udata *byte
272}
273
274type FdSet struct {
275 Bits [32]uint32
276}
277
278const (
279 SizeofIfMsghdr = 0x68
280 SizeofIfData = 0x58
281 SizeofIfaMsghdr = 0x14
282 SizeofIfmaMsghdr = 0x10
283 SizeofIfAnnounceMsghdr = 0x18
284 SizeofRtMsghdr = 0x5c
285 SizeofRtMetrics = 0x38
286)
287
288type IfMsghdr struct {
289 Msglen uint16
290 Version uint8
291 Type uint8
292 Addrs int32
293 Flags int32
294 Index uint16
295 Pad_cgo_0 [2]byte
296 Data IfData
297}
298
299type IfData struct {
300 Type uint8
301 Physical uint8
302 Addrlen uint8
303 Hdrlen uint8
304 Recvquota uint8
305 Xmitquota uint8
306 Pad_cgo_0 [2]byte
307 Mtu uint32
308 Metric uint32
309 Link_state uint32
310 Baudrate uint64
311 Ipackets uint32
312 Ierrors uint32
313 Opackets uint32
314 Oerrors uint32
315 Collisions uint32
316 Ibytes uint32
317 Obytes uint32
318 Imcasts uint32
319 Omcasts uint32
320 Iqdrops uint32
321 Noproto uint32
322 Hwassist uint32
323 Unused uint32
324 Lastchange Timeval
325}
326
327type IfaMsghdr struct {
328 Msglen uint16
329 Version uint8
330 Type uint8
331 Addrs int32
332 Flags int32
333 Index uint16
334 Pad_cgo_0 [2]byte
335 Metric int32
336}
337
338type IfmaMsghdr struct {
339 Msglen uint16
340 Version uint8
341 Type uint8
342 Addrs int32
343 Flags int32
344 Index uint16
345 Pad_cgo_0 [2]byte
346}
347
348type IfAnnounceMsghdr struct {
349 Msglen uint16
350 Version uint8
351 Type uint8
352 Index uint16
353 Name [16]int8
354 What uint16
355}
356
357type RtMsghdr struct {
358 Msglen uint16
359 Version uint8
360 Type uint8
361 Index uint16
362 Pad_cgo_0 [2]byte
363 Flags int32
364 Addrs int32
365 Pid int32
366 Seq int32
367 Errno int32
368 Use int32
369 Inits uint32
370 Rmx RtMetrics
371}
372
373type RtMetrics struct {
374 Locks uint32
375 Mtu uint32
376 Pksent uint32
377 Expire uint32
378 Sendpipe uint32
379 Ssthresh uint32
380 Rtt uint32
381 Rttvar uint32
382 Recvpipe uint32
383 Hopcount uint32
384 Mssopt uint16
385 Pad uint16
386 Msl uint32
387 Iwmaxsegs uint32
388 Iwcapsegs uint32
389}
390
391const (
392 SizeofBpfVersion = 0x4
393 SizeofBpfStat = 0x8
394 SizeofBpfProgram = 0x8
395 SizeofBpfInsn = 0x8
396 SizeofBpfHdr = 0x14
397)
398
399type BpfVersion struct {
400 Major uint16
401 Minor uint16
402}
403
404type BpfStat struct {
405 Recv uint32
406 Drop uint32
407}
408
409type BpfProgram struct {
410 Len uint32
411 Insns *BpfInsn
412}
413
414type BpfInsn struct {
415 Code uint16
416 Jt uint8
417 Jf uint8
418 K uint32
419}
420
421type BpfHdr struct {
422 Tstamp Timeval
423 Caplen uint32
424 Datalen uint32
425 Hdrlen uint16
426 Pad_cgo_0 [2]byte
427}
428
429type Termios struct {
430 Iflag uint32
431 Oflag uint32
432 Cflag uint32
433 Lflag uint32
434 Cc [20]uint8
435 Ispeed uint32
436 Ospeed uint32
437}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
deleted file mode 100644
index 8a6f4e1..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
+++ /dev/null
@@ -1,443 +0,0 @@
1// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs types_dragonfly.go
3
4// +build amd64,dragonfly
5
6package unix
7
8const (
9 sizeofPtr = 0x8
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x8
13 sizeofLongLong = 0x8
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int64
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int64
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int64
31}
32
33type Rusage struct {
34 Utime Timeval
35 Stime Timeval
36 Maxrss int64
37 Ixrss int64
38 Idrss int64
39 Isrss int64
40 Minflt int64
41 Majflt int64
42 Nswap int64
43 Inblock int64
44 Oublock int64
45 Msgsnd int64
46 Msgrcv int64
47 Nsignals int64
48 Nvcsw int64
49 Nivcsw int64
50}
51
52type Rlimit struct {
53 Cur int64
54 Max int64
55}
56
57type _Gid_t uint32
58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct {
77 Ino uint64
78 Nlink uint32
79 Dev uint32
80 Mode uint16
81 Padding1 uint16
82 Uid uint32
83 Gid uint32
84 Rdev uint32
85 Atim Timespec
86 Mtim Timespec
87 Ctim Timespec
88 Size int64
89 Blocks int64
90 Blksize uint32
91 Flags uint32
92 Gen uint32
93 Lspare int32
94 Qspare1 int64
95 Qspare2 int64
96}
97
98type Statfs_t struct {
99 Spare2 int64
100 Bsize int64
101 Iosize int64
102 Blocks int64
103 Bfree int64
104 Bavail int64
105 Files int64
106 Ffree int64
107 Fsid Fsid
108 Owner uint32
109 Type int32
110 Flags int32
111 Pad_cgo_0 [4]byte
112 Syncwrites int64
113 Asyncwrites int64
114 Fstypename [16]int8
115 Mntonname [80]int8
116 Syncreads int64
117 Asyncreads int64
118 Spares1 int16
119 Mntfromname [80]int8
120 Spares2 int16
121 Pad_cgo_1 [4]byte
122 Spare [2]int64
123}
124
125type Flock_t struct {
126 Start int64
127 Len int64
128 Pid int32
129 Type int16
130 Whence int16
131}
132
133type Dirent struct {
134 Fileno uint64
135 Namlen uint16
136 Type uint8
137 Unused1 uint8
138 Unused2 uint32
139 Name [256]int8
140}
141
142type Fsid struct {
143 Val [2]int32
144}
145
146type RawSockaddrInet4 struct {
147 Len uint8
148 Family uint8
149 Port uint16
150 Addr [4]byte /* in_addr */
151 Zero [8]int8
152}
153
154type RawSockaddrInet6 struct {
155 Len uint8
156 Family uint8
157 Port uint16
158 Flowinfo uint32
159 Addr [16]byte /* in6_addr */
160 Scope_id uint32
161}
162
163type RawSockaddrUnix struct {
164 Len uint8
165 Family uint8
166 Path [104]int8
167}
168
169type RawSockaddrDatalink struct {
170 Len uint8
171 Family uint8
172 Index uint16
173 Type uint8
174 Nlen uint8
175 Alen uint8
176 Slen uint8
177 Data [12]int8
178 Rcf uint16
179 Route [16]uint16
180}
181
182type RawSockaddr struct {
183 Len uint8
184 Family uint8
185 Data [14]int8
186}
187
188type RawSockaddrAny struct {
189 Addr RawSockaddr
190 Pad [92]int8
191}
192
193type _Socklen uint32
194
195type Linger struct {
196 Onoff int32
197 Linger int32
198}
199
200type Iovec struct {
201 Base *byte
202 Len uint64
203}
204
205type IPMreq struct {
206 Multiaddr [4]byte /* in_addr */
207 Interface [4]byte /* in_addr */
208}
209
210type IPv6Mreq struct {
211 Multiaddr [16]byte /* in6_addr */
212 Interface uint32
213}
214
215type Msghdr struct {
216 Name *byte
217 Namelen uint32
218 Pad_cgo_0 [4]byte
219 Iov *Iovec
220 Iovlen int32
221 Pad_cgo_1 [4]byte
222 Control *byte
223 Controllen uint32
224 Flags int32
225}
226
227type Cmsghdr struct {
228 Len uint32
229 Level int32
230 Type int32
231}
232
233type Inet6Pktinfo struct {
234 Addr [16]byte /* in6_addr */
235 Ifindex uint32
236}
237
238type IPv6MTUInfo struct {
239 Addr RawSockaddrInet6
240 Mtu uint32
241}
242
243type ICMPv6Filter struct {
244 Filt [8]uint32
245}
246
247const (
248 SizeofSockaddrInet4 = 0x10
249 SizeofSockaddrInet6 = 0x1c
250 SizeofSockaddrAny = 0x6c
251 SizeofSockaddrUnix = 0x6a
252 SizeofSockaddrDatalink = 0x36
253 SizeofLinger = 0x8
254 SizeofIPMreq = 0x8
255 SizeofIPv6Mreq = 0x14
256 SizeofMsghdr = 0x30
257 SizeofCmsghdr = 0xc
258 SizeofInet6Pktinfo = 0x14
259 SizeofIPv6MTUInfo = 0x20
260 SizeofICMPv6Filter = 0x20
261)
262
263const (
264 PTRACE_TRACEME = 0x0
265 PTRACE_CONT = 0x7
266 PTRACE_KILL = 0x8
267)
268
269type Kevent_t struct {
270 Ident uint64
271 Filter int16
272 Flags uint16
273 Fflags uint32
274 Data int64
275 Udata *byte
276}
277
278type FdSet struct {
279 Bits [16]uint64
280}
281
282const (
283 SizeofIfMsghdr = 0xb0
284 SizeofIfData = 0xa0
285 SizeofIfaMsghdr = 0x14
286 SizeofIfmaMsghdr = 0x10
287 SizeofIfAnnounceMsghdr = 0x18
288 SizeofRtMsghdr = 0x98
289 SizeofRtMetrics = 0x70
290)
291
292type IfMsghdr struct {
293 Msglen uint16
294 Version uint8
295 Type uint8
296 Addrs int32
297 Flags int32
298 Index uint16
299 Pad_cgo_0 [2]byte
300 Data IfData
301}
302
303type IfData struct {
304 Type uint8
305 Physical uint8
306 Addrlen uint8
307 Hdrlen uint8
308 Recvquota uint8
309 Xmitquota uint8
310 Pad_cgo_0 [2]byte
311 Mtu uint64
312 Metric uint64
313 Link_state uint64
314 Baudrate uint64
315 Ipackets uint64
316 Ierrors uint64
317 Opackets uint64
318 Oerrors uint64
319 Collisions uint64
320 Ibytes uint64
321 Obytes uint64
322 Imcasts uint64
323 Omcasts uint64
324 Iqdrops uint64
325 Noproto uint64
326 Hwassist uint64
327 Unused uint64
328 Lastchange Timeval
329}
330
331type IfaMsghdr struct {
332 Msglen uint16
333 Version uint8
334 Type uint8
335 Addrs int32
336 Flags int32
337 Index uint16
338 Pad_cgo_0 [2]byte
339 Metric int32
340}
341
342type IfmaMsghdr struct {
343 Msglen uint16
344 Version uint8
345 Type uint8
346 Addrs int32
347 Flags int32
348 Index uint16
349 Pad_cgo_0 [2]byte
350}
351
352type IfAnnounceMsghdr struct {
353 Msglen uint16
354 Version uint8
355 Type uint8
356 Index uint16
357 Name [16]int8
358 What uint16
359}
360
361type RtMsghdr struct {
362 Msglen uint16
363 Version uint8
364 Type uint8
365 Index uint16
366 Pad_cgo_0 [2]byte
367 Flags int32
368 Addrs int32
369 Pid int32
370 Seq int32
371 Errno int32
372 Use int32
373 Inits uint64
374 Rmx RtMetrics
375}
376
377type RtMetrics struct {
378 Locks uint64
379 Mtu uint64
380 Pksent uint64
381 Expire uint64
382 Sendpipe uint64
383 Ssthresh uint64
384 Rtt uint64
385 Rttvar uint64
386 Recvpipe uint64
387 Hopcount uint64
388 Mssopt uint16
389 Pad uint16
390 Pad_cgo_0 [4]byte
391 Msl uint64
392 Iwmaxsegs uint64
393 Iwcapsegs uint64
394}
395
396const (
397 SizeofBpfVersion = 0x4
398 SizeofBpfStat = 0x8
399 SizeofBpfProgram = 0x10
400 SizeofBpfInsn = 0x8
401 SizeofBpfHdr = 0x20
402)
403
404type BpfVersion struct {
405 Major uint16
406 Minor uint16
407}
408
409type BpfStat struct {
410 Recv uint32
411 Drop uint32
412}
413
414type BpfProgram struct {
415 Len uint32
416 Pad_cgo_0 [4]byte
417 Insns *BpfInsn
418}
419
420type BpfInsn struct {
421 Code uint16
422 Jt uint8
423 Jf uint8
424 K uint32
425}
426
427type BpfHdr struct {
428 Tstamp Timeval
429 Caplen uint32
430 Datalen uint32
431 Hdrlen uint16
432 Pad_cgo_0 [6]byte
433}
434
435type Termios struct {
436 Iflag uint32
437 Oflag uint32
438 Cflag uint32
439 Lflag uint32
440 Cc [20]uint8
441 Ispeed uint32
442 Ospeed uint32
443}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_386.go
deleted file mode 100644
index 8cf3094..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_386.go
+++ /dev/null
@@ -1,502 +0,0 @@
1// +build 386,freebsd
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_freebsd.go
4
5package unix
6
7const (
8 sizeofPtr = 0x4
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x4
12 sizeofLongLong = 0x8
13)
14
15type (
16 _C_short int16
17 _C_int int32
18 _C_long int32
19 _C_long_long int64
20)
21
22type Timespec struct {
23 Sec int32
24 Nsec int32
25}
26
27type Timeval struct {
28 Sec int32
29 Usec int32
30}
31
32type Rusage struct {
33 Utime Timeval
34 Stime Timeval
35 Maxrss int32
36 Ixrss int32
37 Idrss int32
38 Isrss int32
39 Minflt int32
40 Majflt int32
41 Nswap int32
42 Inblock int32
43 Oublock int32
44 Msgsnd int32
45 Msgrcv int32
46 Nsignals int32
47 Nvcsw int32
48 Nivcsw int32
49}
50
51type Rlimit struct {
52 Cur int64
53 Max int64
54}
55
56type _Gid_t uint32
57
58const (
59 S_IFMT = 0xf000
60 S_IFIFO = 0x1000
61 S_IFCHR = 0x2000
62 S_IFDIR = 0x4000
63 S_IFBLK = 0x6000
64 S_IFREG = 0x8000
65 S_IFLNK = 0xa000
66 S_IFSOCK = 0xc000
67 S_ISUID = 0x800
68 S_ISGID = 0x400
69 S_ISVTX = 0x200
70 S_IRUSR = 0x100
71 S_IWUSR = 0x80
72 S_IXUSR = 0x40
73)
74
75type Stat_t struct {
76 Dev uint32
77 Ino uint32
78 Mode uint16
79 Nlink uint16
80 Uid uint32
81 Gid uint32
82 Rdev uint32
83 Atimespec Timespec
84 Mtimespec Timespec
85 Ctimespec Timespec
86 Size int64
87 Blocks int64
88 Blksize uint32
89 Flags uint32
90 Gen uint32
91 Lspare int32
92 Birthtimespec Timespec
93 Pad_cgo_0 [8]byte
94}
95
96type Statfs_t struct {
97 Version uint32
98 Type uint32
99 Flags uint64
100 Bsize uint64
101 Iosize uint64
102 Blocks uint64
103 Bfree uint64
104 Bavail int64
105 Files uint64
106 Ffree int64
107 Syncwrites uint64
108 Asyncwrites uint64
109 Syncreads uint64
110 Asyncreads uint64
111 Spare [10]uint64
112 Namemax uint32
113 Owner uint32
114 Fsid Fsid
115 Charspare [80]int8
116 Fstypename [16]int8
117 Mntfromname [88]int8
118 Mntonname [88]int8
119}
120
121type Flock_t struct {
122 Start int64
123 Len int64
124 Pid int32
125 Type int16
126 Whence int16
127 Sysid int32
128}
129
130type Dirent struct {
131 Fileno uint32
132 Reclen uint16
133 Type uint8
134 Namlen uint8
135 Name [256]int8
136}
137
138type Fsid struct {
139 Val [2]int32
140}
141
142const (
143 FADV_NORMAL = 0x0
144 FADV_RANDOM = 0x1
145 FADV_SEQUENTIAL = 0x2
146 FADV_WILLNEED = 0x3
147 FADV_DONTNEED = 0x4
148 FADV_NOREUSE = 0x5
149)
150
151type RawSockaddrInet4 struct {
152 Len uint8
153 Family uint8
154 Port uint16
155 Addr [4]byte /* in_addr */
156 Zero [8]int8
157}
158
159type RawSockaddrInet6 struct {
160 Len uint8
161 Family uint8
162 Port uint16
163 Flowinfo uint32
164 Addr [16]byte /* in6_addr */
165 Scope_id uint32
166}
167
168type RawSockaddrUnix struct {
169 Len uint8
170 Family uint8
171 Path [104]int8
172}
173
174type RawSockaddrDatalink struct {
175 Len uint8
176 Family uint8
177 Index uint16
178 Type uint8
179 Nlen uint8
180 Alen uint8
181 Slen uint8
182 Data [46]int8
183}
184
185type RawSockaddr struct {
186 Len uint8
187 Family uint8
188 Data [14]int8
189}
190
191type RawSockaddrAny struct {
192 Addr RawSockaddr
193 Pad [92]int8
194}
195
196type _Socklen uint32
197
198type Linger struct {
199 Onoff int32
200 Linger int32
201}
202
203type Iovec struct {
204 Base *byte
205 Len uint32
206}
207
208type IPMreq struct {
209 Multiaddr [4]byte /* in_addr */
210 Interface [4]byte /* in_addr */
211}
212
213type IPMreqn struct {
214 Multiaddr [4]byte /* in_addr */
215 Address [4]byte /* in_addr */
216 Ifindex int32
217}
218
219type IPv6Mreq struct {
220 Multiaddr [16]byte /* in6_addr */
221 Interface uint32
222}
223
224type Msghdr struct {
225 Name *byte
226 Namelen uint32
227 Iov *Iovec
228 Iovlen int32
229 Control *byte
230 Controllen uint32
231 Flags int32
232}
233
234type Cmsghdr struct {
235 Len uint32
236 Level int32
237 Type int32
238}
239
240type Inet6Pktinfo struct {
241 Addr [16]byte /* in6_addr */
242 Ifindex uint32
243}
244
245type IPv6MTUInfo struct {
246 Addr RawSockaddrInet6
247 Mtu uint32
248}
249
250type ICMPv6Filter struct {
251 Filt [8]uint32
252}
253
254const (
255 SizeofSockaddrInet4 = 0x10
256 SizeofSockaddrInet6 = 0x1c
257 SizeofSockaddrAny = 0x6c
258 SizeofSockaddrUnix = 0x6a
259 SizeofSockaddrDatalink = 0x36
260 SizeofLinger = 0x8
261 SizeofIPMreq = 0x8
262 SizeofIPMreqn = 0xc
263 SizeofIPv6Mreq = 0x14
264 SizeofMsghdr = 0x1c
265 SizeofCmsghdr = 0xc
266 SizeofInet6Pktinfo = 0x14
267 SizeofIPv6MTUInfo = 0x20
268 SizeofICMPv6Filter = 0x20
269)
270
271const (
272 PTRACE_TRACEME = 0x0
273 PTRACE_CONT = 0x7
274 PTRACE_KILL = 0x8
275)
276
277type Kevent_t struct {
278 Ident uint32
279 Filter int16
280 Flags uint16
281 Fflags uint32
282 Data int32
283 Udata *byte
284}
285
286type FdSet struct {
287 X__fds_bits [32]uint32
288}
289
290const (
291 sizeofIfMsghdr = 0x64
292 SizeofIfMsghdr = 0x60
293 sizeofIfData = 0x54
294 SizeofIfData = 0x50
295 SizeofIfaMsghdr = 0x14
296 SizeofIfmaMsghdr = 0x10
297 SizeofIfAnnounceMsghdr = 0x18
298 SizeofRtMsghdr = 0x5c
299 SizeofRtMetrics = 0x38
300)
301
302type ifMsghdr struct {
303 Msglen uint16
304 Version uint8
305 Type uint8
306 Addrs int32
307 Flags int32
308 Index uint16
309 Pad_cgo_0 [2]byte
310 Data ifData
311}
312
313type IfMsghdr struct {
314 Msglen uint16
315 Version uint8
316 Type uint8
317 Addrs int32
318 Flags int32
319 Index uint16
320 Pad_cgo_0 [2]byte
321 Data IfData
322}
323
324type ifData struct {
325 Type uint8
326 Physical uint8
327 Addrlen uint8
328 Hdrlen uint8
329 Link_state uint8
330 Vhid uint8
331 Baudrate_pf uint8
332 Datalen uint8
333 Mtu uint32
334 Metric uint32
335 Baudrate uint32
336 Ipackets uint32
337 Ierrors uint32
338 Opackets uint32
339 Oerrors uint32
340 Collisions uint32
341 Ibytes uint32
342 Obytes uint32
343 Imcasts uint32
344 Omcasts uint32
345 Iqdrops uint32
346 Noproto uint32
347 Hwassist uint64
348 Epoch int32
349 Lastchange Timeval
350}
351
352type IfData struct {
353 Type uint8
354 Physical uint8
355 Addrlen uint8
356 Hdrlen uint8
357 Link_state uint8
358 Spare_char1 uint8
359 Spare_char2 uint8
360 Datalen uint8
361 Mtu uint32
362 Metric uint32
363 Baudrate uint32
364 Ipackets uint32
365 Ierrors uint32
366 Opackets uint32
367 Oerrors uint32
368 Collisions uint32
369 Ibytes uint32
370 Obytes uint32
371 Imcasts uint32
372 Omcasts uint32
373 Iqdrops uint32
374 Noproto uint32
375 Hwassist uint32
376 Epoch int32
377 Lastchange Timeval
378}
379
380type IfaMsghdr struct {
381 Msglen uint16
382 Version uint8
383 Type uint8
384 Addrs int32
385 Flags int32
386 Index uint16
387 Pad_cgo_0 [2]byte
388 Metric int32
389}
390
391type IfmaMsghdr struct {
392 Msglen uint16
393 Version uint8
394 Type uint8
395 Addrs int32
396 Flags int32
397 Index uint16
398 Pad_cgo_0 [2]byte
399}
400
401type IfAnnounceMsghdr struct {
402 Msglen uint16
403 Version uint8
404 Type uint8
405 Index uint16
406 Name [16]int8
407 What uint16
408}
409
410type RtMsghdr struct {
411 Msglen uint16
412 Version uint8
413 Type uint8
414 Index uint16
415 Pad_cgo_0 [2]byte
416 Flags int32
417 Addrs int32
418 Pid int32
419 Seq int32
420 Errno int32
421 Fmask int32
422 Inits uint32
423 Rmx RtMetrics
424}
425
426type RtMetrics struct {
427 Locks uint32
428 Mtu uint32
429 Hopcount uint32
430 Expire uint32
431 Recvpipe uint32
432 Sendpipe uint32
433 Ssthresh uint32
434 Rtt uint32
435 Rttvar uint32
436 Pksent uint32
437 Weight uint32
438 Filler [3]uint32
439}
440
441const (
442 SizeofBpfVersion = 0x4
443 SizeofBpfStat = 0x8
444 SizeofBpfZbuf = 0xc
445 SizeofBpfProgram = 0x8
446 SizeofBpfInsn = 0x8
447 SizeofBpfHdr = 0x14
448 SizeofBpfZbufHeader = 0x20
449)
450
451type BpfVersion struct {
452 Major uint16
453 Minor uint16
454}
455
456type BpfStat struct {
457 Recv uint32
458 Drop uint32
459}
460
461type BpfZbuf struct {
462 Bufa *byte
463 Bufb *byte
464 Buflen uint32
465}
466
467type BpfProgram struct {
468 Len uint32
469 Insns *BpfInsn
470}
471
472type BpfInsn struct {
473 Code uint16
474 Jt uint8
475 Jf uint8
476 K uint32
477}
478
479type BpfHdr struct {
480 Tstamp Timeval
481 Caplen uint32
482 Datalen uint32
483 Hdrlen uint16
484 Pad_cgo_0 [2]byte
485}
486
487type BpfZbufHeader struct {
488 Kernel_gen uint32
489 Kernel_len uint32
490 User_gen uint32
491 X_bzh_pad [5]uint32
492}
493
494type Termios struct {
495 Iflag uint32
496 Oflag uint32
497 Cflag uint32
498 Lflag uint32
499 Cc [20]uint8
500 Ispeed uint32
501 Ospeed uint32
502}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
deleted file mode 100644
index e5feb20..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
+++ /dev/null
@@ -1,505 +0,0 @@
1// +build amd64,freebsd
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_freebsd.go
4
5package unix
6
7const (
8 sizeofPtr = 0x8
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x8
12 sizeofLongLong = 0x8
13)
14
15type (
16 _C_short int16
17 _C_int int32
18 _C_long int64
19 _C_long_long int64
20)
21
22type Timespec struct {
23 Sec int64
24 Nsec int64
25}
26
27type Timeval struct {
28 Sec int64
29 Usec int64
30}
31
32type Rusage struct {
33 Utime Timeval
34 Stime Timeval
35 Maxrss int64
36 Ixrss int64
37 Idrss int64
38 Isrss int64
39 Minflt int64
40 Majflt int64
41 Nswap int64
42 Inblock int64
43 Oublock int64
44 Msgsnd int64
45 Msgrcv int64
46 Nsignals int64
47 Nvcsw int64
48 Nivcsw int64
49}
50
51type Rlimit struct {
52 Cur int64
53 Max int64
54}
55
56type _Gid_t uint32
57
58const (
59 S_IFMT = 0xf000
60 S_IFIFO = 0x1000
61 S_IFCHR = 0x2000
62 S_IFDIR = 0x4000
63 S_IFBLK = 0x6000
64 S_IFREG = 0x8000
65 S_IFLNK = 0xa000
66 S_IFSOCK = 0xc000
67 S_ISUID = 0x800
68 S_ISGID = 0x400
69 S_ISVTX = 0x200
70 S_IRUSR = 0x100
71 S_IWUSR = 0x80
72 S_IXUSR = 0x40
73)
74
75type Stat_t struct {
76 Dev uint32
77 Ino uint32
78 Mode uint16
79 Nlink uint16
80 Uid uint32
81 Gid uint32
82 Rdev uint32
83 Atimespec Timespec
84 Mtimespec Timespec
85 Ctimespec Timespec
86 Size int64
87 Blocks int64
88 Blksize uint32
89 Flags uint32
90 Gen uint32
91 Lspare int32
92 Birthtimespec Timespec
93}
94
95type Statfs_t struct {
96 Version uint32
97 Type uint32
98 Flags uint64
99 Bsize uint64
100 Iosize uint64
101 Blocks uint64
102 Bfree uint64
103 Bavail int64
104 Files uint64
105 Ffree int64
106 Syncwrites uint64
107 Asyncwrites uint64
108 Syncreads uint64
109 Asyncreads uint64
110 Spare [10]uint64
111 Namemax uint32
112 Owner uint32
113 Fsid Fsid
114 Charspare [80]int8
115 Fstypename [16]int8
116 Mntfromname [88]int8
117 Mntonname [88]int8
118}
119
120type Flock_t struct {
121 Start int64
122 Len int64
123 Pid int32
124 Type int16
125 Whence int16
126 Sysid int32
127 Pad_cgo_0 [4]byte
128}
129
130type Dirent struct {
131 Fileno uint32
132 Reclen uint16
133 Type uint8
134 Namlen uint8
135 Name [256]int8
136}
137
138type Fsid struct {
139 Val [2]int32
140}
141
142const (
143 FADV_NORMAL = 0x0
144 FADV_RANDOM = 0x1
145 FADV_SEQUENTIAL = 0x2
146 FADV_WILLNEED = 0x3
147 FADV_DONTNEED = 0x4
148 FADV_NOREUSE = 0x5
149)
150
151type RawSockaddrInet4 struct {
152 Len uint8
153 Family uint8
154 Port uint16
155 Addr [4]byte /* in_addr */
156 Zero [8]int8
157}
158
159type RawSockaddrInet6 struct {
160 Len uint8
161 Family uint8
162 Port uint16
163 Flowinfo uint32
164 Addr [16]byte /* in6_addr */
165 Scope_id uint32
166}
167
168type RawSockaddrUnix struct {
169 Len uint8
170 Family uint8
171 Path [104]int8
172}
173
174type RawSockaddrDatalink struct {
175 Len uint8
176 Family uint8
177 Index uint16
178 Type uint8
179 Nlen uint8
180 Alen uint8
181 Slen uint8
182 Data [46]int8
183}
184
185type RawSockaddr struct {
186 Len uint8
187 Family uint8
188 Data [14]int8
189}
190
191type RawSockaddrAny struct {
192 Addr RawSockaddr
193 Pad [92]int8
194}
195
196type _Socklen uint32
197
198type Linger struct {
199 Onoff int32
200 Linger int32
201}
202
203type Iovec struct {
204 Base *byte
205 Len uint64
206}
207
208type IPMreq struct {
209 Multiaddr [4]byte /* in_addr */
210 Interface [4]byte /* in_addr */
211}
212
213type IPMreqn struct {
214 Multiaddr [4]byte /* in_addr */
215 Address [4]byte /* in_addr */
216 Ifindex int32
217}
218
219type IPv6Mreq struct {
220 Multiaddr [16]byte /* in6_addr */
221 Interface uint32
222}
223
224type Msghdr struct {
225 Name *byte
226 Namelen uint32
227 Pad_cgo_0 [4]byte
228 Iov *Iovec
229 Iovlen int32
230 Pad_cgo_1 [4]byte
231 Control *byte
232 Controllen uint32
233 Flags int32
234}
235
236type Cmsghdr struct {
237 Len uint32
238 Level int32
239 Type int32
240}
241
242type Inet6Pktinfo struct {
243 Addr [16]byte /* in6_addr */
244 Ifindex uint32
245}
246
247type IPv6MTUInfo struct {
248 Addr RawSockaddrInet6
249 Mtu uint32
250}
251
252type ICMPv6Filter struct {
253 Filt [8]uint32
254}
255
256const (
257 SizeofSockaddrInet4 = 0x10
258 SizeofSockaddrInet6 = 0x1c
259 SizeofSockaddrAny = 0x6c
260 SizeofSockaddrUnix = 0x6a
261 SizeofSockaddrDatalink = 0x36
262 SizeofLinger = 0x8
263 SizeofIPMreq = 0x8
264 SizeofIPMreqn = 0xc
265 SizeofIPv6Mreq = 0x14
266 SizeofMsghdr = 0x30
267 SizeofCmsghdr = 0xc
268 SizeofInet6Pktinfo = 0x14
269 SizeofIPv6MTUInfo = 0x20
270 SizeofICMPv6Filter = 0x20
271)
272
273const (
274 PTRACE_TRACEME = 0x0
275 PTRACE_CONT = 0x7
276 PTRACE_KILL = 0x8
277)
278
279type Kevent_t struct {
280 Ident uint64
281 Filter int16
282 Flags uint16
283 Fflags uint32
284 Data int64
285 Udata *byte
286}
287
288type FdSet struct {
289 X__fds_bits [16]uint64
290}
291
292const (
293 sizeofIfMsghdr = 0xa8
294 SizeofIfMsghdr = 0xa8
295 sizeofIfData = 0x98
296 SizeofIfData = 0x98
297 SizeofIfaMsghdr = 0x14
298 SizeofIfmaMsghdr = 0x10
299 SizeofIfAnnounceMsghdr = 0x18
300 SizeofRtMsghdr = 0x98
301 SizeofRtMetrics = 0x70
302)
303
304type ifMsghdr struct {
305 Msglen uint16
306 Version uint8
307 Type uint8
308 Addrs int32
309 Flags int32
310 Index uint16
311 Pad_cgo_0 [2]byte
312 Data ifData
313}
314
315type IfMsghdr struct {
316 Msglen uint16
317 Version uint8
318 Type uint8
319 Addrs int32
320 Flags int32
321 Index uint16
322 Pad_cgo_0 [2]byte
323 Data IfData
324}
325
326type ifData struct {
327 Type uint8
328 Physical uint8
329 Addrlen uint8
330 Hdrlen uint8
331 Link_state uint8
332 Vhid uint8
333 Baudrate_pf uint8
334 Datalen uint8
335 Mtu uint64
336 Metric uint64
337 Baudrate uint64
338 Ipackets uint64
339 Ierrors uint64
340 Opackets uint64
341 Oerrors uint64
342 Collisions uint64
343 Ibytes uint64
344 Obytes uint64
345 Imcasts uint64
346 Omcasts uint64
347 Iqdrops uint64
348 Noproto uint64
349 Hwassist uint64
350 Epoch int64
351 Lastchange Timeval
352}
353
354type IfData struct {
355 Type uint8
356 Physical uint8
357 Addrlen uint8
358 Hdrlen uint8
359 Link_state uint8
360 Spare_char1 uint8
361 Spare_char2 uint8
362 Datalen uint8
363 Mtu uint64
364 Metric uint64
365 Baudrate uint64
366 Ipackets uint64
367 Ierrors uint64
368 Opackets uint64
369 Oerrors uint64
370 Collisions uint64
371 Ibytes uint64
372 Obytes uint64
373 Imcasts uint64
374 Omcasts uint64
375 Iqdrops uint64
376 Noproto uint64
377 Hwassist uint64
378 Epoch int64
379 Lastchange Timeval
380}
381
382type IfaMsghdr struct {
383 Msglen uint16
384 Version uint8
385 Type uint8
386 Addrs int32
387 Flags int32
388 Index uint16
389 Pad_cgo_0 [2]byte
390 Metric int32
391}
392
393type IfmaMsghdr struct {
394 Msglen uint16
395 Version uint8
396 Type uint8
397 Addrs int32
398 Flags int32
399 Index uint16
400 Pad_cgo_0 [2]byte
401}
402
403type IfAnnounceMsghdr struct {
404 Msglen uint16
405 Version uint8
406 Type uint8
407 Index uint16
408 Name [16]int8
409 What uint16
410}
411
412type RtMsghdr struct {
413 Msglen uint16
414 Version uint8
415 Type uint8
416 Index uint16
417 Pad_cgo_0 [2]byte
418 Flags int32
419 Addrs int32
420 Pid int32
421 Seq int32
422 Errno int32
423 Fmask int32
424 Inits uint64
425 Rmx RtMetrics
426}
427
428type RtMetrics struct {
429 Locks uint64
430 Mtu uint64
431 Hopcount uint64
432 Expire uint64
433 Recvpipe uint64
434 Sendpipe uint64
435 Ssthresh uint64
436 Rtt uint64
437 Rttvar uint64
438 Pksent uint64
439 Weight uint64
440 Filler [3]uint64
441}
442
443const (
444 SizeofBpfVersion = 0x4
445 SizeofBpfStat = 0x8
446 SizeofBpfZbuf = 0x18
447 SizeofBpfProgram = 0x10
448 SizeofBpfInsn = 0x8
449 SizeofBpfHdr = 0x20
450 SizeofBpfZbufHeader = 0x20
451)
452
453type BpfVersion struct {
454 Major uint16
455 Minor uint16
456}
457
458type BpfStat struct {
459 Recv uint32
460 Drop uint32
461}
462
463type BpfZbuf struct {
464 Bufa *byte
465 Bufb *byte
466 Buflen uint64
467}
468
469type BpfProgram struct {
470 Len uint32
471 Pad_cgo_0 [4]byte
472 Insns *BpfInsn
473}
474
475type BpfInsn struct {
476 Code uint16
477 Jt uint8
478 Jf uint8
479 K uint32
480}
481
482type BpfHdr struct {
483 Tstamp Timeval
484 Caplen uint32
485 Datalen uint32
486 Hdrlen uint16
487 Pad_cgo_0 [6]byte
488}
489
490type BpfZbufHeader struct {
491 Kernel_gen uint32
492 Kernel_len uint32
493 User_gen uint32
494 X_bzh_pad [5]uint32
495}
496
497type Termios struct {
498 Iflag uint32
499 Oflag uint32
500 Cflag uint32
501 Lflag uint32
502 Cc [20]uint8
503 Ispeed uint32
504 Ospeed uint32
505}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_arm.go
deleted file mode 100644
index 5472b54..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_freebsd_arm.go
+++ /dev/null
@@ -1,497 +0,0 @@
1// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs -- -fsigned-char types_freebsd.go
3
4// +build arm,freebsd
5
6package unix
7
8const (
9 sizeofPtr = 0x4
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x4
13 sizeofLongLong = 0x8
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int32
26 Pad_cgo_0 [4]byte
27}
28
29type Timeval struct {
30 Sec int64
31 Usec int32
32 Pad_cgo_0 [4]byte
33}
34
35type Rusage struct {
36 Utime Timeval
37 Stime Timeval
38 Maxrss int32
39 Ixrss int32
40 Idrss int32
41 Isrss int32
42 Minflt int32
43 Majflt int32
44 Nswap int32
45 Inblock int32
46 Oublock int32
47 Msgsnd int32
48 Msgrcv int32
49 Nsignals int32
50 Nvcsw int32
51 Nivcsw int32
52}
53
54type Rlimit struct {
55 Cur int64
56 Max int64
57}
58
59type _Gid_t uint32
60
61const (
62 S_IFMT = 0xf000
63 S_IFIFO = 0x1000
64 S_IFCHR = 0x2000
65 S_IFDIR = 0x4000
66 S_IFBLK = 0x6000
67 S_IFREG = 0x8000
68 S_IFLNK = 0xa000
69 S_IFSOCK = 0xc000
70 S_ISUID = 0x800
71 S_ISGID = 0x400
72 S_ISVTX = 0x200
73 S_IRUSR = 0x100
74 S_IWUSR = 0x80
75 S_IXUSR = 0x40
76)
77
78type Stat_t struct {
79 Dev uint32
80 Ino uint32
81 Mode uint16
82 Nlink uint16
83 Uid uint32
84 Gid uint32
85 Rdev uint32
86 Atimespec Timespec
87 Mtimespec Timespec
88 Ctimespec Timespec
89 Size int64
90 Blocks int64
91 Blksize uint32
92 Flags uint32
93 Gen uint32
94 Lspare int32
95 Birthtimespec Timespec
96}
97
98type Statfs_t struct {
99 Version uint32
100 Type uint32
101 Flags uint64
102 Bsize uint64
103 Iosize uint64
104 Blocks uint64
105 Bfree uint64
106 Bavail int64
107 Files uint64
108 Ffree int64
109 Syncwrites uint64
110 Asyncwrites uint64
111 Syncreads uint64
112 Asyncreads uint64
113 Spare [10]uint64
114 Namemax uint32
115 Owner uint32
116 Fsid Fsid
117 Charspare [80]int8
118 Fstypename [16]int8
119 Mntfromname [88]int8
120 Mntonname [88]int8
121}
122
123type Flock_t struct {
124 Start int64
125 Len int64
126 Pid int32
127 Type int16
128 Whence int16
129 Sysid int32
130 Pad_cgo_0 [4]byte
131}
132
133type Dirent struct {
134 Fileno uint32
135 Reclen uint16
136 Type uint8
137 Namlen uint8
138 Name [256]int8
139}
140
141type Fsid struct {
142 Val [2]int32
143}
144
145type RawSockaddrInet4 struct {
146 Len uint8
147 Family uint8
148 Port uint16
149 Addr [4]byte /* in_addr */
150 Zero [8]int8
151}
152
153type RawSockaddrInet6 struct {
154 Len uint8
155 Family uint8
156 Port uint16
157 Flowinfo uint32
158 Addr [16]byte /* in6_addr */
159 Scope_id uint32
160}
161
162type RawSockaddrUnix struct {
163 Len uint8
164 Family uint8
165 Path [104]int8
166}
167
168type RawSockaddrDatalink struct {
169 Len uint8
170 Family uint8
171 Index uint16
172 Type uint8
173 Nlen uint8
174 Alen uint8
175 Slen uint8
176 Data [46]int8
177}
178
179type RawSockaddr struct {
180 Len uint8
181 Family uint8
182 Data [14]int8
183}
184
185type RawSockaddrAny struct {
186 Addr RawSockaddr
187 Pad [92]int8
188}
189
190type _Socklen uint32
191
192type Linger struct {
193 Onoff int32
194 Linger int32
195}
196
197type Iovec struct {
198 Base *byte
199 Len uint32
200}
201
202type IPMreq struct {
203 Multiaddr [4]byte /* in_addr */
204 Interface [4]byte /* in_addr */
205}
206
207type IPMreqn struct {
208 Multiaddr [4]byte /* in_addr */
209 Address [4]byte /* in_addr */
210 Ifindex int32
211}
212
213type IPv6Mreq struct {
214 Multiaddr [16]byte /* in6_addr */
215 Interface uint32
216}
217
218type Msghdr struct {
219 Name *byte
220 Namelen uint32
221 Iov *Iovec
222 Iovlen int32
223 Control *byte
224 Controllen uint32
225 Flags int32
226}
227
228type Cmsghdr struct {
229 Len uint32
230 Level int32
231 Type int32
232}
233
234type Inet6Pktinfo struct {
235 Addr [16]byte /* in6_addr */
236 Ifindex uint32
237}
238
239type IPv6MTUInfo struct {
240 Addr RawSockaddrInet6
241 Mtu uint32
242}
243
244type ICMPv6Filter struct {
245 Filt [8]uint32
246}
247
248const (
249 SizeofSockaddrInet4 = 0x10
250 SizeofSockaddrInet6 = 0x1c
251 SizeofSockaddrAny = 0x6c
252 SizeofSockaddrUnix = 0x6a
253 SizeofSockaddrDatalink = 0x36
254 SizeofLinger = 0x8
255 SizeofIPMreq = 0x8
256 SizeofIPMreqn = 0xc
257 SizeofIPv6Mreq = 0x14
258 SizeofMsghdr = 0x1c
259 SizeofCmsghdr = 0xc
260 SizeofInet6Pktinfo = 0x14
261 SizeofIPv6MTUInfo = 0x20
262 SizeofICMPv6Filter = 0x20
263)
264
265const (
266 PTRACE_TRACEME = 0x0
267 PTRACE_CONT = 0x7
268 PTRACE_KILL = 0x8
269)
270
271type Kevent_t struct {
272 Ident uint32
273 Filter int16
274 Flags uint16
275 Fflags uint32
276 Data int32
277 Udata *byte
278}
279
280type FdSet struct {
281 X__fds_bits [32]uint32
282}
283
284const (
285 sizeofIfMsghdr = 0x70
286 SizeofIfMsghdr = 0x70
287 sizeofIfData = 0x60
288 SizeofIfData = 0x60
289 SizeofIfaMsghdr = 0x14
290 SizeofIfmaMsghdr = 0x10
291 SizeofIfAnnounceMsghdr = 0x18
292 SizeofRtMsghdr = 0x5c
293 SizeofRtMetrics = 0x38
294)
295
296type ifMsghdr struct {
297 Msglen uint16
298 Version uint8
299 Type uint8
300 Addrs int32
301 Flags int32
302 Index uint16
303 Pad_cgo_0 [2]byte
304 Data ifData
305}
306
307type IfMsghdr struct {
308 Msglen uint16
309 Version uint8
310 Type uint8
311 Addrs int32
312 Flags int32
313 Index uint16
314 Pad_cgo_0 [2]byte
315 Data IfData
316}
317
318type ifData struct {
319 Type uint8
320 Physical uint8
321 Addrlen uint8
322 Hdrlen uint8
323 Link_state uint8
324 Vhid uint8
325 Baudrate_pf uint8
326 Datalen uint8
327 Mtu uint32
328 Metric uint32
329 Baudrate uint32
330 Ipackets uint32
331 Ierrors uint32
332 Opackets uint32
333 Oerrors uint32
334 Collisions uint32
335 Ibytes uint32
336 Obytes uint32
337 Imcasts uint32
338 Omcasts uint32
339 Iqdrops uint32
340 Noproto uint32
341 Hwassist uint64
342 Epoch int64
343 Lastchange Timeval
344}
345
346type IfData struct {
347 Type uint8
348 Physical uint8
349 Addrlen uint8
350 Hdrlen uint8
351 Link_state uint8
352 Spare_char1 uint8
353 Spare_char2 uint8
354 Datalen uint8
355 Mtu uint32
356 Metric uint32
357 Baudrate uint32
358 Ipackets uint32
359 Ierrors uint32
360 Opackets uint32
361 Oerrors uint32
362 Collisions uint32
363 Ibytes uint32
364 Obytes uint32
365 Imcasts uint32
366 Omcasts uint32
367 Iqdrops uint32
368 Noproto uint32
369 Hwassist uint32
370 Pad_cgo_0 [4]byte
371 Epoch int64
372 Lastchange Timeval
373}
374
375type IfaMsghdr struct {
376 Msglen uint16
377 Version uint8
378 Type uint8
379 Addrs int32
380 Flags int32
381 Index uint16
382 Pad_cgo_0 [2]byte
383 Metric int32
384}
385
386type IfmaMsghdr struct {
387 Msglen uint16
388 Version uint8
389 Type uint8
390 Addrs int32
391 Flags int32
392 Index uint16
393 Pad_cgo_0 [2]byte
394}
395
396type IfAnnounceMsghdr struct {
397 Msglen uint16
398 Version uint8
399 Type uint8
400 Index uint16
401 Name [16]int8
402 What uint16
403}
404
405type RtMsghdr struct {
406 Msglen uint16
407 Version uint8
408 Type uint8
409 Index uint16
410 Pad_cgo_0 [2]byte
411 Flags int32
412 Addrs int32
413 Pid int32
414 Seq int32
415 Errno int32
416 Fmask int32
417 Inits uint32
418 Rmx RtMetrics
419}
420
421type RtMetrics struct {
422 Locks uint32
423 Mtu uint32
424 Hopcount uint32
425 Expire uint32
426 Recvpipe uint32
427 Sendpipe uint32
428 Ssthresh uint32
429 Rtt uint32
430 Rttvar uint32
431 Pksent uint32
432 Weight uint32
433 Filler [3]uint32
434}
435
436const (
437 SizeofBpfVersion = 0x4
438 SizeofBpfStat = 0x8
439 SizeofBpfZbuf = 0xc
440 SizeofBpfProgram = 0x8
441 SizeofBpfInsn = 0x8
442 SizeofBpfHdr = 0x20
443 SizeofBpfZbufHeader = 0x20
444)
445
446type BpfVersion struct {
447 Major uint16
448 Minor uint16
449}
450
451type BpfStat struct {
452 Recv uint32
453 Drop uint32
454}
455
456type BpfZbuf struct {
457 Bufa *byte
458 Bufb *byte
459 Buflen uint32
460}
461
462type BpfProgram struct {
463 Len uint32
464 Insns *BpfInsn
465}
466
467type BpfInsn struct {
468 Code uint16
469 Jt uint8
470 Jf uint8
471 K uint32
472}
473
474type BpfHdr struct {
475 Tstamp Timeval
476 Caplen uint32
477 Datalen uint32
478 Hdrlen uint16
479 Pad_cgo_0 [6]byte
480}
481
482type BpfZbufHeader struct {
483 Kernel_gen uint32
484 Kernel_len uint32
485 User_gen uint32
486 X_bzh_pad [5]uint32
487}
488
489type Termios struct {
490 Iflag uint32
491 Oflag uint32
492 Cflag uint32
493 Lflag uint32
494 Cc [20]uint8
495 Ispeed uint32
496 Ospeed uint32
497}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_386.go
deleted file mode 100644
index cf5db0e..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_386.go
+++ /dev/null
@@ -1,590 +0,0 @@
1// +build 386,linux
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_linux.go
4
5package unix
6
7const (
8 sizeofPtr = 0x4
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x4
12 sizeofLongLong = 0x8
13 PathMax = 0x1000
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int32
25 Nsec int32
26}
27
28type Timeval struct {
29 Sec int32
30 Usec int32
31}
32
33type Timex struct {
34 Modes uint32
35 Offset int32
36 Freq int32
37 Maxerror int32
38 Esterror int32
39 Status int32
40 Constant int32
41 Precision int32
42 Tolerance int32
43 Time Timeval
44 Tick int32
45 Ppsfreq int32
46 Jitter int32
47 Shift int32
48 Stabil int32
49 Jitcnt int32
50 Calcnt int32
51 Errcnt int32
52 Stbcnt int32
53 Tai int32
54 Pad_cgo_0 [44]byte
55}
56
57type Time_t int32
58
59type Tms struct {
60 Utime int32
61 Stime int32
62 Cutime int32
63 Cstime int32
64}
65
66type Utimbuf struct {
67 Actime int32
68 Modtime int32
69}
70
71type Rusage struct {
72 Utime Timeval
73 Stime Timeval
74 Maxrss int32
75 Ixrss int32
76 Idrss int32
77 Isrss int32
78 Minflt int32
79 Majflt int32
80 Nswap int32
81 Inblock int32
82 Oublock int32
83 Msgsnd int32
84 Msgrcv int32
85 Nsignals int32
86 Nvcsw int32
87 Nivcsw int32
88}
89
90type Rlimit struct {
91 Cur uint64
92 Max uint64
93}
94
95type _Gid_t uint32
96
97type Stat_t struct {
98 Dev uint64
99 X__pad1 uint16
100 Pad_cgo_0 [2]byte
101 X__st_ino uint32
102 Mode uint32
103 Nlink uint32
104 Uid uint32
105 Gid uint32
106 Rdev uint64
107 X__pad2 uint16
108 Pad_cgo_1 [2]byte
109 Size int64
110 Blksize int32
111 Blocks int64
112 Atim Timespec
113 Mtim Timespec
114 Ctim Timespec
115 Ino uint64
116}
117
118type Statfs_t struct {
119 Type int32
120 Bsize int32
121 Blocks uint64
122 Bfree uint64
123 Bavail uint64
124 Files uint64
125 Ffree uint64
126 Fsid Fsid
127 Namelen int32
128 Frsize int32
129 Flags int32
130 Spare [4]int32
131}
132
133type Dirent struct {
134 Ino uint64
135 Off int64
136 Reclen uint16
137 Type uint8
138 Name [256]int8
139 Pad_cgo_0 [1]byte
140}
141
142type Fsid struct {
143 X__val [2]int32
144}
145
146type Flock_t struct {
147 Type int16
148 Whence int16
149 Start int64
150 Len int64
151 Pid int32
152}
153
154type RawSockaddrInet4 struct {
155 Family uint16
156 Port uint16
157 Addr [4]byte /* in_addr */
158 Zero [8]uint8
159}
160
161type RawSockaddrInet6 struct {
162 Family uint16
163 Port uint16
164 Flowinfo uint32
165 Addr [16]byte /* in6_addr */
166 Scope_id uint32
167}
168
169type RawSockaddrUnix struct {
170 Family uint16
171 Path [108]int8
172}
173
174type RawSockaddrLinklayer struct {
175 Family uint16
176 Protocol uint16
177 Ifindex int32
178 Hatype uint16
179 Pkttype uint8
180 Halen uint8
181 Addr [8]uint8
182}
183
184type RawSockaddrNetlink struct {
185 Family uint16
186 Pad uint16
187 Pid uint32
188 Groups uint32
189}
190
191type RawSockaddr struct {
192 Family uint16
193 Data [14]int8
194}
195
196type RawSockaddrAny struct {
197 Addr RawSockaddr
198 Pad [96]int8
199}
200
201type _Socklen uint32
202
203type Linger struct {
204 Onoff int32
205 Linger int32
206}
207
208type Iovec struct {
209 Base *byte
210 Len uint32
211}
212
213type IPMreq struct {
214 Multiaddr [4]byte /* in_addr */
215 Interface [4]byte /* in_addr */
216}
217
218type IPMreqn struct {
219 Multiaddr [4]byte /* in_addr */
220 Address [4]byte /* in_addr */
221 Ifindex int32
222}
223
224type IPv6Mreq struct {
225 Multiaddr [16]byte /* in6_addr */
226 Interface uint32
227}
228
229type Msghdr struct {
230 Name *byte
231 Namelen uint32
232 Iov *Iovec
233 Iovlen uint32
234 Control *byte
235 Controllen uint32
236 Flags int32
237}
238
239type Cmsghdr struct {
240 Len uint32
241 Level int32
242 Type int32
243 X__cmsg_data [0]uint8
244}
245
246type Inet4Pktinfo struct {
247 Ifindex int32
248 Spec_dst [4]byte /* in_addr */
249 Addr [4]byte /* in_addr */
250}
251
252type Inet6Pktinfo struct {
253 Addr [16]byte /* in6_addr */
254 Ifindex uint32
255}
256
257type IPv6MTUInfo struct {
258 Addr RawSockaddrInet6
259 Mtu uint32
260}
261
262type ICMPv6Filter struct {
263 Data [8]uint32
264}
265
266type Ucred struct {
267 Pid int32
268 Uid uint32
269 Gid uint32
270}
271
272type TCPInfo struct {
273 State uint8
274 Ca_state uint8
275 Retransmits uint8
276 Probes uint8
277 Backoff uint8
278 Options uint8
279 Pad_cgo_0 [2]byte
280 Rto uint32
281 Ato uint32
282 Snd_mss uint32
283 Rcv_mss uint32
284 Unacked uint32
285 Sacked uint32
286 Lost uint32
287 Retrans uint32
288 Fackets uint32
289 Last_data_sent uint32
290 Last_ack_sent uint32
291 Last_data_recv uint32
292 Last_ack_recv uint32
293 Pmtu uint32
294 Rcv_ssthresh uint32
295 Rtt uint32
296 Rttvar uint32
297 Snd_ssthresh uint32
298 Snd_cwnd uint32
299 Advmss uint32
300 Reordering uint32
301 Rcv_rtt uint32
302 Rcv_space uint32
303 Total_retrans uint32
304}
305
306const (
307 SizeofSockaddrInet4 = 0x10
308 SizeofSockaddrInet6 = 0x1c
309 SizeofSockaddrAny = 0x70
310 SizeofSockaddrUnix = 0x6e
311 SizeofSockaddrLinklayer = 0x14
312 SizeofSockaddrNetlink = 0xc
313 SizeofLinger = 0x8
314 SizeofIPMreq = 0x8
315 SizeofIPMreqn = 0xc
316 SizeofIPv6Mreq = 0x14
317 SizeofMsghdr = 0x1c
318 SizeofCmsghdr = 0xc
319 SizeofInet4Pktinfo = 0xc
320 SizeofInet6Pktinfo = 0x14
321 SizeofIPv6MTUInfo = 0x20
322 SizeofICMPv6Filter = 0x20
323 SizeofUcred = 0xc
324 SizeofTCPInfo = 0x68
325)
326
327const (
328 IFA_UNSPEC = 0x0
329 IFA_ADDRESS = 0x1
330 IFA_LOCAL = 0x2
331 IFA_LABEL = 0x3
332 IFA_BROADCAST = 0x4
333 IFA_ANYCAST = 0x5
334 IFA_CACHEINFO = 0x6
335 IFA_MULTICAST = 0x7
336 IFLA_UNSPEC = 0x0
337 IFLA_ADDRESS = 0x1
338 IFLA_BROADCAST = 0x2
339 IFLA_IFNAME = 0x3
340 IFLA_MTU = 0x4
341 IFLA_LINK = 0x5
342 IFLA_QDISC = 0x6
343 IFLA_STATS = 0x7
344 IFLA_COST = 0x8
345 IFLA_PRIORITY = 0x9
346 IFLA_MASTER = 0xa
347 IFLA_WIRELESS = 0xb
348 IFLA_PROTINFO = 0xc
349 IFLA_TXQLEN = 0xd
350 IFLA_MAP = 0xe
351 IFLA_WEIGHT = 0xf
352 IFLA_OPERSTATE = 0x10
353 IFLA_LINKMODE = 0x11
354 IFLA_LINKINFO = 0x12
355 IFLA_NET_NS_PID = 0x13
356 IFLA_IFALIAS = 0x14
357 IFLA_MAX = 0x1d
358 RT_SCOPE_UNIVERSE = 0x0
359 RT_SCOPE_SITE = 0xc8
360 RT_SCOPE_LINK = 0xfd
361 RT_SCOPE_HOST = 0xfe
362 RT_SCOPE_NOWHERE = 0xff
363 RT_TABLE_UNSPEC = 0x0
364 RT_TABLE_COMPAT = 0xfc
365 RT_TABLE_DEFAULT = 0xfd
366 RT_TABLE_MAIN = 0xfe
367 RT_TABLE_LOCAL = 0xff
368 RT_TABLE_MAX = 0xffffffff
369 RTA_UNSPEC = 0x0
370 RTA_DST = 0x1
371 RTA_SRC = 0x2
372 RTA_IIF = 0x3
373 RTA_OIF = 0x4
374 RTA_GATEWAY = 0x5
375 RTA_PRIORITY = 0x6
376 RTA_PREFSRC = 0x7
377 RTA_METRICS = 0x8
378 RTA_MULTIPATH = 0x9
379 RTA_FLOW = 0xb
380 RTA_CACHEINFO = 0xc
381 RTA_TABLE = 0xf
382 RTN_UNSPEC = 0x0
383 RTN_UNICAST = 0x1
384 RTN_LOCAL = 0x2
385 RTN_BROADCAST = 0x3
386 RTN_ANYCAST = 0x4
387 RTN_MULTICAST = 0x5
388 RTN_BLACKHOLE = 0x6
389 RTN_UNREACHABLE = 0x7
390 RTN_PROHIBIT = 0x8
391 RTN_THROW = 0x9
392 RTN_NAT = 0xa
393 RTN_XRESOLVE = 0xb
394 RTNLGRP_NONE = 0x0
395 RTNLGRP_LINK = 0x1
396 RTNLGRP_NOTIFY = 0x2
397 RTNLGRP_NEIGH = 0x3
398 RTNLGRP_TC = 0x4
399 RTNLGRP_IPV4_IFADDR = 0x5
400 RTNLGRP_IPV4_MROUTE = 0x6
401 RTNLGRP_IPV4_ROUTE = 0x7
402 RTNLGRP_IPV4_RULE = 0x8
403 RTNLGRP_IPV6_IFADDR = 0x9
404 RTNLGRP_IPV6_MROUTE = 0xa
405 RTNLGRP_IPV6_ROUTE = 0xb
406 RTNLGRP_IPV6_IFINFO = 0xc
407 RTNLGRP_IPV6_PREFIX = 0x12
408 RTNLGRP_IPV6_RULE = 0x13
409 RTNLGRP_ND_USEROPT = 0x14
410 SizeofNlMsghdr = 0x10
411 SizeofNlMsgerr = 0x14
412 SizeofRtGenmsg = 0x1
413 SizeofNlAttr = 0x4
414 SizeofRtAttr = 0x4
415 SizeofIfInfomsg = 0x10
416 SizeofIfAddrmsg = 0x8
417 SizeofRtMsg = 0xc
418 SizeofRtNexthop = 0x8
419)
420
421type NlMsghdr struct {
422 Len uint32
423 Type uint16
424 Flags uint16
425 Seq uint32
426 Pid uint32
427}
428
429type NlMsgerr struct {
430 Error int32
431 Msg NlMsghdr
432}
433
434type RtGenmsg struct {
435 Family uint8
436}
437
438type NlAttr struct {
439 Len uint16
440 Type uint16
441}
442
443type RtAttr struct {
444 Len uint16
445 Type uint16
446}
447
448type IfInfomsg struct {
449 Family uint8
450 X__ifi_pad uint8
451 Type uint16
452 Index int32
453 Flags uint32
454 Change uint32
455}
456
457type IfAddrmsg struct {
458 Family uint8
459 Prefixlen uint8
460 Flags uint8
461 Scope uint8
462 Index uint32
463}
464
465type RtMsg struct {
466 Family uint8
467 Dst_len uint8
468 Src_len uint8
469 Tos uint8
470 Table uint8
471 Protocol uint8
472 Scope uint8
473 Type uint8
474 Flags uint32
475}
476
477type RtNexthop struct {
478 Len uint16
479 Flags uint8
480 Hops uint8
481 Ifindex int32
482}
483
484const (
485 SizeofSockFilter = 0x8
486 SizeofSockFprog = 0x8
487)
488
489type SockFilter struct {
490 Code uint16
491 Jt uint8
492 Jf uint8
493 K uint32
494}
495
496type SockFprog struct {
497 Len uint16
498 Pad_cgo_0 [2]byte
499 Filter *SockFilter
500}
501
502type InotifyEvent struct {
503 Wd int32
504 Mask uint32
505 Cookie uint32
506 Len uint32
507 Name [0]int8
508}
509
510const SizeofInotifyEvent = 0x10
511
512type PtraceRegs struct {
513 Ebx int32
514 Ecx int32
515 Edx int32
516 Esi int32
517 Edi int32
518 Ebp int32
519 Eax int32
520 Xds int32
521 Xes int32
522 Xfs int32
523 Xgs int32
524 Orig_eax int32
525 Eip int32
526 Xcs int32
527 Eflags int32
528 Esp int32
529 Xss int32
530}
531
532type FdSet struct {
533 Bits [32]int32
534}
535
536type Sysinfo_t struct {
537 Uptime int32
538 Loads [3]uint32
539 Totalram uint32
540 Freeram uint32
541 Sharedram uint32
542 Bufferram uint32
543 Totalswap uint32
544 Freeswap uint32
545 Procs uint16
546 Pad uint16
547 Totalhigh uint32
548 Freehigh uint32
549 Unit uint32
550 X_f [8]int8
551}
552
553type Utsname struct {
554 Sysname [65]int8
555 Nodename [65]int8
556 Release [65]int8
557 Version [65]int8
558 Machine [65]int8
559 Domainname [65]int8
560}
561
562type Ustat_t struct {
563 Tfree int32
564 Tinode uint32
565 Fname [6]int8
566 Fpack [6]int8
567}
568
569type EpollEvent struct {
570 Events uint32
571 Fd int32
572 Pad int32
573}
574
575const (
576 AT_FDCWD = -0x64
577 AT_SYMLINK_NOFOLLOW = 0x100
578 AT_REMOVEDIR = 0x200
579)
580
581type Termios struct {
582 Iflag uint32
583 Oflag uint32
584 Cflag uint32
585 Lflag uint32
586 Line uint8
587 Cc [19]uint8
588 Ispeed uint32
589 Ospeed uint32
590}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_amd64.go
deleted file mode 100644
index ac27784..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_amd64.go
+++ /dev/null
@@ -1,608 +0,0 @@
1// +build amd64,linux
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_linux.go
4
5package unix
6
7const (
8 sizeofPtr = 0x8
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x8
12 sizeofLongLong = 0x8
13 PathMax = 0x1000
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int64
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int64
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int64
31}
32
33type Timex struct {
34 Modes uint32
35 Pad_cgo_0 [4]byte
36 Offset int64
37 Freq int64
38 Maxerror int64
39 Esterror int64
40 Status int32
41 Pad_cgo_1 [4]byte
42 Constant int64
43 Precision int64
44 Tolerance int64
45 Time Timeval
46 Tick int64
47 Ppsfreq int64
48 Jitter int64
49 Shift int32
50 Pad_cgo_2 [4]byte
51 Stabil int64
52 Jitcnt int64
53 Calcnt int64
54 Errcnt int64
55 Stbcnt int64
56 Tai int32
57 Pad_cgo_3 [44]byte
58}
59
60type Time_t int64
61
62type Tms struct {
63 Utime int64
64 Stime int64
65 Cutime int64
66 Cstime int64
67}
68
69type Utimbuf struct {
70 Actime int64
71 Modtime int64
72}
73
74type Rusage struct {
75 Utime Timeval
76 Stime Timeval
77 Maxrss int64
78 Ixrss int64
79 Idrss int64
80 Isrss int64
81 Minflt int64
82 Majflt int64
83 Nswap int64
84 Inblock int64
85 Oublock int64
86 Msgsnd int64
87 Msgrcv int64
88 Nsignals int64
89 Nvcsw int64
90 Nivcsw int64
91}
92
93type Rlimit struct {
94 Cur uint64
95 Max uint64
96}
97
98type _Gid_t uint32
99
100type Stat_t struct {
101 Dev uint64
102 Ino uint64
103 Nlink uint64
104 Mode uint32
105 Uid uint32
106 Gid uint32
107 X__pad0 int32
108 Rdev uint64
109 Size int64
110 Blksize int64
111 Blocks int64
112 Atim Timespec
113 Mtim Timespec
114 Ctim Timespec
115 X__unused [3]int64
116}
117
118type Statfs_t struct {
119 Type int64
120 Bsize int64
121 Blocks uint64
122 Bfree uint64
123 Bavail uint64
124 Files uint64
125 Ffree uint64
126 Fsid Fsid
127 Namelen int64
128 Frsize int64
129 Flags int64
130 Spare [4]int64
131}
132
133type Dirent struct {
134 Ino uint64
135 Off int64
136 Reclen uint16
137 Type uint8
138 Name [256]int8
139 Pad_cgo_0 [5]byte
140}
141
142type Fsid struct {
143 X__val [2]int32
144}
145
146type Flock_t struct {
147 Type int16
148 Whence int16
149 Pad_cgo_0 [4]byte
150 Start int64
151 Len int64
152 Pid int32
153 Pad_cgo_1 [4]byte
154}
155
156type RawSockaddrInet4 struct {
157 Family uint16
158 Port uint16
159 Addr [4]byte /* in_addr */
160 Zero [8]uint8
161}
162
163type RawSockaddrInet6 struct {
164 Family uint16
165 Port uint16
166 Flowinfo uint32
167 Addr [16]byte /* in6_addr */
168 Scope_id uint32
169}
170
171type RawSockaddrUnix struct {
172 Family uint16
173 Path [108]int8
174}
175
176type RawSockaddrLinklayer struct {
177 Family uint16
178 Protocol uint16
179 Ifindex int32
180 Hatype uint16
181 Pkttype uint8
182 Halen uint8
183 Addr [8]uint8
184}
185
186type RawSockaddrNetlink struct {
187 Family uint16
188 Pad uint16
189 Pid uint32
190 Groups uint32
191}
192
193type RawSockaddr struct {
194 Family uint16
195 Data [14]int8
196}
197
198type RawSockaddrAny struct {
199 Addr RawSockaddr
200 Pad [96]int8
201}
202
203type _Socklen uint32
204
205type Linger struct {
206 Onoff int32
207 Linger int32
208}
209
210type Iovec struct {
211 Base *byte
212 Len uint64
213}
214
215type IPMreq struct {
216 Multiaddr [4]byte /* in_addr */
217 Interface [4]byte /* in_addr */
218}
219
220type IPMreqn struct {
221 Multiaddr [4]byte /* in_addr */
222 Address [4]byte /* in_addr */
223 Ifindex int32
224}
225
226type IPv6Mreq struct {
227 Multiaddr [16]byte /* in6_addr */
228 Interface uint32
229}
230
231type Msghdr struct {
232 Name *byte
233 Namelen uint32
234 Pad_cgo_0 [4]byte
235 Iov *Iovec
236 Iovlen uint64
237 Control *byte
238 Controllen uint64
239 Flags int32
240 Pad_cgo_1 [4]byte
241}
242
243type Cmsghdr struct {
244 Len uint64
245 Level int32
246 Type int32
247 X__cmsg_data [0]uint8
248}
249
250type Inet4Pktinfo struct {
251 Ifindex int32
252 Spec_dst [4]byte /* in_addr */
253 Addr [4]byte /* in_addr */
254}
255
256type Inet6Pktinfo struct {
257 Addr [16]byte /* in6_addr */
258 Ifindex uint32
259}
260
261type IPv6MTUInfo struct {
262 Addr RawSockaddrInet6
263 Mtu uint32
264}
265
266type ICMPv6Filter struct {
267 Data [8]uint32
268}
269
270type Ucred struct {
271 Pid int32
272 Uid uint32
273 Gid uint32
274}
275
276type TCPInfo struct {
277 State uint8
278 Ca_state uint8
279 Retransmits uint8
280 Probes uint8
281 Backoff uint8
282 Options uint8
283 Pad_cgo_0 [2]byte
284 Rto uint32
285 Ato uint32
286 Snd_mss uint32
287 Rcv_mss uint32
288 Unacked uint32
289 Sacked uint32
290 Lost uint32
291 Retrans uint32
292 Fackets uint32
293 Last_data_sent uint32
294 Last_ack_sent uint32
295 Last_data_recv uint32
296 Last_ack_recv uint32
297 Pmtu uint32
298 Rcv_ssthresh uint32
299 Rtt uint32
300 Rttvar uint32
301 Snd_ssthresh uint32
302 Snd_cwnd uint32
303 Advmss uint32
304 Reordering uint32
305 Rcv_rtt uint32
306 Rcv_space uint32
307 Total_retrans uint32
308}
309
310const (
311 SizeofSockaddrInet4 = 0x10
312 SizeofSockaddrInet6 = 0x1c
313 SizeofSockaddrAny = 0x70
314 SizeofSockaddrUnix = 0x6e
315 SizeofSockaddrLinklayer = 0x14
316 SizeofSockaddrNetlink = 0xc
317 SizeofLinger = 0x8
318 SizeofIPMreq = 0x8
319 SizeofIPMreqn = 0xc
320 SizeofIPv6Mreq = 0x14
321 SizeofMsghdr = 0x38
322 SizeofCmsghdr = 0x10
323 SizeofInet4Pktinfo = 0xc
324 SizeofInet6Pktinfo = 0x14
325 SizeofIPv6MTUInfo = 0x20
326 SizeofICMPv6Filter = 0x20
327 SizeofUcred = 0xc
328 SizeofTCPInfo = 0x68
329)
330
331const (
332 IFA_UNSPEC = 0x0
333 IFA_ADDRESS = 0x1
334 IFA_LOCAL = 0x2
335 IFA_LABEL = 0x3
336 IFA_BROADCAST = 0x4
337 IFA_ANYCAST = 0x5
338 IFA_CACHEINFO = 0x6
339 IFA_MULTICAST = 0x7
340 IFLA_UNSPEC = 0x0
341 IFLA_ADDRESS = 0x1
342 IFLA_BROADCAST = 0x2
343 IFLA_IFNAME = 0x3
344 IFLA_MTU = 0x4
345 IFLA_LINK = 0x5
346 IFLA_QDISC = 0x6
347 IFLA_STATS = 0x7
348 IFLA_COST = 0x8
349 IFLA_PRIORITY = 0x9
350 IFLA_MASTER = 0xa
351 IFLA_WIRELESS = 0xb
352 IFLA_PROTINFO = 0xc
353 IFLA_TXQLEN = 0xd
354 IFLA_MAP = 0xe
355 IFLA_WEIGHT = 0xf
356 IFLA_OPERSTATE = 0x10
357 IFLA_LINKMODE = 0x11
358 IFLA_LINKINFO = 0x12
359 IFLA_NET_NS_PID = 0x13
360 IFLA_IFALIAS = 0x14
361 IFLA_MAX = 0x1d
362 RT_SCOPE_UNIVERSE = 0x0
363 RT_SCOPE_SITE = 0xc8
364 RT_SCOPE_LINK = 0xfd
365 RT_SCOPE_HOST = 0xfe
366 RT_SCOPE_NOWHERE = 0xff
367 RT_TABLE_UNSPEC = 0x0
368 RT_TABLE_COMPAT = 0xfc
369 RT_TABLE_DEFAULT = 0xfd
370 RT_TABLE_MAIN = 0xfe
371 RT_TABLE_LOCAL = 0xff
372 RT_TABLE_MAX = 0xffffffff
373 RTA_UNSPEC = 0x0
374 RTA_DST = 0x1
375 RTA_SRC = 0x2
376 RTA_IIF = 0x3
377 RTA_OIF = 0x4
378 RTA_GATEWAY = 0x5
379 RTA_PRIORITY = 0x6
380 RTA_PREFSRC = 0x7
381 RTA_METRICS = 0x8
382 RTA_MULTIPATH = 0x9
383 RTA_FLOW = 0xb
384 RTA_CACHEINFO = 0xc
385 RTA_TABLE = 0xf
386 RTN_UNSPEC = 0x0
387 RTN_UNICAST = 0x1
388 RTN_LOCAL = 0x2
389 RTN_BROADCAST = 0x3
390 RTN_ANYCAST = 0x4
391 RTN_MULTICAST = 0x5
392 RTN_BLACKHOLE = 0x6
393 RTN_UNREACHABLE = 0x7
394 RTN_PROHIBIT = 0x8
395 RTN_THROW = 0x9
396 RTN_NAT = 0xa
397 RTN_XRESOLVE = 0xb
398 RTNLGRP_NONE = 0x0
399 RTNLGRP_LINK = 0x1
400 RTNLGRP_NOTIFY = 0x2
401 RTNLGRP_NEIGH = 0x3
402 RTNLGRP_TC = 0x4
403 RTNLGRP_IPV4_IFADDR = 0x5
404 RTNLGRP_IPV4_MROUTE = 0x6
405 RTNLGRP_IPV4_ROUTE = 0x7
406 RTNLGRP_IPV4_RULE = 0x8
407 RTNLGRP_IPV6_IFADDR = 0x9
408 RTNLGRP_IPV6_MROUTE = 0xa
409 RTNLGRP_IPV6_ROUTE = 0xb
410 RTNLGRP_IPV6_IFINFO = 0xc
411 RTNLGRP_IPV6_PREFIX = 0x12
412 RTNLGRP_IPV6_RULE = 0x13
413 RTNLGRP_ND_USEROPT = 0x14
414 SizeofNlMsghdr = 0x10
415 SizeofNlMsgerr = 0x14
416 SizeofRtGenmsg = 0x1
417 SizeofNlAttr = 0x4
418 SizeofRtAttr = 0x4
419 SizeofIfInfomsg = 0x10
420 SizeofIfAddrmsg = 0x8
421 SizeofRtMsg = 0xc
422 SizeofRtNexthop = 0x8
423)
424
425type NlMsghdr struct {
426 Len uint32
427 Type uint16
428 Flags uint16
429 Seq uint32
430 Pid uint32
431}
432
433type NlMsgerr struct {
434 Error int32
435 Msg NlMsghdr
436}
437
438type RtGenmsg struct {
439 Family uint8
440}
441
442type NlAttr struct {
443 Len uint16
444 Type uint16
445}
446
447type RtAttr struct {
448 Len uint16
449 Type uint16
450}
451
452type IfInfomsg struct {
453 Family uint8
454 X__ifi_pad uint8
455 Type uint16
456 Index int32
457 Flags uint32
458 Change uint32
459}
460
461type IfAddrmsg struct {
462 Family uint8
463 Prefixlen uint8
464 Flags uint8
465 Scope uint8
466 Index uint32
467}
468
469type RtMsg struct {
470 Family uint8
471 Dst_len uint8
472 Src_len uint8
473 Tos uint8
474 Table uint8
475 Protocol uint8
476 Scope uint8
477 Type uint8
478 Flags uint32
479}
480
481type RtNexthop struct {
482 Len uint16
483 Flags uint8
484 Hops uint8
485 Ifindex int32
486}
487
488const (
489 SizeofSockFilter = 0x8
490 SizeofSockFprog = 0x10
491)
492
493type SockFilter struct {
494 Code uint16
495 Jt uint8
496 Jf uint8
497 K uint32
498}
499
500type SockFprog struct {
501 Len uint16
502 Pad_cgo_0 [6]byte
503 Filter *SockFilter
504}
505
506type InotifyEvent struct {
507 Wd int32
508 Mask uint32
509 Cookie uint32
510 Len uint32
511 Name [0]int8
512}
513
514const SizeofInotifyEvent = 0x10
515
516type PtraceRegs struct {
517 R15 uint64
518 R14 uint64
519 R13 uint64
520 R12 uint64
521 Rbp uint64
522 Rbx uint64
523 R11 uint64
524 R10 uint64
525 R9 uint64
526 R8 uint64
527 Rax uint64
528 Rcx uint64
529 Rdx uint64
530 Rsi uint64
531 Rdi uint64
532 Orig_rax uint64
533 Rip uint64
534 Cs uint64
535 Eflags uint64
536 Rsp uint64
537 Ss uint64
538 Fs_base uint64
539 Gs_base uint64
540 Ds uint64
541 Es uint64
542 Fs uint64
543 Gs uint64
544}
545
546type FdSet struct {
547 Bits [16]int64
548}
549
550type Sysinfo_t struct {
551 Uptime int64
552 Loads [3]uint64
553 Totalram uint64
554 Freeram uint64
555 Sharedram uint64
556 Bufferram uint64
557 Totalswap uint64
558 Freeswap uint64
559 Procs uint16
560 Pad uint16
561 Pad_cgo_0 [4]byte
562 Totalhigh uint64
563 Freehigh uint64
564 Unit uint32
565 X_f [0]int8
566 Pad_cgo_1 [4]byte
567}
568
569type Utsname struct {
570 Sysname [65]int8
571 Nodename [65]int8
572 Release [65]int8
573 Version [65]int8
574 Machine [65]int8
575 Domainname [65]int8
576}
577
578type Ustat_t struct {
579 Tfree int32
580 Pad_cgo_0 [4]byte
581 Tinode uint64
582 Fname [6]int8
583 Fpack [6]int8
584 Pad_cgo_1 [4]byte
585}
586
587type EpollEvent struct {
588 Events uint32
589 Fd int32
590 Pad int32
591}
592
593const (
594 AT_FDCWD = -0x64
595 AT_SYMLINK_NOFOLLOW = 0x100
596 AT_REMOVEDIR = 0x200
597)
598
599type Termios struct {
600 Iflag uint32
601 Oflag uint32
602 Cflag uint32
603 Lflag uint32
604 Line uint8
605 Cc [19]uint8
606 Ispeed uint32
607 Ospeed uint32
608}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_arm.go
deleted file mode 100644
index b318bb8..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_arm.go
+++ /dev/null
@@ -1,579 +0,0 @@
1// +build arm,linux
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_linux.go
4
5package unix
6
7const (
8 sizeofPtr = 0x4
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x4
12 sizeofLongLong = 0x8
13 PathMax = 0x1000
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int32
25 Nsec int32
26}
27
28type Timeval struct {
29 Sec int32
30 Usec int32
31}
32
33type Timex struct {
34 Modes uint32
35 Offset int32
36 Freq int32
37 Maxerror int32
38 Esterror int32
39 Status int32
40 Constant int32
41 Precision int32
42 Tolerance int32
43 Time Timeval
44 Tick int32
45 Ppsfreq int32
46 Jitter int32
47 Shift int32
48 Stabil int32
49 Jitcnt int32
50 Calcnt int32
51 Errcnt int32
52 Stbcnt int32
53 Tai int32
54 Pad_cgo_0 [44]byte
55}
56
57type Time_t int32
58
59type Tms struct {
60 Utime int32
61 Stime int32
62 Cutime int32
63 Cstime int32
64}
65
66type Utimbuf struct {
67 Actime int32
68 Modtime int32
69}
70
71type Rusage struct {
72 Utime Timeval
73 Stime Timeval
74 Maxrss int32
75 Ixrss int32
76 Idrss int32
77 Isrss int32
78 Minflt int32
79 Majflt int32
80 Nswap int32
81 Inblock int32
82 Oublock int32
83 Msgsnd int32
84 Msgrcv int32
85 Nsignals int32
86 Nvcsw int32
87 Nivcsw int32
88}
89
90type Rlimit struct {
91 Cur uint64
92 Max uint64
93}
94
95type _Gid_t uint32
96
97type Stat_t struct {
98 Dev uint64
99 X__pad1 uint16
100 Pad_cgo_0 [2]byte
101 X__st_ino uint32
102 Mode uint32
103 Nlink uint32
104 Uid uint32
105 Gid uint32
106 Rdev uint64
107 X__pad2 uint16
108 Pad_cgo_1 [6]byte
109 Size int64
110 Blksize int32
111 Pad_cgo_2 [4]byte
112 Blocks int64
113 Atim Timespec
114 Mtim Timespec
115 Ctim Timespec
116 Ino uint64
117}
118
119type Statfs_t struct {
120 Type int32
121 Bsize int32
122 Blocks uint64
123 Bfree uint64
124 Bavail uint64
125 Files uint64
126 Ffree uint64
127 Fsid Fsid
128 Namelen int32
129 Frsize int32
130 Flags int32
131 Spare [4]int32
132 Pad_cgo_0 [4]byte
133}
134
135type Dirent struct {
136 Ino uint64
137 Off int64
138 Reclen uint16
139 Type uint8
140 Name [256]uint8
141 Pad_cgo_0 [5]byte
142}
143
144type Fsid struct {
145 X__val [2]int32
146}
147
148type Flock_t struct {
149 Type int16
150 Whence int16
151 Pad_cgo_0 [4]byte
152 Start int64
153 Len int64
154 Pid int32
155 Pad_cgo_1 [4]byte
156}
157
158type RawSockaddrInet4 struct {
159 Family uint16
160 Port uint16
161 Addr [4]byte /* in_addr */
162 Zero [8]uint8
163}
164
165type RawSockaddrInet6 struct {
166 Family uint16
167 Port uint16
168 Flowinfo uint32
169 Addr [16]byte /* in6_addr */
170 Scope_id uint32
171}
172
173type RawSockaddrUnix struct {
174 Family uint16
175 Path [108]int8
176}
177
178type RawSockaddrLinklayer struct {
179 Family uint16
180 Protocol uint16
181 Ifindex int32
182 Hatype uint16
183 Pkttype uint8
184 Halen uint8
185 Addr [8]uint8
186}
187
188type RawSockaddrNetlink struct {
189 Family uint16
190 Pad uint16
191 Pid uint32
192 Groups uint32
193}
194
195type RawSockaddr struct {
196 Family uint16
197 Data [14]uint8
198}
199
200type RawSockaddrAny struct {
201 Addr RawSockaddr
202 Pad [96]uint8
203}
204
205type _Socklen uint32
206
207type Linger struct {
208 Onoff int32
209 Linger int32
210}
211
212type Iovec struct {
213 Base *byte
214 Len uint32
215}
216
217type IPMreq struct {
218 Multiaddr [4]byte /* in_addr */
219 Interface [4]byte /* in_addr */
220}
221
222type IPMreqn struct {
223 Multiaddr [4]byte /* in_addr */
224 Address [4]byte /* in_addr */
225 Ifindex int32
226}
227
228type IPv6Mreq struct {
229 Multiaddr [16]byte /* in6_addr */
230 Interface uint32
231}
232
233type Msghdr struct {
234 Name *byte
235 Namelen uint32
236 Iov *Iovec
237 Iovlen uint32
238 Control *byte
239 Controllen uint32
240 Flags int32
241}
242
243type Cmsghdr struct {
244 Len uint32
245 Level int32
246 Type int32
247 X__cmsg_data [0]uint8
248}
249
250type Inet4Pktinfo struct {
251 Ifindex int32
252 Spec_dst [4]byte /* in_addr */
253 Addr [4]byte /* in_addr */
254}
255
256type Inet6Pktinfo struct {
257 Addr [16]byte /* in6_addr */
258 Ifindex uint32
259}
260
261type IPv6MTUInfo struct {
262 Addr RawSockaddrInet6
263 Mtu uint32
264}
265
266type ICMPv6Filter struct {
267 Data [8]uint32
268}
269
270type Ucred struct {
271 Pid int32
272 Uid uint32
273 Gid uint32
274}
275
276type TCPInfo struct {
277 State uint8
278 Ca_state uint8
279 Retransmits uint8
280 Probes uint8
281 Backoff uint8
282 Options uint8
283 Pad_cgo_0 [2]byte
284 Rto uint32
285 Ato uint32
286 Snd_mss uint32
287 Rcv_mss uint32
288 Unacked uint32
289 Sacked uint32
290 Lost uint32
291 Retrans uint32
292 Fackets uint32
293 Last_data_sent uint32
294 Last_ack_sent uint32
295 Last_data_recv uint32
296 Last_ack_recv uint32
297 Pmtu uint32
298 Rcv_ssthresh uint32
299 Rtt uint32
300 Rttvar uint32
301 Snd_ssthresh uint32
302 Snd_cwnd uint32
303 Advmss uint32
304 Reordering uint32
305 Rcv_rtt uint32
306 Rcv_space uint32
307 Total_retrans uint32
308}
309
310const (
311 SizeofSockaddrInet4 = 0x10
312 SizeofSockaddrInet6 = 0x1c
313 SizeofSockaddrAny = 0x70
314 SizeofSockaddrUnix = 0x6e
315 SizeofSockaddrLinklayer = 0x14
316 SizeofSockaddrNetlink = 0xc
317 SizeofLinger = 0x8
318 SizeofIPMreq = 0x8
319 SizeofIPMreqn = 0xc
320 SizeofIPv6Mreq = 0x14
321 SizeofMsghdr = 0x1c
322 SizeofCmsghdr = 0xc
323 SizeofInet4Pktinfo = 0xc
324 SizeofInet6Pktinfo = 0x14
325 SizeofIPv6MTUInfo = 0x20
326 SizeofICMPv6Filter = 0x20
327 SizeofUcred = 0xc
328 SizeofTCPInfo = 0x68
329)
330
331const (
332 IFA_UNSPEC = 0x0
333 IFA_ADDRESS = 0x1
334 IFA_LOCAL = 0x2
335 IFA_LABEL = 0x3
336 IFA_BROADCAST = 0x4
337 IFA_ANYCAST = 0x5
338 IFA_CACHEINFO = 0x6
339 IFA_MULTICAST = 0x7
340 IFLA_UNSPEC = 0x0
341 IFLA_ADDRESS = 0x1
342 IFLA_BROADCAST = 0x2
343 IFLA_IFNAME = 0x3
344 IFLA_MTU = 0x4
345 IFLA_LINK = 0x5
346 IFLA_QDISC = 0x6
347 IFLA_STATS = 0x7
348 IFLA_COST = 0x8
349 IFLA_PRIORITY = 0x9
350 IFLA_MASTER = 0xa
351 IFLA_WIRELESS = 0xb
352 IFLA_PROTINFO = 0xc
353 IFLA_TXQLEN = 0xd
354 IFLA_MAP = 0xe
355 IFLA_WEIGHT = 0xf
356 IFLA_OPERSTATE = 0x10
357 IFLA_LINKMODE = 0x11
358 IFLA_LINKINFO = 0x12
359 IFLA_NET_NS_PID = 0x13
360 IFLA_IFALIAS = 0x14
361 IFLA_MAX = 0x1d
362 RT_SCOPE_UNIVERSE = 0x0
363 RT_SCOPE_SITE = 0xc8
364 RT_SCOPE_LINK = 0xfd
365 RT_SCOPE_HOST = 0xfe
366 RT_SCOPE_NOWHERE = 0xff
367 RT_TABLE_UNSPEC = 0x0
368 RT_TABLE_COMPAT = 0xfc
369 RT_TABLE_DEFAULT = 0xfd
370 RT_TABLE_MAIN = 0xfe
371 RT_TABLE_LOCAL = 0xff
372 RT_TABLE_MAX = 0xffffffff
373 RTA_UNSPEC = 0x0
374 RTA_DST = 0x1
375 RTA_SRC = 0x2
376 RTA_IIF = 0x3
377 RTA_OIF = 0x4
378 RTA_GATEWAY = 0x5
379 RTA_PRIORITY = 0x6
380 RTA_PREFSRC = 0x7
381 RTA_METRICS = 0x8
382 RTA_MULTIPATH = 0x9
383 RTA_FLOW = 0xb
384 RTA_CACHEINFO = 0xc
385 RTA_TABLE = 0xf
386 RTN_UNSPEC = 0x0
387 RTN_UNICAST = 0x1
388 RTN_LOCAL = 0x2
389 RTN_BROADCAST = 0x3
390 RTN_ANYCAST = 0x4
391 RTN_MULTICAST = 0x5
392 RTN_BLACKHOLE = 0x6
393 RTN_UNREACHABLE = 0x7
394 RTN_PROHIBIT = 0x8
395 RTN_THROW = 0x9
396 RTN_NAT = 0xa
397 RTN_XRESOLVE = 0xb
398 RTNLGRP_NONE = 0x0
399 RTNLGRP_LINK = 0x1
400 RTNLGRP_NOTIFY = 0x2
401 RTNLGRP_NEIGH = 0x3
402 RTNLGRP_TC = 0x4
403 RTNLGRP_IPV4_IFADDR = 0x5
404 RTNLGRP_IPV4_MROUTE = 0x6
405 RTNLGRP_IPV4_ROUTE = 0x7
406 RTNLGRP_IPV4_RULE = 0x8
407 RTNLGRP_IPV6_IFADDR = 0x9
408 RTNLGRP_IPV6_MROUTE = 0xa
409 RTNLGRP_IPV6_ROUTE = 0xb
410 RTNLGRP_IPV6_IFINFO = 0xc
411 RTNLGRP_IPV6_PREFIX = 0x12
412 RTNLGRP_IPV6_RULE = 0x13
413 RTNLGRP_ND_USEROPT = 0x14
414 SizeofNlMsghdr = 0x10
415 SizeofNlMsgerr = 0x14
416 SizeofRtGenmsg = 0x1
417 SizeofNlAttr = 0x4
418 SizeofRtAttr = 0x4
419 SizeofIfInfomsg = 0x10
420 SizeofIfAddrmsg = 0x8
421 SizeofRtMsg = 0xc
422 SizeofRtNexthop = 0x8
423)
424
425type NlMsghdr struct {
426 Len uint32
427 Type uint16
428 Flags uint16
429 Seq uint32
430 Pid uint32
431}
432
433type NlMsgerr struct {
434 Error int32
435 Msg NlMsghdr
436}
437
438type RtGenmsg struct {
439 Family uint8
440}
441
442type NlAttr struct {
443 Len uint16
444 Type uint16
445}
446
447type RtAttr struct {
448 Len uint16
449 Type uint16
450}
451
452type IfInfomsg struct {
453 Family uint8
454 X__ifi_pad uint8
455 Type uint16
456 Index int32
457 Flags uint32
458 Change uint32
459}
460
461type IfAddrmsg struct {
462 Family uint8
463 Prefixlen uint8
464 Flags uint8
465 Scope uint8
466 Index uint32
467}
468
469type RtMsg struct {
470 Family uint8
471 Dst_len uint8
472 Src_len uint8
473 Tos uint8
474 Table uint8
475 Protocol uint8
476 Scope uint8
477 Type uint8
478 Flags uint32
479}
480
481type RtNexthop struct {
482 Len uint16
483 Flags uint8
484 Hops uint8
485 Ifindex int32
486}
487
488const (
489 SizeofSockFilter = 0x8
490 SizeofSockFprog = 0x8
491)
492
493type SockFilter struct {
494 Code uint16
495 Jt uint8
496 Jf uint8
497 K uint32
498}
499
500type SockFprog struct {
501 Len uint16
502 Pad_cgo_0 [2]byte
503 Filter *SockFilter
504}
505
506type InotifyEvent struct {
507 Wd int32
508 Mask uint32
509 Cookie uint32
510 Len uint32
511 Name [0]uint8
512}
513
514const SizeofInotifyEvent = 0x10
515
516type PtraceRegs struct {
517 Uregs [18]uint32
518}
519
520type FdSet struct {
521 Bits [32]int32
522}
523
524type Sysinfo_t struct {
525 Uptime int32
526 Loads [3]uint32
527 Totalram uint32
528 Freeram uint32
529 Sharedram uint32
530 Bufferram uint32
531 Totalswap uint32
532 Freeswap uint32
533 Procs uint16
534 Pad uint16
535 Totalhigh uint32
536 Freehigh uint32
537 Unit uint32
538 X_f [8]uint8
539}
540
541type Utsname struct {
542 Sysname [65]uint8
543 Nodename [65]uint8
544 Release [65]uint8
545 Version [65]uint8
546 Machine [65]uint8
547 Domainname [65]uint8
548}
549
550type Ustat_t struct {
551 Tfree int32
552 Tinode uint32
553 Fname [6]uint8
554 Fpack [6]uint8
555}
556
557type EpollEvent struct {
558 Events uint32
559 PadFd int32
560 Fd int32
561 Pad int32
562}
563
564const (
565 AT_FDCWD = -0x64
566 AT_SYMLINK_NOFOLLOW = 0x100
567 AT_REMOVEDIR = 0x200
568)
569
570type Termios struct {
571 Iflag uint32
572 Oflag uint32
573 Cflag uint32
574 Lflag uint32
575 Line uint8
576 Cc [19]uint8
577 Ispeed uint32
578 Ospeed uint32
579}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_arm64.go
deleted file mode 100644
index a159aad..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_arm64.go
+++ /dev/null
@@ -1,595 +0,0 @@
1// +build arm64,linux
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs -- -fsigned-char types_linux.go
4
5package unix
6
7const (
8 sizeofPtr = 0x8
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x8
12 sizeofLongLong = 0x8
13 PathMax = 0x1000
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int64
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int64
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int64
31}
32
33type Timex struct {
34 Modes uint32
35 Pad_cgo_0 [4]byte
36 Offset int64
37 Freq int64
38 Maxerror int64
39 Esterror int64
40 Status int32
41 Pad_cgo_1 [4]byte
42 Constant int64
43 Precision int64
44 Tolerance int64
45 Time Timeval
46 Tick int64
47 Ppsfreq int64
48 Jitter int64
49 Shift int32
50 Pad_cgo_2 [4]byte
51 Stabil int64
52 Jitcnt int64
53 Calcnt int64
54 Errcnt int64
55 Stbcnt int64
56 Tai int32
57 Pad_cgo_3 [44]byte
58}
59
60type Time_t int64
61
62type Tms struct {
63 Utime int64
64 Stime int64
65 Cutime int64
66 Cstime int64
67}
68
69type Utimbuf struct {
70 Actime int64
71 Modtime int64
72}
73
74type Rusage struct {
75 Utime Timeval
76 Stime Timeval
77 Maxrss int64
78 Ixrss int64
79 Idrss int64
80 Isrss int64
81 Minflt int64
82 Majflt int64
83 Nswap int64
84 Inblock int64
85 Oublock int64
86 Msgsnd int64
87 Msgrcv int64
88 Nsignals int64
89 Nvcsw int64
90 Nivcsw int64
91}
92
93type Rlimit struct {
94 Cur uint64
95 Max uint64
96}
97
98type _Gid_t uint32
99
100type Stat_t struct {
101 Dev uint64
102 Ino uint64
103 Mode uint32
104 Nlink uint32
105 Uid uint32
106 Gid uint32
107 Rdev uint64
108 X__pad1 uint64
109 Size int64
110 Blksize int32
111 X__pad2 int32
112 Blocks int64
113 Atim Timespec
114 Mtim Timespec
115 Ctim Timespec
116 X__glibc_reserved [2]int32
117}
118
119type Statfs_t struct {
120 Type int64
121 Bsize int64
122 Blocks uint64
123 Bfree uint64
124 Bavail uint64
125 Files uint64
126 Ffree uint64
127 Fsid Fsid
128 Namelen int64
129 Frsize int64
130 Flags int64
131 Spare [4]int64
132}
133
134type Dirent struct {
135 Ino uint64
136 Off int64
137 Reclen uint16
138 Type uint8
139 Name [256]int8
140 Pad_cgo_0 [5]byte
141}
142
143type Fsid struct {
144 X__val [2]int32
145}
146
147type Flock_t struct {
148 Type int16
149 Whence int16
150 Pad_cgo_0 [4]byte
151 Start int64
152 Len int64
153 Pid int32
154 Pad_cgo_1 [4]byte
155}
156
157const (
158 FADV_NORMAL = 0x0
159 FADV_RANDOM = 0x1
160 FADV_SEQUENTIAL = 0x2
161 FADV_WILLNEED = 0x3
162 FADV_DONTNEED = 0x4
163 FADV_NOREUSE = 0x5
164)
165
166type RawSockaddrInet4 struct {
167 Family uint16
168 Port uint16
169 Addr [4]byte /* in_addr */
170 Zero [8]uint8
171}
172
173type RawSockaddrInet6 struct {
174 Family uint16
175 Port uint16
176 Flowinfo uint32
177 Addr [16]byte /* in6_addr */
178 Scope_id uint32
179}
180
181type RawSockaddrUnix struct {
182 Family uint16
183 Path [108]int8
184}
185
186type RawSockaddrLinklayer struct {
187 Family uint16
188 Protocol uint16
189 Ifindex int32
190 Hatype uint16
191 Pkttype uint8
192 Halen uint8
193 Addr [8]uint8
194}
195
196type RawSockaddrNetlink struct {
197 Family uint16
198 Pad uint16
199 Pid uint32
200 Groups uint32
201}
202
203type RawSockaddr struct {
204 Family uint16
205 Data [14]int8
206}
207
208type RawSockaddrAny struct {
209 Addr RawSockaddr
210 Pad [96]int8
211}
212
213type _Socklen uint32
214
215type Linger struct {
216 Onoff int32
217 Linger int32
218}
219
220type Iovec struct {
221 Base *byte
222 Len uint64
223}
224
225type IPMreq struct {
226 Multiaddr [4]byte /* in_addr */
227 Interface [4]byte /* in_addr */
228}
229
230type IPMreqn struct {
231 Multiaddr [4]byte /* in_addr */
232 Address [4]byte /* in_addr */
233 Ifindex int32
234}
235
236type IPv6Mreq struct {
237 Multiaddr [16]byte /* in6_addr */
238 Interface uint32
239}
240
241type Msghdr struct {
242 Name *byte
243 Namelen uint32
244 Pad_cgo_0 [4]byte
245 Iov *Iovec
246 Iovlen uint64
247 Control *byte
248 Controllen uint64
249 Flags int32
250 Pad_cgo_1 [4]byte
251}
252
253type Cmsghdr struct {
254 Len uint64
255 Level int32
256 Type int32
257 X__cmsg_data [0]uint8
258}
259
260type Inet4Pktinfo struct {
261 Ifindex int32
262 Spec_dst [4]byte /* in_addr */
263 Addr [4]byte /* in_addr */
264}
265
266type Inet6Pktinfo struct {
267 Addr [16]byte /* in6_addr */
268 Ifindex uint32
269}
270
271type IPv6MTUInfo struct {
272 Addr RawSockaddrInet6
273 Mtu uint32
274}
275
276type ICMPv6Filter struct {
277 Data [8]uint32
278}
279
280type Ucred struct {
281 Pid int32
282 Uid uint32
283 Gid uint32
284}
285
286type TCPInfo struct {
287 State uint8
288 Ca_state uint8
289 Retransmits uint8
290 Probes uint8
291 Backoff uint8
292 Options uint8
293 Pad_cgo_0 [2]byte
294 Rto uint32
295 Ato uint32
296 Snd_mss uint32
297 Rcv_mss uint32
298 Unacked uint32
299 Sacked uint32
300 Lost uint32
301 Retrans uint32
302 Fackets uint32
303 Last_data_sent uint32
304 Last_ack_sent uint32
305 Last_data_recv uint32
306 Last_ack_recv uint32
307 Pmtu uint32
308 Rcv_ssthresh uint32
309 Rtt uint32
310 Rttvar uint32
311 Snd_ssthresh uint32
312 Snd_cwnd uint32
313 Advmss uint32
314 Reordering uint32
315 Rcv_rtt uint32
316 Rcv_space uint32
317 Total_retrans uint32
318}
319
320const (
321 SizeofSockaddrInet4 = 0x10
322 SizeofSockaddrInet6 = 0x1c
323 SizeofSockaddrAny = 0x70
324 SizeofSockaddrUnix = 0x6e
325 SizeofSockaddrLinklayer = 0x14
326 SizeofSockaddrNetlink = 0xc
327 SizeofLinger = 0x8
328 SizeofIPMreq = 0x8
329 SizeofIPMreqn = 0xc
330 SizeofIPv6Mreq = 0x14
331 SizeofMsghdr = 0x38
332 SizeofCmsghdr = 0x10
333 SizeofInet4Pktinfo = 0xc
334 SizeofInet6Pktinfo = 0x14
335 SizeofIPv6MTUInfo = 0x20
336 SizeofICMPv6Filter = 0x20
337 SizeofUcred = 0xc
338 SizeofTCPInfo = 0x68
339)
340
341const (
342 IFA_UNSPEC = 0x0
343 IFA_ADDRESS = 0x1
344 IFA_LOCAL = 0x2
345 IFA_LABEL = 0x3
346 IFA_BROADCAST = 0x4
347 IFA_ANYCAST = 0x5
348 IFA_CACHEINFO = 0x6
349 IFA_MULTICAST = 0x7
350 IFLA_UNSPEC = 0x0
351 IFLA_ADDRESS = 0x1
352 IFLA_BROADCAST = 0x2
353 IFLA_IFNAME = 0x3
354 IFLA_MTU = 0x4
355 IFLA_LINK = 0x5
356 IFLA_QDISC = 0x6
357 IFLA_STATS = 0x7
358 IFLA_COST = 0x8
359 IFLA_PRIORITY = 0x9
360 IFLA_MASTER = 0xa
361 IFLA_WIRELESS = 0xb
362 IFLA_PROTINFO = 0xc
363 IFLA_TXQLEN = 0xd
364 IFLA_MAP = 0xe
365 IFLA_WEIGHT = 0xf
366 IFLA_OPERSTATE = 0x10
367 IFLA_LINKMODE = 0x11
368 IFLA_LINKINFO = 0x12
369 IFLA_NET_NS_PID = 0x13
370 IFLA_IFALIAS = 0x14
371 IFLA_MAX = 0x22
372 RT_SCOPE_UNIVERSE = 0x0
373 RT_SCOPE_SITE = 0xc8
374 RT_SCOPE_LINK = 0xfd
375 RT_SCOPE_HOST = 0xfe
376 RT_SCOPE_NOWHERE = 0xff
377 RT_TABLE_UNSPEC = 0x0
378 RT_TABLE_COMPAT = 0xfc
379 RT_TABLE_DEFAULT = 0xfd
380 RT_TABLE_MAIN = 0xfe
381 RT_TABLE_LOCAL = 0xff
382 RT_TABLE_MAX = 0xffffffff
383 RTA_UNSPEC = 0x0
384 RTA_DST = 0x1
385 RTA_SRC = 0x2
386 RTA_IIF = 0x3
387 RTA_OIF = 0x4
388 RTA_GATEWAY = 0x5
389 RTA_PRIORITY = 0x6
390 RTA_PREFSRC = 0x7
391 RTA_METRICS = 0x8
392 RTA_MULTIPATH = 0x9
393 RTA_FLOW = 0xb
394 RTA_CACHEINFO = 0xc
395 RTA_TABLE = 0xf
396 RTN_UNSPEC = 0x0
397 RTN_UNICAST = 0x1
398 RTN_LOCAL = 0x2
399 RTN_BROADCAST = 0x3
400 RTN_ANYCAST = 0x4
401 RTN_MULTICAST = 0x5
402 RTN_BLACKHOLE = 0x6
403 RTN_UNREACHABLE = 0x7
404 RTN_PROHIBIT = 0x8
405 RTN_THROW = 0x9
406 RTN_NAT = 0xa
407 RTN_XRESOLVE = 0xb
408 RTNLGRP_NONE = 0x0
409 RTNLGRP_LINK = 0x1
410 RTNLGRP_NOTIFY = 0x2
411 RTNLGRP_NEIGH = 0x3
412 RTNLGRP_TC = 0x4
413 RTNLGRP_IPV4_IFADDR = 0x5
414 RTNLGRP_IPV4_MROUTE = 0x6
415 RTNLGRP_IPV4_ROUTE = 0x7
416 RTNLGRP_IPV4_RULE = 0x8
417 RTNLGRP_IPV6_IFADDR = 0x9
418 RTNLGRP_IPV6_MROUTE = 0xa
419 RTNLGRP_IPV6_ROUTE = 0xb
420 RTNLGRP_IPV6_IFINFO = 0xc
421 RTNLGRP_IPV6_PREFIX = 0x12
422 RTNLGRP_IPV6_RULE = 0x13
423 RTNLGRP_ND_USEROPT = 0x14
424 SizeofNlMsghdr = 0x10
425 SizeofNlMsgerr = 0x14
426 SizeofRtGenmsg = 0x1
427 SizeofNlAttr = 0x4
428 SizeofRtAttr = 0x4
429 SizeofIfInfomsg = 0x10
430 SizeofIfAddrmsg = 0x8
431 SizeofRtMsg = 0xc
432 SizeofRtNexthop = 0x8
433)
434
435type NlMsghdr struct {
436 Len uint32
437 Type uint16
438 Flags uint16
439 Seq uint32
440 Pid uint32
441}
442
443type NlMsgerr struct {
444 Error int32
445 Msg NlMsghdr
446}
447
448type RtGenmsg struct {
449 Family uint8
450}
451
452type NlAttr struct {
453 Len uint16
454 Type uint16
455}
456
457type RtAttr struct {
458 Len uint16
459 Type uint16
460}
461
462type IfInfomsg struct {
463 Family uint8
464 X__ifi_pad uint8
465 Type uint16
466 Index int32
467 Flags uint32
468 Change uint32
469}
470
471type IfAddrmsg struct {
472 Family uint8
473 Prefixlen uint8
474 Flags uint8
475 Scope uint8
476 Index uint32
477}
478
479type RtMsg struct {
480 Family uint8
481 Dst_len uint8
482 Src_len uint8
483 Tos uint8
484 Table uint8
485 Protocol uint8
486 Scope uint8
487 Type uint8
488 Flags uint32
489}
490
491type RtNexthop struct {
492 Len uint16
493 Flags uint8
494 Hops uint8
495 Ifindex int32
496}
497
498const (
499 SizeofSockFilter = 0x8
500 SizeofSockFprog = 0x10
501)
502
503type SockFilter struct {
504 Code uint16
505 Jt uint8
506 Jf uint8
507 K uint32
508}
509
510type SockFprog struct {
511 Len uint16
512 Pad_cgo_0 [6]byte
513 Filter *SockFilter
514}
515
516type InotifyEvent struct {
517 Wd int32
518 Mask uint32
519 Cookie uint32
520 Len uint32
521 Name [0]int8
522}
523
524const SizeofInotifyEvent = 0x10
525
526type PtraceRegs struct {
527 Regs [31]uint64
528 Sp uint64
529 Pc uint64
530 Pstate uint64
531}
532
533type FdSet struct {
534 Bits [16]int64
535}
536
537type Sysinfo_t struct {
538 Uptime int64
539 Loads [3]uint64
540 Totalram uint64
541 Freeram uint64
542 Sharedram uint64
543 Bufferram uint64
544 Totalswap uint64
545 Freeswap uint64
546 Procs uint16
547 Pad uint16
548 Pad_cgo_0 [4]byte
549 Totalhigh uint64
550 Freehigh uint64
551 Unit uint32
552 X_f [0]int8
553 Pad_cgo_1 [4]byte
554}
555
556type Utsname struct {
557 Sysname [65]int8
558 Nodename [65]int8
559 Release [65]int8
560 Version [65]int8
561 Machine [65]int8
562 Domainname [65]int8
563}
564
565type Ustat_t struct {
566 Tfree int32
567 Pad_cgo_0 [4]byte
568 Tinode uint64
569 Fname [6]int8
570 Fpack [6]int8
571 Pad_cgo_1 [4]byte
572}
573
574type EpollEvent struct {
575 Events uint32
576 Fd int32
577 Pad int32
578}
579
580const (
581 AT_FDCWD = -0x64
582 AT_REMOVEDIR = 0x200
583 AT_SYMLINK_NOFOLLOW = 0x100
584)
585
586type Termios struct {
587 Iflag uint32
588 Oflag uint32
589 Cflag uint32
590 Lflag uint32
591 Line uint8
592 Cc [19]uint8
593 Ispeed uint32
594 Ospeed uint32
595}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_ppc64.go
deleted file mode 100644
index b14cbfe..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_ppc64.go
+++ /dev/null
@@ -1,605 +0,0 @@
1// +build ppc64,linux
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_linux.go
4
5package unix
6
7const (
8 sizeofPtr = 0x8
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x8
12 sizeofLongLong = 0x8
13 PathMax = 0x1000
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int64
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int64
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int64
31}
32
33type Timex struct {
34 Modes uint32
35 Pad_cgo_0 [4]byte
36 Offset int64
37 Freq int64
38 Maxerror int64
39 Esterror int64
40 Status int32
41 Pad_cgo_1 [4]byte
42 Constant int64
43 Precision int64
44 Tolerance int64
45 Time Timeval
46 Tick int64
47 Ppsfreq int64
48 Jitter int64
49 Shift int32
50 Pad_cgo_2 [4]byte
51 Stabil int64
52 Jitcnt int64
53 Calcnt int64
54 Errcnt int64
55 Stbcnt int64
56 Tai int32
57 Pad_cgo_3 [44]byte
58}
59
60type Time_t int64
61
62type Tms struct {
63 Utime int64
64 Stime int64
65 Cutime int64
66 Cstime int64
67}
68
69type Utimbuf struct {
70 Actime int64
71 Modtime int64
72}
73
74type Rusage struct {
75 Utime Timeval
76 Stime Timeval
77 Maxrss int64
78 Ixrss int64
79 Idrss int64
80 Isrss int64
81 Minflt int64
82 Majflt int64
83 Nswap int64
84 Inblock int64
85 Oublock int64
86 Msgsnd int64
87 Msgrcv int64
88 Nsignals int64
89 Nvcsw int64
90 Nivcsw int64
91}
92
93type Rlimit struct {
94 Cur uint64
95 Max uint64
96}
97
98type _Gid_t uint32
99
100type Stat_t struct {
101 Dev uint64
102 Ino uint64
103 Nlink uint64
104 Mode uint32
105 Uid uint32
106 Gid uint32
107 X__pad2 int32
108 Rdev uint64
109 Size int64
110 Blksize int64
111 Blocks int64
112 Atim Timespec
113 Mtim Timespec
114 Ctim Timespec
115 X__glibc_reserved4 uint64
116 X__glibc_reserved5 uint64
117 X__glibc_reserved6 uint64
118}
119
120type Statfs_t struct {
121 Type int64
122 Bsize int64
123 Blocks uint64
124 Bfree uint64
125 Bavail uint64
126 Files uint64
127 Ffree uint64
128 Fsid Fsid
129 Namelen int64
130 Frsize int64
131 Flags int64
132 Spare [4]int64
133}
134
135type Dirent struct {
136 Ino uint64
137 Off int64
138 Reclen uint16
139 Type uint8
140 Name [256]uint8
141 Pad_cgo_0 [5]byte
142}
143
144type Fsid struct {
145 X__val [2]int32
146}
147
148type Flock_t struct {
149 Type int16
150 Whence int16
151 Pad_cgo_0 [4]byte
152 Start int64
153 Len int64
154 Pid int32
155 Pad_cgo_1 [4]byte
156}
157
158const (
159 FADV_NORMAL = 0x0
160 FADV_RANDOM = 0x1
161 FADV_SEQUENTIAL = 0x2
162 FADV_WILLNEED = 0x3
163 FADV_DONTNEED = 0x4
164 FADV_NOREUSE = 0x5
165)
166
167type RawSockaddrInet4 struct {
168 Family uint16
169 Port uint16
170 Addr [4]byte /* in_addr */
171 Zero [8]uint8
172}
173
174type RawSockaddrInet6 struct {
175 Family uint16
176 Port uint16
177 Flowinfo uint32
178 Addr [16]byte /* in6_addr */
179 Scope_id uint32
180}
181
182type RawSockaddrUnix struct {
183 Family uint16
184 Path [108]int8
185}
186
187type RawSockaddrLinklayer struct {
188 Family uint16
189 Protocol uint16
190 Ifindex int32
191 Hatype uint16
192 Pkttype uint8
193 Halen uint8
194 Addr [8]uint8
195}
196
197type RawSockaddrNetlink struct {
198 Family uint16
199 Pad uint16
200 Pid uint32
201 Groups uint32
202}
203
204type RawSockaddr struct {
205 Family uint16
206 Data [14]uint8
207}
208
209type RawSockaddrAny struct {
210 Addr RawSockaddr
211 Pad [96]uint8
212}
213
214type _Socklen uint32
215
216type Linger struct {
217 Onoff int32
218 Linger int32
219}
220
221type Iovec struct {
222 Base *byte
223 Len uint64
224}
225
226type IPMreq struct {
227 Multiaddr [4]byte /* in_addr */
228 Interface [4]byte /* in_addr */
229}
230
231type IPMreqn struct {
232 Multiaddr [4]byte /* in_addr */
233 Address [4]byte /* in_addr */
234 Ifindex int32
235}
236
237type IPv6Mreq struct {
238 Multiaddr [16]byte /* in6_addr */
239 Interface uint32
240}
241
242type Msghdr struct {
243 Name *byte
244 Namelen uint32
245 Pad_cgo_0 [4]byte
246 Iov *Iovec
247 Iovlen uint64
248 Control *byte
249 Controllen uint64
250 Flags int32
251 Pad_cgo_1 [4]byte
252}
253
254type Cmsghdr struct {
255 Len uint64
256 Level int32
257 Type int32
258 X__cmsg_data [0]uint8
259}
260
261type Inet4Pktinfo struct {
262 Ifindex int32
263 Spec_dst [4]byte /* in_addr */
264 Addr [4]byte /* in_addr */
265}
266
267type Inet6Pktinfo struct {
268 Addr [16]byte /* in6_addr */
269 Ifindex uint32
270}
271
272type IPv6MTUInfo struct {
273 Addr RawSockaddrInet6
274 Mtu uint32
275}
276
277type ICMPv6Filter struct {
278 Data [8]uint32
279}
280
281type Ucred struct {
282 Pid int32
283 Uid uint32
284 Gid uint32
285}
286
287type TCPInfo struct {
288 State uint8
289 Ca_state uint8
290 Retransmits uint8
291 Probes uint8
292 Backoff uint8
293 Options uint8
294 Pad_cgo_0 [2]byte
295 Rto uint32
296 Ato uint32
297 Snd_mss uint32
298 Rcv_mss uint32
299 Unacked uint32
300 Sacked uint32
301 Lost uint32
302 Retrans uint32
303 Fackets uint32
304 Last_data_sent uint32
305 Last_ack_sent uint32
306 Last_data_recv uint32
307 Last_ack_recv uint32
308 Pmtu uint32
309 Rcv_ssthresh uint32
310 Rtt uint32
311 Rttvar uint32
312 Snd_ssthresh uint32
313 Snd_cwnd uint32
314 Advmss uint32
315 Reordering uint32
316 Rcv_rtt uint32
317 Rcv_space uint32
318 Total_retrans uint32
319}
320
321const (
322 SizeofSockaddrInet4 = 0x10
323 SizeofSockaddrInet6 = 0x1c
324 SizeofSockaddrAny = 0x70
325 SizeofSockaddrUnix = 0x6e
326 SizeofSockaddrLinklayer = 0x14
327 SizeofSockaddrNetlink = 0xc
328 SizeofLinger = 0x8
329 SizeofIPMreq = 0x8
330 SizeofIPMreqn = 0xc
331 SizeofIPv6Mreq = 0x14
332 SizeofMsghdr = 0x38
333 SizeofCmsghdr = 0x10
334 SizeofInet4Pktinfo = 0xc
335 SizeofInet6Pktinfo = 0x14
336 SizeofIPv6MTUInfo = 0x20
337 SizeofICMPv6Filter = 0x20
338 SizeofUcred = 0xc
339 SizeofTCPInfo = 0x68
340)
341
342const (
343 IFA_UNSPEC = 0x0
344 IFA_ADDRESS = 0x1
345 IFA_LOCAL = 0x2
346 IFA_LABEL = 0x3
347 IFA_BROADCAST = 0x4
348 IFA_ANYCAST = 0x5
349 IFA_CACHEINFO = 0x6
350 IFA_MULTICAST = 0x7
351 IFLA_UNSPEC = 0x0
352 IFLA_ADDRESS = 0x1
353 IFLA_BROADCAST = 0x2
354 IFLA_IFNAME = 0x3
355 IFLA_MTU = 0x4
356 IFLA_LINK = 0x5
357 IFLA_QDISC = 0x6
358 IFLA_STATS = 0x7
359 IFLA_COST = 0x8
360 IFLA_PRIORITY = 0x9
361 IFLA_MASTER = 0xa
362 IFLA_WIRELESS = 0xb
363 IFLA_PROTINFO = 0xc
364 IFLA_TXQLEN = 0xd
365 IFLA_MAP = 0xe
366 IFLA_WEIGHT = 0xf
367 IFLA_OPERSTATE = 0x10
368 IFLA_LINKMODE = 0x11
369 IFLA_LINKINFO = 0x12
370 IFLA_NET_NS_PID = 0x13
371 IFLA_IFALIAS = 0x14
372 IFLA_MAX = 0x23
373 RT_SCOPE_UNIVERSE = 0x0
374 RT_SCOPE_SITE = 0xc8
375 RT_SCOPE_LINK = 0xfd
376 RT_SCOPE_HOST = 0xfe
377 RT_SCOPE_NOWHERE = 0xff
378 RT_TABLE_UNSPEC = 0x0
379 RT_TABLE_COMPAT = 0xfc
380 RT_TABLE_DEFAULT = 0xfd
381 RT_TABLE_MAIN = 0xfe
382 RT_TABLE_LOCAL = 0xff
383 RT_TABLE_MAX = 0xffffffff
384 RTA_UNSPEC = 0x0
385 RTA_DST = 0x1
386 RTA_SRC = 0x2
387 RTA_IIF = 0x3
388 RTA_OIF = 0x4
389 RTA_GATEWAY = 0x5
390 RTA_PRIORITY = 0x6
391 RTA_PREFSRC = 0x7
392 RTA_METRICS = 0x8
393 RTA_MULTIPATH = 0x9
394 RTA_FLOW = 0xb
395 RTA_CACHEINFO = 0xc
396 RTA_TABLE = 0xf
397 RTN_UNSPEC = 0x0
398 RTN_UNICAST = 0x1
399 RTN_LOCAL = 0x2
400 RTN_BROADCAST = 0x3
401 RTN_ANYCAST = 0x4
402 RTN_MULTICAST = 0x5
403 RTN_BLACKHOLE = 0x6
404 RTN_UNREACHABLE = 0x7
405 RTN_PROHIBIT = 0x8
406 RTN_THROW = 0x9
407 RTN_NAT = 0xa
408 RTN_XRESOLVE = 0xb
409 RTNLGRP_NONE = 0x0
410 RTNLGRP_LINK = 0x1
411 RTNLGRP_NOTIFY = 0x2
412 RTNLGRP_NEIGH = 0x3
413 RTNLGRP_TC = 0x4
414 RTNLGRP_IPV4_IFADDR = 0x5
415 RTNLGRP_IPV4_MROUTE = 0x6
416 RTNLGRP_IPV4_ROUTE = 0x7
417 RTNLGRP_IPV4_RULE = 0x8
418 RTNLGRP_IPV6_IFADDR = 0x9
419 RTNLGRP_IPV6_MROUTE = 0xa
420 RTNLGRP_IPV6_ROUTE = 0xb
421 RTNLGRP_IPV6_IFINFO = 0xc
422 RTNLGRP_IPV6_PREFIX = 0x12
423 RTNLGRP_IPV6_RULE = 0x13
424 RTNLGRP_ND_USEROPT = 0x14
425 SizeofNlMsghdr = 0x10
426 SizeofNlMsgerr = 0x14
427 SizeofRtGenmsg = 0x1
428 SizeofNlAttr = 0x4
429 SizeofRtAttr = 0x4
430 SizeofIfInfomsg = 0x10
431 SizeofIfAddrmsg = 0x8
432 SizeofRtMsg = 0xc
433 SizeofRtNexthop = 0x8
434)
435
436type NlMsghdr struct {
437 Len uint32
438 Type uint16
439 Flags uint16
440 Seq uint32
441 Pid uint32
442}
443
444type NlMsgerr struct {
445 Error int32
446 Msg NlMsghdr
447}
448
449type RtGenmsg struct {
450 Family uint8
451}
452
453type NlAttr struct {
454 Len uint16
455 Type uint16
456}
457
458type RtAttr struct {
459 Len uint16
460 Type uint16
461}
462
463type IfInfomsg struct {
464 Family uint8
465 X__ifi_pad uint8
466 Type uint16
467 Index int32
468 Flags uint32
469 Change uint32
470}
471
472type IfAddrmsg struct {
473 Family uint8
474 Prefixlen uint8
475 Flags uint8
476 Scope uint8
477 Index uint32
478}
479
480type RtMsg struct {
481 Family uint8
482 Dst_len uint8
483 Src_len uint8
484 Tos uint8
485 Table uint8
486 Protocol uint8
487 Scope uint8
488 Type uint8
489 Flags uint32
490}
491
492type RtNexthop struct {
493 Len uint16
494 Flags uint8
495 Hops uint8
496 Ifindex int32
497}
498
499const (
500 SizeofSockFilter = 0x8
501 SizeofSockFprog = 0x10
502)
503
504type SockFilter struct {
505 Code uint16
506 Jt uint8
507 Jf uint8
508 K uint32
509}
510
511type SockFprog struct {
512 Len uint16
513 Pad_cgo_0 [6]byte
514 Filter *SockFilter
515}
516
517type InotifyEvent struct {
518 Wd int32
519 Mask uint32
520 Cookie uint32
521 Len uint32
522 Name [0]uint8
523}
524
525const SizeofInotifyEvent = 0x10
526
527type PtraceRegs struct {
528 Gpr [32]uint64
529 Nip uint64
530 Msr uint64
531 Orig_gpr3 uint64
532 Ctr uint64
533 Link uint64
534 Xer uint64
535 Ccr uint64
536 Softe uint64
537 Trap uint64
538 Dar uint64
539 Dsisr uint64
540 Result uint64
541}
542
543type FdSet struct {
544 Bits [16]int64
545}
546
547type Sysinfo_t struct {
548 Uptime int64
549 Loads [3]uint64
550 Totalram uint64
551 Freeram uint64
552 Sharedram uint64
553 Bufferram uint64
554 Totalswap uint64
555 Freeswap uint64
556 Procs uint16
557 Pad uint16
558 Pad_cgo_0 [4]byte
559 Totalhigh uint64
560 Freehigh uint64
561 Unit uint32
562 X_f [0]uint8
563 Pad_cgo_1 [4]byte
564}
565
566type Utsname struct {
567 Sysname [65]uint8
568 Nodename [65]uint8
569 Release [65]uint8
570 Version [65]uint8
571 Machine [65]uint8
572 Domainname [65]uint8
573}
574
575type Ustat_t struct {
576 Tfree int32
577 Pad_cgo_0 [4]byte
578 Tinode uint64
579 Fname [6]uint8
580 Fpack [6]uint8
581 Pad_cgo_1 [4]byte
582}
583
584type EpollEvent struct {
585 Events uint32
586 Fd int32
587 Pad int32
588}
589
590const (
591 AT_FDCWD = -0x64
592 AT_REMOVEDIR = 0x200
593 AT_SYMLINK_NOFOLLOW = 0x100
594)
595
596type Termios struct {
597 Iflag uint32
598 Oflag uint32
599 Cflag uint32
600 Lflag uint32
601 Cc [19]uint8
602 Line uint8
603 Ispeed uint32
604 Ospeed uint32
605}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
deleted file mode 100644
index 22c96a2..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
+++ /dev/null
@@ -1,605 +0,0 @@
1// +build ppc64le,linux
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_linux.go
4
5package unix
6
7const (
8 sizeofPtr = 0x8
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x8
12 sizeofLongLong = 0x8
13 PathMax = 0x1000
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int64
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int64
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int64
31}
32
33type Timex struct {
34 Modes uint32
35 Pad_cgo_0 [4]byte
36 Offset int64
37 Freq int64
38 Maxerror int64
39 Esterror int64
40 Status int32
41 Pad_cgo_1 [4]byte
42 Constant int64
43 Precision int64
44 Tolerance int64
45 Time Timeval
46 Tick int64
47 Ppsfreq int64
48 Jitter int64
49 Shift int32
50 Pad_cgo_2 [4]byte
51 Stabil int64
52 Jitcnt int64
53 Calcnt int64
54 Errcnt int64
55 Stbcnt int64
56 Tai int32
57 Pad_cgo_3 [44]byte
58}
59
60type Time_t int64
61
62type Tms struct {
63 Utime int64
64 Stime int64
65 Cutime int64
66 Cstime int64
67}
68
69type Utimbuf struct {
70 Actime int64
71 Modtime int64
72}
73
74type Rusage struct {
75 Utime Timeval
76 Stime Timeval
77 Maxrss int64
78 Ixrss int64
79 Idrss int64
80 Isrss int64
81 Minflt int64
82 Majflt int64
83 Nswap int64
84 Inblock int64
85 Oublock int64
86 Msgsnd int64
87 Msgrcv int64
88 Nsignals int64
89 Nvcsw int64
90 Nivcsw int64
91}
92
93type Rlimit struct {
94 Cur uint64
95 Max uint64
96}
97
98type _Gid_t uint32
99
100type Stat_t struct {
101 Dev uint64
102 Ino uint64
103 Nlink uint64
104 Mode uint32
105 Uid uint32
106 Gid uint32
107 X__pad2 int32
108 Rdev uint64
109 Size int64
110 Blksize int64
111 Blocks int64
112 Atim Timespec
113 Mtim Timespec
114 Ctim Timespec
115 X__glibc_reserved4 uint64
116 X__glibc_reserved5 uint64
117 X__glibc_reserved6 uint64
118}
119
120type Statfs_t struct {
121 Type int64
122 Bsize int64
123 Blocks uint64
124 Bfree uint64
125 Bavail uint64
126 Files uint64
127 Ffree uint64
128 Fsid Fsid
129 Namelen int64
130 Frsize int64
131 Flags int64
132 Spare [4]int64
133}
134
135type Dirent struct {
136 Ino uint64
137 Off int64
138 Reclen uint16
139 Type uint8
140 Name [256]uint8
141 Pad_cgo_0 [5]byte
142}
143
144type Fsid struct {
145 X__val [2]int32
146}
147
148type Flock_t struct {
149 Type int16
150 Whence int16
151 Pad_cgo_0 [4]byte
152 Start int64
153 Len int64
154 Pid int32
155 Pad_cgo_1 [4]byte
156}
157
158const (
159 FADV_NORMAL = 0x0
160 FADV_RANDOM = 0x1
161 FADV_SEQUENTIAL = 0x2
162 FADV_WILLNEED = 0x3
163 FADV_DONTNEED = 0x4
164 FADV_NOREUSE = 0x5
165)
166
167type RawSockaddrInet4 struct {
168 Family uint16
169 Port uint16
170 Addr [4]byte /* in_addr */
171 Zero [8]uint8
172}
173
174type RawSockaddrInet6 struct {
175 Family uint16
176 Port uint16
177 Flowinfo uint32
178 Addr [16]byte /* in6_addr */
179 Scope_id uint32
180}
181
182type RawSockaddrUnix struct {
183 Family uint16
184 Path [108]int8
185}
186
187type RawSockaddrLinklayer struct {
188 Family uint16
189 Protocol uint16
190 Ifindex int32
191 Hatype uint16
192 Pkttype uint8
193 Halen uint8
194 Addr [8]uint8
195}
196
197type RawSockaddrNetlink struct {
198 Family uint16
199 Pad uint16
200 Pid uint32
201 Groups uint32
202}
203
204type RawSockaddr struct {
205 Family uint16
206 Data [14]uint8
207}
208
209type RawSockaddrAny struct {
210 Addr RawSockaddr
211 Pad [96]uint8
212}
213
214type _Socklen uint32
215
216type Linger struct {
217 Onoff int32
218 Linger int32
219}
220
221type Iovec struct {
222 Base *byte
223 Len uint64
224}
225
226type IPMreq struct {
227 Multiaddr [4]byte /* in_addr */
228 Interface [4]byte /* in_addr */
229}
230
231type IPMreqn struct {
232 Multiaddr [4]byte /* in_addr */
233 Address [4]byte /* in_addr */
234 Ifindex int32
235}
236
237type IPv6Mreq struct {
238 Multiaddr [16]byte /* in6_addr */
239 Interface uint32
240}
241
242type Msghdr struct {
243 Name *byte
244 Namelen uint32
245 Pad_cgo_0 [4]byte
246 Iov *Iovec
247 Iovlen uint64
248 Control *byte
249 Controllen uint64
250 Flags int32
251 Pad_cgo_1 [4]byte
252}
253
254type Cmsghdr struct {
255 Len uint64
256 Level int32
257 Type int32
258 X__cmsg_data [0]uint8
259}
260
261type Inet4Pktinfo struct {
262 Ifindex int32
263 Spec_dst [4]byte /* in_addr */
264 Addr [4]byte /* in_addr */
265}
266
267type Inet6Pktinfo struct {
268 Addr [16]byte /* in6_addr */
269 Ifindex uint32
270}
271
272type IPv6MTUInfo struct {
273 Addr RawSockaddrInet6
274 Mtu uint32
275}
276
277type ICMPv6Filter struct {
278 Data [8]uint32
279}
280
281type Ucred struct {
282 Pid int32
283 Uid uint32
284 Gid uint32
285}
286
287type TCPInfo struct {
288 State uint8
289 Ca_state uint8
290 Retransmits uint8
291 Probes uint8
292 Backoff uint8
293 Options uint8
294 Pad_cgo_0 [2]byte
295 Rto uint32
296 Ato uint32
297 Snd_mss uint32
298 Rcv_mss uint32
299 Unacked uint32
300 Sacked uint32
301 Lost uint32
302 Retrans uint32
303 Fackets uint32
304 Last_data_sent uint32
305 Last_ack_sent uint32
306 Last_data_recv uint32
307 Last_ack_recv uint32
308 Pmtu uint32
309 Rcv_ssthresh uint32
310 Rtt uint32
311 Rttvar uint32
312 Snd_ssthresh uint32
313 Snd_cwnd uint32
314 Advmss uint32
315 Reordering uint32
316 Rcv_rtt uint32
317 Rcv_space uint32
318 Total_retrans uint32
319}
320
321const (
322 SizeofSockaddrInet4 = 0x10
323 SizeofSockaddrInet6 = 0x1c
324 SizeofSockaddrAny = 0x70
325 SizeofSockaddrUnix = 0x6e
326 SizeofSockaddrLinklayer = 0x14
327 SizeofSockaddrNetlink = 0xc
328 SizeofLinger = 0x8
329 SizeofIPMreq = 0x8
330 SizeofIPMreqn = 0xc
331 SizeofIPv6Mreq = 0x14
332 SizeofMsghdr = 0x38
333 SizeofCmsghdr = 0x10
334 SizeofInet4Pktinfo = 0xc
335 SizeofInet6Pktinfo = 0x14
336 SizeofIPv6MTUInfo = 0x20
337 SizeofICMPv6Filter = 0x20
338 SizeofUcred = 0xc
339 SizeofTCPInfo = 0x68
340)
341
342const (
343 IFA_UNSPEC = 0x0
344 IFA_ADDRESS = 0x1
345 IFA_LOCAL = 0x2
346 IFA_LABEL = 0x3
347 IFA_BROADCAST = 0x4
348 IFA_ANYCAST = 0x5
349 IFA_CACHEINFO = 0x6
350 IFA_MULTICAST = 0x7
351 IFLA_UNSPEC = 0x0
352 IFLA_ADDRESS = 0x1
353 IFLA_BROADCAST = 0x2
354 IFLA_IFNAME = 0x3
355 IFLA_MTU = 0x4
356 IFLA_LINK = 0x5
357 IFLA_QDISC = 0x6
358 IFLA_STATS = 0x7
359 IFLA_COST = 0x8
360 IFLA_PRIORITY = 0x9
361 IFLA_MASTER = 0xa
362 IFLA_WIRELESS = 0xb
363 IFLA_PROTINFO = 0xc
364 IFLA_TXQLEN = 0xd
365 IFLA_MAP = 0xe
366 IFLA_WEIGHT = 0xf
367 IFLA_OPERSTATE = 0x10
368 IFLA_LINKMODE = 0x11
369 IFLA_LINKINFO = 0x12
370 IFLA_NET_NS_PID = 0x13
371 IFLA_IFALIAS = 0x14
372 IFLA_MAX = 0x22
373 RT_SCOPE_UNIVERSE = 0x0
374 RT_SCOPE_SITE = 0xc8
375 RT_SCOPE_LINK = 0xfd
376 RT_SCOPE_HOST = 0xfe
377 RT_SCOPE_NOWHERE = 0xff
378 RT_TABLE_UNSPEC = 0x0
379 RT_TABLE_COMPAT = 0xfc
380 RT_TABLE_DEFAULT = 0xfd
381 RT_TABLE_MAIN = 0xfe
382 RT_TABLE_LOCAL = 0xff
383 RT_TABLE_MAX = 0xffffffff
384 RTA_UNSPEC = 0x0
385 RTA_DST = 0x1
386 RTA_SRC = 0x2
387 RTA_IIF = 0x3
388 RTA_OIF = 0x4
389 RTA_GATEWAY = 0x5
390 RTA_PRIORITY = 0x6
391 RTA_PREFSRC = 0x7
392 RTA_METRICS = 0x8
393 RTA_MULTIPATH = 0x9
394 RTA_FLOW = 0xb
395 RTA_CACHEINFO = 0xc
396 RTA_TABLE = 0xf
397 RTN_UNSPEC = 0x0
398 RTN_UNICAST = 0x1
399 RTN_LOCAL = 0x2
400 RTN_BROADCAST = 0x3
401 RTN_ANYCAST = 0x4
402 RTN_MULTICAST = 0x5
403 RTN_BLACKHOLE = 0x6
404 RTN_UNREACHABLE = 0x7
405 RTN_PROHIBIT = 0x8
406 RTN_THROW = 0x9
407 RTN_NAT = 0xa
408 RTN_XRESOLVE = 0xb
409 RTNLGRP_NONE = 0x0
410 RTNLGRP_LINK = 0x1
411 RTNLGRP_NOTIFY = 0x2
412 RTNLGRP_NEIGH = 0x3
413 RTNLGRP_TC = 0x4
414 RTNLGRP_IPV4_IFADDR = 0x5
415 RTNLGRP_IPV4_MROUTE = 0x6
416 RTNLGRP_IPV4_ROUTE = 0x7
417 RTNLGRP_IPV4_RULE = 0x8
418 RTNLGRP_IPV6_IFADDR = 0x9
419 RTNLGRP_IPV6_MROUTE = 0xa
420 RTNLGRP_IPV6_ROUTE = 0xb
421 RTNLGRP_IPV6_IFINFO = 0xc
422 RTNLGRP_IPV6_PREFIX = 0x12
423 RTNLGRP_IPV6_RULE = 0x13
424 RTNLGRP_ND_USEROPT = 0x14
425 SizeofNlMsghdr = 0x10
426 SizeofNlMsgerr = 0x14
427 SizeofRtGenmsg = 0x1
428 SizeofNlAttr = 0x4
429 SizeofRtAttr = 0x4
430 SizeofIfInfomsg = 0x10
431 SizeofIfAddrmsg = 0x8
432 SizeofRtMsg = 0xc
433 SizeofRtNexthop = 0x8
434)
435
436type NlMsghdr struct {
437 Len uint32
438 Type uint16
439 Flags uint16
440 Seq uint32
441 Pid uint32
442}
443
444type NlMsgerr struct {
445 Error int32
446 Msg NlMsghdr
447}
448
449type RtGenmsg struct {
450 Family uint8
451}
452
453type NlAttr struct {
454 Len uint16
455 Type uint16
456}
457
458type RtAttr struct {
459 Len uint16
460 Type uint16
461}
462
463type IfInfomsg struct {
464 Family uint8
465 X__ifi_pad uint8
466 Type uint16
467 Index int32
468 Flags uint32
469 Change uint32
470}
471
472type IfAddrmsg struct {
473 Family uint8
474 Prefixlen uint8
475 Flags uint8
476 Scope uint8
477 Index uint32
478}
479
480type RtMsg struct {
481 Family uint8
482 Dst_len uint8
483 Src_len uint8
484 Tos uint8
485 Table uint8
486 Protocol uint8
487 Scope uint8
488 Type uint8
489 Flags uint32
490}
491
492type RtNexthop struct {
493 Len uint16
494 Flags uint8
495 Hops uint8
496 Ifindex int32
497}
498
499const (
500 SizeofSockFilter = 0x8
501 SizeofSockFprog = 0x10
502)
503
504type SockFilter struct {
505 Code uint16
506 Jt uint8
507 Jf uint8
508 K uint32
509}
510
511type SockFprog struct {
512 Len uint16
513 Pad_cgo_0 [6]byte
514 Filter *SockFilter
515}
516
517type InotifyEvent struct {
518 Wd int32
519 Mask uint32
520 Cookie uint32
521 Len uint32
522 Name [0]uint8
523}
524
525const SizeofInotifyEvent = 0x10
526
527type PtraceRegs struct {
528 Gpr [32]uint64
529 Nip uint64
530 Msr uint64
531 Orig_gpr3 uint64
532 Ctr uint64
533 Link uint64
534 Xer uint64
535 Ccr uint64
536 Softe uint64
537 Trap uint64
538 Dar uint64
539 Dsisr uint64
540 Result uint64
541}
542
543type FdSet struct {
544 Bits [16]int64
545}
546
547type Sysinfo_t struct {
548 Uptime int64
549 Loads [3]uint64
550 Totalram uint64
551 Freeram uint64
552 Sharedram uint64
553 Bufferram uint64
554 Totalswap uint64
555 Freeswap uint64
556 Procs uint16
557 Pad uint16
558 Pad_cgo_0 [4]byte
559 Totalhigh uint64
560 Freehigh uint64
561 Unit uint32
562 X_f [0]uint8
563 Pad_cgo_1 [4]byte
564}
565
566type Utsname struct {
567 Sysname [65]uint8
568 Nodename [65]uint8
569 Release [65]uint8
570 Version [65]uint8
571 Machine [65]uint8
572 Domainname [65]uint8
573}
574
575type Ustat_t struct {
576 Tfree int32
577 Pad_cgo_0 [4]byte
578 Tinode uint64
579 Fname [6]uint8
580 Fpack [6]uint8
581 Pad_cgo_1 [4]byte
582}
583
584type EpollEvent struct {
585 Events uint32
586 Fd int32
587 Pad int32
588}
589
590const (
591 AT_FDCWD = -0x64
592 AT_REMOVEDIR = 0x200
593 AT_SYMLINK_NOFOLLOW = 0x100
594)
595
596type Termios struct {
597 Iflag uint32
598 Oflag uint32
599 Cflag uint32
600 Lflag uint32
601 Cc [19]uint8
602 Line uint8
603 Ispeed uint32
604 Ospeed uint32
605}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_386.go
deleted file mode 100644
index caf755f..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_386.go
+++ /dev/null
@@ -1,396 +0,0 @@
1// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs types_netbsd.go
3
4// +build 386,netbsd
5
6package unix
7
8const (
9 sizeofPtr = 0x4
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x4
13 sizeofLongLong = 0x8
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int32
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int32
31}
32
33type Rusage struct {
34 Utime Timeval
35 Stime Timeval
36 Maxrss int32
37 Ixrss int32
38 Idrss int32
39 Isrss int32
40 Minflt int32
41 Majflt int32
42 Nswap int32
43 Inblock int32
44 Oublock int32
45 Msgsnd int32
46 Msgrcv int32
47 Nsignals int32
48 Nvcsw int32
49 Nivcsw int32
50}
51
52type Rlimit struct {
53 Cur uint64
54 Max uint64
55}
56
57type _Gid_t uint32
58
59type Stat_t struct {
60 Dev uint64
61 Mode uint32
62 Ino uint64
63 Nlink uint32
64 Uid uint32
65 Gid uint32
66 Rdev uint64
67 Atimespec Timespec
68 Mtimespec Timespec
69 Ctimespec Timespec
70 Birthtimespec Timespec
71 Size int64
72 Blocks int64
73 Blksize uint32
74 Flags uint32
75 Gen uint32
76 Spare [2]uint32
77}
78
79type Statfs_t [0]byte
80
81type Flock_t struct {
82 Start int64
83 Len int64
84 Pid int32
85 Type int16
86 Whence int16
87}
88
89type Dirent struct {
90 Fileno uint64
91 Reclen uint16
92 Namlen uint16
93 Type uint8
94 Name [512]int8
95 Pad_cgo_0 [3]byte
96}
97
98type Fsid struct {
99 X__fsid_val [2]int32
100}
101
102type RawSockaddrInet4 struct {
103 Len uint8
104 Family uint8
105 Port uint16
106 Addr [4]byte /* in_addr */
107 Zero [8]int8
108}
109
110type RawSockaddrInet6 struct {
111 Len uint8
112 Family uint8
113 Port uint16
114 Flowinfo uint32
115 Addr [16]byte /* in6_addr */
116 Scope_id uint32
117}
118
119type RawSockaddrUnix struct {
120 Len uint8
121 Family uint8
122 Path [104]int8
123}
124
125type RawSockaddrDatalink struct {
126 Len uint8
127 Family uint8
128 Index uint16
129 Type uint8
130 Nlen uint8
131 Alen uint8
132 Slen uint8
133 Data [12]int8
134}
135
136type RawSockaddr struct {
137 Len uint8
138 Family uint8
139 Data [14]int8
140}
141
142type RawSockaddrAny struct {
143 Addr RawSockaddr
144 Pad [92]int8
145}
146
147type _Socklen uint32
148
149type Linger struct {
150 Onoff int32
151 Linger int32
152}
153
154type Iovec struct {
155 Base *byte
156 Len uint32
157}
158
159type IPMreq struct {
160 Multiaddr [4]byte /* in_addr */
161 Interface [4]byte /* in_addr */
162}
163
164type IPv6Mreq struct {
165 Multiaddr [16]byte /* in6_addr */
166 Interface uint32
167}
168
169type Msghdr struct {
170 Name *byte
171 Namelen uint32
172 Iov *Iovec
173 Iovlen int32
174 Control *byte
175 Controllen uint32
176 Flags int32
177}
178
179type Cmsghdr struct {
180 Len uint32
181 Level int32
182 Type int32
183}
184
185type Inet6Pktinfo struct {
186 Addr [16]byte /* in6_addr */
187 Ifindex uint32
188}
189
190type IPv6MTUInfo struct {
191 Addr RawSockaddrInet6
192 Mtu uint32
193}
194
195type ICMPv6Filter struct {
196 Filt [8]uint32
197}
198
199const (
200 SizeofSockaddrInet4 = 0x10
201 SizeofSockaddrInet6 = 0x1c
202 SizeofSockaddrAny = 0x6c
203 SizeofSockaddrUnix = 0x6a
204 SizeofSockaddrDatalink = 0x14
205 SizeofLinger = 0x8
206 SizeofIPMreq = 0x8
207 SizeofIPv6Mreq = 0x14
208 SizeofMsghdr = 0x1c
209 SizeofCmsghdr = 0xc
210 SizeofInet6Pktinfo = 0x14
211 SizeofIPv6MTUInfo = 0x20
212 SizeofICMPv6Filter = 0x20
213)
214
215const (
216 PTRACE_TRACEME = 0x0
217 PTRACE_CONT = 0x7
218 PTRACE_KILL = 0x8
219)
220
221type Kevent_t struct {
222 Ident uint32
223 Filter uint32
224 Flags uint32
225 Fflags uint32
226 Data int64
227 Udata int32
228}
229
230type FdSet struct {
231 Bits [8]uint32
232}
233
234const (
235 SizeofIfMsghdr = 0x98
236 SizeofIfData = 0x84
237 SizeofIfaMsghdr = 0x18
238 SizeofIfAnnounceMsghdr = 0x18
239 SizeofRtMsghdr = 0x78
240 SizeofRtMetrics = 0x50
241)
242
243type IfMsghdr struct {
244 Msglen uint16
245 Version uint8
246 Type uint8
247 Addrs int32
248 Flags int32
249 Index uint16
250 Pad_cgo_0 [2]byte
251 Data IfData
252 Pad_cgo_1 [4]byte
253}
254
255type IfData struct {
256 Type uint8
257 Addrlen uint8
258 Hdrlen uint8
259 Pad_cgo_0 [1]byte
260 Link_state int32
261 Mtu uint64
262 Metric uint64
263 Baudrate uint64
264 Ipackets uint64
265 Ierrors uint64
266 Opackets uint64
267 Oerrors uint64
268 Collisions uint64
269 Ibytes uint64
270 Obytes uint64
271 Imcasts uint64
272 Omcasts uint64
273 Iqdrops uint64
274 Noproto uint64
275 Lastchange Timespec
276}
277
278type IfaMsghdr struct {
279 Msglen uint16
280 Version uint8
281 Type uint8
282 Addrs int32
283 Flags int32
284 Metric int32
285 Index uint16
286 Pad_cgo_0 [6]byte
287}
288
289type IfAnnounceMsghdr struct {
290 Msglen uint16
291 Version uint8
292 Type uint8
293 Index uint16
294 Name [16]int8
295 What uint16
296}
297
298type RtMsghdr struct {
299 Msglen uint16
300 Version uint8
301 Type uint8
302 Index uint16
303 Pad_cgo_0 [2]byte
304 Flags int32
305 Addrs int32
306 Pid int32
307 Seq int32
308 Errno int32
309 Use int32
310 Inits int32
311 Pad_cgo_1 [4]byte
312 Rmx RtMetrics
313}
314
315type RtMetrics struct {
316 Locks uint64
317 Mtu uint64
318 Hopcount uint64
319 Recvpipe uint64
320 Sendpipe uint64
321 Ssthresh uint64
322 Rtt uint64
323 Rttvar uint64
324 Expire int64
325 Pksent int64
326}
327
328type Mclpool [0]byte
329
330const (
331 SizeofBpfVersion = 0x4
332 SizeofBpfStat = 0x80
333 SizeofBpfProgram = 0x8
334 SizeofBpfInsn = 0x8
335 SizeofBpfHdr = 0x14
336)
337
338type BpfVersion struct {
339 Major uint16
340 Minor uint16
341}
342
343type BpfStat struct {
344 Recv uint64
345 Drop uint64
346 Capt uint64
347 Padding [13]uint64
348}
349
350type BpfProgram struct {
351 Len uint32
352 Insns *BpfInsn
353}
354
355type BpfInsn struct {
356 Code uint16
357 Jt uint8
358 Jf uint8
359 K uint32
360}
361
362type BpfHdr struct {
363 Tstamp BpfTimeval
364 Caplen uint32
365 Datalen uint32
366 Hdrlen uint16
367 Pad_cgo_0 [2]byte
368}
369
370type BpfTimeval struct {
371 Sec int32
372 Usec int32
373}
374
375type Termios struct {
376 Iflag uint32
377 Oflag uint32
378 Cflag uint32
379 Lflag uint32
380 Cc [20]uint8
381 Ispeed int32
382 Ospeed int32
383}
384
385type Sysctlnode struct {
386 Flags uint32
387 Num int32
388 Name [32]int8
389 Ver uint32
390 X__rsvd uint32
391 Un [16]byte
392 X_sysctl_size [8]byte
393 X_sysctl_func [8]byte
394 X_sysctl_parent [8]byte
395 X_sysctl_desc [8]byte
396}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
deleted file mode 100644
index 91b4a53..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
+++ /dev/null
@@ -1,403 +0,0 @@
1// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs types_netbsd.go
3
4// +build amd64,netbsd
5
6package unix
7
8const (
9 sizeofPtr = 0x8
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x8
13 sizeofLongLong = 0x8
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int64
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int64
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int32
31 Pad_cgo_0 [4]byte
32}
33
34type Rusage struct {
35 Utime Timeval
36 Stime Timeval
37 Maxrss int64
38 Ixrss int64
39 Idrss int64
40 Isrss int64
41 Minflt int64
42 Majflt int64
43 Nswap int64
44 Inblock int64
45 Oublock int64
46 Msgsnd int64
47 Msgrcv int64
48 Nsignals int64
49 Nvcsw int64
50 Nivcsw int64
51}
52
53type Rlimit struct {
54 Cur uint64
55 Max uint64
56}
57
58type _Gid_t uint32
59
60type Stat_t struct {
61 Dev uint64
62 Mode uint32
63 Pad_cgo_0 [4]byte
64 Ino uint64
65 Nlink uint32
66 Uid uint32
67 Gid uint32
68 Pad_cgo_1 [4]byte
69 Rdev uint64
70 Atimespec Timespec
71 Mtimespec Timespec
72 Ctimespec Timespec
73 Birthtimespec Timespec
74 Size int64
75 Blocks int64
76 Blksize uint32
77 Flags uint32
78 Gen uint32
79 Spare [2]uint32
80 Pad_cgo_2 [4]byte
81}
82
83type Statfs_t [0]byte
84
85type Flock_t struct {
86 Start int64
87 Len int64
88 Pid int32
89 Type int16
90 Whence int16
91}
92
93type Dirent struct {
94 Fileno uint64
95 Reclen uint16
96 Namlen uint16
97 Type uint8
98 Name [512]int8
99 Pad_cgo_0 [3]byte
100}
101
102type Fsid struct {
103 X__fsid_val [2]int32
104}
105
106type RawSockaddrInet4 struct {
107 Len uint8
108 Family uint8
109 Port uint16
110 Addr [4]byte /* in_addr */
111 Zero [8]int8
112}
113
114type RawSockaddrInet6 struct {
115 Len uint8
116 Family uint8
117 Port uint16
118 Flowinfo uint32
119 Addr [16]byte /* in6_addr */
120 Scope_id uint32
121}
122
123type RawSockaddrUnix struct {
124 Len uint8
125 Family uint8
126 Path [104]int8
127}
128
129type RawSockaddrDatalink struct {
130 Len uint8
131 Family uint8
132 Index uint16
133 Type uint8
134 Nlen uint8
135 Alen uint8
136 Slen uint8
137 Data [12]int8
138}
139
140type RawSockaddr struct {
141 Len uint8
142 Family uint8
143 Data [14]int8
144}
145
146type RawSockaddrAny struct {
147 Addr RawSockaddr
148 Pad [92]int8
149}
150
151type _Socklen uint32
152
153type Linger struct {
154 Onoff int32
155 Linger int32
156}
157
158type Iovec struct {
159 Base *byte
160 Len uint64
161}
162
163type IPMreq struct {
164 Multiaddr [4]byte /* in_addr */
165 Interface [4]byte /* in_addr */
166}
167
168type IPv6Mreq struct {
169 Multiaddr [16]byte /* in6_addr */
170 Interface uint32
171}
172
173type Msghdr struct {
174 Name *byte
175 Namelen uint32
176 Pad_cgo_0 [4]byte
177 Iov *Iovec
178 Iovlen int32
179 Pad_cgo_1 [4]byte
180 Control *byte
181 Controllen uint32
182 Flags int32
183}
184
185type Cmsghdr struct {
186 Len uint32
187 Level int32
188 Type int32
189}
190
191type Inet6Pktinfo struct {
192 Addr [16]byte /* in6_addr */
193 Ifindex uint32
194}
195
196type IPv6MTUInfo struct {
197 Addr RawSockaddrInet6
198 Mtu uint32
199}
200
201type ICMPv6Filter struct {
202 Filt [8]uint32
203}
204
205const (
206 SizeofSockaddrInet4 = 0x10
207 SizeofSockaddrInet6 = 0x1c
208 SizeofSockaddrAny = 0x6c
209 SizeofSockaddrUnix = 0x6a
210 SizeofSockaddrDatalink = 0x14
211 SizeofLinger = 0x8
212 SizeofIPMreq = 0x8
213 SizeofIPv6Mreq = 0x14
214 SizeofMsghdr = 0x30
215 SizeofCmsghdr = 0xc
216 SizeofInet6Pktinfo = 0x14
217 SizeofIPv6MTUInfo = 0x20
218 SizeofICMPv6Filter = 0x20
219)
220
221const (
222 PTRACE_TRACEME = 0x0
223 PTRACE_CONT = 0x7
224 PTRACE_KILL = 0x8
225)
226
227type Kevent_t struct {
228 Ident uint64
229 Filter uint32
230 Flags uint32
231 Fflags uint32
232 Pad_cgo_0 [4]byte
233 Data int64
234 Udata int64
235}
236
237type FdSet struct {
238 Bits [8]uint32
239}
240
241const (
242 SizeofIfMsghdr = 0x98
243 SizeofIfData = 0x88
244 SizeofIfaMsghdr = 0x18
245 SizeofIfAnnounceMsghdr = 0x18
246 SizeofRtMsghdr = 0x78
247 SizeofRtMetrics = 0x50
248)
249
250type IfMsghdr struct {
251 Msglen uint16
252 Version uint8
253 Type uint8
254 Addrs int32
255 Flags int32
256 Index uint16
257 Pad_cgo_0 [2]byte
258 Data IfData
259}
260
261type IfData struct {
262 Type uint8
263 Addrlen uint8
264 Hdrlen uint8
265 Pad_cgo_0 [1]byte
266 Link_state int32
267 Mtu uint64
268 Metric uint64
269 Baudrate uint64
270 Ipackets uint64
271 Ierrors uint64
272 Opackets uint64
273 Oerrors uint64
274 Collisions uint64
275 Ibytes uint64
276 Obytes uint64
277 Imcasts uint64
278 Omcasts uint64
279 Iqdrops uint64
280 Noproto uint64
281 Lastchange Timespec
282}
283
284type IfaMsghdr struct {
285 Msglen uint16
286 Version uint8
287 Type uint8
288 Addrs int32
289 Flags int32
290 Metric int32
291 Index uint16
292 Pad_cgo_0 [6]byte
293}
294
295type IfAnnounceMsghdr struct {
296 Msglen uint16
297 Version uint8
298 Type uint8
299 Index uint16
300 Name [16]int8
301 What uint16
302}
303
304type RtMsghdr struct {
305 Msglen uint16
306 Version uint8
307 Type uint8
308 Index uint16
309 Pad_cgo_0 [2]byte
310 Flags int32
311 Addrs int32
312 Pid int32
313 Seq int32
314 Errno int32
315 Use int32
316 Inits int32
317 Pad_cgo_1 [4]byte
318 Rmx RtMetrics
319}
320
321type RtMetrics struct {
322 Locks uint64
323 Mtu uint64
324 Hopcount uint64
325 Recvpipe uint64
326 Sendpipe uint64
327 Ssthresh uint64
328 Rtt uint64
329 Rttvar uint64
330 Expire int64
331 Pksent int64
332}
333
334type Mclpool [0]byte
335
336const (
337 SizeofBpfVersion = 0x4
338 SizeofBpfStat = 0x80
339 SizeofBpfProgram = 0x10
340 SizeofBpfInsn = 0x8
341 SizeofBpfHdr = 0x20
342)
343
344type BpfVersion struct {
345 Major uint16
346 Minor uint16
347}
348
349type BpfStat struct {
350 Recv uint64
351 Drop uint64
352 Capt uint64
353 Padding [13]uint64
354}
355
356type BpfProgram struct {
357 Len uint32
358 Pad_cgo_0 [4]byte
359 Insns *BpfInsn
360}
361
362type BpfInsn struct {
363 Code uint16
364 Jt uint8
365 Jf uint8
366 K uint32
367}
368
369type BpfHdr struct {
370 Tstamp BpfTimeval
371 Caplen uint32
372 Datalen uint32
373 Hdrlen uint16
374 Pad_cgo_0 [6]byte
375}
376
377type BpfTimeval struct {
378 Sec int64
379 Usec int64
380}
381
382type Termios struct {
383 Iflag uint32
384 Oflag uint32
385 Cflag uint32
386 Lflag uint32
387 Cc [20]uint8
388 Ispeed int32
389 Ospeed int32
390}
391
392type Sysctlnode struct {
393 Flags uint32
394 Num int32
395 Name [32]int8
396 Ver uint32
397 X__rsvd uint32
398 Un [16]byte
399 X_sysctl_size [8]byte
400 X_sysctl_func [8]byte
401 X_sysctl_parent [8]byte
402 X_sysctl_desc [8]byte
403}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_arm.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_arm.go
deleted file mode 100644
index c0758f9..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_netbsd_arm.go
+++ /dev/null
@@ -1,401 +0,0 @@
1// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs types_netbsd.go
3
4// +build arm,netbsd
5
6package unix
7
8const (
9 sizeofPtr = 0x4
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x4
13 sizeofLongLong = 0x8
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int32
26 Pad_cgo_0 [4]byte
27}
28
29type Timeval struct {
30 Sec int64
31 Usec int32
32 Pad_cgo_0 [4]byte
33}
34
35type Rusage struct {
36 Utime Timeval
37 Stime Timeval
38 Maxrss int32
39 Ixrss int32
40 Idrss int32
41 Isrss int32
42 Minflt int32
43 Majflt int32
44 Nswap int32
45 Inblock int32
46 Oublock int32
47 Msgsnd int32
48 Msgrcv int32
49 Nsignals int32
50 Nvcsw int32
51 Nivcsw int32
52}
53
54type Rlimit struct {
55 Cur uint64
56 Max uint64
57}
58
59type _Gid_t uint32
60
61type Stat_t struct {
62 Dev uint64
63 Mode uint32
64 Pad_cgo_0 [4]byte
65 Ino uint64
66 Nlink uint32
67 Uid uint32
68 Gid uint32
69 Pad_cgo_1 [4]byte
70 Rdev uint64
71 Atimespec Timespec
72 Mtimespec Timespec
73 Ctimespec Timespec
74 Birthtimespec Timespec
75 Size int64
76 Blocks int64
77 Blksize uint32
78 Flags uint32
79 Gen uint32
80 Spare [2]uint32
81 Pad_cgo_2 [4]byte
82}
83
84type Statfs_t [0]byte
85
86type Flock_t struct {
87 Start int64
88 Len int64
89 Pid int32
90 Type int16
91 Whence int16
92}
93
94type Dirent struct {
95 Fileno uint64
96 Reclen uint16
97 Namlen uint16
98 Type uint8
99 Name [512]int8
100 Pad_cgo_0 [3]byte
101}
102
103type Fsid struct {
104 X__fsid_val [2]int32
105}
106
107type RawSockaddrInet4 struct {
108 Len uint8
109 Family uint8
110 Port uint16
111 Addr [4]byte /* in_addr */
112 Zero [8]int8
113}
114
115type RawSockaddrInet6 struct {
116 Len uint8
117 Family uint8
118 Port uint16
119 Flowinfo uint32
120 Addr [16]byte /* in6_addr */
121 Scope_id uint32
122}
123
124type RawSockaddrUnix struct {
125 Len uint8
126 Family uint8
127 Path [104]int8
128}
129
130type RawSockaddrDatalink struct {
131 Len uint8
132 Family uint8
133 Index uint16
134 Type uint8
135 Nlen uint8
136 Alen uint8
137 Slen uint8
138 Data [12]int8
139}
140
141type RawSockaddr struct {
142 Len uint8
143 Family uint8
144 Data [14]int8
145}
146
147type RawSockaddrAny struct {
148 Addr RawSockaddr
149 Pad [92]int8
150}
151
152type _Socklen uint32
153
154type Linger struct {
155 Onoff int32
156 Linger int32
157}
158
159type Iovec struct {
160 Base *byte
161 Len uint32
162}
163
164type IPMreq struct {
165 Multiaddr [4]byte /* in_addr */
166 Interface [4]byte /* in_addr */
167}
168
169type IPv6Mreq struct {
170 Multiaddr [16]byte /* in6_addr */
171 Interface uint32
172}
173
174type Msghdr struct {
175 Name *byte
176 Namelen uint32
177 Iov *Iovec
178 Iovlen int32
179 Control *byte
180 Controllen uint32
181 Flags int32
182}
183
184type Cmsghdr struct {
185 Len uint32
186 Level int32
187 Type int32
188}
189
190type Inet6Pktinfo struct {
191 Addr [16]byte /* in6_addr */
192 Ifindex uint32
193}
194
195type IPv6MTUInfo struct {
196 Addr RawSockaddrInet6
197 Mtu uint32
198}
199
200type ICMPv6Filter struct {
201 Filt [8]uint32
202}
203
204const (
205 SizeofSockaddrInet4 = 0x10
206 SizeofSockaddrInet6 = 0x1c
207 SizeofSockaddrAny = 0x6c
208 SizeofSockaddrUnix = 0x6a
209 SizeofSockaddrDatalink = 0x14
210 SizeofLinger = 0x8
211 SizeofIPMreq = 0x8
212 SizeofIPv6Mreq = 0x14
213 SizeofMsghdr = 0x1c
214 SizeofCmsghdr = 0xc
215 SizeofInet6Pktinfo = 0x14
216 SizeofIPv6MTUInfo = 0x20
217 SizeofICMPv6Filter = 0x20
218)
219
220const (
221 PTRACE_TRACEME = 0x0
222 PTRACE_CONT = 0x7
223 PTRACE_KILL = 0x8
224)
225
226type Kevent_t struct {
227 Ident uint32
228 Filter uint32
229 Flags uint32
230 Fflags uint32
231 Data int64
232 Udata int32
233 Pad_cgo_0 [4]byte
234}
235
236type FdSet struct {
237 Bits [8]uint32
238}
239
240const (
241 SizeofIfMsghdr = 0x98
242 SizeofIfData = 0x88
243 SizeofIfaMsghdr = 0x18
244 SizeofIfAnnounceMsghdr = 0x18
245 SizeofRtMsghdr = 0x78
246 SizeofRtMetrics = 0x50
247)
248
249type IfMsghdr struct {
250 Msglen uint16
251 Version uint8
252 Type uint8
253 Addrs int32
254 Flags int32
255 Index uint16
256 Pad_cgo_0 [2]byte
257 Data IfData
258}
259
260type IfData struct {
261 Type uint8
262 Addrlen uint8
263 Hdrlen uint8
264 Pad_cgo_0 [1]byte
265 Link_state int32
266 Mtu uint64
267 Metric uint64
268 Baudrate uint64
269 Ipackets uint64
270 Ierrors uint64
271 Opackets uint64
272 Oerrors uint64
273 Collisions uint64
274 Ibytes uint64
275 Obytes uint64
276 Imcasts uint64
277 Omcasts uint64
278 Iqdrops uint64
279 Noproto uint64
280 Lastchange Timespec
281}
282
283type IfaMsghdr struct {
284 Msglen uint16
285 Version uint8
286 Type uint8
287 Addrs int32
288 Flags int32
289 Metric int32
290 Index uint16
291 Pad_cgo_0 [6]byte
292}
293
294type IfAnnounceMsghdr struct {
295 Msglen uint16
296 Version uint8
297 Type uint8
298 Index uint16
299 Name [16]int8
300 What uint16
301}
302
303type RtMsghdr struct {
304 Msglen uint16
305 Version uint8
306 Type uint8
307 Index uint16
308 Pad_cgo_0 [2]byte
309 Flags int32
310 Addrs int32
311 Pid int32
312 Seq int32
313 Errno int32
314 Use int32
315 Inits int32
316 Pad_cgo_1 [4]byte
317 Rmx RtMetrics
318}
319
320type RtMetrics struct {
321 Locks uint64
322 Mtu uint64
323 Hopcount uint64
324 Recvpipe uint64
325 Sendpipe uint64
326 Ssthresh uint64
327 Rtt uint64
328 Rttvar uint64
329 Expire int64
330 Pksent int64
331}
332
333type Mclpool [0]byte
334
335const (
336 SizeofBpfVersion = 0x4
337 SizeofBpfStat = 0x80
338 SizeofBpfProgram = 0x8
339 SizeofBpfInsn = 0x8
340 SizeofBpfHdr = 0x14
341)
342
343type BpfVersion struct {
344 Major uint16
345 Minor uint16
346}
347
348type BpfStat struct {
349 Recv uint64
350 Drop uint64
351 Capt uint64
352 Padding [13]uint64
353}
354
355type BpfProgram struct {
356 Len uint32
357 Insns *BpfInsn
358}
359
360type BpfInsn struct {
361 Code uint16
362 Jt uint8
363 Jf uint8
364 K uint32
365}
366
367type BpfHdr struct {
368 Tstamp BpfTimeval
369 Caplen uint32
370 Datalen uint32
371 Hdrlen uint16
372 Pad_cgo_0 [2]byte
373}
374
375type BpfTimeval struct {
376 Sec int32
377 Usec int32
378}
379
380type Termios struct {
381 Iflag uint32
382 Oflag uint32
383 Cflag uint32
384 Lflag uint32
385 Cc [20]uint8
386 Ispeed int32
387 Ospeed int32
388}
389
390type Sysctlnode struct {
391 Flags uint32
392 Num int32
393 Name [32]int8
394 Ver uint32
395 X__rsvd uint32
396 Un [16]byte
397 X_sysctl_size [8]byte
398 X_sysctl_func [8]byte
399 X_sysctl_parent [8]byte
400 X_sysctl_desc [8]byte
401}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_openbsd_386.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_openbsd_386.go
deleted file mode 100644
index 860a469..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_openbsd_386.go
+++ /dev/null
@@ -1,441 +0,0 @@
1// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs types_openbsd.go
3
4// +build 386,openbsd
5
6package unix
7
8const (
9 sizeofPtr = 0x4
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x4
13 sizeofLongLong = 0x8
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int32
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int32
31}
32
33type Rusage struct {
34 Utime Timeval
35 Stime Timeval
36 Maxrss int32
37 Ixrss int32
38 Idrss int32
39 Isrss int32
40 Minflt int32
41 Majflt int32
42 Nswap int32
43 Inblock int32
44 Oublock int32
45 Msgsnd int32
46 Msgrcv int32
47 Nsignals int32
48 Nvcsw int32
49 Nivcsw int32
50}
51
52type Rlimit struct {
53 Cur uint64
54 Max uint64
55}
56
57type _Gid_t uint32
58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct {
77 Mode uint32
78 Dev int32
79 Ino uint64
80 Nlink uint32
81 Uid uint32
82 Gid uint32
83 Rdev int32
84 Atim Timespec
85 Mtim Timespec
86 Ctim Timespec
87 Size int64
88 Blocks int64
89 Blksize uint32
90 Flags uint32
91 Gen uint32
92 X__st_birthtim Timespec
93}
94
95type Statfs_t struct {
96 F_flags uint32
97 F_bsize uint32
98 F_iosize uint32
99 F_blocks uint64
100 F_bfree uint64
101 F_bavail int64
102 F_files uint64
103 F_ffree uint64
104 F_favail int64
105 F_syncwrites uint64
106 F_syncreads uint64
107 F_asyncwrites uint64
108 F_asyncreads uint64
109 F_fsid Fsid
110 F_namemax uint32
111 F_owner uint32
112 F_ctime uint64
113 F_fstypename [16]int8
114 F_mntonname [90]int8
115 F_mntfromname [90]int8
116 F_mntfromspec [90]int8
117 Pad_cgo_0 [2]byte
118 Mount_info [160]byte
119}
120
121type Flock_t struct {
122 Start int64
123 Len int64
124 Pid int32
125 Type int16
126 Whence int16
127}
128
129type Dirent struct {
130 Fileno uint64
131 Off int64
132 Reclen uint16
133 Type uint8
134 Namlen uint8
135 X__d_padding [4]uint8
136 Name [256]int8
137}
138
139type Fsid struct {
140 Val [2]int32
141}
142
143type RawSockaddrInet4 struct {
144 Len uint8
145 Family uint8
146 Port uint16
147 Addr [4]byte /* in_addr */
148 Zero [8]int8
149}
150
151type RawSockaddrInet6 struct {
152 Len uint8
153 Family uint8
154 Port uint16
155 Flowinfo uint32
156 Addr [16]byte /* in6_addr */
157 Scope_id uint32
158}
159
160type RawSockaddrUnix struct {
161 Len uint8
162 Family uint8
163 Path [104]int8
164}
165
166type RawSockaddrDatalink struct {
167 Len uint8
168 Family uint8
169 Index uint16
170 Type uint8
171 Nlen uint8
172 Alen uint8
173 Slen uint8
174 Data [24]int8
175}
176
177type RawSockaddr struct {
178 Len uint8
179 Family uint8
180 Data [14]int8
181}
182
183type RawSockaddrAny struct {
184 Addr RawSockaddr
185 Pad [92]int8
186}
187
188type _Socklen uint32
189
190type Linger struct {
191 Onoff int32
192 Linger int32
193}
194
195type Iovec struct {
196 Base *byte
197 Len uint32
198}
199
200type IPMreq struct {
201 Multiaddr [4]byte /* in_addr */
202 Interface [4]byte /* in_addr */
203}
204
205type IPv6Mreq struct {
206 Multiaddr [16]byte /* in6_addr */
207 Interface uint32
208}
209
210type Msghdr struct {
211 Name *byte
212 Namelen uint32
213 Iov *Iovec
214 Iovlen uint32
215 Control *byte
216 Controllen uint32
217 Flags int32
218}
219
220type Cmsghdr struct {
221 Len uint32
222 Level int32
223 Type int32
224}
225
226type Inet6Pktinfo struct {
227 Addr [16]byte /* in6_addr */
228 Ifindex uint32
229}
230
231type IPv6MTUInfo struct {
232 Addr RawSockaddrInet6
233 Mtu uint32
234}
235
236type ICMPv6Filter struct {
237 Filt [8]uint32
238}
239
240const (
241 SizeofSockaddrInet4 = 0x10
242 SizeofSockaddrInet6 = 0x1c
243 SizeofSockaddrAny = 0x6c
244 SizeofSockaddrUnix = 0x6a
245 SizeofSockaddrDatalink = 0x20
246 SizeofLinger = 0x8
247 SizeofIPMreq = 0x8
248 SizeofIPv6Mreq = 0x14
249 SizeofMsghdr = 0x1c
250 SizeofCmsghdr = 0xc
251 SizeofInet6Pktinfo = 0x14
252 SizeofIPv6MTUInfo = 0x20
253 SizeofICMPv6Filter = 0x20
254)
255
256const (
257 PTRACE_TRACEME = 0x0
258 PTRACE_CONT = 0x7
259 PTRACE_KILL = 0x8
260)
261
262type Kevent_t struct {
263 Ident uint32
264 Filter int16
265 Flags uint16
266 Fflags uint32
267 Data int64
268 Udata *byte
269}
270
271type FdSet struct {
272 Bits [32]uint32
273}
274
275const (
276 SizeofIfMsghdr = 0xec
277 SizeofIfData = 0xd4
278 SizeofIfaMsghdr = 0x18
279 SizeofIfAnnounceMsghdr = 0x1a
280 SizeofRtMsghdr = 0x60
281 SizeofRtMetrics = 0x38
282)
283
284type IfMsghdr struct {
285 Msglen uint16
286 Version uint8
287 Type uint8
288 Hdrlen uint16
289 Index uint16
290 Tableid uint16
291 Pad1 uint8
292 Pad2 uint8
293 Addrs int32
294 Flags int32
295 Xflags int32
296 Data IfData
297}
298
299type IfData struct {
300 Type uint8
301 Addrlen uint8
302 Hdrlen uint8
303 Link_state uint8
304 Mtu uint32
305 Metric uint32
306 Pad uint32
307 Baudrate uint64
308 Ipackets uint64
309 Ierrors uint64
310 Opackets uint64
311 Oerrors uint64
312 Collisions uint64
313 Ibytes uint64
314 Obytes uint64
315 Imcasts uint64
316 Omcasts uint64
317 Iqdrops uint64
318 Noproto uint64
319 Capabilities uint32
320 Lastchange Timeval
321 Mclpool [7]Mclpool
322}
323
324type IfaMsghdr struct {
325 Msglen uint16
326 Version uint8
327 Type uint8
328 Hdrlen uint16
329 Index uint16
330 Tableid uint16
331 Pad1 uint8
332 Pad2 uint8
333 Addrs int32
334 Flags int32
335 Metric int32
336}
337
338type IfAnnounceMsghdr struct {
339 Msglen uint16
340 Version uint8
341 Type uint8
342 Hdrlen uint16
343 Index uint16
344 What uint16
345 Name [16]int8
346}
347
348type RtMsghdr struct {
349 Msglen uint16
350 Version uint8
351 Type uint8
352 Hdrlen uint16
353 Index uint16
354 Tableid uint16
355 Priority uint8
356 Mpls uint8
357 Addrs int32
358 Flags int32
359 Fmask int32
360 Pid int32
361 Seq int32
362 Errno int32
363 Inits uint32
364 Rmx RtMetrics
365}
366
367type RtMetrics struct {
368 Pksent uint64
369 Expire int64
370 Locks uint32
371 Mtu uint32
372 Refcnt uint32
373 Hopcount uint32
374 Recvpipe uint32
375 Sendpipe uint32
376 Ssthresh uint32
377 Rtt uint32
378 Rttvar uint32
379 Pad uint32
380}
381
382type Mclpool struct {
383 Grown int32
384 Alive uint16
385 Hwm uint16
386 Cwm uint16
387 Lwm uint16
388}
389
390const (
391 SizeofBpfVersion = 0x4
392 SizeofBpfStat = 0x8
393 SizeofBpfProgram = 0x8
394 SizeofBpfInsn = 0x8
395 SizeofBpfHdr = 0x14
396)
397
398type BpfVersion struct {
399 Major uint16
400 Minor uint16
401}
402
403type BpfStat struct {
404 Recv uint32
405 Drop uint32
406}
407
408type BpfProgram struct {
409 Len uint32
410 Insns *BpfInsn
411}
412
413type BpfInsn struct {
414 Code uint16
415 Jt uint8
416 Jf uint8
417 K uint32
418}
419
420type BpfHdr struct {
421 Tstamp BpfTimeval
422 Caplen uint32
423 Datalen uint32
424 Hdrlen uint16
425 Pad_cgo_0 [2]byte
426}
427
428type BpfTimeval struct {
429 Sec uint32
430 Usec uint32
431}
432
433type Termios struct {
434 Iflag uint32
435 Oflag uint32
436 Cflag uint32
437 Lflag uint32
438 Cc [20]uint8
439 Ispeed int32
440 Ospeed int32
441}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_openbsd_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
deleted file mode 100644
index 23c5272..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
+++ /dev/null
@@ -1,448 +0,0 @@
1// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs types_openbsd.go
3
4// +build amd64,openbsd
5
6package unix
7
8const (
9 sizeofPtr = 0x8
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x8
13 sizeofLongLong = 0x8
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int64
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int64
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int64
31}
32
33type Rusage struct {
34 Utime Timeval
35 Stime Timeval
36 Maxrss int64
37 Ixrss int64
38 Idrss int64
39 Isrss int64
40 Minflt int64
41 Majflt int64
42 Nswap int64
43 Inblock int64
44 Oublock int64
45 Msgsnd int64
46 Msgrcv int64
47 Nsignals int64
48 Nvcsw int64
49 Nivcsw int64
50}
51
52type Rlimit struct {
53 Cur uint64
54 Max uint64
55}
56
57type _Gid_t uint32
58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct {
77 Mode uint32
78 Dev int32
79 Ino uint64
80 Nlink uint32
81 Uid uint32
82 Gid uint32
83 Rdev int32
84 Atim Timespec
85 Mtim Timespec
86 Ctim Timespec
87 Size int64
88 Blocks int64
89 Blksize uint32
90 Flags uint32
91 Gen uint32
92 Pad_cgo_0 [4]byte
93 X__st_birthtim Timespec
94}
95
96type Statfs_t struct {
97 F_flags uint32
98 F_bsize uint32
99 F_iosize uint32
100 Pad_cgo_0 [4]byte
101 F_blocks uint64
102 F_bfree uint64
103 F_bavail int64
104 F_files uint64
105 F_ffree uint64
106 F_favail int64
107 F_syncwrites uint64
108 F_syncreads uint64
109 F_asyncwrites uint64
110 F_asyncreads uint64
111 F_fsid Fsid
112 F_namemax uint32
113 F_owner uint32
114 F_ctime uint64
115 F_fstypename [16]int8
116 F_mntonname [90]int8
117 F_mntfromname [90]int8
118 F_mntfromspec [90]int8
119 Pad_cgo_1 [2]byte
120 Mount_info [160]byte
121}
122
123type Flock_t struct {
124 Start int64
125 Len int64
126 Pid int32
127 Type int16
128 Whence int16
129}
130
131type Dirent struct {
132 Fileno uint64
133 Off int64
134 Reclen uint16
135 Type uint8
136 Namlen uint8
137 X__d_padding [4]uint8
138 Name [256]int8
139}
140
141type Fsid struct {
142 Val [2]int32
143}
144
145type RawSockaddrInet4 struct {
146 Len uint8
147 Family uint8
148 Port uint16
149 Addr [4]byte /* in_addr */
150 Zero [8]int8
151}
152
153type RawSockaddrInet6 struct {
154 Len uint8
155 Family uint8
156 Port uint16
157 Flowinfo uint32
158 Addr [16]byte /* in6_addr */
159 Scope_id uint32
160}
161
162type RawSockaddrUnix struct {
163 Len uint8
164 Family uint8
165 Path [104]int8
166}
167
168type RawSockaddrDatalink struct {
169 Len uint8
170 Family uint8
171 Index uint16
172 Type uint8
173 Nlen uint8
174 Alen uint8
175 Slen uint8
176 Data [24]int8
177}
178
179type RawSockaddr struct {
180 Len uint8
181 Family uint8
182 Data [14]int8
183}
184
185type RawSockaddrAny struct {
186 Addr RawSockaddr
187 Pad [92]int8
188}
189
190type _Socklen uint32
191
192type Linger struct {
193 Onoff int32
194 Linger int32
195}
196
197type Iovec struct {
198 Base *byte
199 Len uint64
200}
201
202type IPMreq struct {
203 Multiaddr [4]byte /* in_addr */
204 Interface [4]byte /* in_addr */
205}
206
207type IPv6Mreq struct {
208 Multiaddr [16]byte /* in6_addr */
209 Interface uint32
210}
211
212type Msghdr struct {
213 Name *byte
214 Namelen uint32
215 Pad_cgo_0 [4]byte
216 Iov *Iovec
217 Iovlen uint32
218 Pad_cgo_1 [4]byte
219 Control *byte
220 Controllen uint32
221 Flags int32
222}
223
224type Cmsghdr struct {
225 Len uint32
226 Level int32
227 Type int32
228}
229
230type Inet6Pktinfo struct {
231 Addr [16]byte /* in6_addr */
232 Ifindex uint32
233}
234
235type IPv6MTUInfo struct {
236 Addr RawSockaddrInet6
237 Mtu uint32
238}
239
240type ICMPv6Filter struct {
241 Filt [8]uint32
242}
243
244const (
245 SizeofSockaddrInet4 = 0x10
246 SizeofSockaddrInet6 = 0x1c
247 SizeofSockaddrAny = 0x6c
248 SizeofSockaddrUnix = 0x6a
249 SizeofSockaddrDatalink = 0x20
250 SizeofLinger = 0x8
251 SizeofIPMreq = 0x8
252 SizeofIPv6Mreq = 0x14
253 SizeofMsghdr = 0x30
254 SizeofCmsghdr = 0xc
255 SizeofInet6Pktinfo = 0x14
256 SizeofIPv6MTUInfo = 0x20
257 SizeofICMPv6Filter = 0x20
258)
259
260const (
261 PTRACE_TRACEME = 0x0
262 PTRACE_CONT = 0x7
263 PTRACE_KILL = 0x8
264)
265
266type Kevent_t struct {
267 Ident uint64
268 Filter int16
269 Flags uint16
270 Fflags uint32
271 Data int64
272 Udata *byte
273}
274
275type FdSet struct {
276 Bits [32]uint32
277}
278
279const (
280 SizeofIfMsghdr = 0xf8
281 SizeofIfData = 0xe0
282 SizeofIfaMsghdr = 0x18
283 SizeofIfAnnounceMsghdr = 0x1a
284 SizeofRtMsghdr = 0x60
285 SizeofRtMetrics = 0x38
286)
287
288type IfMsghdr struct {
289 Msglen uint16
290 Version uint8
291 Type uint8
292 Hdrlen uint16
293 Index uint16
294 Tableid uint16
295 Pad1 uint8
296 Pad2 uint8
297 Addrs int32
298 Flags int32
299 Xflags int32
300 Data IfData
301}
302
303type IfData struct {
304 Type uint8
305 Addrlen uint8
306 Hdrlen uint8
307 Link_state uint8
308 Mtu uint32
309 Metric uint32
310 Pad uint32
311 Baudrate uint64
312 Ipackets uint64
313 Ierrors uint64
314 Opackets uint64
315 Oerrors uint64
316 Collisions uint64
317 Ibytes uint64
318 Obytes uint64
319 Imcasts uint64
320 Omcasts uint64
321 Iqdrops uint64
322 Noproto uint64
323 Capabilities uint32
324 Pad_cgo_0 [4]byte
325 Lastchange Timeval
326 Mclpool [7]Mclpool
327 Pad_cgo_1 [4]byte
328}
329
330type IfaMsghdr struct {
331 Msglen uint16
332 Version uint8
333 Type uint8
334 Hdrlen uint16
335 Index uint16
336 Tableid uint16
337 Pad1 uint8
338 Pad2 uint8
339 Addrs int32
340 Flags int32
341 Metric int32
342}
343
344type IfAnnounceMsghdr struct {
345 Msglen uint16
346 Version uint8
347 Type uint8
348 Hdrlen uint16
349 Index uint16
350 What uint16
351 Name [16]int8
352}
353
354type RtMsghdr struct {
355 Msglen uint16
356 Version uint8
357 Type uint8
358 Hdrlen uint16
359 Index uint16
360 Tableid uint16
361 Priority uint8
362 Mpls uint8
363 Addrs int32
364 Flags int32
365 Fmask int32
366 Pid int32
367 Seq int32
368 Errno int32
369 Inits uint32
370 Rmx RtMetrics
371}
372
373type RtMetrics struct {
374 Pksent uint64
375 Expire int64
376 Locks uint32
377 Mtu uint32
378 Refcnt uint32
379 Hopcount uint32
380 Recvpipe uint32
381 Sendpipe uint32
382 Ssthresh uint32
383 Rtt uint32
384 Rttvar uint32
385 Pad uint32
386}
387
388type Mclpool struct {
389 Grown int32
390 Alive uint16
391 Hwm uint16
392 Cwm uint16
393 Lwm uint16
394}
395
396const (
397 SizeofBpfVersion = 0x4
398 SizeofBpfStat = 0x8
399 SizeofBpfProgram = 0x10
400 SizeofBpfInsn = 0x8
401 SizeofBpfHdr = 0x14
402)
403
404type BpfVersion struct {
405 Major uint16
406 Minor uint16
407}
408
409type BpfStat struct {
410 Recv uint32
411 Drop uint32
412}
413
414type BpfProgram struct {
415 Len uint32
416 Pad_cgo_0 [4]byte
417 Insns *BpfInsn
418}
419
420type BpfInsn struct {
421 Code uint16
422 Jt uint8
423 Jf uint8
424 K uint32
425}
426
427type BpfHdr struct {
428 Tstamp BpfTimeval
429 Caplen uint32
430 Datalen uint32
431 Hdrlen uint16
432 Pad_cgo_0 [2]byte
433}
434
435type BpfTimeval struct {
436 Sec uint32
437 Usec uint32
438}
439
440type Termios struct {
441 Iflag uint32
442 Oflag uint32
443 Cflag uint32
444 Lflag uint32
445 Cc [20]uint8
446 Ispeed int32
447 Ospeed int32
448}
diff --git a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_solaris_amd64.go b/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_solaris_amd64.go
deleted file mode 100644
index b3b928a..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/ztypes_solaris_amd64.go
+++ /dev/null
@@ -1,422 +0,0 @@
1// +build amd64,solaris
2// Created by cgo -godefs - DO NOT EDIT
3// cgo -godefs types_solaris.go
4
5package unix
6
7const (
8 sizeofPtr = 0x8
9 sizeofShort = 0x2
10 sizeofInt = 0x4
11 sizeofLong = 0x8
12 sizeofLongLong = 0x8
13 PathMax = 0x400
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int64
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int64
26}
27
28type Timeval struct {
29 Sec int64
30 Usec int64
31}
32
33type Timeval32 struct {
34 Sec int32
35 Usec int32
36}
37
38type Tms struct {
39 Utime int64
40 Stime int64
41 Cutime int64
42 Cstime int64
43}
44
45type Utimbuf struct {
46 Actime int64
47 Modtime int64
48}
49
50type Rusage struct {
51 Utime Timeval
52 Stime Timeval
53 Maxrss int64
54 Ixrss int64
55 Idrss int64
56 Isrss int64
57 Minflt int64
58 Majflt int64
59 Nswap int64
60 Inblock int64
61 Oublock int64
62 Msgsnd int64
63 Msgrcv int64
64 Nsignals int64
65 Nvcsw int64
66 Nivcsw int64
67}
68
69type Rlimit struct {
70 Cur uint64
71 Max uint64
72}
73
74type _Gid_t uint32
75
76const (
77 S_IFMT = 0xf000
78 S_IFIFO = 0x1000
79 S_IFCHR = 0x2000
80 S_IFDIR = 0x4000
81 S_IFBLK = 0x6000
82 S_IFREG = 0x8000
83 S_IFLNK = 0xa000
84 S_IFSOCK = 0xc000
85 S_ISUID = 0x800
86 S_ISGID = 0x400
87 S_ISVTX = 0x200
88 S_IRUSR = 0x100
89 S_IWUSR = 0x80
90 S_IXUSR = 0x40
91)
92
93type Stat_t struct {
94 Dev uint64
95 Ino uint64
96 Mode uint32
97 Nlink uint32
98 Uid uint32
99 Gid uint32
100 Rdev uint64
101 Size int64
102 Atim Timespec
103 Mtim Timespec
104 Ctim Timespec
105 Blksize int32
106 Pad_cgo_0 [4]byte
107 Blocks int64
108 Fstype [16]int8
109}
110
111type Flock_t struct {
112 Type int16
113 Whence int16
114 Pad_cgo_0 [4]byte
115 Start int64
116 Len int64
117 Sysid int32
118 Pid int32
119 Pad [4]int64
120}
121
122type Dirent struct {
123 Ino uint64
124 Off int64
125 Reclen uint16
126 Name [1]int8
127 Pad_cgo_0 [5]byte
128}
129
130type RawSockaddrInet4 struct {
131 Family uint16
132 Port uint16
133 Addr [4]byte /* in_addr */
134 Zero [8]int8
135}
136
137type RawSockaddrInet6 struct {
138 Family uint16
139 Port uint16
140 Flowinfo uint32
141 Addr [16]byte /* in6_addr */
142 Scope_id uint32
143 X__sin6_src_id uint32
144}
145
146type RawSockaddrUnix struct {
147 Family uint16
148 Path [108]int8
149}
150
151type RawSockaddrDatalink struct {
152 Family uint16
153 Index uint16
154 Type uint8
155 Nlen uint8
156 Alen uint8
157 Slen uint8
158 Data [244]int8
159}
160
161type RawSockaddr struct {
162 Family uint16
163 Data [14]int8
164}
165
166type RawSockaddrAny struct {
167 Addr RawSockaddr
168 Pad [236]int8
169}
170
171type _Socklen uint32
172
173type Linger struct {
174 Onoff int32
175 Linger int32
176}
177
178type Iovec struct {
179 Base *int8
180 Len uint64
181}
182
183type IPMreq struct {
184 Multiaddr [4]byte /* in_addr */
185 Interface [4]byte /* in_addr */
186}
187
188type IPv6Mreq struct {
189 Multiaddr [16]byte /* in6_addr */
190 Interface uint32
191}
192
193type Msghdr struct {
194 Name *byte
195 Namelen uint32
196 Pad_cgo_0 [4]byte
197 Iov *Iovec
198 Iovlen int32
199 Pad_cgo_1 [4]byte
200 Accrights *int8
201 Accrightslen int32
202 Pad_cgo_2 [4]byte
203}
204
205type Cmsghdr struct {
206 Len uint32
207 Level int32
208 Type int32
209}
210
211type Inet6Pktinfo struct {
212 Addr [16]byte /* in6_addr */
213 Ifindex uint32
214}
215
216type IPv6MTUInfo struct {
217 Addr RawSockaddrInet6
218 Mtu uint32
219}
220
221type ICMPv6Filter struct {
222 X__icmp6_filt [8]uint32
223}
224
225const (
226 SizeofSockaddrInet4 = 0x10
227 SizeofSockaddrInet6 = 0x20
228 SizeofSockaddrAny = 0xfc
229 SizeofSockaddrUnix = 0x6e
230 SizeofSockaddrDatalink = 0xfc
231 SizeofLinger = 0x8
232 SizeofIPMreq = 0x8
233 SizeofIPv6Mreq = 0x14
234 SizeofMsghdr = 0x30
235 SizeofCmsghdr = 0xc
236 SizeofInet6Pktinfo = 0x14
237 SizeofIPv6MTUInfo = 0x24
238 SizeofICMPv6Filter = 0x20
239)
240
241type FdSet struct {
242 Bits [1024]int64
243}
244
245type Utsname struct {
246 Sysname [257]int8
247 Nodename [257]int8
248 Release [257]int8
249 Version [257]int8
250 Machine [257]int8
251}
252
253type Ustat_t struct {
254 Tfree int64
255 Tinode uint64
256 Fname [6]int8
257 Fpack [6]int8
258 Pad_cgo_0 [4]byte
259}
260
261const (
262 AT_FDCWD = 0xffd19553
263 AT_SYMLINK_NOFOLLOW = 0x1000
264 AT_SYMLINK_FOLLOW = 0x2000
265 AT_REMOVEDIR = 0x1
266 AT_EACCESS = 0x4
267)
268
269const (
270 SizeofIfMsghdr = 0x54
271 SizeofIfData = 0x44
272 SizeofIfaMsghdr = 0x14
273 SizeofRtMsghdr = 0x4c
274 SizeofRtMetrics = 0x28
275)
276
277type IfMsghdr struct {
278 Msglen uint16
279 Version uint8
280 Type uint8
281 Addrs int32
282 Flags int32
283 Index uint16
284 Pad_cgo_0 [2]byte
285 Data IfData
286}
287
288type IfData struct {
289 Type uint8
290 Addrlen uint8
291 Hdrlen uint8
292 Pad_cgo_0 [1]byte
293 Mtu uint32
294 Metric uint32
295 Baudrate uint32
296 Ipackets uint32
297 Ierrors uint32
298 Opackets uint32
299 Oerrors uint32
300 Collisions uint32
301 Ibytes uint32
302 Obytes uint32
303 Imcasts uint32
304 Omcasts uint32
305 Iqdrops uint32
306 Noproto uint32
307 Lastchange Timeval32
308}
309
310type IfaMsghdr struct {
311 Msglen uint16
312 Version uint8
313 Type uint8
314 Addrs int32
315 Flags int32
316 Index uint16
317 Pad_cgo_0 [2]byte
318 Metric int32
319}
320
321type RtMsghdr struct {
322 Msglen uint16
323 Version uint8
324 Type uint8
325 Index uint16
326 Pad_cgo_0 [2]byte
327 Flags int32
328 Addrs int32
329 Pid int32
330 Seq int32
331 Errno int32
332 Use int32
333 Inits uint32
334 Rmx RtMetrics
335}
336
337type RtMetrics struct {
338 Locks uint32
339 Mtu uint32
340 Hopcount uint32
341 Expire uint32
342 Recvpipe uint32
343 Sendpipe uint32
344 Ssthresh uint32
345 Rtt uint32
346 Rttvar uint32
347 Pksent uint32
348}
349
350const (
351 SizeofBpfVersion = 0x4
352 SizeofBpfStat = 0x80
353 SizeofBpfProgram = 0x10
354 SizeofBpfInsn = 0x8
355 SizeofBpfHdr = 0x14
356)
357
358type BpfVersion struct {
359 Major uint16
360 Minor uint16
361}
362
363type BpfStat struct {
364 Recv uint64
365 Drop uint64
366 Capt uint64
367 Padding [13]uint64
368}
369
370type BpfProgram struct {
371 Len uint32
372 Pad_cgo_0 [4]byte
373 Insns *BpfInsn
374}
375
376type BpfInsn struct {
377 Code uint16
378 Jt uint8
379 Jf uint8
380 K uint32
381}
382
383type BpfTimeval struct {
384 Sec int32
385 Usec int32
386}
387
388type BpfHdr struct {
389 Tstamp BpfTimeval
390 Caplen uint32
391 Datalen uint32
392 Hdrlen uint16
393 Pad_cgo_0 [2]byte
394}
395
396const _SC_PAGESIZE = 0xb
397
398type Termios struct {
399 Iflag uint32
400 Oflag uint32
401 Cflag uint32
402 Lflag uint32
403 Cc [19]uint8
404 Pad_cgo_0 [1]byte
405}
406
407type Termio struct {
408 Iflag uint16
409 Oflag uint16
410 Cflag uint16
411 Lflag uint16
412 Line int8
413 Cc [8]uint8
414 Pad_cgo_0 [1]byte
415}
416
417type Winsize struct {
418 Row uint16
419 Col uint16
420 Xpixel uint16
421 Ypixel uint16
422}
diff --git a/vendor/github.com/fsouza/go-dockerclient/image.go b/vendor/github.com/fsouza/go-dockerclient/image.go
deleted file mode 100644
index fd51c3f..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/image.go
+++ /dev/null
@@ -1,642 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import (
8 "bytes"
9 "encoding/base64"
10 "encoding/json"
11 "errors"
12 "fmt"
13 "io"
14 "net/http"
15 "net/url"
16 "os"
17 "time"
18)
19
20// APIImages represent an image returned in the ListImages call.
21type APIImages struct {
22 ID string `json:"Id" yaml:"Id"`
23 RepoTags []string `json:"RepoTags,omitempty" yaml:"RepoTags,omitempty"`
24 Created int64 `json:"Created,omitempty" yaml:"Created,omitempty"`
25 Size int64 `json:"Size,omitempty" yaml:"Size,omitempty"`
26 VirtualSize int64 `json:"VirtualSize,omitempty" yaml:"VirtualSize,omitempty"`
27 ParentID string `json:"ParentId,omitempty" yaml:"ParentId,omitempty"`
28 RepoDigests []string `json:"RepoDigests,omitempty" yaml:"RepoDigests,omitempty"`
29 Labels map[string]string `json:"Labels,omitempty" yaml:"Labels,omitempty"`
30}
31
32// RootFS represents the underlying layers used by an image
33type RootFS struct {
34 Type string `json:"Type,omitempty" yaml:"Type,omitempty"`
35 Layers []string `json:"Layers,omitempty" yaml:"Layers,omitempty"`
36}
37
38// Image is the type representing a docker image and its various properties
39type Image struct {
40 ID string `json:"Id" yaml:"Id"`
41 RepoTags []string `json:"RepoTags,omitempty" yaml:"RepoTags,omitempty"`
42 Parent string `json:"Parent,omitempty" yaml:"Parent,omitempty"`
43 Comment string `json:"Comment,omitempty" yaml:"Comment,omitempty"`
44 Created time.Time `json:"Created,omitempty" yaml:"Created,omitempty"`
45 Container string `json:"Container,omitempty" yaml:"Container,omitempty"`
46 ContainerConfig Config `json:"ContainerConfig,omitempty" yaml:"ContainerConfig,omitempty"`
47 DockerVersion string `json:"DockerVersion,omitempty" yaml:"DockerVersion,omitempty"`
48 Author string `json:"Author,omitempty" yaml:"Author,omitempty"`
49 Config *Config `json:"Config,omitempty" yaml:"Config,omitempty"`
50 Architecture string `json:"Architecture,omitempty" yaml:"Architecture,omitempty"`
51 Size int64 `json:"Size,omitempty" yaml:"Size,omitempty"`
52 VirtualSize int64 `json:"VirtualSize,omitempty" yaml:"VirtualSize,omitempty"`
53 RepoDigests []string `json:"RepoDigests,omitempty" yaml:"RepoDigests,omitempty"`
54 RootFS *RootFS `json:"RootFS,omitempty" yaml:"RootFS,omitempty"`
55}
56
57// ImagePre012 serves the same purpose as the Image type except that it is for
58// earlier versions of the Docker API (pre-012 to be specific)
59type ImagePre012 struct {
60 ID string `json:"id"`
61 Parent string `json:"parent,omitempty"`
62 Comment string `json:"comment,omitempty"`
63 Created time.Time `json:"created"`
64 Container string `json:"container,omitempty"`
65 ContainerConfig Config `json:"container_config,omitempty"`
66 DockerVersion string `json:"docker_version,omitempty"`
67 Author string `json:"author,omitempty"`
68 Config *Config `json:"config,omitempty"`
69 Architecture string `json:"architecture,omitempty"`
70 Size int64 `json:"size,omitempty"`
71}
72
73var (
74 // ErrNoSuchImage is the error returned when the image does not exist.
75 ErrNoSuchImage = errors.New("no such image")
76
77 // ErrMissingRepo is the error returned when the remote repository is
78 // missing.
79 ErrMissingRepo = errors.New("missing remote repository e.g. 'github.com/user/repo'")
80
81 // ErrMissingOutputStream is the error returned when no output stream
82 // is provided to some calls, like BuildImage.
83 ErrMissingOutputStream = errors.New("missing output stream")
84
85 // ErrMultipleContexts is the error returned when both a ContextDir and
86 // InputStream are provided in BuildImageOptions
87 ErrMultipleContexts = errors.New("image build may not be provided BOTH context dir and input stream")
88
89 // ErrMustSpecifyNames is the error rreturned when the Names field on
90 // ExportImagesOptions is nil or empty
91 ErrMustSpecifyNames = errors.New("must specify at least one name to export")
92)
93
94// ListImagesOptions specify parameters to the ListImages function.
95//
96// See https://goo.gl/xBe1u3 for more details.
97type ListImagesOptions struct {
98 All bool
99 Filters map[string][]string
100 Digests bool
101 Filter string
102}
103
104// ListImages returns the list of available images in the server.
105//
106// See https://goo.gl/xBe1u3 for more details.
107func (c *Client) ListImages(opts ListImagesOptions) ([]APIImages, error) {
108 path := "/images/json?" + queryString(opts)
109 resp, err := c.do("GET", path, doOptions{})
110 if err != nil {
111 return nil, err
112 }
113 defer resp.Body.Close()
114 var images []APIImages
115 if err := json.NewDecoder(resp.Body).Decode(&images); err != nil {
116 return nil, err
117 }
118 return images, nil
119}
120
121// ImageHistory represent a layer in an image's history returned by the
122// ImageHistory call.
123type ImageHistory struct {
124 ID string `json:"Id" yaml:"Id"`
125 Tags []string `json:"Tags,omitempty" yaml:"Tags,omitempty"`
126 Created int64 `json:"Created,omitempty" yaml:"Created,omitempty"`
127 CreatedBy string `json:"CreatedBy,omitempty" yaml:"CreatedBy,omitempty"`
128 Size int64 `json:"Size,omitempty" yaml:"Size,omitempty"`
129}
130
131// ImageHistory returns the history of the image by its name or ID.
132//
133// See https://goo.gl/8bnTId for more details.
134func (c *Client) ImageHistory(name string) ([]ImageHistory, error) {
135 resp, err := c.do("GET", "/images/"+name+"/history", doOptions{})
136 if err != nil {
137 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
138 return nil, ErrNoSuchImage
139 }
140 return nil, err
141 }
142 defer resp.Body.Close()
143 var history []ImageHistory
144 if err := json.NewDecoder(resp.Body).Decode(&history); err != nil {
145 return nil, err
146 }
147 return history, nil
148}
149
150// RemoveImage removes an image by its name or ID.
151//
152// See https://goo.gl/V3ZWnK for more details.
153func (c *Client) RemoveImage(name string) error {
154 resp, err := c.do("DELETE", "/images/"+name, doOptions{})
155 if err != nil {
156 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
157 return ErrNoSuchImage
158 }
159 return err
160 }
161 resp.Body.Close()
162 return nil
163}
164
165// RemoveImageOptions present the set of options available for removing an image
166// from a registry.
167//
168// See https://goo.gl/V3ZWnK for more details.
169type RemoveImageOptions struct {
170 Force bool `qs:"force"`
171 NoPrune bool `qs:"noprune"`
172}
173
174// RemoveImageExtended removes an image by its name or ID.
175// Extra params can be passed, see RemoveImageOptions
176//
177// See https://goo.gl/V3ZWnK for more details.
178func (c *Client) RemoveImageExtended(name string, opts RemoveImageOptions) error {
179 uri := fmt.Sprintf("/images/%s?%s", name, queryString(&opts))
180 resp, err := c.do("DELETE", uri, doOptions{})
181 if err != nil {
182 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
183 return ErrNoSuchImage
184 }
185 return err
186 }
187 resp.Body.Close()
188 return nil
189}
190
191// InspectImage returns an image by its name or ID.
192//
193// See https://goo.gl/jHPcg6 for more details.
194func (c *Client) InspectImage(name string) (*Image, error) {
195 resp, err := c.do("GET", "/images/"+name+"/json", doOptions{})
196 if err != nil {
197 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
198 return nil, ErrNoSuchImage
199 }
200 return nil, err
201 }
202 defer resp.Body.Close()
203
204 var image Image
205
206 // if the caller elected to skip checking the server's version, assume it's the latest
207 if c.SkipServerVersionCheck || c.expectedAPIVersion.GreaterThanOrEqualTo(apiVersion112) {
208 if err := json.NewDecoder(resp.Body).Decode(&image); err != nil {
209 return nil, err
210 }
211 } else {
212 var imagePre012 ImagePre012
213 if err := json.NewDecoder(resp.Body).Decode(&imagePre012); err != nil {
214 return nil, err
215 }
216
217 image.ID = imagePre012.ID
218 image.Parent = imagePre012.Parent
219 image.Comment = imagePre012.Comment
220 image.Created = imagePre012.Created
221 image.Container = imagePre012.Container
222 image.ContainerConfig = imagePre012.ContainerConfig
223 image.DockerVersion = imagePre012.DockerVersion
224 image.Author = imagePre012.Author
225 image.Config = imagePre012.Config
226 image.Architecture = imagePre012.Architecture
227 image.Size = imagePre012.Size
228 }
229
230 return &image, nil
231}
232
233// PushImageOptions represents options to use in the PushImage method.
234//
235// See https://goo.gl/zPtZaT for more details.
236type PushImageOptions struct {
237 // Name of the image
238 Name string
239
240 // Tag of the image
241 Tag string
242
243 // Registry server to push the image
244 Registry string
245
246 OutputStream io.Writer `qs:"-"`
247 RawJSONStream bool `qs:"-"`
248 InactivityTimeout time.Duration `qs:"-"`
249}
250
251// PushImage pushes an image to a remote registry, logging progress to w.
252//
253// An empty instance of AuthConfiguration may be used for unauthenticated
254// pushes.
255//
256// See https://goo.gl/zPtZaT for more details.
257func (c *Client) PushImage(opts PushImageOptions, auth AuthConfiguration) error {
258 if opts.Name == "" {
259 return ErrNoSuchImage
260 }
261 headers, err := headersWithAuth(auth)
262 if err != nil {
263 return err
264 }
265 name := opts.Name
266 opts.Name = ""
267 path := "/images/" + name + "/push?" + queryString(&opts)
268 return c.stream("POST", path, streamOptions{
269 setRawTerminal: true,
270 rawJSONStream: opts.RawJSONStream,
271 headers: headers,
272 stdout: opts.OutputStream,
273 inactivityTimeout: opts.InactivityTimeout,
274 })
275}
276
277// PullImageOptions present the set of options available for pulling an image
278// from a registry.
279//
280// See https://goo.gl/iJkZjD for more details.
281type PullImageOptions struct {
282 Repository string `qs:"fromImage"`
283 Registry string
284 Tag string
285
286 OutputStream io.Writer `qs:"-"`
287 RawJSONStream bool `qs:"-"`
288 InactivityTimeout time.Duration `qs:"-"`
289}
290
291// PullImage pulls an image from a remote registry, logging progress to
292// opts.OutputStream.
293//
294// See https://goo.gl/iJkZjD for more details.
295func (c *Client) PullImage(opts PullImageOptions, auth AuthConfiguration) error {
296 if opts.Repository == "" {
297 return ErrNoSuchImage
298 }
299
300 headers, err := headersWithAuth(auth)
301 if err != nil {
302 return err
303 }
304 return c.createImage(queryString(&opts), headers, nil, opts.OutputStream, opts.RawJSONStream, opts.InactivityTimeout)
305}
306
307func (c *Client) createImage(qs string, headers map[string]string, in io.Reader, w io.Writer, rawJSONStream bool, timeout time.Duration) error {
308 path := "/images/create?" + qs
309 return c.stream("POST", path, streamOptions{
310 setRawTerminal: true,
311 headers: headers,
312 in: in,
313 stdout: w,
314 rawJSONStream: rawJSONStream,
315 inactivityTimeout: timeout,
316 })
317}
318
319// LoadImageOptions represents the options for LoadImage Docker API Call
320//
321// See https://goo.gl/JyClMX for more details.
322type LoadImageOptions struct {
323 InputStream io.Reader
324}
325
326// LoadImage imports a tarball docker image
327//
328// See https://goo.gl/JyClMX for more details.
329func (c *Client) LoadImage(opts LoadImageOptions) error {
330 return c.stream("POST", "/images/load", streamOptions{
331 setRawTerminal: true,
332 in: opts.InputStream,
333 })
334}
335
336// ExportImageOptions represent the options for ExportImage Docker API call.
337//
338// See https://goo.gl/le7vK8 for more details.
339type ExportImageOptions struct {
340 Name string
341 OutputStream io.Writer
342 InactivityTimeout time.Duration `qs:"-"`
343}
344
345// ExportImage exports an image (as a tar file) into the stream.
346//
347// See https://goo.gl/le7vK8 for more details.
348func (c *Client) ExportImage(opts ExportImageOptions) error {
349 return c.stream("GET", fmt.Sprintf("/images/%s/get", opts.Name), streamOptions{
350 setRawTerminal: true,
351 stdout: opts.OutputStream,
352 inactivityTimeout: opts.InactivityTimeout,
353 })
354}
355
356// ExportImagesOptions represent the options for ExportImages Docker API call
357//
358// See https://goo.gl/huC7HA for more details.
359type ExportImagesOptions struct {
360 Names []string
361 OutputStream io.Writer `qs:"-"`
362 InactivityTimeout time.Duration `qs:"-"`
363}
364
365// ExportImages exports one or more images (as a tar file) into the stream
366//
367// See https://goo.gl/huC7HA for more details.
368func (c *Client) ExportImages(opts ExportImagesOptions) error {
369 if opts.Names == nil || len(opts.Names) == 0 {
370 return ErrMustSpecifyNames
371 }
372 return c.stream("GET", "/images/get?"+queryString(&opts), streamOptions{
373 setRawTerminal: true,
374 stdout: opts.OutputStream,
375 inactivityTimeout: opts.InactivityTimeout,
376 })
377}
378
379// ImportImageOptions present the set of informations available for importing
380// an image from a source file or the stdin.
381//
382// See https://goo.gl/iJkZjD for more details.
383type ImportImageOptions struct {
384 Repository string `qs:"repo"`
385 Source string `qs:"fromSrc"`
386 Tag string `qs:"tag"`
387
388 InputStream io.Reader `qs:"-"`
389 OutputStream io.Writer `qs:"-"`
390 RawJSONStream bool `qs:"-"`
391 InactivityTimeout time.Duration `qs:"-"`
392}
393
394// ImportImage imports an image from a url, a file or stdin
395//
396// See https://goo.gl/iJkZjD for more details.
397func (c *Client) ImportImage(opts ImportImageOptions) error {
398 if opts.Repository == "" {
399 return ErrNoSuchImage
400 }
401 if opts.Source != "-" {
402 opts.InputStream = nil
403 }
404 if opts.Source != "-" && !isURL(opts.Source) {
405 f, err := os.Open(opts.Source)
406 if err != nil {
407 return err
408 }
409 opts.InputStream = f
410 opts.Source = "-"
411 }
412 return c.createImage(queryString(&opts), nil, opts.InputStream, opts.OutputStream, opts.RawJSONStream, opts.InactivityTimeout)
413}
414
415// BuildImageOptions present the set of informations available for building an
416// image from a tarfile with a Dockerfile in it.
417//
418// For more details about the Docker building process, see
419// http://goo.gl/tlPXPu.
420type BuildImageOptions struct {
421 Name string `qs:"t"`
422 Dockerfile string `qs:"dockerfile"`
423 NoCache bool `qs:"nocache"`
424 SuppressOutput bool `qs:"q"`
425 Pull bool `qs:"pull"`
426 RmTmpContainer bool `qs:"rm"`
427 ForceRmTmpContainer bool `qs:"forcerm"`
428 Memory int64 `qs:"memory"`
429 Memswap int64 `qs:"memswap"`
430 CPUShares int64 `qs:"cpushares"`
431 CPUQuota int64 `qs:"cpuquota"`
432 CPUPeriod int64 `qs:"cpuperiod"`
433 CPUSetCPUs string `qs:"cpusetcpus"`
434 InputStream io.Reader `qs:"-"`
435 OutputStream io.Writer `qs:"-"`
436 RawJSONStream bool `qs:"-"`
437 Remote string `qs:"remote"`
438 Auth AuthConfiguration `qs:"-"` // for older docker X-Registry-Auth header
439 AuthConfigs AuthConfigurations `qs:"-"` // for newer docker X-Registry-Config header
440 ContextDir string `qs:"-"`
441 Ulimits []ULimit `qs:"-"`
442 BuildArgs []BuildArg `qs:"-"`
443 InactivityTimeout time.Duration `qs:"-"`
444}
445
446// BuildArg represents arguments that can be passed to the image when building
447// it from a Dockerfile.
448//
449// For more details about the Docker building process, see
450// http://goo.gl/tlPXPu.
451type BuildArg struct {
452 Name string `json:"Name,omitempty" yaml:"Name,omitempty"`
453 Value string `json:"Value,omitempty" yaml:"Value,omitempty"`
454}
455
456// BuildImage builds an image from a tarball's url or a Dockerfile in the input
457// stream.
458//
459// See https://goo.gl/xySxCe for more details.
460func (c *Client) BuildImage(opts BuildImageOptions) error {
461 if opts.OutputStream == nil {
462 return ErrMissingOutputStream
463 }
464 headers, err := headersWithAuth(opts.Auth, c.versionedAuthConfigs(opts.AuthConfigs))
465 if err != nil {
466 return err
467 }
468
469 if opts.Remote != "" && opts.Name == "" {
470 opts.Name = opts.Remote
471 }
472 if opts.InputStream != nil || opts.ContextDir != "" {
473 headers["Content-Type"] = "application/tar"
474 } else if opts.Remote == "" {
475 return ErrMissingRepo
476 }
477 if opts.ContextDir != "" {
478 if opts.InputStream != nil {
479 return ErrMultipleContexts
480 }
481 var err error
482 if opts.InputStream, err = createTarStream(opts.ContextDir, opts.Dockerfile); err != nil {
483 return err
484 }
485 }
486
487 qs := queryString(&opts)
488 if len(opts.Ulimits) > 0 {
489 if b, err := json.Marshal(opts.Ulimits); err == nil {
490 item := url.Values(map[string][]string{})
491 item.Add("ulimits", string(b))
492 qs = fmt.Sprintf("%s&%s", qs, item.Encode())
493 }
494 }
495
496 if len(opts.BuildArgs) > 0 {
497 v := make(map[string]string)
498 for _, arg := range opts.BuildArgs {
499 v[arg.Name] = arg.Value
500 }
501 if b, err := json.Marshal(v); err == nil {
502 item := url.Values(map[string][]string{})
503 item.Add("buildargs", string(b))
504 qs = fmt.Sprintf("%s&%s", qs, item.Encode())
505 }
506 }
507
508 return c.stream("POST", fmt.Sprintf("/build?%s", qs), streamOptions{
509 setRawTerminal: true,
510 rawJSONStream: opts.RawJSONStream,
511 headers: headers,
512 in: opts.InputStream,
513 stdout: opts.OutputStream,
514 inactivityTimeout: opts.InactivityTimeout,
515 })
516}
517
518func (c *Client) versionedAuthConfigs(authConfigs AuthConfigurations) interface{} {
519 if c.serverAPIVersion == nil {
520 c.checkAPIVersion()
521 }
522 if c.serverAPIVersion != nil && c.serverAPIVersion.GreaterThanOrEqualTo(apiVersion119) {
523 return AuthConfigurations119(authConfigs.Configs)
524 }
525 return authConfigs
526}
527
528// TagImageOptions present the set of options to tag an image.
529//
530// See https://goo.gl/98ZzkU for more details.
531type TagImageOptions struct {
532 Repo string
533 Tag string
534 Force bool
535}
536
537// TagImage adds a tag to the image identified by the given name.
538//
539// See https://goo.gl/98ZzkU for more details.
540func (c *Client) TagImage(name string, opts TagImageOptions) error {
541 if name == "" {
542 return ErrNoSuchImage
543 }
544 resp, err := c.do("POST", fmt.Sprintf("/images/"+name+"/tag?%s",
545 queryString(&opts)), doOptions{})
546
547 if err != nil {
548 return err
549 }
550
551 defer resp.Body.Close()
552
553 if resp.StatusCode == http.StatusNotFound {
554 return ErrNoSuchImage
555 }
556
557 return err
558}
559
560func isURL(u string) bool {
561 p, err := url.Parse(u)
562 if err != nil {
563 return false
564 }
565 return p.Scheme == "http" || p.Scheme == "https"
566}
567
568func headersWithAuth(auths ...interface{}) (map[string]string, error) {
569 var headers = make(map[string]string)
570
571 for _, auth := range auths {
572 switch auth.(type) {
573 case AuthConfiguration:
574 var buf bytes.Buffer
575 if err := json.NewEncoder(&buf).Encode(auth); err != nil {
576 return nil, err
577 }
578 headers["X-Registry-Auth"] = base64.URLEncoding.EncodeToString(buf.Bytes())
579 case AuthConfigurations, AuthConfigurations119:
580 var buf bytes.Buffer
581 if err := json.NewEncoder(&buf).Encode(auth); err != nil {
582 return nil, err
583 }
584 headers["X-Registry-Config"] = base64.URLEncoding.EncodeToString(buf.Bytes())
585 }
586 }
587
588 return headers, nil
589}
590
591// APIImageSearch reflect the result of a search on the Docker Hub.
592//
593// See https://goo.gl/AYjyrF for more details.
594type APIImageSearch struct {
595 Description string `json:"description,omitempty" yaml:"description,omitempty"`
596 IsOfficial bool `json:"is_official,omitempty" yaml:"is_official,omitempty"`
597 IsAutomated bool `json:"is_automated,omitempty" yaml:"is_automated,omitempty"`
598 Name string `json:"name,omitempty" yaml:"name,omitempty"`
599 StarCount int `json:"star_count,omitempty" yaml:"star_count,omitempty"`
600}
601
602// SearchImages search the docker hub with a specific given term.
603//
604// See https://goo.gl/AYjyrF for more details.
605func (c *Client) SearchImages(term string) ([]APIImageSearch, error) {
606 resp, err := c.do("GET", "/images/search?term="+term, doOptions{})
607 if err != nil {
608 return nil, err
609 }
610 defer resp.Body.Close()
611 var searchResult []APIImageSearch
612 if err := json.NewDecoder(resp.Body).Decode(&searchResult); err != nil {
613 return nil, err
614 }
615 return searchResult, nil
616}
617
618// SearchImagesEx search the docker hub with a specific given term and authentication.
619//
620// See https://goo.gl/AYjyrF for more details.
621func (c *Client) SearchImagesEx(term string, auth AuthConfiguration) ([]APIImageSearch, error) {
622 headers, err := headersWithAuth(auth)
623 if err != nil {
624 return nil, err
625 }
626
627 resp, err := c.do("GET", "/images/search?term="+term, doOptions{
628 headers: headers,
629 })
630 if err != nil {
631 return nil, err
632 }
633
634 defer resp.Body.Close()
635
636 var searchResult []APIImageSearch
637 if err := json.NewDecoder(resp.Body).Decode(&searchResult); err != nil {
638 return nil, err
639 }
640
641 return searchResult, nil
642}
diff --git a/vendor/github.com/fsouza/go-dockerclient/misc.go b/vendor/github.com/fsouza/go-dockerclient/misc.go
deleted file mode 100644
index ce9e975..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/misc.go
+++ /dev/null
@@ -1,124 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import (
8 "encoding/json"
9 "strings"
10)
11
12// Version returns version information about the docker server.
13//
14// See https://goo.gl/ND9R8L for more details.
15func (c *Client) Version() (*Env, error) {
16 resp, err := c.do("GET", "/version", doOptions{})
17 if err != nil {
18 return nil, err
19 }
20 defer resp.Body.Close()
21 var env Env
22 if err := env.Decode(resp.Body); err != nil {
23 return nil, err
24 }
25 return &env, nil
26}
27
28// DockerInfo contains information about the Docker server
29//
30// See https://goo.gl/bHUoz9 for more details.
31type DockerInfo struct {
32 ID string
33 Containers int
34 ContainersRunning int
35 ContainersPaused int
36 ContainersStopped int
37 Images int
38 Driver string
39 DriverStatus [][2]string
40 SystemStatus [][2]string
41 Plugins PluginsInfo
42 MemoryLimit bool
43 SwapLimit bool
44 KernelMemory bool
45 CPUCfsPeriod bool `json:"CpuCfsPeriod"`
46 CPUCfsQuota bool `json:"CpuCfsQuota"`
47 CPUShares bool
48 CPUSet bool
49 IPv4Forwarding bool
50 BridgeNfIptables bool
51 BridgeNfIP6tables bool `json:"BridgeNfIp6tables"`
52 Debug bool
53 NFd int
54 OomKillDisable bool
55 NGoroutines int
56 SystemTime string
57 ExecutionDriver string
58 LoggingDriver string
59 CgroupDriver string
60 NEventsListener int
61 KernelVersion string
62 OperatingSystem string
63 OSType string
64 Architecture string
65 IndexServerAddress string
66 NCPU int
67 MemTotal int64
68 DockerRootDir string
69 HTTPProxy string `json:"HttpProxy"`
70 HTTPSProxy string `json:"HttpsProxy"`
71 NoProxy string
72 Name string
73 Labels []string
74 ExperimentalBuild bool
75 ServerVersion string
76 ClusterStore string
77 ClusterAdvertise string
78}
79
80// PluginsInfo is a struct with the plugins registered with the docker daemon
81//
82// for more information, see: https://goo.gl/bHUoz9
83type PluginsInfo struct {
84 // List of Volume plugins registered
85 Volume []string
86 // List of Network plugins registered
87 Network []string
88 // List of Authorization plugins registered
89 Authorization []string
90}
91
92// Info returns system-wide information about the Docker server.
93//
94// See https://goo.gl/ElTHi2 for more details.
95func (c *Client) Info() (*DockerInfo, error) {
96 resp, err := c.do("GET", "/info", doOptions{})
97 if err != nil {
98 return nil, err
99 }
100 defer resp.Body.Close()
101 var info DockerInfo
102 if err := json.NewDecoder(resp.Body).Decode(&info); err != nil {
103 return nil, err
104 }
105 return &info, nil
106}
107
108// ParseRepositoryTag gets the name of the repository and returns it splitted
109// in two parts: the repository and the tag.
110//
111// Some examples:
112//
113// localhost.localdomain:5000/samalba/hipache:latest -> localhost.localdomain:5000/samalba/hipache, latest
114// localhost.localdomain:5000/samalba/hipache -> localhost.localdomain:5000/samalba/hipache, ""
115func ParseRepositoryTag(repoTag string) (repository string, tag string) {
116 n := strings.LastIndex(repoTag, ":")
117 if n < 0 {
118 return repoTag, ""
119 }
120 if tag := repoTag[n+1:]; !strings.Contains(tag, "/") {
121 return repoTag[:n], tag
122 }
123 return repoTag, ""
124}
diff --git a/vendor/github.com/fsouza/go-dockerclient/network.go b/vendor/github.com/fsouza/go-dockerclient/network.go
deleted file mode 100644
index a681249..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/network.go
+++ /dev/null
@@ -1,273 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import (
8 "bytes"
9 "encoding/json"
10 "errors"
11 "fmt"
12 "net/http"
13)
14
15// ErrNetworkAlreadyExists is the error returned by CreateNetwork when the
16// network already exists.
17var ErrNetworkAlreadyExists = errors.New("network already exists")
18
19// Network represents a network.
20//
21// See https://goo.gl/6GugX3 for more details.
22type Network struct {
23 Name string
24 ID string `json:"Id"`
25 Scope string
26 Driver string
27 IPAM IPAMOptions
28 Containers map[string]Endpoint
29 Options map[string]string
30 Internal bool
31 EnableIPv6 bool `json:"EnableIPv6"`
32}
33
34// Endpoint contains network resources allocated and used for a container in a network
35//
36// See https://goo.gl/6GugX3 for more details.
37type Endpoint struct {
38 Name string
39 ID string `json:"EndpointID"`
40 MacAddress string
41 IPv4Address string
42 IPv6Address string
43}
44
45// ListNetworks returns all networks.
46//
47// See https://goo.gl/6GugX3 for more details.
48func (c *Client) ListNetworks() ([]Network, error) {
49 resp, err := c.do("GET", "/networks", doOptions{})
50 if err != nil {
51 return nil, err
52 }
53 defer resp.Body.Close()
54 var networks []Network
55 if err := json.NewDecoder(resp.Body).Decode(&networks); err != nil {
56 return nil, err
57 }
58 return networks, nil
59}
60
61// NetworkFilterOpts is an aggregation of key=value that Docker
62// uses to filter networks
63type NetworkFilterOpts map[string]map[string]bool
64
65// FilteredListNetworks returns all networks with the filters applied
66//
67// See goo.gl/zd2mx4 for more details.
68func (c *Client) FilteredListNetworks(opts NetworkFilterOpts) ([]Network, error) {
69 params := bytes.NewBuffer(nil)
70 if err := json.NewEncoder(params).Encode(&opts); err != nil {
71 return nil, err
72 }
73 path := "/networks?filters=" + params.String()
74 resp, err := c.do("GET", path, doOptions{})
75 if err != nil {
76 return nil, err
77 }
78 defer resp.Body.Close()
79 var networks []Network
80 if err := json.NewDecoder(resp.Body).Decode(&networks); err != nil {
81 return nil, err
82 }
83 return networks, nil
84}
85
86// NetworkInfo returns information about a network by its ID.
87//
88// See https://goo.gl/6GugX3 for more details.
89func (c *Client) NetworkInfo(id string) (*Network, error) {
90 path := "/networks/" + id
91 resp, err := c.do("GET", path, doOptions{})
92 if err != nil {
93 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
94 return nil, &NoSuchNetwork{ID: id}
95 }
96 return nil, err
97 }
98 defer resp.Body.Close()
99 var network Network
100 if err := json.NewDecoder(resp.Body).Decode(&network); err != nil {
101 return nil, err
102 }
103 return &network, nil
104}
105
106// CreateNetworkOptions specify parameters to the CreateNetwork function and
107// (for now) is the expected body of the "create network" http request message
108//
109// See https://goo.gl/6GugX3 for more details.
110type CreateNetworkOptions struct {
111 Name string `json:"Name"`
112 CheckDuplicate bool `json:"CheckDuplicate"`
113 Driver string `json:"Driver"`
114 IPAM IPAMOptions `json:"IPAM"`
115 Options map[string]interface{} `json:"Options"`
116 Internal bool `json:"Internal"`
117 EnableIPv6 bool `json:"EnableIPv6"`
118}
119
120// IPAMOptions controls IP Address Management when creating a network
121//
122// See https://goo.gl/T8kRVH for more details.
123type IPAMOptions struct {
124 Driver string `json:"Driver"`
125 Config []IPAMConfig `json:"Config"`
126}
127
128// IPAMConfig represents IPAM configurations
129//
130// See https://goo.gl/T8kRVH for more details.
131type IPAMConfig struct {
132 Subnet string `json:",omitempty"`
133 IPRange string `json:",omitempty"`
134 Gateway string `json:",omitempty"`
135 AuxAddress map[string]string `json:"AuxiliaryAddresses,omitempty"`
136}
137
138// CreateNetwork creates a new network, returning the network instance,
139// or an error in case of failure.
140//
141// See https://goo.gl/6GugX3 for more details.
142func (c *Client) CreateNetwork(opts CreateNetworkOptions) (*Network, error) {
143 resp, err := c.do(
144 "POST",
145 "/networks/create",
146 doOptions{
147 data: opts,
148 },
149 )
150 if err != nil {
151 if e, ok := err.(*Error); ok && e.Status == http.StatusConflict {
152 return nil, ErrNetworkAlreadyExists
153 }
154 return nil, err
155 }
156 defer resp.Body.Close()
157
158 type createNetworkResponse struct {
159 ID string
160 }
161 var (
162 network Network
163 cnr createNetworkResponse
164 )
165 if err := json.NewDecoder(resp.Body).Decode(&cnr); err != nil {
166 return nil, err
167 }
168
169 network.Name = opts.Name
170 network.ID = cnr.ID
171 network.Driver = opts.Driver
172
173 return &network, nil
174}
175
176// RemoveNetwork removes a network or returns an error in case of failure.
177//
178// See https://goo.gl/6GugX3 for more details.
179func (c *Client) RemoveNetwork(id string) error {
180 resp, err := c.do("DELETE", "/networks/"+id, doOptions{})
181 if err != nil {
182 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
183 return &NoSuchNetwork{ID: id}
184 }
185 return err
186 }
187 resp.Body.Close()
188 return nil
189}
190
191// NetworkConnectionOptions specify parameters to the ConnectNetwork and
192// DisconnectNetwork function.
193//
194// See https://goo.gl/RV7BJU for more details.
195type NetworkConnectionOptions struct {
196 Container string
197
198 // EndpointConfig is only applicable to the ConnectNetwork call
199 EndpointConfig *EndpointConfig `json:"EndpointConfig,omitempty"`
200
201 // Force is only applicable to the DisconnectNetwork call
202 Force bool
203}
204
205// EndpointConfig stores network endpoint details
206//
207// See https://goo.gl/RV7BJU for more details.
208type EndpointConfig struct {
209 IPAMConfig *EndpointIPAMConfig
210 Links []string
211 Aliases []string
212}
213
214// EndpointIPAMConfig represents IPAM configurations for an
215// endpoint
216//
217// See https://goo.gl/RV7BJU for more details.
218type EndpointIPAMConfig struct {
219 IPv4Address string `json:",omitempty"`
220 IPv6Address string `json:",omitempty"`
221}
222
223// ConnectNetwork adds a container to a network or returns an error in case of
224// failure.
225//
226// See https://goo.gl/6GugX3 for more details.
227func (c *Client) ConnectNetwork(id string, opts NetworkConnectionOptions) error {
228 resp, err := c.do("POST", "/networks/"+id+"/connect", doOptions{data: opts})
229 if err != nil {
230 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
231 return &NoSuchNetworkOrContainer{NetworkID: id, ContainerID: opts.Container}
232 }
233 return err
234 }
235 resp.Body.Close()
236 return nil
237}
238
239// DisconnectNetwork removes a container from a network or returns an error in
240// case of failure.
241//
242// See https://goo.gl/6GugX3 for more details.
243func (c *Client) DisconnectNetwork(id string, opts NetworkConnectionOptions) error {
244 resp, err := c.do("POST", "/networks/"+id+"/disconnect", doOptions{data: opts})
245 if err != nil {
246 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
247 return &NoSuchNetworkOrContainer{NetworkID: id, ContainerID: opts.Container}
248 }
249 return err
250 }
251 resp.Body.Close()
252 return nil
253}
254
255// NoSuchNetwork is the error returned when a given network does not exist.
256type NoSuchNetwork struct {
257 ID string
258}
259
260func (err *NoSuchNetwork) Error() string {
261 return fmt.Sprintf("No such network: %s", err.ID)
262}
263
264// NoSuchNetworkOrContainer is the error returned when a given network or
265// container does not exist.
266type NoSuchNetworkOrContainer struct {
267 NetworkID string
268 ContainerID string
269}
270
271func (err *NoSuchNetworkOrContainer) Error() string {
272 return fmt.Sprintf("No such network (%s) or container (%s)", err.NetworkID, err.ContainerID)
273}
diff --git a/vendor/github.com/fsouza/go-dockerclient/signal.go b/vendor/github.com/fsouza/go-dockerclient/signal.go
deleted file mode 100644
index 16aa003..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/signal.go
+++ /dev/null
@@ -1,49 +0,0 @@
1// Copyright 2014 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7// Signal represents a signal that can be send to the container on
8// KillContainer call.
9type Signal int
10
11// These values represent all signals available on Linux, where containers will
12// be running.
13const (
14 SIGABRT = Signal(0x6)
15 SIGALRM = Signal(0xe)
16 SIGBUS = Signal(0x7)
17 SIGCHLD = Signal(0x11)
18 SIGCLD = Signal(0x11)
19 SIGCONT = Signal(0x12)
20 SIGFPE = Signal(0x8)
21 SIGHUP = Signal(0x1)
22 SIGILL = Signal(0x4)
23 SIGINT = Signal(0x2)
24 SIGIO = Signal(0x1d)
25 SIGIOT = Signal(0x6)
26 SIGKILL = Signal(0x9)
27 SIGPIPE = Signal(0xd)
28 SIGPOLL = Signal(0x1d)
29 SIGPROF = Signal(0x1b)
30 SIGPWR = Signal(0x1e)
31 SIGQUIT = Signal(0x3)
32 SIGSEGV = Signal(0xb)
33 SIGSTKFLT = Signal(0x10)
34 SIGSTOP = Signal(0x13)
35 SIGSYS = Signal(0x1f)
36 SIGTERM = Signal(0xf)
37 SIGTRAP = Signal(0x5)
38 SIGTSTP = Signal(0x14)
39 SIGTTIN = Signal(0x15)
40 SIGTTOU = Signal(0x16)
41 SIGUNUSED = Signal(0x1f)
42 SIGURG = Signal(0x17)
43 SIGUSR1 = Signal(0xa)
44 SIGUSR2 = Signal(0xc)
45 SIGVTALRM = Signal(0x1a)
46 SIGWINCH = Signal(0x1c)
47 SIGXCPU = Signal(0x18)
48 SIGXFSZ = Signal(0x19)
49)
diff --git a/vendor/github.com/fsouza/go-dockerclient/tar.go b/vendor/github.com/fsouza/go-dockerclient/tar.go
deleted file mode 100644
index 48042cb..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/tar.go
+++ /dev/null
@@ -1,117 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import (
8 "fmt"
9 "io"
10 "io/ioutil"
11 "os"
12 "path"
13 "path/filepath"
14 "strings"
15
16 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive"
17 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils"
18)
19
20func createTarStream(srcPath, dockerfilePath string) (io.ReadCloser, error) {
21 excludes, err := parseDockerignore(srcPath)
22 if err != nil {
23 return nil, err
24 }
25
26 includes := []string{"."}
27
28 // If .dockerignore mentions .dockerignore or the Dockerfile
29 // then make sure we send both files over to the daemon
30 // because Dockerfile is, obviously, needed no matter what, and
31 // .dockerignore is needed to know if either one needs to be
32 // removed. The deamon will remove them for us, if needed, after it
33 // parses the Dockerfile.
34 //
35 // https://github.com/docker/docker/issues/8330
36 //
37 forceIncludeFiles := []string{".dockerignore", dockerfilePath}
38
39 for _, includeFile := range forceIncludeFiles {
40 if includeFile == "" {
41 continue
42 }
43 keepThem, err := fileutils.Matches(includeFile, excludes)
44 if err != nil {
45 return nil, fmt.Errorf("cannot match .dockerfile: '%s', error: %s", includeFile, err)
46 }
47 if keepThem {
48 includes = append(includes, includeFile)
49 }
50 }
51
52 if err := validateContextDirectory(srcPath, excludes); err != nil {
53 return nil, err
54 }
55 tarOpts := &archive.TarOptions{
56 ExcludePatterns: excludes,
57 IncludeFiles: includes,
58 Compression: archive.Uncompressed,
59 NoLchown: true,
60 }
61 return archive.TarWithOptions(srcPath, tarOpts)
62}
63
64// validateContextDirectory checks if all the contents of the directory
65// can be read and returns an error if some files can't be read.
66// Symlinks which point to non-existing files don't trigger an error
67func validateContextDirectory(srcPath string, excludes []string) error {
68 return filepath.Walk(filepath.Join(srcPath, "."), func(filePath string, f os.FileInfo, err error) error {
69 // skip this directory/file if it's not in the path, it won't get added to the context
70 if relFilePath, err := filepath.Rel(srcPath, filePath); err != nil {
71 return err
72 } else if skip, err := fileutils.Matches(relFilePath, excludes); err != nil {
73 return err
74 } else if skip {
75 if f.IsDir() {
76 return filepath.SkipDir
77 }
78 return nil
79 }
80
81 if err != nil {
82 if os.IsPermission(err) {
83 return fmt.Errorf("can't stat '%s'", filePath)
84 }
85 if os.IsNotExist(err) {
86 return nil
87 }
88 return err
89 }
90
91 // skip checking if symlinks point to non-existing files, such symlinks can be useful
92 // also skip named pipes, because they hanging on open
93 if f.Mode()&(os.ModeSymlink|os.ModeNamedPipe) != 0 {
94 return nil
95 }
96
97 if !f.IsDir() {
98 currentFile, err := os.Open(filePath)
99 if err != nil && os.IsPermission(err) {
100 return fmt.Errorf("no permission to read from '%s'", filePath)
101 }
102 currentFile.Close()
103 }
104 return nil
105 })
106}
107
108func parseDockerignore(root string) ([]string, error) {
109 var excludes []string
110 ignore, err := ioutil.ReadFile(path.Join(root, ".dockerignore"))
111 if err != nil && !os.IsNotExist(err) {
112 return excludes, fmt.Errorf("error reading .dockerignore: '%s'", err)
113 }
114 excludes = strings.Split(string(ignore), "\n")
115
116 return excludes, nil
117}
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/Dockerfile b/vendor/github.com/fsouza/go-dockerclient/testing/data/Dockerfile
deleted file mode 100644
index 0948dcf..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/Dockerfile
+++ /dev/null
@@ -1,15 +0,0 @@
1# this file describes how to build tsuru python image
2# to run it:
3# 1- install docker
4# 2- run: $ docker build -t tsuru/python https://raw.github.com/tsuru/basebuilder/master/python/Dockerfile
5
6from base:ubuntu-quantal
7run apt-get install wget -y --force-yes
8run wget http://github.com/tsuru/basebuilder/tarball/master -O basebuilder.tar.gz --no-check-certificate
9run mkdir /var/lib/tsuru
10run tar -xvf basebuilder.tar.gz -C /var/lib/tsuru --strip 1
11run cp /var/lib/tsuru/python/deploy /var/lib/tsuru
12run cp /var/lib/tsuru/base/restart /var/lib/tsuru
13run cp /var/lib/tsuru/base/start /var/lib/tsuru
14run /var/lib/tsuru/base/install
15run /var/lib/tsuru/base/setup
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/barfile b/vendor/github.com/fsouza/go-dockerclient/testing/data/barfile
deleted file mode 100644
index e69de29..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/barfile
+++ /dev/null
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/ca.pem b/vendor/github.com/fsouza/go-dockerclient/testing/data/ca.pem
deleted file mode 100644
index 8e38bba..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/ca.pem
+++ /dev/null
@@ -1,18 +0,0 @@
1-----BEGIN CERTIFICATE-----
2MIIC1TCCAb+gAwIBAgIQJ9MsNxrUxumNbAytGi3GEDALBgkqhkiG9w0BAQswFjEU
3MBIGA1UEChMLQm9vdDJEb2NrZXIwHhcNMTQxMDE2MjAyMTM4WhcNMTcwOTMwMjAy
4MTM4WjAWMRQwEgYDVQQKEwtCb290MkRvY2tlcjCCASIwDQYJKoZIhvcNAQEBBQAD
5ggEPADCCAQoCggEBALpFCSARjG+5yXoqr7UMzuE0df7RRZfeRZI06lJ02ZqV4Iii
6rgL7ML9yPxX50NbLnjiilSDTUhnyocYFItokzUzz8qpX/nlYhuN2Iqwh4d0aWS8z
7f5y248F+H1z+HY2W8NPl/6DVlVwYaNW1/k+RPMlHS0INLR6j+3Ievew7RNE0NnM2
8znELW6NetekDt3GUcz0Z95vDUDfdPnIk1eIFMmYvLxZh23xOca4Q37a3S8F3d+dN
9+OOpwjdgY9Qme0NQUaXpgp58jWuQfB8q7mZrdnLlLqRa8gx1HeDSotX7UmWtWPkb
10vd9EdlKLYw5PVpxMV1rkwf2t4TdgD5NfkpXlXkkCAwEAAaMjMCEwDgYDVR0PAQH/
11BAQDAgCkMA8GA1UdEwEB/wQFMAMBAf8wCwYJKoZIhvcNAQELA4IBAQBxYjHVSKqE
12MJw7CW0GddesULtXXVWGJuZdWJLQlPvPMfIfjIvlcZyS4cdVNiQ3sREFIZz8TpII
13CT0/Pg3sgv/FcOQe1CN0xZYZcyiAZHK1z0fJQq2qVpdv7+tJcjI2vvU6NI24iQCo
14W1wz25trJz9QbdB2MRLMjyz7TSWuafztIvcfEzaIdQ0Whqund/cSuPGQx5IwF83F
15rvlkOyJSH2+VIEBTCIuykJeL0DLTt8cePBQR5L1ISXb4RUMK9ZtqRscBRv8sn7o2
16ixG3wtL0gYF4xLtsQWVxI3iFVrU3WzOH/3c5shVRkWBd+AQRSwCJI4mKH7penJCF
17i3/zzlkvOnjV
18-----END CERTIFICATE-----
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/cert.pem b/vendor/github.com/fsouza/go-dockerclient/testing/data/cert.pem
deleted file mode 100644
index 5e7244b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/cert.pem
+++ /dev/null
@@ -1,18 +0,0 @@
1-----BEGIN CERTIFICATE-----
2MIIC6DCCAdKgAwIBAgIRANO6ymxQAjp66KmEka1G6b0wCwYJKoZIhvcNAQELMBYx
3FDASBgNVBAoTC0Jvb3QyRG9ja2VyMB4XDTE0MTAxNjIwMjE1MloXDTE3MDkzMDIw
4MjE1MlowFjEUMBIGA1UEChMLQm9vdDJEb2NrZXIwggEiMA0GCSqGSIb3DQEBAQUA
5A4IBDwAwggEKAoIBAQDGA1mAhSOpZspD1dpZ7qVEQrIJw4Xo8252jHaORnEdDiFm
6b6brEmr6jw8t4P3IGxbqBc/TqRV+SSXxwYEVvfpeQKH+SmqStoMNtD3Ura161az4
7V0BcxMtSlsUGpoz+//QCAq8qiaxMwgiyc5253mkQm88anj2cNt7xbewiu/KFWuf7
8BVpNK1+ltpJmlukfcj/G+I1bw7j1KxBjDrFqe5cyDuuZcDL2tmUXP/ZWDyXwSv+H
9AOckqn44z6aXlBkVvOXDBZJqY76d/vWVDNCuZeXRnqlhP3t1kH4V0RQXo+JD2tgt
10JgdU0unzyoFOSWNUBPm73tqmjUGGAmGHBmeegJr/AgMBAAGjNTAzMA4GA1UdDwEB
11/wQEAwIAgDATBgNVHSUEDDAKBggrBgEFBQcDAjAMBgNVHRMBAf8EAjAAMAsGCSqG
12SIb3DQEBCwOCAQEABVTWl5SmBP+j5He5bQsgnIXjviSKqe40/10V4LJAOmilycRF
13zLrzM+YMwfjg6PLIs8CldAMWHw9y9ktZY4MxkgCktaiaN/QmMTMwFWEcN4wy5IpM
14U5l93eAg7xsnY430h3QBBADujX4wdF3fs8rSL8zAAQFL0ihurwU124K3yXKsrwpb
15CiVUGfIN4sPwjy8Ws9oxHFDC9/P8lgjHZ1nBIf8KSHnMzlxDGj7isQfhtH+7mcCL
16cM1qO2NirS2v7uaEPPY+MJstAz+W7EJCW9dfMSmHna2SDC37Xkin7uEY9z+qaKFL
178d/XxOB/L8Ucy8VZhdsv0dsBq5KfJntITM0ksQ==
18-----END CERTIFICATE-----
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/container.tar b/vendor/github.com/fsouza/go-dockerclient/testing/data/container.tar
deleted file mode 100644
index e4b066e..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/container.tar
+++ /dev/null
Binary files differ
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/dockerfile.tar b/vendor/github.com/fsouza/go-dockerclient/testing/data/dockerfile.tar
deleted file mode 100644
index 32c9ce6..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/dockerfile.tar
+++ /dev/null
Binary files differ
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/foofile b/vendor/github.com/fsouza/go-dockerclient/testing/data/foofile
deleted file mode 100644
index e69de29..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/foofile
+++ /dev/null
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/key.pem b/vendor/github.com/fsouza/go-dockerclient/testing/data/key.pem
deleted file mode 100644
index a9346bc..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/key.pem
+++ /dev/null
@@ -1,27 +0,0 @@
1-----BEGIN RSA PRIVATE KEY-----
2MIIEowIBAAKCAQEAxgNZgIUjqWbKQ9XaWe6lREKyCcOF6PNudox2jkZxHQ4hZm+m
36xJq+o8PLeD9yBsW6gXP06kVfkkl8cGBFb36XkCh/kpqkraDDbQ91K2tetWs+FdA
4XMTLUpbFBqaM/v/0AgKvKomsTMIIsnOdud5pEJvPGp49nDbe8W3sIrvyhVrn+wVa
5TStfpbaSZpbpH3I/xviNW8O49SsQYw6xanuXMg7rmXAy9rZlFz/2Vg8l8Er/hwDn
6JKp+OM+ml5QZFbzlwwWSamO+nf71lQzQrmXl0Z6pYT97dZB+FdEUF6PiQ9rYLSYH
7VNLp88qBTkljVAT5u97apo1BhgJhhwZnnoCa/wIDAQABAoIBAQCaGy9EC9pmU95l
8DwGh7k5nIrUnTilg1FwLHWSDdCVCZKXv8ENrPelOWZqJrUo1u4eI2L8XTsewgkNq
9tJu/DRzWz9yDaO0qg6rZNobMh+K076lvmZA44twOydJLS8H+D7ua+PXU2FLlZjmY
10kMyXRJZmW6zCXZc7haTbJx6ZJccoquk/DkS4FcFurJP177u1YrWS9TTw9kensUtU
11jQ63uf56UTN1i+0+Rxl7OW1TZlqwlri5I4njg5249+FxwwHzIq8+l7zD7K9pl8c/
12nG1HuulvU2bVlDlRdyslMPAH34vw9Sku1BD8furrJLr1na5lRSLKJODEaIPEsLwv
13CdEUwP9JAoGBAO76ZW80RyNB2fA+wbTq70Sr8CwrXxYemXrez5LKDC7SsohKFCPE
14IedpO/n+nmymiiJvMm874EExoG6BVrbkWkeb+2vinEfOQNlDMsDx7WLjPekP3t6i
15rXHO3CjFooVFq2z3mZa/Nc5NZqu8fNWNCKJxZDJphdoj6sORNJIUvZVjAoGBANQd
16++J+ITcu3/+A6JrGcgLunBFQYPqkiItk0J4QKYKuX5ik9rWcQDN8TTtfW2mDuiQ4
17NrCwuVPq1V1kB16JzH017SsYLo9g8I20YjnBZge9pKTeUaLVTb3C50LW8FBylop0
18Bnm597dNbtSjphjoTMg0XyC19o3Esf2YeWG0QNS1AoGAWWDfFRNJU99qIldmXULM
190DM6NVrXSk+ReYnhunXEzrJQwXZrR+EwCPurydk36Uz0NuK9yypquhdUeF/5TZfk
20SAoHo5byekyipl9imRUigqyY2BTudvgCxKDoaHtaSFwBPFTyZZYICquaLbrmOXxw
218UhVgCFFRYvPXuts7QHC0h8CgYBWEvy9gfU0kV7wLX02IUTuj6jhFb7ktpN6DSTi
22nyhZES1VoctDEu6ydcRZTW6ouH12aSE4Pd5WgTqntQmQgVZrkNB25k8ue2Xh+srJ
23KQOgLIJ9LIHwE6KCWG7DnrjRzE3uTPq7to0g4tkQjH/AJ7PQof/gJDayfJjFkXPg
24A+cy6QKBgEPbKpiqscm03gT2QanBut5pg4dqPOxp0SlErA3kSFNTRK3oYBQPC+LH
25qA5nD5brdkeNBB58Rll8Zpzxiff50bcvLP/7/Sb3NjaXFTEY0gVbdRof3n6N0YP3
26Hu5XDNJ9RNkNzE5RIG1g86KE+aKlcrKMaigqAiuIy2PSnjkQeGk8
27-----END RSA PRIVATE KEY-----
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/server.pem b/vendor/github.com/fsouza/go-dockerclient/testing/data/server.pem
deleted file mode 100644
index 89cc445..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/server.pem
+++ /dev/null
@@ -1,18 +0,0 @@
1-----BEGIN CERTIFICATE-----
2MIIC/DCCAeagAwIBAgIQMUILcXtvmSOK63zEBo0VXzALBgkqhkiG9w0BAQswFjEU
3MBIGA1UEChMLQm9vdDJEb2NrZXIwHhcNMTQxMDE2MjAyMTQ2WhcNMTcwOTMwMjAy
4MTQ2WjAWMRQwEgYDVQQKEwtCb290MkRvY2tlcjCCASIwDQYJKoZIhvcNAQEBBQAD
5ggEPADCCAQoCggEBANxUOUhNnqFnrTlLsBYzfFRZWQo268l+4K4lOJCVbfDonP3g
6Mz0vGi9fcyFqEWSA8Y+ShXna625HTnReCwFdsu0861qCIq7v95hFFCyOe0iIxpd0
7AKLnl90d+1vonE7andgFgoobbTiMly4UK4H6z8D148fFNIihoteOG3PIF89TFxP7
8CJ/3wXnx/IKpdlO8PAnub3tBPJHvGDj7KORLy4IBxRX5VBAdfGNybE66fcrehEva
9rLA4m9pgiaR/Nnr9FdKhPyqYdjflLNvzydxNvMIV4M0hFlhXmYvpMjA5/XsTnsyV
10t9JHJa5Upwqsbne08t7rsm7liZNxZlko8xPOTQcCAwEAAaNKMEgwDgYDVR0PAQH/
11BAQDAgCgMAwGA1UdEwEB/wQCMAAwKAYDVR0RBCEwH4ILYm9vdDJkb2NrZXKHBH8A
12AAGHBAoAAg+HBMCoO2cwCwYJKoZIhvcNAQELA4IBAQAYoYcDkDWkl73FZ0WnPmAj
13LiF7HU95Qg3KyEpFsAJeShSLPPbQntmwhdekEzY4tQ3eKQB/+zHFjzsCr/lmDUmH
14Ea/ryQ17C+jyH+Ykg0IWW6L6veZhvRDg6Z9focVtPVBRxPTqC/Qhb54blWRASV+W
15UreMuXQ5+1dQptAM7ixOeLVHjBi/bd9TL3jvwBVCr9QedteMjjK4TCF9Tbcou+MF
162w3OJJZMDhcD+YwoK9uJDqlKmcTm/vVMbSsp/pTMcnQ7jxCeR8/XyX+VwTZwaHAa
17o92Q/eg3THAiWhvyT/SzyH9dHHBAyXynUwGCggKawHktfvW4QXRPuLxLrJ7iB5cy
18-----END CERTIFICATE-----
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/data/serverkey.pem b/vendor/github.com/fsouza/go-dockerclient/testing/data/serverkey.pem
deleted file mode 100644
index c897e5d..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/data/serverkey.pem
+++ /dev/null
@@ -1,27 +0,0 @@
1-----BEGIN RSA PRIVATE KEY-----
2MIIEoAIBAAKCAQEA3FQ5SE2eoWetOUuwFjN8VFlZCjbryX7griU4kJVt8Oic/eAz
3PS8aL19zIWoRZIDxj5KFedrrbkdOdF4LAV2y7TzrWoIiru/3mEUULI57SIjGl3QA
4oueX3R37W+icTtqd2AWCihttOIyXLhQrgfrPwPXjx8U0iKGi144bc8gXz1MXE/sI
5n/fBefH8gql2U7w8Ce5ve0E8ke8YOPso5EvLggHFFflUEB18Y3JsTrp9yt6ES9qs
6sDib2mCJpH82ev0V0qE/Kph2N+Us2/PJ3E28whXgzSEWWFeZi+kyMDn9exOezJW3
70kclrlSnCqxud7Ty3uuybuWJk3FmWSjzE85NBwIDAQABAoIBAG0ak+cW8LeShHf7
83+2Of0GxoOLrAWWdG5uAuPr31CJYve0FybnBimDtDjD8ujIfm/7xmoEWBEFutA3x
9x9dcU88gvJbsHEqub9gKVQwfXjMz78tt2SbSMiR/xUnk7QorPcCMMfE71aEMFYzu
101gCed6Rg3vO81t/V0rKVH0j9S7UQz5v/oX15eVDV5LOqyCHwAi6K0eXXbqnbI0TH
11SOQ/nexM2msVXWbO9t6ra6f5V7FXziDK5Xi+rPxRbX9mkrDzxDAevfuRqYBx5vtL
12W2Q2hKjUAHFgXFniNSZBS7dCdAtz0el/3ct+cNmpuTMhhs7M6wC1CuYiZ/DxLiFh
13Si73VckCgYEA+/ceh3+VjtQ0rgEw8sD9bqYEA8IaBiObjneIoFnKBYRG7yZd8JMm
14HD4M/aQ1qhcRLPN7GR03YQULgQJURbKSjJHnhfTXHyeHC3NN4gMVHQXewu2MHCh6
157FCQ9CfK0KcYLgegVVvL3PrF3hyWGnmTu+G0UkDQRYVnaNrB7snrW6UCgYEA39tq
16+MCQdu0moJ5szSZf02undg9EeW6isk9qzi7TId3/MLci2eH7PEnipipPUK3+DERq
17aba0y0TKgBR2EXvXLFJA/+kfdo2loIEHOfox85HVfxgUaFRti63ZI0uF8D0QT2Yy
18oJal+RFghVoSnv4LjhRKEPbIkScTXGjdK+7wFjsCfz79iKRXQQx0ALd/lL0bgkAn
19QNmvrNHcFQeI2p8700WNzC39aX67SsvEt3qxkrjzC1gxhpTAuReIK1gVPPwvqHN8
20BmV20FD5kMlMCix2mNCopwgUWvKvLAvoGFTxncKMA39+aJbuXAjiqJTekKgNvOE7
21i9kEWw0GTNPp3JHV6QECgYAPwb0M11kT1euDIMOdyRazpf86kyaJuZzgGjD1ZFxe
22JOcigbGFTp/FhZnbglzk2+pm6KXo3QBq0mPCki4hWusxZnTGzpz1VlETNCHTFeZQ
23M7KoaIR/N3oie9Et59H8r/+m5xWnMhNqratyl316DX24uXrhKM3DUdHODl+LCR2D
24IwKBgE1MbHuwolUPEw3HeO4R7NMFVTFei7E/fpUsimPfArGg8UydwvloNT1myJos
25N2JzfGGjN2KPVcBk9fOs71mJ6VcK3C3g5JIccplk6h9VNaw55+zdQvKPTzoBoTvy
26A+Fwx2AlF61KeRF87DL2YTRJ6B9MHmWgf7+GVZOxomLgEAcZ
27-----END RSA PRIVATE KEY-----
diff --git a/vendor/github.com/fsouza/go-dockerclient/testing/server.go b/vendor/github.com/fsouza/go-dockerclient/testing/server.go
deleted file mode 100644
index 7b65a8c..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/testing/server.go
+++ /dev/null
@@ -1,1334 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Package testing provides a fake implementation of the Docker API, useful for
6// testing purpose.
7package testing
8
9import (
10 "archive/tar"
11 "crypto/rand"
12 "encoding/json"
13 "errors"
14 "fmt"
15 "io/ioutil"
16 mathrand "math/rand"
17 "net"
18 "net/http"
19 "regexp"
20 "strconv"
21 "strings"
22 "sync"
23 "time"
24
25 "github.com/fsouza/go-dockerclient"
26 "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/stdcopy"
27 "github.com/fsouza/go-dockerclient/external/github.com/gorilla/mux"
28)
29
30var nameRegexp = regexp.MustCompile(`^[a-zA-Z0-9][a-zA-Z0-9_.-]+$`)
31
32// DockerServer represents a programmable, concurrent (not much), HTTP server
33// implementing a fake version of the Docker remote API.
34//
35// It can used in standalone mode, listening for connections or as an arbitrary
36// HTTP handler.
37//
38// For more details on the remote API, check http://goo.gl/G3plxW.
39type DockerServer struct {
40 containers []*docker.Container
41 uploadedFiles map[string]string
42 execs []*docker.ExecInspect
43 execMut sync.RWMutex
44 cMut sync.RWMutex
45 images []docker.Image
46 iMut sync.RWMutex
47 imgIDs map[string]string
48 networks []*docker.Network
49 netMut sync.RWMutex
50 listener net.Listener
51 mux *mux.Router
52 hook func(*http.Request)
53 failures map[string]string
54 multiFailures []map[string]string
55 execCallbacks map[string]func()
56 statsCallbacks map[string]func(string) docker.Stats
57 customHandlers map[string]http.Handler
58 handlerMutex sync.RWMutex
59 cChan chan<- *docker.Container
60 volStore map[string]*volumeCounter
61 volMut sync.RWMutex
62}
63
64type volumeCounter struct {
65 volume docker.Volume
66 count int
67}
68
69// NewServer returns a new instance of the fake server, in standalone mode. Use
70// the method URL to get the URL of the server.
71//
72// It receives the bind address (use 127.0.0.1:0 for getting an available port
73// on the host), a channel of containers and a hook function, that will be
74// called on every request.
75//
76// The fake server will send containers in the channel whenever the container
77// changes its state, via the HTTP API (i.e.: create, start and stop). This
78// channel may be nil, which means that the server won't notify on state
79// changes.
80func NewServer(bind string, containerChan chan<- *docker.Container, hook func(*http.Request)) (*DockerServer, error) {
81 listener, err := net.Listen("tcp", bind)
82 if err != nil {
83 return nil, err
84 }
85 server := DockerServer{
86 listener: listener,
87 imgIDs: make(map[string]string),
88 hook: hook,
89 failures: make(map[string]string),
90 execCallbacks: make(map[string]func()),
91 statsCallbacks: make(map[string]func(string) docker.Stats),
92 customHandlers: make(map[string]http.Handler),
93 uploadedFiles: make(map[string]string),
94 cChan: containerChan,
95 }
96 server.buildMuxer()
97 go http.Serve(listener, &server)
98 return &server, nil
99}
100
101func (s *DockerServer) notify(container *docker.Container) {
102 if s.cChan != nil {
103 s.cChan <- container
104 }
105}
106
107func (s *DockerServer) buildMuxer() {
108 s.mux = mux.NewRouter()
109 s.mux.Path("/commit").Methods("POST").HandlerFunc(s.handlerWrapper(s.commitContainer))
110 s.mux.Path("/containers/json").Methods("GET").HandlerFunc(s.handlerWrapper(s.listContainers))
111 s.mux.Path("/containers/create").Methods("POST").HandlerFunc(s.handlerWrapper(s.createContainer))
112 s.mux.Path("/containers/{id:.*}/json").Methods("GET").HandlerFunc(s.handlerWrapper(s.inspectContainer))
113 s.mux.Path("/containers/{id:.*}/rename").Methods("POST").HandlerFunc(s.handlerWrapper(s.renameContainer))
114 s.mux.Path("/containers/{id:.*}/top").Methods("GET").HandlerFunc(s.handlerWrapper(s.topContainer))
115 s.mux.Path("/containers/{id:.*}/start").Methods("POST").HandlerFunc(s.handlerWrapper(s.startContainer))
116 s.mux.Path("/containers/{id:.*}/kill").Methods("POST").HandlerFunc(s.handlerWrapper(s.stopContainer))
117 s.mux.Path("/containers/{id:.*}/stop").Methods("POST").HandlerFunc(s.handlerWrapper(s.stopContainer))
118 s.mux.Path("/containers/{id:.*}/pause").Methods("POST").HandlerFunc(s.handlerWrapper(s.pauseContainer))
119 s.mux.Path("/containers/{id:.*}/unpause").Methods("POST").HandlerFunc(s.handlerWrapper(s.unpauseContainer))
120 s.mux.Path("/containers/{id:.*}/wait").Methods("POST").HandlerFunc(s.handlerWrapper(s.waitContainer))
121 s.mux.Path("/containers/{id:.*}/attach").Methods("POST").HandlerFunc(s.handlerWrapper(s.attachContainer))
122 s.mux.Path("/containers/{id:.*}").Methods("DELETE").HandlerFunc(s.handlerWrapper(s.removeContainer))
123 s.mux.Path("/containers/{id:.*}/exec").Methods("POST").HandlerFunc(s.handlerWrapper(s.createExecContainer))
124 s.mux.Path("/containers/{id:.*}/stats").Methods("GET").HandlerFunc(s.handlerWrapper(s.statsContainer))
125 s.mux.Path("/containers/{id:.*}/archive").Methods("PUT").HandlerFunc(s.handlerWrapper(s.uploadToContainer))
126 s.mux.Path("/exec/{id:.*}/resize").Methods("POST").HandlerFunc(s.handlerWrapper(s.resizeExecContainer))
127 s.mux.Path("/exec/{id:.*}/start").Methods("POST").HandlerFunc(s.handlerWrapper(s.startExecContainer))
128 s.mux.Path("/exec/{id:.*}/json").Methods("GET").HandlerFunc(s.handlerWrapper(s.inspectExecContainer))
129 s.mux.Path("/images/create").Methods("POST").HandlerFunc(s.handlerWrapper(s.pullImage))
130 s.mux.Path("/build").Methods("POST").HandlerFunc(s.handlerWrapper(s.buildImage))
131 s.mux.Path("/images/json").Methods("GET").HandlerFunc(s.handlerWrapper(s.listImages))
132 s.mux.Path("/images/{id:.*}").Methods("DELETE").HandlerFunc(s.handlerWrapper(s.removeImage))
133 s.mux.Path("/images/{name:.*}/json").Methods("GET").HandlerFunc(s.handlerWrapper(s.inspectImage))
134 s.mux.Path("/images/{name:.*}/push").Methods("POST").HandlerFunc(s.handlerWrapper(s.pushImage))
135 s.mux.Path("/images/{name:.*}/tag").Methods("POST").HandlerFunc(s.handlerWrapper(s.tagImage))
136 s.mux.Path("/events").Methods("GET").HandlerFunc(s.listEvents)
137 s.mux.Path("/_ping").Methods("GET").HandlerFunc(s.handlerWrapper(s.pingDocker))
138 s.mux.Path("/images/load").Methods("POST").HandlerFunc(s.handlerWrapper(s.loadImage))
139 s.mux.Path("/images/{id:.*}/get").Methods("GET").HandlerFunc(s.handlerWrapper(s.getImage))
140 s.mux.Path("/networks").Methods("GET").HandlerFunc(s.handlerWrapper(s.listNetworks))
141 s.mux.Path("/networks/{id:.*}").Methods("GET").HandlerFunc(s.handlerWrapper(s.networkInfo))
142 s.mux.Path("/networks").Methods("POST").HandlerFunc(s.handlerWrapper(s.createNetwork))
143 s.mux.Path("/volumes").Methods("GET").HandlerFunc(s.handlerWrapper(s.listVolumes))
144 s.mux.Path("/volumes/create").Methods("POST").HandlerFunc(s.handlerWrapper(s.createVolume))
145 s.mux.Path("/volumes/{name:.*}").Methods("GET").HandlerFunc(s.handlerWrapper(s.inspectVolume))
146 s.mux.Path("/volumes/{name:.*}").Methods("DELETE").HandlerFunc(s.handlerWrapper(s.removeVolume))
147 s.mux.Path("/info").Methods("GET").HandlerFunc(s.handlerWrapper(s.infoDocker))
148}
149
150// SetHook changes the hook function used by the server.
151//
152// The hook function is a function called on every request.
153func (s *DockerServer) SetHook(hook func(*http.Request)) {
154 s.hook = hook
155}
156
157// PrepareExec adds a callback to a container exec in the fake server.
158//
159// This function will be called whenever the given exec id is started, and the
160// given exec id will remain in the "Running" start while the function is
161// running, so it's useful for emulating an exec that runs for two seconds, for
162// example:
163//
164// opts := docker.CreateExecOptions{
165// AttachStdin: true,
166// AttachStdout: true,
167// AttachStderr: true,
168// Tty: true,
169// Cmd: []string{"/bin/bash", "-l"},
170// }
171// // Client points to a fake server.
172// exec, err := client.CreateExec(opts)
173// // handle error
174// server.PrepareExec(exec.ID, func() {time.Sleep(2 * time.Second)})
175// err = client.StartExec(exec.ID, docker.StartExecOptions{Tty: true}) // will block for 2 seconds
176// // handle error
177func (s *DockerServer) PrepareExec(id string, callback func()) {
178 s.execCallbacks[id] = callback
179}
180
181// PrepareStats adds a callback that will be called for each container stats
182// call.
183//
184// This callback function will be called multiple times if stream is set to
185// true when stats is called.
186func (s *DockerServer) PrepareStats(id string, callback func(string) docker.Stats) {
187 s.statsCallbacks[id] = callback
188}
189
190// PrepareFailure adds a new expected failure based on a URL regexp it receives
191// an id for the failure.
192func (s *DockerServer) PrepareFailure(id string, urlRegexp string) {
193 s.failures[id] = urlRegexp
194}
195
196// PrepareMultiFailures enqueues a new expected failure based on a URL regexp
197// it receives an id for the failure.
198func (s *DockerServer) PrepareMultiFailures(id string, urlRegexp string) {
199 s.multiFailures = append(s.multiFailures, map[string]string{"error": id, "url": urlRegexp})
200}
201
202// ResetFailure removes an expected failure identified by the given id.
203func (s *DockerServer) ResetFailure(id string) {
204 delete(s.failures, id)
205}
206
207// ResetMultiFailures removes all enqueued failures.
208func (s *DockerServer) ResetMultiFailures() {
209 s.multiFailures = []map[string]string{}
210}
211
212// CustomHandler registers a custom handler for a specific path.
213//
214// For example:
215//
216// server.CustomHandler("/containers/json", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
217// http.Error(w, "Something wrong is not right", http.StatusInternalServerError)
218// }))
219func (s *DockerServer) CustomHandler(path string, handler http.Handler) {
220 s.handlerMutex.Lock()
221 s.customHandlers[path] = handler
222 s.handlerMutex.Unlock()
223}
224
225// MutateContainer changes the state of a container, returning an error if the
226// given id does not match to any container "running" in the server.
227func (s *DockerServer) MutateContainer(id string, state docker.State) error {
228 for _, container := range s.containers {
229 if container.ID == id {
230 container.State = state
231 return nil
232 }
233 }
234 return errors.New("container not found")
235}
236
237// Stop stops the server.
238func (s *DockerServer) Stop() {
239 if s.listener != nil {
240 s.listener.Close()
241 }
242}
243
244// URL returns the HTTP URL of the server.
245func (s *DockerServer) URL() string {
246 if s.listener == nil {
247 return ""
248 }
249 return "http://" + s.listener.Addr().String() + "/"
250}
251
252// ServeHTTP handles HTTP requests sent to the server.
253func (s *DockerServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
254 s.handlerMutex.RLock()
255 defer s.handlerMutex.RUnlock()
256 for re, handler := range s.customHandlers {
257 if m, _ := regexp.MatchString(re, r.URL.Path); m {
258 handler.ServeHTTP(w, r)
259 return
260 }
261 }
262 s.mux.ServeHTTP(w, r)
263 if s.hook != nil {
264 s.hook(r)
265 }
266}
267
268// DefaultHandler returns default http.Handler mux, it allows customHandlers to
269// call the default behavior if wanted.
270func (s *DockerServer) DefaultHandler() http.Handler {
271 return s.mux
272}
273
274func (s *DockerServer) handlerWrapper(f func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request) {
275 return func(w http.ResponseWriter, r *http.Request) {
276 for errorID, urlRegexp := range s.failures {
277 matched, err := regexp.MatchString(urlRegexp, r.URL.Path)
278 if err != nil {
279 http.Error(w, err.Error(), http.StatusBadRequest)
280 return
281 }
282 if !matched {
283 continue
284 }
285 http.Error(w, errorID, http.StatusBadRequest)
286 return
287 }
288 for i, failure := range s.multiFailures {
289 matched, err := regexp.MatchString(failure["url"], r.URL.Path)
290 if err != nil {
291 http.Error(w, err.Error(), http.StatusBadRequest)
292 return
293 }
294 if !matched {
295 continue
296 }
297 http.Error(w, failure["error"], http.StatusBadRequest)
298 s.multiFailures = append(s.multiFailures[:i], s.multiFailures[i+1:]...)
299 return
300 }
301 f(w, r)
302 }
303}
304
305func (s *DockerServer) listContainers(w http.ResponseWriter, r *http.Request) {
306 all := r.URL.Query().Get("all")
307 s.cMut.RLock()
308 result := make([]docker.APIContainers, 0, len(s.containers))
309 for _, container := range s.containers {
310 if all == "1" || container.State.Running {
311 result = append(result, docker.APIContainers{
312 ID: container.ID,
313 Image: container.Image,
314 Command: fmt.Sprintf("%s %s", container.Path, strings.Join(container.Args, " ")),
315 Created: container.Created.Unix(),
316 Status: container.State.String(),
317 Ports: container.NetworkSettings.PortMappingAPI(),
318 Names: []string{fmt.Sprintf("/%s", container.Name)},
319 })
320 }
321 }
322 s.cMut.RUnlock()
323 w.Header().Set("Content-Type", "application/json")
324 w.WriteHeader(http.StatusOK)
325 json.NewEncoder(w).Encode(result)
326}
327
328func (s *DockerServer) listImages(w http.ResponseWriter, r *http.Request) {
329 s.cMut.RLock()
330 result := make([]docker.APIImages, len(s.images))
331 for i, image := range s.images {
332 result[i] = docker.APIImages{
333 ID: image.ID,
334 Created: image.Created.Unix(),
335 }
336 for tag, id := range s.imgIDs {
337 if id == image.ID {
338 result[i].RepoTags = append(result[i].RepoTags, tag)
339 }
340 }
341 }
342 s.cMut.RUnlock()
343 w.Header().Set("Content-Type", "application/json")
344 w.WriteHeader(http.StatusOK)
345 json.NewEncoder(w).Encode(result)
346}
347
348func (s *DockerServer) findImage(id string) (string, error) {
349 s.iMut.RLock()
350 defer s.iMut.RUnlock()
351 image, ok := s.imgIDs[id]
352 if ok {
353 return image, nil
354 }
355 image, _, err := s.findImageByID(id)
356 return image, err
357}
358
359func (s *DockerServer) findImageByID(id string) (string, int, error) {
360 s.iMut.RLock()
361 defer s.iMut.RUnlock()
362 for i, image := range s.images {
363 if image.ID == id {
364 return image.ID, i, nil
365 }
366 }
367 return "", -1, errors.New("No such image")
368}
369
370func (s *DockerServer) createContainer(w http.ResponseWriter, r *http.Request) {
371 var config struct {
372 *docker.Config
373 HostConfig *docker.HostConfig
374 }
375 defer r.Body.Close()
376 err := json.NewDecoder(r.Body).Decode(&config)
377 if err != nil {
378 http.Error(w, err.Error(), http.StatusBadRequest)
379 return
380 }
381 name := r.URL.Query().Get("name")
382 if name != "" && !nameRegexp.MatchString(name) {
383 http.Error(w, "Invalid container name", http.StatusInternalServerError)
384 return
385 }
386 if _, err := s.findImage(config.Image); err != nil {
387 http.Error(w, err.Error(), http.StatusNotFound)
388 return
389 }
390 ports := map[docker.Port][]docker.PortBinding{}
391 for port := range config.ExposedPorts {
392 ports[port] = []docker.PortBinding{{
393 HostIP: "0.0.0.0",
394 HostPort: strconv.Itoa(mathrand.Int() % 0xffff),
395 }}
396 }
397
398 //the container may not have cmd when using a Dockerfile
399 var path string
400 var args []string
401 if len(config.Cmd) == 1 {
402 path = config.Cmd[0]
403 } else if len(config.Cmd) > 1 {
404 path = config.Cmd[0]
405 args = config.Cmd[1:]
406 }
407
408 generatedID := s.generateID()
409 config.Config.Hostname = generatedID[:12]
410 container := docker.Container{
411 Name: name,
412 ID: generatedID,
413 Created: time.Now(),
414 Path: path,
415 Args: args,
416 Config: config.Config,
417 HostConfig: config.HostConfig,
418 State: docker.State{
419 Running: false,
420 Pid: mathrand.Int() % 50000,
421 ExitCode: 0,
422 StartedAt: time.Now(),
423 },
424 Image: config.Image,
425 NetworkSettings: &docker.NetworkSettings{
426 IPAddress: fmt.Sprintf("172.16.42.%d", mathrand.Int()%250+2),
427 IPPrefixLen: 24,
428 Gateway: "172.16.42.1",
429 Bridge: "docker0",
430 Ports: ports,
431 },
432 }
433 s.cMut.Lock()
434 if container.Name != "" {
435 for _, c := range s.containers {
436 if c.Name == container.Name {
437 defer s.cMut.Unlock()
438 http.Error(w, "there's already a container with this name", http.StatusConflict)
439 return
440 }
441 }
442 }
443 s.containers = append(s.containers, &container)
444 s.cMut.Unlock()
445 w.WriteHeader(http.StatusCreated)
446 s.notify(&container)
447
448 json.NewEncoder(w).Encode(container)
449}
450
451func (s *DockerServer) generateID() string {
452 var buf [16]byte
453 rand.Read(buf[:])
454 return fmt.Sprintf("%x", buf)
455}
456
457func (s *DockerServer) renameContainer(w http.ResponseWriter, r *http.Request) {
458 id := mux.Vars(r)["id"]
459 container, index, err := s.findContainer(id)
460 if err != nil {
461 http.Error(w, err.Error(), http.StatusNotFound)
462 return
463 }
464 copy := *container
465 copy.Name = r.URL.Query().Get("name")
466 s.cMut.Lock()
467 defer s.cMut.Unlock()
468 if s.containers[index].ID == copy.ID {
469 s.containers[index] = &copy
470 }
471 w.WriteHeader(http.StatusNoContent)
472}
473
474func (s *DockerServer) inspectContainer(w http.ResponseWriter, r *http.Request) {
475 id := mux.Vars(r)["id"]
476 container, _, err := s.findContainer(id)
477 if err != nil {
478 http.Error(w, err.Error(), http.StatusNotFound)
479 return
480 }
481 w.Header().Set("Content-Type", "application/json")
482 w.WriteHeader(http.StatusOK)
483 json.NewEncoder(w).Encode(container)
484}
485
486func (s *DockerServer) statsContainer(w http.ResponseWriter, r *http.Request) {
487 id := mux.Vars(r)["id"]
488 _, _, err := s.findContainer(id)
489 if err != nil {
490 http.Error(w, err.Error(), http.StatusNotFound)
491 return
492 }
493 stream, _ := strconv.ParseBool(r.URL.Query().Get("stream"))
494 callback := s.statsCallbacks[id]
495 w.Header().Set("Content-Type", "application/json")
496 w.WriteHeader(http.StatusOK)
497 encoder := json.NewEncoder(w)
498 for {
499 var stats docker.Stats
500 if callback != nil {
501 stats = callback(id)
502 }
503 encoder.Encode(stats)
504 if !stream {
505 break
506 }
507 }
508}
509
510func (s *DockerServer) uploadToContainer(w http.ResponseWriter, r *http.Request) {
511 id := mux.Vars(r)["id"]
512 container, _, err := s.findContainer(id)
513 if err != nil {
514 http.Error(w, err.Error(), http.StatusNotFound)
515 return
516 }
517 if !container.State.Running {
518 w.WriteHeader(http.StatusInternalServerError)
519 fmt.Fprintf(w, "Container %s is not running", id)
520 return
521 }
522 path := r.URL.Query().Get("path")
523 s.uploadedFiles[id] = path
524 w.WriteHeader(http.StatusOK)
525}
526
527func (s *DockerServer) topContainer(w http.ResponseWriter, r *http.Request) {
528 id := mux.Vars(r)["id"]
529 container, _, err := s.findContainer(id)
530 if err != nil {
531 http.Error(w, err.Error(), http.StatusNotFound)
532 return
533 }
534 if !container.State.Running {
535 w.WriteHeader(http.StatusInternalServerError)
536 fmt.Fprintf(w, "Container %s is not running", id)
537 return
538 }
539 w.Header().Set("Content-Type", "application/json")
540 w.WriteHeader(http.StatusOK)
541 result := docker.TopResult{
542 Titles: []string{"UID", "PID", "PPID", "C", "STIME", "TTY", "TIME", "CMD"},
543 Processes: [][]string{
544 {"root", "7535", "7516", "0", "03:20", "?", "00:00:00", container.Path + " " + strings.Join(container.Args, " ")},
545 },
546 }
547 json.NewEncoder(w).Encode(result)
548}
549
550func (s *DockerServer) startContainer(w http.ResponseWriter, r *http.Request) {
551 id := mux.Vars(r)["id"]
552 container, _, err := s.findContainer(id)
553 if err != nil {
554 http.Error(w, err.Error(), http.StatusNotFound)
555 return
556 }
557 s.cMut.Lock()
558 defer s.cMut.Unlock()
559 defer r.Body.Close()
560 var hostConfig docker.HostConfig
561 err = json.NewDecoder(r.Body).Decode(&hostConfig)
562 if err != nil {
563 http.Error(w, err.Error(), http.StatusInternalServerError)
564 return
565 }
566 container.HostConfig = &hostConfig
567 if len(hostConfig.PortBindings) > 0 {
568 ports := map[docker.Port][]docker.PortBinding{}
569 for key, items := range hostConfig.PortBindings {
570 bindings := make([]docker.PortBinding, len(items))
571 for i := range items {
572 binding := docker.PortBinding{
573 HostIP: items[i].HostIP,
574 HostPort: items[i].HostPort,
575 }
576 if binding.HostIP == "" {
577 binding.HostIP = "0.0.0.0"
578 }
579 if binding.HostPort == "" {
580 binding.HostPort = strconv.Itoa(mathrand.Int() % 0xffff)
581 }
582 bindings[i] = binding
583 }
584 ports[key] = bindings
585 }
586 container.NetworkSettings.Ports = ports
587 }
588 if container.State.Running {
589 http.Error(w, "", http.StatusNotModified)
590 return
591 }
592 container.State.Running = true
593 s.notify(container)
594}
595
596func (s *DockerServer) stopContainer(w http.ResponseWriter, r *http.Request) {
597 id := mux.Vars(r)["id"]
598 container, _, err := s.findContainer(id)
599 if err != nil {
600 http.Error(w, err.Error(), http.StatusNotFound)
601 return
602 }
603 s.cMut.Lock()
604 defer s.cMut.Unlock()
605 if !container.State.Running {
606 http.Error(w, "Container not running", http.StatusBadRequest)
607 return
608 }
609 w.WriteHeader(http.StatusNoContent)
610 container.State.Running = false
611 s.notify(container)
612}
613
614func (s *DockerServer) pauseContainer(w http.ResponseWriter, r *http.Request) {
615 id := mux.Vars(r)["id"]
616 container, _, err := s.findContainer(id)
617 if err != nil {
618 http.Error(w, err.Error(), http.StatusNotFound)
619 return
620 }
621 s.cMut.Lock()
622 defer s.cMut.Unlock()
623 if container.State.Paused {
624 http.Error(w, "Container already paused", http.StatusBadRequest)
625 return
626 }
627 w.WriteHeader(http.StatusNoContent)
628 container.State.Paused = true
629}
630
631func (s *DockerServer) unpauseContainer(w http.ResponseWriter, r *http.Request) {
632 id := mux.Vars(r)["id"]
633 container, _, err := s.findContainer(id)
634 if err != nil {
635 http.Error(w, err.Error(), http.StatusNotFound)
636 return
637 }
638 s.cMut.Lock()
639 defer s.cMut.Unlock()
640 if !container.State.Paused {
641 http.Error(w, "Container not paused", http.StatusBadRequest)
642 return
643 }
644 w.WriteHeader(http.StatusNoContent)
645 container.State.Paused = false
646}
647
648func (s *DockerServer) attachContainer(w http.ResponseWriter, r *http.Request) {
649 id := mux.Vars(r)["id"]
650 container, _, err := s.findContainer(id)
651 if err != nil {
652 http.Error(w, err.Error(), http.StatusNotFound)
653 return
654 }
655 hijacker, ok := w.(http.Hijacker)
656 if !ok {
657 http.Error(w, "cannot hijack connection", http.StatusInternalServerError)
658 return
659 }
660 w.Header().Set("Content-Type", "application/vnd.docker.raw-stream")
661 w.WriteHeader(http.StatusOK)
662 conn, _, err := hijacker.Hijack()
663 if err != nil {
664 http.Error(w, err.Error(), http.StatusInternalServerError)
665 return
666 }
667 wg := sync.WaitGroup{}
668 if r.URL.Query().Get("stdin") == "1" {
669 wg.Add(1)
670 go func() {
671 ioutil.ReadAll(conn)
672 wg.Done()
673 }()
674 }
675 outStream := stdcopy.NewStdWriter(conn, stdcopy.Stdout)
676 if container.State.Running {
677 fmt.Fprintf(outStream, "Container is running\n")
678 } else {
679 fmt.Fprintf(outStream, "Container is not running\n")
680 }
681 fmt.Fprintln(outStream, "What happened?")
682 fmt.Fprintln(outStream, "Something happened")
683 wg.Wait()
684 if r.URL.Query().Get("stream") == "1" {
685 for {
686 time.Sleep(1e6)
687 s.cMut.RLock()
688 if !container.State.Running {
689 s.cMut.RUnlock()
690 break
691 }
692 s.cMut.RUnlock()
693 }
694 }
695 conn.Close()
696}
697
698func (s *DockerServer) waitContainer(w http.ResponseWriter, r *http.Request) {
699 id := mux.Vars(r)["id"]
700 container, _, err := s.findContainer(id)
701 if err != nil {
702 http.Error(w, err.Error(), http.StatusNotFound)
703 return
704 }
705 for {
706 time.Sleep(1e6)
707 s.cMut.RLock()
708 if !container.State.Running {
709 s.cMut.RUnlock()
710 break
711 }
712 s.cMut.RUnlock()
713 }
714 result := map[string]int{"StatusCode": container.State.ExitCode}
715 json.NewEncoder(w).Encode(result)
716}
717
718func (s *DockerServer) removeContainer(w http.ResponseWriter, r *http.Request) {
719 id := mux.Vars(r)["id"]
720 force := r.URL.Query().Get("force")
721 s.cMut.Lock()
722 defer s.cMut.Unlock()
723 container, index, err := s.findContainerWithLock(id, false)
724 if err != nil {
725 http.Error(w, err.Error(), http.StatusNotFound)
726 return
727 }
728 if container.State.Running && force != "1" {
729 msg := "Error: API error (406): Impossible to remove a running container, please stop it first"
730 http.Error(w, msg, http.StatusInternalServerError)
731 return
732 }
733 w.WriteHeader(http.StatusNoContent)
734 s.containers[index] = s.containers[len(s.containers)-1]
735 s.containers = s.containers[:len(s.containers)-1]
736}
737
738func (s *DockerServer) commitContainer(w http.ResponseWriter, r *http.Request) {
739 id := r.URL.Query().Get("container")
740 container, _, err := s.findContainer(id)
741 if err != nil {
742 http.Error(w, err.Error(), http.StatusNotFound)
743 return
744 }
745 config := new(docker.Config)
746 runConfig := r.URL.Query().Get("run")
747 if runConfig != "" {
748 err = json.Unmarshal([]byte(runConfig), config)
749 if err != nil {
750 http.Error(w, err.Error(), http.StatusBadRequest)
751 return
752 }
753 }
754 w.WriteHeader(http.StatusOK)
755 image := docker.Image{
756 ID: "img-" + container.ID,
757 Parent: container.Image,
758 Container: container.ID,
759 Comment: r.URL.Query().Get("m"),
760 Author: r.URL.Query().Get("author"),
761 Config: config,
762 }
763 repository := r.URL.Query().Get("repo")
764 tag := r.URL.Query().Get("tag")
765 s.iMut.Lock()
766 s.images = append(s.images, image)
767 if repository != "" {
768 if tag != "" {
769 repository += ":" + tag
770 }
771 s.imgIDs[repository] = image.ID
772 }
773 s.iMut.Unlock()
774 fmt.Fprintf(w, `{"ID":%q}`, image.ID)
775}
776
777func (s *DockerServer) findContainer(idOrName string) (*docker.Container, int, error) {
778 return s.findContainerWithLock(idOrName, true)
779}
780
781func (s *DockerServer) findContainerWithLock(idOrName string, shouldLock bool) (*docker.Container, int, error) {
782 if shouldLock {
783 s.cMut.RLock()
784 defer s.cMut.RUnlock()
785 }
786 for i, container := range s.containers {
787 if container.ID == idOrName || container.Name == idOrName {
788 return container, i, nil
789 }
790 }
791 return nil, -1, errors.New("No such container")
792}
793
794func (s *DockerServer) buildImage(w http.ResponseWriter, r *http.Request) {
795 if ct := r.Header.Get("Content-Type"); ct == "application/tar" {
796 gotDockerFile := false
797 tr := tar.NewReader(r.Body)
798 for {
799 header, err := tr.Next()
800 if err != nil {
801 break
802 }
803 if header.Name == "Dockerfile" {
804 gotDockerFile = true
805 }
806 }
807 if !gotDockerFile {
808 w.WriteHeader(http.StatusBadRequest)
809 w.Write([]byte("miss Dockerfile"))
810 return
811 }
812 }
813 //we did not use that Dockerfile to build image cause we are a fake Docker daemon
814 image := docker.Image{
815 ID: s.generateID(),
816 Created: time.Now(),
817 }
818
819 query := r.URL.Query()
820 repository := image.ID
821 if t := query.Get("t"); t != "" {
822 repository = t
823 }
824 s.iMut.Lock()
825 s.images = append(s.images, image)
826 s.imgIDs[repository] = image.ID
827 s.iMut.Unlock()
828 w.Write([]byte(fmt.Sprintf("Successfully built %s", image.ID)))
829}
830
831func (s *DockerServer) pullImage(w http.ResponseWriter, r *http.Request) {
832 fromImageName := r.URL.Query().Get("fromImage")
833 tag := r.URL.Query().Get("tag")
834 image := docker.Image{
835 ID: s.generateID(),
836 Config: &docker.Config{},
837 }
838 s.iMut.Lock()
839 s.images = append(s.images, image)
840 if fromImageName != "" {
841 if tag != "" {
842 fromImageName = fmt.Sprintf("%s:%s", fromImageName, tag)
843 }
844 s.imgIDs[fromImageName] = image.ID
845 }
846 s.iMut.Unlock()
847}
848
849func (s *DockerServer) pushImage(w http.ResponseWriter, r *http.Request) {
850 name := mux.Vars(r)["name"]
851 tag := r.URL.Query().Get("tag")
852 if tag != "" {
853 name += ":" + tag
854 }
855 s.iMut.RLock()
856 if _, ok := s.imgIDs[name]; !ok {
857 s.iMut.RUnlock()
858 http.Error(w, "No such image", http.StatusNotFound)
859 return
860 }
861 s.iMut.RUnlock()
862 fmt.Fprintln(w, "Pushing...")
863 fmt.Fprintln(w, "Pushed")
864}
865
866func (s *DockerServer) tagImage(w http.ResponseWriter, r *http.Request) {
867 name := mux.Vars(r)["name"]
868 s.iMut.RLock()
869 if _, ok := s.imgIDs[name]; !ok {
870 s.iMut.RUnlock()
871 http.Error(w, "No such image", http.StatusNotFound)
872 return
873 }
874 s.iMut.RUnlock()
875 s.iMut.Lock()
876 defer s.iMut.Unlock()
877 newRepo := r.URL.Query().Get("repo")
878 newTag := r.URL.Query().Get("tag")
879 if newTag != "" {
880 newRepo += ":" + newTag
881 }
882 s.imgIDs[newRepo] = s.imgIDs[name]
883 w.WriteHeader(http.StatusCreated)
884}
885
886func (s *DockerServer) removeImage(w http.ResponseWriter, r *http.Request) {
887 id := mux.Vars(r)["id"]
888 s.iMut.RLock()
889 var tag string
890 if img, ok := s.imgIDs[id]; ok {
891 id, tag = img, id
892 }
893 var tags []string
894 for tag, taggedID := range s.imgIDs {
895 if taggedID == id {
896 tags = append(tags, tag)
897 }
898 }
899 s.iMut.RUnlock()
900 _, index, err := s.findImageByID(id)
901 if err != nil {
902 http.Error(w, err.Error(), http.StatusNotFound)
903 return
904 }
905 w.WriteHeader(http.StatusNoContent)
906 s.iMut.Lock()
907 defer s.iMut.Unlock()
908 if len(tags) < 2 {
909 s.images[index] = s.images[len(s.images)-1]
910 s.images = s.images[:len(s.images)-1]
911 }
912 if tag != "" {
913 delete(s.imgIDs, tag)
914 }
915}
916
917func (s *DockerServer) inspectImage(w http.ResponseWriter, r *http.Request) {
918 name := mux.Vars(r)["name"]
919 s.iMut.RLock()
920 defer s.iMut.RUnlock()
921 if id, ok := s.imgIDs[name]; ok {
922 for _, img := range s.images {
923 if img.ID == id {
924 w.Header().Set("Content-Type", "application/json")
925 w.WriteHeader(http.StatusOK)
926 json.NewEncoder(w).Encode(img)
927 return
928 }
929 }
930 }
931 http.Error(w, "not found", http.StatusNotFound)
932}
933
934func (s *DockerServer) listEvents(w http.ResponseWriter, r *http.Request) {
935 w.Header().Set("Content-Type", "application/json")
936 var events [][]byte
937 count := mathrand.Intn(20)
938 for i := 0; i < count; i++ {
939 data, err := json.Marshal(s.generateEvent())
940 if err != nil {
941 w.WriteHeader(http.StatusInternalServerError)
942 return
943 }
944 events = append(events, data)
945 }
946 w.WriteHeader(http.StatusOK)
947 for _, d := range events {
948 fmt.Fprintln(w, d)
949 time.Sleep(time.Duration(mathrand.Intn(200)) * time.Millisecond)
950 }
951}
952
953func (s *DockerServer) pingDocker(w http.ResponseWriter, r *http.Request) {
954 w.WriteHeader(http.StatusOK)
955}
956
957func (s *DockerServer) generateEvent() *docker.APIEvents {
958 var eventType string
959 switch mathrand.Intn(4) {
960 case 0:
961 eventType = "create"
962 case 1:
963 eventType = "start"
964 case 2:
965 eventType = "stop"
966 case 3:
967 eventType = "destroy"
968 }
969 return &docker.APIEvents{
970 ID: s.generateID(),
971 Status: eventType,
972 From: "mybase:latest",
973 Time: time.Now().Unix(),
974 }
975}
976
977func (s *DockerServer) loadImage(w http.ResponseWriter, r *http.Request) {
978 w.WriteHeader(http.StatusOK)
979}
980
981func (s *DockerServer) getImage(w http.ResponseWriter, r *http.Request) {
982 w.WriteHeader(http.StatusOK)
983 w.Header().Set("Content-Type", "application/tar")
984}
985
986func (s *DockerServer) createExecContainer(w http.ResponseWriter, r *http.Request) {
987 id := mux.Vars(r)["id"]
988 container, _, err := s.findContainer(id)
989 if err != nil {
990 http.Error(w, err.Error(), http.StatusNotFound)
991 return
992 }
993
994 execID := s.generateID()
995 container.ExecIDs = append(container.ExecIDs, execID)
996
997 exec := docker.ExecInspect{
998 ID: execID,
999 Container: *container,
1000 }
1001
1002 var params docker.CreateExecOptions
1003 err = json.NewDecoder(r.Body).Decode(&params)
1004 if err != nil {
1005 http.Error(w, err.Error(), http.StatusInternalServerError)
1006 return
1007 }
1008 if len(params.Cmd) > 0 {
1009 exec.ProcessConfig.EntryPoint = params.Cmd[0]
1010 if len(params.Cmd) > 1 {
1011 exec.ProcessConfig.Arguments = params.Cmd[1:]
1012 }
1013 }
1014
1015 exec.ProcessConfig.User = params.User
1016 exec.ProcessConfig.Tty = params.Tty
1017
1018 s.execMut.Lock()
1019 s.execs = append(s.execs, &exec)
1020 s.execMut.Unlock()
1021 w.WriteHeader(http.StatusOK)
1022 w.Header().Set("Content-Type", "application/json")
1023 json.NewEncoder(w).Encode(map[string]string{"Id": exec.ID})
1024}
1025
1026func (s *DockerServer) startExecContainer(w http.ResponseWriter, r *http.Request) {
1027 id := mux.Vars(r)["id"]
1028 if exec, err := s.getExec(id, false); err == nil {
1029 s.execMut.Lock()
1030 exec.Running = true
1031 s.execMut.Unlock()
1032 if callback, ok := s.execCallbacks[id]; ok {
1033 callback()
1034 delete(s.execCallbacks, id)
1035 } else if callback, ok := s.execCallbacks["*"]; ok {
1036 callback()
1037 delete(s.execCallbacks, "*")
1038 }
1039 s.execMut.Lock()
1040 exec.Running = false
1041 s.execMut.Unlock()
1042 w.WriteHeader(http.StatusOK)
1043 return
1044 }
1045 w.WriteHeader(http.StatusNotFound)
1046}
1047
1048func (s *DockerServer) resizeExecContainer(w http.ResponseWriter, r *http.Request) {
1049 id := mux.Vars(r)["id"]
1050 if _, err := s.getExec(id, false); err == nil {
1051 w.WriteHeader(http.StatusOK)
1052 return
1053 }
1054 w.WriteHeader(http.StatusNotFound)
1055}
1056
1057func (s *DockerServer) inspectExecContainer(w http.ResponseWriter, r *http.Request) {
1058 id := mux.Vars(r)["id"]
1059 if exec, err := s.getExec(id, true); err == nil {
1060 w.WriteHeader(http.StatusOK)
1061 w.Header().Set("Content-Type", "application/json")
1062 json.NewEncoder(w).Encode(exec)
1063 return
1064 }
1065 w.WriteHeader(http.StatusNotFound)
1066}
1067
1068func (s *DockerServer) getExec(id string, copy bool) (*docker.ExecInspect, error) {
1069 s.execMut.RLock()
1070 defer s.execMut.RUnlock()
1071 for _, exec := range s.execs {
1072 if exec.ID == id {
1073 if copy {
1074 cp := *exec
1075 exec = &cp
1076 }
1077 return exec, nil
1078 }
1079 }
1080 return nil, errors.New("exec not found")
1081}
1082
1083func (s *DockerServer) findNetwork(idOrName string) (*docker.Network, int, error) {
1084 s.netMut.RLock()
1085 defer s.netMut.RUnlock()
1086 for i, network := range s.networks {
1087 if network.ID == idOrName || network.Name == idOrName {
1088 return network, i, nil
1089 }
1090 }
1091 return nil, -1, errors.New("No such network")
1092}
1093
1094func (s *DockerServer) listNetworks(w http.ResponseWriter, r *http.Request) {
1095 s.netMut.RLock()
1096 result := make([]docker.Network, 0, len(s.networks))
1097 for _, network := range s.networks {
1098 result = append(result, *network)
1099 }
1100 s.netMut.RUnlock()
1101 w.Header().Set("Content-Type", "application/json")
1102 w.WriteHeader(http.StatusOK)
1103 json.NewEncoder(w).Encode(result)
1104}
1105
1106func (s *DockerServer) networkInfo(w http.ResponseWriter, r *http.Request) {
1107 id := mux.Vars(r)["id"]
1108 network, _, err := s.findNetwork(id)
1109 if err != nil {
1110 http.Error(w, err.Error(), http.StatusNotFound)
1111 return
1112 }
1113 w.Header().Set("Content-Type", "application/json")
1114 w.WriteHeader(http.StatusOK)
1115 json.NewEncoder(w).Encode(network)
1116}
1117
1118// isValidName validates configuration objects supported by libnetwork
1119func isValidName(name string) bool {
1120 if name == "" || strings.Contains(name, ".") {
1121 return false
1122 }
1123 return true
1124}
1125
1126func (s *DockerServer) createNetwork(w http.ResponseWriter, r *http.Request) {
1127 var config *docker.CreateNetworkOptions
1128 defer r.Body.Close()
1129 err := json.NewDecoder(r.Body).Decode(&config)
1130 if err != nil {
1131 http.Error(w, err.Error(), http.StatusBadRequest)
1132 return
1133 }
1134 if !isValidName(config.Name) {
1135 http.Error(w, "Invalid network name", http.StatusBadRequest)
1136 return
1137 }
1138 if n, _, _ := s.findNetwork(config.Name); n != nil {
1139 http.Error(w, "network already exists", http.StatusForbidden)
1140 return
1141 }
1142
1143 generatedID := s.generateID()
1144 network := docker.Network{
1145 Name: config.Name,
1146 ID: generatedID,
1147 Driver: config.Driver,
1148 }
1149 s.netMut.Lock()
1150 s.networks = append(s.networks, &network)
1151 s.netMut.Unlock()
1152 w.WriteHeader(http.StatusCreated)
1153 var c = struct{ ID string }{ID: network.ID}
1154 json.NewEncoder(w).Encode(c)
1155}
1156
1157func (s *DockerServer) listVolumes(w http.ResponseWriter, r *http.Request) {
1158 s.volMut.RLock()
1159 result := make([]docker.Volume, 0, len(s.volStore))
1160 for _, volumeCounter := range s.volStore {
1161 result = append(result, volumeCounter.volume)
1162 }
1163 s.volMut.RUnlock()
1164 w.Header().Set("Content-Type", "application/json")
1165 w.WriteHeader(http.StatusOK)
1166 json.NewEncoder(w).Encode(result)
1167}
1168
1169func (s *DockerServer) createVolume(w http.ResponseWriter, r *http.Request) {
1170 var data struct {
1171 *docker.CreateVolumeOptions
1172 }
1173 defer r.Body.Close()
1174 err := json.NewDecoder(r.Body).Decode(&data)
1175 if err != nil {
1176 http.Error(w, err.Error(), http.StatusBadRequest)
1177 return
1178 }
1179 volume := &docker.Volume{
1180 Name: data.CreateVolumeOptions.Name,
1181 Driver: data.CreateVolumeOptions.Driver,
1182 }
1183 // If the name is not specified, generate one. Just using generateID for now
1184 if len(volume.Name) == 0 {
1185 volume.Name = s.generateID()
1186 }
1187 // If driver is not specified, use local
1188 if len(volume.Driver) == 0 {
1189 volume.Driver = "local"
1190 }
1191 // Mount point is a default one with name
1192 volume.Mountpoint = "/var/lib/docker/volumes/" + volume.Name
1193
1194 // If the volume already exists, don't re-add it.
1195 exists := false
1196 s.volMut.Lock()
1197 if s.volStore != nil {
1198 _, exists = s.volStore[volume.Name]
1199 } else {
1200 // No volumes, create volStore
1201 s.volStore = make(map[string]*volumeCounter)
1202 }
1203 if !exists {
1204 s.volStore[volume.Name] = &volumeCounter{
1205 volume: *volume,
1206 count: 0,
1207 }
1208 }
1209 s.volMut.Unlock()
1210 w.WriteHeader(http.StatusCreated)
1211 json.NewEncoder(w).Encode(volume)
1212}
1213
1214func (s *DockerServer) inspectVolume(w http.ResponseWriter, r *http.Request) {
1215 s.volMut.RLock()
1216 defer s.volMut.RUnlock()
1217 name := mux.Vars(r)["name"]
1218 vol, err := s.findVolume(name)
1219 if err != nil {
1220 http.Error(w, err.Error(), http.StatusNotFound)
1221 return
1222 }
1223 w.Header().Set("Content-Type", "application/json")
1224 w.WriteHeader(http.StatusOK)
1225 json.NewEncoder(w).Encode(vol.volume)
1226}
1227
1228func (s *DockerServer) findVolume(name string) (*volumeCounter, error) {
1229 vol, ok := s.volStore[name]
1230 if !ok {
1231 return nil, errors.New("no such volume")
1232 }
1233 return vol, nil
1234}
1235
1236func (s *DockerServer) removeVolume(w http.ResponseWriter, r *http.Request) {
1237 s.volMut.Lock()
1238 defer s.volMut.Unlock()
1239 name := mux.Vars(r)["name"]
1240 vol, err := s.findVolume(name)
1241 if err != nil {
1242 http.Error(w, err.Error(), http.StatusNotFound)
1243 return
1244 }
1245 if vol.count != 0 {
1246 http.Error(w, "volume in use and cannot be removed", http.StatusConflict)
1247 return
1248 }
1249 s.volStore[vol.volume.Name] = nil
1250 w.WriteHeader(http.StatusNoContent)
1251}
1252
1253func (s *DockerServer) infoDocker(w http.ResponseWriter, r *http.Request) {
1254 s.cMut.RLock()
1255 defer s.cMut.RUnlock()
1256 s.iMut.RLock()
1257 defer s.iMut.RUnlock()
1258 var running, stopped, paused int
1259 for _, c := range s.containers {
1260 if c.State.Running {
1261 running++
1262 } else {
1263 stopped++
1264 }
1265 if c.State.Paused {
1266 paused++
1267 }
1268 }
1269 envs := map[string]interface{}{
1270 "ID": "AAAA:XXXX:0000:BBBB:AAAA:XXXX:0000:BBBB:AAAA:XXXX:0000:BBBB",
1271 "Containers": len(s.containers),
1272 "ContainersRunning": running,
1273 "ContainersPaused": paused,
1274 "ContainersStopped": stopped,
1275 "Images": len(s.images),
1276 "Driver": "aufs",
1277 "DriverStatus": [][]string{},
1278 "SystemStatus": nil,
1279 "Plugins": map[string]interface{}{
1280 "Volume": []string{
1281 "local",
1282 },
1283 "Network": []string{
1284 "bridge",
1285 "null",
1286 "host",
1287 },
1288 "Authorization": nil,
1289 },
1290 "MemoryLimit": true,
1291 "SwapLimit": false,
1292 "CpuCfsPeriod": true,
1293 "CpuCfsQuota": true,
1294 "CPUShares": true,
1295 "CPUSet": true,
1296 "IPv4Forwarding": true,
1297 "BridgeNfIptables": true,
1298 "BridgeNfIp6tables": true,
1299 "Debug": false,
1300 "NFd": 79,
1301 "OomKillDisable": true,
1302 "NGoroutines": 101,
1303 "SystemTime": "2016-02-25T18:13:10.25870078Z",
1304 "ExecutionDriver": "native-0.2",
1305 "LoggingDriver": "json-file",
1306 "NEventsListener": 0,
1307 "KernelVersion": "3.13.0-77-generic",
1308 "OperatingSystem": "Ubuntu 14.04.3 LTS",
1309 "OSType": "linux",
1310 "Architecture": "x86_64",
1311 "IndexServerAddress": "https://index.docker.io/v1/",
1312 "RegistryConfig": map[string]interface{}{
1313 "InsecureRegistryCIDRs": []string{},
1314 "IndexConfigs": map[string]interface{}{},
1315 "Mirrors": nil,
1316 },
1317 "InitSha1": "e2042dbb0fcf49bb9da199186d9a5063cda92a01",
1318 "InitPath": "/usr/lib/docker/dockerinit",
1319 "NCPU": 1,
1320 "MemTotal": 2099204096,
1321 "DockerRootDir": "/var/lib/docker",
1322 "HttpProxy": "",
1323 "HttpsProxy": "",
1324 "NoProxy": "",
1325 "Name": "vagrant-ubuntu-trusty-64",
1326 "Labels": nil,
1327 "ExperimentalBuild": false,
1328 "ServerVersion": "1.10.1",
1329 "ClusterStore": "",
1330 "ClusterAdvertise": "",
1331 }
1332 w.WriteHeader(http.StatusOK)
1333 json.NewEncoder(w).Encode(envs)
1334}
diff --git a/vendor/github.com/fsouza/go-dockerclient/tls.go b/vendor/github.com/fsouza/go-dockerclient/tls.go
deleted file mode 100644
index bb5790b..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/tls.go
+++ /dev/null
@@ -1,118 +0,0 @@
1// Copyright 2014 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4//
5// The content is borrowed from Docker's own source code to provide a simple
6// tls based dialer
7
8package docker
9
10import (
11 "crypto/tls"
12 "errors"
13 "net"
14 "strings"
15 "time"
16)
17
18type tlsClientCon struct {
19 *tls.Conn
20 rawConn net.Conn
21}
22
23func (c *tlsClientCon) CloseWrite() error {
24 // Go standard tls.Conn doesn't provide the CloseWrite() method so we do it
25 // on its underlying connection.
26 if cwc, ok := c.rawConn.(interface {
27 CloseWrite() error
28 }); ok {
29 return cwc.CloseWrite()
30 }
31 return nil
32}
33
34func tlsDialWithDialer(dialer *net.Dialer, network, addr string, config *tls.Config) (net.Conn, error) {
35 // We want the Timeout and Deadline values from dialer to cover the
36 // whole process: TCP connection and TLS handshake. This means that we
37 // also need to start our own timers now.
38 timeout := dialer.Timeout
39
40 if !dialer.Deadline.IsZero() {
41 deadlineTimeout := dialer.Deadline.Sub(time.Now())
42 if timeout == 0 || deadlineTimeout < timeout {
43 timeout = deadlineTimeout
44 }
45 }
46
47 var errChannel chan error
48
49 if timeout != 0 {
50 errChannel = make(chan error, 2)
51 time.AfterFunc(timeout, func() {
52 errChannel <- errors.New("")
53 })
54 }
55
56 rawConn, err := dialer.Dial(network, addr)
57 if err != nil {
58 return nil, err
59 }
60
61 colonPos := strings.LastIndex(addr, ":")
62 if colonPos == -1 {
63 colonPos = len(addr)
64 }
65 hostname := addr[:colonPos]
66
67 // If no ServerName is set, infer the ServerName
68 // from the hostname we're connecting to.
69 if config.ServerName == "" {
70 // Make a copy to avoid polluting argument or default.
71 config = copyTLSConfig(config)
72 config.ServerName = hostname
73 }
74
75 conn := tls.Client(rawConn, config)
76
77 if timeout == 0 {
78 err = conn.Handshake()
79 } else {
80 go func() {
81 errChannel <- conn.Handshake()
82 }()
83
84 err = <-errChannel
85 }
86
87 if err != nil {
88 rawConn.Close()
89 return nil, err
90 }
91
92 // This is Docker difference with standard's crypto/tls package: returned a
93 // wrapper which holds both the TLS and raw connections.
94 return &tlsClientCon{conn, rawConn}, nil
95}
96
97// this exists to silent an error message in go vet
98func copyTLSConfig(cfg *tls.Config) *tls.Config {
99 return &tls.Config{
100 Certificates: cfg.Certificates,
101 CipherSuites: cfg.CipherSuites,
102 ClientAuth: cfg.ClientAuth,
103 ClientCAs: cfg.ClientCAs,
104 ClientSessionCache: cfg.ClientSessionCache,
105 CurvePreferences: cfg.CurvePreferences,
106 InsecureSkipVerify: cfg.InsecureSkipVerify,
107 MaxVersion: cfg.MaxVersion,
108 MinVersion: cfg.MinVersion,
109 NameToCertificate: cfg.NameToCertificate,
110 NextProtos: cfg.NextProtos,
111 PreferServerCipherSuites: cfg.PreferServerCipherSuites,
112 Rand: cfg.Rand,
113 RootCAs: cfg.RootCAs,
114 ServerName: cfg.ServerName,
115 SessionTicketKey: cfg.SessionTicketKey,
116 SessionTicketsDisabled: cfg.SessionTicketsDisabled,
117 }
118}
diff --git a/vendor/github.com/fsouza/go-dockerclient/travis-scripts/install.bash b/vendor/github.com/fsouza/go-dockerclient/travis-scripts/install.bash
deleted file mode 100755
index 9d1708f..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/travis-scripts/install.bash
+++ /dev/null
@@ -1,17 +0,0 @@
1#!/bin/bash -x
2
3# Copyright 2016 go-dockerclient authors. All rights reserved.
4# Use of this source code is governed by a BSD-style
5# license that can be found in the LICENSE file.
6
7if [[ $TRAVIS_OS_NAME == "linux" ]]; then
8 sudo stop docker || true
9 sudo rm -rf /var/lib/docker
10 sudo rm -f `which docker`
11
12 set -e
13 sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
14 echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
15 sudo apt-get update
16 sudo apt-get install docker-engine=${DOCKER_VERSION}-0~$(lsb_release -cs) -y --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
17fi
diff --git a/vendor/github.com/fsouza/go-dockerclient/travis-scripts/run-tests.bash b/vendor/github.com/fsouza/go-dockerclient/travis-scripts/run-tests.bash
deleted file mode 100755
index 0d836cd..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/travis-scripts/run-tests.bash
+++ /dev/null
@@ -1,15 +0,0 @@
1#!/bin/bash -ex
2
3# Copyright 2016 go-dockerclient authors. All rights reserved.
4# Use of this source code is governed by a BSD-style
5# license that can be found in the LICENSE file.
6
7if ! [[ $TRAVIS_GO_VERSION =~ ^1\.[34] ]]; then
8 make lint vet
9fi
10
11make fmtcheck gotest GO_TEST_FLAGS=-race
12
13if [[ $TRAVIS_OS_NAME == "linux" ]]; then
14 DOCKER_HOST=tcp://127.0.0.1:2375 make integration
15fi
diff --git a/vendor/github.com/fsouza/go-dockerclient/volume.go b/vendor/github.com/fsouza/go-dockerclient/volume.go
deleted file mode 100644
index 5fe8ee3..0000000
--- a/vendor/github.com/fsouza/go-dockerclient/volume.go
+++ /dev/null
@@ -1,128 +0,0 @@
1// Copyright 2015 go-dockerclient authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package docker
6
7import (
8 "encoding/json"
9 "errors"
10 "net/http"
11)
12
13var (
14 // ErrNoSuchVolume is the error returned when the volume does not exist.
15 ErrNoSuchVolume = errors.New("no such volume")
16
17 // ErrVolumeInUse is the error returned when the volume requested to be removed is still in use.
18 ErrVolumeInUse = errors.New("volume in use and cannot be removed")
19)
20
21// Volume represents a volume.
22//
23// See https://goo.gl/FZA4BK for more details.
24type Volume struct {
25 Name string `json:"Name" yaml:"Name"`
26 Driver string `json:"Driver,omitempty" yaml:"Driver,omitempty"`
27 Mountpoint string `json:"Mountpoint,omitempty" yaml:"Mountpoint,omitempty"`
28 Labels map[string]string `json:"Labels,omitempty" yaml:"Labels,omitempty"`
29}
30
31// ListVolumesOptions specify parameters to the ListVolumes function.
32//
33// See https://goo.gl/FZA4BK for more details.
34type ListVolumesOptions struct {
35 Filters map[string][]string
36}
37
38// ListVolumes returns a list of available volumes in the server.
39//
40// See https://goo.gl/FZA4BK for more details.
41func (c *Client) ListVolumes(opts ListVolumesOptions) ([]Volume, error) {
42 resp, err := c.do("GET", "/volumes?"+queryString(opts), doOptions{})
43 if err != nil {
44 return nil, err
45 }
46 defer resp.Body.Close()
47 m := make(map[string]interface{})
48 if err := json.NewDecoder(resp.Body).Decode(&m); err != nil {
49 return nil, err
50 }
51 var volumes []Volume
52 volumesJSON, ok := m["Volumes"]
53 if !ok {
54 return volumes, nil
55 }
56 data, err := json.Marshal(volumesJSON)
57 if err != nil {
58 return nil, err
59 }
60 if err := json.Unmarshal(data, &volumes); err != nil {
61 return nil, err
62 }
63 return volumes, nil
64}
65
66// CreateVolumeOptions specify parameters to the CreateVolume function.
67//
68// See https://goo.gl/pBUbZ9 for more details.
69type CreateVolumeOptions struct {
70 Name string
71 Driver string
72 DriverOpts map[string]string
73}
74
75// CreateVolume creates a volume on the server.
76//
77// See https://goo.gl/pBUbZ9 for more details.
78func (c *Client) CreateVolume(opts CreateVolumeOptions) (*Volume, error) {
79 resp, err := c.do("POST", "/volumes/create", doOptions{data: opts})
80 if err != nil {
81 return nil, err
82 }
83 defer resp.Body.Close()
84 var volume Volume
85 if err := json.NewDecoder(resp.Body).Decode(&volume); err != nil {
86 return nil, err
87 }
88 return &volume, nil
89}
90
91// InspectVolume returns a volume by its name.
92//
93// See https://goo.gl/0g9A6i for more details.
94func (c *Client) InspectVolume(name string) (*Volume, error) {
95 resp, err := c.do("GET", "/volumes/"+name, doOptions{})
96 if err != nil {
97 if e, ok := err.(*Error); ok && e.Status == http.StatusNotFound {
98 return nil, ErrNoSuchVolume
99 }
100 return nil, err
101 }
102 defer resp.Body.Close()
103 var volume Volume
104 if err := json.NewDecoder(resp.Body).Decode(&volume); err != nil {
105 return nil, err
106 }
107 return &volume, nil
108}
109
110// RemoveVolume removes a volume by its name.
111//
112// See https://goo.gl/79GNQz for more details.
113func (c *Client) RemoveVolume(name string) error {
114 resp, err := c.do("DELETE", "/volumes/"+name, doOptions{})
115 if err != nil {
116 if e, ok := err.(*Error); ok {
117 if e.Status == http.StatusNotFound {
118 return ErrNoSuchVolume
119 }
120 if e.Status == http.StatusConflict {
121 return ErrVolumeInUse
122 }
123 }
124 return nil
125 }
126 defer resp.Body.Close()
127 return nil
128}
diff --git a/vendor/github.com/go-ini/ini/.gitignore b/vendor/github.com/go-ini/ini/.gitignore
new file mode 100644
index 0000000..c5203bf
--- /dev/null
+++ b/vendor/github.com/go-ini/ini/.gitignore
@@ -0,0 +1,5 @@
1testdata/conf_out.ini
2ini.sublime-project
3ini.sublime-workspace
4testdata/conf_reflect.ini
5.idea
diff --git a/vendor/github.com/go-ini/ini/.travis.yml b/vendor/github.com/go-ini/ini/.travis.yml
new file mode 100644
index 0000000..0064ba1
--- /dev/null
+++ b/vendor/github.com/go-ini/ini/.travis.yml
@@ -0,0 +1,16 @@
1sudo: false
2language: go
3
4go:
5 - 1.4
6 - 1.5
7 - 1.6
8 - tip
9
10script:
11 - go get -v github.com/smartystreets/goconvey
12 - go test -v -cover -race
13
14notifications:
15 email:
16 - u@gogs.io
diff --git a/vendor/github.com/hashicorp/go-getter/.travis.yml b/vendor/github.com/hashicorp/go-getter/.travis.yml
new file mode 100644
index 0000000..4438286
--- /dev/null
+++ b/vendor/github.com/hashicorp/go-getter/.travis.yml
@@ -0,0 +1,17 @@
1sudo: false
2
3addons:
4 apt:
5 sources:
6 - sourceline: 'ppa:git-core/ppa'
7 packages:
8 - git
9
10language: go
11
12go:
13 - 1.5
14
15branches:
16 only:
17 - master
diff --git a/vendor/github.com/hashicorp/go-plugin/.gitignore b/vendor/github.com/hashicorp/go-plugin/.gitignore
new file mode 100644
index 0000000..e43b0f9
--- /dev/null
+++ b/vendor/github.com/hashicorp/go-plugin/.gitignore
@@ -0,0 +1 @@
.DS_Store
diff --git a/vendor/github.com/hashicorp/go-version/.travis.yml b/vendor/github.com/hashicorp/go-version/.travis.yml
new file mode 100644
index 0000000..9f30eec
--- /dev/null
+++ b/vendor/github.com/hashicorp/go-version/.travis.yml
@@ -0,0 +1,11 @@
1language: go
2
3go:
4 - 1.0
5 - 1.1
6 - 1.2
7 - 1.3
8 - 1.4
9
10script:
11 - go test
diff --git a/vendor/github.com/hashicorp/hcl/.gitignore b/vendor/github.com/hashicorp/hcl/.gitignore
new file mode 100644
index 0000000..15586a2
--- /dev/null
+++ b/vendor/github.com/hashicorp/hcl/.gitignore
@@ -0,0 +1,9 @@
1y.output
2
3# ignore intellij files
4.idea
5*.iml
6*.ipr
7*.iws
8
9*.test
diff --git a/vendor/github.com/hashicorp/hcl/.travis.yml b/vendor/github.com/hashicorp/hcl/.travis.yml
new file mode 100644
index 0000000..3f83d90
--- /dev/null
+++ b/vendor/github.com/hashicorp/hcl/.travis.yml
@@ -0,0 +1,12 @@
1sudo: false
2
3language: go
4
5go:
6 - 1.8
7
8branches:
9 only:
10 - master
11
12script: make test
diff --git a/vendor/github.com/hashicorp/hil/.gitignore b/vendor/github.com/hashicorp/hil/.gitignore
new file mode 100644
index 0000000..9d6e5df
--- /dev/null
+++ b/vendor/github.com/hashicorp/hil/.gitignore
@@ -0,0 +1,3 @@
1.DS_Store
2.idea
3*.iml
diff --git a/vendor/github.com/hashicorp/hil/.travis.yml b/vendor/github.com/hashicorp/hil/.travis.yml
new file mode 100644
index 0000000..a785444
--- /dev/null
+++ b/vendor/github.com/hashicorp/hil/.travis.yml
@@ -0,0 +1,3 @@
1sudo: false
2language: go
3go: 1.7
diff --git a/vendor/github.com/hashicorp/logutils/.gitignore b/vendor/github.com/hashicorp/logutils/.gitignore
new file mode 100644
index 0000000..0026861
--- /dev/null
+++ b/vendor/github.com/hashicorp/logutils/.gitignore
@@ -0,0 +1,22 @@
1# Compiled Object files, Static and Dynamic libs (Shared Objects)
2*.o
3*.a
4*.so
5
6# Folders
7_obj
8_test
9
10# Architecture specific extensions/prefixes
11*.[568vq]
12[568vq].out
13
14*.cgo1.go
15*.cgo2.c
16_cgo_defun.c
17_cgo_gotypes.go
18_cgo_export.*
19
20_testmain.go
21
22*.exe
diff --git a/vendor/github.com/hashicorp/yamux/.gitignore b/vendor/github.com/hashicorp/yamux/.gitignore
new file mode 100644
index 0000000..8365624
--- /dev/null
+++ b/vendor/github.com/hashicorp/yamux/.gitignore
@@ -0,0 +1,23 @@
1# Compiled Object files, Static and Dynamic libs (Shared Objects)
2*.o
3*.a
4*.so
5
6# Folders
7_obj
8_test
9
10# Architecture specific extensions/prefixes
11*.[568vq]
12[568vq].out
13
14*.cgo1.go
15*.cgo2.c
16_cgo_defun.c
17_cgo_gotypes.go
18_cgo_export.*
19
20_testmain.go
21
22*.exe
23*.test
diff --git a/vendor/github.com/jmespath/go-jmespath/.gitignore b/vendor/github.com/jmespath/go-jmespath/.gitignore
new file mode 100644
index 0000000..5091fb0
--- /dev/null
+++ b/vendor/github.com/jmespath/go-jmespath/.gitignore
@@ -0,0 +1,4 @@
1/jpgo
2jmespath-fuzz.zip
3cpu.out
4go-jmespath.test
diff --git a/vendor/github.com/jmespath/go-jmespath/.travis.yml b/vendor/github.com/jmespath/go-jmespath/.travis.yml
new file mode 100644
index 0000000..1f98077
--- /dev/null
+++ b/vendor/github.com/jmespath/go-jmespath/.travis.yml
@@ -0,0 +1,9 @@
1language: go
2
3sudo: false
4
5go:
6 - 1.4
7
8install: go get -v -t ./...
9script: make test
diff --git a/vendor/github.com/mitchellh/copystructure/.travis.yml b/vendor/github.com/mitchellh/copystructure/.travis.yml
new file mode 100644
index 0000000..d7b9589
--- /dev/null
+++ b/vendor/github.com/mitchellh/copystructure/.travis.yml
@@ -0,0 +1,12 @@
1language: go
2
3go:
4 - 1.7
5 - tip
6
7script:
8 - go test
9
10matrix:
11 allow_failures:
12 - go: tip
diff --git a/vendor/github.com/mitchellh/mapstructure/.travis.yml b/vendor/github.com/mitchellh/mapstructure/.travis.yml
new file mode 100644
index 0000000..7f3fe9a
--- /dev/null
+++ b/vendor/github.com/mitchellh/mapstructure/.travis.yml
@@ -0,0 +1,7 @@
1language: go
2
3go:
4 - 1.4
5
6script:
7 - go test
diff --git a/vendor/github.com/mitchellh/reflectwalk/.travis.yml b/vendor/github.com/mitchellh/reflectwalk/.travis.yml
new file mode 100644
index 0000000..4f2ee4d
--- /dev/null
+++ b/vendor/github.com/mitchellh/reflectwalk/.travis.yml
@@ -0,0 +1 @@
language: go
diff --git a/vendor/github.com/rancher/go-rancher/Dockerfile.dapper b/vendor/github.com/rancher/go-rancher/Dockerfile.dapper
deleted file mode 100644
index d5bfad7..0000000
--- a/vendor/github.com/rancher/go-rancher/Dockerfile.dapper
+++ /dev/null
@@ -1,30 +0,0 @@
1FROM ubuntu:16.04
2# FROM arm=armhf/ubuntu:16.04
3
4ARG DAPPER_HOST_ARCH=amd64
5ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH}
6
7RUN apt-get update && \
8 apt-get install -y gcc ca-certificates git wget curl vim less file && \
9 rm -f /bin/sh && ln -s /bin/bash /bin/sh
10
11ENV GOLANG_ARCH_amd64=amd64 GOLANG_ARCH_arm=armv6l GOLANG_ARCH=GOLANG_ARCH_${ARCH} \
12 GOPATH=/go PATH=/go/bin:/usr/local/go/bin:${PATH} SHELL=/bin/bash
13
14ENV DOCKER_URL_amd64=https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 \
15 DOCKER_URL_arm=https://github.com/rancher/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm \
16 DOCKER_URL=DOCKER_URL_${ARCH}
17RUN wget -O - ${!DOCKER_URL} > /usr/bin/docker && chmod +x /usr/bin/docker
18
19RUN wget -O - https://storage.googleapis.com/golang/go1.7.1.linux-${!GOLANG_ARCH}.tar.gz | tar -xzf - -C /usr/local && \
20 go get github.com/rancher/trash && go get github.com/golang/lint/golint
21
22ENV DAPPER_SOURCE /go/src/github.com/rancher/go-rancher/
23ENV DAPPER_OUTPUT ./bin
24ENV DAPPER_DOCKER_SOCKET true
25ENV TRASH_CACHE ${DAPPER_SOURCE}/.trash-cache
26ENV HOME ${DAPPER_SOURCE}
27WORKDIR ${DAPPER_SOURCE}
28
29ENTRYPOINT ["./scripts/entry"]
30CMD ["ci"]
diff --git a/vendor/github.com/rancher/go-rancher/LICENSE b/vendor/github.com/rancher/go-rancher/LICENSE
deleted file mode 100644
index f433b1a..0000000
--- a/vendor/github.com/rancher/go-rancher/LICENSE
+++ /dev/null
@@ -1,177 +0,0 @@
1
2 Apache License
3 Version 2.0, January 2004
4 http://www.apache.org/licenses/
5
6 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
8 1. Definitions.
9
10 "License" shall mean the terms and conditions for use, reproduction,
11 and distribution as defined by Sections 1 through 9 of this document.
12
13 "Licensor" shall mean the copyright owner or entity authorized by
14 the copyright owner that is granting the License.
15
16 "Legal Entity" shall mean the union of the acting entity and all
17 other entities that control, are controlled by, or are under common
18 control with that entity. For the purposes of this definition,
19 "control" means (i) the power, direct or indirect, to cause the
20 direction or management of such entity, whether by contract or
21 otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 outstanding shares, or (iii) beneficial ownership of such entity.
23
24 "You" (or "Your") shall mean an individual or Legal Entity
25 exercising permissions granted by this License.
26
27 "Source" form shall mean the preferred form for making modifications,
28 including but not limited to software source code, documentation
29 source, and configuration files.
30
31 "Object" form shall mean any form resulting from mechanical
32 transformation or translation of a Source form, including but
33 not limited to compiled object code, generated documentation,
34 and conversions to other media types.
35
36 "Work" shall mean the work of authorship, whether in Source or
37 Object form, made available under the License, as indicated by a
38 copyright notice that is included in or attached to the work
39 (an example is provided in the Appendix below).
40
41 "Derivative Works" shall mean any work, whether in Source or Object
42 form, that is based on (or derived from) the Work and for which the
43 editorial revisions, annotations, elaborations, or other modifications
44 represent, as a whole, an original work of authorship. For the purposes
45 of this License, Derivative Works shall not include works that remain
46 separable from, or merely link (or bind by name) to the interfaces of,
47 the Work and Derivative Works thereof.
48
49 "Contribution" shall mean any work of authorship, including
50 the original version of the Work and any modifications or additions
51 to that Work or Derivative Works thereof, that is intentionally
52 submitted to Licensor for inclusion in the Work by the copyright owner
53 or by an individual or Legal Entity authorized to submit on behalf of
54 the copyright owner. For the purposes of this definition, "submitted"
55 means any form of electronic, verbal, or written communication sent
56 to the Licensor or its representatives, including but not limited to
57 communication on electronic mailing lists, source code control systems,
58 and issue tracking systems that are managed by, or on behalf of, the
59 Licensor for the purpose of discussing and improving the Work, but
60 excluding communication that is conspicuously marked or otherwise
61 designated in writing by the copyright owner as "Not a Contribution."
62
63 "Contributor" shall mean Licensor and any individual or Legal Entity
64 on behalf of whom a Contribution has been received by Licensor and
65 subsequently incorporated within the Work.
66
67 2. Grant of Copyright License. Subject to the terms and conditions of
68 this License, each Contributor hereby grants to You a perpetual,
69 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 copyright license to reproduce, prepare Derivative Works of,
71 publicly display, publicly perform, sublicense, and distribute the
72 Work and such Derivative Works in Source or Object form.
73
74 3. Grant of Patent License. Subject to the terms and conditions of
75 this License, each Contributor hereby grants to You a perpetual,
76 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 (except as stated in this section) patent license to make, have made,
78 use, offer to sell, sell, import, and otherwise transfer the Work,
79 where such license applies only to those patent claims licensable
80 by such Contributor that are necessarily infringed by their
81 Contribution(s) alone or by combination of their Contribution(s)
82 with the Work to which such Contribution(s) was submitted. If You
83 institute patent litigation against any entity (including a
84 cross-claim or counterclaim in a lawsuit) alleging that the Work
85 or a Contribution incorporated within the Work constitutes direct
86 or contributory patent infringement, then any patent licenses
87 granted to You under this License for that Work shall terminate
88 as of the date such litigation is filed.
89
90 4. Redistribution. You may reproduce and distribute copies of the
91 Work or Derivative Works thereof in any medium, with or without
92 modifications, and in Source or Object form, provided that You
93 meet the following conditions:
94
95 (a) You must give any other recipients of the Work or
96 Derivative Works a copy of this License; and
97
98 (b) You must cause any modified files to carry prominent notices
99 stating that You changed the files; and
100
101 (c) You must retain, in the Source form of any Derivative Works
102 that You distribute, all copyright, patent, trademark, and
103 attribution notices from the Source form of the Work,
104 excluding those notices that do not pertain to any part of
105 the Derivative Works; and
106
107 (d) If the Work includes a "NOTICE" text file as part of its
108 distribution, then any Derivative Works that You distribute must
109 include a readable copy of the attribution notices contained
110 within such NOTICE file, excluding those notices that do not
111 pertain to any part of the Derivative Works, in at least one
112 of the following places: within a NOTICE text file distributed
113 as part of the Derivative Works; within the Source form or
114 documentation, if provided along with the Derivative Works; or,
115 within a display generated by the Derivative Works, if and
116 wherever such third-party notices normally appear. The contents
117 of the NOTICE file are for informational purposes only and
118 do not modify the License. You may add Your own attribution
119 notices within Derivative Works that You distribute, alongside
120 or as an addendum to the NOTICE text from the Work, provided
121 that such additional attribution notices cannot be construed
122 as modifying the License.
123
124 You may add Your own copyright statement to Your modifications and
125 may provide additional or different license terms and conditions
126 for use, reproduction, or distribution of Your modifications, or
127 for any such Derivative Works as a whole, provided Your use,
128 reproduction, and distribution of the Work otherwise complies with
129 the conditions stated in this License.
130
131 5. Submission of Contributions. Unless You explicitly state otherwise,
132 any Contribution intentionally submitted for inclusion in the Work
133 by You to the Licensor shall be under the terms and conditions of
134 this License, without any additional terms or conditions.
135 Notwithstanding the above, nothing herein shall supersede or modify
136 the terms of any separate license agreement you may have executed
137 with Licensor regarding such Contributions.
138
139 6. Trademarks. This License does not grant permission to use the trade
140 names, trademarks, service marks, or product names of the Licensor,
141 except as required for reasonable and customary use in describing the
142 origin of the Work and reproducing the content of the NOTICE file.
143
144 7. Disclaimer of Warranty. Unless required by applicable law or
145 agreed to in writing, Licensor provides the Work (and each
146 Contributor provides its Contributions) on an "AS IS" BASIS,
147 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 implied, including, without limitation, any warranties or conditions
149 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 PARTICULAR PURPOSE. You are solely responsible for determining the
151 appropriateness of using or redistributing the Work and assume any
152 risks associated with Your exercise of permissions under this License.
153
154 8. Limitation of Liability. In no event and under no legal theory,
155 whether in tort (including negligence), contract, or otherwise,
156 unless required by applicable law (such as deliberate and grossly
157 negligent acts) or agreed to in writing, shall any Contributor be
158 liable to You for damages, including any direct, indirect, special,
159 incidental, or consequential damages of any character arising as a
160 result of this License or out of the use or inability to use the
161 Work (including but not limited to damages for loss of goodwill,
162 work stoppage, computer failure or malfunction, or any and all
163 other commercial damages or losses), even if such Contributor
164 has been advised of the possibility of such damages.
165
166 9. Accepting Warranty or Additional Liability. While redistributing
167 the Work or Derivative Works thereof, You may choose to offer,
168 and charge a fee for, acceptance of support, warranty, indemnity,
169 or other liability obligations and/or rights consistent with this
170 License. However, in accepting such obligations, You may act only
171 on Your own behalf and on Your sole responsibility, not on behalf
172 of any other Contributor, and only if You agree to indemnify,
173 defend, and hold each Contributor harmless for any liability
174 incurred by, or claims asserted against, such Contributor by reason
175 of your accepting any such warranty or additional liability.
176
177 END OF TERMS AND CONDITIONS
diff --git a/vendor/github.com/rancher/go-rancher/Makefile b/vendor/github.com/rancher/go-rancher/Makefile
deleted file mode 100644
index d7d72a1..0000000
--- a/vendor/github.com/rancher/go-rancher/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
1TARGETS := $(shell ls scripts)
2
3.dapper:
4 @echo Downloading dapper
5 @curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m` > .dapper.tmp
6 @@chmod +x .dapper.tmp
7 @./.dapper.tmp -v
8 @mv .dapper.tmp .dapper
9
10$(TARGETS): .dapper
11 ./.dapper $@
12
13trash: .dapper
14 ./.dapper -m bind trash
15
16trash-keep: .dapper
17 ./.dapper -m bind trash -k
18
19deps: trash
20
21.DEFAULT_GOAL := ci
22
23.PHONY: $(TARGETS)
diff --git a/vendor/github.com/rancher/go-rancher/README.md b/vendor/github.com/rancher/go-rancher/README.md
deleted file mode 100644
index 58e479a..0000000
--- a/vendor/github.com/rancher/go-rancher/README.md
+++ /dev/null
@@ -1,55 +0,0 @@
1# Go Bindings for Rancher API
2
3# Generating Code
4First, you must have a master version of Rancher running. The best way to do this is:
5```sh
6docker run -p 8080:8080 -d rancher/server:master
7```
8
9Once Rancher is running, you can run the gen-schema.sh script:
10```sh
11./scripts/gen-schema.sh http://<docker host ip>:8080
12
13# The default url is http://localhost:8080, so if rancher/server is listening on localhost, you can omit the url:
14./scripts/gen-schema.sh
15```
16
17This will add, remove, and modify go files appropriately. Submit a PR that includes *all* these changes.
18
19## Important caveats
201. If you are running on macOS, you must have gnu-sed installed as sed for this to work properly.
212. If you are running against cattle that is running out of an IDE and you don't have go-machine-service running (you probably don't), you'll see a number of unexpected removed or modified files like `generated_host.go` `generated_machine.go` and `generated_*config.go`.
22
23# Building
24
25```sh
26godep go build ./client
27```
28
29# Tests
30
31```sh
32godep go test ./client
33```
34# Contact
35For bugs, questions, comments, corrections, suggestions, etc., open an issue in
36 [rancher/rancher](//github.com/rancher/rancher/issues) with a title starting with `[go-rancher] `.
37
38Or just [click here](//github.com/rancher/rancher/issues/new?title=%5Bgo-rancher%5D%20) to create a new issue.
39
40
41# License
42Copyright (c) 2014-2015 [Rancher Labs, Inc.](http://rancher.com)
43
44Licensed under the Apache License, Version 2.0 (the "License");
45you may not use this file except in compliance with the License.
46You may obtain a copy of the License at
47
48[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
49
50Unless required by applicable law or agreed to in writing, software
51distributed under the License is distributed on an "AS IS" BASIS,
52WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53See the License for the specific language governing permissions and
54limitations under the License.
55
diff --git a/vendor/github.com/rancher/go-rancher/main.go b/vendor/github.com/rancher/go-rancher/main.go
deleted file mode 100644
index e8274c8..0000000
--- a/vendor/github.com/rancher/go-rancher/main.go
+++ /dev/null
@@ -1,10 +0,0 @@
1package main
2
3import (
4 "fmt"
5 _ "github.com/rancher/go-rancher/client"
6)
7
8func main() {
9 fmt.Println("I have nothing to do...")
10}
diff --git a/vendor/github.com/rancher/go-rancher/trash.conf b/vendor/github.com/rancher/go-rancher/trash.conf
deleted file mode 100644
index 30cb3a9..0000000
--- a/vendor/github.com/rancher/go-rancher/trash.conf
+++ /dev/null
@@ -1,6 +0,0 @@
1github.com/pkg/errors 1d2e60385a13aaa66134984235061c2f9302520e
2github.com/gorilla/context 215affda49addc4c8ef7e2534915df2c8c35c6cd
3github.com/gorilla/mux f15e0c49460fd49eebe2bcc8486b05d1bef68d3a
4github.com/gorilla/websocket 1551221275a7bd42978745a376b2531f791d88f3
5github.com/Sirupsen/logrus 26709e2714106fb8ad40b773b711ebce25b78914
6gopkg.in/yaml.v2 a83829b6f1293c91addabc89d0571c246397bbf4
diff --git a/vendor/github.com/satori/go.uuid/.travis.yml b/vendor/github.com/satori/go.uuid/.travis.yml
new file mode 100644
index 0000000..bf90ad5
--- /dev/null
+++ b/vendor/github.com/satori/go.uuid/.travis.yml
@@ -0,0 +1,21 @@
1language: go
2sudo: false
3go:
4 - 1.2
5 - 1.3
6 - 1.4
7 - 1.5
8 - 1.6
9 - 1.7
10 - tip
11matrix:
12 allow_failures:
13 - go: tip
14 fast_finish: true
15before_install:
16 - go get github.com/mattn/goveralls
17 - go get golang.org/x/tools/cmd/cover
18script:
19 - $HOME/gopath/bin/goveralls -service=travis-ci
20notifications:
21 email: false
diff --git a/vendor/golang.org/x/crypto/AUTHORS b/vendor/golang.org/x/crypto/AUTHORS
new file mode 100644
index 0000000..2b00ddb
--- /dev/null
+++ b/vendor/golang.org/x/crypto/AUTHORS
@@ -0,0 +1,3 @@
1# This source code refers to The Go Authors for copyright purposes.
2# The master list of authors is in the main Go distribution,
3# visible at https://tip.golang.org/AUTHORS.
diff --git a/vendor/golang.org/x/crypto/CONTRIBUTORS b/vendor/golang.org/x/crypto/CONTRIBUTORS
new file mode 100644
index 0000000..1fbd3e9
--- /dev/null
+++ b/vendor/golang.org/x/crypto/CONTRIBUTORS
@@ -0,0 +1,3 @@
1# This source code was written by the Go contributors.
2# The master list of contributors is in the main Go distribution,
3# visible at https://tip.golang.org/CONTRIBUTORS.
diff --git a/vendor/golang.org/x/crypto/bcrypt/bcrypt.go b/vendor/golang.org/x/crypto/bcrypt/bcrypt.go
index f8b807f..202fa8a 100644
--- a/vendor/golang.org/x/crypto/bcrypt/bcrypt.go
+++ b/vendor/golang.org/x/crypto/bcrypt/bcrypt.go
@@ -12,9 +12,10 @@ import (
12 "crypto/subtle" 12 "crypto/subtle"
13 "errors" 13 "errors"
14 "fmt" 14 "fmt"
15 "golang.org/x/crypto/blowfish"
16 "io" 15 "io"
17 "strconv" 16 "strconv"
17
18 "golang.org/x/crypto/blowfish"
18) 19)
19 20
20const ( 21const (
@@ -205,7 +206,6 @@ func bcrypt(password []byte, cost int, salt []byte) ([]byte, error) {
205} 206}
206 207
207func expensiveBlowfishSetup(key []byte, cost uint32, salt []byte) (*blowfish.Cipher, error) { 208func expensiveBlowfishSetup(key []byte, cost uint32, salt []byte) (*blowfish.Cipher, error) {
208
209 csalt, err := base64Decode(salt) 209 csalt, err := base64Decode(salt)
210 if err != nil { 210 if err != nil {
211 return nil, err 211 return nil, err
@@ -213,7 +213,8 @@ func expensiveBlowfishSetup(key []byte, cost uint32, salt []byte) (*blowfish.Cip
213 213
214 // Bug compatibility with C bcrypt implementations. They use the trailing 214 // Bug compatibility with C bcrypt implementations. They use the trailing
215 // NULL in the key string during expansion. 215 // NULL in the key string during expansion.
216 ckey := append(key, 0) 216 // We copy the key to prevent changing the underlying array.
217 ckey := append(key[:len(key):len(key)], 0)
217 218
218 c, err := blowfish.NewSaltedCipher(ckey, csalt) 219 c, err := blowfish.NewSaltedCipher(ckey, csalt)
219 if err != nil { 220 if err != nil {
diff --git a/vendor/golang.org/x/crypto/blowfish/cipher.go b/vendor/golang.org/x/crypto/blowfish/cipher.go
index a73954f..2641dad 100644
--- a/vendor/golang.org/x/crypto/blowfish/cipher.go
+++ b/vendor/golang.org/x/crypto/blowfish/cipher.go
@@ -6,7 +6,7 @@
6package blowfish // import "golang.org/x/crypto/blowfish" 6package blowfish // import "golang.org/x/crypto/blowfish"
7 7
8// The code is a port of Bruce Schneier's C implementation. 8// The code is a port of Bruce Schneier's C implementation.
9// See http://www.schneier.com/blowfish.html. 9// See https://www.schneier.com/blowfish.html.
10 10
11import "strconv" 11import "strconv"
12 12
diff --git a/vendor/golang.org/x/crypto/blowfish/const.go b/vendor/golang.org/x/crypto/blowfish/const.go
index 8c5ee4c..d040775 100644
--- a/vendor/golang.org/x/crypto/blowfish/const.go
+++ b/vendor/golang.org/x/crypto/blowfish/const.go
@@ -4,7 +4,7 @@
4 4
5// The startup permutation array and substitution boxes. 5// The startup permutation array and substitution boxes.
6// They are the hexadecimal digits of PI; see: 6// They are the hexadecimal digits of PI; see:
7// http://www.schneier.com/code/constants.txt. 7// https://www.schneier.com/code/constants.txt.
8 8
9package blowfish 9package blowfish
10 10
diff --git a/vendor/golang.org/x/net/AUTHORS b/vendor/golang.org/x/net/AUTHORS
new file mode 100644
index 0000000..15167cd
--- /dev/null
+++ b/vendor/golang.org/x/net/AUTHORS
@@ -0,0 +1,3 @@
1# This source code refers to The Go Authors for copyright purposes.
2# The master list of authors is in the main Go distribution,
3# visible at http://tip.golang.org/AUTHORS.
diff --git a/vendor/golang.org/x/net/CONTRIBUTORS b/vendor/golang.org/x/net/CONTRIBUTORS
new file mode 100644
index 0000000..1c4577e
--- /dev/null
+++ b/vendor/golang.org/x/net/CONTRIBUTORS
@@ -0,0 +1,3 @@
1# This source code was written by the Go contributors.
2# The master list of contributors is in the main Go distribution,
3# visible at http://tip.golang.org/CONTRIBUTORS.
diff --git a/vendor/golang.org/x/net/html/atom/gen.go b/vendor/golang.org/x/net/html/atom/gen.go
new file mode 100644
index 0000000..6bfa866
--- /dev/null
+++ b/vendor/golang.org/x/net/html/atom/gen.go
@@ -0,0 +1,648 @@
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build ignore
6
7package main
8
9// This program generates table.go and table_test.go.
10// Invoke as
11//
12// go run gen.go |gofmt >table.go
13// go run gen.go -test |gofmt >table_test.go
14
15import (
16 "flag"
17 "fmt"
18 "math/rand"
19 "os"
20 "sort"
21 "strings"
22)
23
24// identifier converts s to a Go exported identifier.
25// It converts "div" to "Div" and "accept-charset" to "AcceptCharset".
26func identifier(s string) string {
27 b := make([]byte, 0, len(s))
28 cap := true
29 for _, c := range s {
30 if c == '-' {
31 cap = true
32 continue
33 }
34 if cap && 'a' <= c && c <= 'z' {
35 c -= 'a' - 'A'
36 }
37 cap = false
38 b = append(b, byte(c))
39 }
40 return string(b)
41}
42
43var test = flag.Bool("test", false, "generate table_test.go")
44
45func main() {
46 flag.Parse()
47
48 var all []string
49 all = append(all, elements...)
50 all = append(all, attributes...)
51 all = append(all, eventHandlers...)
52 all = append(all, extra...)
53 sort.Strings(all)
54
55 if *test {
56 fmt.Printf("// generated by go run gen.go -test; DO NOT EDIT\n\n")
57 fmt.Printf("package atom\n\n")
58 fmt.Printf("var testAtomList = []string{\n")
59 for _, s := range all {
60 fmt.Printf("\t%q,\n", s)
61 }
62 fmt.Printf("}\n")
63 return
64 }
65
66 // uniq - lists have dups
67 // compute max len too
68 maxLen := 0
69 w := 0
70 for _, s := range all {
71 if w == 0 || all[w-1] != s {
72 if maxLen < len(s) {
73 maxLen = len(s)
74 }
75 all[w] = s
76 w++
77 }
78 }
79 all = all[:w]
80
81 // Find hash that minimizes table size.
82 var best *table
83 for i := 0; i < 1000000; i++ {
84 if best != nil && 1<<(best.k-1) < len(all) {
85 break
86 }
87 h := rand.Uint32()
88 for k := uint(0); k <= 16; k++ {
89 if best != nil && k >= best.k {
90 break
91 }
92 var t table
93 if t.init(h, k, all) {
94 best = &t
95 break
96 }
97 }
98 }
99 if best == nil {
100 fmt.Fprintf(os.Stderr, "failed to construct string table\n")
101 os.Exit(1)
102 }
103
104 // Lay out strings, using overlaps when possible.
105 layout := append([]string{}, all...)
106
107 // Remove strings that are substrings of other strings
108 for changed := true; changed; {
109 changed = false
110 for i, s := range layout {
111 if s == "" {
112 continue
113 }
114 for j, t := range layout {
115 if i != j && t != "" && strings.Contains(s, t) {
116 changed = true
117 layout[j] = ""
118 }
119 }
120 }
121 }
122
123 // Join strings where one suffix matches another prefix.
124 for {
125 // Find best i, j, k such that layout[i][len-k:] == layout[j][:k],
126 // maximizing overlap length k.
127 besti := -1
128 bestj := -1
129 bestk := 0
130 for i, s := range layout {
131 if s == "" {
132 continue
133 }
134 for j, t := range layout {
135 if i == j {
136 continue
137 }
138 for k := bestk + 1; k <= len(s) && k <= len(t); k++ {
139 if s[len(s)-k:] == t[:k] {
140 besti = i
141 bestj = j
142 bestk = k
143 }
144 }
145 }
146 }
147 if bestk > 0 {
148 layout[besti] += layout[bestj][bestk:]
149 layout[bestj] = ""
150 continue
151 }
152 break
153 }
154
155 text := strings.Join(layout, "")
156
157 atom := map[string]uint32{}
158 for _, s := range all {
159 off := strings.Index(text, s)
160 if off < 0 {
161 panic("lost string " + s)
162 }
163 atom[s] = uint32(off<<8 | len(s))
164 }
165
166 // Generate the Go code.
167 fmt.Printf("// generated by go run gen.go; DO NOT EDIT\n\n")
168 fmt.Printf("package atom\n\nconst (\n")
169 for _, s := range all {
170 fmt.Printf("\t%s Atom = %#x\n", identifier(s), atom[s])
171 }
172 fmt.Printf(")\n\n")
173
174 fmt.Printf("const hash0 = %#x\n\n", best.h0)
175 fmt.Printf("const maxAtomLen = %d\n\n", maxLen)
176
177 fmt.Printf("var table = [1<<%d]Atom{\n", best.k)
178 for i, s := range best.tab {
179 if s == "" {
180 continue
181 }
182 fmt.Printf("\t%#x: %#x, // %s\n", i, atom[s], s)
183 }
184 fmt.Printf("}\n")
185 datasize := (1 << best.k) * 4
186
187 fmt.Printf("const atomText =\n")
188 textsize := len(text)
189 for len(text) > 60 {
190 fmt.Printf("\t%q +\n", text[:60])
191 text = text[60:]
192 }
193 fmt.Printf("\t%q\n\n", text)
194
195 fmt.Fprintf(os.Stderr, "%d atoms; %d string bytes + %d tables = %d total data\n", len(all), textsize, datasize, textsize+datasize)
196}
197
198type byLen []string
199
200func (x byLen) Less(i, j int) bool { return len(x[i]) > len(x[j]) }
201func (x byLen) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
202func (x byLen) Len() int { return len(x) }
203
204// fnv computes the FNV hash with an arbitrary starting value h.
205func fnv(h uint32, s string) uint32 {
206 for i := 0; i < len(s); i++ {
207 h ^= uint32(s[i])
208 h *= 16777619
209 }
210 return h
211}
212
213// A table represents an attempt at constructing the lookup table.
214// The lookup table uses cuckoo hashing, meaning that each string
215// can be found in one of two positions.
216type table struct {
217 h0 uint32
218 k uint
219 mask uint32
220 tab []string
221}
222
223// hash returns the two hashes for s.
224func (t *table) hash(s string) (h1, h2 uint32) {
225 h := fnv(t.h0, s)
226 h1 = h & t.mask
227 h2 = (h >> 16) & t.mask
228 return
229}
230
231// init initializes the table with the given parameters.
232// h0 is the initial hash value,
233// k is the number of bits of hash value to use, and
234// x is the list of strings to store in the table.
235// init returns false if the table cannot be constructed.
236func (t *table) init(h0 uint32, k uint, x []string) bool {
237 t.h0 = h0
238 t.k = k
239 t.tab = make([]string, 1<<k)
240 t.mask = 1<<k - 1
241 for _, s := range x {
242 if !t.insert(s) {
243 return false
244 }
245 }
246 return true
247}
248
249// insert inserts s in the table.
250func (t *table) insert(s string) bool {
251 h1, h2 := t.hash(s)
252 if t.tab[h1] == "" {
253 t.tab[h1] = s
254 return true
255 }
256 if t.tab[h2] == "" {
257 t.tab[h2] = s
258 return true
259 }
260 if t.push(h1, 0) {
261 t.tab[h1] = s
262 return true
263 }
264 if t.push(h2, 0) {
265 t.tab[h2] = s
266 return true
267 }
268 return false
269}
270
271// push attempts to push aside the entry in slot i.
272func (t *table) push(i uint32, depth int) bool {
273 if depth > len(t.tab) {
274 return false
275 }
276 s := t.tab[i]
277 h1, h2 := t.hash(s)
278 j := h1 + h2 - i
279 if t.tab[j] != "" && !t.push(j, depth+1) {
280 return false
281 }
282 t.tab[j] = s
283 return true
284}
285
286// The lists of element names and attribute keys were taken from
287// https://html.spec.whatwg.org/multipage/indices.html#index
288// as of the "HTML Living Standard - Last Updated 21 February 2015" version.
289
290var elements = []string{
291 "a",
292 "abbr",
293 "address",
294 "area",
295 "article",
296 "aside",
297 "audio",
298 "b",
299 "base",
300 "bdi",
301 "bdo",
302 "blockquote",
303 "body",
304 "br",
305 "button",
306 "canvas",
307 "caption",
308 "cite",
309 "code",
310 "col",
311 "colgroup",
312 "command",
313 "data",
314 "datalist",
315 "dd",
316 "del",
317 "details",
318 "dfn",
319 "dialog",
320 "div",
321 "dl",
322 "dt",
323 "em",
324 "embed",
325 "fieldset",
326 "figcaption",
327 "figure",
328 "footer",
329 "form",
330 "h1",
331 "h2",
332 "h3",
333 "h4",
334 "h5",
335 "h6",
336 "head",
337 "header",
338 "hgroup",
339 "hr",
340 "html",
341 "i",
342 "iframe",
343 "img",
344 "input",
345 "ins",
346 "kbd",
347 "keygen",
348 "label",
349 "legend",
350 "li",
351 "link",
352 "map",
353 "mark",
354 "menu",
355 "menuitem",
356 "meta",
357 "meter",
358 "nav",
359 "noscript",
360 "object",
361 "ol",
362 "optgroup",
363 "option",
364 "output",
365 "p",
366 "param",
367 "pre",
368 "progress",
369 "q",
370 "rp",
371 "rt",
372 "ruby",
373 "s",
374 "samp",
375 "script",
376 "section",
377 "select",
378 "small",
379 "source",
380 "span",
381 "strong",
382 "style",
383 "sub",
384 "summary",
385 "sup",
386 "table",
387 "tbody",
388 "td",
389 "template",
390 "textarea",
391 "tfoot",
392 "th",
393 "thead",
394 "time",
395 "title",
396 "tr",
397 "track",
398 "u",
399 "ul",
400 "var",
401 "video",
402 "wbr",
403}
404
405// https://html.spec.whatwg.org/multipage/indices.html#attributes-3
406
407var attributes = []string{
408 "abbr",
409 "accept",
410 "accept-charset",
411 "accesskey",
412 "action",
413 "alt",
414 "async",
415 "autocomplete",
416 "autofocus",
417 "autoplay",
418 "challenge",
419 "charset",
420 "checked",
421 "cite",
422 "class",
423 "cols",
424 "colspan",
425 "command",
426 "content",
427 "contenteditable",
428 "contextmenu",
429 "controls",
430 "coords",
431 "crossorigin",
432 "data",
433 "datetime",
434 "default",
435 "defer",
436 "dir",
437 "dirname",
438 "disabled",
439 "download",
440 "draggable",
441 "dropzone",
442 "enctype",
443 "for",
444 "form",
445 "formaction",
446 "formenctype",
447 "formmethod",
448 "formnovalidate",
449 "formtarget",
450 "headers",
451 "height",
452 "hidden",
453 "high",
454 "href",
455 "hreflang",
456 "http-equiv",
457 "icon",
458 "id",
459 "inputmode",
460 "ismap",
461 "itemid",
462 "itemprop",
463 "itemref",
464 "itemscope",
465 "itemtype",
466 "keytype",
467 "kind",
468 "label",
469 "lang",
470 "list",
471 "loop",
472 "low",
473 "manifest",
474 "max",
475 "maxlength",
476 "media",
477 "mediagroup",
478 "method",
479 "min",
480 "minlength",
481 "multiple",
482 "muted",
483 "name",
484 "novalidate",
485 "open",
486 "optimum",
487 "pattern",
488 "ping",
489 "placeholder",
490 "poster",
491 "preload",
492 "radiogroup",
493 "readonly",
494 "rel",
495 "required",
496 "reversed",
497 "rows",
498 "rowspan",
499 "sandbox",
500 "spellcheck",
501 "scope",
502 "scoped",
503 "seamless",
504 "selected",
505 "shape",
506 "size",
507 "sizes",
508 "sortable",
509 "sorted",
510 "span",
511 "src",
512 "srcdoc",
513 "srclang",
514 "start",
515 "step",
516 "style",
517 "tabindex",
518 "target",
519 "title",
520 "translate",
521 "type",
522 "typemustmatch",
523 "usemap",
524 "value",
525 "width",
526 "wrap",
527}
528
529var eventHandlers = []string{
530 "onabort",
531 "onautocomplete",
532 "onautocompleteerror",
533 "onafterprint",
534 "onbeforeprint",
535 "onbeforeunload",
536 "onblur",
537 "oncancel",
538 "oncanplay",
539 "oncanplaythrough",
540 "onchange",
541 "onclick",
542 "onclose",
543 "oncontextmenu",
544 "oncuechange",
545 "ondblclick",
546 "ondrag",
547 "ondragend",
548 "ondragenter",
549 "ondragleave",
550 "ondragover",
551 "ondragstart",
552 "ondrop",
553 "ondurationchange",
554 "onemptied",
555 "onended",
556 "onerror",
557 "onfocus",
558 "onhashchange",
559 "oninput",
560 "oninvalid",
561 "onkeydown",
562 "onkeypress",
563 "onkeyup",
564 "onlanguagechange",
565 "onload",
566 "onloadeddata",
567 "onloadedmetadata",
568 "onloadstart",
569 "onmessage",
570 "onmousedown",
571 "onmousemove",
572 "onmouseout",
573 "onmouseover",
574 "onmouseup",
575 "onmousewheel",
576 "onoffline",
577 "ononline",
578 "onpagehide",
579 "onpageshow",
580 "onpause",
581 "onplay",
582 "onplaying",
583 "onpopstate",
584 "onprogress",
585 "onratechange",
586 "onreset",
587 "onresize",
588 "onscroll",
589 "onseeked",
590 "onseeking",
591 "onselect",
592 "onshow",
593 "onsort",
594 "onstalled",
595 "onstorage",
596 "onsubmit",
597 "onsuspend",
598 "ontimeupdate",
599 "ontoggle",
600 "onunload",
601 "onvolumechange",
602 "onwaiting",
603}
604
605// extra are ad-hoc values not covered by any of the lists above.
606var extra = []string{
607 "align",
608 "annotation",
609 "annotation-xml",
610 "applet",
611 "basefont",
612 "bgsound",
613 "big",
614 "blink",
615 "center",
616 "color",
617 "desc",
618 "face",
619 "font",
620 "foreignObject", // HTML is case-insensitive, but SVG-embedded-in-HTML is case-sensitive.
621 "foreignobject",
622 "frame",
623 "frameset",
624 "image",
625 "isindex",
626 "listing",
627 "malignmark",
628 "marquee",
629 "math",
630 "mglyph",
631 "mi",
632 "mn",
633 "mo",
634 "ms",
635 "mtext",
636 "nobr",
637 "noembed",
638 "noframes",
639 "plaintext",
640 "prompt",
641 "public",
642 "spacer",
643 "strike",
644 "svg",
645 "system",
646 "tt",
647 "xmp",
648}
diff --git a/vendor/modules.txt b/vendor/modules.txt
new file mode 100644
index 0000000..cc80a99
--- /dev/null
+++ b/vendor/modules.txt
@@ -0,0 +1,116 @@
1# github.com/DreamItGetIT/statuscake v0.0.0-20180728152938-85edefcbdaa3
2github.com/DreamItGetIT/statuscake
3# github.com/apparentlymart/go-cidr v0.0.0-20170418151526-7e4b007599d4
4github.com/apparentlymart/go-cidr/cidr
5# github.com/aws/aws-sdk-go v1.8.34
6github.com/aws/aws-sdk-go/aws
7github.com/aws/aws-sdk-go/aws/credentials
8github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds
9github.com/aws/aws-sdk-go/aws/ec2metadata
10github.com/aws/aws-sdk-go/aws/session
11github.com/aws/aws-sdk-go/service/s3
12github.com/aws/aws-sdk-go/aws/awserr
13github.com/aws/aws-sdk-go/aws/endpoints
14github.com/aws/aws-sdk-go/internal/shareddefaults
15github.com/aws/aws-sdk-go/aws/client
16github.com/aws/aws-sdk-go/aws/client/metadata
17github.com/aws/aws-sdk-go/aws/request
18github.com/aws/aws-sdk-go/aws/corehandlers
19github.com/aws/aws-sdk-go/aws/credentials/stscreds
20github.com/aws/aws-sdk-go/aws/defaults
21github.com/aws/aws-sdk-go/aws/awsutil
22github.com/aws/aws-sdk-go/aws/signer/v4
23github.com/aws/aws-sdk-go/private/protocol
24github.com/aws/aws-sdk-go/private/protocol/restxml
25github.com/aws/aws-sdk-go/service/sts
26github.com/aws/aws-sdk-go/aws/credentials/endpointcreds
27github.com/aws/aws-sdk-go/private/protocol/rest
28github.com/aws/aws-sdk-go/private/protocol/query
29github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil
30github.com/aws/aws-sdk-go/private/protocol/query/queryutil
31# github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
32github.com/bgentry/go-netrc/netrc
33# github.com/blang/semver v3.5.1+incompatible
34github.com/blang/semver
35# github.com/davecgh/go-spew v1.1.0
36github.com/davecgh/go-spew/spew
37# github.com/go-ini/ini v1.23.1
38github.com/go-ini/ini
39# github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce
40github.com/hashicorp/errwrap
41# github.com/hashicorp/go-cleanhttp v0.0.0-20170211013415-3573b8b52aa7
42github.com/hashicorp/go-cleanhttp
43# github.com/hashicorp/go-getter v0.0.0-20170207215532-c3d66e76678d
44github.com/hashicorp/go-getter
45github.com/hashicorp/go-getter/helper/url
46# github.com/hashicorp/go-multierror v0.0.0-20150916205742-d30f09973e19
47github.com/hashicorp/go-multierror
48# github.com/hashicorp/go-plugin v0.0.0-20170217162722-f72692aebca2
49github.com/hashicorp/go-plugin
50# github.com/hashicorp/go-uuid v0.0.0-20160120003506-36289988d83c
51github.com/hashicorp/go-uuid
52# github.com/hashicorp/go-version v0.0.0-20161031182605-e96d38404026
53github.com/hashicorp/go-version
54# github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f
55github.com/hashicorp/hcl
56github.com/hashicorp/hcl/hcl/ast
57github.com/hashicorp/hcl/hcl/parser
58github.com/hashicorp/hcl/hcl/token
59github.com/hashicorp/hcl/json/parser
60github.com/hashicorp/hcl/hcl/scanner
61github.com/hashicorp/hcl/hcl/strconv
62github.com/hashicorp/hcl/json/scanner
63github.com/hashicorp/hcl/json/token
64# github.com/hashicorp/hil v0.0.0-20170512213305-fac2259da677
65github.com/hashicorp/hil
66github.com/hashicorp/hil/ast
67github.com/hashicorp/hil/parser
68github.com/hashicorp/hil/scanner
69# github.com/hashicorp/logutils v0.0.0-20150609070431-0dc08b1671f3
70github.com/hashicorp/logutils
71# github.com/hashicorp/terraform v0.10.0
72github.com/hashicorp/terraform/plugin
73github.com/hashicorp/terraform/helper/schema
74github.com/hashicorp/terraform/terraform
75github.com/hashicorp/terraform/plugin/discovery
76github.com/hashicorp/terraform/config
77github.com/hashicorp/terraform/helper/hashcode
78github.com/hashicorp/terraform/config/module
79github.com/hashicorp/terraform/dag
80github.com/hashicorp/terraform/flatmap
81github.com/hashicorp/terraform/helper/experiment
82github.com/hashicorp/terraform/helper/hilmapstructure
83github.com/hashicorp/terraform/helper/shadow
84github.com/hashicorp/terraform/moduledeps
85github.com/hashicorp/terraform/helper/resource
86github.com/hashicorp/terraform/helper/config
87github.com/hashicorp/terraform/helper/logging
88# github.com/hashicorp/yamux v0.0.0-20160720233140-d1caa6c97c9f
89github.com/hashicorp/yamux
90# github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7
91github.com/jmespath/go-jmespath
92# github.com/mitchellh/copystructure v0.0.0-20161013195342-5af94aef99f5
93github.com/mitchellh/copystructure
94# github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747
95github.com/mitchellh/go-homedir
96# github.com/mitchellh/hashstructure v0.0.0-20160209213820-6b17d669fac5
97github.com/mitchellh/hashstructure
98# github.com/mitchellh/mapstructure v0.0.0-20170307201123-53818660ed49
99github.com/mitchellh/mapstructure
100# github.com/mitchellh/reflectwalk v0.0.0-20161003174516-92573fe8d000
101github.com/mitchellh/reflectwalk
102# github.com/satori/go.uuid v0.0.0-20160927100844-b061729afc07
103github.com/satori/go.uuid
104# golang.org/x/crypto v0.0.0-20170808112155-b176d7def5d7
105golang.org/x/crypto/openpgp
106golang.org/x/crypto/bcrypt
107golang.org/x/crypto/openpgp/armor
108golang.org/x/crypto/openpgp/errors
109golang.org/x/crypto/openpgp/packet
110golang.org/x/crypto/openpgp/s2k
111golang.org/x/crypto/blowfish
112golang.org/x/crypto/cast5
113golang.org/x/crypto/openpgp/elgamal
114# golang.org/x/net v0.0.0-20170809000501-1c05540f6879
115golang.org/x/net/html
116golang.org/x/net/html/atom
diff --git a/vendor/vendor.json b/vendor/vendor.json
deleted file mode 100644
index 2ed1483..0000000
--- a/vendor/vendor.json
+++ /dev/null
@@ -1,640 +0,0 @@
1{
2 "comment": "",
3 "ignore": "appengine test github.com/hashicorp/nomad/ github.com/hashicorp/terraform/backend",
4 "package": [
5 {
6 "checksumSHA1": "YjE/nBvoiV2Z821c8uoxtQLCUSY=",
7 "path": "github.com/DreamItGetIT/statuscake",
8 "revision": "85edefcbdaa39278c9db647d135d1dc8bccdad96",
9 "revisionTime": "2018-07-28T15:29:38Z"
10 },
11 {
12 "checksumSHA1": "FIL83loX9V9APvGQIjJpbxq53F0=",
13 "path": "github.com/apparentlymart/go-cidr/cidr",
14 "revision": "7e4b007599d4e2076d9a81be723b3912852dda2c",
15 "revisionTime": "2017-04-18T07:21:50Z"
16 },
17 {
18 "checksumSHA1": "+2yCNqbcf7VcavAptooQReTGiHY=",
19 "path": "github.com/apparentlymart/go-rundeck-api",
20 "revision": "f6af74d34d1ef69a511c59173876fc1174c11f0d",
21 "revisionTime": "2016-08-26T14:30:32Z"
22 },
23 {
24 "checksumSHA1": "fFU9OeM0pKWGL3D+Fa3PmHSjjLg=",
25 "path": "github.com/aws/aws-sdk-go/aws",
26 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
27 "revisionTime": "2017-06-02T18:54:01Z",
28 "version": "v1.8.34",
29 "versionExact": "v1.8.34"
30 },
31 {
32 "checksumSHA1": "Y9W+4GimK4Fuxq+vyIskVYFRnX4=",
33 "path": "github.com/aws/aws-sdk-go/aws/awserr",
34 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
35 "revisionTime": "2017-06-02T18:54:01Z",
36 "version": "v1.8.34",
37 "versionExact": "v1.8.34"
38 },
39 {
40 "checksumSHA1": "yyYr41HZ1Aq0hWc3J5ijXwYEcac=",
41 "path": "github.com/aws/aws-sdk-go/aws/awsutil",
42 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
43 "revisionTime": "2017-06-02T18:54:01Z",
44 "version": "v1.8.34",
45 "versionExact": "v1.8.34"
46 },
47 {
48 "checksumSHA1": "gcA6wFbLBJLLO/6g+AH9QoQQX1U=",
49 "path": "github.com/aws/aws-sdk-go/aws/client",
50 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
51 "revisionTime": "2017-06-02T18:54:01Z",
52 "version": "v1.8.34",
53 "versionExact": "v1.8.34"
54 },
55 {
56 "checksumSHA1": "ieAJ+Cvp/PKv1LpUEnUXpc3OI6E=",
57 "path": "github.com/aws/aws-sdk-go/aws/client/metadata",
58 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
59 "revisionTime": "2017-06-02T18:54:01Z",
60 "version": "v1.8.34",
61 "versionExact": "v1.8.34"
62 },
63 {
64 "checksumSHA1": "7/8j/q0TWtOgXyvEcv4B2Dhl00o=",
65 "path": "github.com/aws/aws-sdk-go/aws/corehandlers",
66 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
67 "revisionTime": "2017-06-02T18:54:01Z",
68 "version": "v1.8.34",
69 "versionExact": "v1.8.34"
70 },
71 {
72 "checksumSHA1": "Y+cPwQL0dZMyqp3wI+KJWmA9KQ8=",
73 "path": "github.com/aws/aws-sdk-go/aws/credentials",
74 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
75 "revisionTime": "2017-06-02T18:54:01Z",
76 "version": "v1.8.34",
77 "versionExact": "v1.8.34"
78 },
79 {
80 "checksumSHA1": "u3GOAJLmdvbuNUeUEcZSEAOeL/0=",
81 "path": "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds",
82 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
83 "revisionTime": "2017-06-02T18:54:01Z",
84 "version": "v1.8.34",
85 "versionExact": "v1.8.34"
86 },
87 {
88 "checksumSHA1": "NUJUTWlc1sV8b7WjfiYc4JZbXl0=",
89 "path": "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds",
90 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
91 "revisionTime": "2017-06-02T18:54:01Z",
92 "version": "v1.8.34",
93 "versionExact": "v1.8.34"
94 },
95 {
96 "checksumSHA1": "JEYqmF83O5n5bHkupAzA6STm0no=",
97 "path": "github.com/aws/aws-sdk-go/aws/credentials/stscreds",
98 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
99 "revisionTime": "2017-06-02T18:54:01Z",
100 "version": "v1.8.34",
101 "versionExact": "v1.8.34"
102 },
103 {
104 "checksumSHA1": "ZdtYh3ZHSgP/WEIaqwJHTEhpkbs=",
105 "path": "github.com/aws/aws-sdk-go/aws/defaults",
106 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
107 "revisionTime": "2017-06-02T18:54:01Z",
108 "version": "v1.8.34",
109 "versionExact": "v1.8.34"
110 },
111 {
112 "checksumSHA1": "/EXbk/z2TWjWc1Hvb4QYs3Wmhb8=",
113 "path": "github.com/aws/aws-sdk-go/aws/ec2metadata",
114 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
115 "revisionTime": "2017-06-02T18:54:01Z",
116 "version": "v1.8.34",
117 "versionExact": "v1.8.34"
118 },
119 {
120 "checksumSHA1": "vaHB7ND2ZMMwBwrdT0KJUKT1VaM=",
121 "path": "github.com/aws/aws-sdk-go/aws/endpoints",
122 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
123 "revisionTime": "2017-06-02T18:54:01Z",
124 "version": "v1.8.34",
125 "versionExact": "v1.8.34"
126 },
127 {
128 "checksumSHA1": "Utpqcq3J2hqoaKEsjI7kDF9bUkg=",
129 "path": "github.com/aws/aws-sdk-go/aws/request",
130 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
131 "revisionTime": "2017-06-02T18:54:01Z",
132 "version": "v1.8.34",
133 "versionExact": "v1.8.34"
134 },
135 {
136 "checksumSHA1": "Y20DEtMtbfE9qTtmoi2NYV1x7aA=",
137 "path": "github.com/aws/aws-sdk-go/aws/session",
138 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
139 "revisionTime": "2017-06-02T18:54:01Z",
140 "version": "v1.8.34",
141 "versionExact": "v1.8.34"
142 },
143 {
144 "checksumSHA1": "SvIsunO8D9MEKbetMENA4WRnyeE=",
145 "path": "github.com/aws/aws-sdk-go/aws/signer/v4",
146 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
147 "revisionTime": "2017-06-02T18:54:01Z",
148 "version": "v1.8.34",
149 "versionExact": "v1.8.34"
150 },
151 {
152 "checksumSHA1": "04ypv4x12l4q0TksA1zEVsmgpvw=",
153 "path": "github.com/aws/aws-sdk-go/internal/shareddefaults",
154 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
155 "revisionTime": "2017-06-02T18:54:01Z",
156 "version": "v1.8.34",
157 "versionExact": "v1.8.34"
158 },
159 {
160 "checksumSHA1": "wk7EyvDaHwb5qqoOP/4d3cV0708=",
161 "path": "github.com/aws/aws-sdk-go/private/protocol",
162 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
163 "revisionTime": "2017-06-02T18:54:01Z",
164 "version": "v1.8.34",
165 "versionExact": "v1.8.34"
166 },
167 {
168 "checksumSHA1": "ZqY5RWavBLWTo6j9xqdyBEaNFRk=",
169 "path": "github.com/aws/aws-sdk-go/private/protocol/query",
170 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
171 "revisionTime": "2017-06-02T18:54:01Z",
172 "version": "v1.8.34",
173 "versionExact": "v1.8.34"
174 },
175 {
176 "checksumSHA1": "Drt1JfLMa0DQEZLWrnMlTWaIcC8=",
177 "path": "github.com/aws/aws-sdk-go/private/protocol/query/queryutil",
178 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
179 "revisionTime": "2017-06-02T18:54:01Z",
180 "version": "v1.8.34",
181 "versionExact": "v1.8.34"
182 },
183 {
184 "checksumSHA1": "VCTh+dEaqqhog5ncy/WTt9+/gFM=",
185 "path": "github.com/aws/aws-sdk-go/private/protocol/rest",
186 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
187 "revisionTime": "2017-06-02T18:54:01Z",
188 "version": "v1.8.34",
189 "versionExact": "v1.8.34"
190 },
191 {
192 "checksumSHA1": "ODo+ko8D6unAxZuN1jGzMcN4QCc=",
193 "path": "github.com/aws/aws-sdk-go/private/protocol/restxml",
194 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
195 "revisionTime": "2017-06-02T18:54:01Z",
196 "version": "v1.8.34",
197 "versionExact": "v1.8.34"
198 },
199 {
200 "checksumSHA1": "0qYPUga28aQVkxZgBR3Z86AbGUQ=",
201 "path": "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil",
202 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
203 "revisionTime": "2017-06-02T18:54:01Z",
204 "version": "v1.8.34",
205 "versionExact": "v1.8.34"
206 },
207 {
208 "checksumSHA1": "krqUUMDYRN2ohYcumxZl8BTR5EQ=",
209 "path": "github.com/aws/aws-sdk-go/service/s3",
210 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
211 "revisionTime": "2017-06-02T18:54:01Z",
212 "version": "v1.8.34",
213 "versionExact": "v1.8.34"
214 },
215 {
216 "checksumSHA1": "VH5y62f+SDyEIqnTibiPtQ687i8=",
217 "path": "github.com/aws/aws-sdk-go/service/sts",
218 "revision": "be4fa13e47938e4801fada8c8ca3d1867ad3dcb3",
219 "revisionTime": "2017-06-02T18:54:01Z",
220 "version": "v1.8.34",
221 "versionExact": "v1.8.34"
222 },
223 {
224 "checksumSHA1": "nqw2Qn5xUklssHTubS5HDvEL9L4=",
225 "path": "github.com/bgentry/go-netrc/netrc",
226 "revision": "9fd32a8b3d3d3f9d43c341bfe098430e07609480",
227 "revisionTime": "2014-04-22T17:41:19Z"
228 },
229 {
230 "checksumSHA1": "OT4XN9z5k69e2RsMSpwW74B+yk4=",
231 "path": "github.com/blang/semver",
232 "revision": "2ee87856327ba09384cabd113bc6b5d174e9ec0f",
233 "revisionTime": "2017-07-27T06:48:18Z"
234 },
235 {
236 "checksumSHA1": "dvabztWVQX8f6oMLRyv4dLH+TGY=",
237 "path": "github.com/davecgh/go-spew/spew",
238 "revision": "346938d642f2ec3594ed81d874461961cd0faa76",
239 "revisionTime": "2016-10-29T20:57:26Z"
240 },
241 {
242 "checksumSHA1": "BCv50o5pDkoSG3vYKOSai1Z8p3w=",
243 "path": "github.com/fsouza/go-dockerclient",
244 "revision": "1d4f4ae73768d3ca16a6fb964694f58dc5eba601",
245 "revisionTime": "2016-04-27T17:25:47Z",
246 "tree": true
247 },
248 {
249 "checksumSHA1": "1K+xrZ1PBez190iGt5OnMtGdih4=",
250 "comment": "v1.8.6",
251 "path": "github.com/go-ini/ini",
252 "revision": "766e555c68dc8bda90d197ee8946c37519c19409",
253 "revisionTime": "2017-01-17T13:00:17Z"
254 },
255 {
256 "checksumSHA1": "cdOCt0Yb+hdErz8NAQqayxPmRsY=",
257 "path": "github.com/hashicorp/errwrap",
258 "revision": "7554cd9344cec97297fa6649b055a8c98c2a1e55"
259 },
260 {
261 "checksumSHA1": "b8F628srIitj5p7Y130xc9k0QWs=",
262 "path": "github.com/hashicorp/go-cleanhttp",
263 "revision": "3573b8b52aa7b37b9358d966a898feb387f62437",
264 "revisionTime": "2017-02-11T01:34:15Z"
265 },
266 {
267 "checksumSHA1": "nsL2kI426RMuq1jw15e7igFqdIY=",
268 "path": "github.com/hashicorp/go-getter",
269 "revision": "c3d66e76678dce180a7b452653472f949aedfbcd",
270 "revisionTime": "2017-02-07T21:55:32Z"
271 },
272 {
273 "checksumSHA1": "9J+kDr29yDrwsdu2ULzewmqGjpA=",
274 "path": "github.com/hashicorp/go-getter/helper/url",
275 "revision": "c3d66e76678dce180a7b452653472f949aedfbcd",
276 "revisionTime": "2017-02-07T21:55:32Z"
277 },
278 {
279 "checksumSHA1": "lrSl49G23l6NhfilxPM0XFs5rZo=",
280 "path": "github.com/hashicorp/go-multierror",
281 "revision": "d30f09973e19c1dfcd120b2d9c4f168e68d6b5d5"
282 },
283 {
284 "checksumSHA1": "b0nQutPMJHeUmz4SjpreotAo6Yk=",
285 "path": "github.com/hashicorp/go-plugin",
286 "revision": "f72692aebca2008343a9deb06ddb4b17f7051c15",
287 "revisionTime": "2017-02-17T16:27:05Z"
288 },
289 {
290 "checksumSHA1": "85XUnluYJL7F55ptcwdmN8eSOsk=",
291 "path": "github.com/hashicorp/go-uuid",
292 "revision": "36289988d83ca270bc07c234c36f364b0dd9c9a7"
293 },
294 {
295 "checksumSHA1": "EcZfls6vcqjasWV/nBlu+C+EFmc=",
296 "path": "github.com/hashicorp/go-version",
297 "revision": "e96d3840402619007766590ecea8dd7af1292276",
298 "revisionTime": "2016-10-31T18:26:05Z"
299 },
300 {
301 "checksumSHA1": "o3XZZdOnSnwQSpYw215QV75ZDeI=",
302 "path": "github.com/hashicorp/hcl",
303 "revision": "a4b07c25de5ff55ad3b8936cea69a79a3d95a855",
304 "revisionTime": "2017-05-04T19:02:34Z"
305 },
306 {
307 "checksumSHA1": "XQmjDva9JCGGkIecOgwtBEMCJhU=",
308 "path": "github.com/hashicorp/hcl/hcl/ast",
309 "revision": "a4b07c25de5ff55ad3b8936cea69a79a3d95a855",
310 "revisionTime": "2017-05-04T19:02:34Z"
311 },
312 {
313 "checksumSHA1": "teokXoyRXEJ0vZHOWBD11l5YFNI=",
314 "path": "github.com/hashicorp/hcl/hcl/parser",
315 "revision": "a4b07c25de5ff55ad3b8936cea69a79a3d95a855",
316 "revisionTime": "2017-05-04T19:02:34Z"
317 },
318 {
319 "checksumSHA1": "z6wdP4mRw4GVjShkNHDaOWkbxS0=",
320 "path": "github.com/hashicorp/hcl/hcl/scanner",
321 "revision": "a4b07c25de5ff55ad3b8936cea69a79a3d95a855",
322 "revisionTime": "2017-05-04T19:02:34Z"
323 },
324 {
325 "checksumSHA1": "oS3SCN9Wd6D8/LG0Yx1fu84a7gI=",
326 "path": "github.com/hashicorp/hcl/hcl/strconv",
327 "revision": "a4b07c25de5ff55ad3b8936cea69a79a3d95a855",
328 "revisionTime": "2017-05-04T19:02:34Z"
329 },
330 {
331 "checksumSHA1": "c6yprzj06ASwCo18TtbbNNBHljA=",
332 "path": "github.com/hashicorp/hcl/hcl/token",
333 "revision": "a4b07c25de5ff55ad3b8936cea69a79a3d95a855",
334 "revisionTime": "2017-05-04T19:02:34Z"
335 },
336 {
337 "checksumSHA1": "PwlfXt7mFS8UYzWxOK5DOq0yxS0=",
338 "path": "github.com/hashicorp/hcl/json/parser",
339 "revision": "a4b07c25de5ff55ad3b8936cea69a79a3d95a855",
340 "revisionTime": "2017-05-04T19:02:34Z"
341 },
342 {
343 "checksumSHA1": "YdvFsNOMSWMLnY6fcliWQa0O5Fw=",
344 "path": "github.com/hashicorp/hcl/json/scanner",
345 "revision": "a4b07c25de5ff55ad3b8936cea69a79a3d95a855",
346 "revisionTime": "2017-05-04T19:02:34Z"
347 },
348 {
349 "checksumSHA1": "fNlXQCQEnb+B3k5UDL/r15xtSJY=",
350 "path": "github.com/hashicorp/hcl/json/token",
351 "revision": "a4b07c25de5ff55ad3b8936cea69a79a3d95a855",
352 "revisionTime": "2017-05-04T19:02:34Z"
353 },
354 {
355 "checksumSHA1": "M09yxoBoCEtG7EcHR8aEWLzMMJc=",
356 "path": "github.com/hashicorp/hil",
357 "revision": "fac2259da677551de1fb92b844c4d020a38d8468",
358 "revisionTime": "2017-05-12T21:33:05Z"
359 },
360 {
361 "checksumSHA1": "0S0KeBcfqVFYBPeZkuJ4fhQ5mCA=",
362 "path": "github.com/hashicorp/hil/ast",
363 "revision": "fac2259da677551de1fb92b844c4d020a38d8468",
364 "revisionTime": "2017-05-12T21:33:05Z"
365 },
366 {
367 "checksumSHA1": "P5PZ3k7SmqWmxgJ8Q0gLzeNpGhE=",
368 "path": "github.com/hashicorp/hil/parser",
369 "revision": "fac2259da677551de1fb92b844c4d020a38d8468",
370 "revisionTime": "2017-05-12T21:33:05Z"
371 },
372 {
373 "checksumSHA1": "DC1k5kOua4oFqmo+JRt0YzfP44o=",
374 "path": "github.com/hashicorp/hil/scanner",
375 "revision": "fac2259da677551de1fb92b844c4d020a38d8468",
376 "revisionTime": "2017-05-12T21:33:05Z"
377 },
378 {
379 "checksumSHA1": "vt+P9D2yWDO3gdvdgCzwqunlhxU=",
380 "path": "github.com/hashicorp/logutils",
381 "revision": "0dc08b1671f34c4250ce212759ebd880f743d883",
382 "revisionTime": "2015-06-09T07:04:31Z"
383 },
384 {
385 "checksumSHA1": "KPrCMDPNcLmO7K6xPcJSl86LwPk=",
386 "path": "github.com/hashicorp/terraform/config",
387 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
388 "revisionTime": "2017-08-02T18:39:14Z",
389 "version": "v0.10.0",
390 "versionExact": "v0.10.0"
391 },
392 {
393 "checksumSHA1": "uPCJ6seQo9kvoNSfwNWKX9KzVMk=",
394 "path": "github.com/hashicorp/terraform/config/module",
395 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
396 "revisionTime": "2017-08-02T18:39:14Z",
397 "version": "v0.10.0",
398 "versionExact": "v0.10.0"
399 },
400 {
401 "checksumSHA1": "w+l+UGTmwYNJ+L0p2vTd6+yqjok=",
402 "path": "github.com/hashicorp/terraform/dag",
403 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
404 "revisionTime": "2017-08-02T18:39:14Z",
405 "version": "v0.10.0",
406 "versionExact": "v0.10.0"
407 },
408 {
409 "checksumSHA1": "P8gNPDuOzmiK4Lz9xG7OBy4Rlm8=",
410 "path": "github.com/hashicorp/terraform/flatmap",
411 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
412 "revisionTime": "2017-08-02T18:39:14Z",
413 "version": "v0.10.0",
414 "versionExact": "v0.10.0"
415 },
416 {
417 "checksumSHA1": "uT6Q9RdSRAkDjyUgQlJ2XKJRab4=",
418 "path": "github.com/hashicorp/terraform/helper/config",
419 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
420 "revisionTime": "2017-08-02T18:39:14Z",
421 "version": "v0.10.0",
422 "versionExact": "v0.10.0"
423 },
424 {
425 "checksumSHA1": "Vbo55GDzPgG/L/+W2pcvDhxrPZc=",
426 "path": "github.com/hashicorp/terraform/helper/experiment",
427 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
428 "revisionTime": "2017-08-02T18:39:14Z",
429 "version": "v0.10.0",
430 "versionExact": "v0.10.0"
431 },
432 {
433 "checksumSHA1": "BmIPKTr0zDutSJdyq7pYXrK1I3E=",
434 "path": "github.com/hashicorp/terraform/helper/hashcode",
435 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
436 "revisionTime": "2017-08-02T18:39:14Z",
437 "version": "v0.10.0",
438 "versionExact": "v0.10.0"
439 },
440 {
441 "checksumSHA1": "B267stWNQd0/pBTXHfI/tJsxzfc=",
442 "path": "github.com/hashicorp/terraform/helper/hilmapstructure",
443 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
444 "revisionTime": "2017-08-02T18:39:14Z",
445 "version": "v0.10.0",
446 "versionExact": "v0.10.0"
447 },
448 {
449 "checksumSHA1": "2wJa9F3BGlbe2DNqH5lb5POayRI=",
450 "path": "github.com/hashicorp/terraform/helper/logging",
451 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
452 "revisionTime": "2017-08-02T18:39:14Z",
453 "version": "v0.10.0",
454 "versionExact": "v0.10.0"
455 },
456 {
457 "checksumSHA1": "dhU2woQaSEI2OnbYLdkHxf7/nu8=",
458 "path": "github.com/hashicorp/terraform/helper/resource",
459 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
460 "revisionTime": "2017-08-02T18:39:14Z",
461 "version": "v0.10.0",
462 "versionExact": "v0.10.0"
463 },
464 {
465 "checksumSHA1": "0smlb90amL15c/6nWtW4DV6Lqh8=",
466 "path": "github.com/hashicorp/terraform/helper/schema",
467 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
468 "revisionTime": "2017-08-02T18:39:14Z",
469 "version": "v0.10.0",
470 "versionExact": "v0.10.0"
471 },
472 {
473 "checksumSHA1": "1yCGh/Wl4H4ODBBRmIRFcV025b0=",
474 "path": "github.com/hashicorp/terraform/helper/shadow",
475 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
476 "revisionTime": "2017-08-02T18:39:14Z",
477 "version": "v0.10.0",
478 "versionExact": "v0.10.0"
479 },
480 {
481 "checksumSHA1": "yFWmdS6yEJZpRJzUqd/mULqCYGk=",
482 "path": "github.com/hashicorp/terraform/moduledeps",
483 "revision": "5bcc1bae5925f44208a83279b6d4d250da01597b",
484 "revisionTime": "2017-08-09T21:54:59Z"
485 },
486 {
487 "checksumSHA1": "4ODNVUds3lyBf7gV02X1EeYR4GA=",
488 "path": "github.com/hashicorp/terraform/plugin",
489 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
490 "revisionTime": "2017-08-02T18:39:14Z",
491 "version": "v0.10.0",
492 "versionExact": "v0.10.0"
493 },
494 {
495 "checksumSHA1": "mujz3BDg1X82ynvJncCFUT6/7XI=",
496 "path": "github.com/hashicorp/terraform/plugin/discovery",
497 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
498 "revisionTime": "2017-08-02T18:39:14Z",
499 "version": "v0.10.0",
500 "versionExact": "v0.10.0"
501 },
502 {
503 "checksumSHA1": "ksfNQjZs/6llziARojABd6iuvdw=",
504 "path": "github.com/hashicorp/terraform/terraform",
505 "revision": "2041053ee9444fa8175a298093b55a89586a1823",
506 "revisionTime": "2017-08-02T18:39:14Z",
507 "version": "v0.10.0",
508 "versionExact": "v0.10.0"
509 },
510 {
511 "checksumSHA1": "ZhK6IO2XN81Y+3RAjTcVm1Ic7oU=",
512 "path": "github.com/hashicorp/yamux",
513 "revision": "d1caa6c97c9fc1cc9e83bbe34d0603f9ff0ce8bd",
514 "revisionTime": "2016-07-20T23:31:40Z"
515 },
516 {
517 "checksumSHA1": "0ZrwvB6KoGPj2PoDNSEJwxQ6Mog=",
518 "comment": "0.2.2-2-gc01cf91",
519 "path": "github.com/jmespath/go-jmespath",
520 "revision": "bd40a432e4c76585ef6b72d3fd96fb9b6dc7b68d",
521 "revisionTime": "2016-08-03T19:07:31Z"
522 },
523 {
524 "checksumSHA1": "guxbLo8KHHBeM0rzou4OTzzpDNs=",
525 "path": "github.com/mitchellh/copystructure",
526 "revision": "5af94aef99f597e6a9e1f6ac6be6ce0f3c96b49d",
527 "revisionTime": "2016-10-13T19:53:42Z"
528 },
529 {
530 "checksumSHA1": "V/quM7+em2ByJbWBLOsEwnY3j/Q=",
531 "path": "github.com/mitchellh/go-homedir",
532 "revision": "b8bc1bf767474819792c23f32d8286a45736f1c6",
533 "revisionTime": "2016-12-03T19:45:07Z"
534 },
535 {
536 "checksumSHA1": "xyoJKalfQwTUN1qzZGQKWYAwl0A=",
537 "path": "github.com/mitchellh/hashstructure",
538 "revision": "6b17d669fac5e2f71c16658d781ec3fdd3802b69"
539 },
540 {
541 "checksumSHA1": "MlX15lJuV8DYARX5RJY8rqrSEWQ=",
542 "path": "github.com/mitchellh/mapstructure",
543 "revision": "53818660ed4955e899c0bcafa97299a388bd7c8e",
544 "revisionTime": "2017-03-07T20:11:23Z"
545 },
546 {
547 "checksumSHA1": "vBpuqNfSTZcAR/0tP8tNYacySGs=",
548 "path": "github.com/mitchellh/reflectwalk",
549 "revision": "92573fe8d000a145bfebc03a16bc22b34945867f",
550 "revisionTime": "2016-10-03T17:45:16Z"
551 },
552 {
553 "checksumSHA1": "u5s2PZ7fzCOqQX7bVPf9IJ+qNLQ=",
554 "path": "github.com/rancher/go-rancher",
555 "revision": "ec24b7f12fca9f78fbfcd62a0ea8bce14ade8792",
556 "revisionTime": "2017-04-07T04:09:43Z"
557 },
558 {
559 "checksumSHA1": "zmC8/3V4ls53DJlNTKDZwPSC/dA=",
560 "path": "github.com/satori/go.uuid",
561 "revision": "b061729afc07e77a8aa4fad0a2fd840958f1942a",
562 "revisionTime": "2016-09-27T10:08:44Z"
563 },
564 {
565 "checksumSHA1": "vE43s37+4CJ2CDU6TlOUOYE0K9c=",
566 "path": "golang.org/x/crypto/bcrypt",
567 "revision": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd",
568 "revisionTime": "2016-10-31T15:37:30Z"
569 },
570 {
571 "checksumSHA1": "JsJdKXhz87gWenMwBeejTOeNE7k=",
572 "path": "golang.org/x/crypto/blowfish",
573 "revision": "9477e0b78b9ac3d0b03822fd95422e2fe07627cd",
574 "revisionTime": "2016-10-31T15:37:30Z"
575 },
576 {
577 "checksumSHA1": "TT1rac6kpQp2vz24m5yDGUNQ/QQ=",
578 "path": "golang.org/x/crypto/cast5",
579 "revision": "b176d7def5d71bdd214203491f89843ed217f420",
580 "revisionTime": "2017-07-23T04:49:35Z"
581 },
582 {
583 "checksumSHA1": "IIhFTrLlmlc6lEFSitqi4aw2lw0=",
584 "path": "golang.org/x/crypto/openpgp",
585 "revision": "b176d7def5d71bdd214203491f89843ed217f420",
586 "revisionTime": "2017-07-23T04:49:35Z"
587 },
588 {
589 "checksumSHA1": "olOKkhrdkYQHZ0lf1orrFQPQrv4=",
590 "path": "golang.org/x/crypto/openpgp/armor",
591 "revision": "b176d7def5d71bdd214203491f89843ed217f420",
592 "revisionTime": "2017-07-23T04:49:35Z"
593 },
594 {
595 "checksumSHA1": "eo/KtdjieJQXH7Qy+faXFcF70ME=",
596 "path": "golang.org/x/crypto/openpgp/elgamal",
597 "revision": "b176d7def5d71bdd214203491f89843ed217f420",
598 "revisionTime": "2017-07-23T04:49:35Z"
599 },
600 {
601 "checksumSHA1": "rlxVSaGgqdAgwblsErxTxIfuGfg=",
602 "path": "golang.org/x/crypto/openpgp/errors",
603 "revision": "b176d7def5d71bdd214203491f89843ed217f420",
604 "revisionTime": "2017-07-23T04:49:35Z"
605 },
606 {
607 "checksumSHA1": "Pq88+Dgh04UdXWZN6P+bLgYnbRc=",
608 "path": "golang.org/x/crypto/openpgp/packet",
609 "revision": "b176d7def5d71bdd214203491f89843ed217f420",
610 "revisionTime": "2017-07-23T04:49:35Z"
611 },
612 {
613 "checksumSHA1": "s2qT4UwvzBSkzXuiuMkowif1Olw=",
614 "path": "golang.org/x/crypto/openpgp/s2k",
615 "revision": "b176d7def5d71bdd214203491f89843ed217f420",
616 "revisionTime": "2017-07-23T04:49:35Z"
617 },
618 {
619 "checksumSHA1": "vqc3a+oTUGX8PmD0TS+qQ7gmN8I=",
620 "path": "golang.org/x/net/html",
621 "revision": "1c05540f6879653db88113bc4a2b70aec4bd491f",
622 "revisionTime": "2017-08-04T00:04:37Z"
623 },
624 {
625 "checksumSHA1": "z79z5msRzgU48FCZxSuxfU8b4rs=",
626 "path": "golang.org/x/net/html/atom",
627 "revision": "1c05540f6879653db88113bc4a2b70aec4bd491f",
628 "revisionTime": "2017-08-04T00:04:37Z"
629 },
630 {
631 "checksumSHA1": "wICWAGQfZcHD2y0dHesz9R2YSiw=",
632 "path": "k8s.io/kubernetes/pkg/apimachinery",
633 "revision": "b0b7a323cc5a4a2019b2e9520c21c7830b7f708e",
634 "revisionTime": "2017-04-03T20:32:25Z",
635 "version": "v1.6.1",
636 "versionExact": "v1.6.1"
637 }
638 ],
639 "rootPath": "github.com/terraform-providers/terraform-provider-statuscake"
640}