Merge pull request #49300 from tklauser/syscall-to-x-sys-unix
Automatic merge from submit-queue Switch from package syscall to golang.org/x/sys/unix **What this PR does / why we need it**: The syscall package is locked down and the comment in https://github.com/golang/go/blob/master/src/syscall/syscall.go#L21-L24 advises to switch code to use the corresponding package from golang.org/x/sys. This PR does so and replaces usage of package syscall with package golang.org/x/sys/unix where applicable. This will also allow to get updates and fixes without having to use a new go version. In order to get the latest functionality, golang.org/x/sys/ is re-vendored. This also allows to use Eventfd() from this package instead of calling the eventfd() C function. **Special notes for your reviewer**: This follows previous works in other Go projects, see e.g. moby/moby#33399, cilium/cilium#588 **Release note**: ```release-note NONE ```
This commit is contained in:
4
Godeps/Godeps.json
generated
4
Godeps/Godeps.json
generated
@@ -2778,11 +2778,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/sys/unix",
|
"ImportPath": "golang.org/x/sys/unix",
|
||||||
"Rev": "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9"
|
"Rev": "7a4fde3fda8ef580a89dbae8138c26041be14299"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/sys/windows",
|
"ImportPath": "golang.org/x/sys/windows",
|
||||||
"Rev": "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9"
|
"Rev": "7a4fde3fda8ef580a89dbae8138c26041be14299"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/text/cases",
|
"ImportPath": "golang.org/x/text/cases",
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ go_library(
|
|||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
visibility = ["//build/visible_to:pkg_kubectl_util_CONSUMERS"],
|
visibility = ["//build/visible_to:pkg_kubectl_util_CONSUMERS"],
|
||||||
deps = [
|
deps = [
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ go_library(
|
|||||||
"//pkg/util/interrupt:go_default_library",
|
"//pkg/util/interrupt:go_default_library",
|
||||||
"//vendor/github.com/docker/docker/pkg/term:go_default_library",
|
"//vendor/github.com/docker/docker/pkg/term:go_default_library",
|
||||||
"//vendor/github.com/mitchellh/go-wordwrap:go_default_library",
|
"//vendor/github.com/mitchellh/go-wordwrap:go_default_library",
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
||||||
"//vendor/k8s.io/client-go/tools/remotecommand:go_default_library",
|
"//vendor/k8s.io/client-go/tools/remotecommand:go_default_library",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ package term
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
|
||||||
|
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
"k8s.io/apimachinery/pkg/util/runtime"
|
"k8s.io/apimachinery/pkg/util/runtime"
|
||||||
"k8s.io/client-go/tools/remotecommand"
|
"k8s.io/client-go/tools/remotecommand"
|
||||||
)
|
)
|
||||||
@@ -35,7 +35,7 @@ func monitorResizeEvents(fd uintptr, resizeEvents chan<- remotecommand.TerminalS
|
|||||||
defer runtime.HandleCrash()
|
defer runtime.HandleCrash()
|
||||||
|
|
||||||
winch := make(chan os.Signal, 1)
|
winch := make(chan os.Signal, 1)
|
||||||
signal.Notify(winch, syscall.SIGWINCH)
|
signal.Notify(winch, unix.SIGWINCH)
|
||||||
defer signal.Stop(winch)
|
defer signal.Stop(winch)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ limitations under the License.
|
|||||||
package util
|
package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Umask(mask int) (old int, err error) {
|
func Umask(mask int) (old int, err error) {
|
||||||
return syscall.Umask(mask), nil
|
return unix.Umask(mask), nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,23 +4,10 @@ licenses(["notice"])
|
|||||||
|
|
||||||
load(
|
load(
|
||||||
"@io_bazel_rules_go//go:def.bzl",
|
"@io_bazel_rules_go//go:def.bzl",
|
||||||
"cgo_genrule",
|
|
||||||
"go_library",
|
"go_library",
|
||||||
"go_test",
|
"go_test",
|
||||||
)
|
)
|
||||||
|
|
||||||
cgo_genrule(
|
|
||||||
name = "cgo_codegen",
|
|
||||||
srcs = ["threshold_notifier_linux.go"],
|
|
||||||
clinkopts = [
|
|
||||||
"-lz",
|
|
||||||
"-lm",
|
|
||||||
"-lpthread",
|
|
||||||
"-ldl",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_test(
|
go_test(
|
||||||
name = "go_default_test",
|
name = "go_default_test",
|
||||||
srcs = [
|
srcs = [
|
||||||
@@ -53,9 +40,9 @@ go_library(
|
|||||||
"doc.go",
|
"doc.go",
|
||||||
"eviction_manager.go",
|
"eviction_manager.go",
|
||||||
"helpers.go",
|
"helpers.go",
|
||||||
|
"threshold_notifier_linux.go",
|
||||||
"types.go",
|
"types.go",
|
||||||
],
|
],
|
||||||
library = ":cgo_codegen",
|
|
||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
deps = [
|
deps = [
|
||||||
"//pkg/api:go_default_library",
|
"//pkg/api:go_default_library",
|
||||||
@@ -72,6 +59,7 @@ go_library(
|
|||||||
"//pkg/kubelet/util/format:go_default_library",
|
"//pkg/kubelet/util/format:go_default_library",
|
||||||
"//pkg/quota/evaluator/core:go_default_library",
|
"//pkg/quota/evaluator/core:go_default_library",
|
||||||
"//vendor/github.com/golang/glog:go_default_library",
|
"//vendor/github.com/golang/glog:go_default_library",
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/api/core/v1:go_default_library",
|
"//vendor/k8s.io/api/core/v1:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// +build cgo
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2016 The Kubernetes Authors.
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
@@ -18,16 +16,11 @@ limitations under the License.
|
|||||||
|
|
||||||
package eviction
|
package eviction
|
||||||
|
|
||||||
/*
|
|
||||||
#include <sys/eventfd.h>
|
|
||||||
*/
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"syscall"
|
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
type memcgThresholdNotifier struct {
|
type memcgThresholdNotifier struct {
|
||||||
@@ -43,41 +36,40 @@ var _ ThresholdNotifier = &memcgThresholdNotifier{}
|
|||||||
// NewMemCGThresholdNotifier sends notifications when a cgroup threshold
|
// NewMemCGThresholdNotifier sends notifications when a cgroup threshold
|
||||||
// is crossed (in either direction) for a given cgroup attribute
|
// is crossed (in either direction) for a given cgroup attribute
|
||||||
func NewMemCGThresholdNotifier(path, attribute, threshold, description string, handler thresholdNotifierHandlerFunc) (ThresholdNotifier, error) {
|
func NewMemCGThresholdNotifier(path, attribute, threshold, description string, handler thresholdNotifierHandlerFunc) (ThresholdNotifier, error) {
|
||||||
watchfd, err := syscall.Open(fmt.Sprintf("%s/%s", path, attribute), syscall.O_RDONLY, 0)
|
watchfd, err := unix.Open(fmt.Sprintf("%s/%s", path, attribute), unix.O_RDONLY, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
syscall.Close(watchfd)
|
unix.Close(watchfd)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
controlfd, err := syscall.Open(fmt.Sprintf("%s/cgroup.event_control", path), syscall.O_WRONLY, 0)
|
controlfd, err := unix.Open(fmt.Sprintf("%s/cgroup.event_control", path), unix.O_WRONLY, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
syscall.Close(controlfd)
|
unix.Close(controlfd)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
efd, err := C.eventfd(0, C.EFD_CLOEXEC)
|
eventfd, err := unix.Eventfd(0, unix.EFD_CLOEXEC)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
eventfd := int(efd)
|
|
||||||
if eventfd < 0 {
|
if eventfd < 0 {
|
||||||
err = fmt.Errorf("eventfd call failed")
|
err = fmt.Errorf("eventfd call failed")
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
syscall.Close(eventfd)
|
unix.Close(eventfd)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
glog.V(2).Infof("eviction: setting notification threshold to %s", threshold)
|
glog.V(2).Infof("eviction: setting notification threshold to %s", threshold)
|
||||||
config := fmt.Sprintf("%d %d %s", eventfd, watchfd, threshold)
|
config := fmt.Sprintf("%d %d %s", eventfd, watchfd, threshold)
|
||||||
_, err = syscall.Write(controlfd, []byte(config))
|
_, err = unix.Write(controlfd, []byte(config))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -93,7 +85,7 @@ func NewMemCGThresholdNotifier(path, attribute, threshold, description string, h
|
|||||||
func getThresholdEvents(eventfd int, eventCh chan<- struct{}, stopCh <-chan struct{}) {
|
func getThresholdEvents(eventfd int, eventCh chan<- struct{}, stopCh <-chan struct{}) {
|
||||||
for {
|
for {
|
||||||
buf := make([]byte, 8)
|
buf := make([]byte, 8)
|
||||||
_, err := syscall.Read(eventfd, buf)
|
_, err := unix.Read(eventfd, buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -113,9 +105,9 @@ func (n *memcgThresholdNotifier) Start(stopCh <-chan struct{}) {
|
|||||||
select {
|
select {
|
||||||
case <-stopCh:
|
case <-stopCh:
|
||||||
glog.V(2).Infof("eviction: stopping threshold notifier")
|
glog.V(2).Infof("eviction: stopping threshold notifier")
|
||||||
syscall.Close(n.watchfd)
|
unix.Close(n.watchfd)
|
||||||
syscall.Close(n.controlfd)
|
unix.Close(n.controlfd)
|
||||||
syscall.Close(n.eventfd)
|
unix.Close(n.eventfd)
|
||||||
return
|
return
|
||||||
case <-eventCh:
|
case <-eventCh:
|
||||||
glog.V(2).Infof("eviction: threshold crossed")
|
glog.V(2).Infof("eviction: threshold crossed")
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ go_library(
|
|||||||
"//vendor/github.com/containernetworking/cni/pkg/types/020:go_default_library",
|
"//vendor/github.com/containernetworking/cni/pkg/types/020:go_default_library",
|
||||||
"//vendor/github.com/golang/glog:go_default_library",
|
"//vendor/github.com/golang/glog:go_default_library",
|
||||||
"//vendor/github.com/vishvananda/netlink:go_default_library",
|
"//vendor/github.com/vishvananda/netlink:go_default_library",
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/api/core/v1:go_default_library",
|
"//vendor/k8s.io/api/core/v1:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containernetworking/cni/libcni"
|
"github.com/containernetworking/cni/libcni"
|
||||||
@@ -34,6 +33,7 @@ import (
|
|||||||
cnitypes020 "github.com/containernetworking/cni/pkg/types/020"
|
cnitypes020 "github.com/containernetworking/cni/pkg/types/020"
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/vishvananda/netlink"
|
"github.com/vishvananda/netlink"
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
utilerrors "k8s.io/apimachinery/pkg/util/errors"
|
utilerrors "k8s.io/apimachinery/pkg/util/errors"
|
||||||
utilnet "k8s.io/apimachinery/pkg/util/net"
|
utilnet "k8s.io/apimachinery/pkg/util/net"
|
||||||
@@ -286,7 +286,7 @@ func (plugin *kubenetNetworkPlugin) clearBridgeAddressesExcept(keep *net.IPNet)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
addrs, err := netlink.AddrList(bridge, syscall.AF_INET)
|
addrs, err := netlink.AddrList(bridge, unix.AF_INET)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ go_library(
|
|||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
deps = [
|
deps = [
|
||||||
"//vendor/github.com/golang/glog:go_default_library",
|
"//vendor/github.com/golang/glog:go_default_library",
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -22,10 +22,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"syscall"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -43,7 +43,7 @@ func CreateListener(endpoint string) (net.Listener, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unlink to cleanup the previous socket file.
|
// Unlink to cleanup the previous socket file.
|
||||||
err = syscall.Unlink(addr)
|
err = unix.Unlink(addr)
|
||||||
if err != nil && !os.IsNotExist(err) {
|
if err != nil && !os.IsNotExist(err) {
|
||||||
return nil, fmt.Errorf("failed to unlink socket file %q: %v", addr, err)
|
return nil, fmt.Errorf("failed to unlink socket file %q: %v", addr, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ go_library(
|
|||||||
"//pkg/util/iptables:go_default_library",
|
"//pkg/util/iptables:go_default_library",
|
||||||
"//pkg/util/slice:go_default_library",
|
"//pkg/util/slice:go_default_library",
|
||||||
"//vendor/github.com/golang/glog:go_default_library",
|
"//vendor/github.com/golang/glog:go_default_library",
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ limitations under the License.
|
|||||||
|
|
||||||
package userspace
|
package userspace
|
||||||
|
|
||||||
import "syscall"
|
import "golang.org/x/sys/unix"
|
||||||
|
|
||||||
func setRLimit(limit uint64) error {
|
func setRLimit(limit uint64) error {
|
||||||
return syscall.Setrlimit(syscall.RLIMIT_NOFILE, &syscall.Rlimit{Max: limit, Cur: limit})
|
return unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{Max: limit, Cur: limit})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ go_library(
|
|||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = ["flock_unix.go"],
|
srcs = ["flock_unix.go"],
|
||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
|
deps = ["//vendor/golang.org/x/sys/unix:go_default_library"],
|
||||||
)
|
)
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ limitations under the License.
|
|||||||
|
|
||||||
package flock
|
package flock
|
||||||
|
|
||||||
import "syscall"
|
import "golang.org/x/sys/unix"
|
||||||
|
|
||||||
// Acquire acquires a lock on a file for the duration of the process. This method
|
// Acquire acquires a lock on a file for the duration of the process. This method
|
||||||
// is reentrant.
|
// is reentrant.
|
||||||
func Acquire(path string) error {
|
func Acquire(path string) error {
|
||||||
fd, err := syscall.Open(path, syscall.O_CREAT|syscall.O_RDWR, 0600)
|
fd, err := unix.Open(path, unix.O_CREAT|unix.O_RDWR, 0600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -31,5 +31,5 @@ func Acquire(path string) error {
|
|||||||
// We don't need to close the fd since we should hold
|
// We don't need to close the fd since we should hold
|
||||||
// it until the process exits.
|
// it until the process exits.
|
||||||
|
|
||||||
return syscall.Flock(fd, syscall.LOCK_EX)
|
return unix.Flock(fd, unix.LOCK_EX)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ go_library(
|
|||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
deps = [
|
deps = [
|
||||||
"//vendor/github.com/golang/glog:go_default_library",
|
"//vendor/github.com/golang/glog:go_default_library",
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
||||||
"//vendor/k8s.io/utils/exec:go_default_library",
|
"//vendor/k8s.io/utils/exec:go_default_library",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
"k8s.io/apimachinery/pkg/util/sets"
|
"k8s.io/apimachinery/pkg/util/sets"
|
||||||
utilexec "k8s.io/utils/exec"
|
utilexec "k8s.io/utils/exec"
|
||||||
)
|
)
|
||||||
@@ -220,14 +221,14 @@ func exclusiveOpenFailsOnDevice(pathname string) (bool, error) {
|
|||||||
glog.Errorf("Path %q is not refering to a device.", pathname)
|
glog.Errorf("Path %q is not refering to a device.", pathname)
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
fd, errno := syscall.Open(pathname, syscall.O_RDONLY|syscall.O_EXCL, 0)
|
fd, errno := unix.Open(pathname, unix.O_RDONLY|unix.O_EXCL, 0)
|
||||||
// If the device is in use, open will return an invalid fd.
|
// If the device is in use, open will return an invalid fd.
|
||||||
// When this happens, it is expected that Close will fail and throw an error.
|
// When this happens, it is expected that Close will fail and throw an error.
|
||||||
defer syscall.Close(fd)
|
defer unix.Close(fd)
|
||||||
if errno == nil {
|
if errno == nil {
|
||||||
// device not in use
|
// device not in use
|
||||||
return false, nil
|
return false, nil
|
||||||
} else if errno == syscall.EBUSY {
|
} else if errno == unix.EBUSY {
|
||||||
// device is in use
|
// device is in use
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ go_library(
|
|||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = ["rlimit_linux.go"],
|
srcs = ["rlimit_linux.go"],
|
||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
|
deps = ["//vendor/golang.org/x/sys/unix:go_default_library"],
|
||||||
)
|
)
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ limitations under the License.
|
|||||||
package rlimit
|
package rlimit
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
func RlimitNumFiles(maxOpenFiles uint64) {
|
func RlimitNumFiles(maxOpenFiles uint64) {
|
||||||
syscall.Setrlimit(syscall.RLIMIT_NOFILE, &syscall.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles})
|
unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ go_test(
|
|||||||
deps = [
|
deps = [
|
||||||
"//pkg/volume:go_default_library",
|
"//pkg/volume:go_default_library",
|
||||||
"//pkg/volume/testing:go_default_library",
|
"//pkg/volume/testing:go_default_library",
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/client-go/util/testing:go_default_library",
|
"//vendor/k8s.io/client-go/util/testing:go_default_library",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ go_library(
|
|||||||
"//pkg/volume:go_default_library",
|
"//pkg/volume:go_default_library",
|
||||||
"//pkg/volume/util:go_default_library",
|
"//pkg/volume/util:go_default_library",
|
||||||
"//vendor/github.com/golang/glog:go_default_library",
|
"//vendor/github.com/golang/glog:go_default_library",
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/api/core/v1:go_default_library",
|
"//vendor/k8s.io/api/core/v1:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ package empty_dir
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"syscall"
|
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
"k8s.io/kubernetes/pkg/util/mount"
|
"k8s.io/kubernetes/pkg/util/mount"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -40,8 +40,8 @@ func (m *realMountDetector) GetMountMedium(path string) (storageMedium, bool, er
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, false, fmt.Errorf("IsLikelyNotMountPoint(%q): %v", path, err)
|
return 0, false, fmt.Errorf("IsLikelyNotMountPoint(%q): %v", path, err)
|
||||||
}
|
}
|
||||||
buf := syscall.Statfs_t{}
|
buf := unix.Statfs_t{}
|
||||||
if err := syscall.Statfs(path, &buf); err != nil {
|
if err := unix.Statfs(path, &buf); err != nil {
|
||||||
return 0, false, fmt.Errorf("statfs(%q): %v", path, err)
|
return 0, false, fmt.Errorf("statfs(%q): %v", path, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,17 +22,17 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"syscall"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
utiltesting "k8s.io/client-go/util/testing"
|
utiltesting "k8s.io/client-go/util/testing"
|
||||||
. "k8s.io/kubernetes/pkg/volume"
|
. "k8s.io/kubernetes/pkg/volume"
|
||||||
volumetest "k8s.io/kubernetes/pkg/volume/testing"
|
volumetest "k8s.io/kubernetes/pkg/volume/testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getExpectedBlockSize(path string) int64 {
|
func getExpectedBlockSize(path string) int64 {
|
||||||
statfs := &syscall.Statfs_t{}
|
statfs := &unix.Statfs_t{}
|
||||||
err := syscall.Statfs(path, statfs)
|
err := unix.Statfs(path, statfs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ go_library(
|
|||||||
"//pkg/api/v1/helper:go_default_library",
|
"//pkg/api/v1/helper:go_default_library",
|
||||||
"//pkg/util/mount:go_default_library",
|
"//pkg/util/mount:go_default_library",
|
||||||
"//vendor/github.com/golang/glog:go_default_library",
|
"//vendor/github.com/golang/glog:go_default_library",
|
||||||
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
||||||
"//vendor/k8s.io/api/core/v1:go_default_library",
|
"//vendor/k8s.io/api/core/v1:go_default_library",
|
||||||
"//vendor/k8s.io/api/storage/v1:go_default_library",
|
"//vendor/k8s.io/api/storage/v1:go_default_library",
|
||||||
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
|
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
|
|
||||||
"k8s.io/apimachinery/pkg/api/resource"
|
"k8s.io/apimachinery/pkg/api/resource"
|
||||||
)
|
)
|
||||||
@@ -31,8 +32,8 @@ import (
|
|||||||
// FSInfo linux returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error)
|
// FSInfo linux returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error)
|
||||||
// for the filesystem that path resides upon.
|
// for the filesystem that path resides upon.
|
||||||
func FsInfo(path string) (int64, int64, int64, int64, int64, int64, error) {
|
func FsInfo(path string) (int64, int64, int64, int64, int64, int64, error) {
|
||||||
statfs := &syscall.Statfs_t{}
|
statfs := &unix.Statfs_t{}
|
||||||
err := syscall.Statfs(path, statfs)
|
err := unix.Statfs(path, statfs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, 0, 0, 0, 0, 0, err
|
return 0, 0, 0, 0, 0, 0, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -344,7 +344,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/sys/unix",
|
"ImportPath": "golang.org/x/sys/unix",
|
||||||
"Rev": "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9"
|
"Rev": "7a4fde3fda8ef580a89dbae8138c26041be14299"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/text/cases",
|
"ImportPath": "golang.org/x/text/cases",
|
||||||
|
|||||||
2
staging/src/k8s.io/apiserver/Godeps/Godeps.json
generated
2
staging/src/k8s.io/apiserver/Godeps/Godeps.json
generated
@@ -620,7 +620,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/sys/unix",
|
"ImportPath": "golang.org/x/sys/unix",
|
||||||
"Rev": "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9"
|
"Rev": "7a4fde3fda8ef580a89dbae8138c26041be14299"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/text/cases",
|
"ImportPath": "golang.org/x/text/cases",
|
||||||
|
|||||||
2
staging/src/k8s.io/client-go/Godeps/Godeps.json
generated
2
staging/src/k8s.io/client-go/Godeps/Godeps.json
generated
@@ -272,7 +272,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/sys/unix",
|
"ImportPath": "golang.org/x/sys/unix",
|
||||||
"Rev": "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9"
|
"Rev": "7a4fde3fda8ef580a89dbae8138c26041be14299"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/text/cases",
|
"ImportPath": "golang.org/x/text/cases",
|
||||||
|
|||||||
@@ -340,7 +340,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/sys/unix",
|
"ImportPath": "golang.org/x/sys/unix",
|
||||||
"Rev": "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9"
|
"Rev": "7a4fde3fda8ef580a89dbae8138c26041be14299"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/text/cases",
|
"ImportPath": "golang.org/x/text/cases",
|
||||||
|
|||||||
@@ -332,7 +332,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/sys/unix",
|
"ImportPath": "golang.org/x/sys/unix",
|
||||||
"Rev": "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9"
|
"Rev": "7a4fde3fda8ef580a89dbae8138c26041be14299"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "golang.org/x/text/cases",
|
"ImportPath": "golang.org/x/text/cases",
|
||||||
|
|||||||
6
vendor/golang.org/x/sys/unix/BUILD
generated
vendored
6
vendor/golang.org/x/sys/unix/BUILD
generated
vendored
@@ -10,12 +10,14 @@ load(
|
|||||||
go_library(
|
go_library(
|
||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = [
|
srcs = [
|
||||||
"asm.s",
|
|
||||||
"asm_linux_amd64.s",
|
"asm_linux_amd64.s",
|
||||||
"bluetooth_linux.go",
|
"bluetooth_linux.go",
|
||||||
"constants.go",
|
"constants.go",
|
||||||
|
"dirent.go",
|
||||||
|
"endian_little.go",
|
||||||
"env_unix.go",
|
"env_unix.go",
|
||||||
"env_unset.go",
|
"env_unset.go",
|
||||||
|
"file_unix.go",
|
||||||
"flock.go",
|
"flock.go",
|
||||||
"race0.go",
|
"race0.go",
|
||||||
"sockcmsg_linux.go",
|
"sockcmsg_linux.go",
|
||||||
@@ -24,7 +26,9 @@ go_library(
|
|||||||
"syscall.go",
|
"syscall.go",
|
||||||
"syscall_linux.go",
|
"syscall_linux.go",
|
||||||
"syscall_linux_amd64.go",
|
"syscall_linux_amd64.go",
|
||||||
|
"syscall_linux_amd64_gc.go",
|
||||||
"syscall_unix.go",
|
"syscall_unix.go",
|
||||||
|
"syscall_unix_gc.go",
|
||||||
"zerrors_linux_amd64.go",
|
"zerrors_linux_amd64.go",
|
||||||
"zsyscall_linux_amd64.go",
|
"zsyscall_linux_amd64.go",
|
||||||
"zsysnum_linux_amd64.go",
|
"zsysnum_linux_amd64.go",
|
||||||
|
|||||||
173
vendor/golang.org/x/sys/unix/README.md
generated
vendored
Normal file
173
vendor/golang.org/x/sys/unix/README.md
generated
vendored
Normal file
@@ -0,0 +1,173 @@
|
|||||||
|
# Building `sys/unix`
|
||||||
|
|
||||||
|
The sys/unix package provides access to the raw system call interface of the
|
||||||
|
underlying operating system. See: https://godoc.org/golang.org/x/sys/unix
|
||||||
|
|
||||||
|
Porting Go to a new architecture/OS combination or adding syscalls, types, or
|
||||||
|
constants to an existing architecture/OS pair requires some manual effort;
|
||||||
|
however, there are tools that automate much of the process.
|
||||||
|
|
||||||
|
## Build Systems
|
||||||
|
|
||||||
|
There are currently two ways we generate the necessary files. We are currently
|
||||||
|
migrating the build system to use containers so the builds are reproducible.
|
||||||
|
This is being done on an OS-by-OS basis. Please update this documentation as
|
||||||
|
components of the build system change.
|
||||||
|
|
||||||
|
### Old Build System (currently for `GOOS != "Linux" || GOARCH == "sparc64"`)
|
||||||
|
|
||||||
|
The old build system generates the Go files based on the C header files
|
||||||
|
present on your system. This means that files
|
||||||
|
for a given GOOS/GOARCH pair must be generated on a system with that OS and
|
||||||
|
architecture. This also means that the generated code can differ from system
|
||||||
|
to system, based on differences in the header files.
|
||||||
|
|
||||||
|
To avoid this, if you are using the old build system, only generate the Go
|
||||||
|
files on an installation with unmodified header files. It is also important to
|
||||||
|
keep track of which version of the OS the files were generated from (ex.
|
||||||
|
Darwin 14 vs Darwin 15). This makes it easier to track the progress of changes
|
||||||
|
and have each OS upgrade correspond to a single change.
|
||||||
|
|
||||||
|
To build the files for your current OS and architecture, make sure GOOS and
|
||||||
|
GOARCH are set correctly and run `mkall.sh`. This will generate the files for
|
||||||
|
your specific system. Running `mkall.sh -n` shows the commands that will be run.
|
||||||
|
|
||||||
|
Requirements: bash, perl, go
|
||||||
|
|
||||||
|
### New Build System (currently for `GOOS == "Linux" && GOARCH != "sparc64"`)
|
||||||
|
|
||||||
|
The new build system uses a Docker container to generate the go files directly
|
||||||
|
from source checkouts of the kernel and various system libraries. This means
|
||||||
|
that on any platform that supports Docker, all the files using the new build
|
||||||
|
system can be generated at once, and generated files will not change based on
|
||||||
|
what the person running the scripts has installed on their computer.
|
||||||
|
|
||||||
|
The OS specific files for the new build system are located in the `${GOOS}`
|
||||||
|
directory, and the build is coordinated by the `${GOOS}/mkall.go` program. When
|
||||||
|
the kernel or system library updates, modify the Dockerfile at
|
||||||
|
`${GOOS}/Dockerfile` to checkout the new release of the source.
|
||||||
|
|
||||||
|
To build all the files under the new build system, you must be on an amd64/Linux
|
||||||
|
system and have your GOOS and GOARCH set accordingly. Running `mkall.sh` will
|
||||||
|
then generate all of the files for all of the GOOS/GOARCH pairs in the new build
|
||||||
|
system. Running `mkall.sh -n` shows the commands that will be run.
|
||||||
|
|
||||||
|
Requirements: bash, perl, go, docker
|
||||||
|
|
||||||
|
## Component files
|
||||||
|
|
||||||
|
This section describes the various files used in the code generation process.
|
||||||
|
It also contains instructions on how to modify these files to add a new
|
||||||
|
architecture/OS or to add additional syscalls, types, or constants. Note that
|
||||||
|
if you are using the new build system, the scripts cannot be called normally.
|
||||||
|
They must be called from within the docker container.
|
||||||
|
|
||||||
|
### asm files
|
||||||
|
|
||||||
|
The hand-written assembly file at `asm_${GOOS}_${GOARCH}.s` implements system
|
||||||
|
call dispatch. There are three entry points:
|
||||||
|
```
|
||||||
|
func Syscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
|
||||||
|
func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
|
||||||
|
func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
|
||||||
|
```
|
||||||
|
The first and second are the standard ones; they differ only in how many
|
||||||
|
arguments can be passed to the kernel. The third is for low-level use by the
|
||||||
|
ForkExec wrapper. Unlike the first two, it does not call into the scheduler to
|
||||||
|
let it know that a system call is running.
|
||||||
|
|
||||||
|
When porting Go to an new architecture/OS, this file must be implemented for
|
||||||
|
each GOOS/GOARCH pair.
|
||||||
|
|
||||||
|
### mksysnum
|
||||||
|
|
||||||
|
Mksysnum is a script located at `${GOOS}/mksysnum.pl` (or `mksysnum_${GOOS}.pl`
|
||||||
|
for the old system). This script takes in a list of header files containing the
|
||||||
|
syscall number declarations and parses them to produce the corresponding list of
|
||||||
|
Go numeric constants. See `zsysnum_${GOOS}_${GOARCH}.go` for the generated
|
||||||
|
constants.
|
||||||
|
|
||||||
|
Adding new syscall numbers is mostly done by running the build on a sufficiently
|
||||||
|
new installation of the target OS (or updating the source checkouts for the
|
||||||
|
new build system). However, depending on the OS, you make need to update the
|
||||||
|
parsing in mksysnum.
|
||||||
|
|
||||||
|
### mksyscall.pl
|
||||||
|
|
||||||
|
The `syscall.go`, `syscall_${GOOS}.go`, `syscall_${GOOS}_${GOARCH}.go` are
|
||||||
|
hand-written Go files which implement system calls (for unix, the specific OS,
|
||||||
|
or the specific OS/Architecture pair respectively) that need special handling
|
||||||
|
and list `//sys` comments giving prototypes for ones that can be generated.
|
||||||
|
|
||||||
|
The mksyscall.pl script takes the `//sys` and `//sysnb` comments and converts
|
||||||
|
them into syscalls. This requires the name of the prototype in the comment to
|
||||||
|
match a syscall number in the `zsysnum_${GOOS}_${GOARCH}.go` file. The function
|
||||||
|
prototype can be exported (capitalized) or not.
|
||||||
|
|
||||||
|
Adding a new syscall often just requires adding a new `//sys` function prototype
|
||||||
|
with the desired arguments and a capitalized name so it is exported. However, if
|
||||||
|
you want the interface to the syscall to be different, often one will make an
|
||||||
|
unexported `//sys` prototype, an then write a custom wrapper in
|
||||||
|
`syscall_${GOOS}.go`.
|
||||||
|
|
||||||
|
### types files
|
||||||
|
|
||||||
|
For each OS, there is a hand-written Go file at `${GOOS}/types.go` (or
|
||||||
|
`types_${GOOS}.go` on the old system). This file includes standard C headers and
|
||||||
|
creates Go type aliases to the corresponding C types. The file is then fed
|
||||||
|
through godef to get the Go compatible definitions. Finally, the generated code
|
||||||
|
is fed though mkpost.go to format the code correctly and remove any hidden or
|
||||||
|
private identifiers. This cleaned-up code is written to
|
||||||
|
`ztypes_${GOOS}_${GOARCH}.go`.
|
||||||
|
|
||||||
|
The hardest part about preparing this file is figuring out which headers to
|
||||||
|
include and which symbols need to be `#define`d to get the actual data
|
||||||
|
structures that pass through to the kernel system calls. Some C libraries
|
||||||
|
preset alternate versions for binary compatibility and translate them on the
|
||||||
|
way in and out of system calls, but there is almost always a `#define` that can
|
||||||
|
get the real ones.
|
||||||
|
See `types_darwin.go` and `linux/types.go` for examples.
|
||||||
|
|
||||||
|
To add a new type, add in the necessary include statement at the top of the
|
||||||
|
file (if it is not already there) and add in a type alias line. Note that if
|
||||||
|
your type is significantly different on different architectures, you may need
|
||||||
|
some `#if/#elif` macros in your include statements.
|
||||||
|
|
||||||
|
### mkerrors.sh
|
||||||
|
|
||||||
|
This script is used to generate the system's various constants. This doesn't
|
||||||
|
just include the error numbers and error strings, but also the signal numbers
|
||||||
|
an a wide variety of miscellaneous constants. The constants come from the list
|
||||||
|
of include files in the `includes_${uname}` variable. A regex then picks out
|
||||||
|
the desired `#define` statements, and generates the corresponding Go constants.
|
||||||
|
The error numbers and strings are generated from `#include <errno.h>`, and the
|
||||||
|
signal numbers and strings are generated from `#include <signal.h>`. All of
|
||||||
|
these constants are written to `zerrors_${GOOS}_${GOARCH}.go` via a C program,
|
||||||
|
`_errors.c`, which prints out all the constants.
|
||||||
|
|
||||||
|
To add a constant, add the header that includes it to the appropriate variable.
|
||||||
|
Then, edit the regex (if necessary) to match the desired constant. Avoid making
|
||||||
|
the regex too broad to avoid matching unintended constants.
|
||||||
|
|
||||||
|
|
||||||
|
## Generated files
|
||||||
|
|
||||||
|
### `zerror_${GOOS}_${GOARCH}.go`
|
||||||
|
|
||||||
|
A file containing all of the system's generated error numbers, error strings,
|
||||||
|
signal numbers, and constants. Generated by `mkerrors.sh` (see above).
|
||||||
|
|
||||||
|
### `zsyscall_${GOOS}_${GOARCH}.go`
|
||||||
|
|
||||||
|
A file containing all the generated syscalls for a specific GOOS and GOARCH.
|
||||||
|
Generated by `mksyscall.pl` (see above).
|
||||||
|
|
||||||
|
### `zsysnum_${GOOS}_${GOARCH}.go`
|
||||||
|
|
||||||
|
A list of numeric constants for all the syscall number of the specific GOOS
|
||||||
|
and GOARCH. Generated by mksysnum (see above).
|
||||||
|
|
||||||
|
### `ztypes_${GOOS}_${GOARCH}.go`
|
||||||
|
|
||||||
|
A file containing Go types for passing into (or returning from) syscalls.
|
||||||
|
Generated by godefs and the types file (see above).
|
||||||
10
vendor/golang.org/x/sys/unix/asm.s
generated
vendored
10
vendor/golang.org/x/sys/unix/asm.s
generated
vendored
@@ -1,10 +0,0 @@
|
|||||||
// Copyright 2014 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
// +build !gccgo
|
|
||||||
|
|
||||||
#include "textflag.h"
|
|
||||||
|
|
||||||
TEXT ·use(SB),NOSPLIT,$0
|
|
||||||
RET
|
|
||||||
31
vendor/golang.org/x/sys/unix/asm_linux_mipsx.s
generated
vendored
Normal file
31
vendor/golang.org/x/sys/unix/asm_linux_mipsx.s
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build linux
|
||||||
|
// +build mips mipsle
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System calls for mips, Linux
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-28
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-40
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-52
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-28
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
||||||
4
vendor/golang.org/x/sys/unix/asm_solaris_amd64.s
generated
vendored
4
vendor/golang.org/x/sys/unix/asm_solaris_amd64.s
generated
vendored
@@ -10,8 +10,8 @@
|
|||||||
// System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go
|
// System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go
|
||||||
//
|
//
|
||||||
|
|
||||||
TEXT ·sysvicall6(SB),NOSPLIT,$0-64
|
TEXT ·sysvicall6(SB),NOSPLIT,$0-88
|
||||||
JMP syscall·sysvicall6(SB)
|
JMP syscall·sysvicall6(SB)
|
||||||
|
|
||||||
TEXT ·rawSysvicall6(SB),NOSPLIT,$0-64
|
TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88
|
||||||
JMP syscall·rawSysvicall6(SB)
|
JMP syscall·rawSysvicall6(SB)
|
||||||
|
|||||||
195
vendor/golang.org/x/sys/unix/cap_freebsd.go
generated
vendored
Normal file
195
vendor/golang.org/x/sys/unix/cap_freebsd.go
generated
vendored
Normal file
@@ -0,0 +1,195 @@
|
|||||||
|
// Copyright 2017 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build freebsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
errorspkg "errors"
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Go implementation of C mostly found in /usr/src/sys/kern/subr_capability.c
|
||||||
|
|
||||||
|
const (
|
||||||
|
// This is the version of CapRights this package understands. See C implementation for parallels.
|
||||||
|
capRightsGoVersion = CAP_RIGHTS_VERSION_00
|
||||||
|
capArSizeMin = CAP_RIGHTS_VERSION_00 + 2
|
||||||
|
capArSizeMax = capRightsGoVersion + 2
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
bit2idx = []int{
|
||||||
|
-1, 0, 1, -1, 2, -1, -1, -1, 3, -1, -1, -1, -1, -1, -1, -1,
|
||||||
|
4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func capidxbit(right uint64) int {
|
||||||
|
return int((right >> 57) & 0x1f)
|
||||||
|
}
|
||||||
|
|
||||||
|
func rightToIndex(right uint64) (int, error) {
|
||||||
|
idx := capidxbit(right)
|
||||||
|
if idx < 0 || idx >= len(bit2idx) {
|
||||||
|
return -2, fmt.Errorf("index for right 0x%x out of range", right)
|
||||||
|
}
|
||||||
|
return bit2idx[idx], nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func caprver(right uint64) int {
|
||||||
|
return int(right >> 62)
|
||||||
|
}
|
||||||
|
|
||||||
|
func capver(rights *CapRights) int {
|
||||||
|
return caprver(rights.Rights[0])
|
||||||
|
}
|
||||||
|
|
||||||
|
func caparsize(rights *CapRights) int {
|
||||||
|
return capver(rights) + 2
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsSet sets the permissions in setrights in rights.
|
||||||
|
func CapRightsSet(rights *CapRights, setrights []uint64) error {
|
||||||
|
// This is essentially a copy of cap_rights_vset()
|
||||||
|
if capver(rights) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return fmt.Errorf("bad rights version %d", capver(rights))
|
||||||
|
}
|
||||||
|
|
||||||
|
n := caparsize(rights)
|
||||||
|
if n < capArSizeMin || n > capArSizeMax {
|
||||||
|
return errorspkg.New("bad rights size")
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, right := range setrights {
|
||||||
|
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return errorspkg.New("bad right version")
|
||||||
|
}
|
||||||
|
i, err := rightToIndex(right)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if i >= n {
|
||||||
|
return errorspkg.New("index overflow")
|
||||||
|
}
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return errorspkg.New("index mismatch")
|
||||||
|
}
|
||||||
|
rights.Rights[i] |= right
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return errorspkg.New("index mismatch (after assign)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsClear clears the permissions in clearrights from rights.
|
||||||
|
func CapRightsClear(rights *CapRights, clearrights []uint64) error {
|
||||||
|
// This is essentially a copy of cap_rights_vclear()
|
||||||
|
if capver(rights) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return fmt.Errorf("bad rights version %d", capver(rights))
|
||||||
|
}
|
||||||
|
|
||||||
|
n := caparsize(rights)
|
||||||
|
if n < capArSizeMin || n > capArSizeMax {
|
||||||
|
return errorspkg.New("bad rights size")
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, right := range clearrights {
|
||||||
|
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return errorspkg.New("bad right version")
|
||||||
|
}
|
||||||
|
i, err := rightToIndex(right)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if i >= n {
|
||||||
|
return errorspkg.New("index overflow")
|
||||||
|
}
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return errorspkg.New("index mismatch")
|
||||||
|
}
|
||||||
|
rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF)
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return errorspkg.New("index mismatch (after assign)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsIsSet checks whether all the permissions in setrights are present in rights.
|
||||||
|
func CapRightsIsSet(rights *CapRights, setrights []uint64) (bool, error) {
|
||||||
|
// This is essentially a copy of cap_rights_is_vset()
|
||||||
|
if capver(rights) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return false, fmt.Errorf("bad rights version %d", capver(rights))
|
||||||
|
}
|
||||||
|
|
||||||
|
n := caparsize(rights)
|
||||||
|
if n < capArSizeMin || n > capArSizeMax {
|
||||||
|
return false, errorspkg.New("bad rights size")
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, right := range setrights {
|
||||||
|
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return false, errorspkg.New("bad right version")
|
||||||
|
}
|
||||||
|
i, err := rightToIndex(right)
|
||||||
|
if err != nil {
|
||||||
|
return false, err
|
||||||
|
}
|
||||||
|
if i >= n {
|
||||||
|
return false, errorspkg.New("index overflow")
|
||||||
|
}
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return false, errorspkg.New("index mismatch")
|
||||||
|
}
|
||||||
|
if (rights.Rights[i] & right) != right {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func capright(idx uint64, bit uint64) uint64 {
|
||||||
|
return ((1 << (57 + idx)) | bit)
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsInit returns a pointer to an initialised CapRights structure filled with rights.
|
||||||
|
// See man cap_rights_init(3) and rights(4).
|
||||||
|
func CapRightsInit(rights []uint64) (*CapRights, error) {
|
||||||
|
var r CapRights
|
||||||
|
r.Rights[0] = (capRightsGoVersion << 62) | capright(0, 0)
|
||||||
|
r.Rights[1] = capright(1, 0)
|
||||||
|
|
||||||
|
err := CapRightsSet(&r, rights)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &r, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsLimit reduces the operations permitted on fd to at most those contained in rights.
|
||||||
|
// The capability rights on fd can never be increased by CapRightsLimit.
|
||||||
|
// See man cap_rights_limit(2) and rights(4).
|
||||||
|
func CapRightsLimit(fd uintptr, rights *CapRights) error {
|
||||||
|
return capRightsLimit(int(fd), rights)
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsGet returns a CapRights structure containing the operations permitted on fd.
|
||||||
|
// See man cap_rights_get(3) and rights(4).
|
||||||
|
func CapRightsGet(fd uintptr) (*CapRights, error) {
|
||||||
|
r, err := CapRightsInit(nil)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
err = capRightsGet(capRightsGoVersion, int(fd), r)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return r, nil
|
||||||
|
}
|
||||||
102
vendor/golang.org/x/sys/unix/dirent.go
generated
vendored
Normal file
102
vendor/golang.org/x/sys/unix/dirent.go
generated
vendored
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
// readInt returns the size-bytes unsigned integer in native byte order at offset off.
|
||||||
|
func readInt(b []byte, off, size uintptr) (u uint64, ok bool) {
|
||||||
|
if len(b) < int(off+size) {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
if isBigEndian {
|
||||||
|
return readIntBE(b[off:], size), true
|
||||||
|
}
|
||||||
|
return readIntLE(b[off:], size), true
|
||||||
|
}
|
||||||
|
|
||||||
|
func readIntBE(b []byte, size uintptr) uint64 {
|
||||||
|
switch size {
|
||||||
|
case 1:
|
||||||
|
return uint64(b[0])
|
||||||
|
case 2:
|
||||||
|
_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[1]) | uint64(b[0])<<8
|
||||||
|
case 4:
|
||||||
|
_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[3]) | uint64(b[2])<<8 | uint64(b[1])<<16 | uint64(b[0])<<24
|
||||||
|
case 8:
|
||||||
|
_ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 |
|
||||||
|
uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56
|
||||||
|
default:
|
||||||
|
panic("syscall: readInt with unsupported size")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func readIntLE(b []byte, size uintptr) uint64 {
|
||||||
|
switch size {
|
||||||
|
case 1:
|
||||||
|
return uint64(b[0])
|
||||||
|
case 2:
|
||||||
|
_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8
|
||||||
|
case 4:
|
||||||
|
_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24
|
||||||
|
case 8:
|
||||||
|
_ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 |
|
||||||
|
uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
|
||||||
|
default:
|
||||||
|
panic("syscall: readInt with unsupported size")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ParseDirent parses up to max directory entries in buf,
|
||||||
|
// appending the names to names. It returns the number of
|
||||||
|
// bytes consumed from buf, the number of entries added
|
||||||
|
// to names, and the new names slice.
|
||||||
|
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
||||||
|
origlen := len(buf)
|
||||||
|
count = 0
|
||||||
|
for max != 0 && len(buf) > 0 {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok || reclen > uint64(len(buf)) {
|
||||||
|
return origlen, count, names
|
||||||
|
}
|
||||||
|
rec := buf[:reclen]
|
||||||
|
buf = buf[reclen:]
|
||||||
|
ino, ok := direntIno(rec)
|
||||||
|
if !ok {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if ino == 0 { // File absent in directory.
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
|
||||||
|
namlen, ok := direntNamlen(rec)
|
||||||
|
if !ok || namoff+namlen > uint64(len(rec)) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
name := rec[namoff : namoff+namlen]
|
||||||
|
for i, c := range name {
|
||||||
|
if c == 0 {
|
||||||
|
name = name[:i]
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Check for useless names before allocating a string.
|
||||||
|
if string(name) == "." || string(name) == ".." {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
max--
|
||||||
|
count++
|
||||||
|
names = append(names, string(name))
|
||||||
|
}
|
||||||
|
return origlen - len(buf), count, names
|
||||||
|
}
|
||||||
9
vendor/golang.org/x/sys/unix/endian_big.go
generated
vendored
Normal file
9
vendor/golang.org/x/sys/unix/endian_big.go
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
//
|
||||||
|
// +build ppc64 s390x mips mips64
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const isBigEndian = true
|
||||||
9
vendor/golang.org/x/sys/unix/endian_little.go
generated
vendored
Normal file
9
vendor/golang.org/x/sys/unix/endian_little.go
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
//
|
||||||
|
// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const isBigEndian = false
|
||||||
27
vendor/golang.org/x/sys/unix/file_unix.go
generated
vendored
Normal file
27
vendor/golang.org/x/sys/unix/file_unix.go
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
// Copyright 2017 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
// FIXME: unexported function from os
|
||||||
|
// syscallMode returns the syscall-specific mode bits from Go's portable mode bits.
|
||||||
|
func syscallMode(i os.FileMode) (o uint32) {
|
||||||
|
o |= uint32(i.Perm())
|
||||||
|
if i&os.ModeSetuid != 0 {
|
||||||
|
o |= syscall.S_ISUID
|
||||||
|
}
|
||||||
|
if i&os.ModeSetgid != 0 {
|
||||||
|
o |= syscall.S_ISGID
|
||||||
|
}
|
||||||
|
if i&os.ModeSticky != 0 {
|
||||||
|
o |= syscall.S_ISVTX
|
||||||
|
}
|
||||||
|
// No mapping for Go's ModeTemporary (plan9 only).
|
||||||
|
return
|
||||||
|
}
|
||||||
2
vendor/golang.org/x/sys/unix/flock_linux_32bit.go
generated
vendored
2
vendor/golang.org/x/sys/unix/flock_linux_32bit.go
generated
vendored
@@ -1,4 +1,4 @@
|
|||||||
// +build linux,386 linux,arm
|
// +build linux,386 linux,arm linux,mips linux,mipsle
|
||||||
|
|
||||||
// Copyright 2014 The Go Authors. All rights reserved.
|
// Copyright 2014 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
|
|||||||
20
vendor/golang.org/x/sys/unix/gccgo_linux_sparc64.go
generated
vendored
Normal file
20
vendor/golang.org/x/sys/unix/gccgo_linux_sparc64.go
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build gccgo,linux,sparc64
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
//extern sysconf
|
||||||
|
func realSysconf(name int) int64
|
||||||
|
|
||||||
|
func sysconf(name int) (n int64, err syscall.Errno) {
|
||||||
|
r := realSysconf(name)
|
||||||
|
if r < 0 {
|
||||||
|
return 0, syscall.GetErrno()
|
||||||
|
}
|
||||||
|
return r, 0
|
||||||
|
}
|
||||||
146
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
146
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
@@ -3,75 +3,9 @@
|
|||||||
# Use of this source code is governed by a BSD-style
|
# Use of this source code is governed by a BSD-style
|
||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
# The unix package provides access to the raw system call
|
# This script runs or (given -n) prints suggested commands to generate files for
|
||||||
# interface of the underlying operating system. Porting Go to
|
# the Architecture/OS specified by the GOARCH and GOOS environment variables.
|
||||||
# a new architecture/operating system combination requires
|
# See README.md for more information about how the build system works.
|
||||||
# some manual effort, though there are tools that automate
|
|
||||||
# much of the process. The auto-generated files have names
|
|
||||||
# beginning with z.
|
|
||||||
#
|
|
||||||
# This script runs or (given -n) prints suggested commands to generate z files
|
|
||||||
# for the current system. Running those commands is not automatic.
|
|
||||||
# This script is documentation more than anything else.
|
|
||||||
#
|
|
||||||
# * asm_${GOOS}_${GOARCH}.s
|
|
||||||
#
|
|
||||||
# This hand-written assembly file implements system call dispatch.
|
|
||||||
# There are three entry points:
|
|
||||||
#
|
|
||||||
# func Syscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr);
|
|
||||||
# func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr);
|
|
||||||
# func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr);
|
|
||||||
#
|
|
||||||
# The first and second are the standard ones; they differ only in
|
|
||||||
# how many arguments can be passed to the kernel.
|
|
||||||
# The third is for low-level use by the ForkExec wrapper;
|
|
||||||
# unlike the first two, it does not call into the scheduler to
|
|
||||||
# let it know that a system call is running.
|
|
||||||
#
|
|
||||||
# * syscall_${GOOS}.go
|
|
||||||
#
|
|
||||||
# This hand-written Go file implements system calls that need
|
|
||||||
# special handling and lists "//sys" comments giving prototypes
|
|
||||||
# for ones that can be auto-generated. Mksyscall reads those
|
|
||||||
# comments to generate the stubs.
|
|
||||||
#
|
|
||||||
# * syscall_${GOOS}_${GOARCH}.go
|
|
||||||
#
|
|
||||||
# Same as syscall_${GOOS}.go except that it contains code specific
|
|
||||||
# to ${GOOS} on one particular architecture.
|
|
||||||
#
|
|
||||||
# * types_${GOOS}.c
|
|
||||||
#
|
|
||||||
# This hand-written C file includes standard C headers and then
|
|
||||||
# creates typedef or enum names beginning with a dollar sign
|
|
||||||
# (use of $ in variable names is a gcc extension). The hardest
|
|
||||||
# part about preparing this file is figuring out which headers to
|
|
||||||
# include and which symbols need to be #defined to get the
|
|
||||||
# actual data structures that pass through to the kernel system calls.
|
|
||||||
# Some C libraries present alternate versions for binary compatibility
|
|
||||||
# and translate them on the way in and out of system calls, but
|
|
||||||
# there is almost always a #define that can get the real ones.
|
|
||||||
# See types_darwin.c and types_linux.c for examples.
|
|
||||||
#
|
|
||||||
# * zerror_${GOOS}_${GOARCH}.go
|
|
||||||
#
|
|
||||||
# This machine-generated file defines the system's error numbers,
|
|
||||||
# error strings, and signal numbers. The generator is "mkerrors.sh".
|
|
||||||
# Usually no arguments are needed, but mkerrors.sh will pass its
|
|
||||||
# arguments on to godefs.
|
|
||||||
#
|
|
||||||
# * zsyscall_${GOOS}_${GOARCH}.go
|
|
||||||
#
|
|
||||||
# Generated by mksyscall.pl; see syscall_${GOOS}.go above.
|
|
||||||
#
|
|
||||||
# * zsysnum_${GOOS}_${GOARCH}.go
|
|
||||||
#
|
|
||||||
# Generated by mksysnum_${GOOS}.
|
|
||||||
#
|
|
||||||
# * ztypes_${GOOS}_${GOARCH}.go
|
|
||||||
#
|
|
||||||
# Generated by godefs; see types_${GOOS}.c above.
|
|
||||||
|
|
||||||
GOOSARCH="${GOOS}_${GOARCH}"
|
GOOSARCH="${GOOS}_${GOARCH}"
|
||||||
|
|
||||||
@@ -84,11 +18,14 @@ zsysctl="zsysctl_$GOOSARCH.go"
|
|||||||
mksysnum=
|
mksysnum=
|
||||||
mktypes=
|
mktypes=
|
||||||
run="sh"
|
run="sh"
|
||||||
|
cmd=""
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-syscalls)
|
-syscalls)
|
||||||
for i in zsyscall*go
|
for i in zsyscall*go
|
||||||
do
|
do
|
||||||
|
# Run the command line that appears in the first line
|
||||||
|
# of the generated file to regenerate it.
|
||||||
sed 1q $i | sed 's;^// ;;' | sh > _$i && gofmt < _$i > $i
|
sed 1q $i | sed 's;^// ;;' | sh > _$i && gofmt < _$i > $i
|
||||||
rm _$i
|
rm _$i
|
||||||
done
|
done
|
||||||
@@ -96,6 +33,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
-n)
|
-n)
|
||||||
run="cat"
|
run="cat"
|
||||||
|
cmd="echo"
|
||||||
shift
|
shift
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -107,6 +45,14 @@ case "$#" in
|
|||||||
exit 2
|
exit 2
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [[ "$GOOS" = "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then
|
||||||
|
# Use then new build system
|
||||||
|
# Files generated through docker (use $cmd so you can Ctl-C the build or run)
|
||||||
|
$cmd docker build --tag generate:$GOOS $GOOS
|
||||||
|
$cmd docker run --interactive --tty --volume $(dirname "$(readlink -f "$0")"):/build generate:$GOOS
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
GOOSARCH_in=syscall_$GOOSARCH.go
|
GOOSARCH_in=syscall_$GOOSARCH.go
|
||||||
case "$GOOSARCH" in
|
case "$GOOSARCH" in
|
||||||
_* | *_ | _)
|
_* | *_ | _)
|
||||||
@@ -165,64 +111,13 @@ freebsd_arm)
|
|||||||
# API consistent across over platforms.
|
# API consistent across over platforms.
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
;;
|
;;
|
||||||
linux_386)
|
linux_sparc64)
|
||||||
mkerrors="$mkerrors -m32"
|
GOOSARCH_in=syscall_linux_sparc64.go
|
||||||
mksyscall="./mksyscall.pl -l32"
|
unistd_h=/usr/include/sparc64-linux-gnu/asm/unistd.h
|
||||||
mksysnum="./mksysnum_linux.pl /usr/include/asm/unistd_32.h"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
|
||||||
;;
|
|
||||||
linux_amd64)
|
|
||||||
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)
|
|
||||||
if [ "$unistd_h" = "" ]; then
|
|
||||||
echo >&2 cannot find unistd_64.h
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum="./mksysnum_linux.pl $unistd_h"
|
mksysnum="./mksysnum_linux.pl $unistd_h"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
linux_arm)
|
|
||||||
mkerrors="$mkerrors"
|
|
||||||
mksyscall="./mksyscall.pl -l32 -arm"
|
|
||||||
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 -"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
|
||||||
;;
|
|
||||||
linux_arm64)
|
|
||||||
unistd_h=$(ls -1 /usr/include/asm/unistd.h /usr/include/asm-generic/unistd.h 2>/dev/null | head -1)
|
|
||||||
if [ "$unistd_h" = "" ]; then
|
|
||||||
echo >&2 cannot find unistd_64.h
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
mksysnum="./mksysnum_linux.pl $unistd_h"
|
|
||||||
# Let the type of C char be signed for making the bare syscall
|
|
||||||
# API consistent across over platforms.
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
|
||||||
;;
|
|
||||||
linux_ppc64)
|
|
||||||
GOOSARCH_in=syscall_linux_ppc64x.go
|
|
||||||
unistd_h=/usr/include/asm/unistd.h
|
|
||||||
mkerrors="$mkerrors -m64"
|
|
||||||
mksysnum="./mksysnum_linux.pl $unistd_h"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
|
||||||
;;
|
|
||||||
linux_ppc64le)
|
|
||||||
GOOSARCH_in=syscall_linux_ppc64x.go
|
|
||||||
unistd_h=/usr/include/powerpc64le-linux-gnu/asm/unistd.h
|
|
||||||
mkerrors="$mkerrors -m64"
|
|
||||||
mksysnum="./mksysnum_linux.pl $unistd_h"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
|
||||||
;;
|
|
||||||
linux_s390x)
|
|
||||||
GOOSARCH_in=syscall_linux_s390x.go
|
|
||||||
unistd_h=/usr/include/asm/unistd.h
|
|
||||||
mkerrors="$mkerrors -m64"
|
|
||||||
mksysnum="./mksysnum_linux.pl $unistd_h"
|
|
||||||
# Let the type of C char be signed to make the bare sys
|
|
||||||
# API more consistent between platforms.
|
|
||||||
# This is a deliberate departure from the way the syscall
|
|
||||||
# package generates its version of the types file.
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
|
||||||
;;
|
|
||||||
netbsd_386)
|
netbsd_386)
|
||||||
mkerrors="$mkerrors -m32"
|
mkerrors="$mkerrors -m32"
|
||||||
mksyscall="./mksyscall.pl -l32 -netbsd"
|
mksyscall="./mksyscall.pl -l32 -netbsd"
|
||||||
@@ -273,13 +168,12 @@ esac
|
|||||||
syscall_goos="syscall_bsd.go $syscall_goos"
|
syscall_goos="syscall_bsd.go $syscall_goos"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ -n "$mksyscall" ]; then echo "$mksyscall $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; fi
|
if [ -n "$mksyscall" ]; then echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
|
if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
|
||||||
if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
|
if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
|
||||||
if [ -n "$mktypes" ]; then
|
if [ -n "$mktypes" ]; then
|
||||||
echo "echo // +build $GOARCH,$GOOS > ztypes_$GOOSARCH.go";
|
echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go";
|
||||||
echo "$mktypes types_$GOOS.go | go run mkpost.go >>ztypes_$GOOSARCH.go";
|
|
||||||
fi
|
fi
|
||||||
) | $run
|
) | $run
|
||||||
|
|||||||
94
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
94
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
@@ -16,6 +16,15 @@ if test -z "$GOARCH" -o -z "$GOOS"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check that we are using the new build system if we should
|
||||||
|
if [[ "$GOOS" -eq "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then
|
||||||
|
if [[ "$GOLANG_SYS_BUILD" -ne "docker" ]]; then
|
||||||
|
echo 1>&2 "In the new build system, mkerrors should not be called directly."
|
||||||
|
echo 1>&2 "See README.md"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
CC=${CC:-cc}
|
CC=${CC:-cc}
|
||||||
|
|
||||||
if [[ "$GOOS" -eq "solaris" ]]; then
|
if [[ "$GOOS" -eq "solaris" ]]; then
|
||||||
@@ -66,6 +75,7 @@ includes_DragonFly='
|
|||||||
'
|
'
|
||||||
|
|
||||||
includes_FreeBSD='
|
includes_FreeBSD='
|
||||||
|
#include <sys/capability.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
@@ -102,8 +112,39 @@ includes_Linux='
|
|||||||
#endif
|
#endif
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
|
// <sys/ioctl.h> is broken on powerpc64, as it fails to include definitions of
|
||||||
|
// these structures. We just include them copied from <bits/termios.h>.
|
||||||
|
#if defined(__powerpc__)
|
||||||
|
struct sgttyb {
|
||||||
|
char sg_ispeed;
|
||||||
|
char sg_ospeed;
|
||||||
|
char sg_erase;
|
||||||
|
char sg_kill;
|
||||||
|
short sg_flags;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct tchars {
|
||||||
|
char t_intrc;
|
||||||
|
char t_quitc;
|
||||||
|
char t_startc;
|
||||||
|
char t_stopc;
|
||||||
|
char t_eofc;
|
||||||
|
char t_brkc;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ltchars {
|
||||||
|
char t_suspc;
|
||||||
|
char t_dsuspc;
|
||||||
|
char t_rprntc;
|
||||||
|
char t_flushc;
|
||||||
|
char t_werasc;
|
||||||
|
char t_lnextc;
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <bits/sockaddr.h>
|
#include <bits/sockaddr.h>
|
||||||
#include <sys/epoll.h>
|
#include <sys/epoll.h>
|
||||||
|
#include <sys/eventfd.h>
|
||||||
#include <sys/inotify.h>
|
#include <sys/inotify.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
@@ -113,20 +154,32 @@ includes_Linux='
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/xattr.h>
|
||||||
#include <linux/if.h>
|
#include <linux/if.h>
|
||||||
|
#include <linux/if_alg.h>
|
||||||
#include <linux/if_arp.h>
|
#include <linux/if_arp.h>
|
||||||
#include <linux/if_ether.h>
|
#include <linux/if_ether.h>
|
||||||
#include <linux/if_tun.h>
|
#include <linux/if_tun.h>
|
||||||
#include <linux/if_packet.h>
|
#include <linux/if_packet.h>
|
||||||
#include <linux/if_addr.h>
|
#include <linux/if_addr.h>
|
||||||
|
#include <linux/falloc.h>
|
||||||
#include <linux/filter.h>
|
#include <linux/filter.h>
|
||||||
|
#include <linux/fs.h>
|
||||||
|
#include <linux/keyctl.h>
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
|
#include <linux/perf_event.h>
|
||||||
|
#include <linux/random.h>
|
||||||
#include <linux/reboot.h>
|
#include <linux/reboot.h>
|
||||||
#include <linux/rtnetlink.h>
|
#include <linux/rtnetlink.h>
|
||||||
#include <linux/ptrace.h>
|
#include <linux/ptrace.h>
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
|
#include <linux/seccomp.h>
|
||||||
|
#include <linux/sockios.h>
|
||||||
#include <linux/wait.h>
|
#include <linux/wait.h>
|
||||||
#include <linux/icmpv6.h>
|
#include <linux/icmpv6.h>
|
||||||
|
#include <linux/serial.h>
|
||||||
|
#include <linux/can.h>
|
||||||
|
#include <linux/vm_sockets.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
#include <asm/termbits.h>
|
#include <asm/termbits.h>
|
||||||
|
|
||||||
@@ -141,6 +194,21 @@ includes_Linux='
|
|||||||
#ifndef PTRACE_SETREGS
|
#ifndef PTRACE_SETREGS
|
||||||
#define PTRACE_SETREGS 0xd
|
#define PTRACE_SETREGS 0xd
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SOL_NETLINK
|
||||||
|
#define SOL_NETLINK 270
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef SOL_BLUETOOTH
|
||||||
|
// SPARC includes this in /usr/include/sparc64-linux-gnu/bits/socket.h
|
||||||
|
// but it is already in bluetooth_linux.go
|
||||||
|
#undef SOL_BLUETOOTH
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Certain constants are missing from the fs/crypto UAPI
|
||||||
|
#define FS_KEY_DESC_PREFIX "fscrypt:"
|
||||||
|
#define FS_KEY_DESC_PREFIX_SIZE 8
|
||||||
|
#define FS_MAX_KEY_SIZE 64
|
||||||
'
|
'
|
||||||
|
|
||||||
includes_NetBSD='
|
includes_NetBSD='
|
||||||
@@ -304,15 +372,16 @@ ccflags="$@"
|
|||||||
$2 ~ /^IN_/ ||
|
$2 ~ /^IN_/ ||
|
||||||
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
||||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
||||||
|
$2 ~ /^FALLOC_/ ||
|
||||||
$2 == "ICMPV6_FILTER" ||
|
$2 == "ICMPV6_FILTER" ||
|
||||||
$2 == "SOMAXCONN" ||
|
$2 == "SOMAXCONN" ||
|
||||||
$2 == "NAME_MAX" ||
|
$2 == "NAME_MAX" ||
|
||||||
$2 == "IFNAMSIZ" ||
|
$2 == "IFNAMSIZ" ||
|
||||||
$2 ~ /^CTL_(MAXNAME|NET|QUERY)$/ ||
|
$2 ~ /^CTL_(MAXNAME|NET|QUERY)$/ ||
|
||||||
$2 ~ /^SYSCTL_VERS/ ||
|
$2 ~ /^SYSCTL_VERS/ ||
|
||||||
$2 ~ /^(MS|MNT)_/ ||
|
$2 ~ /^(MS|MNT|UMOUNT)_/ ||
|
||||||
$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
|
$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
|
||||||
$2 ~ /^(O|F|FD|NAME|S|PTRACE|PT)_/ ||
|
$2 ~ /^(O|F|E?FD|NAME|S|PTRACE|PT)_/ ||
|
||||||
$2 ~ /^LINUX_REBOOT_CMD_/ ||
|
$2 ~ /^LINUX_REBOOT_CMD_/ ||
|
||||||
$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
|
$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
|
||||||
$2 !~ "NLA_TYPE_MASK" &&
|
$2 !~ "NLA_TYPE_MASK" &&
|
||||||
@@ -326,14 +395,27 @@ ccflags="$@"
|
|||||||
$2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ ||
|
$2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ ||
|
||||||
$2 ~ /^BIOC/ ||
|
$2 ~ /^BIOC/ ||
|
||||||
$2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
|
$2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
|
||||||
$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|NOFILE|STACK)|RLIM_INFINITY/ ||
|
$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
|
||||||
$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
|
$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
|
||||||
$2 ~ /^CLONE_[A-Z_]+/ ||
|
$2 ~ /^CLONE_[A-Z_]+/ ||
|
||||||
$2 !~ /^(BPF_TIMEVAL)$/ &&
|
$2 !~ /^(BPF_TIMEVAL)$/ &&
|
||||||
$2 ~ /^(BPF|DLT)_/ ||
|
$2 ~ /^(BPF|DLT)_/ ||
|
||||||
$2 ~ /^CLOCK_/ ||
|
$2 ~ /^CLOCK_/ ||
|
||||||
|
$2 ~ /^CAN_/ ||
|
||||||
|
$2 ~ /^CAP_/ ||
|
||||||
|
$2 ~ /^ALG_/ ||
|
||||||
|
$2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ ||
|
||||||
|
$2 ~ /^GRND_/ ||
|
||||||
|
$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
|
||||||
|
$2 ~ /^KEYCTL_/ ||
|
||||||
|
$2 ~ /^PERF_EVENT_IOC_/ ||
|
||||||
|
$2 ~ /^SECCOMP_MODE_/ ||
|
||||||
|
$2 ~ /^SPLICE_/ ||
|
||||||
|
$2 ~ /^(VM|VMADDR)_/ ||
|
||||||
|
$2 ~ /^XATTR_(CREATE|REPLACE)/ ||
|
||||||
$2 !~ "WMESGLEN" &&
|
$2 !~ "WMESGLEN" &&
|
||||||
$2 ~ /^W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", $2, $2)}
|
$2 ~ /^W[A-Z0-9]+$/ ||
|
||||||
|
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
|
||||||
$2 ~ /^__WCOREFLAG$/ {next}
|
$2 ~ /^__WCOREFLAG$/ {next}
|
||||||
$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
|
$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
|
||||||
|
|
||||||
@@ -368,7 +450,7 @@ echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
|||||||
sort >_signal.grep
|
sort >_signal.grep
|
||||||
|
|
||||||
echo '// mkerrors.sh' "$@"
|
echo '// mkerrors.sh' "$@"
|
||||||
echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT'
|
echo '// Code generated by the command above; see README.md. DO NOT EDIT.'
|
||||||
echo
|
echo
|
||||||
echo "// +build ${GOARCH},${GOOS}"
|
echo "// +build ${GOARCH},${GOOS}"
|
||||||
echo
|
echo
|
||||||
@@ -430,7 +512,7 @@ intcmp(const void *a, const void *b)
|
|||||||
int
|
int
|
||||||
main(void)
|
main(void)
|
||||||
{
|
{
|
||||||
int i, j, e;
|
int i, e;
|
||||||
char buf[1024], *p;
|
char buf[1024], *p;
|
||||||
|
|
||||||
printf("\n\n// Error table\n");
|
printf("\n\n// Error table\n");
|
||||||
|
|||||||
76
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
76
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
@@ -8,10 +8,11 @@
|
|||||||
// modify the generated types. It is used to clean up
|
// modify the generated types. It is used to clean up
|
||||||
// the sys API in an architecture specific manner.
|
// the sys API in an architecture specific manner.
|
||||||
//
|
//
|
||||||
// mkpost is run after cgo -godefs by mkall.sh.
|
// mkpost is run after cgo -godefs; see README.md.
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"go/format"
|
"go/format"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
@@ -21,42 +22,67 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// Get the OS and architecture (using GOARCH_TARGET if it exists)
|
||||||
|
goos := os.Getenv("GOOS")
|
||||||
|
goarch := os.Getenv("GOARCH_TARGET")
|
||||||
|
if goarch == "" {
|
||||||
|
goarch = os.Getenv("GOARCH")
|
||||||
|
}
|
||||||
|
// Check that we are using the new build system if we should be.
|
||||||
|
if goos == "linux" && goarch != "sparc64" {
|
||||||
|
if os.Getenv("GOLANG_SYS_BUILD") != "docker" {
|
||||||
|
os.Stderr.WriteString("In the new build system, mkpost should not be called directly.\n")
|
||||||
|
os.Stderr.WriteString("See README.md\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
b, err := ioutil.ReadAll(os.Stdin)
|
b, err := ioutil.ReadAll(os.Stdin)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
s := string(b)
|
|
||||||
|
|
||||||
goarch := os.Getenv("GOARCH")
|
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
||||||
goos := os.Getenv("GOOS")
|
// nonempty Ptrace structs.
|
||||||
if goarch == "s390x" && goos == "linux" {
|
ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`)
|
||||||
// Export the types of PtraceRegs fields.
|
b = ptraceRexexp.ReplaceAll(b, nil)
|
||||||
re := regexp.MustCompile("ptrace(Psw|Fpregs|Per)")
|
|
||||||
s = re.ReplaceAllString(s, "Ptrace$1")
|
|
||||||
|
|
||||||
// Replace padding fields inserted by cgo with blank identifiers.
|
|
||||||
re = regexp.MustCompile("Pad_cgo[A-Za-z0-9_]*")
|
|
||||||
s = re.ReplaceAllString(s, "_")
|
|
||||||
|
|
||||||
// Replace other unwanted fields with blank identifiers.
|
|
||||||
re = regexp.MustCompile("X_[A-Za-z0-9_]*")
|
|
||||||
s = re.ReplaceAllString(s, "_")
|
|
||||||
|
|
||||||
// Replace the control_regs union with a blank identifier for now.
|
// Replace the control_regs union with a blank identifier for now.
|
||||||
re = regexp.MustCompile("(Control_regs)\\s+\\[0\\]uint64")
|
controlRegsRegex := regexp.MustCompile(`(Control_regs)\s+\[0\]uint64`)
|
||||||
s = re.ReplaceAllString(s, "_ [0]uint64")
|
b = controlRegsRegex.ReplaceAll(b, []byte("_ [0]uint64"))
|
||||||
|
|
||||||
|
// Remove fields that are added by glibc
|
||||||
|
// Note that this is unstable as the identifers are private.
|
||||||
|
removeFieldsRegex := regexp.MustCompile(`X__glibc\S*`)
|
||||||
|
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||||
|
|
||||||
|
// We refuse to export private fields on s390x
|
||||||
|
if goarch == "s390x" && goos == "linux" {
|
||||||
|
// Remove cgo padding fields
|
||||||
|
removeFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`)
|
||||||
|
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||||
|
|
||||||
|
// Remove padding, hidden, or unused fields
|
||||||
|
removeFieldsRegex = regexp.MustCompile(`X_\S+`)
|
||||||
|
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove the first line of warning from cgo
|
||||||
|
b = b[bytes.IndexByte(b, '\n')+1:]
|
||||||
|
// Modify the command in the header to include:
|
||||||
|
// mkpost, our own warning, and a build tag.
|
||||||
|
replacement := fmt.Sprintf(`$1 | go run mkpost.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s,%s`, goarch, goos)
|
||||||
|
cgoCommandRegex := regexp.MustCompile(`(cgo -godefs .*)`)
|
||||||
|
b = cgoCommandRegex.ReplaceAll(b, []byte(replacement))
|
||||||
|
|
||||||
// gofmt
|
// gofmt
|
||||||
b, err = format.Source([]byte(s))
|
b, err = format.Source(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Append this command to the header to show where the new file
|
os.Stdout.Write(b)
|
||||||
// came from.
|
|
||||||
re := regexp.MustCompile("(cgo -godefs [a-zA-Z0-9_]+\\.go.*)")
|
|
||||||
b = re.ReplaceAll(b, []byte("$1 | go run mkpost.go"))
|
|
||||||
|
|
||||||
fmt.Printf("%s", b)
|
|
||||||
}
|
}
|
||||||
|
|||||||
27
vendor/golang.org/x/sys/unix/mksyscall.pl
generated
vendored
27
vendor/golang.org/x/sys/unix/mksyscall.pl
generated
vendored
@@ -29,6 +29,7 @@ my $openbsd = 0;
|
|||||||
my $netbsd = 0;
|
my $netbsd = 0;
|
||||||
my $dragonfly = 0;
|
my $dragonfly = 0;
|
||||||
my $arm = 0; # 64-bit value should use (even, odd)-pair
|
my $arm = 0; # 64-bit value should use (even, odd)-pair
|
||||||
|
my $tags = ""; # build tags
|
||||||
|
|
||||||
if($ARGV[0] eq "-b32") {
|
if($ARGV[0] eq "-b32") {
|
||||||
$_32bit = "big-endian";
|
$_32bit = "big-endian";
|
||||||
@@ -57,16 +58,26 @@ if($ARGV[0] eq "-arm") {
|
|||||||
$arm = 1;
|
$arm = 1;
|
||||||
shift;
|
shift;
|
||||||
}
|
}
|
||||||
|
if($ARGV[0] eq "-tags") {
|
||||||
|
shift;
|
||||||
|
$tags = $ARGV[0];
|
||||||
|
shift;
|
||||||
|
}
|
||||||
|
|
||||||
if($ARGV[0] =~ /^-/) {
|
if($ARGV[0] =~ /^-/) {
|
||||||
print STDERR "usage: mksyscall.pl [-b32 | -l32] [file ...]\n";
|
print STDERR "usage: mksyscall.pl [-b32 | -l32] [-tags x,y] [file ...]\n";
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
# Check that we are using the new build system if we should
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
if($ENV{'GOOS'} eq "linux" && $ENV{'GOARCH'} ne "sparc64") {
|
||||||
|
if($ENV{'GOLANG_SYS_BUILD'} ne "docker") {
|
||||||
|
print STDERR "In the new build system, mksyscall should not be called directly.\n";
|
||||||
|
print STDERR "See README.md\n";
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
sub parseparamlist($) {
|
sub parseparamlist($) {
|
||||||
my ($list) = @_;
|
my ($list) = @_;
|
||||||
@@ -132,7 +143,6 @@ while(<>) {
|
|||||||
|
|
||||||
# Prepare arguments to Syscall.
|
# Prepare arguments to Syscall.
|
||||||
my @args = ();
|
my @args = ();
|
||||||
my @uses = ();
|
|
||||||
my $n = 0;
|
my $n = 0;
|
||||||
foreach my $p (@in) {
|
foreach my $p (@in) {
|
||||||
my ($name, $type) = parseparam($p);
|
my ($name, $type) = parseparam($p);
|
||||||
@@ -143,14 +153,12 @@ while(<>) {
|
|||||||
$text .= "\t_p$n, $errvar = BytePtrFromString($name)\n";
|
$text .= "\t_p$n, $errvar = BytePtrFromString($name)\n";
|
||||||
$text .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
|
$text .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
|
||||||
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
||||||
push @uses, "use(unsafe.Pointer(_p$n))";
|
|
||||||
$n++;
|
$n++;
|
||||||
} elsif($type eq "string") {
|
} elsif($type eq "string") {
|
||||||
print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
|
print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
|
||||||
$text .= "\tvar _p$n *byte\n";
|
$text .= "\tvar _p$n *byte\n";
|
||||||
$text .= "\t_p$n, _ = BytePtrFromString($name)\n";
|
$text .= "\t_p$n, _ = BytePtrFromString($name)\n";
|
||||||
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
||||||
push @uses, "use(unsafe.Pointer(_p$n))";
|
|
||||||
$n++;
|
$n++;
|
||||||
} elsif($type =~ /^\[\](.*)/) {
|
} elsif($type =~ /^\[\](.*)/) {
|
||||||
# Convert slice into pointer, length.
|
# Convert slice into pointer, length.
|
||||||
@@ -278,9 +286,6 @@ while(<>) {
|
|||||||
} else {
|
} else {
|
||||||
$text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
|
$text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
|
||||||
}
|
}
|
||||||
foreach my $use (@uses) {
|
|
||||||
$text .= "\t$use\n";
|
|
||||||
}
|
|
||||||
$text .= $body;
|
$text .= $body;
|
||||||
|
|
||||||
if ($plan9 && $ret[2] eq "e1") {
|
if ($plan9 && $ret[2] eq "e1") {
|
||||||
@@ -305,9 +310,9 @@ if($errors) {
|
|||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
// $cmdline
|
// $cmdline
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
// +build $tags
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|||||||
23
vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
generated
vendored
23
vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
generated
vendored
@@ -22,6 +22,7 @@ use strict;
|
|||||||
my $cmdline = "mksyscall_solaris.pl " . join(' ', @ARGV);
|
my $cmdline = "mksyscall_solaris.pl " . join(' ', @ARGV);
|
||||||
my $errors = 0;
|
my $errors = 0;
|
||||||
my $_32bit = "";
|
my $_32bit = "";
|
||||||
|
my $tags = ""; # build tags
|
||||||
|
|
||||||
binmode STDOUT;
|
binmode STDOUT;
|
||||||
|
|
||||||
@@ -32,14 +33,14 @@ if($ARGV[0] eq "-b32") {
|
|||||||
$_32bit = "little-endian";
|
$_32bit = "little-endian";
|
||||||
shift;
|
shift;
|
||||||
}
|
}
|
||||||
|
if($ARGV[0] eq "-tags") {
|
||||||
if($ARGV[0] =~ /^-/) {
|
shift;
|
||||||
print STDERR "usage: mksyscall_solaris.pl [-b32 | -l32] [file ...]\n";
|
$tags = $ARGV[0];
|
||||||
exit 1;
|
shift;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
if($ARGV[0] =~ /^-/) {
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
print STDERR "usage: mksyscall_solaris.pl [-b32 | -l32] [-tags x,y] [file ...]\n";
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,7 +139,6 @@ while(<>) {
|
|||||||
|
|
||||||
# Prepare arguments to Syscall.
|
# Prepare arguments to Syscall.
|
||||||
my @args = ();
|
my @args = ();
|
||||||
my @uses = ();
|
|
||||||
my $n = 0;
|
my $n = 0;
|
||||||
foreach my $p (@in) {
|
foreach my $p (@in) {
|
||||||
my ($name, $type) = parseparam($p);
|
my ($name, $type) = parseparam($p);
|
||||||
@@ -149,14 +149,12 @@ while(<>) {
|
|||||||
$text .= "\t_p$n, $errvar = $strconvfunc($name)\n";
|
$text .= "\t_p$n, $errvar = $strconvfunc($name)\n";
|
||||||
$text .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
|
$text .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
|
||||||
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
||||||
push @uses, "use(unsafe.Pointer(_p$n))";
|
|
||||||
$n++;
|
$n++;
|
||||||
} elsif($type eq "string") {
|
} elsif($type eq "string") {
|
||||||
print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
|
print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
|
||||||
$text .= "\tvar _p$n $strconvtype\n";
|
$text .= "\tvar _p$n $strconvtype\n";
|
||||||
$text .= "\t_p$n, _ = $strconvfunc($name)\n";
|
$text .= "\t_p$n, _ = $strconvfunc($name)\n";
|
||||||
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
||||||
push @uses, "use(unsafe.Pointer(_p$n))";
|
|
||||||
$n++;
|
$n++;
|
||||||
} elsif($type =~ /^\[\](.*)/) {
|
} elsif($type =~ /^\[\](.*)/) {
|
||||||
# Convert slice into pointer, length.
|
# Convert slice into pointer, length.
|
||||||
@@ -243,9 +241,6 @@ while(<>) {
|
|||||||
} else {
|
} else {
|
||||||
$text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
|
$text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
|
||||||
}
|
}
|
||||||
foreach my $use (@uses) {
|
|
||||||
$text .= "\t$use\n";
|
|
||||||
}
|
|
||||||
$text .= $body;
|
$text .= $body;
|
||||||
|
|
||||||
if ($do_errno) {
|
if ($do_errno) {
|
||||||
@@ -263,9 +258,9 @@ if($errors) {
|
|||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
// $cmdline
|
// $cmdline
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
// +build $tags
|
||||||
|
|
||||||
package $package
|
package $package
|
||||||
|
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
generated
vendored
2
vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
generated
vendored
@@ -16,7 +16,7 @@ my $command = "mksysnum_darwin.pl " . join(' ', @ARGV);
|
|||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
// $command
|
// $command
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
||||||
|
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/mksysnum_dragonfly.pl
generated
vendored
2
vendor/golang.org/x/sys/unix/mksysnum_dragonfly.pl
generated
vendored
@@ -17,7 +17,7 @@ my $command = "mksysnum_dragonfly.pl " . join(' ', @ARGV);
|
|||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
// $command
|
// $command
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
||||||
|
|
||||||
|
|||||||
15
vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
generated
vendored
15
vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
generated
vendored
@@ -17,7 +17,7 @@ my $command = "mksysnum_freebsd.pl " . join(' ', @ARGV);
|
|||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
// $command
|
// $command
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
||||||
|
|
||||||
@@ -40,21 +40,8 @@ while(<>){
|
|||||||
if($name eq 'SYS_SYS_EXIT'){
|
if($name eq 'SYS_SYS_EXIT'){
|
||||||
$name = 'SYS_EXIT';
|
$name = 'SYS_EXIT';
|
||||||
}
|
}
|
||||||
if($name =~ /^SYS_CAP_+/ || $name =~ /^SYS___CAP_+/){
|
|
||||||
next
|
|
||||||
}
|
|
||||||
|
|
||||||
print " $name = $num; // $proto\n";
|
print " $name = $num; // $proto\n";
|
||||||
|
|
||||||
# We keep Capsicum syscall numbers for FreeBSD
|
|
||||||
# 9-STABLE here because we are not sure whether they
|
|
||||||
# are mature and stable.
|
|
||||||
if($num == 513){
|
|
||||||
print " SYS_CAP_NEW = 514 // { int cap_new(int fd, uint64_t rights); }\n";
|
|
||||||
print " SYS_CAP_GETRIGHTS = 515 // { int cap_getrights(int fd, \\\n";
|
|
||||||
print " SYS_CAP_ENTER = 516 // { int cap_enter(void); }\n";
|
|
||||||
print " SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
58
vendor/golang.org/x/sys/unix/mksysnum_linux.pl
generated
vendored
58
vendor/golang.org/x/sys/unix/mksysnum_linux.pl
generated
vendored
@@ -1,58 +0,0 @@
|
|||||||
#!/usr/bin/env perl
|
|
||||||
# Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style
|
|
||||||
# license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $command = "mksysnum_linux.pl ". join(' ', @ARGV);
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// $command
|
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const(
|
|
||||||
EOF
|
|
||||||
|
|
||||||
sub fmt {
|
|
||||||
my ($name, $num) = @_;
|
|
||||||
if($num > 999){
|
|
||||||
# ignore deprecated syscalls that are no longer implemented
|
|
||||||
# https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/unistd.h?id=refs/heads/master#n716
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$name =~ y/a-z/A-Z/;
|
|
||||||
print " SYS_$name = $num;\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
my $prev;
|
|
||||||
open(GCC, "gcc -E -dD $ARGV[0] |") || die "can't run gcc";
|
|
||||||
while(<GCC>){
|
|
||||||
if(/^#define __NR_syscalls\s+/) {
|
|
||||||
# ignore redefinitions of __NR_syscalls
|
|
||||||
}
|
|
||||||
elsif(/^#define __NR_(\w+)\s+([0-9]+)/){
|
|
||||||
$prev = $2;
|
|
||||||
fmt($1, $2);
|
|
||||||
}
|
|
||||||
elsif(/^#define __NR3264_(\w+)\s+([0-9]+)/){
|
|
||||||
$prev = $2;
|
|
||||||
fmt($1, $2);
|
|
||||||
}
|
|
||||||
elsif(/^#define __NR_(\w+)\s+\(\w+\+\s*([0-9]+)\)/){
|
|
||||||
fmt($1, $prev+$2)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
)
|
|
||||||
EOF
|
|
||||||
2
vendor/golang.org/x/sys/unix/mksysnum_netbsd.pl
generated
vendored
2
vendor/golang.org/x/sys/unix/mksysnum_netbsd.pl
generated
vendored
@@ -17,7 +17,7 @@ my $command = "mksysnum_netbsd.pl " . join(' ', @ARGV);
|
|||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
// $command
|
// $command
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
||||||
|
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/mksysnum_openbsd.pl
generated
vendored
2
vendor/golang.org/x/sys/unix/mksysnum_openbsd.pl
generated
vendored
@@ -17,7 +17,7 @@ my $command = "mksysnum_openbsd.pl " . join(' ', @ARGV);
|
|||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
// $command
|
// $command
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
||||||
|
|
||||||
|
|||||||
38
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
Normal file
38
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build openbsd
|
||||||
|
// +build 386 amd64 arm
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
SYS_PLEDGE = 108
|
||||||
|
)
|
||||||
|
|
||||||
|
// Pledge implements the pledge syscall. For more information see pledge(2).
|
||||||
|
func Pledge(promises string, paths []string) error {
|
||||||
|
promisesPtr, err := syscall.BytePtrFromString(promises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
promisesUnsafe, pathsUnsafe := unsafe.Pointer(promisesPtr), unsafe.Pointer(nil)
|
||||||
|
if paths != nil {
|
||||||
|
var pathsPtr []*byte
|
||||||
|
if pathsPtr, err = syscall.SlicePtrFromStrings(paths); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
pathsUnsafe = unsafe.Pointer(&pathsPtr[0])
|
||||||
|
}
|
||||||
|
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
7
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
7
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
@@ -13,9 +13,10 @@ import "unsafe"
|
|||||||
// Round the length of a raw sockaddr up to align it properly.
|
// Round the length of a raw sockaddr up to align it properly.
|
||||||
func cmsgAlignOf(salen int) int {
|
func cmsgAlignOf(salen int) int {
|
||||||
salign := sizeofPtr
|
salign := sizeofPtr
|
||||||
// NOTE: It seems like 64-bit Darwin and DragonFly BSD kernels
|
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
||||||
// still require 32-bit aligned access to network subsystem.
|
// Solaris kernels still require 32-bit aligned access to
|
||||||
if darwin64Bit || dragonfly64Bit {
|
// network subsystem.
|
||||||
|
if darwin64Bit || dragonfly64Bit || solaris64Bit {
|
||||||
salign = 4
|
salign = 4
|
||||||
}
|
}
|
||||||
return (salen + salign - 1) & ^(salign - 1)
|
return (salen + salign - 1) & ^(salign - 1)
|
||||||
|
|||||||
7
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
7
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
@@ -21,8 +21,6 @@
|
|||||||
// holds a value of type syscall.Errno.
|
// holds a value of type syscall.Errno.
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import "unsafe"
|
|
||||||
|
|
||||||
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
||||||
// containing the text of s. If s contains a NUL byte at any
|
// containing the text of s. If s contains a NUL byte at any
|
||||||
// location, it returns (nil, EINVAL).
|
// location, it returns (nil, EINVAL).
|
||||||
@@ -69,8 +67,3 @@ func (tv *Timeval) Nano() int64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
|
func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
|
||||||
|
|
||||||
// use is a no-op, but the compiler cannot see that it is.
|
|
||||||
// Calling use(p) ensures that p is kept live until that point.
|
|
||||||
//go:noescape
|
|
||||||
func use(p unsafe.Pointer)
|
|
||||||
|
|||||||
18
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
18
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
@@ -470,25 +470,11 @@ func Sysctl(name string) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func SysctlArgs(name string, args ...int) (string, error) {
|
func SysctlArgs(name string, args ...int) (string, error) {
|
||||||
mib, err := sysctlmib(name, args...)
|
buf, err := SysctlRaw(name, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
n := len(buf)
|
||||||
// Find size.
|
|
||||||
n := uintptr(0)
|
|
||||||
if err := sysctl(mib, nil, &n, nil, 0); err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
if n == 0 {
|
|
||||||
return "", nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Read into buffer of that size.
|
|
||||||
buf := make([]byte, n)
|
|
||||||
if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Throw away terminating NUL.
|
// Throw away terminating NUL.
|
||||||
if n > 0 && buf[n-1] == '\x00' {
|
if n > 0 && buf[n-1] == '\x00' {
|
||||||
|
|||||||
34
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
34
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@@ -76,32 +76,16 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseDirent parses up to max directory entries in buf,
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
// appending the names to names. It returns the number
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
// bytes consumed from buf, the number of entries added
|
|
||||||
// to names, and the new names slice.
|
|
||||||
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
|
||||||
origlen := len(buf)
|
|
||||||
for max != 0 && len(buf) > 0 {
|
|
||||||
dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
|
|
||||||
if dirent.Reclen == 0 {
|
|
||||||
buf = nil
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
buf = buf[dirent.Reclen:]
|
|
||||||
if dirent.Ino == 0 { // File absent in directory.
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
continue
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
|
|
||||||
var name = string(bytes[0:dirent.Namlen])
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
if name == "." || name == ".." { // Useless names
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
continue
|
|
||||||
}
|
|
||||||
max--
|
|
||||||
count++
|
|
||||||
names = append(names, name)
|
|
||||||
}
|
|
||||||
return origlen - len(buf), count, names
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||||
@@ -144,7 +128,6 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
|
|||||||
uintptr(options),
|
uintptr(options),
|
||||||
0,
|
0,
|
||||||
)
|
)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
return nil, e1
|
return nil, e1
|
||||||
}
|
}
|
||||||
@@ -197,7 +180,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(_p0), bufsize, uintptr(flags))
|
r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(_p0), bufsize, uintptr(flags))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = e1
|
err = e1
|
||||||
|
|||||||
59
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
59
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2009,2010 The Go Authors. All rights reserved.
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// FreeBSD system calls.
|
// DragonFly BSD system calls.
|
||||||
// This file is compiled as ordinary Go code,
|
// This file is compiled as ordinary Go code,
|
||||||
// but it is also input to mksyscall,
|
// but it is also input to mksyscall,
|
||||||
// which parses the //sys lines and generates system call stubs.
|
// which parses the //sys lines and generates system call stubs.
|
||||||
@@ -56,29 +56,20 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseDirent parses up to max directory entries in buf,
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
// appending the names to names. It returns the number
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
// bytes consumed from buf, the number of entries added
|
|
||||||
// to names, and the new names slice.
|
|
||||||
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
|
||||||
origlen := len(buf)
|
|
||||||
for max != 0 && len(buf) > 0 {
|
|
||||||
dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
|
|
||||||
reclen := int(16+dirent.Namlen+1+7) & ^7
|
|
||||||
buf = buf[reclen:]
|
|
||||||
if dirent.Fileno == 0 { // File absent in directory.
|
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
|
|
||||||
var name = string(bytes[0:dirent.Namlen])
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
if name == "." || name == ".." { // Useless names
|
namlen, ok := direntNamlen(buf)
|
||||||
continue
|
if !ok {
|
||||||
|
return 0, false
|
||||||
}
|
}
|
||||||
max--
|
return (16 + namlen + 1 + 7) &^ 7, true
|
||||||
count++
|
|
||||||
names = append(names, name)
|
|
||||||
}
|
}
|
||||||
return origlen - len(buf), count, names
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb pipe() (r int, w int, err error)
|
//sysnb pipe() (r int, w int, err error)
|
||||||
@@ -101,6 +92,24 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
|
|||||||
return extpwrite(fd, p, 0, offset)
|
return extpwrite(fd, p, 0, offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) {
|
||||||
|
var rsa RawSockaddrAny
|
||||||
|
var len _Socklen = SizeofSockaddrAny
|
||||||
|
nfd, err = accept4(fd, &rsa, &len, flags)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if len > SizeofSockaddrAny {
|
||||||
|
panic("RawSockaddrAny too small")
|
||||||
|
}
|
||||||
|
sa, err = anyToSockaddr(&rsa)
|
||||||
|
if err != nil {
|
||||||
|
Close(nfd)
|
||||||
|
nfd = 0
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
var bufsize uintptr
|
var bufsize uintptr
|
||||||
@@ -109,7 +118,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
|
r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = e1
|
err = e1
|
||||||
@@ -209,6 +217,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
//sys munmap(addr uintptr, length uintptr) (err error)
|
//sys munmap(addr uintptr, length uintptr) (err error)
|
||||||
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
||||||
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
||||||
|
//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
@@ -244,6 +253,8 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
// Kdebug_trace
|
// Kdebug_trace
|
||||||
// Sigreturn
|
// Sigreturn
|
||||||
// Mmap
|
// Mmap
|
||||||
|
// Mlock
|
||||||
|
// Munlock
|
||||||
// Atsocket
|
// Atsocket
|
||||||
// Kqueue_from_portset_np
|
// Kqueue_from_portset_np
|
||||||
// Kqueue_portset
|
// Kqueue_portset
|
||||||
@@ -336,6 +347,8 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
// Lio_listio
|
// Lio_listio
|
||||||
// __pthread_cond_wait
|
// __pthread_cond_wait
|
||||||
// Iopolicysys
|
// Iopolicysys
|
||||||
|
// Mlockall
|
||||||
|
// Munlockall
|
||||||
// __pthread_kill
|
// __pthread_kill
|
||||||
// __pthread_sigmask
|
// __pthread_sigmask
|
||||||
// __sigwait
|
// __sigwait
|
||||||
|
|||||||
37
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
37
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
@@ -54,32 +54,16 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseDirent parses up to max directory entries in buf,
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
// appending the names to names. It returns the number
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
// bytes consumed from buf, the number of entries added
|
|
||||||
// to names, and the new names slice.
|
|
||||||
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
|
||||||
origlen := len(buf)
|
|
||||||
for max != 0 && len(buf) > 0 {
|
|
||||||
dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
|
|
||||||
if dirent.Reclen == 0 {
|
|
||||||
buf = nil
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
buf = buf[dirent.Reclen:]
|
|
||||||
if dirent.Fileno == 0 { // File absent in directory.
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
continue
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
|
|
||||||
var name = string(bytes[0:dirent.Namlen])
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
if name == "." || name == ".." { // Useless names
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
continue
|
|
||||||
}
|
|
||||||
max--
|
|
||||||
count++
|
|
||||||
names = append(names, name)
|
|
||||||
}
|
|
||||||
return origlen - len(buf), count, names
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb pipe() (r int, w int, err error)
|
//sysnb pipe() (r int, w int, err error)
|
||||||
@@ -129,7 +113,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
|
r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = e1
|
err = e1
|
||||||
@@ -374,6 +357,9 @@ func Llistxattr(link string, dest []byte) (sz int, err error) {
|
|||||||
*/
|
*/
|
||||||
//sys Access(path string, mode uint32) (err error)
|
//sys Access(path string, mode uint32) (err error)
|
||||||
//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
|
//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
|
||||||
|
//sys CapEnter() (err error)
|
||||||
|
//sys capRightsGet(version int, fd int, rightsp *CapRights) (err error) = SYS___CAP_RIGHTS_GET
|
||||||
|
//sys capRightsLimit(fd int, rightsp *CapRights) (err error)
|
||||||
//sys Chdir(path string) (err error)
|
//sys Chdir(path string) (err error)
|
||||||
//sys Chflags(path string, flags int) (err error)
|
//sys Chflags(path string, flags int) (err error)
|
||||||
//sys Chmod(path string, mode uint32) (err error)
|
//sys Chmod(path string, mode uint32) (err error)
|
||||||
@@ -438,6 +424,7 @@ func Llistxattr(link string, dest []byte) (sz int, err error) {
|
|||||||
//sys Munlockall() (err error)
|
//sys Munlockall() (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
|
//sys Openat(fdat int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
||||||
|
|||||||
446
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
446
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@@ -36,6 +36,59 @@ func Creat(path string, mode uint32) (fd int, err error) {
|
|||||||
return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
|
return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys fchmodat(dirfd int, path string, mode uint32) (err error)
|
||||||
|
|
||||||
|
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
// Linux fchmodat doesn't support the flags parameter. Mimick glibc's behavior
|
||||||
|
// and check the flags. Otherwise the mode would be applied to the symlink
|
||||||
|
// destination which is not what the user expects.
|
||||||
|
if flags&^AT_SYMLINK_NOFOLLOW != 0 {
|
||||||
|
return EINVAL
|
||||||
|
} else if flags&AT_SYMLINK_NOFOLLOW != 0 {
|
||||||
|
return EOPNOTSUPP
|
||||||
|
}
|
||||||
|
return fchmodat(dirfd, path, mode)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
|
// functions for specific types are permissible.
|
||||||
|
|
||||||
|
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||||
|
// on fd, using the specified request number.
|
||||||
|
func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
|
return ioctl(fd, req, uintptr(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||||
|
// from fd, using the specified request number.
|
||||||
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
|
var value int
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
|
var value Winsize
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
|
var value Termios
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)
|
//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)
|
||||||
|
|
||||||
func Link(oldpath string, newpath string) (err error) {
|
func Link(oldpath string, newpath string) (err error) {
|
||||||
@@ -69,10 +122,10 @@ func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error
|
|||||||
return ppoll(&fds[0], len(fds), timeout, sigmask)
|
return ppoll(&fds[0], len(fds), timeout, sigmask)
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys readlinkat(dirfd int, path string, buf []byte) (n int, err error)
|
//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
|
||||||
|
|
||||||
func Readlink(path string, buf []byte) (n int, err error) {
|
func Readlink(path string, buf []byte) (n int, err error) {
|
||||||
return readlinkat(AT_FDCWD, path, buf)
|
return Readlinkat(AT_FDCWD, path, buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Rename(oldpath string, newpath string) (err error) {
|
func Rename(oldpath string, newpath string) (err error) {
|
||||||
@@ -80,24 +133,20 @@ func Rename(oldpath string, newpath string) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Rmdir(path string) error {
|
func Rmdir(path string) error {
|
||||||
return unlinkat(AT_FDCWD, path, AT_REMOVEDIR)
|
return Unlinkat(AT_FDCWD, path, AT_REMOVEDIR)
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
|
|
||||||
func Symlink(oldpath string, newpath string) (err error) {
|
func Symlink(oldpath string, newpath string) (err error) {
|
||||||
return symlinkat(oldpath, AT_FDCWD, newpath)
|
return Symlinkat(oldpath, AT_FDCWD, newpath)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Unlink(path string) error {
|
func Unlink(path string) error {
|
||||||
return unlinkat(AT_FDCWD, path, 0)
|
return Unlinkat(AT_FDCWD, path, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys unlinkat(dirfd int, path string, flags int) (err error)
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
|
|
||||||
func Unlinkat(dirfd int, path string, flags int) error {
|
|
||||||
return unlinkat(dirfd, path, flags)
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys utimes(path string, times *[2]Timeval) (err error)
|
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||||
|
|
||||||
@@ -143,8 +192,7 @@ func UtimesNano(path string, ts []Timespec) error {
|
|||||||
// in 2.6.22, Released, 8 July 2007) then fall back to utimes
|
// in 2.6.22, Released, 8 July 2007) then fall back to utimes
|
||||||
var tv [2]Timeval
|
var tv [2]Timeval
|
||||||
for i := 0; i < 2; i++ {
|
for i := 0; i < 2; i++ {
|
||||||
tv[i].Sec = ts[i].Sec
|
tv[i] = NsecToTimeval(TimespecToNsec(ts[i]))
|
||||||
tv[i].Usec = ts[i].Nsec / 1000
|
|
||||||
}
|
}
|
||||||
return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
|
return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
|
||||||
}
|
}
|
||||||
@@ -304,10 +352,14 @@ func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) error {
|
||||||
return Mknod(path, mode|S_IFIFO, 0)
|
return Mknod(path, mode|S_IFIFO, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Mkfifoat(dirfd int, path string, mode uint32) error {
|
||||||
|
return Mknodat(dirfd, path, mode|S_IFIFO, 0)
|
||||||
|
}
|
||||||
|
|
||||||
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
if sa.Port < 0 || sa.Port > 0xFFFF {
|
if sa.Port < 0 || sa.Port > 0xFFFF {
|
||||||
return nil, 0, EINVAL
|
return nil, 0, EINVAL
|
||||||
@@ -416,6 +468,168 @@ func (sa *SockaddrHCI) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
|||||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrHCI, nil
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrHCI, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets.
|
||||||
|
// The RxID and TxID fields are used for transport protocol addressing in
|
||||||
|
// (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with
|
||||||
|
// zero values for CAN_RAW and CAN_BCM sockets as they have no meaning.
|
||||||
|
//
|
||||||
|
// The SockaddrCAN struct must be bound to the socket file descriptor
|
||||||
|
// using Bind before the CAN socket can be used.
|
||||||
|
//
|
||||||
|
// // Read one raw CAN frame
|
||||||
|
// fd, _ := Socket(AF_CAN, SOCK_RAW, CAN_RAW)
|
||||||
|
// addr := &SockaddrCAN{Ifindex: index}
|
||||||
|
// Bind(fd, addr)
|
||||||
|
// frame := make([]byte, 16)
|
||||||
|
// Read(fd, frame)
|
||||||
|
//
|
||||||
|
// The full SocketCAN documentation can be found in the linux kernel
|
||||||
|
// archives at: https://www.kernel.org/doc/Documentation/networking/can.txt
|
||||||
|
type SockaddrCAN struct {
|
||||||
|
Ifindex int
|
||||||
|
RxID uint32
|
||||||
|
TxID uint32
|
||||||
|
raw RawSockaddrCAN
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrCAN) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
sa.raw.Family = AF_CAN
|
||||||
|
sa.raw.Ifindex = int32(sa.Ifindex)
|
||||||
|
rx := (*[4]byte)(unsafe.Pointer(&sa.RxID))
|
||||||
|
for i := 0; i < 4; i++ {
|
||||||
|
sa.raw.Addr[i] = rx[i]
|
||||||
|
}
|
||||||
|
tx := (*[4]byte)(unsafe.Pointer(&sa.TxID))
|
||||||
|
for i := 0; i < 4; i++ {
|
||||||
|
sa.raw.Addr[i+4] = tx[i]
|
||||||
|
}
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// SockaddrALG implements the Sockaddr interface for AF_ALG type sockets.
|
||||||
|
// SockaddrALG enables userspace access to the Linux kernel's cryptography
|
||||||
|
// subsystem. The Type and Name fields specify which type of hash or cipher
|
||||||
|
// should be used with a given socket.
|
||||||
|
//
|
||||||
|
// To create a file descriptor that provides access to a hash or cipher, both
|
||||||
|
// Bind and Accept must be used. Once the setup process is complete, input
|
||||||
|
// data can be written to the socket, processed by the kernel, and then read
|
||||||
|
// back as hash output or ciphertext.
|
||||||
|
//
|
||||||
|
// Here is an example of using an AF_ALG socket with SHA1 hashing.
|
||||||
|
// The initial socket setup process is as follows:
|
||||||
|
//
|
||||||
|
// // Open a socket to perform SHA1 hashing.
|
||||||
|
// fd, _ := unix.Socket(unix.AF_ALG, unix.SOCK_SEQPACKET, 0)
|
||||||
|
// addr := &unix.SockaddrALG{Type: "hash", Name: "sha1"}
|
||||||
|
// unix.Bind(fd, addr)
|
||||||
|
// // Note: unix.Accept does not work at this time; must invoke accept()
|
||||||
|
// // manually using unix.Syscall.
|
||||||
|
// hashfd, _, _ := unix.Syscall(unix.SYS_ACCEPT, uintptr(fd), 0, 0)
|
||||||
|
//
|
||||||
|
// Once a file descriptor has been returned from Accept, it may be used to
|
||||||
|
// perform SHA1 hashing. The descriptor is not safe for concurrent use, but
|
||||||
|
// may be re-used repeatedly with subsequent Write and Read operations.
|
||||||
|
//
|
||||||
|
// When hashing a small byte slice or string, a single Write and Read may
|
||||||
|
// be used:
|
||||||
|
//
|
||||||
|
// // Assume hashfd is already configured using the setup process.
|
||||||
|
// hash := os.NewFile(hashfd, "sha1")
|
||||||
|
// // Hash an input string and read the results. Each Write discards
|
||||||
|
// // previous hash state. Read always reads the current state.
|
||||||
|
// b := make([]byte, 20)
|
||||||
|
// for i := 0; i < 2; i++ {
|
||||||
|
// io.WriteString(hash, "Hello, world.")
|
||||||
|
// hash.Read(b)
|
||||||
|
// fmt.Println(hex.EncodeToString(b))
|
||||||
|
// }
|
||||||
|
// // Output:
|
||||||
|
// // 2ae01472317d1935a84797ec1983ae243fc6aa28
|
||||||
|
// // 2ae01472317d1935a84797ec1983ae243fc6aa28
|
||||||
|
//
|
||||||
|
// For hashing larger byte slices, or byte streams such as those read from
|
||||||
|
// a file or socket, use Sendto with MSG_MORE to instruct the kernel to update
|
||||||
|
// the hash digest instead of creating a new one for a given chunk and finalizing it.
|
||||||
|
//
|
||||||
|
// // Assume hashfd and addr are already configured using the setup process.
|
||||||
|
// hash := os.NewFile(hashfd, "sha1")
|
||||||
|
// // Hash the contents of a file.
|
||||||
|
// f, _ := os.Open("/tmp/linux-4.10-rc7.tar.xz")
|
||||||
|
// b := make([]byte, 4096)
|
||||||
|
// for {
|
||||||
|
// n, err := f.Read(b)
|
||||||
|
// if err == io.EOF {
|
||||||
|
// break
|
||||||
|
// }
|
||||||
|
// unix.Sendto(hashfd, b[:n], unix.MSG_MORE, addr)
|
||||||
|
// }
|
||||||
|
// hash.Read(b)
|
||||||
|
// fmt.Println(hex.EncodeToString(b))
|
||||||
|
// // Output: 85cdcad0c06eef66f805ecce353bec9accbeecc5
|
||||||
|
//
|
||||||
|
// For more information, see: http://www.chronox.de/crypto-API/crypto/userspace-if.html.
|
||||||
|
type SockaddrALG struct {
|
||||||
|
Type string
|
||||||
|
Name string
|
||||||
|
Feature uint32
|
||||||
|
Mask uint32
|
||||||
|
raw RawSockaddrALG
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrALG) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
// Leave room for NUL byte terminator.
|
||||||
|
if len(sa.Type) > 13 {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
if len(sa.Name) > 63 {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
sa.raw.Family = AF_ALG
|
||||||
|
sa.raw.Feat = sa.Feature
|
||||||
|
sa.raw.Mask = sa.Mask
|
||||||
|
|
||||||
|
typ, err := ByteSliceFromString(sa.Type)
|
||||||
|
if err != nil {
|
||||||
|
return nil, 0, err
|
||||||
|
}
|
||||||
|
name, err := ByteSliceFromString(sa.Name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, 0, err
|
||||||
|
}
|
||||||
|
|
||||||
|
copy(sa.raw.Type[:], typ)
|
||||||
|
copy(sa.raw.Name[:], name)
|
||||||
|
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrALG, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// SockaddrVM implements the Sockaddr interface for AF_VSOCK type sockets.
|
||||||
|
// SockaddrVM provides access to Linux VM sockets: a mechanism that enables
|
||||||
|
// bidirectional communication between a hypervisor and its guest virtual
|
||||||
|
// machines.
|
||||||
|
type SockaddrVM struct {
|
||||||
|
// CID and Port specify a context ID and port address for a VM socket.
|
||||||
|
// Guests have a unique CID, and hosts may have a well-known CID of:
|
||||||
|
// - VMADDR_CID_HYPERVISOR: refers to the hypervisor process.
|
||||||
|
// - VMADDR_CID_HOST: refers to other processes on the host.
|
||||||
|
CID uint32
|
||||||
|
Port uint32
|
||||||
|
raw RawSockaddrVM
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
sa.raw.Family = AF_VSOCK
|
||||||
|
sa.raw.Port = sa.Port
|
||||||
|
sa.raw.Cid = sa.CID
|
||||||
|
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil
|
||||||
|
}
|
||||||
|
|
||||||
func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
|
func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
switch rsa.Addr.Family {
|
switch rsa.Addr.Family {
|
||||||
case AF_NETLINK:
|
case AF_NETLINK:
|
||||||
@@ -485,6 +699,14 @@ func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||||||
sa.Addr[i] = pp.Addr[i]
|
sa.Addr[i] = pp.Addr[i]
|
||||||
}
|
}
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
|
case AF_VSOCK:
|
||||||
|
pp := (*RawSockaddrVM)(unsafe.Pointer(rsa))
|
||||||
|
sa := &SockaddrVM{
|
||||||
|
CID: pp.Cid,
|
||||||
|
Port: pp.Port,
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
}
|
}
|
||||||
return nil, EAFNOSUPPORT
|
return nil, EAFNOSUPPORT
|
||||||
}
|
}
|
||||||
@@ -579,10 +801,124 @@ func GetsockoptUcred(fd, level, opt int) (*Ucred, error) {
|
|||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetsockoptTCPInfo(fd, level, opt int) (*TCPInfo, error) {
|
||||||
|
var value TCPInfo
|
||||||
|
vallen := _Socklen(SizeofTCPInfo)
|
||||||
|
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
|
func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
|
||||||
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
|
||||||
|
|
||||||
|
// KeyctlInt calls keyctl commands in which each argument is an int.
|
||||||
|
// These commands are KEYCTL_REVOKE, KEYCTL_CHOWN, KEYCTL_CLEAR, KEYCTL_LINK,
|
||||||
|
// KEYCTL_UNLINK, KEYCTL_NEGATE, KEYCTL_SET_REQKEY_KEYRING, KEYCTL_SET_TIMEOUT,
|
||||||
|
// KEYCTL_ASSUME_AUTHORITY, KEYCTL_SESSION_TO_PARENT, KEYCTL_REJECT,
|
||||||
|
// KEYCTL_INVALIDATE, and KEYCTL_GET_PERSISTENT.
|
||||||
|
//sys KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlBuffer calls keyctl commands in which the third and fourth
|
||||||
|
// arguments are a buffer and its length, respectively.
|
||||||
|
// These commands are KEYCTL_UPDATE, KEYCTL_READ, and KEYCTL_INSTANTIATE.
|
||||||
|
//sys KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlString calls keyctl commands which return a string.
|
||||||
|
// These commands are KEYCTL_DESCRIBE and KEYCTL_GET_SECURITY.
|
||||||
|
func KeyctlString(cmd int, id int) (string, error) {
|
||||||
|
// We must loop as the string data may change in between the syscalls.
|
||||||
|
// We could allocate a large buffer here to reduce the chance that the
|
||||||
|
// syscall needs to be called twice; however, this is unnecessary as
|
||||||
|
// the performance loss is negligible.
|
||||||
|
var buffer []byte
|
||||||
|
for {
|
||||||
|
// Try to fill the buffer with data
|
||||||
|
length, err := KeyctlBuffer(cmd, id, buffer, 0)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if the data was written
|
||||||
|
if length <= len(buffer) {
|
||||||
|
// Exclude the null terminator
|
||||||
|
return string(buffer[:length-1]), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make a bigger buffer if needed
|
||||||
|
buffer = make([]byte, length)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keyctl commands with special signatures.
|
||||||
|
|
||||||
|
// KeyctlGetKeyringID implements the KEYCTL_GET_KEYRING_ID command.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_get_keyring_ID.3.html
|
||||||
|
func KeyctlGetKeyringID(id int, create bool) (ringid int, err error) {
|
||||||
|
createInt := 0
|
||||||
|
if create {
|
||||||
|
createInt = 1
|
||||||
|
}
|
||||||
|
return KeyctlInt(KEYCTL_GET_KEYRING_ID, id, createInt, 0, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
// KeyctlSetperm implements the KEYCTL_SETPERM command. The perm value is the
|
||||||
|
// key handle permission mask as described in the "keyctl setperm" section of
|
||||||
|
// http://man7.org/linux/man-pages/man1/keyctl.1.html.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_setperm.3.html
|
||||||
|
func KeyctlSetperm(id int, perm uint32) error {
|
||||||
|
_, err := KeyctlInt(KEYCTL_SETPERM, id, int(perm), 0, 0)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys keyctlJoin(cmd int, arg2 string) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlJoinSessionKeyring implements the KEYCTL_JOIN_SESSION_KEYRING command.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_join_session_keyring.3.html
|
||||||
|
func KeyctlJoinSessionKeyring(name string) (ringid int, err error) {
|
||||||
|
return keyctlJoin(KEYCTL_JOIN_SESSION_KEYRING, name)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlSearch implements the KEYCTL_SEARCH command.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_search.3.html
|
||||||
|
func KeyctlSearch(ringid int, keyType, description string, destRingid int) (id int, err error) {
|
||||||
|
return keyctlSearch(KEYCTL_SEARCH, ringid, keyType, description, destRingid)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlInstantiateIOV implements the KEYCTL_INSTANTIATE_IOV command. This
|
||||||
|
// command is similar to KEYCTL_INSTANTIATE, except that the payload is a slice
|
||||||
|
// of Iovec (each of which represents a buffer) instead of a single buffer.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_instantiate_iov.3.html
|
||||||
|
func KeyctlInstantiateIOV(id int, payload []Iovec, ringid int) error {
|
||||||
|
return keyctlIOV(KEYCTL_INSTANTIATE_IOV, id, payload, ringid)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) = SYS_KEYCTL
|
||||||
|
|
||||||
|
// KeyctlDHCompute implements the KEYCTL_DH_COMPUTE command. This command
|
||||||
|
// computes a Diffie-Hellman shared secret based on the provide params. The
|
||||||
|
// secret is written to the provided buffer and the returned size is the number
|
||||||
|
// of bytes written (returning an error if there is insufficient space in the
|
||||||
|
// buffer). If a nil buffer is passed in, this function returns the minimum
|
||||||
|
// buffer length needed to store the appropriate data. Note that this differs
|
||||||
|
// from KEYCTL_READ's behavior which always returns the requested payload size.
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_dh_compute.3.html
|
||||||
|
func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error) {
|
||||||
|
return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer)
|
||||||
|
}
|
||||||
|
|
||||||
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||||
var msg Msghdr
|
var msg Msghdr
|
||||||
var rsa RawSockaddrAny
|
var rsa RawSockaddrAny
|
||||||
@@ -716,6 +1052,10 @@ func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {
|
|||||||
return ptracePeek(PTRACE_PEEKDATA, pid, addr, out)
|
return ptracePeek(PTRACE_PEEKDATA, pid, addr, out)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func PtracePeekUser(pid int, addr uintptr, out []byte) (count int, err error) {
|
||||||
|
return ptracePeek(PTRACE_PEEKUSR, pid, addr, out)
|
||||||
|
}
|
||||||
|
|
||||||
func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) {
|
func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) {
|
||||||
// As for ptracePeek, we need to align our accesses to deal
|
// As for ptracePeek, we need to align our accesses to deal
|
||||||
// with the possibility of straddling an invalid page.
|
// with the possibility of straddling an invalid page.
|
||||||
@@ -814,38 +1154,24 @@ func Reboot(cmd int) (err error) {
|
|||||||
return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
|
return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
func clen(n []byte) int {
|
|
||||||
for i := 0; i < len(n); i++ {
|
|
||||||
if n[i] == 0 {
|
|
||||||
return i
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return len(n)
|
|
||||||
}
|
|
||||||
|
|
||||||
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
||||||
return Getdents(fd, buf)
|
return Getdents(fd, buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
origlen := len(buf)
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
count = 0
|
|
||||||
for max != 0 && len(buf) > 0 {
|
|
||||||
dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
|
|
||||||
buf = buf[dirent.Reclen:]
|
|
||||||
if dirent.Ino == 0 { // File absent in directory.
|
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
|
|
||||||
var name = string(bytes[0:clen(bytes[:])])
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
if name == "." || name == ".." { // Useless names
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
max--
|
|
||||||
count++
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
names = append(names, name)
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
}
|
}
|
||||||
return origlen - len(buf), count, names
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
|
//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
|
||||||
@@ -871,22 +1197,24 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
|||||||
* Direct access
|
* Direct access
|
||||||
*/
|
*/
|
||||||
//sys Acct(path string) (err error)
|
//sys Acct(path string) (err error)
|
||||||
|
//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
|
||||||
//sys Adjtimex(buf *Timex) (state int, err error)
|
//sys Adjtimex(buf *Timex) (state int, err error)
|
||||||
//sys Chdir(path string) (err error)
|
//sys Chdir(path string) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
|
//sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
//sys Dup(oldfd int) (fd int, err error)
|
//sys Dup(oldfd int) (fd int, err error)
|
||||||
//sys Dup3(oldfd int, newfd int, flags int) (err error)
|
//sys Dup3(oldfd int, newfd int, flags int) (err error)
|
||||||
//sysnb EpollCreate(size int) (fd int, err error)
|
//sysnb EpollCreate(size int) (fd int, err error)
|
||||||
//sysnb EpollCreate1(flag int) (fd int, err error)
|
//sysnb EpollCreate1(flag int) (fd int, err error)
|
||||||
//sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)
|
//sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)
|
||||||
|
//sys Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD2
|
||||||
//sys Exit(code int) = SYS_EXIT_GROUP
|
//sys Exit(code int) = SYS_EXIT_GROUP
|
||||||
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error)
|
//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error)
|
||||||
//sys Fchdir(fd int) (err error)
|
//sys Fchdir(fd int) (err error)
|
||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
|
||||||
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
||||||
//sys Fdatasync(fd int) (err error)
|
//sys Fdatasync(fd int) (err error)
|
||||||
@@ -903,7 +1231,9 @@ func Getpgrp() (pid int) {
|
|||||||
//sysnb Getpid() (pid int)
|
//sysnb Getpid() (pid int)
|
||||||
//sysnb Getppid() (ppid int)
|
//sysnb Getppid() (ppid int)
|
||||||
//sys Getpriority(which int, who int) (prio int, err error)
|
//sys Getpriority(which int, who int) (prio int, err error)
|
||||||
|
//sys Getrandom(buf []byte, flags int) (n int, err error)
|
||||||
//sysnb Getrusage(who int, rusage *Rusage) (err error)
|
//sysnb Getrusage(who int, rusage *Rusage) (err error)
|
||||||
|
//sysnb Getsid(pid int) (sid int, err error)
|
||||||
//sysnb Gettid() (tid int)
|
//sysnb Gettid() (tid int)
|
||||||
//sys Getxattr(path string, attr string, dest []byte) (sz int, err error)
|
//sys Getxattr(path string, attr string, dest []byte) (sz int, err error)
|
||||||
//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)
|
//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)
|
||||||
@@ -911,16 +1241,21 @@ func Getpgrp() (pid int) {
|
|||||||
//sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)
|
//sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)
|
||||||
//sysnb Kill(pid int, sig syscall.Signal) (err error)
|
//sysnb Kill(pid int, sig syscall.Signal) (err error)
|
||||||
//sys Klogctl(typ int, buf []byte) (n int, err error) = SYS_SYSLOG
|
//sys Klogctl(typ int, buf []byte) (n int, err error) = SYS_SYSLOG
|
||||||
|
//sys Lgetxattr(path string, attr string, dest []byte) (sz int, err error)
|
||||||
//sys Listxattr(path string, dest []byte) (sz int, err error)
|
//sys Listxattr(path string, dest []byte) (sz int, err error)
|
||||||
|
//sys Llistxattr(path string, dest []byte) (sz int, err error)
|
||||||
|
//sys Lremovexattr(path string, attr string) (err error)
|
||||||
|
//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error)
|
||||||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
|
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
|
||||||
//sysnb prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) = SYS_PRLIMIT64
|
//sysnb prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64
|
||||||
//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
|
//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Removexattr(path string, attr string) (err error)
|
//sys Removexattr(path string, attr string) (err error)
|
||||||
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
|
//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error)
|
||||||
//sys Setdomainname(p []byte) (err error)
|
//sys Setdomainname(p []byte) (err error)
|
||||||
//sys Sethostname(p []byte) (err error)
|
//sys Sethostname(p []byte) (err error)
|
||||||
//sysnb Setpgid(pid int, pgid int) (err error)
|
//sysnb Setpgid(pid int, pgid int) (err error)
|
||||||
@@ -982,10 +1317,28 @@ func Munmap(b []byte) (err error) {
|
|||||||
//sys Mlockall(flags int) (err error)
|
//sys Mlockall(flags int) (err error)
|
||||||
//sys Munlockall() (err error)
|
//sys Munlockall() (err error)
|
||||||
|
|
||||||
|
// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
|
||||||
|
// using the specified flags.
|
||||||
|
func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
||||||
|
n, _, errno := Syscall6(
|
||||||
|
SYS_VMSPLICE,
|
||||||
|
uintptr(fd),
|
||||||
|
uintptr(unsafe.Pointer(&iovs[0])),
|
||||||
|
uintptr(len(iovs)),
|
||||||
|
uintptr(flags),
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
)
|
||||||
|
if errno != 0 {
|
||||||
|
return 0, syscall.Errno(errno)
|
||||||
|
}
|
||||||
|
|
||||||
|
return int(n), nil
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
// AddKey
|
|
||||||
// AfsSyscall
|
// AfsSyscall
|
||||||
// Alarm
|
// Alarm
|
||||||
// ArchPrctl
|
// ArchPrctl
|
||||||
@@ -1001,7 +1354,6 @@ func Munmap(b []byte) (err error) {
|
|||||||
// EpollCtlOld
|
// EpollCtlOld
|
||||||
// EpollPwait
|
// EpollPwait
|
||||||
// EpollWaitOld
|
// EpollWaitOld
|
||||||
// Eventfd
|
|
||||||
// Execve
|
// Execve
|
||||||
// Fgetxattr
|
// Fgetxattr
|
||||||
// Flistxattr
|
// Flistxattr
|
||||||
@@ -1020,16 +1372,10 @@ func Munmap(b []byte) (err error) {
|
|||||||
// IoGetevents
|
// IoGetevents
|
||||||
// IoSetup
|
// IoSetup
|
||||||
// IoSubmit
|
// IoSubmit
|
||||||
// Ioctl
|
|
||||||
// IoprioGet
|
// IoprioGet
|
||||||
// IoprioSet
|
// IoprioSet
|
||||||
// KexecLoad
|
// KexecLoad
|
||||||
// Keyctl
|
|
||||||
// Lgetxattr
|
|
||||||
// Llistxattr
|
|
||||||
// LookupDcookie
|
// LookupDcookie
|
||||||
// Lremovexattr
|
|
||||||
// Lsetxattr
|
|
||||||
// Mbind
|
// Mbind
|
||||||
// MigratePages
|
// MigratePages
|
||||||
// Mincore
|
// Mincore
|
||||||
@@ -1060,7 +1406,6 @@ func Munmap(b []byte) (err error) {
|
|||||||
// Readahead
|
// Readahead
|
||||||
// Readv
|
// Readv
|
||||||
// RemapFilePages
|
// RemapFilePages
|
||||||
// RequestKey
|
|
||||||
// RestartSyscall
|
// RestartSyscall
|
||||||
// RtSigaction
|
// RtSigaction
|
||||||
// RtSigpending
|
// RtSigpending
|
||||||
@@ -1109,7 +1454,6 @@ func Munmap(b []byte) (err error) {
|
|||||||
// Utimensat
|
// Utimensat
|
||||||
// Vfork
|
// Vfork
|
||||||
// Vhangup
|
// Vhangup
|
||||||
// Vmsplice
|
|
||||||
// Vserver
|
// Vserver
|
||||||
// Waitid
|
// Waitid
|
||||||
// _Sysctl
|
// _Sysctl
|
||||||
|
|||||||
5
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
5
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
@@ -6,8 +6,6 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import "syscall"
|
|
||||||
|
|
||||||
//sys Dup2(oldfd int, newfd int) (err error)
|
//sys Dup2(oldfd int, newfd int) (err error)
|
||||||
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||||
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
|
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
|
||||||
@@ -63,9 +61,6 @@ import "syscall"
|
|||||||
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
|
||||||
|
|
||||||
//go:noescape
|
|
||||||
func gettimeofday(tv *Timeval) (err syscall.Errno)
|
|
||||||
|
|
||||||
func Gettimeofday(tv *Timeval) (err error) {
|
func Gettimeofday(tv *Timeval) (err error) {
|
||||||
errno := gettimeofday(tv)
|
errno := gettimeofday(tv)
|
||||||
if errno != 0 {
|
if errno != 0 {
|
||||||
|
|||||||
13
vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go
generated
vendored
Normal file
13
vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build amd64,linux
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
//go:noescape
|
||||||
|
func gettimeofday(tv *Timeval) (err syscall.Errno)
|
||||||
2
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
@@ -6,8 +6,6 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
const _SYS_dup = SYS_DUP3
|
|
||||||
|
|
||||||
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT
|
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
|
|||||||
12
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
@@ -7,13 +7,7 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
// Linux introduced getdents64 syscall for N64 ABI only in 3.10
|
//sys Dup2(oldfd int, newfd int) (err error)
|
||||||
// (May 21 2013, rev dec33abaafc89bcbd78f85fad0513170415a26d5),
|
|
||||||
// to support older kernels, we have to use getdents for mips64.
|
|
||||||
// Also note that struct dirent is different for these two.
|
|
||||||
// Lookup linux_dirent{,64} in kernel source code for details.
|
|
||||||
const _SYS_getdents = SYS_GETDENTS
|
|
||||||
|
|
||||||
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
||||||
@@ -189,9 +183,9 @@ func fillStat_t(s *Stat_t, st *stat_t) {
|
|||||||
s.Blocks = st.Blocks
|
s.Blocks = st.Blocks
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *PtraceRegs) PC() uint64 { return r.Regs[64] }
|
func (r *PtraceRegs) PC() uint64 { return r.Epc }
|
||||||
|
|
||||||
func (r *PtraceRegs) SetPC(pc uint64) { r.Regs[64] = pc }
|
func (r *PtraceRegs) SetPC(pc uint64) { r.Epc = pc }
|
||||||
|
|
||||||
func (iov *Iovec) SetLen(length int) {
|
func (iov *Iovec) SetLen(length int) {
|
||||||
iov.Len = uint64(length)
|
iov.Len = uint64(length)
|
||||||
|
|||||||
239
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
Normal file
239
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
Normal file
@@ -0,0 +1,239 @@
|
|||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build linux
|
||||||
|
// +build mips mipsle
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
|
//sys Dup2(oldfd int, newfd int) (err error)
|
||||||
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
|
//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64
|
||||||
|
//sysnb Getegid() (egid int)
|
||||||
|
//sysnb Geteuid() (euid int)
|
||||||
|
//sysnb Getgid() (gid int)
|
||||||
|
//sysnb Getuid() (uid int)
|
||||||
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
|
//sys Listen(s int, n int) (err error)
|
||||||
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||||
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
|
//sys Setfsgid(gid int) (err error)
|
||||||
|
//sys Setfsuid(uid int) (err error)
|
||||||
|
//sysnb Setregid(rgid int, egid int) (err error)
|
||||||
|
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
||||||
|
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||||
|
|
||||||
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
|
||||||
|
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||||
|
//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
|
||||||
|
//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
|
||||||
|
//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
|
||||||
|
//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
|
||||||
|
//sysnb setgroups(n int, list *_Gid_t) (err error)
|
||||||
|
//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
|
||||||
|
//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
|
||||||
|
//sysnb socket(domain int, typ int, proto int) (fd int, err error)
|
||||||
|
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
|
||||||
|
//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
|
||||||
|
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
||||||
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
||||||
|
|
||||||
|
//sysnb InotifyInit() (fd int, err error)
|
||||||
|
//sys Ioperm(from int, num int, on int) (err error)
|
||||||
|
//sys Iopl(level int) (err error)
|
||||||
|
|
||||||
|
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||||
|
//sysnb Time(t *Time_t) (tt Time_t, err error)
|
||||||
|
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
|
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
|
||||||
|
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||||
|
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||||
|
//sys Pause() (err error)
|
||||||
|
|
||||||
|
func Fstatfs(fd int, buf *Statfs_t) (err error) {
|
||||||
|
_, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
|
||||||
|
if e != 0 {
|
||||||
|
err = errnoErr(e)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Statfs(path string, buf *Statfs_t) (err error) {
|
||||||
|
p, err := BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
_, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(p)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
|
||||||
|
if e != 0 {
|
||||||
|
err = errnoErr(e)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Seek(fd int, offset int64, whence int) (off int64, err error) {
|
||||||
|
_, _, e := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offset>>32), uintptr(offset), uintptr(unsafe.Pointer(&off)), uintptr(whence), 0)
|
||||||
|
if e != 0 {
|
||||||
|
err = errnoErr(e)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
|
||||||
|
|
||||||
|
func NsecToTimespec(nsec int64) (ts Timespec) {
|
||||||
|
ts.Sec = int32(nsec / 1e9)
|
||||||
|
ts.Nsec = int32(nsec % 1e9)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func NsecToTimeval(nsec int64) (tv Timeval) {
|
||||||
|
nsec += 999 // round up to microsecond
|
||||||
|
tv.Sec = int32(nsec / 1e9)
|
||||||
|
tv.Usec = int32(nsec % 1e9 / 1e3)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
|
||||||
|
|
||||||
|
func Pipe2(p []int, flags int) (err error) {
|
||||||
|
if len(p) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
var pp [2]_C_int
|
||||||
|
err = pipe2(&pp, flags)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Pipe(p []int) (err error) {
|
||||||
|
if len(p) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
var pp [2]_C_int
|
||||||
|
err = pipe2(&pp, 0)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
|
||||||
|
|
||||||
|
func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
|
||||||
|
page := uintptr(offset / 4096)
|
||||||
|
if offset != int64(page)*4096 {
|
||||||
|
return 0, EINVAL
|
||||||
|
}
|
||||||
|
return mmap2(addr, length, prot, flags, fd, page)
|
||||||
|
}
|
||||||
|
|
||||||
|
const rlimInf32 = ^uint32(0)
|
||||||
|
const rlimInf64 = ^uint64(0)
|
||||||
|
|
||||||
|
type rlimit32 struct {
|
||||||
|
Cur uint32
|
||||||
|
Max uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT
|
||||||
|
|
||||||
|
func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
||||||
|
err = prlimit(0, resource, nil, rlim)
|
||||||
|
if err != ENOSYS {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
rl := rlimit32{}
|
||||||
|
err = getrlimit(resource, &rl)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if rl.Cur == rlimInf32 {
|
||||||
|
rlim.Cur = rlimInf64
|
||||||
|
} else {
|
||||||
|
rlim.Cur = uint64(rl.Cur)
|
||||||
|
}
|
||||||
|
|
||||||
|
if rl.Max == rlimInf32 {
|
||||||
|
rlim.Max = rlimInf64
|
||||||
|
} else {
|
||||||
|
rlim.Max = uint64(rl.Max)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
|
||||||
|
|
||||||
|
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
||||||
|
err = prlimit(0, resource, rlim, nil)
|
||||||
|
if err != ENOSYS {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
rl := rlimit32{}
|
||||||
|
if rlim.Cur == rlimInf64 {
|
||||||
|
rl.Cur = rlimInf32
|
||||||
|
} else if rlim.Cur < uint64(rlimInf32) {
|
||||||
|
rl.Cur = uint32(rlim.Cur)
|
||||||
|
} else {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
if rlim.Max == rlimInf64 {
|
||||||
|
rl.Max = rlimInf32
|
||||||
|
} else if rlim.Max < uint64(rlimInf32) {
|
||||||
|
rl.Max = uint32(rlim.Max)
|
||||||
|
} else {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
return setrlimit(resource, &rl)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *PtraceRegs) PC() uint64 { return r.Epc }
|
||||||
|
|
||||||
|
func (r *PtraceRegs) SetPC(pc uint64) { r.Epc = pc }
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
|
||||||
|
|
||||||
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
|
if len(fds) == 0 {
|
||||||
|
return poll(nil, 0, timeout)
|
||||||
|
}
|
||||||
|
return poll(&fds[0], len(fds), timeout)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getpagesize() int { return 4096 }
|
||||||
1
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
@@ -132,7 +132,6 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
|||||||
func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
|
func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
|
||||||
mmap_args := [6]uintptr{addr, length, uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)}
|
mmap_args := [6]uintptr{addr, length, uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)}
|
||||||
r0, _, e1 := Syscall(SYS_MMAP, uintptr(unsafe.Pointer(&mmap_args[0])), 0, 0)
|
r0, _, e1 := Syscall(SYS_MMAP, uintptr(unsafe.Pointer(&mmap_args[0])), 0, 0)
|
||||||
use(unsafe.Pointer(&mmap_args[0]))
|
|
||||||
xaddr = uintptr(r0)
|
xaddr = uintptr(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
|||||||
169
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
Normal file
169
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build sparc64,linux
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"sync/atomic"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||||
|
//sys Dup2(oldfd int, newfd int) (err error)
|
||||||
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
|
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
||||||
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
|
//sysnb Getegid() (egid int)
|
||||||
|
//sysnb Geteuid() (euid int)
|
||||||
|
//sysnb Getgid() (gid int)
|
||||||
|
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
|
//sysnb Getuid() (uid int)
|
||||||
|
//sysnb InotifyInit() (fd int, err error)
|
||||||
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
|
//sys Listen(s int, n int) (err error)
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Pause() (err error)
|
||||||
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
|
//sys Setfsgid(gid int) (err error)
|
||||||
|
//sys Setfsuid(uid int) (err error)
|
||||||
|
//sysnb Setregid(rgid int, egid int) (err error)
|
||||||
|
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
||||||
|
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||||
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Statfs(path string, buf *Statfs_t) (err error)
|
||||||
|
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||||
|
//sys Truncate(path string, length int64) (err error)
|
||||||
|
//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
|
||||||
|
//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
|
||||||
|
//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
|
||||||
|
//sysnb setgroups(n int, list *_Gid_t) (err error)
|
||||||
|
//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
|
||||||
|
//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
|
||||||
|
//sysnb socket(domain int, typ int, proto int) (fd int, err error)
|
||||||
|
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
|
||||||
|
//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
|
||||||
|
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
||||||
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
||||||
|
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
|
||||||
|
|
||||||
|
func sysconf(name int) (n int64, err syscall.Errno)
|
||||||
|
|
||||||
|
// pageSize caches the value of Getpagesize, since it can't change
|
||||||
|
// once the system is booted.
|
||||||
|
var pageSize int64 // accessed atomically
|
||||||
|
|
||||||
|
func Getpagesize() int {
|
||||||
|
n := atomic.LoadInt64(&pageSize)
|
||||||
|
if n == 0 {
|
||||||
|
n, _ = sysconf(_SC_PAGESIZE)
|
||||||
|
atomic.StoreInt64(&pageSize, n)
|
||||||
|
}
|
||||||
|
return int(n)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Ioperm(from int, num int, on int) (err error) {
|
||||||
|
return ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
|
func Iopl(level int) (err error) {
|
||||||
|
return ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||||
|
|
||||||
|
func Time(t *Time_t) (tt Time_t, err error) {
|
||||||
|
var tv Timeval
|
||||||
|
err = Gettimeofday(&tv)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
if t != nil {
|
||||||
|
*t = Time_t(tv.Sec)
|
||||||
|
}
|
||||||
|
return Time_t(tv.Sec), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||||
|
|
||||||
|
func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
|
||||||
|
|
||||||
|
func NsecToTimespec(nsec int64) (ts Timespec) {
|
||||||
|
ts.Sec = nsec / 1e9
|
||||||
|
ts.Nsec = nsec % 1e9
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func NsecToTimeval(nsec int64) (tv Timeval) {
|
||||||
|
nsec += 999 // round up to microsecond
|
||||||
|
tv.Sec = nsec / 1e9
|
||||||
|
tv.Usec = int32(nsec % 1e9 / 1e3)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *PtraceRegs) PC() uint64 { return r.Tpc }
|
||||||
|
|
||||||
|
func (r *PtraceRegs) SetPC(pc uint64) { r.Tpc = pc }
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb pipe(p *[2]_C_int) (err error)
|
||||||
|
|
||||||
|
func Pipe(p []int) (err error) {
|
||||||
|
if len(p) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
var pp [2]_C_int
|
||||||
|
err = pipe(&pp)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
|
||||||
|
|
||||||
|
func Pipe2(p []int, flags int) (err error) {
|
||||||
|
if len(p) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
var pp [2]_C_int
|
||||||
|
err = pipe2(&pp, flags)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
|
||||||
|
|
||||||
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
|
if len(fds) == 0 {
|
||||||
|
return poll(nil, 0, timeout)
|
||||||
|
}
|
||||||
|
return poll(&fds[0], len(fds), timeout)
|
||||||
|
}
|
||||||
32
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
32
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@@ -93,32 +93,16 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return mib, nil
|
return mib, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseDirent parses up to max directory entries in buf,
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
// appending the names to names. It returns the number
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
// bytes consumed from buf, the number of entries added
|
|
||||||
// to names, and the new names slice.
|
|
||||||
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
|
||||||
origlen := len(buf)
|
|
||||||
for max != 0 && len(buf) > 0 {
|
|
||||||
dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
|
|
||||||
if dirent.Reclen == 0 {
|
|
||||||
buf = nil
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
buf = buf[dirent.Reclen:]
|
|
||||||
if dirent.Fileno == 0 { // File absent in directory.
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
continue
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
|
|
||||||
var name = string(bytes[0:dirent.Namlen])
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
if name == "." || name == ".." { // Useless names
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
continue
|
|
||||||
}
|
|
||||||
max--
|
|
||||||
count++
|
|
||||||
names = append(names, name)
|
|
||||||
}
|
|
||||||
return origlen - len(buf), count, names
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb pipe() (fd1 int, fd2 int, err error)
|
//sysnb pipe() (fd1 int, fd2 int, err error)
|
||||||
|
|||||||
33
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
33
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@@ -53,32 +53,16 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return nil, EINVAL
|
return nil, EINVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseDirent parses up to max directory entries in buf,
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
// appending the names to names. It returns the number
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
// bytes consumed from buf, the number of entries added
|
|
||||||
// to names, and the new names slice.
|
|
||||||
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
|
||||||
origlen := len(buf)
|
|
||||||
for max != 0 && len(buf) > 0 {
|
|
||||||
dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
|
|
||||||
if dirent.Reclen == 0 {
|
|
||||||
buf = nil
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
buf = buf[dirent.Reclen:]
|
|
||||||
if dirent.Fileno == 0 { // File absent in directory.
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
continue
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
|
|
||||||
var name = string(bytes[0:dirent.Namlen])
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
if name == "." || name == ".." { // Useless names
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
continue
|
|
||||||
}
|
|
||||||
max--
|
|
||||||
count++
|
|
||||||
names = append(names, name)
|
|
||||||
}
|
|
||||||
return origlen - len(buf), count, names
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb pipe(p *[2]_C_int) (err error)
|
//sysnb pipe(p *[2]_C_int) (err error)
|
||||||
@@ -111,7 +95,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||||||
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
|
r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = e1
|
err = e1
|
||||||
|
|||||||
76
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
76
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@@ -44,32 +44,20 @@ func clen(n []byte) int {
|
|||||||
return len(n)
|
return len(n)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseDirent parses up to max directory entries in buf,
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
// appending the names to names. It returns the number
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
// bytes consumed from buf, the number of entries added
|
|
||||||
// to names, and the new names slice.
|
|
||||||
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
|
||||||
origlen := len(buf)
|
|
||||||
for max != 0 && len(buf) > 0 {
|
|
||||||
dirent := (*Dirent)(unsafe.Pointer(&buf[0]))
|
|
||||||
if dirent.Reclen == 0 {
|
|
||||||
buf = nil
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
buf = buf[dirent.Reclen:]
|
|
||||||
if dirent.Ino == 0 { // File absent in directory.
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
continue
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&dirent.Name[0]))
|
|
||||||
var name = string(bytes[0:clen(bytes[:])])
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
if name == "." || name == ".." { // Useless names
|
reclen, ok := direntReclen(buf)
|
||||||
continue
|
if !ok {
|
||||||
|
return 0, false
|
||||||
}
|
}
|
||||||
max--
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
count++
|
|
||||||
names = append(names, name)
|
|
||||||
}
|
|
||||||
return origlen - len(buf), count, names
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb pipe(p *[2]_C_int) (n int, err error)
|
//sysnb pipe(p *[2]_C_int) (n int, err error)
|
||||||
@@ -434,7 +422,7 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.recvmsg
|
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.__xnet_recvmsg
|
||||||
|
|
||||||
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||||
var msg Msghdr
|
var msg Msghdr
|
||||||
@@ -453,7 +441,7 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
|
|||||||
iov.Base = &dummy
|
iov.Base = &dummy
|
||||||
iov.SetLen(1)
|
iov.SetLen(1)
|
||||||
}
|
}
|
||||||
msg.Accrights = (*int8)(unsafe.Pointer(&oob[0]))
|
msg.Accrightslen = int32(len(oob))
|
||||||
}
|
}
|
||||||
msg.Iov = &iov
|
msg.Iov = &iov
|
||||||
msg.Iovlen = 1
|
msg.Iovlen = 1
|
||||||
@@ -473,7 +461,7 @@ func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.sendmsg
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.__xnet_sendmsg
|
||||||
|
|
||||||
func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
||||||
var ptr unsafe.Pointer
|
var ptr unsafe.Pointer
|
||||||
@@ -499,7 +487,7 @@ func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
|
|||||||
iov.Base = &dummy
|
iov.Base = &dummy
|
||||||
iov.SetLen(1)
|
iov.SetLen(1)
|
||||||
}
|
}
|
||||||
msg.Accrights = (*int8)(unsafe.Pointer(&oob[0]))
|
msg.Accrightslen = int32(len(oob))
|
||||||
}
|
}
|
||||||
msg.Iov = &iov
|
msg.Iov = &iov
|
||||||
msg.Iovlen = 1
|
msg.Iovlen = 1
|
||||||
@@ -531,43 +519,43 @@ func Acct(path string) (err error) {
|
|||||||
* Expose the ioctl function
|
* Expose the ioctl function
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//sys ioctl(fd int, req int, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
func IoctlSetInt(fd int, req int, value int) (err error) {
|
func IoctlSetInt(fd int, req uint, value int) (err error) {
|
||||||
return ioctl(fd, req, uintptr(value))
|
return ioctl(fd, req, uintptr(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetWinsize(fd int, req int, value *Winsize) (err error) {
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetTermios(fd int, req int, value *Termios) (err error) {
|
func IoctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetTermio(fd int, req int, value *Termio) (err error) {
|
func IoctlSetTermio(fd int, req uint, value *Termio) (err error) {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlGetInt(fd int, req int) (int, error) {
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
var value int
|
var value int
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
return value, err
|
return value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req int) (*Winsize, error) {
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
var value Winsize
|
var value Winsize
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req int) (*Termios, error) {
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
var value Termios
|
var value Termios
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlGetTermio(fd int, req int) (*Termio, error) {
|
func IoctlGetTermio(fd int, req uint) (*Termio, error) {
|
||||||
var value Termio
|
var value Termio
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
return &value, err
|
return &value, err
|
||||||
@@ -595,6 +583,7 @@ func IoctlGetTermio(fd int, req int) (*Termio, error) {
|
|||||||
//sys Fdatasync(fd int) (err error)
|
//sys Fdatasync(fd int) (err error)
|
||||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
|
//sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error)
|
||||||
//sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error)
|
//sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error)
|
||||||
//sysnb Getgid() (gid int)
|
//sysnb Getgid() (gid int)
|
||||||
//sysnb Getpid() (pid int)
|
//sysnb Getpid() (pid int)
|
||||||
@@ -611,7 +600,7 @@ func IoctlGetTermio(fd int, req int) (*Termio, error) {
|
|||||||
//sys Kill(pid int, signum syscall.Signal) (err error)
|
//sys Kill(pid int, signum syscall.Signal) (err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error) = libsocket.listen
|
//sys Listen(s int, backlog int) (err error) = libsocket.__xnet_llisten
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Madvise(b []byte, advice int) (err error)
|
//sys Madvise(b []byte, advice int) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
@@ -651,6 +640,7 @@ func IoctlGetTermio(fd int, req int) (*Termio, error) {
|
|||||||
//sysnb Setuid(uid int) (err error)
|
//sysnb Setuid(uid int) (err error)
|
||||||
//sys Shutdown(s int, how int) (err error) = libsocket.shutdown
|
//sys Shutdown(s int, how int) (err error) = libsocket.shutdown
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Statvfs(path string, vfsstat *Statvfs_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sysnb Times(tms *Tms) (ticks uintptr, err error)
|
//sysnb Times(tms *Tms) (ticks uintptr, err error)
|
||||||
@@ -664,15 +654,15 @@ func IoctlGetTermio(fd int, req int) (*Termio, error) {
|
|||||||
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||||
//sys Utime(path string, buf *Utimbuf) (err error)
|
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||||
//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.bind
|
//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_bind
|
||||||
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.connect
|
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_connect
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
//sys munmap(addr uintptr, length uintptr) (err error)
|
//sys munmap(addr uintptr, length uintptr) (err error)
|
||||||
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.sendto
|
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_sendto
|
||||||
//sys socket(domain int, typ int, proto int) (fd int, err error) = libsocket.socket
|
//sys socket(domain int, typ int, proto int) (fd int, err error) = libsocket.__xnet_socket
|
||||||
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.socketpair
|
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.__xnet_socketpair
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) = libsocket.getsockopt
|
//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) = libsocket.__xnet_getsockopt
|
||||||
//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = libsocket.getpeername
|
//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = libsocket.getpeername
|
||||||
//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) = libsocket.setsockopt
|
//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) = libsocket.setsockopt
|
||||||
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) = libsocket.recvfrom
|
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) = libsocket.recvfrom
|
||||||
|
|||||||
6
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
6
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
@@ -23,6 +23,7 @@ const (
|
|||||||
darwin64Bit = runtime.GOOS == "darwin" && sizeofPtr == 8
|
darwin64Bit = runtime.GOOS == "darwin" && sizeofPtr == 8
|
||||||
dragonfly64Bit = runtime.GOOS == "dragonfly" && sizeofPtr == 8
|
dragonfly64Bit = runtime.GOOS == "dragonfly" && sizeofPtr == 8
|
||||||
netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4
|
netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4
|
||||||
|
solaris64Bit = runtime.GOOS == "solaris" && sizeofPtr == 8
|
||||||
)
|
)
|
||||||
|
|
||||||
// Do the interface allocations only once for common
|
// Do the interface allocations only once for common
|
||||||
@@ -49,11 +50,6 @@ func errnoErr(e syscall.Errno) error {
|
|||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
|
||||||
func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
|
||||||
func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
|
||||||
func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
|
||||||
|
|
||||||
// Mmap manager, for use by operating system-specific implementations.
|
// Mmap manager, for use by operating system-specific implementations.
|
||||||
|
|
||||||
type mmapper struct {
|
type mmapper struct {
|
||||||
|
|||||||
15
vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
Normal file
15
vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
2
vendor/golang.org/x/sys/unix/types_darwin.go
generated
vendored
2
vendor/golang.org/x/sys/unix/types_darwin.go
generated
vendored
@@ -5,7 +5,7 @@
|
|||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Input to cgo -godefs. See also mkerrors.sh and mkall.sh
|
Input to cgo -godefs. See README.md
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// +godefs map struct_in_addr [4]byte /* in_addr */
|
// +godefs map struct_in_addr [4]byte /* in_addr */
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/types_dragonfly.go
generated
vendored
2
vendor/golang.org/x/sys/unix/types_dragonfly.go
generated
vendored
@@ -5,7 +5,7 @@
|
|||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Input to cgo -godefs. See also mkerrors.sh and mkall.sh
|
Input to cgo -godefs. See README.md
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// +godefs map struct_in_addr [4]byte /* in_addr */
|
// +godefs map struct_in_addr [4]byte /* in_addr */
|
||||||
|
|||||||
10
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
10
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
@@ -5,7 +5,7 @@
|
|||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Input to cgo -godefs. See also mkerrors.sh and mkall.sh
|
Input to cgo -godefs. See README.md
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// +godefs map struct_in_addr [4]byte /* in_addr */
|
// +godefs map struct_in_addr [4]byte /* in_addr */
|
||||||
@@ -21,6 +21,7 @@ package unix
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/capability.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
@@ -130,7 +131,10 @@ struct if_data8 {
|
|||||||
u_long ifi_iqdrops;
|
u_long ifi_iqdrops;
|
||||||
u_long ifi_noproto;
|
u_long ifi_noproto;
|
||||||
u_long ifi_hwassist;
|
u_long ifi_hwassist;
|
||||||
|
// FIXME: these are now unions, so maybe need to change definitions?
|
||||||
|
#undef ifi_epoch
|
||||||
time_t ifi_epoch;
|
time_t ifi_epoch;
|
||||||
|
#undef ifi_lastchange
|
||||||
struct timeval ifi_lastchange;
|
struct timeval ifi_lastchange;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -351,3 +355,7 @@ type BpfZbufHeader C.struct_bpf_zbuf_header
|
|||||||
// Terminal handling
|
// Terminal handling
|
||||||
|
|
||||||
type Termios C.struct_termios
|
type Termios C.struct_termios
|
||||||
|
|
||||||
|
// Capabilities
|
||||||
|
|
||||||
|
type CapRights C.struct_cap_rights
|
||||||
|
|||||||
450
vendor/golang.org/x/sys/unix/types_linux.go
generated
vendored
450
vendor/golang.org/x/sys/unix/types_linux.go
generated
vendored
@@ -1,450 +0,0 @@
|
|||||||
// Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
/*
|
|
||||||
Input to cgo -godefs. See also mkerrors.sh and mkall.sh
|
|
||||||
*/
|
|
||||||
|
|
||||||
// +godefs map struct_in_addr [4]byte /* in_addr */
|
|
||||||
// +godefs map struct_in6_addr [16]byte /* in6_addr */
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
/*
|
|
||||||
#define _LARGEFILE_SOURCE
|
|
||||||
#define _LARGEFILE64_SOURCE
|
|
||||||
#define _FILE_OFFSET_BITS 64
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
|
|
||||||
#include <dirent.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <netinet/tcp.h>
|
|
||||||
#include <netpacket/packet.h>
|
|
||||||
#include <poll.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <sys/epoll.h>
|
|
||||||
#include <sys/inotify.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/mount.h>
|
|
||||||
#include <sys/param.h>
|
|
||||||
#include <sys/ptrace.h>
|
|
||||||
#include <sys/resource.h>
|
|
||||||
#include <sys/select.h>
|
|
||||||
#include <sys/signal.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/statfs.h>
|
|
||||||
#include <sys/sysinfo.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <sys/times.h>
|
|
||||||
#include <sys/timex.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/un.h>
|
|
||||||
#include <sys/user.h>
|
|
||||||
#include <sys/utsname.h>
|
|
||||||
#include <sys/wait.h>
|
|
||||||
#include <linux/filter.h>
|
|
||||||
#include <linux/netlink.h>
|
|
||||||
#include <linux/rtnetlink.h>
|
|
||||||
#include <linux/icmpv6.h>
|
|
||||||
#include <asm/termbits.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <ustat.h>
|
|
||||||
#include <utime.h>
|
|
||||||
#include <bluetooth/bluetooth.h>
|
|
||||||
#include <bluetooth/hci.h>
|
|
||||||
|
|
||||||
#ifdef TCSETS2
|
|
||||||
// On systems that have "struct termios2" use this as type Termios.
|
|
||||||
typedef struct termios2 termios_t;
|
|
||||||
#else
|
|
||||||
typedef struct termios termios_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum {
|
|
||||||
sizeofPtr = sizeof(void*),
|
|
||||||
};
|
|
||||||
|
|
||||||
union sockaddr_all {
|
|
||||||
struct sockaddr s1; // this one gets used for fields
|
|
||||||
struct sockaddr_in s2; // these pad it out
|
|
||||||
struct sockaddr_in6 s3;
|
|
||||||
struct sockaddr_un s4;
|
|
||||||
struct sockaddr_ll s5;
|
|
||||||
struct sockaddr_nl s6;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct sockaddr_any {
|
|
||||||
struct sockaddr addr;
|
|
||||||
char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
|
|
||||||
};
|
|
||||||
|
|
||||||
// copied from /usr/include/linux/un.h
|
|
||||||
struct my_sockaddr_un {
|
|
||||||
sa_family_t sun_family;
|
|
||||||
#if defined(__ARM_EABI__) || defined(__powerpc64__)
|
|
||||||
// on ARM char is by default unsigned
|
|
||||||
signed char sun_path[108];
|
|
||||||
#else
|
|
||||||
char sun_path[108];
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifdef __ARM_EABI__
|
|
||||||
typedef struct user_regs PtraceRegs;
|
|
||||||
#elif defined(__aarch64__)
|
|
||||||
typedef struct user_pt_regs PtraceRegs;
|
|
||||||
#elif defined(__powerpc64__)
|
|
||||||
typedef struct pt_regs PtraceRegs;
|
|
||||||
#elif defined(__mips__)
|
|
||||||
typedef struct user PtraceRegs;
|
|
||||||
#elif defined(__s390x__)
|
|
||||||
typedef struct _user_regs_struct PtraceRegs;
|
|
||||||
#else
|
|
||||||
typedef struct user_regs_struct PtraceRegs;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__s390x__)
|
|
||||||
typedef struct _user_psw_struct ptracePsw;
|
|
||||||
typedef struct _user_fpregs_struct ptraceFpregs;
|
|
||||||
typedef struct _user_per_struct ptracePer;
|
|
||||||
#else
|
|
||||||
typedef struct {} ptracePsw;
|
|
||||||
typedef struct {} ptraceFpregs;
|
|
||||||
typedef struct {} ptracePer;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// The real epoll_event is a union, and godefs doesn't handle it well.
|
|
||||||
struct my_epoll_event {
|
|
||||||
uint32_t events;
|
|
||||||
#if defined(__ARM_EABI__) || defined(__aarch64__)
|
|
||||||
// padding is not specified in linux/eventpoll.h but added to conform to the
|
|
||||||
// alignment requirements of EABI
|
|
||||||
int32_t padFd;
|
|
||||||
#elif defined(__powerpc64__) || defined(__s390x__)
|
|
||||||
int32_t _padFd;
|
|
||||||
#endif
|
|
||||||
int32_t fd;
|
|
||||||
int32_t pad;
|
|
||||||
};
|
|
||||||
|
|
||||||
*/
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
|
||||||
|
|
||||||
const (
|
|
||||||
sizeofPtr = C.sizeofPtr
|
|
||||||
sizeofShort = C.sizeof_short
|
|
||||||
sizeofInt = C.sizeof_int
|
|
||||||
sizeofLong = C.sizeof_long
|
|
||||||
sizeofLongLong = C.sizeof_longlong
|
|
||||||
PathMax = C.PATH_MAX
|
|
||||||
)
|
|
||||||
|
|
||||||
// Basic types
|
|
||||||
|
|
||||||
type (
|
|
||||||
_C_short C.short
|
|
||||||
_C_int C.int
|
|
||||||
_C_long C.long
|
|
||||||
_C_long_long C.longlong
|
|
||||||
)
|
|
||||||
|
|
||||||
// Time
|
|
||||||
|
|
||||||
type Timespec C.struct_timespec
|
|
||||||
|
|
||||||
type Timeval C.struct_timeval
|
|
||||||
|
|
||||||
type Timex C.struct_timex
|
|
||||||
|
|
||||||
type Time_t C.time_t
|
|
||||||
|
|
||||||
type Tms C.struct_tms
|
|
||||||
|
|
||||||
type Utimbuf C.struct_utimbuf
|
|
||||||
|
|
||||||
// Processes
|
|
||||||
|
|
||||||
type Rusage C.struct_rusage
|
|
||||||
|
|
||||||
type Rlimit C.struct_rlimit
|
|
||||||
|
|
||||||
type _Gid_t C.gid_t
|
|
||||||
|
|
||||||
// Files
|
|
||||||
|
|
||||||
type Stat_t C.struct_stat
|
|
||||||
|
|
||||||
type Statfs_t C.struct_statfs
|
|
||||||
|
|
||||||
type Dirent C.struct_dirent
|
|
||||||
|
|
||||||
type Fsid C.fsid_t
|
|
||||||
|
|
||||||
type Flock_t C.struct_flock
|
|
||||||
|
|
||||||
// Advice to Fadvise
|
|
||||||
|
|
||||||
const (
|
|
||||||
FADV_NORMAL = C.POSIX_FADV_NORMAL
|
|
||||||
FADV_RANDOM = C.POSIX_FADV_RANDOM
|
|
||||||
FADV_SEQUENTIAL = C.POSIX_FADV_SEQUENTIAL
|
|
||||||
FADV_WILLNEED = C.POSIX_FADV_WILLNEED
|
|
||||||
FADV_DONTNEED = C.POSIX_FADV_DONTNEED
|
|
||||||
FADV_NOREUSE = C.POSIX_FADV_NOREUSE
|
|
||||||
)
|
|
||||||
|
|
||||||
// Sockets
|
|
||||||
|
|
||||||
type RawSockaddrInet4 C.struct_sockaddr_in
|
|
||||||
|
|
||||||
type RawSockaddrInet6 C.struct_sockaddr_in6
|
|
||||||
|
|
||||||
type RawSockaddrUnix C.struct_my_sockaddr_un
|
|
||||||
|
|
||||||
type RawSockaddrLinklayer C.struct_sockaddr_ll
|
|
||||||
|
|
||||||
type RawSockaddrNetlink C.struct_sockaddr_nl
|
|
||||||
|
|
||||||
type RawSockaddrHCI C.struct_sockaddr_hci
|
|
||||||
|
|
||||||
type RawSockaddr C.struct_sockaddr
|
|
||||||
|
|
||||||
type RawSockaddrAny C.struct_sockaddr_any
|
|
||||||
|
|
||||||
type _Socklen C.socklen_t
|
|
||||||
|
|
||||||
type Linger C.struct_linger
|
|
||||||
|
|
||||||
type Iovec C.struct_iovec
|
|
||||||
|
|
||||||
type IPMreq C.struct_ip_mreq
|
|
||||||
|
|
||||||
type IPMreqn C.struct_ip_mreqn
|
|
||||||
|
|
||||||
type IPv6Mreq C.struct_ipv6_mreq
|
|
||||||
|
|
||||||
type Msghdr C.struct_msghdr
|
|
||||||
|
|
||||||
type Cmsghdr C.struct_cmsghdr
|
|
||||||
|
|
||||||
type Inet4Pktinfo C.struct_in_pktinfo
|
|
||||||
|
|
||||||
type Inet6Pktinfo C.struct_in6_pktinfo
|
|
||||||
|
|
||||||
type IPv6MTUInfo C.struct_ip6_mtuinfo
|
|
||||||
|
|
||||||
type ICMPv6Filter C.struct_icmp6_filter
|
|
||||||
|
|
||||||
type Ucred C.struct_ucred
|
|
||||||
|
|
||||||
type TCPInfo C.struct_tcp_info
|
|
||||||
|
|
||||||
const (
|
|
||||||
SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in
|
|
||||||
SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
|
|
||||||
SizeofSockaddrAny = C.sizeof_struct_sockaddr_any
|
|
||||||
SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un
|
|
||||||
SizeofSockaddrLinklayer = C.sizeof_struct_sockaddr_ll
|
|
||||||
SizeofSockaddrNetlink = C.sizeof_struct_sockaddr_nl
|
|
||||||
SizeofSockaddrHCI = C.sizeof_struct_sockaddr_hci
|
|
||||||
SizeofLinger = C.sizeof_struct_linger
|
|
||||||
SizeofIPMreq = C.sizeof_struct_ip_mreq
|
|
||||||
SizeofIPMreqn = C.sizeof_struct_ip_mreqn
|
|
||||||
SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
|
|
||||||
SizeofMsghdr = C.sizeof_struct_msghdr
|
|
||||||
SizeofCmsghdr = C.sizeof_struct_cmsghdr
|
|
||||||
SizeofInet4Pktinfo = C.sizeof_struct_in_pktinfo
|
|
||||||
SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
|
|
||||||
SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo
|
|
||||||
SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
|
|
||||||
SizeofUcred = C.sizeof_struct_ucred
|
|
||||||
SizeofTCPInfo = C.sizeof_struct_tcp_info
|
|
||||||
)
|
|
||||||
|
|
||||||
// Netlink routing and interface messages
|
|
||||||
|
|
||||||
const (
|
|
||||||
IFA_UNSPEC = C.IFA_UNSPEC
|
|
||||||
IFA_ADDRESS = C.IFA_ADDRESS
|
|
||||||
IFA_LOCAL = C.IFA_LOCAL
|
|
||||||
IFA_LABEL = C.IFA_LABEL
|
|
||||||
IFA_BROADCAST = C.IFA_BROADCAST
|
|
||||||
IFA_ANYCAST = C.IFA_ANYCAST
|
|
||||||
IFA_CACHEINFO = C.IFA_CACHEINFO
|
|
||||||
IFA_MULTICAST = C.IFA_MULTICAST
|
|
||||||
IFLA_UNSPEC = C.IFLA_UNSPEC
|
|
||||||
IFLA_ADDRESS = C.IFLA_ADDRESS
|
|
||||||
IFLA_BROADCAST = C.IFLA_BROADCAST
|
|
||||||
IFLA_IFNAME = C.IFLA_IFNAME
|
|
||||||
IFLA_MTU = C.IFLA_MTU
|
|
||||||
IFLA_LINK = C.IFLA_LINK
|
|
||||||
IFLA_QDISC = C.IFLA_QDISC
|
|
||||||
IFLA_STATS = C.IFLA_STATS
|
|
||||||
IFLA_COST = C.IFLA_COST
|
|
||||||
IFLA_PRIORITY = C.IFLA_PRIORITY
|
|
||||||
IFLA_MASTER = C.IFLA_MASTER
|
|
||||||
IFLA_WIRELESS = C.IFLA_WIRELESS
|
|
||||||
IFLA_PROTINFO = C.IFLA_PROTINFO
|
|
||||||
IFLA_TXQLEN = C.IFLA_TXQLEN
|
|
||||||
IFLA_MAP = C.IFLA_MAP
|
|
||||||
IFLA_WEIGHT = C.IFLA_WEIGHT
|
|
||||||
IFLA_OPERSTATE = C.IFLA_OPERSTATE
|
|
||||||
IFLA_LINKMODE = C.IFLA_LINKMODE
|
|
||||||
IFLA_LINKINFO = C.IFLA_LINKINFO
|
|
||||||
IFLA_NET_NS_PID = C.IFLA_NET_NS_PID
|
|
||||||
IFLA_IFALIAS = C.IFLA_IFALIAS
|
|
||||||
IFLA_MAX = C.IFLA_MAX
|
|
||||||
RT_SCOPE_UNIVERSE = C.RT_SCOPE_UNIVERSE
|
|
||||||
RT_SCOPE_SITE = C.RT_SCOPE_SITE
|
|
||||||
RT_SCOPE_LINK = C.RT_SCOPE_LINK
|
|
||||||
RT_SCOPE_HOST = C.RT_SCOPE_HOST
|
|
||||||
RT_SCOPE_NOWHERE = C.RT_SCOPE_NOWHERE
|
|
||||||
RT_TABLE_UNSPEC = C.RT_TABLE_UNSPEC
|
|
||||||
RT_TABLE_COMPAT = C.RT_TABLE_COMPAT
|
|
||||||
RT_TABLE_DEFAULT = C.RT_TABLE_DEFAULT
|
|
||||||
RT_TABLE_MAIN = C.RT_TABLE_MAIN
|
|
||||||
RT_TABLE_LOCAL = C.RT_TABLE_LOCAL
|
|
||||||
RT_TABLE_MAX = C.RT_TABLE_MAX
|
|
||||||
RTA_UNSPEC = C.RTA_UNSPEC
|
|
||||||
RTA_DST = C.RTA_DST
|
|
||||||
RTA_SRC = C.RTA_SRC
|
|
||||||
RTA_IIF = C.RTA_IIF
|
|
||||||
RTA_OIF = C.RTA_OIF
|
|
||||||
RTA_GATEWAY = C.RTA_GATEWAY
|
|
||||||
RTA_PRIORITY = C.RTA_PRIORITY
|
|
||||||
RTA_PREFSRC = C.RTA_PREFSRC
|
|
||||||
RTA_METRICS = C.RTA_METRICS
|
|
||||||
RTA_MULTIPATH = C.RTA_MULTIPATH
|
|
||||||
RTA_FLOW = C.RTA_FLOW
|
|
||||||
RTA_CACHEINFO = C.RTA_CACHEINFO
|
|
||||||
RTA_TABLE = C.RTA_TABLE
|
|
||||||
RTN_UNSPEC = C.RTN_UNSPEC
|
|
||||||
RTN_UNICAST = C.RTN_UNICAST
|
|
||||||
RTN_LOCAL = C.RTN_LOCAL
|
|
||||||
RTN_BROADCAST = C.RTN_BROADCAST
|
|
||||||
RTN_ANYCAST = C.RTN_ANYCAST
|
|
||||||
RTN_MULTICAST = C.RTN_MULTICAST
|
|
||||||
RTN_BLACKHOLE = C.RTN_BLACKHOLE
|
|
||||||
RTN_UNREACHABLE = C.RTN_UNREACHABLE
|
|
||||||
RTN_PROHIBIT = C.RTN_PROHIBIT
|
|
||||||
RTN_THROW = C.RTN_THROW
|
|
||||||
RTN_NAT = C.RTN_NAT
|
|
||||||
RTN_XRESOLVE = C.RTN_XRESOLVE
|
|
||||||
RTNLGRP_NONE = C.RTNLGRP_NONE
|
|
||||||
RTNLGRP_LINK = C.RTNLGRP_LINK
|
|
||||||
RTNLGRP_NOTIFY = C.RTNLGRP_NOTIFY
|
|
||||||
RTNLGRP_NEIGH = C.RTNLGRP_NEIGH
|
|
||||||
RTNLGRP_TC = C.RTNLGRP_TC
|
|
||||||
RTNLGRP_IPV4_IFADDR = C.RTNLGRP_IPV4_IFADDR
|
|
||||||
RTNLGRP_IPV4_MROUTE = C.RTNLGRP_IPV4_MROUTE
|
|
||||||
RTNLGRP_IPV4_ROUTE = C.RTNLGRP_IPV4_ROUTE
|
|
||||||
RTNLGRP_IPV4_RULE = C.RTNLGRP_IPV4_RULE
|
|
||||||
RTNLGRP_IPV6_IFADDR = C.RTNLGRP_IPV6_IFADDR
|
|
||||||
RTNLGRP_IPV6_MROUTE = C.RTNLGRP_IPV6_MROUTE
|
|
||||||
RTNLGRP_IPV6_ROUTE = C.RTNLGRP_IPV6_ROUTE
|
|
||||||
RTNLGRP_IPV6_IFINFO = C.RTNLGRP_IPV6_IFINFO
|
|
||||||
RTNLGRP_IPV6_PREFIX = C.RTNLGRP_IPV6_PREFIX
|
|
||||||
RTNLGRP_IPV6_RULE = C.RTNLGRP_IPV6_RULE
|
|
||||||
RTNLGRP_ND_USEROPT = C.RTNLGRP_ND_USEROPT
|
|
||||||
SizeofNlMsghdr = C.sizeof_struct_nlmsghdr
|
|
||||||
SizeofNlMsgerr = C.sizeof_struct_nlmsgerr
|
|
||||||
SizeofRtGenmsg = C.sizeof_struct_rtgenmsg
|
|
||||||
SizeofNlAttr = C.sizeof_struct_nlattr
|
|
||||||
SizeofRtAttr = C.sizeof_struct_rtattr
|
|
||||||
SizeofIfInfomsg = C.sizeof_struct_ifinfomsg
|
|
||||||
SizeofIfAddrmsg = C.sizeof_struct_ifaddrmsg
|
|
||||||
SizeofRtMsg = C.sizeof_struct_rtmsg
|
|
||||||
SizeofRtNexthop = C.sizeof_struct_rtnexthop
|
|
||||||
)
|
|
||||||
|
|
||||||
type NlMsghdr C.struct_nlmsghdr
|
|
||||||
|
|
||||||
type NlMsgerr C.struct_nlmsgerr
|
|
||||||
|
|
||||||
type RtGenmsg C.struct_rtgenmsg
|
|
||||||
|
|
||||||
type NlAttr C.struct_nlattr
|
|
||||||
|
|
||||||
type RtAttr C.struct_rtattr
|
|
||||||
|
|
||||||
type IfInfomsg C.struct_ifinfomsg
|
|
||||||
|
|
||||||
type IfAddrmsg C.struct_ifaddrmsg
|
|
||||||
|
|
||||||
type RtMsg C.struct_rtmsg
|
|
||||||
|
|
||||||
type RtNexthop C.struct_rtnexthop
|
|
||||||
|
|
||||||
// Linux socket filter
|
|
||||||
|
|
||||||
const (
|
|
||||||
SizeofSockFilter = C.sizeof_struct_sock_filter
|
|
||||||
SizeofSockFprog = C.sizeof_struct_sock_fprog
|
|
||||||
)
|
|
||||||
|
|
||||||
type SockFilter C.struct_sock_filter
|
|
||||||
|
|
||||||
type SockFprog C.struct_sock_fprog
|
|
||||||
|
|
||||||
// Inotify
|
|
||||||
|
|
||||||
type InotifyEvent C.struct_inotify_event
|
|
||||||
|
|
||||||
const SizeofInotifyEvent = C.sizeof_struct_inotify_event
|
|
||||||
|
|
||||||
// Ptrace
|
|
||||||
|
|
||||||
// Register structures
|
|
||||||
type PtraceRegs C.PtraceRegs
|
|
||||||
|
|
||||||
// Structures contained in PtraceRegs on s390x (exported by mkpost.go)
|
|
||||||
type ptracePsw C.ptracePsw
|
|
||||||
|
|
||||||
type ptraceFpregs C.ptraceFpregs
|
|
||||||
|
|
||||||
type ptracePer C.ptracePer
|
|
||||||
|
|
||||||
// Misc
|
|
||||||
|
|
||||||
type FdSet C.fd_set
|
|
||||||
|
|
||||||
type Sysinfo_t C.struct_sysinfo
|
|
||||||
|
|
||||||
type Utsname C.struct_utsname
|
|
||||||
|
|
||||||
type Ustat_t C.struct_ustat
|
|
||||||
|
|
||||||
type EpollEvent C.struct_my_epoll_event
|
|
||||||
|
|
||||||
const (
|
|
||||||
AT_FDCWD = C.AT_FDCWD
|
|
||||||
AT_REMOVEDIR = C.AT_REMOVEDIR
|
|
||||||
AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
|
|
||||||
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
|
||||||
)
|
|
||||||
|
|
||||||
type PollFd C.struct_pollfd
|
|
||||||
|
|
||||||
const (
|
|
||||||
POLLIN = C.POLLIN
|
|
||||||
POLLPRI = C.POLLPRI
|
|
||||||
POLLOUT = C.POLLOUT
|
|
||||||
POLLRDHUP = C.POLLRDHUP
|
|
||||||
POLLERR = C.POLLERR
|
|
||||||
POLLHUP = C.POLLHUP
|
|
||||||
POLLNVAL = C.POLLNVAL
|
|
||||||
)
|
|
||||||
|
|
||||||
type Sigset_t C.sigset_t
|
|
||||||
|
|
||||||
// Terminal handling
|
|
||||||
|
|
||||||
type Termios C.termios_t
|
|
||||||
2
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
2
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
@@ -5,7 +5,7 @@
|
|||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Input to cgo -godefs. See also mkerrors.sh and mkall.sh
|
Input to cgo -godefs. See README.md
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// +godefs map struct_in_addr [4]byte /* in_addr */
|
// +godefs map struct_in_addr [4]byte /* in_addr */
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
2
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
@@ -5,7 +5,7 @@
|
|||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Input to cgo -godefs. See also mkerrors.sh and mkall.sh
|
Input to cgo -godefs. See README.md
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// +godefs map struct_in_addr [4]byte /* in_addr */
|
// +godefs map struct_in_addr [4]byte /* in_addr */
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/types_solaris.go
generated
vendored
9
vendor/golang.org/x/sys/unix/types_solaris.go
generated
vendored
@@ -5,7 +5,7 @@
|
|||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Input to cgo -godefs. See also mkerrors.sh and mkall.sh
|
Input to cgo -godefs. See README.md
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// +godefs map struct_in_addr [4]byte /* in_addr */
|
// +godefs map struct_in_addr [4]byte /* in_addr */
|
||||||
@@ -37,6 +37,7 @@ package unix
|
|||||||
#include <sys/signal.h>
|
#include <sys/signal.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statvfs.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/times.h>
|
#include <sys/times.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -139,6 +140,12 @@ type Flock_t C.struct_flock
|
|||||||
|
|
||||||
type Dirent C.struct_dirent
|
type Dirent C.struct_dirent
|
||||||
|
|
||||||
|
// Filesystems
|
||||||
|
|
||||||
|
type _Fsblkcnt_t C.fsblkcnt_t
|
||||||
|
|
||||||
|
type Statvfs_t C.struct_statvfs
|
||||||
|
|
||||||
// Sockets
|
// Sockets
|
||||||
|
|
||||||
type RawSockaddrInet4 C.struct_sockaddr_in
|
type RawSockaddrInet4 C.struct_sockaddr_in
|
||||||
|
|||||||
56
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
56
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
@@ -1,5 +1,5 @@
|
|||||||
// mkerrors.sh -m64
|
// mkerrors.sh -m64
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build amd64,dragonfly
|
// +build amd64,dragonfly
|
||||||
|
|
||||||
@@ -37,8 +37,8 @@ const (
|
|||||||
AF_MAX = 0x24
|
AF_MAX = 0x24
|
||||||
AF_MPLS = 0x22
|
AF_MPLS = 0x22
|
||||||
AF_NATM = 0x1d
|
AF_NATM = 0x1d
|
||||||
|
AF_NETBIOS = 0x6
|
||||||
AF_NETGRAPH = 0x20
|
AF_NETGRAPH = 0x20
|
||||||
AF_NS = 0x6
|
|
||||||
AF_OSI = 0x7
|
AF_OSI = 0x7
|
||||||
AF_PUP = 0x4
|
AF_PUP = 0x4
|
||||||
AF_ROUTE = 0x11
|
AF_ROUTE = 0x11
|
||||||
@@ -46,6 +46,7 @@ const (
|
|||||||
AF_SNA = 0xb
|
AF_SNA = 0xb
|
||||||
AF_UNIX = 0x1
|
AF_UNIX = 0x1
|
||||||
AF_UNSPEC = 0x0
|
AF_UNSPEC = 0x0
|
||||||
|
ALTWERASE = 0x200
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B110 = 0x6e
|
B110 = 0x6e
|
||||||
B115200 = 0x1c200
|
B115200 = 0x1c200
|
||||||
@@ -141,7 +142,22 @@ const (
|
|||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_MONOTONIC = 0x4
|
||||||
|
CLOCK_MONOTONIC_FAST = 0xc
|
||||||
|
CLOCK_MONOTONIC_PRECISE = 0xb
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0xf
|
||||||
|
CLOCK_PROF = 0x2
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_REALTIME_FAST = 0xa
|
||||||
|
CLOCK_REALTIME_PRECISE = 0x9
|
||||||
|
CLOCK_SECOND = 0xd
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0xe
|
||||||
|
CLOCK_UPTIME = 0x5
|
||||||
|
CLOCK_UPTIME_FAST = 0x8
|
||||||
|
CLOCK_UPTIME_PRECISE = 0x7
|
||||||
|
CLOCK_VIRTUAL = 0x1
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
@@ -286,24 +302,28 @@ const (
|
|||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
EVFILT_EXCEPT = -0x8
|
EVFILT_EXCEPT = -0x8
|
||||||
|
EVFILT_FS = -0xa
|
||||||
EVFILT_MARKER = 0xf
|
EVFILT_MARKER = 0xf
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x8
|
EVFILT_SYSCOUNT = 0xa
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
|
EVFILT_USER = -0x9
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
EV_ADD = 0x1
|
EV_ADD = 0x1
|
||||||
EV_CLEAR = 0x20
|
EV_CLEAR = 0x20
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
EV_DISABLE = 0x8
|
EV_DISABLE = 0x8
|
||||||
|
EV_DISPATCH = 0x80
|
||||||
EV_ENABLE = 0x4
|
EV_ENABLE = 0x4
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
EV_NODATA = 0x1000
|
EV_NODATA = 0x1000
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
@@ -679,7 +699,6 @@ const (
|
|||||||
IPPROTO_SATEXPAK = 0x40
|
IPPROTO_SATEXPAK = 0x40
|
||||||
IPPROTO_SATMON = 0x45
|
IPPROTO_SATMON = 0x45
|
||||||
IPPROTO_SCCSP = 0x60
|
IPPROTO_SCCSP = 0x60
|
||||||
IPPROTO_SCTP = 0x84
|
|
||||||
IPPROTO_SDRP = 0x2a
|
IPPROTO_SDRP = 0x2a
|
||||||
IPPROTO_SEP = 0x21
|
IPPROTO_SEP = 0x21
|
||||||
IPPROTO_SKIP = 0x39
|
IPPROTO_SKIP = 0x39
|
||||||
@@ -730,6 +749,7 @@ const (
|
|||||||
IPV6_LEAVE_GROUP = 0xd
|
IPV6_LEAVE_GROUP = 0xd
|
||||||
IPV6_MAXHLIM = 0xff
|
IPV6_MAXHLIM = 0xff
|
||||||
IPV6_MAXPACKET = 0xffff
|
IPV6_MAXPACKET = 0xffff
|
||||||
|
IPV6_MINHLIM = 0x28
|
||||||
IPV6_MMTU = 0x500
|
IPV6_MMTU = 0x500
|
||||||
IPV6_MSFILTER = 0x4a
|
IPV6_MSFILTER = 0x4a
|
||||||
IPV6_MULTICAST_HOPS = 0xa
|
IPV6_MULTICAST_HOPS = 0xa
|
||||||
@@ -778,6 +798,7 @@ const (
|
|||||||
IP_FW_FLUSH = 0x34
|
IP_FW_FLUSH = 0x34
|
||||||
IP_FW_GET = 0x36
|
IP_FW_GET = 0x36
|
||||||
IP_FW_RESETLOG = 0x37
|
IP_FW_RESETLOG = 0x37
|
||||||
|
IP_FW_X = 0x31
|
||||||
IP_FW_ZERO = 0x35
|
IP_FW_ZERO = 0x35
|
||||||
IP_HDRINCL = 0x2
|
IP_HDRINCL = 0x2
|
||||||
IP_IPSEC_POLICY = 0x15
|
IP_IPSEC_POLICY = 0x15
|
||||||
@@ -833,6 +854,7 @@ const (
|
|||||||
MADV_SETMAP = 0xb
|
MADV_SETMAP = 0xb
|
||||||
MADV_WILLNEED = 0x3
|
MADV_WILLNEED = 0x3
|
||||||
MAP_ANON = 0x1000
|
MAP_ANON = 0x1000
|
||||||
|
MAP_ANONYMOUS = 0x1000
|
||||||
MAP_COPY = 0x2
|
MAP_COPY = 0x2
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
@@ -851,6 +873,7 @@ const (
|
|||||||
MAP_VPAGETABLE = 0x2000
|
MAP_VPAGETABLE = 0x2000
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MSG_CMSG_CLOEXEC = 0x1000
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
MSG_DONTWAIT = 0x80
|
MSG_DONTWAIT = 0x80
|
||||||
@@ -860,11 +883,11 @@ const (
|
|||||||
MSG_FMASK = 0xffff0000
|
MSG_FMASK = 0xffff0000
|
||||||
MSG_FNONBLOCKING = 0x20000
|
MSG_FNONBLOCKING = 0x20000
|
||||||
MSG_NOSIGNAL = 0x400
|
MSG_NOSIGNAL = 0x400
|
||||||
MSG_NOTIFICATION = 0x200
|
|
||||||
MSG_OOB = 0x1
|
MSG_OOB = 0x1
|
||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_SYNC = 0x800
|
MSG_SYNC = 0x800
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
|
MSG_UNUSED09 = 0x200
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
@@ -875,12 +898,19 @@ const (
|
|||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_MAXID = 0x4
|
NET_RT_MAXID = 0x4
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
NOTE_DELETE = 0x1
|
NOTE_DELETE = 0x1
|
||||||
NOTE_EXEC = 0x20000000
|
NOTE_EXEC = 0x20000000
|
||||||
NOTE_EXIT = 0x80000000
|
NOTE_EXIT = 0x80000000
|
||||||
NOTE_EXTEND = 0x4
|
NOTE_EXTEND = 0x4
|
||||||
|
NOTE_FFAND = 0x40000000
|
||||||
|
NOTE_FFCOPY = 0xc0000000
|
||||||
|
NOTE_FFCTRLMASK = 0xc0000000
|
||||||
|
NOTE_FFLAGSMASK = 0xffffff
|
||||||
|
NOTE_FFNOP = 0x0
|
||||||
|
NOTE_FFOR = 0x80000000
|
||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
@@ -891,6 +921,7 @@ const (
|
|||||||
NOTE_REVOKE = 0x40
|
NOTE_REVOKE = 0x40
|
||||||
NOTE_TRACK = 0x1
|
NOTE_TRACK = 0x1
|
||||||
NOTE_TRACKERR = 0x2
|
NOTE_TRACKERR = 0x2
|
||||||
|
NOTE_TRIGGER = 0x1000000
|
||||||
NOTE_WRITE = 0x2
|
NOTE_WRITE = 0x2
|
||||||
OCRNL = 0x10
|
OCRNL = 0x10
|
||||||
ONLCR = 0x2
|
ONLCR = 0x2
|
||||||
@@ -898,6 +929,7 @@ const (
|
|||||||
ONOCR = 0x20
|
ONOCR = 0x20
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x40
|
O_ASYNC = 0x40
|
||||||
@@ -910,14 +942,11 @@ const (
|
|||||||
O_FAPPEND = 0x100000
|
O_FAPPEND = 0x100000
|
||||||
O_FASYNCWRITE = 0x800000
|
O_FASYNCWRITE = 0x800000
|
||||||
O_FBLOCKING = 0x40000
|
O_FBLOCKING = 0x40000
|
||||||
O_FBUFFERED = 0x2000000
|
O_FMASK = 0xfc0000
|
||||||
O_FMASK = 0x7fc0000
|
|
||||||
O_FNONBLOCKING = 0x80000
|
O_FNONBLOCKING = 0x80000
|
||||||
O_FOFFSET = 0x200000
|
O_FOFFSET = 0x200000
|
||||||
O_FSYNC = 0x80
|
O_FSYNC = 0x80
|
||||||
O_FSYNCWRITE = 0x400000
|
O_FSYNCWRITE = 0x400000
|
||||||
O_FUNBUFFERED = 0x1000000
|
|
||||||
O_MAPONREAD = 0x4000000
|
|
||||||
O_NDELAY = 0x4
|
O_NDELAY = 0x4
|
||||||
O_NOCTTY = 0x8000
|
O_NOCTTY = 0x8000
|
||||||
O_NOFOLLOW = 0x100
|
O_NOFOLLOW = 0x100
|
||||||
@@ -1096,8 +1125,10 @@ const (
|
|||||||
SIOCSLIFPHYADDR = 0x8118694a
|
SIOCSLIFPHYADDR = 0x8118694a
|
||||||
SIOCSLOWAT = 0x80047302
|
SIOCSLOWAT = 0x80047302
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SOCK_CLOEXEC = 0x10000000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_MAXADDRLEN = 0xff
|
SOCK_MAXADDRLEN = 0xff
|
||||||
|
SOCK_NONBLOCK = 0x20000000
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
SOCK_RDM = 0x4
|
SOCK_RDM = 0x4
|
||||||
SOCK_SEQPACKET = 0x5
|
SOCK_SEQPACKET = 0x5
|
||||||
@@ -1107,6 +1138,7 @@ const (
|
|||||||
SO_ACCEPTCONN = 0x2
|
SO_ACCEPTCONN = 0x2
|
||||||
SO_ACCEPTFILTER = 0x1000
|
SO_ACCEPTFILTER = 0x1000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
|
SO_CPUHINT = 0x1030
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
@@ -1127,8 +1159,12 @@ const (
|
|||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
TCP_FASTKEEP = 0x80
|
TCP_FASTKEEP = 0x80
|
||||||
TCP_KEEPCNT = 0x400
|
TCP_KEEPCNT = 0x400
|
||||||
TCP_KEEPIDLE = 0x100
|
TCP_KEEPIDLE = 0x100
|
||||||
@@ -1227,6 +1263,8 @@ const (
|
|||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_BCACHE_SIZE_MAX = 0x0
|
||||||
|
VM_SWZONE_SIZE_MAX = 0x4000000000
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
|
|||||||
399
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
399
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
@@ -1,5 +1,5 @@
|
|||||||
// mkerrors.sh -m64
|
// mkerrors.sh -m64
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build amd64,freebsd
|
// +build amd64,freebsd
|
||||||
|
|
||||||
@@ -98,6 +98,7 @@ const (
|
|||||||
AF_VENDOR45 = 0x81
|
AF_VENDOR45 = 0x81
|
||||||
AF_VENDOR46 = 0x83
|
AF_VENDOR46 = 0x83
|
||||||
AF_VENDOR47 = 0x85
|
AF_VENDOR47 = 0x85
|
||||||
|
ALTWERASE = 0x200
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B110 = 0x6e
|
B110 = 0x6e
|
||||||
B115200 = 0x1c200
|
B115200 = 0x1c200
|
||||||
@@ -189,6 +190,7 @@ const (
|
|||||||
BPF_MINBUFSIZE = 0x20
|
BPF_MINBUFSIZE = 0x20
|
||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
|
BPF_MOD = 0x90
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
@@ -222,7 +224,105 @@ const (
|
|||||||
BPF_T_NORMAL = 0x0
|
BPF_T_NORMAL = 0x0
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
CAP_ACCEPT = 0x200000020000000
|
||||||
|
CAP_ACL_CHECK = 0x400000000010000
|
||||||
|
CAP_ACL_DELETE = 0x400000000020000
|
||||||
|
CAP_ACL_GET = 0x400000000040000
|
||||||
|
CAP_ACL_SET = 0x400000000080000
|
||||||
|
CAP_ALL0 = 0x20007ffffffffff
|
||||||
|
CAP_ALL1 = 0x4000000001fffff
|
||||||
|
CAP_BIND = 0x200000040000000
|
||||||
|
CAP_BINDAT = 0x200008000000400
|
||||||
|
CAP_CHFLAGSAT = 0x200000000001400
|
||||||
|
CAP_CONNECT = 0x200000080000000
|
||||||
|
CAP_CONNECTAT = 0x200010000000400
|
||||||
|
CAP_CREATE = 0x200000000000040
|
||||||
|
CAP_EVENT = 0x400000000000020
|
||||||
|
CAP_EXTATTR_DELETE = 0x400000000001000
|
||||||
|
CAP_EXTATTR_GET = 0x400000000002000
|
||||||
|
CAP_EXTATTR_LIST = 0x400000000004000
|
||||||
|
CAP_EXTATTR_SET = 0x400000000008000
|
||||||
|
CAP_FCHDIR = 0x200000000000800
|
||||||
|
CAP_FCHFLAGS = 0x200000000001000
|
||||||
|
CAP_FCHMOD = 0x200000000002000
|
||||||
|
CAP_FCHMODAT = 0x200000000002400
|
||||||
|
CAP_FCHOWN = 0x200000000004000
|
||||||
|
CAP_FCHOWNAT = 0x200000000004400
|
||||||
|
CAP_FCNTL = 0x200000000008000
|
||||||
|
CAP_FCNTL_ALL = 0x78
|
||||||
|
CAP_FCNTL_GETFL = 0x8
|
||||||
|
CAP_FCNTL_GETOWN = 0x20
|
||||||
|
CAP_FCNTL_SETFL = 0x10
|
||||||
|
CAP_FCNTL_SETOWN = 0x40
|
||||||
|
CAP_FEXECVE = 0x200000000000080
|
||||||
|
CAP_FLOCK = 0x200000000010000
|
||||||
|
CAP_FPATHCONF = 0x200000000020000
|
||||||
|
CAP_FSCK = 0x200000000040000
|
||||||
|
CAP_FSTAT = 0x200000000080000
|
||||||
|
CAP_FSTATAT = 0x200000000080400
|
||||||
|
CAP_FSTATFS = 0x200000000100000
|
||||||
|
CAP_FSYNC = 0x200000000000100
|
||||||
|
CAP_FTRUNCATE = 0x200000000000200
|
||||||
|
CAP_FUTIMES = 0x200000000200000
|
||||||
|
CAP_FUTIMESAT = 0x200000000200400
|
||||||
|
CAP_GETPEERNAME = 0x200000100000000
|
||||||
|
CAP_GETSOCKNAME = 0x200000200000000
|
||||||
|
CAP_GETSOCKOPT = 0x200000400000000
|
||||||
|
CAP_IOCTL = 0x400000000000080
|
||||||
|
CAP_IOCTLS_ALL = 0x7fffffffffffffff
|
||||||
|
CAP_KQUEUE = 0x400000000100040
|
||||||
|
CAP_KQUEUE_CHANGE = 0x400000000100000
|
||||||
|
CAP_KQUEUE_EVENT = 0x400000000000040
|
||||||
|
CAP_LINKAT_SOURCE = 0x200020000000400
|
||||||
|
CAP_LINKAT_TARGET = 0x200000000400400
|
||||||
|
CAP_LISTEN = 0x200000800000000
|
||||||
|
CAP_LOOKUP = 0x200000000000400
|
||||||
|
CAP_MAC_GET = 0x400000000000001
|
||||||
|
CAP_MAC_SET = 0x400000000000002
|
||||||
|
CAP_MKDIRAT = 0x200000000800400
|
||||||
|
CAP_MKFIFOAT = 0x200000001000400
|
||||||
|
CAP_MKNODAT = 0x200000002000400
|
||||||
|
CAP_MMAP = 0x200000000000010
|
||||||
|
CAP_MMAP_R = 0x20000000000001d
|
||||||
|
CAP_MMAP_RW = 0x20000000000001f
|
||||||
|
CAP_MMAP_RWX = 0x20000000000003f
|
||||||
|
CAP_MMAP_RX = 0x20000000000003d
|
||||||
|
CAP_MMAP_W = 0x20000000000001e
|
||||||
|
CAP_MMAP_WX = 0x20000000000003e
|
||||||
|
CAP_MMAP_X = 0x20000000000003c
|
||||||
|
CAP_PDGETPID = 0x400000000000200
|
||||||
|
CAP_PDKILL = 0x400000000000800
|
||||||
|
CAP_PDWAIT = 0x400000000000400
|
||||||
|
CAP_PEELOFF = 0x200001000000000
|
||||||
|
CAP_POLL_EVENT = 0x400000000000020
|
||||||
|
CAP_PREAD = 0x20000000000000d
|
||||||
|
CAP_PWRITE = 0x20000000000000e
|
||||||
|
CAP_READ = 0x200000000000001
|
||||||
|
CAP_RECV = 0x200000000000001
|
||||||
|
CAP_RENAMEAT_SOURCE = 0x200000004000400
|
||||||
|
CAP_RENAMEAT_TARGET = 0x200040000000400
|
||||||
|
CAP_RIGHTS_VERSION = 0x0
|
||||||
|
CAP_RIGHTS_VERSION_00 = 0x0
|
||||||
|
CAP_SEEK = 0x20000000000000c
|
||||||
|
CAP_SEEK_TELL = 0x200000000000004
|
||||||
|
CAP_SEM_GETVALUE = 0x400000000000004
|
||||||
|
CAP_SEM_POST = 0x400000000000008
|
||||||
|
CAP_SEM_WAIT = 0x400000000000010
|
||||||
|
CAP_SEND = 0x200000000000002
|
||||||
|
CAP_SETSOCKOPT = 0x200002000000000
|
||||||
|
CAP_SHUTDOWN = 0x200004000000000
|
||||||
|
CAP_SOCK_CLIENT = 0x200007780000003
|
||||||
|
CAP_SOCK_SERVER = 0x200007f60000003
|
||||||
|
CAP_SYMLINKAT = 0x200000008000400
|
||||||
|
CAP_TTYHOOK = 0x400000000000100
|
||||||
|
CAP_UNLINKAT = 0x200000010000400
|
||||||
|
CAP_UNUSED0_44 = 0x200080000000000
|
||||||
|
CAP_UNUSED0_57 = 0x300000000000000
|
||||||
|
CAP_UNUSED1_22 = 0x400000000200000
|
||||||
|
CAP_UNUSED1_57 = 0x500000000000000
|
||||||
|
CAP_WRITE = 0x200000000000002
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
CLOCK_MONOTONIC = 0x4
|
CLOCK_MONOTONIC = 0x4
|
||||||
@@ -240,6 +340,7 @@ const (
|
|||||||
CLOCK_UPTIME_PRECISE = 0x7
|
CLOCK_UPTIME_PRECISE = 0x7
|
||||||
CLOCK_VIRTUAL = 0x1
|
CLOCK_VIRTUAL = 0x1
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
@@ -265,8 +366,12 @@ const (
|
|||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
DLT_AX25_KISS = 0xca
|
DLT_AX25_KISS = 0xca
|
||||||
DLT_BACNET_MS_TP = 0xa5
|
DLT_BACNET_MS_TP = 0xa5
|
||||||
|
DLT_BLUETOOTH_BREDR_BB = 0xff
|
||||||
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
||||||
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
||||||
|
DLT_BLUETOOTH_LE_LL = 0xfb
|
||||||
|
DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100
|
||||||
|
DLT_BLUETOOTH_LINUX_MONITOR = 0xfe
|
||||||
DLT_CAN20B = 0xbe
|
DLT_CAN20B = 0xbe
|
||||||
DLT_CAN_SOCKETCAN = 0xe3
|
DLT_CAN_SOCKETCAN = 0xe3
|
||||||
DLT_CHAOS = 0x5
|
DLT_CHAOS = 0x5
|
||||||
@@ -282,6 +387,7 @@ const (
|
|||||||
DLT_EN10MB = 0x1
|
DLT_EN10MB = 0x1
|
||||||
DLT_EN3MB = 0x2
|
DLT_EN3MB = 0x2
|
||||||
DLT_ENC = 0x6d
|
DLT_ENC = 0x6d
|
||||||
|
DLT_EPON = 0x103
|
||||||
DLT_ERF = 0xc5
|
DLT_ERF = 0xc5
|
||||||
DLT_ERF_ETH = 0xaf
|
DLT_ERF_ETH = 0xaf
|
||||||
DLT_ERF_POS = 0xb0
|
DLT_ERF_POS = 0xb0
|
||||||
@@ -311,9 +417,11 @@ const (
|
|||||||
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
||||||
DLT_IEEE802_16_MAC_CPS = 0xbc
|
DLT_IEEE802_16_MAC_CPS = 0xbc
|
||||||
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
||||||
|
DLT_INFINIBAND = 0xf7
|
||||||
DLT_IPFILTER = 0x74
|
DLT_IPFILTER = 0x74
|
||||||
DLT_IPMB = 0xc7
|
DLT_IPMB = 0xc7
|
||||||
DLT_IPMB_LINUX = 0xd1
|
DLT_IPMB_LINUX = 0xd1
|
||||||
|
DLT_IPMI_HPM_2 = 0x104
|
||||||
DLT_IPNET = 0xe2
|
DLT_IPNET = 0xe2
|
||||||
DLT_IPOIB = 0xf2
|
DLT_IPOIB = 0xf2
|
||||||
DLT_IPV4 = 0xe4
|
DLT_IPV4 = 0xe4
|
||||||
@@ -352,7 +460,7 @@ const (
|
|||||||
DLT_LINUX_SLL = 0x71
|
DLT_LINUX_SLL = 0x71
|
||||||
DLT_LOOP = 0x6c
|
DLT_LOOP = 0x6c
|
||||||
DLT_LTALK = 0x72
|
DLT_LTALK = 0x72
|
||||||
DLT_MATCHING_MAX = 0xf6
|
DLT_MATCHING_MAX = 0x104
|
||||||
DLT_MATCHING_MIN = 0x68
|
DLT_MATCHING_MIN = 0x68
|
||||||
DLT_MFR = 0xb6
|
DLT_MFR = 0xb6
|
||||||
DLT_MOST = 0xd3
|
DLT_MOST = 0xd3
|
||||||
@@ -364,6 +472,7 @@ const (
|
|||||||
DLT_MUX27010 = 0xec
|
DLT_MUX27010 = 0xec
|
||||||
DLT_NETANALYZER = 0xf0
|
DLT_NETANALYZER = 0xf0
|
||||||
DLT_NETANALYZER_TRANSPARENT = 0xf1
|
DLT_NETANALYZER_TRANSPARENT = 0xf1
|
||||||
|
DLT_NETLINK = 0xfd
|
||||||
DLT_NFC_LLCP = 0xf5
|
DLT_NFC_LLCP = 0xf5
|
||||||
DLT_NFLOG = 0xef
|
DLT_NFLOG = 0xef
|
||||||
DLT_NG40 = 0xf4
|
DLT_NG40 = 0xf4
|
||||||
@@ -371,6 +480,7 @@ const (
|
|||||||
DLT_PCI_EXP = 0x7d
|
DLT_PCI_EXP = 0x7d
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x79
|
DLT_PFSYNC = 0x79
|
||||||
|
DLT_PKTAP = 0x102
|
||||||
DLT_PPI = 0xc0
|
DLT_PPI = 0xc0
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
DLT_PPP_BSDOS = 0x10
|
DLT_PPP_BSDOS = 0x10
|
||||||
@@ -380,11 +490,14 @@ const (
|
|||||||
DLT_PPP_WITH_DIR = 0xcc
|
DLT_PPP_WITH_DIR = 0xcc
|
||||||
DLT_PPP_WITH_DIRECTION = 0xa6
|
DLT_PPP_WITH_DIRECTION = 0xa6
|
||||||
DLT_PRISM_HEADER = 0x77
|
DLT_PRISM_HEADER = 0x77
|
||||||
|
DLT_PROFIBUS_DL = 0x101
|
||||||
DLT_PRONET = 0x4
|
DLT_PRONET = 0x4
|
||||||
DLT_RAIF1 = 0xc6
|
DLT_RAIF1 = 0xc6
|
||||||
DLT_RAW = 0xc
|
DLT_RAW = 0xc
|
||||||
DLT_RIO = 0x7c
|
DLT_RIO = 0x7c
|
||||||
|
DLT_RTAC_SERIAL = 0xfa
|
||||||
DLT_SCCP = 0x8e
|
DLT_SCCP = 0x8e
|
||||||
|
DLT_SCTP = 0xf8
|
||||||
DLT_SITA = 0xc4
|
DLT_SITA = 0xc4
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xf
|
||||||
@@ -393,6 +506,7 @@ const (
|
|||||||
DLT_SYMANTEC_FIREWALL = 0x63
|
DLT_SYMANTEC_FIREWALL = 0x63
|
||||||
DLT_TZSP = 0x80
|
DLT_TZSP = 0x80
|
||||||
DLT_USB = 0xba
|
DLT_USB = 0xba
|
||||||
|
DLT_USBPCAP = 0xf9
|
||||||
DLT_USB_LINUX = 0xbd
|
DLT_USB_LINUX = 0xbd
|
||||||
DLT_USB_LINUX_MMAPPED = 0xdc
|
DLT_USB_LINUX_MMAPPED = 0xdc
|
||||||
DLT_USER0 = 0x93
|
DLT_USER0 = 0x93
|
||||||
@@ -412,6 +526,7 @@ const (
|
|||||||
DLT_USER8 = 0x9b
|
DLT_USER8 = 0x9b
|
||||||
DLT_USER9 = 0x9c
|
DLT_USER9 = 0x9c
|
||||||
DLT_WIHART = 0xdf
|
DLT_WIHART = 0xdf
|
||||||
|
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
||||||
DLT_X2E_SERIAL = 0xd5
|
DLT_X2E_SERIAL = 0xd5
|
||||||
DLT_X2E_XORAYA = 0xd6
|
DLT_X2E_XORAYA = 0xd6
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
@@ -434,9 +549,11 @@ const (
|
|||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_LIO = -0xa
|
EVFILT_LIO = -0xa
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
|
EVFILT_PROCDESC = -0x8
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
|
EVFILT_SENDFILE = -0xc
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xb
|
EVFILT_SYSCOUNT = 0xc
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xb
|
EVFILT_USER = -0xb
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
@@ -451,6 +568,8 @@ const (
|
|||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
|
EV_FLAG2 = 0x4000
|
||||||
|
EV_FORCEONESHOT = 0x100
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
@@ -498,7 +617,7 @@ const (
|
|||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ALTPHYS = 0x4000
|
IFF_ALTPHYS = 0x4000
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_CANTCHANGE = 0x218f72
|
IFF_CANTCHANGE = 0x218f52
|
||||||
IFF_CANTCONFIG = 0x10000
|
IFF_CANTCONFIG = 0x10000
|
||||||
IFF_DEBUG = 0x4
|
IFF_DEBUG = 0x4
|
||||||
IFF_DRV_OACTIVE = 0x400
|
IFF_DRV_OACTIVE = 0x400
|
||||||
@@ -518,217 +637,17 @@ const (
|
|||||||
IFF_RENAMING = 0x400000
|
IFF_RENAMING = 0x400000
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SIMPLEX = 0x800
|
IFF_SIMPLEX = 0x800
|
||||||
IFF_SMART = 0x20
|
|
||||||
IFF_STATICARP = 0x80000
|
IFF_STATICARP = 0x80000
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IFT_1822 = 0x2
|
|
||||||
IFT_A12MPPSWITCH = 0x82
|
|
||||||
IFT_AAL2 = 0xbb
|
|
||||||
IFT_AAL5 = 0x31
|
|
||||||
IFT_ADSL = 0x5e
|
|
||||||
IFT_AFLANE8023 = 0x3b
|
|
||||||
IFT_AFLANE8025 = 0x3c
|
|
||||||
IFT_ARAP = 0x58
|
|
||||||
IFT_ARCNET = 0x23
|
|
||||||
IFT_ARCNETPLUS = 0x24
|
|
||||||
IFT_ASYNC = 0x54
|
|
||||||
IFT_ATM = 0x25
|
|
||||||
IFT_ATMDXI = 0x69
|
|
||||||
IFT_ATMFUNI = 0x6a
|
|
||||||
IFT_ATMIMA = 0x6b
|
|
||||||
IFT_ATMLOGICAL = 0x50
|
|
||||||
IFT_ATMRADIO = 0xbd
|
|
||||||
IFT_ATMSUBINTERFACE = 0x86
|
|
||||||
IFT_ATMVCIENDPT = 0xc2
|
|
||||||
IFT_ATMVIRTUAL = 0x95
|
|
||||||
IFT_BGPPOLICYACCOUNTING = 0xa2
|
|
||||||
IFT_BRIDGE = 0xd1
|
IFT_BRIDGE = 0xd1
|
||||||
IFT_BSC = 0x53
|
|
||||||
IFT_CARP = 0xf8
|
IFT_CARP = 0xf8
|
||||||
IFT_CCTEMUL = 0x3d
|
|
||||||
IFT_CEPT = 0x13
|
|
||||||
IFT_CES = 0x85
|
|
||||||
IFT_CHANNEL = 0x46
|
|
||||||
IFT_CNR = 0x55
|
|
||||||
IFT_COFFEE = 0x84
|
|
||||||
IFT_COMPOSITELINK = 0x9b
|
|
||||||
IFT_DCN = 0x8d
|
|
||||||
IFT_DIGITALPOWERLINE = 0x8a
|
|
||||||
IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
|
|
||||||
IFT_DLSW = 0x4a
|
|
||||||
IFT_DOCSCABLEDOWNSTREAM = 0x80
|
|
||||||
IFT_DOCSCABLEMACLAYER = 0x7f
|
|
||||||
IFT_DOCSCABLEUPSTREAM = 0x81
|
|
||||||
IFT_DS0 = 0x51
|
|
||||||
IFT_DS0BUNDLE = 0x52
|
|
||||||
IFT_DS1FDL = 0xaa
|
|
||||||
IFT_DS3 = 0x1e
|
|
||||||
IFT_DTM = 0x8c
|
|
||||||
IFT_DVBASILN = 0xac
|
|
||||||
IFT_DVBASIOUT = 0xad
|
|
||||||
IFT_DVBRCCDOWNSTREAM = 0x93
|
|
||||||
IFT_DVBRCCMACLAYER = 0x92
|
|
||||||
IFT_DVBRCCUPSTREAM = 0x94
|
|
||||||
IFT_ENC = 0xf4
|
|
||||||
IFT_EON = 0x19
|
|
||||||
IFT_EPLRS = 0x57
|
|
||||||
IFT_ESCON = 0x49
|
|
||||||
IFT_ETHER = 0x6
|
|
||||||
IFT_FAITH = 0xf2
|
|
||||||
IFT_FAST = 0x7d
|
|
||||||
IFT_FASTETHER = 0x3e
|
|
||||||
IFT_FASTETHERFX = 0x45
|
|
||||||
IFT_FDDI = 0xf
|
|
||||||
IFT_FIBRECHANNEL = 0x38
|
|
||||||
IFT_FRAMERELAYINTERCONNECT = 0x3a
|
|
||||||
IFT_FRAMERELAYMPI = 0x5c
|
|
||||||
IFT_FRDLCIENDPT = 0xc1
|
|
||||||
IFT_FRELAY = 0x20
|
|
||||||
IFT_FRELAYDCE = 0x2c
|
|
||||||
IFT_FRF16MFRBUNDLE = 0xa3
|
|
||||||
IFT_FRFORWARD = 0x9e
|
|
||||||
IFT_G703AT2MB = 0x43
|
|
||||||
IFT_G703AT64K = 0x42
|
|
||||||
IFT_GIF = 0xf0
|
|
||||||
IFT_GIGABITETHERNET = 0x75
|
|
||||||
IFT_GR303IDT = 0xb2
|
|
||||||
IFT_GR303RDT = 0xb1
|
|
||||||
IFT_H323GATEKEEPER = 0xa4
|
|
||||||
IFT_H323PROXY = 0xa5
|
|
||||||
IFT_HDH1822 = 0x3
|
|
||||||
IFT_HDLC = 0x76
|
|
||||||
IFT_HDSL2 = 0xa8
|
|
||||||
IFT_HIPERLAN2 = 0xb7
|
|
||||||
IFT_HIPPI = 0x2f
|
|
||||||
IFT_HIPPIINTERFACE = 0x39
|
|
||||||
IFT_HOSTPAD = 0x5a
|
|
||||||
IFT_HSSI = 0x2e
|
|
||||||
IFT_HY = 0xe
|
|
||||||
IFT_IBM370PARCHAN = 0x48
|
|
||||||
IFT_IDSL = 0x9a
|
|
||||||
IFT_IEEE1394 = 0x90
|
IFT_IEEE1394 = 0x90
|
||||||
IFT_IEEE80211 = 0x47
|
|
||||||
IFT_IEEE80212 = 0x37
|
|
||||||
IFT_IEEE8023ADLAG = 0xa1
|
|
||||||
IFT_IFGSN = 0x91
|
|
||||||
IFT_IMT = 0xbe
|
|
||||||
IFT_INFINIBAND = 0xc7
|
IFT_INFINIBAND = 0xc7
|
||||||
IFT_INTERLEAVE = 0x7c
|
|
||||||
IFT_IP = 0x7e
|
|
||||||
IFT_IPFORWARD = 0x8e
|
|
||||||
IFT_IPOVERATM = 0x72
|
|
||||||
IFT_IPOVERCDLC = 0x6d
|
|
||||||
IFT_IPOVERCLAW = 0x6e
|
|
||||||
IFT_IPSWITCH = 0x4e
|
|
||||||
IFT_IPXIP = 0xf9
|
|
||||||
IFT_ISDN = 0x3f
|
|
||||||
IFT_ISDNBASIC = 0x14
|
|
||||||
IFT_ISDNPRIMARY = 0x15
|
|
||||||
IFT_ISDNS = 0x4b
|
|
||||||
IFT_ISDNU = 0x4c
|
|
||||||
IFT_ISO88022LLC = 0x29
|
|
||||||
IFT_ISO88023 = 0x7
|
|
||||||
IFT_ISO88024 = 0x8
|
|
||||||
IFT_ISO88025 = 0x9
|
|
||||||
IFT_ISO88025CRFPINT = 0x62
|
|
||||||
IFT_ISO88025DTR = 0x56
|
|
||||||
IFT_ISO88025FIBER = 0x73
|
|
||||||
IFT_ISO88026 = 0xa
|
|
||||||
IFT_ISUP = 0xb3
|
|
||||||
IFT_L2VLAN = 0x87
|
IFT_L2VLAN = 0x87
|
||||||
IFT_L3IPVLAN = 0x88
|
IFT_L3IPVLAN = 0x88
|
||||||
IFT_L3IPXVLAN = 0x89
|
|
||||||
IFT_LAPB = 0x10
|
|
||||||
IFT_LAPD = 0x4d
|
|
||||||
IFT_LAPF = 0x77
|
|
||||||
IFT_LOCALTALK = 0x2a
|
|
||||||
IFT_LOOP = 0x18
|
|
||||||
IFT_MEDIAMAILOVERIP = 0x8b
|
|
||||||
IFT_MFSIGLINK = 0xa7
|
|
||||||
IFT_MIOX25 = 0x26
|
|
||||||
IFT_MODEM = 0x30
|
|
||||||
IFT_MPC = 0x71
|
|
||||||
IFT_MPLS = 0xa6
|
|
||||||
IFT_MPLSTUNNEL = 0x96
|
|
||||||
IFT_MSDSL = 0x8f
|
|
||||||
IFT_MVL = 0xbf
|
|
||||||
IFT_MYRINET = 0x63
|
|
||||||
IFT_NFAS = 0xaf
|
|
||||||
IFT_NSIP = 0x1b
|
|
||||||
IFT_OPTICALCHANNEL = 0xc3
|
|
||||||
IFT_OPTICALTRANSPORT = 0xc4
|
|
||||||
IFT_OTHER = 0x1
|
|
||||||
IFT_P10 = 0xc
|
|
||||||
IFT_P80 = 0xd
|
|
||||||
IFT_PARA = 0x22
|
|
||||||
IFT_PFLOG = 0xf6
|
|
||||||
IFT_PFSYNC = 0xf7
|
|
||||||
IFT_PLC = 0xae
|
|
||||||
IFT_POS = 0xab
|
|
||||||
IFT_PPP = 0x17
|
IFT_PPP = 0x17
|
||||||
IFT_PPPMULTILINKBUNDLE = 0x6c
|
|
||||||
IFT_PROPBWAP2MP = 0xb8
|
|
||||||
IFT_PROPCNLS = 0x59
|
|
||||||
IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
|
|
||||||
IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
|
|
||||||
IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
|
|
||||||
IFT_PROPMUX = 0x36
|
|
||||||
IFT_PROPVIRTUAL = 0x35
|
IFT_PROPVIRTUAL = 0x35
|
||||||
IFT_PROPWIRELESSP2P = 0x9d
|
|
||||||
IFT_PTPSERIAL = 0x16
|
|
||||||
IFT_PVC = 0xf1
|
|
||||||
IFT_QLLC = 0x44
|
|
||||||
IFT_RADIOMAC = 0xbc
|
|
||||||
IFT_RADSL = 0x5f
|
|
||||||
IFT_REACHDSL = 0xc0
|
|
||||||
IFT_RFC1483 = 0x9f
|
|
||||||
IFT_RS232 = 0x21
|
|
||||||
IFT_RSRB = 0x4f
|
|
||||||
IFT_SDLC = 0x11
|
|
||||||
IFT_SDSL = 0x60
|
|
||||||
IFT_SHDSL = 0xa9
|
|
||||||
IFT_SIP = 0x1f
|
|
||||||
IFT_SLIP = 0x1c
|
|
||||||
IFT_SMDSDXI = 0x2b
|
|
||||||
IFT_SMDSICIP = 0x34
|
|
||||||
IFT_SONET = 0x27
|
|
||||||
IFT_SONETOVERHEADCHANNEL = 0xb9
|
|
||||||
IFT_SONETPATH = 0x32
|
|
||||||
IFT_SONETVT = 0x33
|
|
||||||
IFT_SRP = 0x97
|
|
||||||
IFT_SS7SIGLINK = 0x9c
|
|
||||||
IFT_STACKTOSTACK = 0x6f
|
|
||||||
IFT_STARLAN = 0xb
|
|
||||||
IFT_STF = 0xd7
|
|
||||||
IFT_T1 = 0x12
|
|
||||||
IFT_TDLC = 0x74
|
|
||||||
IFT_TERMPAD = 0x5b
|
|
||||||
IFT_TR008 = 0xb0
|
|
||||||
IFT_TRANSPHDLC = 0x7b
|
|
||||||
IFT_TUNNEL = 0x83
|
|
||||||
IFT_ULTRA = 0x1d
|
|
||||||
IFT_USB = 0xa0
|
|
||||||
IFT_V11 = 0x40
|
|
||||||
IFT_V35 = 0x2d
|
|
||||||
IFT_V36 = 0x41
|
|
||||||
IFT_V37 = 0x78
|
|
||||||
IFT_VDSL = 0x61
|
|
||||||
IFT_VIRTUALIPADDRESS = 0x70
|
|
||||||
IFT_VOICEEM = 0x64
|
|
||||||
IFT_VOICEENCAP = 0x67
|
|
||||||
IFT_VOICEFXO = 0x65
|
|
||||||
IFT_VOICEFXS = 0x66
|
|
||||||
IFT_VOICEOVERATM = 0x98
|
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
|
||||||
IFT_VOICEOVERIP = 0x68
|
|
||||||
IFT_X213 = 0x5d
|
|
||||||
IFT_X25 = 0x5
|
|
||||||
IFT_X25DDN = 0x4
|
|
||||||
IFT_X25HUNTGROUP = 0x7a
|
|
||||||
IFT_X25MLP = 0x79
|
|
||||||
IFT_X25PLE = 0x28
|
|
||||||
IFT_XETHER = 0x1a
|
|
||||||
IGNBRK = 0x1
|
IGNBRK = 0x1
|
||||||
IGNCR = 0x80
|
IGNCR = 0x80
|
||||||
IGNPAR = 0x4
|
IGNPAR = 0x4
|
||||||
@@ -811,7 +730,6 @@ const (
|
|||||||
IPPROTO_LEAF1 = 0x19
|
IPPROTO_LEAF1 = 0x19
|
||||||
IPPROTO_LEAF2 = 0x1a
|
IPPROTO_LEAF2 = 0x1a
|
||||||
IPPROTO_MAX = 0x100
|
IPPROTO_MAX = 0x100
|
||||||
IPPROTO_MAXID = 0x34
|
|
||||||
IPPROTO_MEAS = 0x13
|
IPPROTO_MEAS = 0x13
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
IPPROTO_MHRP = 0x30
|
IPPROTO_MHRP = 0x30
|
||||||
@@ -876,6 +794,7 @@ const (
|
|||||||
IPPROTO_XTP = 0x24
|
IPPROTO_XTP = 0x24
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_BINDANY = 0x40
|
IPV6_BINDANY = 0x40
|
||||||
|
IPV6_BINDMULTI = 0x41
|
||||||
IPV6_BINDV6ONLY = 0x1b
|
IPV6_BINDV6ONLY = 0x1b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
IPV6_DEFAULT_MULTICAST_HOPS = 0x1
|
IPV6_DEFAULT_MULTICAST_HOPS = 0x1
|
||||||
@@ -883,9 +802,10 @@ const (
|
|||||||
IPV6_DEFHLIM = 0x40
|
IPV6_DEFHLIM = 0x40
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DSTOPTS = 0x32
|
IPV6_DSTOPTS = 0x32
|
||||||
IPV6_FAITH = 0x1d
|
IPV6_FLOWID = 0x43
|
||||||
IPV6_FLOWINFO_MASK = 0xffffff0f
|
IPV6_FLOWINFO_MASK = 0xffffff0f
|
||||||
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
||||||
|
IPV6_FLOWTYPE = 0x44
|
||||||
IPV6_FRAGTTL = 0x78
|
IPV6_FRAGTTL = 0x78
|
||||||
IPV6_FW_ADD = 0x1e
|
IPV6_FW_ADD = 0x1e
|
||||||
IPV6_FW_DEL = 0x1f
|
IPV6_FW_DEL = 0x1f
|
||||||
@@ -919,12 +839,16 @@ const (
|
|||||||
IPV6_PORTRANGE_LOW = 0x2
|
IPV6_PORTRANGE_LOW = 0x2
|
||||||
IPV6_PREFER_TEMPADDR = 0x3f
|
IPV6_PREFER_TEMPADDR = 0x3f
|
||||||
IPV6_RECVDSTOPTS = 0x28
|
IPV6_RECVDSTOPTS = 0x28
|
||||||
|
IPV6_RECVFLOWID = 0x46
|
||||||
IPV6_RECVHOPLIMIT = 0x25
|
IPV6_RECVHOPLIMIT = 0x25
|
||||||
IPV6_RECVHOPOPTS = 0x27
|
IPV6_RECVHOPOPTS = 0x27
|
||||||
IPV6_RECVPATHMTU = 0x2b
|
IPV6_RECVPATHMTU = 0x2b
|
||||||
IPV6_RECVPKTINFO = 0x24
|
IPV6_RECVPKTINFO = 0x24
|
||||||
|
IPV6_RECVRSSBUCKETID = 0x47
|
||||||
IPV6_RECVRTHDR = 0x26
|
IPV6_RECVRTHDR = 0x26
|
||||||
IPV6_RECVTCLASS = 0x39
|
IPV6_RECVTCLASS = 0x39
|
||||||
|
IPV6_RSSBUCKETID = 0x45
|
||||||
|
IPV6_RSS_LISTEN_BUCKET = 0x42
|
||||||
IPV6_RTHDR = 0x33
|
IPV6_RTHDR = 0x33
|
||||||
IPV6_RTHDRDSTOPTS = 0x23
|
IPV6_RTHDRDSTOPTS = 0x23
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
@@ -940,6 +864,7 @@ const (
|
|||||||
IP_ADD_MEMBERSHIP = 0xc
|
IP_ADD_MEMBERSHIP = 0xc
|
||||||
IP_ADD_SOURCE_MEMBERSHIP = 0x46
|
IP_ADD_SOURCE_MEMBERSHIP = 0x46
|
||||||
IP_BINDANY = 0x18
|
IP_BINDANY = 0x18
|
||||||
|
IP_BINDMULTI = 0x19
|
||||||
IP_BLOCK_SOURCE = 0x48
|
IP_BLOCK_SOURCE = 0x48
|
||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
@@ -952,7 +877,8 @@ const (
|
|||||||
IP_DUMMYNET_DEL = 0x3d
|
IP_DUMMYNET_DEL = 0x3d
|
||||||
IP_DUMMYNET_FLUSH = 0x3e
|
IP_DUMMYNET_FLUSH = 0x3e
|
||||||
IP_DUMMYNET_GET = 0x40
|
IP_DUMMYNET_GET = 0x40
|
||||||
IP_FAITH = 0x16
|
IP_FLOWID = 0x5a
|
||||||
|
IP_FLOWTYPE = 0x5b
|
||||||
IP_FW3 = 0x30
|
IP_FW3 = 0x30
|
||||||
IP_FW_ADD = 0x32
|
IP_FW_ADD = 0x32
|
||||||
IP_FW_DEL = 0x33
|
IP_FW_DEL = 0x33
|
||||||
@@ -994,13 +920,17 @@ const (
|
|||||||
IP_PORTRANGE_HIGH = 0x1
|
IP_PORTRANGE_HIGH = 0x1
|
||||||
IP_PORTRANGE_LOW = 0x2
|
IP_PORTRANGE_LOW = 0x2
|
||||||
IP_RECVDSTADDR = 0x7
|
IP_RECVDSTADDR = 0x7
|
||||||
|
IP_RECVFLOWID = 0x5d
|
||||||
IP_RECVIF = 0x14
|
IP_RECVIF = 0x14
|
||||||
IP_RECVOPTS = 0x5
|
IP_RECVOPTS = 0x5
|
||||||
IP_RECVRETOPTS = 0x6
|
IP_RECVRETOPTS = 0x6
|
||||||
|
IP_RECVRSSBUCKETID = 0x5e
|
||||||
IP_RECVTOS = 0x44
|
IP_RECVTOS = 0x44
|
||||||
IP_RECVTTL = 0x41
|
IP_RECVTTL = 0x41
|
||||||
IP_RETOPTS = 0x8
|
IP_RETOPTS = 0x8
|
||||||
IP_RF = 0x8000
|
IP_RF = 0x8000
|
||||||
|
IP_RSSBUCKETID = 0x5c
|
||||||
|
IP_RSS_LISTEN_BUCKET = 0x1a
|
||||||
IP_RSVP_OFF = 0x10
|
IP_RSVP_OFF = 0x10
|
||||||
IP_RSVP_ON = 0xf
|
IP_RSVP_ON = 0xf
|
||||||
IP_RSVP_VIF_OFF = 0x12
|
IP_RSVP_VIF_OFF = 0x12
|
||||||
@@ -1041,11 +971,11 @@ const (
|
|||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
MAP_HASSEMAPHORE = 0x200
|
MAP_HASSEMAPHORE = 0x200
|
||||||
MAP_NOCORE = 0x20000
|
MAP_NOCORE = 0x20000
|
||||||
MAP_NORESERVE = 0x40
|
|
||||||
MAP_NOSYNC = 0x800
|
MAP_NOSYNC = 0x800
|
||||||
MAP_PREFAULT_READ = 0x40000
|
MAP_PREFAULT_READ = 0x40000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RESERVED0020 = 0x20
|
||||||
|
MAP_RESERVED0040 = 0x40
|
||||||
MAP_RESERVED0080 = 0x80
|
MAP_RESERVED0080 = 0x80
|
||||||
MAP_RESERVED0100 = 0x100
|
MAP_RESERVED0100 = 0x100
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
@@ -1066,6 +996,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x80000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_SYNC = 0x0
|
MS_SYNC = 0x0
|
||||||
@@ -1075,10 +1006,12 @@ const (
|
|||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFLISTL = 0x5
|
NET_RT_IFLISTL = 0x5
|
||||||
NET_RT_IFMALIST = 0x4
|
NET_RT_IFMALIST = 0x4
|
||||||
NET_RT_MAXID = 0x6
|
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
|
NOTE_CLOSE = 0x100
|
||||||
|
NOTE_CLOSE_WRITE = 0x200
|
||||||
NOTE_DELETE = 0x1
|
NOTE_DELETE = 0x1
|
||||||
NOTE_EXEC = 0x20000000
|
NOTE_EXEC = 0x20000000
|
||||||
NOTE_EXIT = 0x80000000
|
NOTE_EXIT = 0x80000000
|
||||||
@@ -1089,13 +1022,16 @@ const (
|
|||||||
NOTE_FFLAGSMASK = 0xffffff
|
NOTE_FFLAGSMASK = 0xffffff
|
||||||
NOTE_FFNOP = 0x0
|
NOTE_FFNOP = 0x0
|
||||||
NOTE_FFOR = 0x80000000
|
NOTE_FFOR = 0x80000000
|
||||||
|
NOTE_FILE_POLL = 0x2
|
||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
NOTE_MSECONDS = 0x2
|
NOTE_MSECONDS = 0x2
|
||||||
NOTE_NSECONDS = 0x8
|
NOTE_NSECONDS = 0x8
|
||||||
|
NOTE_OPEN = 0x80
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
|
NOTE_READ = 0x400
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
NOTE_REVOKE = 0x40
|
NOTE_REVOKE = 0x40
|
||||||
NOTE_SECONDS = 0x1
|
NOTE_SECONDS = 0x1
|
||||||
@@ -1110,6 +1046,7 @@ const (
|
|||||||
ONOCR = 0x20
|
ONOCR = 0x20
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x40
|
O_ASYNC = 0x40
|
||||||
@@ -1131,6 +1068,7 @@ const (
|
|||||||
O_SYNC = 0x80
|
O_SYNC = 0x80
|
||||||
O_TRUNC = 0x400
|
O_TRUNC = 0x400
|
||||||
O_TTY_INIT = 0x80000
|
O_TTY_INIT = 0x80000
|
||||||
|
O_VERIFY = 0x200000
|
||||||
O_WRONLY = 0x1
|
O_WRONLY = 0x1
|
||||||
PARENB = 0x1000
|
PARENB = 0x1000
|
||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
@@ -1148,7 +1086,10 @@ const (
|
|||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
@@ -1172,6 +1113,7 @@ const (
|
|||||||
RTF_BROADCAST = 0x400000
|
RTF_BROADCAST = 0x400000
|
||||||
RTF_DONE = 0x40
|
RTF_DONE = 0x40
|
||||||
RTF_DYNAMIC = 0x10
|
RTF_DYNAMIC = 0x10
|
||||||
|
RTF_FIXEDMTU = 0x80000
|
||||||
RTF_FMASK = 0x1004d808
|
RTF_FMASK = 0x1004d808
|
||||||
RTF_GATEWAY = 0x2
|
RTF_GATEWAY = 0x2
|
||||||
RTF_GWFLAG_COMPAT = 0x80000000
|
RTF_GWFLAG_COMPAT = 0x80000000
|
||||||
@@ -1182,7 +1124,6 @@ const (
|
|||||||
RTF_MODIFIED = 0x20
|
RTF_MODIFIED = 0x20
|
||||||
RTF_MULTICAST = 0x800000
|
RTF_MULTICAST = 0x800000
|
||||||
RTF_PINNED = 0x100000
|
RTF_PINNED = 0x100000
|
||||||
RTF_PRCLONING = 0x10000
|
|
||||||
RTF_PROTO1 = 0x8000
|
RTF_PROTO1 = 0x8000
|
||||||
RTF_PROTO2 = 0x4000
|
RTF_PROTO2 = 0x4000
|
||||||
RTF_PROTO3 = 0x40000
|
RTF_PROTO3 = 0x40000
|
||||||
@@ -1206,8 +1147,6 @@ const (
|
|||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
RTM_NEWADDR = 0xc
|
RTM_NEWADDR = 0xc
|
||||||
RTM_NEWMADDR = 0xf
|
RTM_NEWMADDR = 0xf
|
||||||
RTM_OLDADD = 0x9
|
|
||||||
RTM_OLDDEL = 0xa
|
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_RTTUNIT = 0xf4240
|
||||||
@@ -1222,9 +1161,19 @@ const (
|
|||||||
RTV_SSTHRESH = 0x20
|
RTV_SSTHRESH = 0x20
|
||||||
RTV_WEIGHT = 0x100
|
RTV_WEIGHT = 0x100
|
||||||
RT_ALL_FIBS = -0x1
|
RT_ALL_FIBS = -0x1
|
||||||
|
RT_BLACKHOLE = 0x40
|
||||||
RT_CACHING_CONTEXT = 0x1
|
RT_CACHING_CONTEXT = 0x1
|
||||||
RT_DEFAULT_FIB = 0x0
|
RT_DEFAULT_FIB = 0x0
|
||||||
|
RT_HAS_GW = 0x80
|
||||||
|
RT_HAS_HEADER = 0x10
|
||||||
|
RT_HAS_HEADER_BIT = 0x4
|
||||||
|
RT_L2_ME = 0x4
|
||||||
|
RT_L2_ME_BIT = 0x2
|
||||||
|
RT_LLE_CACHE = 0x100
|
||||||
|
RT_MAY_LOOP = 0x8
|
||||||
|
RT_MAY_LOOP_BIT = 0x3
|
||||||
RT_NORTREF = 0x2
|
RT_NORTREF = 0x2
|
||||||
|
RT_REJECT = 0x20
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
@@ -1236,21 +1185,18 @@ const (
|
|||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
SIOCADDMULTI = 0x80206931
|
SIOCADDMULTI = 0x80206931
|
||||||
SIOCADDRT = 0x8040720a
|
|
||||||
SIOCAIFADDR = 0x8040691a
|
SIOCAIFADDR = 0x8040691a
|
||||||
SIOCAIFGROUP = 0x80286987
|
SIOCAIFGROUP = 0x80286987
|
||||||
SIOCALIFADDR = 0x8118691b
|
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDELRT = 0x8040720b
|
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80286989
|
SIOCDIFGROUP = 0x80286989
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
SIOCDLIFADDR = 0x8118691d
|
|
||||||
SIOCGDRVSPEC = 0xc028697b
|
SIOCGDRVSPEC = 0xc028697b
|
||||||
SIOCGETSGCNT = 0xc0207210
|
SIOCGETSGCNT = 0xc0207210
|
||||||
SIOCGETVIFCNT = 0xc028720f
|
SIOCGETVIFCNT = 0xc028720f
|
||||||
SIOCGHIWAT = 0x40047301
|
SIOCGHIWAT = 0x40047301
|
||||||
|
SIOCGI2C = 0xc020693d
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
SIOCGIFCAP = 0xc020691f
|
SIOCGIFCAP = 0xc020691f
|
||||||
@@ -1272,12 +1218,12 @@ const (
|
|||||||
SIOCGIFPHYS = 0xc0206935
|
SIOCGIFPHYS = 0xc0206935
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
SIOCGIFPSRCADDR = 0xc0206947
|
||||||
SIOCGIFSTATUS = 0xc331693b
|
SIOCGIFSTATUS = 0xc331693b
|
||||||
SIOCGLIFADDR = 0xc118691c
|
SIOCGIFXMEDIA = 0xc030698b
|
||||||
SIOCGLIFPHYADDR = 0xc118694b
|
|
||||||
SIOCGLOWAT = 0x40047303
|
SIOCGLOWAT = 0x40047303
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGPRIVATE_0 = 0xc0206950
|
SIOCGPRIVATE_0 = 0xc0206950
|
||||||
SIOCGPRIVATE_1 = 0xc0206951
|
SIOCGPRIVATE_1 = 0xc0206951
|
||||||
|
SIOCGTUNFIB = 0xc020695e
|
||||||
SIOCIFCREATE = 0xc020697a
|
SIOCIFCREATE = 0xc020697a
|
||||||
SIOCIFCREATE2 = 0xc020697c
|
SIOCIFCREATE2 = 0xc020697c
|
||||||
SIOCIFDESTROY = 0x80206979
|
SIOCIFDESTROY = 0x80206979
|
||||||
@@ -1303,9 +1249,9 @@ const (
|
|||||||
SIOCSIFPHYS = 0x80206936
|
SIOCSIFPHYS = 0x80206936
|
||||||
SIOCSIFRVNET = 0xc020695b
|
SIOCSIFRVNET = 0xc020695b
|
||||||
SIOCSIFVNET = 0xc020695a
|
SIOCSIFVNET = 0xc020695a
|
||||||
SIOCSLIFPHYADDR = 0x8118694a
|
|
||||||
SIOCSLOWAT = 0x80047302
|
SIOCSLOWAT = 0x80047302
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSTUNFIB = 0x8020695f
|
||||||
SOCK_CLOEXEC = 0x10000000
|
SOCK_CLOEXEC = 0x10000000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_MAXADDRLEN = 0xff
|
SOCK_MAXADDRLEN = 0xff
|
||||||
@@ -1350,11 +1296,22 @@ const (
|
|||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB3 = 0x4
|
||||||
|
TABDLY = 0x4
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
TCP_CA_NAME_MAX = 0x10
|
TCP_CA_NAME_MAX = 0x10
|
||||||
|
TCP_CCALGOOPT = 0x41
|
||||||
TCP_CONGESTION = 0x40
|
TCP_CONGESTION = 0x40
|
||||||
|
TCP_FASTOPEN = 0x401
|
||||||
|
TCP_FUNCTION_BLK = 0x2000
|
||||||
|
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
||||||
TCP_INFO = 0x20
|
TCP_INFO = 0x20
|
||||||
TCP_KEEPCNT = 0x400
|
TCP_KEEPCNT = 0x400
|
||||||
TCP_KEEPIDLE = 0x100
|
TCP_KEEPIDLE = 0x100
|
||||||
@@ -1373,6 +1330,8 @@ const (
|
|||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOOPT = 0x8
|
TCP_NOOPT = 0x8
|
||||||
TCP_NOPUSH = 0x4
|
TCP_NOPUSH = 0x4
|
||||||
|
TCP_PCAP_IN = 0x1000
|
||||||
|
TCP_PCAP_OUT = 0x800
|
||||||
TCP_VENDOR = 0x80000000
|
TCP_VENDOR = 0x80000000
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
|
|||||||
429
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
429
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
File diff suppressed because it is too large
Load Diff
429
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
429
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
File diff suppressed because it is too large
Load Diff
496
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
496
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
File diff suppressed because it is too large
Load Diff
347
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
347
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
@@ -1,10 +1,10 @@
|
|||||||
// mkerrors.sh
|
// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build arm64,linux
|
// +build arm64,linux
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Created by cgo -godefs - DO NOT EDIT
|
||||||
// cgo -godefs -- _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -24,6 +24,7 @@ const (
|
|||||||
AF_DECnet = 0xc
|
AF_DECnet = 0xc
|
||||||
AF_ECONET = 0x13
|
AF_ECONET = 0x13
|
||||||
AF_FILE = 0x1
|
AF_FILE = 0x1
|
||||||
|
AF_IB = 0x1b
|
||||||
AF_IEEE802154 = 0x24
|
AF_IEEE802154 = 0x24
|
||||||
AF_INET = 0x2
|
AF_INET = 0x2
|
||||||
AF_INET6 = 0xa
|
AF_INET6 = 0xa
|
||||||
@@ -31,10 +32,12 @@ const (
|
|||||||
AF_IRDA = 0x17
|
AF_IRDA = 0x17
|
||||||
AF_ISDN = 0x22
|
AF_ISDN = 0x22
|
||||||
AF_IUCV = 0x20
|
AF_IUCV = 0x20
|
||||||
|
AF_KCM = 0x29
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x29
|
AF_MAX = 0x2b
|
||||||
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
AF_NETROM = 0x6
|
AF_NETROM = 0x6
|
||||||
@@ -42,6 +45,7 @@ const (
|
|||||||
AF_PACKET = 0x11
|
AF_PACKET = 0x11
|
||||||
AF_PHONET = 0x23
|
AF_PHONET = 0x23
|
||||||
AF_PPPOX = 0x18
|
AF_PPPOX = 0x18
|
||||||
|
AF_QIPCRTR = 0x2a
|
||||||
AF_RDS = 0x15
|
AF_RDS = 0x15
|
||||||
AF_ROSE = 0xb
|
AF_ROSE = 0xb
|
||||||
AF_ROUTE = 0x10
|
AF_ROUTE = 0x10
|
||||||
@@ -54,6 +58,14 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
ALG_OP_DECRYPT = 0x0
|
||||||
|
ALG_OP_ENCRYPT = 0x1
|
||||||
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
ALG_SET_AEAD_AUTHSIZE = 0x5
|
||||||
|
ALG_SET_IV = 0x2
|
||||||
|
ALG_SET_KEY = 0x1
|
||||||
|
ALG_SET_OP = 0x3
|
||||||
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
ARPHRD_ARCNET = 0x7
|
ARPHRD_ARCNET = 0x7
|
||||||
@@ -149,6 +161,22 @@ const (
|
|||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BLKBSZGET = 0x80081270
|
||||||
|
BLKBSZSET = 0x40081271
|
||||||
|
BLKFLSBUF = 0x1261
|
||||||
|
BLKFRAGET = 0x1265
|
||||||
|
BLKFRASET = 0x1264
|
||||||
|
BLKGETSIZE = 0x1260
|
||||||
|
BLKGETSIZE64 = 0x80081272
|
||||||
|
BLKPBSZGET = 0x127b
|
||||||
|
BLKRAGET = 0x1263
|
||||||
|
BLKRASET = 0x1262
|
||||||
|
BLKROGET = 0x125e
|
||||||
|
BLKROSET = 0x125d
|
||||||
|
BLKRRPART = 0x125f
|
||||||
|
BLKSECTGET = 0x1267
|
||||||
|
BLKSECTSET = 0x1266
|
||||||
|
BLKSSZGET = 0x1268
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
@@ -170,6 +198,7 @@ const (
|
|||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
BPF_LEN = 0x80
|
BPF_LEN = 0x80
|
||||||
|
BPF_LL_OFF = -0x200000
|
||||||
BPF_LSH = 0x60
|
BPF_LSH = 0x60
|
||||||
BPF_MAJOR_VERSION = 0x1
|
BPF_MAJOR_VERSION = 0x1
|
||||||
BPF_MAXINSNS = 0x1000
|
BPF_MAXINSNS = 0x1000
|
||||||
@@ -181,6 +210,7 @@ const (
|
|||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
|
BPF_NET_OFF = -0x100000
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
@@ -196,6 +226,26 @@ const (
|
|||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
CAN_BCM = 0x2
|
||||||
|
CAN_EFF_FLAG = 0x80000000
|
||||||
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
CAN_EFF_MASK = 0x1fffffff
|
||||||
|
CAN_ERR_FLAG = 0x20000000
|
||||||
|
CAN_ERR_MASK = 0x1fffffff
|
||||||
|
CAN_INV_FILTER = 0x20000000
|
||||||
|
CAN_ISOTP = 0x6
|
||||||
|
CAN_MAX_DLC = 0x8
|
||||||
|
CAN_MAX_DLEN = 0x8
|
||||||
|
CAN_MCNET = 0x5
|
||||||
|
CAN_MTU = 0x10
|
||||||
|
CAN_NPROTO = 0x7
|
||||||
|
CAN_RAW = 0x1
|
||||||
|
CAN_RAW_FILTER_MAX = 0x200
|
||||||
|
CAN_RTR_FLAG = 0x40000000
|
||||||
|
CAN_SFF_ID_BITS = 0xb
|
||||||
|
CAN_SFF_MASK = 0x7ff
|
||||||
|
CAN_TP16 = 0x3
|
||||||
|
CAN_TP20 = 0x4
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -213,6 +263,7 @@ const (
|
|||||||
CLOCK_REALTIME = 0x0
|
CLOCK_REALTIME = 0x0
|
||||||
CLOCK_REALTIME_ALARM = 0x8
|
CLOCK_REALTIME_ALARM = 0x8
|
||||||
CLOCK_REALTIME_COARSE = 0x5
|
CLOCK_REALTIME_COARSE = 0x5
|
||||||
|
CLOCK_TAI = 0xb
|
||||||
CLOCK_THREAD_CPUTIME_ID = 0x3
|
CLOCK_THREAD_CPUTIME_ID = 0x3
|
||||||
CLOCK_TXFROMRX = 0x4
|
CLOCK_TXFROMRX = 0x4
|
||||||
CLOCK_TXINT = 0x3
|
CLOCK_TXINT = 0x3
|
||||||
@@ -274,8 +325,9 @@ const (
|
|||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
ELF_NGREG = 0x22
|
EFD_CLOEXEC = 0x80000
|
||||||
ELF_PRARGSZ = 0x50
|
EFD_NONBLOCK = 0x800
|
||||||
|
EFD_SEMAPHORE = 0x1
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
@@ -284,6 +336,7 @@ const (
|
|||||||
ENCODING_NRZI = 0x2
|
ENCODING_NRZI = 0x2
|
||||||
EPOLLERR = 0x8
|
EPOLLERR = 0x8
|
||||||
EPOLLET = 0x80000000
|
EPOLLET = 0x80000000
|
||||||
|
EPOLLEXCLUSIVE = 0x10000000
|
||||||
EPOLLHUP = 0x10
|
EPOLLHUP = 0x10
|
||||||
EPOLLIN = 0x1
|
EPOLLIN = 0x1
|
||||||
EPOLLMSG = 0x400
|
EPOLLMSG = 0x400
|
||||||
@@ -300,10 +353,12 @@ const (
|
|||||||
EPOLL_CTL_ADD = 0x1
|
EPOLL_CTL_ADD = 0x1
|
||||||
EPOLL_CTL_DEL = 0x2
|
EPOLL_CTL_DEL = 0x2
|
||||||
EPOLL_CTL_MOD = 0x3
|
EPOLL_CTL_MOD = 0x3
|
||||||
|
ESR_MAGIC = 0x45535201
|
||||||
ETH_P_1588 = 0x88f7
|
ETH_P_1588 = 0x88f7
|
||||||
ETH_P_8021AD = 0x88a8
|
ETH_P_8021AD = 0x88a8
|
||||||
ETH_P_8021AH = 0x88e7
|
ETH_P_8021AH = 0x88e7
|
||||||
ETH_P_8021Q = 0x8100
|
ETH_P_8021Q = 0x8100
|
||||||
|
ETH_P_80221 = 0x8917
|
||||||
ETH_P_802_2 = 0x4
|
ETH_P_802_2 = 0x4
|
||||||
ETH_P_802_3 = 0x1
|
ETH_P_802_3 = 0x1
|
||||||
ETH_P_802_3_MIN = 0x600
|
ETH_P_802_3_MIN = 0x600
|
||||||
@@ -337,6 +392,7 @@ const (
|
|||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
ETH_P_HSR = 0x892f
|
||||||
ETH_P_IEEE802154 = 0xf6
|
ETH_P_IEEE802154 = 0xf6
|
||||||
ETH_P_IEEEPUP = 0xa00
|
ETH_P_IEEEPUP = 0xa00
|
||||||
ETH_P_IEEEPUPAT = 0xa01
|
ETH_P_IEEEPUPAT = 0xa01
|
||||||
@@ -348,10 +404,13 @@ const (
|
|||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
ETH_P_MACSEC = 0x88e5
|
||||||
ETH_P_MOBITEX = 0x15
|
ETH_P_MOBITEX = 0x15
|
||||||
ETH_P_MPLS_MC = 0x8848
|
ETH_P_MPLS_MC = 0x8848
|
||||||
ETH_P_MPLS_UC = 0x8847
|
ETH_P_MPLS_UC = 0x8847
|
||||||
ETH_P_MVRP = 0x88f5
|
ETH_P_MVRP = 0x88f5
|
||||||
|
ETH_P_NCSI = 0x88f8
|
||||||
ETH_P_PAE = 0x888e
|
ETH_P_PAE = 0x888e
|
||||||
ETH_P_PAUSE = 0x8808
|
ETH_P_PAUSE = 0x8808
|
||||||
ETH_P_PHONET = 0xf5
|
ETH_P_PHONET = 0xf5
|
||||||
@@ -374,18 +433,45 @@ const (
|
|||||||
ETH_P_TIPC = 0x88ca
|
ETH_P_TIPC = 0x88ca
|
||||||
ETH_P_TRAILER = 0x1c
|
ETH_P_TRAILER = 0x1c
|
||||||
ETH_P_TR_802_2 = 0x11
|
ETH_P_TR_802_2 = 0x11
|
||||||
|
ETH_P_TSN = 0x22f0
|
||||||
ETH_P_WAN_PPP = 0x7
|
ETH_P_WAN_PPP = 0x7
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
|
ETH_P_XDSA = 0xf8
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
FALLOC_FL_NO_HIDE_STALE = 0x4
|
||||||
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CTS = 0x4
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
|
FS_KEY_DESCRIPTOR_SIZE = 0x8
|
||||||
|
FS_KEY_DESC_PREFIX = "fscrypt:"
|
||||||
|
FS_KEY_DESC_PREFIX_SIZE = 0x8
|
||||||
|
FS_MAX_KEY_SIZE = 0x40
|
||||||
|
FS_POLICY_FLAGS_PAD_16 = 0x2
|
||||||
|
FS_POLICY_FLAGS_PAD_32 = 0x3
|
||||||
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
F_EXLCK = 0x4
|
F_EXLCK = 0x4
|
||||||
@@ -400,6 +486,9 @@ const (
|
|||||||
F_GETSIG = 0xb
|
F_GETSIG = 0xb
|
||||||
F_LOCK = 0x1
|
F_LOCK = 0x1
|
||||||
F_NOTIFY = 0x402
|
F_NOTIFY = 0x402
|
||||||
|
F_OFD_GETLK = 0x24
|
||||||
|
F_OFD_SETLK = 0x25
|
||||||
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
F_SETFD = 0x2
|
F_SETFD = 0x2
|
||||||
@@ -419,6 +508,8 @@ const (
|
|||||||
F_ULOCK = 0x0
|
F_ULOCK = 0x0
|
||||||
F_UNLCK = 0x2
|
F_UNLCK = 0x2
|
||||||
F_WRLCK = 0x1
|
F_WRLCK = 0x1
|
||||||
|
GRND_NONBLOCK = 0x1
|
||||||
|
GRND_RANDOM = 0x2
|
||||||
HUPCL = 0x400
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
@@ -428,38 +519,29 @@ const (
|
|||||||
IFA_F_DADFAILED = 0x8
|
IFA_F_DADFAILED = 0x8
|
||||||
IFA_F_DEPRECATED = 0x20
|
IFA_F_DEPRECATED = 0x20
|
||||||
IFA_F_HOMEADDRESS = 0x10
|
IFA_F_HOMEADDRESS = 0x10
|
||||||
|
IFA_F_MANAGETEMPADDR = 0x100
|
||||||
|
IFA_F_MCAUTOJOIN = 0x400
|
||||||
IFA_F_NODAD = 0x2
|
IFA_F_NODAD = 0x2
|
||||||
|
IFA_F_NOPREFIXROUTE = 0x200
|
||||||
IFA_F_OPTIMISTIC = 0x4
|
IFA_F_OPTIMISTIC = 0x4
|
||||||
IFA_F_PERMANENT = 0x80
|
IFA_F_PERMANENT = 0x80
|
||||||
IFA_F_SECONDARY = 0x1
|
IFA_F_SECONDARY = 0x1
|
||||||
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x7
|
IFA_MAX = 0x8
|
||||||
IFF_802_1Q_VLAN = 0x1
|
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
IFF_BONDING = 0x20
|
|
||||||
IFF_BRIDGE_PORT = 0x4000
|
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_DEBUG = 0x4
|
IFF_DEBUG = 0x4
|
||||||
IFF_DETACH_QUEUE = 0x400
|
IFF_DETACH_QUEUE = 0x400
|
||||||
IFF_DISABLE_NETPOLL = 0x1000
|
|
||||||
IFF_DONT_BRIDGE = 0x800
|
|
||||||
IFF_DORMANT = 0x20000
|
IFF_DORMANT = 0x20000
|
||||||
IFF_DYNAMIC = 0x8000
|
IFF_DYNAMIC = 0x8000
|
||||||
IFF_EBRIDGE = 0x2
|
|
||||||
IFF_ECHO = 0x40000
|
IFF_ECHO = 0x40000
|
||||||
IFF_ISATAP = 0x80
|
|
||||||
IFF_LIVE_ADDR_CHANGE = 0x100000
|
|
||||||
IFF_LOOPBACK = 0x8
|
IFF_LOOPBACK = 0x8
|
||||||
IFF_LOWER_UP = 0x10000
|
IFF_LOWER_UP = 0x10000
|
||||||
IFF_MACVLAN = 0x200000
|
|
||||||
IFF_MACVLAN_PORT = 0x2000
|
|
||||||
IFF_MASTER = 0x400
|
IFF_MASTER = 0x400
|
||||||
IFF_MASTER_8023AD = 0x8
|
|
||||||
IFF_MASTER_ALB = 0x10
|
|
||||||
IFF_MASTER_ARPMON = 0x100
|
|
||||||
IFF_MULTICAST = 0x1000
|
IFF_MULTICAST = 0x1000
|
||||||
IFF_MULTI_QUEUE = 0x100
|
IFF_MULTI_QUEUE = 0x100
|
||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
@@ -467,27 +549,18 @@ const (
|
|||||||
IFF_NOTRAILERS = 0x20
|
IFF_NOTRAILERS = 0x20
|
||||||
IFF_NO_PI = 0x1000
|
IFF_NO_PI = 0x1000
|
||||||
IFF_ONE_QUEUE = 0x2000
|
IFF_ONE_QUEUE = 0x2000
|
||||||
IFF_OVS_DATAPATH = 0x8000
|
|
||||||
IFF_PERSIST = 0x800
|
IFF_PERSIST = 0x800
|
||||||
IFF_POINTOPOINT = 0x10
|
IFF_POINTOPOINT = 0x10
|
||||||
IFF_PORTSEL = 0x2000
|
IFF_PORTSEL = 0x2000
|
||||||
IFF_PROMISC = 0x100
|
IFF_PROMISC = 0x100
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SLAVE = 0x800
|
IFF_SLAVE = 0x800
|
||||||
IFF_SLAVE_INACTIVE = 0x4
|
|
||||||
IFF_SLAVE_NEEDARP = 0x40
|
|
||||||
IFF_SUPP_NOFCS = 0x80000
|
|
||||||
IFF_TAP = 0x2
|
IFF_TAP = 0x2
|
||||||
IFF_TEAM_PORT = 0x40000
|
|
||||||
IFF_TUN = 0x1
|
IFF_TUN = 0x1
|
||||||
IFF_TUN_EXCL = 0x8000
|
IFF_TUN_EXCL = 0x8000
|
||||||
IFF_TX_SKB_SHARING = 0x10000
|
|
||||||
IFF_UNICAST_FLT = 0x20000
|
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFF_VNET_HDR = 0x4000
|
IFF_VNET_HDR = 0x4000
|
||||||
IFF_VOLATILE = 0x70c5a
|
IFF_VOLATILE = 0x70c5a
|
||||||
IFF_WAN_HDLC = 0x200
|
|
||||||
IFF_XMIT_DST_RELEASE = 0x400
|
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IGNBRK = 0x1
|
IGNBRK = 0x1
|
||||||
IGNCR = 0x80
|
IGNCR = 0x80
|
||||||
@@ -552,6 +625,7 @@ const (
|
|||||||
IPPROTO_IPIP = 0x4
|
IPPROTO_IPIP = 0x4
|
||||||
IPPROTO_IPV6 = 0x29
|
IPPROTO_IPV6 = 0x29
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
|
IPPROTO_MPLS = 0x89
|
||||||
IPPROTO_MTP = 0x5c
|
IPPROTO_MTP = 0x5c
|
||||||
IPPROTO_NONE = 0x3b
|
IPPROTO_NONE = 0x3b
|
||||||
IPPROTO_PIM = 0x67
|
IPPROTO_PIM = 0x67
|
||||||
@@ -574,8 +648,10 @@ const (
|
|||||||
IPV6_ADD_MEMBERSHIP = 0x14
|
IPV6_ADD_MEMBERSHIP = 0x14
|
||||||
IPV6_AUTHHDR = 0xa
|
IPV6_AUTHHDR = 0xa
|
||||||
IPV6_CHECKSUM = 0x7
|
IPV6_CHECKSUM = 0x7
|
||||||
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
IPV6_IPSEC_POLICY = 0x22
|
IPV6_IPSEC_POLICY = 0x22
|
||||||
@@ -589,15 +665,19 @@ const (
|
|||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
IPV6_NEXTHOP = 0x9
|
IPV6_NEXTHOP = 0x9
|
||||||
|
IPV6_PATHMTU = 0x3d
|
||||||
IPV6_PKTINFO = 0x32
|
IPV6_PKTINFO = 0x32
|
||||||
IPV6_PMTUDISC_DO = 0x2
|
IPV6_PMTUDISC_DO = 0x2
|
||||||
IPV6_PMTUDISC_DONT = 0x0
|
IPV6_PMTUDISC_DONT = 0x0
|
||||||
|
IPV6_PMTUDISC_INTERFACE = 0x4
|
||||||
|
IPV6_PMTUDISC_OMIT = 0x5
|
||||||
IPV6_PMTUDISC_PROBE = 0x3
|
IPV6_PMTUDISC_PROBE = 0x3
|
||||||
IPV6_PMTUDISC_WANT = 0x1
|
IPV6_PMTUDISC_WANT = 0x1
|
||||||
IPV6_RECVDSTOPTS = 0x3a
|
IPV6_RECVDSTOPTS = 0x3a
|
||||||
IPV6_RECVERR = 0x19
|
IPV6_RECVERR = 0x19
|
||||||
IPV6_RECVHOPLIMIT = 0x33
|
IPV6_RECVHOPLIMIT = 0x33
|
||||||
IPV6_RECVHOPOPTS = 0x35
|
IPV6_RECVHOPOPTS = 0x35
|
||||||
|
IPV6_RECVPATHMTU = 0x3c
|
||||||
IPV6_RECVPKTINFO = 0x31
|
IPV6_RECVPKTINFO = 0x31
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
@@ -615,7 +695,9 @@ const (
|
|||||||
IPV6_XFRM_POLICY = 0x23
|
IPV6_XFRM_POLICY = 0x23
|
||||||
IP_ADD_MEMBERSHIP = 0x23
|
IP_ADD_MEMBERSHIP = 0x23
|
||||||
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
||||||
|
IP_BIND_ADDRESS_NO_PORT = 0x18
|
||||||
IP_BLOCK_SOURCE = 0x26
|
IP_BLOCK_SOURCE = 0x26
|
||||||
|
IP_CHECKSUM = 0x17
|
||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
IP_DF = 0x4000
|
IP_DF = 0x4000
|
||||||
@@ -636,6 +718,7 @@ const (
|
|||||||
IP_MULTICAST_IF = 0x20
|
IP_MULTICAST_IF = 0x20
|
||||||
IP_MULTICAST_LOOP = 0x22
|
IP_MULTICAST_LOOP = 0x22
|
||||||
IP_MULTICAST_TTL = 0x21
|
IP_MULTICAST_TTL = 0x21
|
||||||
|
IP_NODEFRAG = 0x16
|
||||||
IP_OFFMASK = 0x1fff
|
IP_OFFMASK = 0x1fff
|
||||||
IP_OPTIONS = 0x4
|
IP_OPTIONS = 0x4
|
||||||
IP_ORIGDSTADDR = 0x14
|
IP_ORIGDSTADDR = 0x14
|
||||||
@@ -645,6 +728,8 @@ const (
|
|||||||
IP_PMTUDISC = 0xa
|
IP_PMTUDISC = 0xa
|
||||||
IP_PMTUDISC_DO = 0x2
|
IP_PMTUDISC_DO = 0x2
|
||||||
IP_PMTUDISC_DONT = 0x0
|
IP_PMTUDISC_DONT = 0x0
|
||||||
|
IP_PMTUDISC_INTERFACE = 0x4
|
||||||
|
IP_PMTUDISC_OMIT = 0x5
|
||||||
IP_PMTUDISC_PROBE = 0x3
|
IP_PMTUDISC_PROBE = 0x3
|
||||||
IP_PMTUDISC_WANT = 0x1
|
IP_PMTUDISC_WANT = 0x1
|
||||||
IP_RECVERR = 0xb
|
IP_RECVERR = 0xb
|
||||||
@@ -669,6 +754,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
@@ -688,6 +814,7 @@ const (
|
|||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
MADV_DONTFORK = 0xa
|
MADV_DONTFORK = 0xa
|
||||||
MADV_DONTNEED = 0x4
|
MADV_DONTNEED = 0x4
|
||||||
|
MADV_FREE = 0x8
|
||||||
MADV_HUGEPAGE = 0xe
|
MADV_HUGEPAGE = 0xe
|
||||||
MADV_HWPOISON = 0x64
|
MADV_HWPOISON = 0x64
|
||||||
MADV_MERGEABLE = 0xc
|
MADV_MERGEABLE = 0xc
|
||||||
@@ -718,9 +845,11 @@ const (
|
|||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MCL_ONFAULT = 0x4
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
MSG_CTRUNC = 0x8
|
MSG_CTRUNC = 0x8
|
||||||
@@ -744,10 +873,12 @@ const (
|
|||||||
MS_ACTIVE = 0x40000000
|
MS_ACTIVE = 0x40000000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_BIND = 0x1000
|
MS_BIND = 0x1000
|
||||||
|
MS_BORN = 0x20000000
|
||||||
MS_DIRSYNC = 0x80
|
MS_DIRSYNC = 0x80
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_I_VERSION = 0x800000
|
MS_I_VERSION = 0x800000
|
||||||
MS_KERNMOUNT = 0x400000
|
MS_KERNMOUNT = 0x400000
|
||||||
|
MS_LAZYTIME = 0x2000000
|
||||||
MS_MANDLOCK = 0x40
|
MS_MANDLOCK = 0x40
|
||||||
MS_MGC_MSK = 0xffff0000
|
MS_MGC_MSK = 0xffff0000
|
||||||
MS_MGC_VAL = 0xc0ed0000
|
MS_MGC_VAL = 0xc0ed0000
|
||||||
@@ -756,6 +887,8 @@ const (
|
|||||||
MS_NODEV = 0x4
|
MS_NODEV = 0x4
|
||||||
MS_NODIRATIME = 0x800
|
MS_NODIRATIME = 0x800
|
||||||
MS_NOEXEC = 0x8
|
MS_NOEXEC = 0x8
|
||||||
|
MS_NOREMOTELOCK = 0x8000000
|
||||||
|
MS_NOSEC = 0x10000000
|
||||||
MS_NOSUID = 0x2
|
MS_NOSUID = 0x2
|
||||||
MS_NOUSER = -0x80000000
|
MS_NOUSER = -0x80000000
|
||||||
MS_POSIXACL = 0x10000
|
MS_POSIXACL = 0x10000
|
||||||
@@ -764,7 +897,7 @@ const (
|
|||||||
MS_REC = 0x4000
|
MS_REC = 0x4000
|
||||||
MS_RELATIME = 0x200000
|
MS_RELATIME = 0x200000
|
||||||
MS_REMOUNT = 0x20
|
MS_REMOUNT = 0x20
|
||||||
MS_RMT_MASK = 0x800051
|
MS_RMT_MASK = 0x2800051
|
||||||
MS_SHARED = 0x100000
|
MS_SHARED = 0x100000
|
||||||
MS_SILENT = 0x8000
|
MS_SILENT = 0x8000
|
||||||
MS_SLAVE = 0x80000
|
MS_SLAVE = 0x80000
|
||||||
@@ -772,10 +905,12 @@ const (
|
|||||||
MS_SYNC = 0x4
|
MS_SYNC = 0x4
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
|
MS_VERBOSE = 0x8000
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
NETLINK_CAP_ACK = 0xa
|
||||||
NETLINK_CONNECTOR = 0xb
|
NETLINK_CONNECTOR = 0xb
|
||||||
NETLINK_CRYPTO = 0x15
|
NETLINK_CRYPTO = 0x15
|
||||||
NETLINK_DNRTMSG = 0xe
|
NETLINK_DNRTMSG = 0xe
|
||||||
@@ -788,6 +923,8 @@ const (
|
|||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
NETLINK_KOBJECT_UEVENT = 0xf
|
NETLINK_KOBJECT_UEVENT = 0xf
|
||||||
|
NETLINK_LISTEN_ALL_NSID = 0x8
|
||||||
|
NETLINK_LIST_MEMBERSHIPS = 0x9
|
||||||
NETLINK_NETFILTER = 0xc
|
NETLINK_NETFILTER = 0xc
|
||||||
NETLINK_NFLOG = 0x5
|
NETLINK_NFLOG = 0x5
|
||||||
NETLINK_NO_ENOBUFS = 0x5
|
NETLINK_NO_ENOBUFS = 0x5
|
||||||
@@ -821,6 +958,7 @@ const (
|
|||||||
NLM_F_ATOMIC = 0x400
|
NLM_F_ATOMIC = 0x400
|
||||||
NLM_F_CREATE = 0x400
|
NLM_F_CREATE = 0x400
|
||||||
NLM_F_DUMP = 0x300
|
NLM_F_DUMP = 0x300
|
||||||
|
NLM_F_DUMP_FILTERED = 0x20
|
||||||
NLM_F_DUMP_INTR = 0x10
|
NLM_F_DUMP_INTR = 0x10
|
||||||
NLM_F_ECHO = 0x8
|
NLM_F_ECHO = 0x8
|
||||||
NLM_F_EXCL = 0x200
|
NLM_F_EXCL = 0x200
|
||||||
@@ -859,7 +997,7 @@ const (
|
|||||||
O_RDWR = 0x2
|
O_RDWR = 0x2
|
||||||
O_RSYNC = 0x101000
|
O_RSYNC = 0x101000
|
||||||
O_SYNC = 0x101000
|
O_SYNC = 0x101000
|
||||||
O_TMPFILE = 0x410000
|
O_TMPFILE = 0x404000
|
||||||
O_TRUNC = 0x200
|
O_TRUNC = 0x200
|
||||||
O_WRONLY = 0x1
|
O_WRONLY = 0x1
|
||||||
PACKET_ADD_MEMBERSHIP = 0x1
|
PACKET_ADD_MEMBERSHIP = 0x1
|
||||||
@@ -868,16 +1006,21 @@ const (
|
|||||||
PACKET_COPY_THRESH = 0x7
|
PACKET_COPY_THRESH = 0x7
|
||||||
PACKET_DROP_MEMBERSHIP = 0x2
|
PACKET_DROP_MEMBERSHIP = 0x2
|
||||||
PACKET_FANOUT = 0x12
|
PACKET_FANOUT = 0x12
|
||||||
|
PACKET_FANOUT_CBPF = 0x6
|
||||||
PACKET_FANOUT_CPU = 0x2
|
PACKET_FANOUT_CPU = 0x2
|
||||||
|
PACKET_FANOUT_DATA = 0x16
|
||||||
|
PACKET_FANOUT_EBPF = 0x7
|
||||||
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
|
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
|
||||||
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
|
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
|
||||||
PACKET_FANOUT_HASH = 0x0
|
PACKET_FANOUT_HASH = 0x0
|
||||||
PACKET_FANOUT_LB = 0x1
|
PACKET_FANOUT_LB = 0x1
|
||||||
|
PACKET_FANOUT_QM = 0x5
|
||||||
PACKET_FANOUT_RND = 0x4
|
PACKET_FANOUT_RND = 0x4
|
||||||
PACKET_FANOUT_ROLLOVER = 0x3
|
PACKET_FANOUT_ROLLOVER = 0x3
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
PACKET_MR_ALLMULTI = 0x2
|
PACKET_MR_ALLMULTI = 0x2
|
||||||
@@ -888,14 +1031,17 @@ const (
|
|||||||
PACKET_ORIGDEV = 0x9
|
PACKET_ORIGDEV = 0x9
|
||||||
PACKET_OTHERHOST = 0x3
|
PACKET_OTHERHOST = 0x3
|
||||||
PACKET_OUTGOING = 0x4
|
PACKET_OUTGOING = 0x4
|
||||||
|
PACKET_QDISC_BYPASS = 0x14
|
||||||
PACKET_RECV_OUTPUT = 0x3
|
PACKET_RECV_OUTPUT = 0x3
|
||||||
PACKET_RESERVE = 0xc
|
PACKET_RESERVE = 0xc
|
||||||
|
PACKET_ROLLOVER_STATS = 0x15
|
||||||
PACKET_RX_RING = 0x5
|
PACKET_RX_RING = 0x5
|
||||||
PACKET_STATISTICS = 0x6
|
PACKET_STATISTICS = 0x6
|
||||||
PACKET_TIMESTAMP = 0x11
|
PACKET_TIMESTAMP = 0x11
|
||||||
PACKET_TX_HAS_OFF = 0x13
|
PACKET_TX_HAS_OFF = 0x13
|
||||||
PACKET_TX_RING = 0xd
|
PACKET_TX_RING = 0xd
|
||||||
PACKET_TX_TIMESTAMP = 0x10
|
PACKET_TX_TIMESTAMP = 0x10
|
||||||
|
PACKET_USER = 0x6
|
||||||
PACKET_VERSION = 0xa
|
PACKET_VERSION = 0xa
|
||||||
PACKET_VNET_HDR = 0xf
|
PACKET_VNET_HDR = 0xf
|
||||||
PARENB = 0x100
|
PARENB = 0x100
|
||||||
@@ -910,6 +1056,16 @@ const (
|
|||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
PARODD = 0x200
|
PARODD = 0x200
|
||||||
PENDIN = 0x4000
|
PENDIN = 0x4000
|
||||||
|
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||||
|
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||||
|
PERF_EVENT_IOC_ID = 0x80082407
|
||||||
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||||
|
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||||
|
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||||
|
PERF_EVENT_IOC_RESET = 0x2403
|
||||||
|
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||||
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -921,6 +1077,11 @@ const (
|
|||||||
PROT_WRITE = 0x2
|
PROT_WRITE = 0x2
|
||||||
PR_CAPBSET_DROP = 0x18
|
PR_CAPBSET_DROP = 0x18
|
||||||
PR_CAPBSET_READ = 0x17
|
PR_CAPBSET_READ = 0x17
|
||||||
|
PR_CAP_AMBIENT = 0x2f
|
||||||
|
PR_CAP_AMBIENT_CLEAR_ALL = 0x4
|
||||||
|
PR_CAP_AMBIENT_IS_SET = 0x1
|
||||||
|
PR_CAP_AMBIENT_LOWER = 0x3
|
||||||
|
PR_CAP_AMBIENT_RAISE = 0x2
|
||||||
PR_ENDIAN_BIG = 0x0
|
PR_ENDIAN_BIG = 0x0
|
||||||
PR_ENDIAN_LITTLE = 0x1
|
PR_ENDIAN_LITTLE = 0x1
|
||||||
PR_ENDIAN_PPC_LITTLE = 0x2
|
PR_ENDIAN_PPC_LITTLE = 0x2
|
||||||
@@ -936,17 +1097,21 @@ const (
|
|||||||
PR_FP_EXC_RES = 0x80000
|
PR_FP_EXC_RES = 0x80000
|
||||||
PR_FP_EXC_SW_ENABLE = 0x80
|
PR_FP_EXC_SW_ENABLE = 0x80
|
||||||
PR_FP_EXC_UND = 0x40000
|
PR_FP_EXC_UND = 0x40000
|
||||||
|
PR_FP_MODE_FR = 0x1
|
||||||
|
PR_FP_MODE_FRE = 0x2
|
||||||
PR_GET_CHILD_SUBREAPER = 0x25
|
PR_GET_CHILD_SUBREAPER = 0x25
|
||||||
PR_GET_DUMPABLE = 0x3
|
PR_GET_DUMPABLE = 0x3
|
||||||
PR_GET_ENDIAN = 0x13
|
PR_GET_ENDIAN = 0x13
|
||||||
PR_GET_FPEMU = 0x9
|
PR_GET_FPEMU = 0x9
|
||||||
PR_GET_FPEXC = 0xb
|
PR_GET_FPEXC = 0xb
|
||||||
|
PR_GET_FP_MODE = 0x2e
|
||||||
PR_GET_KEEPCAPS = 0x7
|
PR_GET_KEEPCAPS = 0x7
|
||||||
PR_GET_NAME = 0x10
|
PR_GET_NAME = 0x10
|
||||||
PR_GET_NO_NEW_PRIVS = 0x27
|
PR_GET_NO_NEW_PRIVS = 0x27
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
PR_GET_TIMING = 0xd
|
PR_GET_TIMING = 0xd
|
||||||
@@ -959,11 +1124,14 @@ const (
|
|||||||
PR_MCE_KILL_GET = 0x22
|
PR_MCE_KILL_GET = 0x22
|
||||||
PR_MCE_KILL_LATE = 0x0
|
PR_MCE_KILL_LATE = 0x0
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
PR_SET_FPEMU = 0xa
|
PR_SET_FPEMU = 0xa
|
||||||
PR_SET_FPEXC = 0xc
|
PR_SET_FPEXC = 0xc
|
||||||
|
PR_SET_FP_MODE = 0x2d
|
||||||
PR_SET_KEEPCAPS = 0x8
|
PR_SET_KEEPCAPS = 0x8
|
||||||
PR_SET_MM = 0x23
|
PR_SET_MM = 0x23
|
||||||
PR_SET_MM_ARG_END = 0x9
|
PR_SET_MM_ARG_END = 0x9
|
||||||
@@ -975,6 +1143,8 @@ const (
|
|||||||
PR_SET_MM_ENV_END = 0xb
|
PR_SET_MM_ENV_END = 0xb
|
||||||
PR_SET_MM_ENV_START = 0xa
|
PR_SET_MM_ENV_START = 0xa
|
||||||
PR_SET_MM_EXE_FILE = 0xd
|
PR_SET_MM_EXE_FILE = 0xd
|
||||||
|
PR_SET_MM_MAP = 0xe
|
||||||
|
PR_SET_MM_MAP_SIZE = 0xf
|
||||||
PR_SET_MM_START_BRK = 0x6
|
PR_SET_MM_START_BRK = 0x6
|
||||||
PR_SET_MM_START_CODE = 0x1
|
PR_SET_MM_START_CODE = 0x1
|
||||||
PR_SET_MM_START_DATA = 0x3
|
PR_SET_MM_START_DATA = 0x3
|
||||||
@@ -986,6 +1156,7 @@ const (
|
|||||||
PR_SET_PTRACER_ANY = -0x1
|
PR_SET_PTRACER_ANY = -0x1
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
@@ -1018,7 +1189,8 @@ const (
|
|||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LISTEN = 0x4208
|
PTRACE_LISTEN = 0x4208
|
||||||
PTRACE_O_EXITKILL = 0x100000
|
PTRACE_O_EXITKILL = 0x100000
|
||||||
PTRACE_O_MASK = 0x1000ff
|
PTRACE_O_MASK = 0x3000ff
|
||||||
|
PTRACE_O_SUSPEND_SECCOMP = 0x200000
|
||||||
PTRACE_O_TRACECLONE = 0x8
|
PTRACE_O_TRACECLONE = 0x8
|
||||||
PTRACE_O_TRACEEXEC = 0x10
|
PTRACE_O_TRACEEXEC = 0x10
|
||||||
PTRACE_O_TRACEEXIT = 0x40
|
PTRACE_O_TRACEEXIT = 0x40
|
||||||
@@ -1035,6 +1207,7 @@ const (
|
|||||||
PTRACE_POKEDATA = 0x5
|
PTRACE_POKEDATA = 0x5
|
||||||
PTRACE_POKETEXT = 0x4
|
PTRACE_POKETEXT = 0x4
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETOPTIONS = 0x4200
|
PTRACE_SETOPTIONS = 0x4200
|
||||||
PTRACE_SETREGS = 0xd
|
PTRACE_SETREGS = 0xd
|
||||||
@@ -1049,21 +1222,32 @@ const (
|
|||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_LOCKS = 0xa
|
||||||
|
RLIMIT_MEMLOCK = 0x8
|
||||||
|
RLIMIT_MSGQUEUE = 0xc
|
||||||
|
RLIMIT_NICE = 0xd
|
||||||
RLIMIT_NOFILE = 0x7
|
RLIMIT_NOFILE = 0x7
|
||||||
|
RLIMIT_NPROC = 0x6
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
|
RLIMIT_RTPRIO = 0xe
|
||||||
|
RLIMIT_RTTIME = 0xf
|
||||||
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = -0x1
|
RLIM_INFINITY = -0x1
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
RTAX_FEATURES = 0xc
|
RTAX_FEATURES = 0xc
|
||||||
RTAX_FEATURE_ALLFRAG = 0x8
|
RTAX_FEATURE_ALLFRAG = 0x8
|
||||||
RTAX_FEATURE_ECN = 0x1
|
RTAX_FEATURE_ECN = 0x1
|
||||||
|
RTAX_FEATURE_MASK = 0xf
|
||||||
RTAX_FEATURE_SACK = 0x2
|
RTAX_FEATURE_SACK = 0x2
|
||||||
RTAX_FEATURE_TIMESTAMP = 0x4
|
RTAX_FEATURE_TIMESTAMP = 0x4
|
||||||
RTAX_HOPLIMIT = 0xa
|
RTAX_HOPLIMIT = 0xa
|
||||||
RTAX_INITCWND = 0xb
|
RTAX_INITCWND = 0xb
|
||||||
RTAX_INITRWND = 0xe
|
RTAX_INITRWND = 0xe
|
||||||
RTAX_LOCK = 0x1
|
RTAX_LOCK = 0x1
|
||||||
RTAX_MAX = 0xf
|
RTAX_MAX = 0x10
|
||||||
RTAX_MTU = 0x2
|
RTAX_MTU = 0x2
|
||||||
RTAX_QUICKACK = 0xf
|
RTAX_QUICKACK = 0xf
|
||||||
RTAX_REORDERING = 0x9
|
RTAX_REORDERING = 0x9
|
||||||
@@ -1074,7 +1258,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x11
|
RTA_MAX = 0x19
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1118,6 +1302,7 @@ const (
|
|||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
RTM_DELRULE = 0x21
|
RTM_DELRULE = 0x21
|
||||||
@@ -1125,6 +1310,7 @@ const (
|
|||||||
RTM_DELTFILTER = 0x2d
|
RTM_DELTFILTER = 0x2d
|
||||||
RTM_F_CLONED = 0x200
|
RTM_F_CLONED = 0x200
|
||||||
RTM_F_EQUALIZE = 0x400
|
RTM_F_EQUALIZE = 0x400
|
||||||
|
RTM_F_LOOKUP_TABLE = 0x1000
|
||||||
RTM_F_NOTIFY = 0x100
|
RTM_F_NOTIFY = 0x100
|
||||||
RTM_F_PREFIX = 0x800
|
RTM_F_PREFIX = 0x800
|
||||||
RTM_GETACTION = 0x32
|
RTM_GETACTION = 0x32
|
||||||
@@ -1138,12 +1324,14 @@ const (
|
|||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
RTM_GETRULE = 0x22
|
RTM_GETRULE = 0x22
|
||||||
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x57
|
RTM_MAX = 0x5f
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
@@ -1153,22 +1341,28 @@ const (
|
|||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
RTM_NEWROUTE = 0x18
|
RTM_NEWROUTE = 0x18
|
||||||
RTM_NEWRULE = 0x20
|
RTM_NEWRULE = 0x20
|
||||||
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x12
|
RTM_NR_FAMILIES = 0x14
|
||||||
RTM_NR_MSGTYPES = 0x48
|
RTM_NR_MSGTYPES = 0x50
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
RTNH_ALIGNTO = 0x4
|
RTNH_ALIGNTO = 0x4
|
||||||
|
RTNH_COMPARE_MASK = 0x19
|
||||||
RTNH_F_DEAD = 0x1
|
RTNH_F_DEAD = 0x1
|
||||||
|
RTNH_F_LINKDOWN = 0x10
|
||||||
|
RTNH_F_OFFLOAD = 0x8
|
||||||
RTNH_F_ONLINK = 0x4
|
RTNH_F_ONLINK = 0x4
|
||||||
RTNH_F_PERVASIVE = 0x2
|
RTNH_F_PERVASIVE = 0x2
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
|
RTPROT_BABEL = 0x2a
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
@@ -1196,8 +1390,12 @@ const (
|
|||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x1d
|
SCM_TIMESTAMP = 0x1d
|
||||||
SCM_TIMESTAMPING = 0x25
|
SCM_TIMESTAMPING = 0x25
|
||||||
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1205,6 +1403,16 @@ const (
|
|||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
@@ -1212,7 +1420,9 @@ const (
|
|||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
@@ -1232,13 +1442,21 @@ const (
|
|||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x541b
|
||||||
|
SIOCOUTQ = 0x5411
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
@@ -1257,11 +1475,15 @@ const (
|
|||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
@@ -1269,30 +1491,52 @@ const (
|
|||||||
SOCK_SEQPACKET = 0x5
|
SOCK_SEQPACKET = 0x5
|
||||||
SOCK_STREAM = 0x1
|
SOCK_STREAM = 0x1
|
||||||
SOL_AAL = 0x109
|
SOL_AAL = 0x109
|
||||||
|
SOL_ALG = 0x117
|
||||||
SOL_ATM = 0x108
|
SOL_ATM = 0x108
|
||||||
|
SOL_CAIF = 0x116
|
||||||
|
SOL_CAN_BASE = 0x64
|
||||||
|
SOL_DCCP = 0x10d
|
||||||
SOL_DECNET = 0x105
|
SOL_DECNET = 0x105
|
||||||
SOL_ICMPV6 = 0x3a
|
SOL_ICMPV6 = 0x3a
|
||||||
SOL_IP = 0x0
|
SOL_IP = 0x0
|
||||||
SOL_IPV6 = 0x29
|
SOL_IPV6 = 0x29
|
||||||
SOL_IRDA = 0x10a
|
SOL_IRDA = 0x10a
|
||||||
|
SOL_IUCV = 0x115
|
||||||
|
SOL_KCM = 0x119
|
||||||
|
SOL_LLC = 0x10c
|
||||||
|
SOL_NETBEUI = 0x10b
|
||||||
|
SOL_NETLINK = 0x10e
|
||||||
|
SOL_NFC = 0x118
|
||||||
SOL_PACKET = 0x107
|
SOL_PACKET = 0x107
|
||||||
|
SOL_PNPIPE = 0x113
|
||||||
|
SOL_PPPOL2TP = 0x111
|
||||||
SOL_RAW = 0xff
|
SOL_RAW = 0xff
|
||||||
|
SOL_RDS = 0x114
|
||||||
|
SOL_RXRPC = 0x110
|
||||||
SOL_SOCKET = 0x1
|
SOL_SOCKET = 0x1
|
||||||
SOL_TCP = 0x6
|
SOL_TCP = 0x6
|
||||||
|
SOL_TIPC = 0x10f
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
|
SO_ATTACH_BPF = 0x32
|
||||||
SO_ATTACH_FILTER = 0x1a
|
SO_ATTACH_FILTER = 0x1a
|
||||||
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
SO_BUSY_POLL = 0x2e
|
SO_BUSY_POLL = 0x2e
|
||||||
|
SO_CNX_ADVICE = 0x35
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
|
SO_INCOMING_CPU = 0x31
|
||||||
SO_KEEPALIVE = 0x9
|
SO_KEEPALIVE = 0x9
|
||||||
SO_LINGER = 0xd
|
SO_LINGER = 0xd
|
||||||
SO_LOCK_FILTER = 0x2c
|
SO_LOCK_FILTER = 0x2c
|
||||||
@@ -1328,7 +1572,18 @@ const (
|
|||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
SO_VM_SOCKETS_BUFFER_SIZE = 0x0
|
||||||
|
SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6
|
||||||
|
SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7
|
||||||
|
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
|
||||||
|
SO_VM_SOCKETS_TRUSTED = 0x5
|
||||||
SO_WIFI_STATUS = 0x29
|
SO_WIFI_STATUS = 0x29
|
||||||
|
SPLICE_F_GIFT = 0x8
|
||||||
|
SPLICE_F_MORE = 0x4
|
||||||
|
SPLICE_F_MOVE = 0x1
|
||||||
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@@ -1373,6 +1628,7 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1397,11 +1653,15 @@ const (
|
|||||||
TCP_MSS_DEFAULT = 0x218
|
TCP_MSS_DEFAULT = 0x218
|
||||||
TCP_MSS_DESIRED = 0x4c4
|
TCP_MSS_DESIRED = 0x4c4
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
|
TCP_NOTSENT_LOWAT = 0x19
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
TCP_SAVED_SYN = 0x1c
|
||||||
|
TCP_SAVE_SYN = 0x1b
|
||||||
TCP_SYNCNT = 0x7
|
TCP_SYNCNT = 0x7
|
||||||
TCP_S_DATA_IN = 0x4
|
TCP_S_DATA_IN = 0x4
|
||||||
TCP_S_DATA_OUT = 0x8
|
TCP_S_DATA_OUT = 0x8
|
||||||
@@ -1501,7 +1761,9 @@ const (
|
|||||||
TUNGETFILTER = 0x801054db
|
TUNGETFILTER = 0x801054db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
TUNGETSNDBUF = 0x800454d3
|
TUNGETSNDBUF = 0x800454d3
|
||||||
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
|
TUNGETVNETLE = 0x800454dd
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
TUNSETIFF = 0x400454ca
|
TUNSETIFF = 0x400454ca
|
||||||
@@ -1514,7 +1776,10 @@ const (
|
|||||||
TUNSETQUEUE = 0x400454d9
|
TUNSETQUEUE = 0x400454d9
|
||||||
TUNSETSNDBUF = 0x400454d4
|
TUNSETSNDBUF = 0x400454d4
|
||||||
TUNSETTXFILTER = 0x400454d1
|
TUNSETTXFILTER = 0x400454d1
|
||||||
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x4
|
VEOF = 0x4
|
||||||
VEOL = 0xb
|
VEOL = 0xb
|
||||||
@@ -1523,7 +1788,13 @@ const (
|
|||||||
VINTR = 0x0
|
VINTR = 0x0
|
||||||
VKILL = 0x3
|
VKILL = 0x3
|
||||||
VLNEXT = 0xf
|
VLNEXT = 0xf
|
||||||
|
VMADDR_CID_ANY = 0xffffffff
|
||||||
|
VMADDR_CID_HOST = 0x2
|
||||||
|
VMADDR_CID_HYPERVISOR = 0x0
|
||||||
|
VMADDR_CID_RESERVED = 0x1
|
||||||
|
VMADDR_PORT_ANY = 0xffffffff
|
||||||
VMIN = 0x6
|
VMIN = 0x6
|
||||||
|
VM_SOCKETS_INVALID_VERSION = 0xffffffff
|
||||||
VQUIT = 0x1
|
VQUIT = 0x1
|
||||||
VREPRINT = 0xc
|
VREPRINT = 0xc
|
||||||
VSTART = 0x8
|
VSTART = 0x8
|
||||||
@@ -1545,6 +1816,8 @@ const (
|
|||||||
WORDSIZE = 0x40
|
WORDSIZE = 0x40
|
||||||
WSTOPPED = 0x2
|
WSTOPPED = 0x2
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x1
|
||||||
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
)
|
)
|
||||||
|
|||||||
2189
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
Normal file
2189
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
290
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
290
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
@@ -1,10 +1,10 @@
|
|||||||
// mkerrors.sh
|
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build mips64,linux
|
// +build mips64,linux
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Created by cgo -godefs - DO NOT EDIT
|
||||||
// cgo -godefs -- _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -32,10 +32,11 @@ const (
|
|||||||
AF_IRDA = 0x17
|
AF_IRDA = 0x17
|
||||||
AF_ISDN = 0x22
|
AF_ISDN = 0x22
|
||||||
AF_IUCV = 0x20
|
AF_IUCV = 0x20
|
||||||
|
AF_KCM = 0x29
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x29
|
AF_MAX = 0x2b
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -44,6 +45,7 @@ const (
|
|||||||
AF_PACKET = 0x11
|
AF_PACKET = 0x11
|
||||||
AF_PHONET = 0x23
|
AF_PHONET = 0x23
|
||||||
AF_PPPOX = 0x18
|
AF_PPPOX = 0x18
|
||||||
|
AF_QIPCRTR = 0x2a
|
||||||
AF_RDS = 0x15
|
AF_RDS = 0x15
|
||||||
AF_ROSE = 0xb
|
AF_ROSE = 0xb
|
||||||
AF_ROUTE = 0x10
|
AF_ROUTE = 0x10
|
||||||
@@ -56,6 +58,13 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
ALG_OP_DECRYPT = 0x0
|
||||||
|
ALG_OP_ENCRYPT = 0x1
|
||||||
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
ALG_SET_AEAD_AUTHSIZE = 0x5
|
||||||
|
ALG_SET_IV = 0x2
|
||||||
|
ALG_SET_KEY = 0x1
|
||||||
|
ALG_SET_OP = 0x3
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
@@ -152,6 +161,23 @@ const (
|
|||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BLKBSZGET = 0x40081270
|
||||||
|
BLKBSZSET = 0x80081271
|
||||||
|
BLKFLSBUF = 0x20001261
|
||||||
|
BLKFRAGET = 0x20001265
|
||||||
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETSIZE = 0x20001260
|
||||||
|
BLKGETSIZE64 = 0x40081272
|
||||||
|
BLKPBSZGET = 0x2000127b
|
||||||
|
BLKRAGET = 0x20001263
|
||||||
|
BLKRASET = 0x20001262
|
||||||
|
BLKROGET = 0x2000125e
|
||||||
|
BLKROSET = 0x2000125d
|
||||||
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECTGET = 0x20001267
|
||||||
|
BLKSECTSET = 0x20001266
|
||||||
|
BLKSSZGET = 0x20001268
|
||||||
|
BOTHER = 0x1000
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
@@ -197,7 +223,33 @@ const (
|
|||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
BS0 = 0x0
|
||||||
|
BS1 = 0x2000
|
||||||
|
BSDLY = 0x2000
|
||||||
|
CAN_BCM = 0x2
|
||||||
|
CAN_EFF_FLAG = 0x80000000
|
||||||
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
CAN_EFF_MASK = 0x1fffffff
|
||||||
|
CAN_ERR_FLAG = 0x20000000
|
||||||
|
CAN_ERR_MASK = 0x1fffffff
|
||||||
|
CAN_INV_FILTER = 0x20000000
|
||||||
|
CAN_ISOTP = 0x6
|
||||||
|
CAN_MAX_DLC = 0x8
|
||||||
|
CAN_MAX_DLEN = 0x8
|
||||||
|
CAN_MCNET = 0x5
|
||||||
|
CAN_MTU = 0x10
|
||||||
|
CAN_NPROTO = 0x7
|
||||||
|
CAN_RAW = 0x1
|
||||||
|
CAN_RAW_FILTER_MAX = 0x200
|
||||||
|
CAN_RTR_FLAG = 0x40000000
|
||||||
|
CAN_SFF_ID_BITS = 0xb
|
||||||
|
CAN_SFF_MASK = 0x7ff
|
||||||
|
CAN_TP16 = 0x3
|
||||||
|
CAN_TP20 = 0x4
|
||||||
|
CBAUD = 0x100f
|
||||||
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
CLOCK_BOOTTIME_ALARM = 0x9
|
CLOCK_BOOTTIME_ALARM = 0x9
|
||||||
@@ -238,7 +290,14 @@ const (
|
|||||||
CLONE_UNTRACED = 0x800000
|
CLONE_UNTRACED = 0x800000
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
|
CMSPAR = 0x40000000
|
||||||
|
CR0 = 0x0
|
||||||
|
CR1 = 0x200
|
||||||
|
CR2 = 0x400
|
||||||
|
CR3 = 0x600
|
||||||
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
|
CRTSCTS = 0x80000000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -266,6 +325,9 @@ const (
|
|||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
EFD_CLOEXEC = 0x80000
|
||||||
|
EFD_NONBLOCK = 0x80
|
||||||
|
EFD_SEMAPHORE = 0x1
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
@@ -274,6 +336,7 @@ const (
|
|||||||
ENCODING_NRZI = 0x2
|
ENCODING_NRZI = 0x2
|
||||||
EPOLLERR = 0x8
|
EPOLLERR = 0x8
|
||||||
EPOLLET = 0x80000000
|
EPOLLET = 0x80000000
|
||||||
|
EPOLLEXCLUSIVE = 0x10000000
|
||||||
EPOLLHUP = 0x10
|
EPOLLHUP = 0x10
|
||||||
EPOLLIN = 0x1
|
EPOLLIN = 0x1
|
||||||
EPOLLMSG = 0x400
|
EPOLLMSG = 0x400
|
||||||
@@ -328,6 +391,7 @@ const (
|
|||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
ETH_P_HSR = 0x892f
|
||||||
ETH_P_IEEE802154 = 0xf6
|
ETH_P_IEEE802154 = 0xf6
|
||||||
ETH_P_IEEEPUP = 0xa00
|
ETH_P_IEEEPUP = 0xa00
|
||||||
ETH_P_IEEEPUPAT = 0xa01
|
ETH_P_IEEEPUPAT = 0xa01
|
||||||
@@ -340,10 +404,12 @@ const (
|
|||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
ETH_P_MACSEC = 0x88e5
|
||||||
ETH_P_MOBITEX = 0x15
|
ETH_P_MOBITEX = 0x15
|
||||||
ETH_P_MPLS_MC = 0x8848
|
ETH_P_MPLS_MC = 0x8848
|
||||||
ETH_P_MPLS_UC = 0x8847
|
ETH_P_MPLS_UC = 0x8847
|
||||||
ETH_P_MVRP = 0x88f5
|
ETH_P_MVRP = 0x88f5
|
||||||
|
ETH_P_NCSI = 0x88f8
|
||||||
ETH_P_PAE = 0x888e
|
ETH_P_PAE = 0x888e
|
||||||
ETH_P_PAUSE = 0x8808
|
ETH_P_PAUSE = 0x8808
|
||||||
ETH_P_PHONET = 0xf5
|
ETH_P_PHONET = 0xf5
|
||||||
@@ -374,9 +440,37 @@ const (
|
|||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
FALLOC_FL_NO_HIDE_STALE = 0x4
|
||||||
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
|
FF0 = 0x0
|
||||||
|
FF1 = 0x8000
|
||||||
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CTS = 0x4
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
FS_KEY_DESCRIPTOR_SIZE = 0x8
|
||||||
|
FS_KEY_DESC_PREFIX = "fscrypt:"
|
||||||
|
FS_KEY_DESC_PREFIX_SIZE = 0x8
|
||||||
|
FS_MAX_KEY_SIZE = 0x40
|
||||||
|
FS_POLICY_FLAGS_PAD_16 = 0x2
|
||||||
|
FS_POLICY_FLAGS_PAD_32 = 0x3
|
||||||
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
F_EXLCK = 0x4
|
F_EXLCK = 0x4
|
||||||
@@ -413,7 +507,10 @@ const (
|
|||||||
F_ULOCK = 0x0
|
F_ULOCK = 0x0
|
||||||
F_UNLCK = 0x2
|
F_UNLCK = 0x2
|
||||||
F_WRLCK = 0x1
|
F_WRLCK = 0x1
|
||||||
|
GRND_NONBLOCK = 0x1
|
||||||
|
GRND_RANDOM = 0x2
|
||||||
HUPCL = 0x400
|
HUPCL = 0x400
|
||||||
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
ICMPV6_FILTER = 0x1
|
ICMPV6_FILTER = 0x1
|
||||||
ICRNL = 0x100
|
ICRNL = 0x100
|
||||||
@@ -527,6 +624,7 @@ const (
|
|||||||
IPPROTO_IPIP = 0x4
|
IPPROTO_IPIP = 0x4
|
||||||
IPPROTO_IPV6 = 0x29
|
IPPROTO_IPV6 = 0x29
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
|
IPPROTO_MPLS = 0x89
|
||||||
IPPROTO_MTP = 0x5c
|
IPPROTO_MTP = 0x5c
|
||||||
IPPROTO_NONE = 0x3b
|
IPPROTO_NONE = 0x3b
|
||||||
IPPROTO_PIM = 0x67
|
IPPROTO_PIM = 0x67
|
||||||
@@ -552,6 +650,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
IPV6_IPSEC_POLICY = 0x22
|
IPV6_IPSEC_POLICY = 0x22
|
||||||
@@ -595,6 +694,7 @@ const (
|
|||||||
IPV6_XFRM_POLICY = 0x23
|
IPV6_XFRM_POLICY = 0x23
|
||||||
IP_ADD_MEMBERSHIP = 0x23
|
IP_ADD_MEMBERSHIP = 0x23
|
||||||
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
||||||
|
IP_BIND_ADDRESS_NO_PORT = 0x18
|
||||||
IP_BLOCK_SOURCE = 0x26
|
IP_BLOCK_SOURCE = 0x26
|
||||||
IP_CHECKSUM = 0x17
|
IP_CHECKSUM = 0x17
|
||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
@@ -648,10 +748,52 @@ const (
|
|||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
@@ -671,6 +813,7 @@ const (
|
|||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
MADV_DONTFORK = 0xa
|
MADV_DONTFORK = 0xa
|
||||||
MADV_DONTNEED = 0x4
|
MADV_DONTNEED = 0x4
|
||||||
|
MADV_FREE = 0x8
|
||||||
MADV_HUGEPAGE = 0xe
|
MADV_HUGEPAGE = 0xe
|
||||||
MADV_HWPOISON = 0x64
|
MADV_HWPOISON = 0x64
|
||||||
MADV_MERGEABLE = 0xc
|
MADV_MERGEABLE = 0xc
|
||||||
@@ -702,9 +845,11 @@ const (
|
|||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MCL_ONFAULT = 0x4
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
MSG_CTRUNC = 0x8
|
MSG_CTRUNC = 0x8
|
||||||
@@ -728,6 +873,7 @@ const (
|
|||||||
MS_ACTIVE = 0x40000000
|
MS_ACTIVE = 0x40000000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_BIND = 0x1000
|
MS_BIND = 0x1000
|
||||||
|
MS_BORN = 0x20000000
|
||||||
MS_DIRSYNC = 0x80
|
MS_DIRSYNC = 0x80
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_I_VERSION = 0x800000
|
MS_I_VERSION = 0x800000
|
||||||
@@ -741,6 +887,8 @@ const (
|
|||||||
MS_NODEV = 0x4
|
MS_NODEV = 0x4
|
||||||
MS_NODIRATIME = 0x800
|
MS_NODIRATIME = 0x800
|
||||||
MS_NOEXEC = 0x8
|
MS_NOEXEC = 0x8
|
||||||
|
MS_NOREMOTELOCK = 0x8000000
|
||||||
|
MS_NOSEC = 0x10000000
|
||||||
MS_NOSUID = 0x2
|
MS_NOSUID = 0x2
|
||||||
MS_NOUSER = -0x80000000
|
MS_NOUSER = -0x80000000
|
||||||
MS_POSIXACL = 0x10000
|
MS_POSIXACL = 0x10000
|
||||||
@@ -757,6 +905,7 @@ const (
|
|||||||
MS_SYNC = 0x4
|
MS_SYNC = 0x4
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
|
MS_VERBOSE = 0x8000
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
@@ -790,10 +939,13 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NL0 = 0x0
|
||||||
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
NLA_F_NESTED = 0x8000
|
NLA_F_NESTED = 0x8000
|
||||||
NLA_F_NET_BYTEORDER = 0x4000
|
NLA_F_NET_BYTEORDER = 0x4000
|
||||||
NLA_HDRLEN = 0x4
|
NLA_HDRLEN = 0x4
|
||||||
|
NLDLY = 0x100
|
||||||
NLMSG_ALIGNTO = 0x4
|
NLMSG_ALIGNTO = 0x4
|
||||||
NLMSG_DONE = 0x3
|
NLMSG_DONE = 0x3
|
||||||
NLMSG_ERROR = 0x2
|
NLMSG_ERROR = 0x2
|
||||||
@@ -806,6 +958,7 @@ const (
|
|||||||
NLM_F_ATOMIC = 0x400
|
NLM_F_ATOMIC = 0x400
|
||||||
NLM_F_CREATE = 0x400
|
NLM_F_CREATE = 0x400
|
||||||
NLM_F_DUMP = 0x300
|
NLM_F_DUMP = 0x300
|
||||||
|
NLM_F_DUMP_FILTERED = 0x20
|
||||||
NLM_F_DUMP_INTR = 0x10
|
NLM_F_DUMP_INTR = 0x10
|
||||||
NLM_F_ECHO = 0x8
|
NLM_F_ECHO = 0x8
|
||||||
NLM_F_EXCL = 0x200
|
NLM_F_EXCL = 0x200
|
||||||
@@ -818,6 +971,7 @@ const (
|
|||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
OLCUC = 0x2
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
@@ -902,6 +1056,16 @@ const (
|
|||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
PARODD = 0x200
|
PARODD = 0x200
|
||||||
PENDIN = 0x4000
|
PENDIN = 0x4000
|
||||||
|
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||||
|
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||||
|
PERF_EVENT_IOC_ID = 0x40082407
|
||||||
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||||
|
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||||
|
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||||
|
PERF_EVENT_IOC_RESET = 0x20002403
|
||||||
|
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||||
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1052,6 +1216,7 @@ const (
|
|||||||
PTRACE_POKETEXT = 0x4
|
PTRACE_POKETEXT = 0x4
|
||||||
PTRACE_POKETEXT_3264 = 0xc2
|
PTRACE_POKETEXT_3264 = 0xc2
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
PTRACE_SETOPTIONS = 0x4200
|
PTRACE_SETOPTIONS = 0x4200
|
||||||
@@ -1069,7 +1234,16 @@ const (
|
|||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_LOCKS = 0xa
|
||||||
|
RLIMIT_MEMLOCK = 0x9
|
||||||
|
RLIMIT_MSGQUEUE = 0xc
|
||||||
|
RLIMIT_NICE = 0xd
|
||||||
RLIMIT_NOFILE = 0x5
|
RLIMIT_NOFILE = 0x5
|
||||||
|
RLIMIT_NPROC = 0x8
|
||||||
|
RLIMIT_RSS = 0x7
|
||||||
|
RLIMIT_RTPRIO = 0xe
|
||||||
|
RLIMIT_RTTIME = 0xf
|
||||||
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = -0x1
|
RLIM_INFINITY = -0x1
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
@@ -1096,7 +1270,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x16
|
RTA_MAX = 0x19
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1148,6 +1322,7 @@ const (
|
|||||||
RTM_DELTFILTER = 0x2d
|
RTM_DELTFILTER = 0x2d
|
||||||
RTM_F_CLONED = 0x200
|
RTM_F_CLONED = 0x200
|
||||||
RTM_F_EQUALIZE = 0x400
|
RTM_F_EQUALIZE = 0x400
|
||||||
|
RTM_F_LOOKUP_TABLE = 0x1000
|
||||||
RTM_F_NOTIFY = 0x100
|
RTM_F_NOTIFY = 0x100
|
||||||
RTM_F_PREFIX = 0x800
|
RTM_F_PREFIX = 0x800
|
||||||
RTM_GETACTION = 0x32
|
RTM_GETACTION = 0x32
|
||||||
@@ -1165,9 +1340,10 @@ const (
|
|||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
RTM_GETRULE = 0x22
|
RTM_GETRULE = 0x22
|
||||||
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x5b
|
RTM_MAX = 0x5f
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
@@ -1182,15 +1358,16 @@ const (
|
|||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
RTM_NEWROUTE = 0x18
|
RTM_NEWROUTE = 0x18
|
||||||
RTM_NEWRULE = 0x20
|
RTM_NEWRULE = 0x20
|
||||||
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x13
|
RTM_NR_FAMILIES = 0x14
|
||||||
RTM_NR_MSGTYPES = 0x4c
|
RTM_NR_MSGTYPES = 0x50
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
RTNH_ALIGNTO = 0x4
|
RTNH_ALIGNTO = 0x4
|
||||||
RTNH_COMPARE_MASK = 0x11
|
RTNH_COMPARE_MASK = 0x19
|
||||||
RTNH_F_DEAD = 0x1
|
RTNH_F_DEAD = 0x1
|
||||||
RTNH_F_LINKDOWN = 0x10
|
RTNH_F_LINKDOWN = 0x10
|
||||||
RTNH_F_OFFLOAD = 0x8
|
RTNH_F_OFFLOAD = 0x8
|
||||||
@@ -1225,8 +1402,12 @@ const (
|
|||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x1d
|
SCM_TIMESTAMP = 0x1d
|
||||||
SCM_TIMESTAMPING = 0x25
|
SCM_TIMESTAMPING = 0x25
|
||||||
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1234,6 +1415,16 @@ const (
|
|||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
@@ -1241,7 +1432,9 @@ const (
|
|||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
@@ -1261,13 +1454,21 @@ const (
|
|||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x467f
|
||||||
|
SIOCOUTQ = 0x7472
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
@@ -1286,11 +1487,15 @@ const (
|
|||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x80
|
SOCK_NONBLOCK = 0x80
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
@@ -1298,26 +1503,44 @@ const (
|
|||||||
SOCK_SEQPACKET = 0x5
|
SOCK_SEQPACKET = 0x5
|
||||||
SOCK_STREAM = 0x2
|
SOCK_STREAM = 0x2
|
||||||
SOL_AAL = 0x109
|
SOL_AAL = 0x109
|
||||||
|
SOL_ALG = 0x117
|
||||||
SOL_ATM = 0x108
|
SOL_ATM = 0x108
|
||||||
|
SOL_CAIF = 0x116
|
||||||
|
SOL_CAN_BASE = 0x64
|
||||||
|
SOL_DCCP = 0x10d
|
||||||
SOL_DECNET = 0x105
|
SOL_DECNET = 0x105
|
||||||
SOL_ICMPV6 = 0x3a
|
SOL_ICMPV6 = 0x3a
|
||||||
SOL_IP = 0x0
|
SOL_IP = 0x0
|
||||||
SOL_IPV6 = 0x29
|
SOL_IPV6 = 0x29
|
||||||
SOL_IRDA = 0x10a
|
SOL_IRDA = 0x10a
|
||||||
|
SOL_IUCV = 0x115
|
||||||
|
SOL_KCM = 0x119
|
||||||
|
SOL_LLC = 0x10c
|
||||||
|
SOL_NETBEUI = 0x10b
|
||||||
|
SOL_NETLINK = 0x10e
|
||||||
|
SOL_NFC = 0x118
|
||||||
SOL_PACKET = 0x107
|
SOL_PACKET = 0x107
|
||||||
|
SOL_PNPIPE = 0x113
|
||||||
|
SOL_PPPOL2TP = 0x111
|
||||||
SOL_RAW = 0xff
|
SOL_RAW = 0xff
|
||||||
|
SOL_RDS = 0x114
|
||||||
|
SOL_RXRPC = 0x110
|
||||||
SOL_SOCKET = 0xffff
|
SOL_SOCKET = 0xffff
|
||||||
SOL_TCP = 0x6
|
SOL_TCP = 0x6
|
||||||
|
SOL_TIPC = 0x10f
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
SO_ATTACH_FILTER = 0x1a
|
SO_ATTACH_FILTER = 0x1a
|
||||||
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
SO_BUSY_POLL = 0x2e
|
SO_BUSY_POLL = 0x2e
|
||||||
|
SO_CNX_ADVICE = 0x35
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
@@ -1362,7 +1585,18 @@ const (
|
|||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
SO_VM_SOCKETS_BUFFER_SIZE = 0x0
|
||||||
|
SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6
|
||||||
|
SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7
|
||||||
|
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
|
||||||
|
SO_VM_SOCKETS_TRUSTED = 0x5
|
||||||
SO_WIFI_STATUS = 0x29
|
SO_WIFI_STATUS = 0x29
|
||||||
|
SPLICE_F_GIFT = 0x8
|
||||||
|
SPLICE_F_MORE = 0x4
|
||||||
|
SPLICE_F_MOVE = 0x1
|
||||||
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@@ -1390,10 +1624,23 @@ const (
|
|||||||
S_IXGRP = 0x8
|
S_IXGRP = 0x8
|
||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB1 = 0x800
|
||||||
|
TAB2 = 0x1000
|
||||||
|
TAB3 = 0x1800
|
||||||
|
TABDLY = 0x1800
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
|
TCGETA = 0x5401
|
||||||
|
TCGETS = 0x540d
|
||||||
|
TCGETS2 = 0x4030542a
|
||||||
TCIFLUSH = 0x0
|
TCIFLUSH = 0x0
|
||||||
|
TCIOFF = 0x2
|
||||||
TCIOFLUSH = 0x2
|
TCIOFLUSH = 0x2
|
||||||
|
TCION = 0x3
|
||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
|
TCOOFF = 0x0
|
||||||
|
TCOON = 0x1
|
||||||
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1418,11 +1665,15 @@ const (
|
|||||||
TCP_MSS_DEFAULT = 0x218
|
TCP_MSS_DEFAULT = 0x218
|
||||||
TCP_MSS_DESIRED = 0x4c4
|
TCP_MSS_DESIRED = 0x4c4
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
|
TCP_NOTSENT_LOWAT = 0x19
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
TCP_SAVED_SYN = 0x1c
|
||||||
|
TCP_SAVE_SYN = 0x1b
|
||||||
TCP_SYNCNT = 0x7
|
TCP_SYNCNT = 0x7
|
||||||
TCP_S_DATA_IN = 0x4
|
TCP_S_DATA_IN = 0x4
|
||||||
TCP_S_DATA_OUT = 0x8
|
TCP_S_DATA_OUT = 0x8
|
||||||
@@ -1433,6 +1684,16 @@ const (
|
|||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
|
TCSBRKP = 0x5486
|
||||||
|
TCSETA = 0x5402
|
||||||
|
TCSETAF = 0x5404
|
||||||
|
TCSETAW = 0x5403
|
||||||
|
TCSETS = 0x540e
|
||||||
|
TCSETS2 = 0x8030542b
|
||||||
|
TCSETSF = 0x5410
|
||||||
|
TCSETSF2 = 0x8030542d
|
||||||
|
TCSETSW = 0x540f
|
||||||
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
@@ -1532,6 +1793,7 @@ const (
|
|||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x10
|
VEOF = 0x10
|
||||||
VEOL = 0x11
|
VEOL = 0x11
|
||||||
@@ -1540,7 +1802,13 @@ const (
|
|||||||
VINTR = 0x0
|
VINTR = 0x0
|
||||||
VKILL = 0x3
|
VKILL = 0x3
|
||||||
VLNEXT = 0xf
|
VLNEXT = 0xf
|
||||||
|
VMADDR_CID_ANY = 0xffffffff
|
||||||
|
VMADDR_CID_HOST = 0x2
|
||||||
|
VMADDR_CID_HYPERVISOR = 0x0
|
||||||
|
VMADDR_CID_RESERVED = 0x1
|
||||||
|
VMADDR_PORT_ANY = 0xffffffff
|
||||||
VMIN = 0x4
|
VMIN = 0x4
|
||||||
|
VM_SOCKETS_INVALID_VERSION = 0xffffffff
|
||||||
VQUIT = 0x1
|
VQUIT = 0x1
|
||||||
VREPRINT = 0xc
|
VREPRINT = 0xc
|
||||||
VSTART = 0x8
|
VSTART = 0x8
|
||||||
@@ -1563,6 +1831,10 @@ const (
|
|||||||
WORDSIZE = 0x40
|
WORDSIZE = 0x40
|
||||||
WSTOPPED = 0x2
|
WSTOPPED = 0x2
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x1
|
||||||
|
XATTR_REPLACE = 0x2
|
||||||
|
XCASE = 0x4
|
||||||
|
XTABS = 0x1800
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
|||||||
290
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
290
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
@@ -1,10 +1,10 @@
|
|||||||
// mkerrors.sh
|
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build mips64le,linux
|
// +build mips64le,linux
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Created by cgo -godefs - DO NOT EDIT
|
||||||
// cgo -godefs -- _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -32,10 +32,11 @@ const (
|
|||||||
AF_IRDA = 0x17
|
AF_IRDA = 0x17
|
||||||
AF_ISDN = 0x22
|
AF_ISDN = 0x22
|
||||||
AF_IUCV = 0x20
|
AF_IUCV = 0x20
|
||||||
|
AF_KCM = 0x29
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x29
|
AF_MAX = 0x2b
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -44,6 +45,7 @@ const (
|
|||||||
AF_PACKET = 0x11
|
AF_PACKET = 0x11
|
||||||
AF_PHONET = 0x23
|
AF_PHONET = 0x23
|
||||||
AF_PPPOX = 0x18
|
AF_PPPOX = 0x18
|
||||||
|
AF_QIPCRTR = 0x2a
|
||||||
AF_RDS = 0x15
|
AF_RDS = 0x15
|
||||||
AF_ROSE = 0xb
|
AF_ROSE = 0xb
|
||||||
AF_ROUTE = 0x10
|
AF_ROUTE = 0x10
|
||||||
@@ -56,6 +58,13 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
ALG_OP_DECRYPT = 0x0
|
||||||
|
ALG_OP_ENCRYPT = 0x1
|
||||||
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
ALG_SET_AEAD_AUTHSIZE = 0x5
|
||||||
|
ALG_SET_IV = 0x2
|
||||||
|
ALG_SET_KEY = 0x1
|
||||||
|
ALG_SET_OP = 0x3
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
@@ -152,6 +161,23 @@ const (
|
|||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BLKBSZGET = 0x40081270
|
||||||
|
BLKBSZSET = 0x80081271
|
||||||
|
BLKFLSBUF = 0x20001261
|
||||||
|
BLKFRAGET = 0x20001265
|
||||||
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETSIZE = 0x20001260
|
||||||
|
BLKGETSIZE64 = 0x40081272
|
||||||
|
BLKPBSZGET = 0x2000127b
|
||||||
|
BLKRAGET = 0x20001263
|
||||||
|
BLKRASET = 0x20001262
|
||||||
|
BLKROGET = 0x2000125e
|
||||||
|
BLKROSET = 0x2000125d
|
||||||
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECTGET = 0x20001267
|
||||||
|
BLKSECTSET = 0x20001266
|
||||||
|
BLKSSZGET = 0x20001268
|
||||||
|
BOTHER = 0x1000
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
@@ -197,7 +223,33 @@ const (
|
|||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
BS0 = 0x0
|
||||||
|
BS1 = 0x2000
|
||||||
|
BSDLY = 0x2000
|
||||||
|
CAN_BCM = 0x2
|
||||||
|
CAN_EFF_FLAG = 0x80000000
|
||||||
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
CAN_EFF_MASK = 0x1fffffff
|
||||||
|
CAN_ERR_FLAG = 0x20000000
|
||||||
|
CAN_ERR_MASK = 0x1fffffff
|
||||||
|
CAN_INV_FILTER = 0x20000000
|
||||||
|
CAN_ISOTP = 0x6
|
||||||
|
CAN_MAX_DLC = 0x8
|
||||||
|
CAN_MAX_DLEN = 0x8
|
||||||
|
CAN_MCNET = 0x5
|
||||||
|
CAN_MTU = 0x10
|
||||||
|
CAN_NPROTO = 0x7
|
||||||
|
CAN_RAW = 0x1
|
||||||
|
CAN_RAW_FILTER_MAX = 0x200
|
||||||
|
CAN_RTR_FLAG = 0x40000000
|
||||||
|
CAN_SFF_ID_BITS = 0xb
|
||||||
|
CAN_SFF_MASK = 0x7ff
|
||||||
|
CAN_TP16 = 0x3
|
||||||
|
CAN_TP20 = 0x4
|
||||||
|
CBAUD = 0x100f
|
||||||
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
CLOCK_BOOTTIME_ALARM = 0x9
|
CLOCK_BOOTTIME_ALARM = 0x9
|
||||||
@@ -238,7 +290,14 @@ const (
|
|||||||
CLONE_UNTRACED = 0x800000
|
CLONE_UNTRACED = 0x800000
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
|
CMSPAR = 0x40000000
|
||||||
|
CR0 = 0x0
|
||||||
|
CR1 = 0x200
|
||||||
|
CR2 = 0x400
|
||||||
|
CR3 = 0x600
|
||||||
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
|
CRTSCTS = 0x80000000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -266,6 +325,9 @@ const (
|
|||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
EFD_CLOEXEC = 0x80000
|
||||||
|
EFD_NONBLOCK = 0x80
|
||||||
|
EFD_SEMAPHORE = 0x1
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
@@ -274,6 +336,7 @@ const (
|
|||||||
ENCODING_NRZI = 0x2
|
ENCODING_NRZI = 0x2
|
||||||
EPOLLERR = 0x8
|
EPOLLERR = 0x8
|
||||||
EPOLLET = 0x80000000
|
EPOLLET = 0x80000000
|
||||||
|
EPOLLEXCLUSIVE = 0x10000000
|
||||||
EPOLLHUP = 0x10
|
EPOLLHUP = 0x10
|
||||||
EPOLLIN = 0x1
|
EPOLLIN = 0x1
|
||||||
EPOLLMSG = 0x400
|
EPOLLMSG = 0x400
|
||||||
@@ -328,6 +391,7 @@ const (
|
|||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
ETH_P_HSR = 0x892f
|
||||||
ETH_P_IEEE802154 = 0xf6
|
ETH_P_IEEE802154 = 0xf6
|
||||||
ETH_P_IEEEPUP = 0xa00
|
ETH_P_IEEEPUP = 0xa00
|
||||||
ETH_P_IEEEPUPAT = 0xa01
|
ETH_P_IEEEPUPAT = 0xa01
|
||||||
@@ -340,10 +404,12 @@ const (
|
|||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
ETH_P_MACSEC = 0x88e5
|
||||||
ETH_P_MOBITEX = 0x15
|
ETH_P_MOBITEX = 0x15
|
||||||
ETH_P_MPLS_MC = 0x8848
|
ETH_P_MPLS_MC = 0x8848
|
||||||
ETH_P_MPLS_UC = 0x8847
|
ETH_P_MPLS_UC = 0x8847
|
||||||
ETH_P_MVRP = 0x88f5
|
ETH_P_MVRP = 0x88f5
|
||||||
|
ETH_P_NCSI = 0x88f8
|
||||||
ETH_P_PAE = 0x888e
|
ETH_P_PAE = 0x888e
|
||||||
ETH_P_PAUSE = 0x8808
|
ETH_P_PAUSE = 0x8808
|
||||||
ETH_P_PHONET = 0xf5
|
ETH_P_PHONET = 0xf5
|
||||||
@@ -374,9 +440,37 @@ const (
|
|||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
FALLOC_FL_NO_HIDE_STALE = 0x4
|
||||||
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
|
FF0 = 0x0
|
||||||
|
FF1 = 0x8000
|
||||||
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CTS = 0x4
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
FS_KEY_DESCRIPTOR_SIZE = 0x8
|
||||||
|
FS_KEY_DESC_PREFIX = "fscrypt:"
|
||||||
|
FS_KEY_DESC_PREFIX_SIZE = 0x8
|
||||||
|
FS_MAX_KEY_SIZE = 0x40
|
||||||
|
FS_POLICY_FLAGS_PAD_16 = 0x2
|
||||||
|
FS_POLICY_FLAGS_PAD_32 = 0x3
|
||||||
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
F_EXLCK = 0x4
|
F_EXLCK = 0x4
|
||||||
@@ -413,7 +507,10 @@ const (
|
|||||||
F_ULOCK = 0x0
|
F_ULOCK = 0x0
|
||||||
F_UNLCK = 0x2
|
F_UNLCK = 0x2
|
||||||
F_WRLCK = 0x1
|
F_WRLCK = 0x1
|
||||||
|
GRND_NONBLOCK = 0x1
|
||||||
|
GRND_RANDOM = 0x2
|
||||||
HUPCL = 0x400
|
HUPCL = 0x400
|
||||||
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
ICMPV6_FILTER = 0x1
|
ICMPV6_FILTER = 0x1
|
||||||
ICRNL = 0x100
|
ICRNL = 0x100
|
||||||
@@ -527,6 +624,7 @@ const (
|
|||||||
IPPROTO_IPIP = 0x4
|
IPPROTO_IPIP = 0x4
|
||||||
IPPROTO_IPV6 = 0x29
|
IPPROTO_IPV6 = 0x29
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
|
IPPROTO_MPLS = 0x89
|
||||||
IPPROTO_MTP = 0x5c
|
IPPROTO_MTP = 0x5c
|
||||||
IPPROTO_NONE = 0x3b
|
IPPROTO_NONE = 0x3b
|
||||||
IPPROTO_PIM = 0x67
|
IPPROTO_PIM = 0x67
|
||||||
@@ -552,6 +650,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
IPV6_IPSEC_POLICY = 0x22
|
IPV6_IPSEC_POLICY = 0x22
|
||||||
@@ -595,6 +694,7 @@ const (
|
|||||||
IPV6_XFRM_POLICY = 0x23
|
IPV6_XFRM_POLICY = 0x23
|
||||||
IP_ADD_MEMBERSHIP = 0x23
|
IP_ADD_MEMBERSHIP = 0x23
|
||||||
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
||||||
|
IP_BIND_ADDRESS_NO_PORT = 0x18
|
||||||
IP_BLOCK_SOURCE = 0x26
|
IP_BLOCK_SOURCE = 0x26
|
||||||
IP_CHECKSUM = 0x17
|
IP_CHECKSUM = 0x17
|
||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
@@ -648,10 +748,52 @@ const (
|
|||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
@@ -671,6 +813,7 @@ const (
|
|||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
MADV_DONTFORK = 0xa
|
MADV_DONTFORK = 0xa
|
||||||
MADV_DONTNEED = 0x4
|
MADV_DONTNEED = 0x4
|
||||||
|
MADV_FREE = 0x8
|
||||||
MADV_HUGEPAGE = 0xe
|
MADV_HUGEPAGE = 0xe
|
||||||
MADV_HWPOISON = 0x64
|
MADV_HWPOISON = 0x64
|
||||||
MADV_MERGEABLE = 0xc
|
MADV_MERGEABLE = 0xc
|
||||||
@@ -702,9 +845,11 @@ const (
|
|||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MCL_ONFAULT = 0x4
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
MSG_CTRUNC = 0x8
|
MSG_CTRUNC = 0x8
|
||||||
@@ -728,6 +873,7 @@ const (
|
|||||||
MS_ACTIVE = 0x40000000
|
MS_ACTIVE = 0x40000000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_BIND = 0x1000
|
MS_BIND = 0x1000
|
||||||
|
MS_BORN = 0x20000000
|
||||||
MS_DIRSYNC = 0x80
|
MS_DIRSYNC = 0x80
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_I_VERSION = 0x800000
|
MS_I_VERSION = 0x800000
|
||||||
@@ -741,6 +887,8 @@ const (
|
|||||||
MS_NODEV = 0x4
|
MS_NODEV = 0x4
|
||||||
MS_NODIRATIME = 0x800
|
MS_NODIRATIME = 0x800
|
||||||
MS_NOEXEC = 0x8
|
MS_NOEXEC = 0x8
|
||||||
|
MS_NOREMOTELOCK = 0x8000000
|
||||||
|
MS_NOSEC = 0x10000000
|
||||||
MS_NOSUID = 0x2
|
MS_NOSUID = 0x2
|
||||||
MS_NOUSER = -0x80000000
|
MS_NOUSER = -0x80000000
|
||||||
MS_POSIXACL = 0x10000
|
MS_POSIXACL = 0x10000
|
||||||
@@ -757,6 +905,7 @@ const (
|
|||||||
MS_SYNC = 0x4
|
MS_SYNC = 0x4
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
|
MS_VERBOSE = 0x8000
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
@@ -790,10 +939,13 @@ const (
|
|||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
|
NL0 = 0x0
|
||||||
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
NLA_F_NESTED = 0x8000
|
NLA_F_NESTED = 0x8000
|
||||||
NLA_F_NET_BYTEORDER = 0x4000
|
NLA_F_NET_BYTEORDER = 0x4000
|
||||||
NLA_HDRLEN = 0x4
|
NLA_HDRLEN = 0x4
|
||||||
|
NLDLY = 0x100
|
||||||
NLMSG_ALIGNTO = 0x4
|
NLMSG_ALIGNTO = 0x4
|
||||||
NLMSG_DONE = 0x3
|
NLMSG_DONE = 0x3
|
||||||
NLMSG_ERROR = 0x2
|
NLMSG_ERROR = 0x2
|
||||||
@@ -806,6 +958,7 @@ const (
|
|||||||
NLM_F_ATOMIC = 0x400
|
NLM_F_ATOMIC = 0x400
|
||||||
NLM_F_CREATE = 0x400
|
NLM_F_CREATE = 0x400
|
||||||
NLM_F_DUMP = 0x300
|
NLM_F_DUMP = 0x300
|
||||||
|
NLM_F_DUMP_FILTERED = 0x20
|
||||||
NLM_F_DUMP_INTR = 0x10
|
NLM_F_DUMP_INTR = 0x10
|
||||||
NLM_F_ECHO = 0x8
|
NLM_F_ECHO = 0x8
|
||||||
NLM_F_EXCL = 0x200
|
NLM_F_EXCL = 0x200
|
||||||
@@ -818,6 +971,7 @@ const (
|
|||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
OLCUC = 0x2
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
@@ -902,6 +1056,16 @@ const (
|
|||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
PARODD = 0x200
|
PARODD = 0x200
|
||||||
PENDIN = 0x4000
|
PENDIN = 0x4000
|
||||||
|
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||||
|
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||||
|
PERF_EVENT_IOC_ID = 0x40082407
|
||||||
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||||
|
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||||
|
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||||
|
PERF_EVENT_IOC_RESET = 0x20002403
|
||||||
|
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||||
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1052,6 +1216,7 @@ const (
|
|||||||
PTRACE_POKETEXT = 0x4
|
PTRACE_POKETEXT = 0x4
|
||||||
PTRACE_POKETEXT_3264 = 0xc2
|
PTRACE_POKETEXT_3264 = 0xc2
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
PTRACE_SETOPTIONS = 0x4200
|
PTRACE_SETOPTIONS = 0x4200
|
||||||
@@ -1069,7 +1234,16 @@ const (
|
|||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_LOCKS = 0xa
|
||||||
|
RLIMIT_MEMLOCK = 0x9
|
||||||
|
RLIMIT_MSGQUEUE = 0xc
|
||||||
|
RLIMIT_NICE = 0xd
|
||||||
RLIMIT_NOFILE = 0x5
|
RLIMIT_NOFILE = 0x5
|
||||||
|
RLIMIT_NPROC = 0x8
|
||||||
|
RLIMIT_RSS = 0x7
|
||||||
|
RLIMIT_RTPRIO = 0xe
|
||||||
|
RLIMIT_RTTIME = 0xf
|
||||||
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = -0x1
|
RLIM_INFINITY = -0x1
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
@@ -1096,7 +1270,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x16
|
RTA_MAX = 0x19
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1148,6 +1322,7 @@ const (
|
|||||||
RTM_DELTFILTER = 0x2d
|
RTM_DELTFILTER = 0x2d
|
||||||
RTM_F_CLONED = 0x200
|
RTM_F_CLONED = 0x200
|
||||||
RTM_F_EQUALIZE = 0x400
|
RTM_F_EQUALIZE = 0x400
|
||||||
|
RTM_F_LOOKUP_TABLE = 0x1000
|
||||||
RTM_F_NOTIFY = 0x100
|
RTM_F_NOTIFY = 0x100
|
||||||
RTM_F_PREFIX = 0x800
|
RTM_F_PREFIX = 0x800
|
||||||
RTM_GETACTION = 0x32
|
RTM_GETACTION = 0x32
|
||||||
@@ -1165,9 +1340,10 @@ const (
|
|||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
RTM_GETRULE = 0x22
|
RTM_GETRULE = 0x22
|
||||||
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x5b
|
RTM_MAX = 0x5f
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
@@ -1182,15 +1358,16 @@ const (
|
|||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
RTM_NEWROUTE = 0x18
|
RTM_NEWROUTE = 0x18
|
||||||
RTM_NEWRULE = 0x20
|
RTM_NEWRULE = 0x20
|
||||||
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x13
|
RTM_NR_FAMILIES = 0x14
|
||||||
RTM_NR_MSGTYPES = 0x4c
|
RTM_NR_MSGTYPES = 0x50
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
RTNH_ALIGNTO = 0x4
|
RTNH_ALIGNTO = 0x4
|
||||||
RTNH_COMPARE_MASK = 0x11
|
RTNH_COMPARE_MASK = 0x19
|
||||||
RTNH_F_DEAD = 0x1
|
RTNH_F_DEAD = 0x1
|
||||||
RTNH_F_LINKDOWN = 0x10
|
RTNH_F_LINKDOWN = 0x10
|
||||||
RTNH_F_OFFLOAD = 0x8
|
RTNH_F_OFFLOAD = 0x8
|
||||||
@@ -1225,8 +1402,12 @@ const (
|
|||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x1d
|
SCM_TIMESTAMP = 0x1d
|
||||||
SCM_TIMESTAMPING = 0x25
|
SCM_TIMESTAMPING = 0x25
|
||||||
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1234,6 +1415,16 @@ const (
|
|||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
@@ -1241,7 +1432,9 @@ const (
|
|||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
@@ -1261,13 +1454,21 @@ const (
|
|||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x467f
|
||||||
|
SIOCOUTQ = 0x7472
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
@@ -1286,11 +1487,15 @@ const (
|
|||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x80
|
SOCK_NONBLOCK = 0x80
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
@@ -1298,26 +1503,44 @@ const (
|
|||||||
SOCK_SEQPACKET = 0x5
|
SOCK_SEQPACKET = 0x5
|
||||||
SOCK_STREAM = 0x2
|
SOCK_STREAM = 0x2
|
||||||
SOL_AAL = 0x109
|
SOL_AAL = 0x109
|
||||||
|
SOL_ALG = 0x117
|
||||||
SOL_ATM = 0x108
|
SOL_ATM = 0x108
|
||||||
|
SOL_CAIF = 0x116
|
||||||
|
SOL_CAN_BASE = 0x64
|
||||||
|
SOL_DCCP = 0x10d
|
||||||
SOL_DECNET = 0x105
|
SOL_DECNET = 0x105
|
||||||
SOL_ICMPV6 = 0x3a
|
SOL_ICMPV6 = 0x3a
|
||||||
SOL_IP = 0x0
|
SOL_IP = 0x0
|
||||||
SOL_IPV6 = 0x29
|
SOL_IPV6 = 0x29
|
||||||
SOL_IRDA = 0x10a
|
SOL_IRDA = 0x10a
|
||||||
|
SOL_IUCV = 0x115
|
||||||
|
SOL_KCM = 0x119
|
||||||
|
SOL_LLC = 0x10c
|
||||||
|
SOL_NETBEUI = 0x10b
|
||||||
|
SOL_NETLINK = 0x10e
|
||||||
|
SOL_NFC = 0x118
|
||||||
SOL_PACKET = 0x107
|
SOL_PACKET = 0x107
|
||||||
|
SOL_PNPIPE = 0x113
|
||||||
|
SOL_PPPOL2TP = 0x111
|
||||||
SOL_RAW = 0xff
|
SOL_RAW = 0xff
|
||||||
|
SOL_RDS = 0x114
|
||||||
|
SOL_RXRPC = 0x110
|
||||||
SOL_SOCKET = 0xffff
|
SOL_SOCKET = 0xffff
|
||||||
SOL_TCP = 0x6
|
SOL_TCP = 0x6
|
||||||
|
SOL_TIPC = 0x10f
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
SO_ATTACH_FILTER = 0x1a
|
SO_ATTACH_FILTER = 0x1a
|
||||||
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
SO_BUSY_POLL = 0x2e
|
SO_BUSY_POLL = 0x2e
|
||||||
|
SO_CNX_ADVICE = 0x35
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
@@ -1362,7 +1585,18 @@ const (
|
|||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
SO_VM_SOCKETS_BUFFER_SIZE = 0x0
|
||||||
|
SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6
|
||||||
|
SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7
|
||||||
|
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
|
||||||
|
SO_VM_SOCKETS_TRUSTED = 0x5
|
||||||
SO_WIFI_STATUS = 0x29
|
SO_WIFI_STATUS = 0x29
|
||||||
|
SPLICE_F_GIFT = 0x8
|
||||||
|
SPLICE_F_MORE = 0x4
|
||||||
|
SPLICE_F_MOVE = 0x1
|
||||||
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@@ -1390,10 +1624,23 @@ const (
|
|||||||
S_IXGRP = 0x8
|
S_IXGRP = 0x8
|
||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB1 = 0x800
|
||||||
|
TAB2 = 0x1000
|
||||||
|
TAB3 = 0x1800
|
||||||
|
TABDLY = 0x1800
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
|
TCGETA = 0x5401
|
||||||
|
TCGETS = 0x540d
|
||||||
|
TCGETS2 = 0x4030542a
|
||||||
TCIFLUSH = 0x0
|
TCIFLUSH = 0x0
|
||||||
|
TCIOFF = 0x2
|
||||||
TCIOFLUSH = 0x2
|
TCIOFLUSH = 0x2
|
||||||
|
TCION = 0x3
|
||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
|
TCOOFF = 0x0
|
||||||
|
TCOON = 0x1
|
||||||
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1418,11 +1665,15 @@ const (
|
|||||||
TCP_MSS_DEFAULT = 0x218
|
TCP_MSS_DEFAULT = 0x218
|
||||||
TCP_MSS_DESIRED = 0x4c4
|
TCP_MSS_DESIRED = 0x4c4
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
|
TCP_NOTSENT_LOWAT = 0x19
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
TCP_SAVED_SYN = 0x1c
|
||||||
|
TCP_SAVE_SYN = 0x1b
|
||||||
TCP_SYNCNT = 0x7
|
TCP_SYNCNT = 0x7
|
||||||
TCP_S_DATA_IN = 0x4
|
TCP_S_DATA_IN = 0x4
|
||||||
TCP_S_DATA_OUT = 0x8
|
TCP_S_DATA_OUT = 0x8
|
||||||
@@ -1433,6 +1684,16 @@ const (
|
|||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
|
TCSBRKP = 0x5486
|
||||||
|
TCSETA = 0x5402
|
||||||
|
TCSETAF = 0x5404
|
||||||
|
TCSETAW = 0x5403
|
||||||
|
TCSETS = 0x540e
|
||||||
|
TCSETS2 = 0x8030542b
|
||||||
|
TCSETSF = 0x5410
|
||||||
|
TCSETSF2 = 0x8030542d
|
||||||
|
TCSETSW = 0x540f
|
||||||
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
@@ -1532,6 +1793,7 @@ const (
|
|||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x10
|
VEOF = 0x10
|
||||||
VEOL = 0x11
|
VEOL = 0x11
|
||||||
@@ -1540,7 +1802,13 @@ const (
|
|||||||
VINTR = 0x0
|
VINTR = 0x0
|
||||||
VKILL = 0x3
|
VKILL = 0x3
|
||||||
VLNEXT = 0xf
|
VLNEXT = 0xf
|
||||||
|
VMADDR_CID_ANY = 0xffffffff
|
||||||
|
VMADDR_CID_HOST = 0x2
|
||||||
|
VMADDR_CID_HYPERVISOR = 0x0
|
||||||
|
VMADDR_CID_RESERVED = 0x1
|
||||||
|
VMADDR_PORT_ANY = 0xffffffff
|
||||||
VMIN = 0x4
|
VMIN = 0x4
|
||||||
|
VM_SOCKETS_INVALID_VERSION = 0xffffffff
|
||||||
VQUIT = 0x1
|
VQUIT = 0x1
|
||||||
VREPRINT = 0xc
|
VREPRINT = 0xc
|
||||||
VSTART = 0x8
|
VSTART = 0x8
|
||||||
@@ -1563,6 +1831,10 @@ const (
|
|||||||
WORDSIZE = 0x40
|
WORDSIZE = 0x40
|
||||||
WSTOPPED = 0x2
|
WSTOPPED = 0x2
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x1
|
||||||
|
XATTR_REPLACE = 0x2
|
||||||
|
XCASE = 0x4
|
||||||
|
XTABS = 0x1800
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
|||||||
2189
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
Normal file
2189
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
297
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
297
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
@@ -1,10 +1,10 @@
|
|||||||
// mkerrors.sh -m64
|
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build ppc64,linux
|
// +build ppc64,linux
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Created by cgo -godefs - DO NOT EDIT
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -24,6 +24,7 @@ const (
|
|||||||
AF_DECnet = 0xc
|
AF_DECnet = 0xc
|
||||||
AF_ECONET = 0x13
|
AF_ECONET = 0x13
|
||||||
AF_FILE = 0x1
|
AF_FILE = 0x1
|
||||||
|
AF_IB = 0x1b
|
||||||
AF_IEEE802154 = 0x24
|
AF_IEEE802154 = 0x24
|
||||||
AF_INET = 0x2
|
AF_INET = 0x2
|
||||||
AF_INET6 = 0xa
|
AF_INET6 = 0xa
|
||||||
@@ -31,10 +32,12 @@ const (
|
|||||||
AF_IRDA = 0x17
|
AF_IRDA = 0x17
|
||||||
AF_ISDN = 0x22
|
AF_ISDN = 0x22
|
||||||
AF_IUCV = 0x20
|
AF_IUCV = 0x20
|
||||||
|
AF_KCM = 0x29
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x29
|
AF_MAX = 0x2b
|
||||||
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
AF_NETROM = 0x6
|
AF_NETROM = 0x6
|
||||||
@@ -42,6 +45,7 @@ const (
|
|||||||
AF_PACKET = 0x11
|
AF_PACKET = 0x11
|
||||||
AF_PHONET = 0x23
|
AF_PHONET = 0x23
|
||||||
AF_PPPOX = 0x18
|
AF_PPPOX = 0x18
|
||||||
|
AF_QIPCRTR = 0x2a
|
||||||
AF_RDS = 0x15
|
AF_RDS = 0x15
|
||||||
AF_ROSE = 0xb
|
AF_ROSE = 0xb
|
||||||
AF_ROUTE = 0x10
|
AF_ROUTE = 0x10
|
||||||
@@ -54,6 +58,13 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
ALG_OP_DECRYPT = 0x0
|
||||||
|
ALG_OP_ENCRYPT = 0x1
|
||||||
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
ALG_SET_AEAD_AUTHSIZE = 0x5
|
||||||
|
ALG_SET_IV = 0x2
|
||||||
|
ALG_SET_KEY = 0x1
|
||||||
|
ALG_SET_OP = 0x3
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
@@ -150,6 +161,22 @@ const (
|
|||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x16
|
B921600 = 0x16
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BLKBSZGET = 0x40081270
|
||||||
|
BLKBSZSET = 0x80081271
|
||||||
|
BLKFLSBUF = 0x20001261
|
||||||
|
BLKFRAGET = 0x20001265
|
||||||
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETSIZE = 0x20001260
|
||||||
|
BLKGETSIZE64 = 0x40081272
|
||||||
|
BLKPBSZGET = 0x2000127b
|
||||||
|
BLKRAGET = 0x20001263
|
||||||
|
BLKRASET = 0x20001262
|
||||||
|
BLKROGET = 0x2000125e
|
||||||
|
BLKROSET = 0x2000125d
|
||||||
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECTGET = 0x20001267
|
||||||
|
BLKSECTSET = 0x20001266
|
||||||
|
BLKSSZGET = 0x20001268
|
||||||
BOTHER = 0x1f
|
BOTHER = 0x1f
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
@@ -171,6 +198,7 @@ const (
|
|||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
BPF_LEN = 0x80
|
BPF_LEN = 0x80
|
||||||
|
BPF_LL_OFF = -0x200000
|
||||||
BPF_LSH = 0x60
|
BPF_LSH = 0x60
|
||||||
BPF_MAJOR_VERSION = 0x1
|
BPF_MAJOR_VERSION = 0x1
|
||||||
BPF_MAXINSNS = 0x1000
|
BPF_MAXINSNS = 0x1000
|
||||||
@@ -182,6 +210,7 @@ const (
|
|||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
|
BPF_NET_OFF = -0x100000
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
@@ -197,6 +226,26 @@ const (
|
|||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x8000
|
BS1 = 0x8000
|
||||||
BSDLY = 0x8000
|
BSDLY = 0x8000
|
||||||
|
CAN_BCM = 0x2
|
||||||
|
CAN_EFF_FLAG = 0x80000000
|
||||||
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
CAN_EFF_MASK = 0x1fffffff
|
||||||
|
CAN_ERR_FLAG = 0x20000000
|
||||||
|
CAN_ERR_MASK = 0x1fffffff
|
||||||
|
CAN_INV_FILTER = 0x20000000
|
||||||
|
CAN_ISOTP = 0x6
|
||||||
|
CAN_MAX_DLC = 0x8
|
||||||
|
CAN_MAX_DLEN = 0x8
|
||||||
|
CAN_MCNET = 0x5
|
||||||
|
CAN_MTU = 0x10
|
||||||
|
CAN_NPROTO = 0x7
|
||||||
|
CAN_RAW = 0x1
|
||||||
|
CAN_RAW_FILTER_MAX = 0x200
|
||||||
|
CAN_RTR_FLAG = 0x40000000
|
||||||
|
CAN_SFF_ID_BITS = 0xb
|
||||||
|
CAN_SFF_MASK = 0x7ff
|
||||||
|
CAN_TP16 = 0x3
|
||||||
|
CAN_TP20 = 0x4
|
||||||
CBAUD = 0xff
|
CBAUD = 0xff
|
||||||
CBAUDEX = 0x0
|
CBAUDEX = 0x0
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -214,6 +263,7 @@ const (
|
|||||||
CLOCK_REALTIME = 0x0
|
CLOCK_REALTIME = 0x0
|
||||||
CLOCK_REALTIME_ALARM = 0x8
|
CLOCK_REALTIME_ALARM = 0x8
|
||||||
CLOCK_REALTIME_COARSE = 0x5
|
CLOCK_REALTIME_COARSE = 0x5
|
||||||
|
CLOCK_TAI = 0xb
|
||||||
CLOCK_THREAD_CPUTIME_ID = 0x3
|
CLOCK_THREAD_CPUTIME_ID = 0x3
|
||||||
CLOCK_TXFROMRX = 0x4
|
CLOCK_TXFROMRX = 0x4
|
||||||
CLOCK_TXINT = 0x3
|
CLOCK_TXINT = 0x3
|
||||||
@@ -275,6 +325,9 @@ const (
|
|||||||
ECHOKE = 0x1
|
ECHOKE = 0x1
|
||||||
ECHONL = 0x10
|
ECHONL = 0x10
|
||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
|
EFD_CLOEXEC = 0x80000
|
||||||
|
EFD_NONBLOCK = 0x800
|
||||||
|
EFD_SEMAPHORE = 0x1
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
@@ -283,6 +336,7 @@ const (
|
|||||||
ENCODING_NRZI = 0x2
|
ENCODING_NRZI = 0x2
|
||||||
EPOLLERR = 0x8
|
EPOLLERR = 0x8
|
||||||
EPOLLET = 0x80000000
|
EPOLLET = 0x80000000
|
||||||
|
EPOLLEXCLUSIVE = 0x10000000
|
||||||
EPOLLHUP = 0x10
|
EPOLLHUP = 0x10
|
||||||
EPOLLIN = 0x1
|
EPOLLIN = 0x1
|
||||||
EPOLLMSG = 0x400
|
EPOLLMSG = 0x400
|
||||||
@@ -337,6 +391,7 @@ const (
|
|||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
ETH_P_HSR = 0x892f
|
||||||
ETH_P_IEEE802154 = 0xf6
|
ETH_P_IEEE802154 = 0xf6
|
||||||
ETH_P_IEEEPUP = 0xa00
|
ETH_P_IEEEPUP = 0xa00
|
||||||
ETH_P_IEEEPUPAT = 0xa01
|
ETH_P_IEEEPUPAT = 0xa01
|
||||||
@@ -349,10 +404,12 @@ const (
|
|||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
ETH_P_MACSEC = 0x88e5
|
||||||
ETH_P_MOBITEX = 0x15
|
ETH_P_MOBITEX = 0x15
|
||||||
ETH_P_MPLS_MC = 0x8848
|
ETH_P_MPLS_MC = 0x8848
|
||||||
ETH_P_MPLS_UC = 0x8847
|
ETH_P_MPLS_UC = 0x8847
|
||||||
ETH_P_MVRP = 0x88f5
|
ETH_P_MVRP = 0x88f5
|
||||||
|
ETH_P_NCSI = 0x88f8
|
||||||
ETH_P_PAE = 0x888e
|
ETH_P_PAE = 0x888e
|
||||||
ETH_P_PAUSE = 0x8808
|
ETH_P_PAUSE = 0x8808
|
||||||
ETH_P_PHONET = 0xf5
|
ETH_P_PHONET = 0xf5
|
||||||
@@ -375,6 +432,7 @@ const (
|
|||||||
ETH_P_TIPC = 0x88ca
|
ETH_P_TIPC = 0x88ca
|
||||||
ETH_P_TRAILER = 0x1c
|
ETH_P_TRAILER = 0x1c
|
||||||
ETH_P_TR_802_2 = 0x11
|
ETH_P_TR_802_2 = 0x11
|
||||||
|
ETH_P_TSN = 0x22f0
|
||||||
ETH_P_WAN_PPP = 0x7
|
ETH_P_WAN_PPP = 0x7
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
@@ -382,12 +440,37 @@ const (
|
|||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000000
|
EXTPROC = 0x10000000
|
||||||
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
FALLOC_FL_NO_HIDE_STALE = 0x4
|
||||||
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x4000
|
FF1 = 0x4000
|
||||||
FFDLY = 0x4000
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CTS = 0x4
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
FS_KEY_DESCRIPTOR_SIZE = 0x8
|
||||||
|
FS_KEY_DESC_PREFIX = "fscrypt:"
|
||||||
|
FS_KEY_DESC_PREFIX_SIZE = 0x8
|
||||||
|
FS_MAX_KEY_SIZE = 0x40
|
||||||
|
FS_POLICY_FLAGS_PAD_16 = 0x2
|
||||||
|
FS_POLICY_FLAGS_PAD_32 = 0x3
|
||||||
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
F_EXLCK = 0x4
|
F_EXLCK = 0x4
|
||||||
@@ -424,6 +507,8 @@ const (
|
|||||||
F_ULOCK = 0x0
|
F_ULOCK = 0x0
|
||||||
F_UNLCK = 0x2
|
F_UNLCK = 0x2
|
||||||
F_WRLCK = 0x1
|
F_WRLCK = 0x1
|
||||||
|
GRND_NONBLOCK = 0x1
|
||||||
|
GRND_RANDOM = 0x2
|
||||||
HUPCL = 0x4000
|
HUPCL = 0x4000
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x100
|
ICANON = 0x100
|
||||||
@@ -434,11 +519,13 @@ const (
|
|||||||
IFA_F_DEPRECATED = 0x20
|
IFA_F_DEPRECATED = 0x20
|
||||||
IFA_F_HOMEADDRESS = 0x10
|
IFA_F_HOMEADDRESS = 0x10
|
||||||
IFA_F_MANAGETEMPADDR = 0x100
|
IFA_F_MANAGETEMPADDR = 0x100
|
||||||
|
IFA_F_MCAUTOJOIN = 0x400
|
||||||
IFA_F_NODAD = 0x2
|
IFA_F_NODAD = 0x2
|
||||||
IFA_F_NOPREFIXROUTE = 0x200
|
IFA_F_NOPREFIXROUTE = 0x200
|
||||||
IFA_F_OPTIMISTIC = 0x4
|
IFA_F_OPTIMISTIC = 0x4
|
||||||
IFA_F_PERMANENT = 0x80
|
IFA_F_PERMANENT = 0x80
|
||||||
IFA_F_SECONDARY = 0x1
|
IFA_F_SECONDARY = 0x1
|
||||||
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x8
|
||||||
@@ -537,6 +624,7 @@ const (
|
|||||||
IPPROTO_IPIP = 0x4
|
IPPROTO_IPIP = 0x4
|
||||||
IPPROTO_IPV6 = 0x29
|
IPPROTO_IPV6 = 0x29
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
|
IPPROTO_MPLS = 0x89
|
||||||
IPPROTO_MTP = 0x5c
|
IPPROTO_MTP = 0x5c
|
||||||
IPPROTO_NONE = 0x3b
|
IPPROTO_NONE = 0x3b
|
||||||
IPPROTO_PIM = 0x67
|
IPPROTO_PIM = 0x67
|
||||||
@@ -559,8 +647,10 @@ const (
|
|||||||
IPV6_ADD_MEMBERSHIP = 0x14
|
IPV6_ADD_MEMBERSHIP = 0x14
|
||||||
IPV6_AUTHHDR = 0xa
|
IPV6_AUTHHDR = 0xa
|
||||||
IPV6_CHECKSUM = 0x7
|
IPV6_CHECKSUM = 0x7
|
||||||
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
IPV6_IPSEC_POLICY = 0x22
|
IPV6_IPSEC_POLICY = 0x22
|
||||||
@@ -574,6 +664,7 @@ const (
|
|||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
IPV6_NEXTHOP = 0x9
|
IPV6_NEXTHOP = 0x9
|
||||||
|
IPV6_PATHMTU = 0x3d
|
||||||
IPV6_PKTINFO = 0x32
|
IPV6_PKTINFO = 0x32
|
||||||
IPV6_PMTUDISC_DO = 0x2
|
IPV6_PMTUDISC_DO = 0x2
|
||||||
IPV6_PMTUDISC_DONT = 0x0
|
IPV6_PMTUDISC_DONT = 0x0
|
||||||
@@ -585,6 +676,7 @@ const (
|
|||||||
IPV6_RECVERR = 0x19
|
IPV6_RECVERR = 0x19
|
||||||
IPV6_RECVHOPLIMIT = 0x33
|
IPV6_RECVHOPLIMIT = 0x33
|
||||||
IPV6_RECVHOPOPTS = 0x35
|
IPV6_RECVHOPOPTS = 0x35
|
||||||
|
IPV6_RECVPATHMTU = 0x3c
|
||||||
IPV6_RECVPKTINFO = 0x31
|
IPV6_RECVPKTINFO = 0x31
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
@@ -602,7 +694,9 @@ const (
|
|||||||
IPV6_XFRM_POLICY = 0x23
|
IPV6_XFRM_POLICY = 0x23
|
||||||
IP_ADD_MEMBERSHIP = 0x23
|
IP_ADD_MEMBERSHIP = 0x23
|
||||||
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
||||||
|
IP_BIND_ADDRESS_NO_PORT = 0x18
|
||||||
IP_BLOCK_SOURCE = 0x26
|
IP_BLOCK_SOURCE = 0x26
|
||||||
|
IP_CHECKSUM = 0x17
|
||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
IP_DF = 0x4000
|
IP_DF = 0x4000
|
||||||
@@ -659,6 +753,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
@@ -678,6 +813,7 @@ const (
|
|||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
MADV_DONTFORK = 0xa
|
MADV_DONTFORK = 0xa
|
||||||
MADV_DONTNEED = 0x4
|
MADV_DONTNEED = 0x4
|
||||||
|
MADV_FREE = 0x8
|
||||||
MADV_HUGEPAGE = 0xe
|
MADV_HUGEPAGE = 0xe
|
||||||
MADV_HWPOISON = 0x64
|
MADV_HWPOISON = 0x64
|
||||||
MADV_MERGEABLE = 0xc
|
MADV_MERGEABLE = 0xc
|
||||||
@@ -708,9 +844,11 @@ const (
|
|||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
MCL_FUTURE = 0x4000
|
MCL_FUTURE = 0x4000
|
||||||
|
MCL_ONFAULT = 0x8000
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
MSG_CTRUNC = 0x8
|
MSG_CTRUNC = 0x8
|
||||||
@@ -734,10 +872,12 @@ const (
|
|||||||
MS_ACTIVE = 0x40000000
|
MS_ACTIVE = 0x40000000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_BIND = 0x1000
|
MS_BIND = 0x1000
|
||||||
|
MS_BORN = 0x20000000
|
||||||
MS_DIRSYNC = 0x80
|
MS_DIRSYNC = 0x80
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_I_VERSION = 0x800000
|
MS_I_VERSION = 0x800000
|
||||||
MS_KERNMOUNT = 0x400000
|
MS_KERNMOUNT = 0x400000
|
||||||
|
MS_LAZYTIME = 0x2000000
|
||||||
MS_MANDLOCK = 0x40
|
MS_MANDLOCK = 0x40
|
||||||
MS_MGC_MSK = 0xffff0000
|
MS_MGC_MSK = 0xffff0000
|
||||||
MS_MGC_VAL = 0xc0ed0000
|
MS_MGC_VAL = 0xc0ed0000
|
||||||
@@ -746,6 +886,8 @@ const (
|
|||||||
MS_NODEV = 0x4
|
MS_NODEV = 0x4
|
||||||
MS_NODIRATIME = 0x800
|
MS_NODIRATIME = 0x800
|
||||||
MS_NOEXEC = 0x8
|
MS_NOEXEC = 0x8
|
||||||
|
MS_NOREMOTELOCK = 0x8000000
|
||||||
|
MS_NOSEC = 0x10000000
|
||||||
MS_NOSUID = 0x2
|
MS_NOSUID = 0x2
|
||||||
MS_NOUSER = -0x80000000
|
MS_NOUSER = -0x80000000
|
||||||
MS_POSIXACL = 0x10000
|
MS_POSIXACL = 0x10000
|
||||||
@@ -754,7 +896,7 @@ const (
|
|||||||
MS_REC = 0x4000
|
MS_REC = 0x4000
|
||||||
MS_RELATIME = 0x200000
|
MS_RELATIME = 0x200000
|
||||||
MS_REMOUNT = 0x20
|
MS_REMOUNT = 0x20
|
||||||
MS_RMT_MASK = 0x800051
|
MS_RMT_MASK = 0x2800051
|
||||||
MS_SHARED = 0x100000
|
MS_SHARED = 0x100000
|
||||||
MS_SILENT = 0x8000
|
MS_SILENT = 0x8000
|
||||||
MS_SLAVE = 0x80000
|
MS_SLAVE = 0x80000
|
||||||
@@ -762,10 +904,12 @@ const (
|
|||||||
MS_SYNC = 0x4
|
MS_SYNC = 0x4
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
|
MS_VERBOSE = 0x8000
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
NETLINK_CAP_ACK = 0xa
|
||||||
NETLINK_CONNECTOR = 0xb
|
NETLINK_CONNECTOR = 0xb
|
||||||
NETLINK_CRYPTO = 0x15
|
NETLINK_CRYPTO = 0x15
|
||||||
NETLINK_DNRTMSG = 0xe
|
NETLINK_DNRTMSG = 0xe
|
||||||
@@ -778,6 +922,8 @@ const (
|
|||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
NETLINK_KOBJECT_UEVENT = 0xf
|
NETLINK_KOBJECT_UEVENT = 0xf
|
||||||
|
NETLINK_LISTEN_ALL_NSID = 0x8
|
||||||
|
NETLINK_LIST_MEMBERSHIPS = 0x9
|
||||||
NETLINK_NETFILTER = 0xc
|
NETLINK_NETFILTER = 0xc
|
||||||
NETLINK_NFLOG = 0x5
|
NETLINK_NFLOG = 0x5
|
||||||
NETLINK_NO_ENOBUFS = 0x5
|
NETLINK_NO_ENOBUFS = 0x5
|
||||||
@@ -813,6 +959,7 @@ const (
|
|||||||
NLM_F_ATOMIC = 0x400
|
NLM_F_ATOMIC = 0x400
|
||||||
NLM_F_CREATE = 0x400
|
NLM_F_CREATE = 0x400
|
||||||
NLM_F_DUMP = 0x300
|
NLM_F_DUMP = 0x300
|
||||||
|
NLM_F_DUMP_FILTERED = 0x20
|
||||||
NLM_F_DUMP_INTR = 0x10
|
NLM_F_DUMP_INTR = 0x10
|
||||||
NLM_F_ECHO = 0x8
|
NLM_F_ECHO = 0x8
|
||||||
NLM_F_EXCL = 0x200
|
NLM_F_EXCL = 0x200
|
||||||
@@ -851,7 +998,7 @@ const (
|
|||||||
O_RDWR = 0x2
|
O_RDWR = 0x2
|
||||||
O_RSYNC = 0x101000
|
O_RSYNC = 0x101000
|
||||||
O_SYNC = 0x101000
|
O_SYNC = 0x101000
|
||||||
O_TMPFILE = 0x410000
|
O_TMPFILE = 0x404000
|
||||||
O_TRUNC = 0x200
|
O_TRUNC = 0x200
|
||||||
O_WRONLY = 0x1
|
O_WRONLY = 0x1
|
||||||
PACKET_ADD_MEMBERSHIP = 0x1
|
PACKET_ADD_MEMBERSHIP = 0x1
|
||||||
@@ -860,7 +1007,10 @@ const (
|
|||||||
PACKET_COPY_THRESH = 0x7
|
PACKET_COPY_THRESH = 0x7
|
||||||
PACKET_DROP_MEMBERSHIP = 0x2
|
PACKET_DROP_MEMBERSHIP = 0x2
|
||||||
PACKET_FANOUT = 0x12
|
PACKET_FANOUT = 0x12
|
||||||
|
PACKET_FANOUT_CBPF = 0x6
|
||||||
PACKET_FANOUT_CPU = 0x2
|
PACKET_FANOUT_CPU = 0x2
|
||||||
|
PACKET_FANOUT_DATA = 0x16
|
||||||
|
PACKET_FANOUT_EBPF = 0x7
|
||||||
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
|
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
|
||||||
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
|
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
|
||||||
PACKET_FANOUT_HASH = 0x0
|
PACKET_FANOUT_HASH = 0x0
|
||||||
@@ -885,6 +1035,7 @@ const (
|
|||||||
PACKET_QDISC_BYPASS = 0x14
|
PACKET_QDISC_BYPASS = 0x14
|
||||||
PACKET_RECV_OUTPUT = 0x3
|
PACKET_RECV_OUTPUT = 0x3
|
||||||
PACKET_RESERVE = 0xc
|
PACKET_RESERVE = 0xc
|
||||||
|
PACKET_ROLLOVER_STATS = 0x15
|
||||||
PACKET_RX_RING = 0x5
|
PACKET_RX_RING = 0x5
|
||||||
PACKET_STATISTICS = 0x6
|
PACKET_STATISTICS = 0x6
|
||||||
PACKET_TIMESTAMP = 0x11
|
PACKET_TIMESTAMP = 0x11
|
||||||
@@ -906,6 +1057,16 @@ const (
|
|||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
PARODD = 0x2000
|
PARODD = 0x2000
|
||||||
PENDIN = 0x20000000
|
PENDIN = 0x20000000
|
||||||
|
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||||
|
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||||
|
PERF_EVENT_IOC_ID = 0x40082407
|
||||||
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||||
|
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||||
|
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||||
|
PERF_EVENT_IOC_RESET = 0x20002403
|
||||||
|
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||||
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -918,6 +1079,11 @@ const (
|
|||||||
PROT_WRITE = 0x2
|
PROT_WRITE = 0x2
|
||||||
PR_CAPBSET_DROP = 0x18
|
PR_CAPBSET_DROP = 0x18
|
||||||
PR_CAPBSET_READ = 0x17
|
PR_CAPBSET_READ = 0x17
|
||||||
|
PR_CAP_AMBIENT = 0x2f
|
||||||
|
PR_CAP_AMBIENT_CLEAR_ALL = 0x4
|
||||||
|
PR_CAP_AMBIENT_IS_SET = 0x1
|
||||||
|
PR_CAP_AMBIENT_LOWER = 0x3
|
||||||
|
PR_CAP_AMBIENT_RAISE = 0x2
|
||||||
PR_ENDIAN_BIG = 0x0
|
PR_ENDIAN_BIG = 0x0
|
||||||
PR_ENDIAN_LITTLE = 0x1
|
PR_ENDIAN_LITTLE = 0x1
|
||||||
PR_ENDIAN_PPC_LITTLE = 0x2
|
PR_ENDIAN_PPC_LITTLE = 0x2
|
||||||
@@ -933,11 +1099,14 @@ const (
|
|||||||
PR_FP_EXC_RES = 0x80000
|
PR_FP_EXC_RES = 0x80000
|
||||||
PR_FP_EXC_SW_ENABLE = 0x80
|
PR_FP_EXC_SW_ENABLE = 0x80
|
||||||
PR_FP_EXC_UND = 0x40000
|
PR_FP_EXC_UND = 0x40000
|
||||||
|
PR_FP_MODE_FR = 0x1
|
||||||
|
PR_FP_MODE_FRE = 0x2
|
||||||
PR_GET_CHILD_SUBREAPER = 0x25
|
PR_GET_CHILD_SUBREAPER = 0x25
|
||||||
PR_GET_DUMPABLE = 0x3
|
PR_GET_DUMPABLE = 0x3
|
||||||
PR_GET_ENDIAN = 0x13
|
PR_GET_ENDIAN = 0x13
|
||||||
PR_GET_FPEMU = 0x9
|
PR_GET_FPEMU = 0x9
|
||||||
PR_GET_FPEXC = 0xb
|
PR_GET_FPEXC = 0xb
|
||||||
|
PR_GET_FP_MODE = 0x2e
|
||||||
PR_GET_KEEPCAPS = 0x7
|
PR_GET_KEEPCAPS = 0x7
|
||||||
PR_GET_NAME = 0x10
|
PR_GET_NAME = 0x10
|
||||||
PR_GET_NO_NEW_PRIVS = 0x27
|
PR_GET_NO_NEW_PRIVS = 0x27
|
||||||
@@ -957,11 +1126,14 @@ const (
|
|||||||
PR_MCE_KILL_GET = 0x22
|
PR_MCE_KILL_GET = 0x22
|
||||||
PR_MCE_KILL_LATE = 0x0
|
PR_MCE_KILL_LATE = 0x0
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
PR_SET_FPEMU = 0xa
|
PR_SET_FPEMU = 0xa
|
||||||
PR_SET_FPEXC = 0xc
|
PR_SET_FPEXC = 0xc
|
||||||
|
PR_SET_FP_MODE = 0x2d
|
||||||
PR_SET_KEEPCAPS = 0x8
|
PR_SET_KEEPCAPS = 0x8
|
||||||
PR_SET_MM = 0x23
|
PR_SET_MM = 0x23
|
||||||
PR_SET_MM_ARG_END = 0x9
|
PR_SET_MM_ARG_END = 0x9
|
||||||
@@ -1025,7 +1197,8 @@ const (
|
|||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LISTEN = 0x4208
|
PTRACE_LISTEN = 0x4208
|
||||||
PTRACE_O_EXITKILL = 0x100000
|
PTRACE_O_EXITKILL = 0x100000
|
||||||
PTRACE_O_MASK = 0x1000ff
|
PTRACE_O_MASK = 0x3000ff
|
||||||
|
PTRACE_O_SUSPEND_SECCOMP = 0x200000
|
||||||
PTRACE_O_TRACECLONE = 0x8
|
PTRACE_O_TRACECLONE = 0x8
|
||||||
PTRACE_O_TRACEEXEC = 0x10
|
PTRACE_O_TRACEEXEC = 0x10
|
||||||
PTRACE_O_TRACEEXIT = 0x40
|
PTRACE_O_TRACEEXIT = 0x40
|
||||||
@@ -1042,6 +1215,7 @@ const (
|
|||||||
PTRACE_POKEDATA = 0x5
|
PTRACE_POKEDATA = 0x5
|
||||||
PTRACE_POKETEXT = 0x4
|
PTRACE_POKETEXT = 0x4
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETEVRREGS = 0x15
|
PTRACE_SETEVRREGS = 0x15
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
@@ -1116,21 +1290,32 @@ const (
|
|||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_LOCKS = 0xa
|
||||||
|
RLIMIT_MEMLOCK = 0x8
|
||||||
|
RLIMIT_MSGQUEUE = 0xc
|
||||||
|
RLIMIT_NICE = 0xd
|
||||||
RLIMIT_NOFILE = 0x7
|
RLIMIT_NOFILE = 0x7
|
||||||
|
RLIMIT_NPROC = 0x6
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
|
RLIMIT_RTPRIO = 0xe
|
||||||
|
RLIMIT_RTTIME = 0xf
|
||||||
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = -0x1
|
RLIM_INFINITY = -0x1
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
RTAX_FEATURES = 0xc
|
RTAX_FEATURES = 0xc
|
||||||
RTAX_FEATURE_ALLFRAG = 0x8
|
RTAX_FEATURE_ALLFRAG = 0x8
|
||||||
RTAX_FEATURE_ECN = 0x1
|
RTAX_FEATURE_ECN = 0x1
|
||||||
|
RTAX_FEATURE_MASK = 0xf
|
||||||
RTAX_FEATURE_SACK = 0x2
|
RTAX_FEATURE_SACK = 0x2
|
||||||
RTAX_FEATURE_TIMESTAMP = 0x4
|
RTAX_FEATURE_TIMESTAMP = 0x4
|
||||||
RTAX_HOPLIMIT = 0xa
|
RTAX_HOPLIMIT = 0xa
|
||||||
RTAX_INITCWND = 0xb
|
RTAX_INITCWND = 0xb
|
||||||
RTAX_INITRWND = 0xe
|
RTAX_INITRWND = 0xe
|
||||||
RTAX_LOCK = 0x1
|
RTAX_LOCK = 0x1
|
||||||
RTAX_MAX = 0xf
|
RTAX_MAX = 0x10
|
||||||
RTAX_MTU = 0x2
|
RTAX_MTU = 0x2
|
||||||
RTAX_QUICKACK = 0xf
|
RTAX_QUICKACK = 0xf
|
||||||
RTAX_REORDERING = 0x9
|
RTAX_REORDERING = 0x9
|
||||||
@@ -1141,7 +1326,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x11
|
RTA_MAX = 0x19
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1185,6 +1370,7 @@ const (
|
|||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
RTM_DELRULE = 0x21
|
RTM_DELRULE = 0x21
|
||||||
@@ -1192,6 +1378,7 @@ const (
|
|||||||
RTM_DELTFILTER = 0x2d
|
RTM_DELTFILTER = 0x2d
|
||||||
RTM_F_CLONED = 0x200
|
RTM_F_CLONED = 0x200
|
||||||
RTM_F_EQUALIZE = 0x400
|
RTM_F_EQUALIZE = 0x400
|
||||||
|
RTM_F_LOOKUP_TABLE = 0x1000
|
||||||
RTM_F_NOTIFY = 0x100
|
RTM_F_NOTIFY = 0x100
|
||||||
RTM_F_PREFIX = 0x800
|
RTM_F_PREFIX = 0x800
|
||||||
RTM_GETACTION = 0x32
|
RTM_GETACTION = 0x32
|
||||||
@@ -1205,12 +1392,14 @@ const (
|
|||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
RTM_GETRULE = 0x22
|
RTM_GETRULE = 0x22
|
||||||
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x57
|
RTM_MAX = 0x5f
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
@@ -1220,22 +1409,28 @@ const (
|
|||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
RTM_NEWROUTE = 0x18
|
RTM_NEWROUTE = 0x18
|
||||||
RTM_NEWRULE = 0x20
|
RTM_NEWRULE = 0x20
|
||||||
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x12
|
RTM_NR_FAMILIES = 0x14
|
||||||
RTM_NR_MSGTYPES = 0x48
|
RTM_NR_MSGTYPES = 0x50
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
RTNH_ALIGNTO = 0x4
|
RTNH_ALIGNTO = 0x4
|
||||||
|
RTNH_COMPARE_MASK = 0x19
|
||||||
RTNH_F_DEAD = 0x1
|
RTNH_F_DEAD = 0x1
|
||||||
|
RTNH_F_LINKDOWN = 0x10
|
||||||
|
RTNH_F_OFFLOAD = 0x8
|
||||||
RTNH_F_ONLINK = 0x4
|
RTNH_F_ONLINK = 0x4
|
||||||
RTNH_F_PERVASIVE = 0x2
|
RTNH_F_PERVASIVE = 0x2
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
|
RTPROT_BABEL = 0x2a
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
@@ -1263,8 +1458,12 @@ const (
|
|||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x1d
|
SCM_TIMESTAMP = 0x1d
|
||||||
SCM_TIMESTAMPING = 0x25
|
SCM_TIMESTAMPING = 0x25
|
||||||
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1272,6 +1471,16 @@ const (
|
|||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
@@ -1279,7 +1488,9 @@ const (
|
|||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
@@ -1299,13 +1510,21 @@ const (
|
|||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x4004667f
|
||||||
|
SIOCOUTQ = 0x40047473
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
@@ -1324,11 +1543,15 @@ const (
|
|||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
@@ -1336,31 +1559,52 @@ const (
|
|||||||
SOCK_SEQPACKET = 0x5
|
SOCK_SEQPACKET = 0x5
|
||||||
SOCK_STREAM = 0x1
|
SOCK_STREAM = 0x1
|
||||||
SOL_AAL = 0x109
|
SOL_AAL = 0x109
|
||||||
|
SOL_ALG = 0x117
|
||||||
SOL_ATM = 0x108
|
SOL_ATM = 0x108
|
||||||
|
SOL_CAIF = 0x116
|
||||||
|
SOL_CAN_BASE = 0x64
|
||||||
|
SOL_DCCP = 0x10d
|
||||||
SOL_DECNET = 0x105
|
SOL_DECNET = 0x105
|
||||||
SOL_ICMPV6 = 0x3a
|
SOL_ICMPV6 = 0x3a
|
||||||
SOL_IP = 0x0
|
SOL_IP = 0x0
|
||||||
SOL_IPV6 = 0x29
|
SOL_IPV6 = 0x29
|
||||||
SOL_IRDA = 0x10a
|
SOL_IRDA = 0x10a
|
||||||
|
SOL_IUCV = 0x115
|
||||||
|
SOL_KCM = 0x119
|
||||||
|
SOL_LLC = 0x10c
|
||||||
|
SOL_NETBEUI = 0x10b
|
||||||
|
SOL_NETLINK = 0x10e
|
||||||
|
SOL_NFC = 0x118
|
||||||
SOL_PACKET = 0x107
|
SOL_PACKET = 0x107
|
||||||
|
SOL_PNPIPE = 0x113
|
||||||
|
SOL_PPPOL2TP = 0x111
|
||||||
SOL_RAW = 0xff
|
SOL_RAW = 0xff
|
||||||
|
SOL_RDS = 0x114
|
||||||
|
SOL_RXRPC = 0x110
|
||||||
SOL_SOCKET = 0x1
|
SOL_SOCKET = 0x1
|
||||||
SOL_TCP = 0x6
|
SOL_TCP = 0x6
|
||||||
|
SOL_TIPC = 0x10f
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
|
SO_ATTACH_BPF = 0x32
|
||||||
SO_ATTACH_FILTER = 0x1a
|
SO_ATTACH_FILTER = 0x1a
|
||||||
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
SO_BUSY_POLL = 0x2e
|
SO_BUSY_POLL = 0x2e
|
||||||
|
SO_CNX_ADVICE = 0x35
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
|
SO_INCOMING_CPU = 0x31
|
||||||
SO_KEEPALIVE = 0x9
|
SO_KEEPALIVE = 0x9
|
||||||
SO_LINGER = 0xd
|
SO_LINGER = 0xd
|
||||||
SO_LOCK_FILTER = 0x2c
|
SO_LOCK_FILTER = 0x2c
|
||||||
@@ -1396,7 +1640,18 @@ const (
|
|||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
SO_VM_SOCKETS_BUFFER_SIZE = 0x0
|
||||||
|
SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6
|
||||||
|
SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7
|
||||||
|
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
|
||||||
|
SO_VM_SOCKETS_TRUSTED = 0x5
|
||||||
SO_WIFI_STATUS = 0x29
|
SO_WIFI_STATUS = 0x29
|
||||||
|
SPLICE_F_GIFT = 0x8
|
||||||
|
SPLICE_F_MORE = 0x4
|
||||||
|
SPLICE_F_MOVE = 0x1
|
||||||
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@@ -1439,6 +1694,7 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1463,11 +1719,15 @@ const (
|
|||||||
TCP_MSS_DEFAULT = 0x218
|
TCP_MSS_DEFAULT = 0x218
|
||||||
TCP_MSS_DESIRED = 0x4c4
|
TCP_MSS_DESIRED = 0x4c4
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
|
TCP_NOTSENT_LOWAT = 0x19
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
TCP_SAVED_SYN = 0x1c
|
||||||
|
TCP_SAVE_SYN = 0x1b
|
||||||
TCP_SYNCNT = 0x7
|
TCP_SYNCNT = 0x7
|
||||||
TCP_S_DATA_IN = 0x4
|
TCP_S_DATA_IN = 0x4
|
||||||
TCP_S_DATA_OUT = 0x8
|
TCP_S_DATA_OUT = 0x8
|
||||||
@@ -1573,7 +1833,9 @@ const (
|
|||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
TUNGETSNDBUF = 0x400454d3
|
TUNGETSNDBUF = 0x400454d3
|
||||||
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
|
TUNGETVNETLE = 0x400454dd
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
TUNSETIFF = 0x800454ca
|
TUNSETIFF = 0x800454ca
|
||||||
@@ -1586,7 +1848,10 @@ const (
|
|||||||
TUNSETQUEUE = 0x800454d9
|
TUNSETQUEUE = 0x800454d9
|
||||||
TUNSETSNDBUF = 0x800454d4
|
TUNSETSNDBUF = 0x800454d4
|
||||||
TUNSETTXFILTER = 0x800454d1
|
TUNSETTXFILTER = 0x800454d1
|
||||||
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
VDISCARD = 0x10
|
VDISCARD = 0x10
|
||||||
VEOF = 0x4
|
VEOF = 0x4
|
||||||
VEOL = 0x6
|
VEOL = 0x6
|
||||||
@@ -1595,7 +1860,13 @@ const (
|
|||||||
VINTR = 0x0
|
VINTR = 0x0
|
||||||
VKILL = 0x3
|
VKILL = 0x3
|
||||||
VLNEXT = 0xf
|
VLNEXT = 0xf
|
||||||
|
VMADDR_CID_ANY = 0xffffffff
|
||||||
|
VMADDR_CID_HOST = 0x2
|
||||||
|
VMADDR_CID_HYPERVISOR = 0x0
|
||||||
|
VMADDR_CID_RESERVED = 0x1
|
||||||
|
VMADDR_PORT_ANY = 0xffffffff
|
||||||
VMIN = 0x5
|
VMIN = 0x5
|
||||||
|
VM_SOCKETS_INVALID_VERSION = 0xffffffff
|
||||||
VQUIT = 0x1
|
VQUIT = 0x1
|
||||||
VREPRINT = 0xb
|
VREPRINT = 0xb
|
||||||
VSTART = 0xd
|
VSTART = 0xd
|
||||||
@@ -1617,6 +1888,8 @@ const (
|
|||||||
WORDSIZE = 0x40
|
WORDSIZE = 0x40
|
||||||
WSTOPPED = 0x2
|
WSTOPPED = 0x2
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x1
|
||||||
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4000
|
XCASE = 0x4000
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
)
|
)
|
||||||
|
|||||||
344
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
344
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
@@ -1,10 +1,10 @@
|
|||||||
// mkerrors.sh -m64
|
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build ppc64le,linux
|
// +build ppc64le,linux
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Created by cgo -godefs - DO NOT EDIT
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -24,6 +24,7 @@ const (
|
|||||||
AF_DECnet = 0xc
|
AF_DECnet = 0xc
|
||||||
AF_ECONET = 0x13
|
AF_ECONET = 0x13
|
||||||
AF_FILE = 0x1
|
AF_FILE = 0x1
|
||||||
|
AF_IB = 0x1b
|
||||||
AF_IEEE802154 = 0x24
|
AF_IEEE802154 = 0x24
|
||||||
AF_INET = 0x2
|
AF_INET = 0x2
|
||||||
AF_INET6 = 0xa
|
AF_INET6 = 0xa
|
||||||
@@ -31,10 +32,12 @@ const (
|
|||||||
AF_IRDA = 0x17
|
AF_IRDA = 0x17
|
||||||
AF_ISDN = 0x22
|
AF_ISDN = 0x22
|
||||||
AF_IUCV = 0x20
|
AF_IUCV = 0x20
|
||||||
|
AF_KCM = 0x29
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x29
|
AF_MAX = 0x2b
|
||||||
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
AF_NETROM = 0x6
|
AF_NETROM = 0x6
|
||||||
@@ -42,6 +45,7 @@ const (
|
|||||||
AF_PACKET = 0x11
|
AF_PACKET = 0x11
|
||||||
AF_PHONET = 0x23
|
AF_PHONET = 0x23
|
||||||
AF_PPPOX = 0x18
|
AF_PPPOX = 0x18
|
||||||
|
AF_QIPCRTR = 0x2a
|
||||||
AF_RDS = 0x15
|
AF_RDS = 0x15
|
||||||
AF_ROSE = 0xb
|
AF_ROSE = 0xb
|
||||||
AF_ROUTE = 0x10
|
AF_ROUTE = 0x10
|
||||||
@@ -54,6 +58,14 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
ALG_OP_DECRYPT = 0x0
|
||||||
|
ALG_OP_ENCRYPT = 0x1
|
||||||
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
ALG_SET_AEAD_AUTHSIZE = 0x5
|
||||||
|
ALG_SET_IV = 0x2
|
||||||
|
ALG_SET_KEY = 0x1
|
||||||
|
ALG_SET_OP = 0x3
|
||||||
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
ARPHRD_ARCNET = 0x7
|
ARPHRD_ARCNET = 0x7
|
||||||
@@ -149,6 +161,22 @@ const (
|
|||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x16
|
B921600 = 0x16
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BLKBSZGET = 0x40081270
|
||||||
|
BLKBSZSET = 0x80081271
|
||||||
|
BLKFLSBUF = 0x20001261
|
||||||
|
BLKFRAGET = 0x20001265
|
||||||
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETSIZE = 0x20001260
|
||||||
|
BLKGETSIZE64 = 0x40081272
|
||||||
|
BLKPBSZGET = 0x2000127b
|
||||||
|
BLKRAGET = 0x20001263
|
||||||
|
BLKRASET = 0x20001262
|
||||||
|
BLKROGET = 0x2000125e
|
||||||
|
BLKROSET = 0x2000125d
|
||||||
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECTGET = 0x20001267
|
||||||
|
BLKSECTSET = 0x20001266
|
||||||
|
BLKSSZGET = 0x20001268
|
||||||
BOTHER = 0x1f
|
BOTHER = 0x1f
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
@@ -170,6 +198,7 @@ const (
|
|||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
BPF_LEN = 0x80
|
BPF_LEN = 0x80
|
||||||
|
BPF_LL_OFF = -0x200000
|
||||||
BPF_LSH = 0x60
|
BPF_LSH = 0x60
|
||||||
BPF_MAJOR_VERSION = 0x1
|
BPF_MAJOR_VERSION = 0x1
|
||||||
BPF_MAXINSNS = 0x1000
|
BPF_MAXINSNS = 0x1000
|
||||||
@@ -181,6 +210,7 @@ const (
|
|||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
|
BPF_NET_OFF = -0x100000
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
@@ -196,6 +226,26 @@ const (
|
|||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x8000
|
BS1 = 0x8000
|
||||||
BSDLY = 0x8000
|
BSDLY = 0x8000
|
||||||
|
CAN_BCM = 0x2
|
||||||
|
CAN_EFF_FLAG = 0x80000000
|
||||||
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
CAN_EFF_MASK = 0x1fffffff
|
||||||
|
CAN_ERR_FLAG = 0x20000000
|
||||||
|
CAN_ERR_MASK = 0x1fffffff
|
||||||
|
CAN_INV_FILTER = 0x20000000
|
||||||
|
CAN_ISOTP = 0x6
|
||||||
|
CAN_MAX_DLC = 0x8
|
||||||
|
CAN_MAX_DLEN = 0x8
|
||||||
|
CAN_MCNET = 0x5
|
||||||
|
CAN_MTU = 0x10
|
||||||
|
CAN_NPROTO = 0x7
|
||||||
|
CAN_RAW = 0x1
|
||||||
|
CAN_RAW_FILTER_MAX = 0x200
|
||||||
|
CAN_RTR_FLAG = 0x40000000
|
||||||
|
CAN_SFF_ID_BITS = 0xb
|
||||||
|
CAN_SFF_MASK = 0x7ff
|
||||||
|
CAN_TP16 = 0x3
|
||||||
|
CAN_TP20 = 0x4
|
||||||
CBAUD = 0xff
|
CBAUD = 0xff
|
||||||
CBAUDEX = 0x0
|
CBAUDEX = 0x0
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -213,6 +263,7 @@ const (
|
|||||||
CLOCK_REALTIME = 0x0
|
CLOCK_REALTIME = 0x0
|
||||||
CLOCK_REALTIME_ALARM = 0x8
|
CLOCK_REALTIME_ALARM = 0x8
|
||||||
CLOCK_REALTIME_COARSE = 0x5
|
CLOCK_REALTIME_COARSE = 0x5
|
||||||
|
CLOCK_TAI = 0xb
|
||||||
CLOCK_THREAD_CPUTIME_ID = 0x3
|
CLOCK_THREAD_CPUTIME_ID = 0x3
|
||||||
CLOCK_TXFROMRX = 0x4
|
CLOCK_TXFROMRX = 0x4
|
||||||
CLOCK_TXINT = 0x3
|
CLOCK_TXINT = 0x3
|
||||||
@@ -274,6 +325,9 @@ const (
|
|||||||
ECHOKE = 0x1
|
ECHOKE = 0x1
|
||||||
ECHONL = 0x10
|
ECHONL = 0x10
|
||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
|
EFD_CLOEXEC = 0x80000
|
||||||
|
EFD_NONBLOCK = 0x800
|
||||||
|
EFD_SEMAPHORE = 0x1
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
@@ -282,6 +336,7 @@ const (
|
|||||||
ENCODING_NRZI = 0x2
|
ENCODING_NRZI = 0x2
|
||||||
EPOLLERR = 0x8
|
EPOLLERR = 0x8
|
||||||
EPOLLET = 0x80000000
|
EPOLLET = 0x80000000
|
||||||
|
EPOLLEXCLUSIVE = 0x10000000
|
||||||
EPOLLHUP = 0x10
|
EPOLLHUP = 0x10
|
||||||
EPOLLIN = 0x1
|
EPOLLIN = 0x1
|
||||||
EPOLLMSG = 0x400
|
EPOLLMSG = 0x400
|
||||||
@@ -302,6 +357,7 @@ const (
|
|||||||
ETH_P_8021AD = 0x88a8
|
ETH_P_8021AD = 0x88a8
|
||||||
ETH_P_8021AH = 0x88e7
|
ETH_P_8021AH = 0x88e7
|
||||||
ETH_P_8021Q = 0x8100
|
ETH_P_8021Q = 0x8100
|
||||||
|
ETH_P_80221 = 0x8917
|
||||||
ETH_P_802_2 = 0x4
|
ETH_P_802_2 = 0x4
|
||||||
ETH_P_802_3 = 0x1
|
ETH_P_802_3 = 0x1
|
||||||
ETH_P_802_3_MIN = 0x600
|
ETH_P_802_3_MIN = 0x600
|
||||||
@@ -335,6 +391,7 @@ const (
|
|||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
ETH_P_HSR = 0x892f
|
||||||
ETH_P_IEEE802154 = 0xf6
|
ETH_P_IEEE802154 = 0xf6
|
||||||
ETH_P_IEEEPUP = 0xa00
|
ETH_P_IEEEPUP = 0xa00
|
||||||
ETH_P_IEEEPUPAT = 0xa01
|
ETH_P_IEEEPUPAT = 0xa01
|
||||||
@@ -346,10 +403,13 @@ const (
|
|||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
ETH_P_MACSEC = 0x88e5
|
||||||
ETH_P_MOBITEX = 0x15
|
ETH_P_MOBITEX = 0x15
|
||||||
ETH_P_MPLS_MC = 0x8848
|
ETH_P_MPLS_MC = 0x8848
|
||||||
ETH_P_MPLS_UC = 0x8847
|
ETH_P_MPLS_UC = 0x8847
|
||||||
ETH_P_MVRP = 0x88f5
|
ETH_P_MVRP = 0x88f5
|
||||||
|
ETH_P_NCSI = 0x88f8
|
||||||
ETH_P_PAE = 0x888e
|
ETH_P_PAE = 0x888e
|
||||||
ETH_P_PAUSE = 0x8808
|
ETH_P_PAUSE = 0x8808
|
||||||
ETH_P_PHONET = 0xf5
|
ETH_P_PHONET = 0xf5
|
||||||
@@ -372,18 +432,45 @@ const (
|
|||||||
ETH_P_TIPC = 0x88ca
|
ETH_P_TIPC = 0x88ca
|
||||||
ETH_P_TRAILER = 0x1c
|
ETH_P_TRAILER = 0x1c
|
||||||
ETH_P_TR_802_2 = 0x11
|
ETH_P_TR_802_2 = 0x11
|
||||||
|
ETH_P_TSN = 0x22f0
|
||||||
ETH_P_WAN_PPP = 0x7
|
ETH_P_WAN_PPP = 0x7
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
|
ETH_P_XDSA = 0xf8
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000000
|
EXTPROC = 0x10000000
|
||||||
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
FALLOC_FL_NO_HIDE_STALE = 0x4
|
||||||
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x4000
|
FF1 = 0x4000
|
||||||
FFDLY = 0x4000
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CTS = 0x4
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
FS_KEY_DESCRIPTOR_SIZE = 0x8
|
||||||
|
FS_KEY_DESC_PREFIX = "fscrypt:"
|
||||||
|
FS_KEY_DESC_PREFIX_SIZE = 0x8
|
||||||
|
FS_MAX_KEY_SIZE = 0x40
|
||||||
|
FS_POLICY_FLAGS_PAD_16 = 0x2
|
||||||
|
FS_POLICY_FLAGS_PAD_32 = 0x3
|
||||||
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
F_EXLCK = 0x4
|
F_EXLCK = 0x4
|
||||||
@@ -398,6 +485,9 @@ const (
|
|||||||
F_GETSIG = 0xb
|
F_GETSIG = 0xb
|
||||||
F_LOCK = 0x1
|
F_LOCK = 0x1
|
||||||
F_NOTIFY = 0x402
|
F_NOTIFY = 0x402
|
||||||
|
F_OFD_GETLK = 0x24
|
||||||
|
F_OFD_SETLK = 0x25
|
||||||
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
F_SETFD = 0x2
|
F_SETFD = 0x2
|
||||||
@@ -417,6 +507,8 @@ const (
|
|||||||
F_ULOCK = 0x0
|
F_ULOCK = 0x0
|
||||||
F_UNLCK = 0x2
|
F_UNLCK = 0x2
|
||||||
F_WRLCK = 0x1
|
F_WRLCK = 0x1
|
||||||
|
GRND_NONBLOCK = 0x1
|
||||||
|
GRND_RANDOM = 0x2
|
||||||
HUPCL = 0x4000
|
HUPCL = 0x4000
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x100
|
ICANON = 0x100
|
||||||
@@ -426,38 +518,29 @@ const (
|
|||||||
IFA_F_DADFAILED = 0x8
|
IFA_F_DADFAILED = 0x8
|
||||||
IFA_F_DEPRECATED = 0x20
|
IFA_F_DEPRECATED = 0x20
|
||||||
IFA_F_HOMEADDRESS = 0x10
|
IFA_F_HOMEADDRESS = 0x10
|
||||||
|
IFA_F_MANAGETEMPADDR = 0x100
|
||||||
|
IFA_F_MCAUTOJOIN = 0x400
|
||||||
IFA_F_NODAD = 0x2
|
IFA_F_NODAD = 0x2
|
||||||
|
IFA_F_NOPREFIXROUTE = 0x200
|
||||||
IFA_F_OPTIMISTIC = 0x4
|
IFA_F_OPTIMISTIC = 0x4
|
||||||
IFA_F_PERMANENT = 0x80
|
IFA_F_PERMANENT = 0x80
|
||||||
IFA_F_SECONDARY = 0x1
|
IFA_F_SECONDARY = 0x1
|
||||||
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x7
|
IFA_MAX = 0x8
|
||||||
IFF_802_1Q_VLAN = 0x1
|
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
IFF_BONDING = 0x20
|
|
||||||
IFF_BRIDGE_PORT = 0x4000
|
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_DEBUG = 0x4
|
IFF_DEBUG = 0x4
|
||||||
IFF_DETACH_QUEUE = 0x400
|
IFF_DETACH_QUEUE = 0x400
|
||||||
IFF_DISABLE_NETPOLL = 0x1000
|
|
||||||
IFF_DONT_BRIDGE = 0x800
|
|
||||||
IFF_DORMANT = 0x20000
|
IFF_DORMANT = 0x20000
|
||||||
IFF_DYNAMIC = 0x8000
|
IFF_DYNAMIC = 0x8000
|
||||||
IFF_EBRIDGE = 0x2
|
|
||||||
IFF_ECHO = 0x40000
|
IFF_ECHO = 0x40000
|
||||||
IFF_ISATAP = 0x80
|
|
||||||
IFF_LIVE_ADDR_CHANGE = 0x100000
|
|
||||||
IFF_LOOPBACK = 0x8
|
IFF_LOOPBACK = 0x8
|
||||||
IFF_LOWER_UP = 0x10000
|
IFF_LOWER_UP = 0x10000
|
||||||
IFF_MACVLAN = 0x200000
|
|
||||||
IFF_MACVLAN_PORT = 0x2000
|
|
||||||
IFF_MASTER = 0x400
|
IFF_MASTER = 0x400
|
||||||
IFF_MASTER_8023AD = 0x8
|
|
||||||
IFF_MASTER_ALB = 0x10
|
|
||||||
IFF_MASTER_ARPMON = 0x100
|
|
||||||
IFF_MULTICAST = 0x1000
|
IFF_MULTICAST = 0x1000
|
||||||
IFF_MULTI_QUEUE = 0x100
|
IFF_MULTI_QUEUE = 0x100
|
||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
@@ -465,27 +548,18 @@ const (
|
|||||||
IFF_NOTRAILERS = 0x20
|
IFF_NOTRAILERS = 0x20
|
||||||
IFF_NO_PI = 0x1000
|
IFF_NO_PI = 0x1000
|
||||||
IFF_ONE_QUEUE = 0x2000
|
IFF_ONE_QUEUE = 0x2000
|
||||||
IFF_OVS_DATAPATH = 0x8000
|
|
||||||
IFF_PERSIST = 0x800
|
IFF_PERSIST = 0x800
|
||||||
IFF_POINTOPOINT = 0x10
|
IFF_POINTOPOINT = 0x10
|
||||||
IFF_PORTSEL = 0x2000
|
IFF_PORTSEL = 0x2000
|
||||||
IFF_PROMISC = 0x100
|
IFF_PROMISC = 0x100
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SLAVE = 0x800
|
IFF_SLAVE = 0x800
|
||||||
IFF_SLAVE_INACTIVE = 0x4
|
|
||||||
IFF_SLAVE_NEEDARP = 0x40
|
|
||||||
IFF_SUPP_NOFCS = 0x80000
|
|
||||||
IFF_TAP = 0x2
|
IFF_TAP = 0x2
|
||||||
IFF_TEAM_PORT = 0x40000
|
|
||||||
IFF_TUN = 0x1
|
IFF_TUN = 0x1
|
||||||
IFF_TUN_EXCL = 0x8000
|
IFF_TUN_EXCL = 0x8000
|
||||||
IFF_TX_SKB_SHARING = 0x10000
|
|
||||||
IFF_UNICAST_FLT = 0x20000
|
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFF_VNET_HDR = 0x4000
|
IFF_VNET_HDR = 0x4000
|
||||||
IFF_VOLATILE = 0x70c5a
|
IFF_VOLATILE = 0x70c5a
|
||||||
IFF_WAN_HDLC = 0x200
|
|
||||||
IFF_XMIT_DST_RELEASE = 0x400
|
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IGNBRK = 0x1
|
IGNBRK = 0x1
|
||||||
IGNCR = 0x80
|
IGNCR = 0x80
|
||||||
@@ -550,6 +624,7 @@ const (
|
|||||||
IPPROTO_IPIP = 0x4
|
IPPROTO_IPIP = 0x4
|
||||||
IPPROTO_IPV6 = 0x29
|
IPPROTO_IPV6 = 0x29
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
|
IPPROTO_MPLS = 0x89
|
||||||
IPPROTO_MTP = 0x5c
|
IPPROTO_MTP = 0x5c
|
||||||
IPPROTO_NONE = 0x3b
|
IPPROTO_NONE = 0x3b
|
||||||
IPPROTO_PIM = 0x67
|
IPPROTO_PIM = 0x67
|
||||||
@@ -572,8 +647,10 @@ const (
|
|||||||
IPV6_ADD_MEMBERSHIP = 0x14
|
IPV6_ADD_MEMBERSHIP = 0x14
|
||||||
IPV6_AUTHHDR = 0xa
|
IPV6_AUTHHDR = 0xa
|
||||||
IPV6_CHECKSUM = 0x7
|
IPV6_CHECKSUM = 0x7
|
||||||
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
IPV6_IPSEC_POLICY = 0x22
|
IPV6_IPSEC_POLICY = 0x22
|
||||||
@@ -587,15 +664,19 @@ const (
|
|||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
IPV6_NEXTHOP = 0x9
|
IPV6_NEXTHOP = 0x9
|
||||||
|
IPV6_PATHMTU = 0x3d
|
||||||
IPV6_PKTINFO = 0x32
|
IPV6_PKTINFO = 0x32
|
||||||
IPV6_PMTUDISC_DO = 0x2
|
IPV6_PMTUDISC_DO = 0x2
|
||||||
IPV6_PMTUDISC_DONT = 0x0
|
IPV6_PMTUDISC_DONT = 0x0
|
||||||
|
IPV6_PMTUDISC_INTERFACE = 0x4
|
||||||
|
IPV6_PMTUDISC_OMIT = 0x5
|
||||||
IPV6_PMTUDISC_PROBE = 0x3
|
IPV6_PMTUDISC_PROBE = 0x3
|
||||||
IPV6_PMTUDISC_WANT = 0x1
|
IPV6_PMTUDISC_WANT = 0x1
|
||||||
IPV6_RECVDSTOPTS = 0x3a
|
IPV6_RECVDSTOPTS = 0x3a
|
||||||
IPV6_RECVERR = 0x19
|
IPV6_RECVERR = 0x19
|
||||||
IPV6_RECVHOPLIMIT = 0x33
|
IPV6_RECVHOPLIMIT = 0x33
|
||||||
IPV6_RECVHOPOPTS = 0x35
|
IPV6_RECVHOPOPTS = 0x35
|
||||||
|
IPV6_RECVPATHMTU = 0x3c
|
||||||
IPV6_RECVPKTINFO = 0x31
|
IPV6_RECVPKTINFO = 0x31
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
@@ -613,7 +694,9 @@ const (
|
|||||||
IPV6_XFRM_POLICY = 0x23
|
IPV6_XFRM_POLICY = 0x23
|
||||||
IP_ADD_MEMBERSHIP = 0x23
|
IP_ADD_MEMBERSHIP = 0x23
|
||||||
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
IP_ADD_SOURCE_MEMBERSHIP = 0x27
|
||||||
|
IP_BIND_ADDRESS_NO_PORT = 0x18
|
||||||
IP_BLOCK_SOURCE = 0x26
|
IP_BLOCK_SOURCE = 0x26
|
||||||
|
IP_CHECKSUM = 0x17
|
||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
IP_DF = 0x4000
|
IP_DF = 0x4000
|
||||||
@@ -634,6 +717,7 @@ const (
|
|||||||
IP_MULTICAST_IF = 0x20
|
IP_MULTICAST_IF = 0x20
|
||||||
IP_MULTICAST_LOOP = 0x22
|
IP_MULTICAST_LOOP = 0x22
|
||||||
IP_MULTICAST_TTL = 0x21
|
IP_MULTICAST_TTL = 0x21
|
||||||
|
IP_NODEFRAG = 0x16
|
||||||
IP_OFFMASK = 0x1fff
|
IP_OFFMASK = 0x1fff
|
||||||
IP_OPTIONS = 0x4
|
IP_OPTIONS = 0x4
|
||||||
IP_ORIGDSTADDR = 0x14
|
IP_ORIGDSTADDR = 0x14
|
||||||
@@ -643,6 +727,8 @@ const (
|
|||||||
IP_PMTUDISC = 0xa
|
IP_PMTUDISC = 0xa
|
||||||
IP_PMTUDISC_DO = 0x2
|
IP_PMTUDISC_DO = 0x2
|
||||||
IP_PMTUDISC_DONT = 0x0
|
IP_PMTUDISC_DONT = 0x0
|
||||||
|
IP_PMTUDISC_INTERFACE = 0x4
|
||||||
|
IP_PMTUDISC_OMIT = 0x5
|
||||||
IP_PMTUDISC_PROBE = 0x3
|
IP_PMTUDISC_PROBE = 0x3
|
||||||
IP_PMTUDISC_WANT = 0x1
|
IP_PMTUDISC_WANT = 0x1
|
||||||
IP_RECVERR = 0xb
|
IP_RECVERR = 0xb
|
||||||
@@ -667,6 +753,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
@@ -686,6 +813,7 @@ const (
|
|||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
MADV_DONTFORK = 0xa
|
MADV_DONTFORK = 0xa
|
||||||
MADV_DONTNEED = 0x4
|
MADV_DONTNEED = 0x4
|
||||||
|
MADV_FREE = 0x8
|
||||||
MADV_HUGEPAGE = 0xe
|
MADV_HUGEPAGE = 0xe
|
||||||
MADV_HWPOISON = 0x64
|
MADV_HWPOISON = 0x64
|
||||||
MADV_MERGEABLE = 0xc
|
MADV_MERGEABLE = 0xc
|
||||||
@@ -716,9 +844,11 @@ const (
|
|||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
MCL_FUTURE = 0x4000
|
MCL_FUTURE = 0x4000
|
||||||
|
MCL_ONFAULT = 0x8000
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
MSG_CTRUNC = 0x8
|
MSG_CTRUNC = 0x8
|
||||||
@@ -742,10 +872,12 @@ const (
|
|||||||
MS_ACTIVE = 0x40000000
|
MS_ACTIVE = 0x40000000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_BIND = 0x1000
|
MS_BIND = 0x1000
|
||||||
|
MS_BORN = 0x20000000
|
||||||
MS_DIRSYNC = 0x80
|
MS_DIRSYNC = 0x80
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_I_VERSION = 0x800000
|
MS_I_VERSION = 0x800000
|
||||||
MS_KERNMOUNT = 0x400000
|
MS_KERNMOUNT = 0x400000
|
||||||
|
MS_LAZYTIME = 0x2000000
|
||||||
MS_MANDLOCK = 0x40
|
MS_MANDLOCK = 0x40
|
||||||
MS_MGC_MSK = 0xffff0000
|
MS_MGC_MSK = 0xffff0000
|
||||||
MS_MGC_VAL = 0xc0ed0000
|
MS_MGC_VAL = 0xc0ed0000
|
||||||
@@ -754,6 +886,8 @@ const (
|
|||||||
MS_NODEV = 0x4
|
MS_NODEV = 0x4
|
||||||
MS_NODIRATIME = 0x800
|
MS_NODIRATIME = 0x800
|
||||||
MS_NOEXEC = 0x8
|
MS_NOEXEC = 0x8
|
||||||
|
MS_NOREMOTELOCK = 0x8000000
|
||||||
|
MS_NOSEC = 0x10000000
|
||||||
MS_NOSUID = 0x2
|
MS_NOSUID = 0x2
|
||||||
MS_NOUSER = -0x80000000
|
MS_NOUSER = -0x80000000
|
||||||
MS_POSIXACL = 0x10000
|
MS_POSIXACL = 0x10000
|
||||||
@@ -762,7 +896,7 @@ const (
|
|||||||
MS_REC = 0x4000
|
MS_REC = 0x4000
|
||||||
MS_RELATIME = 0x200000
|
MS_RELATIME = 0x200000
|
||||||
MS_REMOUNT = 0x20
|
MS_REMOUNT = 0x20
|
||||||
MS_RMT_MASK = 0x800051
|
MS_RMT_MASK = 0x2800051
|
||||||
MS_SHARED = 0x100000
|
MS_SHARED = 0x100000
|
||||||
MS_SILENT = 0x8000
|
MS_SILENT = 0x8000
|
||||||
MS_SLAVE = 0x80000
|
MS_SLAVE = 0x80000
|
||||||
@@ -770,10 +904,12 @@ const (
|
|||||||
MS_SYNC = 0x4
|
MS_SYNC = 0x4
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
|
MS_VERBOSE = 0x8000
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
NETLINK_CAP_ACK = 0xa
|
||||||
NETLINK_CONNECTOR = 0xb
|
NETLINK_CONNECTOR = 0xb
|
||||||
NETLINK_CRYPTO = 0x15
|
NETLINK_CRYPTO = 0x15
|
||||||
NETLINK_DNRTMSG = 0xe
|
NETLINK_DNRTMSG = 0xe
|
||||||
@@ -786,6 +922,8 @@ const (
|
|||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
NETLINK_KOBJECT_UEVENT = 0xf
|
NETLINK_KOBJECT_UEVENT = 0xf
|
||||||
|
NETLINK_LISTEN_ALL_NSID = 0x8
|
||||||
|
NETLINK_LIST_MEMBERSHIPS = 0x9
|
||||||
NETLINK_NETFILTER = 0xc
|
NETLINK_NETFILTER = 0xc
|
||||||
NETLINK_NFLOG = 0x5
|
NETLINK_NFLOG = 0x5
|
||||||
NETLINK_NO_ENOBUFS = 0x5
|
NETLINK_NO_ENOBUFS = 0x5
|
||||||
@@ -821,6 +959,7 @@ const (
|
|||||||
NLM_F_ATOMIC = 0x400
|
NLM_F_ATOMIC = 0x400
|
||||||
NLM_F_CREATE = 0x400
|
NLM_F_CREATE = 0x400
|
||||||
NLM_F_DUMP = 0x300
|
NLM_F_DUMP = 0x300
|
||||||
|
NLM_F_DUMP_FILTERED = 0x20
|
||||||
NLM_F_DUMP_INTR = 0x10
|
NLM_F_DUMP_INTR = 0x10
|
||||||
NLM_F_ECHO = 0x8
|
NLM_F_ECHO = 0x8
|
||||||
NLM_F_EXCL = 0x200
|
NLM_F_EXCL = 0x200
|
||||||
@@ -859,7 +998,7 @@ const (
|
|||||||
O_RDWR = 0x2
|
O_RDWR = 0x2
|
||||||
O_RSYNC = 0x101000
|
O_RSYNC = 0x101000
|
||||||
O_SYNC = 0x101000
|
O_SYNC = 0x101000
|
||||||
O_TMPFILE = 0x410000
|
O_TMPFILE = 0x404000
|
||||||
O_TRUNC = 0x200
|
O_TRUNC = 0x200
|
||||||
O_WRONLY = 0x1
|
O_WRONLY = 0x1
|
||||||
PACKET_ADD_MEMBERSHIP = 0x1
|
PACKET_ADD_MEMBERSHIP = 0x1
|
||||||
@@ -868,16 +1007,21 @@ const (
|
|||||||
PACKET_COPY_THRESH = 0x7
|
PACKET_COPY_THRESH = 0x7
|
||||||
PACKET_DROP_MEMBERSHIP = 0x2
|
PACKET_DROP_MEMBERSHIP = 0x2
|
||||||
PACKET_FANOUT = 0x12
|
PACKET_FANOUT = 0x12
|
||||||
|
PACKET_FANOUT_CBPF = 0x6
|
||||||
PACKET_FANOUT_CPU = 0x2
|
PACKET_FANOUT_CPU = 0x2
|
||||||
|
PACKET_FANOUT_DATA = 0x16
|
||||||
|
PACKET_FANOUT_EBPF = 0x7
|
||||||
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
|
PACKET_FANOUT_FLAG_DEFRAG = 0x8000
|
||||||
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
|
PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
|
||||||
PACKET_FANOUT_HASH = 0x0
|
PACKET_FANOUT_HASH = 0x0
|
||||||
PACKET_FANOUT_LB = 0x1
|
PACKET_FANOUT_LB = 0x1
|
||||||
|
PACKET_FANOUT_QM = 0x5
|
||||||
PACKET_FANOUT_RND = 0x4
|
PACKET_FANOUT_RND = 0x4
|
||||||
PACKET_FANOUT_ROLLOVER = 0x3
|
PACKET_FANOUT_ROLLOVER = 0x3
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
PACKET_MR_ALLMULTI = 0x2
|
PACKET_MR_ALLMULTI = 0x2
|
||||||
@@ -888,14 +1032,17 @@ const (
|
|||||||
PACKET_ORIGDEV = 0x9
|
PACKET_ORIGDEV = 0x9
|
||||||
PACKET_OTHERHOST = 0x3
|
PACKET_OTHERHOST = 0x3
|
||||||
PACKET_OUTGOING = 0x4
|
PACKET_OUTGOING = 0x4
|
||||||
|
PACKET_QDISC_BYPASS = 0x14
|
||||||
PACKET_RECV_OUTPUT = 0x3
|
PACKET_RECV_OUTPUT = 0x3
|
||||||
PACKET_RESERVE = 0xc
|
PACKET_RESERVE = 0xc
|
||||||
|
PACKET_ROLLOVER_STATS = 0x15
|
||||||
PACKET_RX_RING = 0x5
|
PACKET_RX_RING = 0x5
|
||||||
PACKET_STATISTICS = 0x6
|
PACKET_STATISTICS = 0x6
|
||||||
PACKET_TIMESTAMP = 0x11
|
PACKET_TIMESTAMP = 0x11
|
||||||
PACKET_TX_HAS_OFF = 0x13
|
PACKET_TX_HAS_OFF = 0x13
|
||||||
PACKET_TX_RING = 0xd
|
PACKET_TX_RING = 0xd
|
||||||
PACKET_TX_TIMESTAMP = 0x10
|
PACKET_TX_TIMESTAMP = 0x10
|
||||||
|
PACKET_USER = 0x6
|
||||||
PACKET_VERSION = 0xa
|
PACKET_VERSION = 0xa
|
||||||
PACKET_VNET_HDR = 0xf
|
PACKET_VNET_HDR = 0xf
|
||||||
PARENB = 0x1000
|
PARENB = 0x1000
|
||||||
@@ -910,6 +1057,16 @@ const (
|
|||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
PARODD = 0x2000
|
PARODD = 0x2000
|
||||||
PENDIN = 0x20000000
|
PENDIN = 0x20000000
|
||||||
|
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||||
|
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||||
|
PERF_EVENT_IOC_ID = 0x40082407
|
||||||
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||||
|
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||||
|
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||||
|
PERF_EVENT_IOC_RESET = 0x20002403
|
||||||
|
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||||
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -922,6 +1079,11 @@ const (
|
|||||||
PROT_WRITE = 0x2
|
PROT_WRITE = 0x2
|
||||||
PR_CAPBSET_DROP = 0x18
|
PR_CAPBSET_DROP = 0x18
|
||||||
PR_CAPBSET_READ = 0x17
|
PR_CAPBSET_READ = 0x17
|
||||||
|
PR_CAP_AMBIENT = 0x2f
|
||||||
|
PR_CAP_AMBIENT_CLEAR_ALL = 0x4
|
||||||
|
PR_CAP_AMBIENT_IS_SET = 0x1
|
||||||
|
PR_CAP_AMBIENT_LOWER = 0x3
|
||||||
|
PR_CAP_AMBIENT_RAISE = 0x2
|
||||||
PR_ENDIAN_BIG = 0x0
|
PR_ENDIAN_BIG = 0x0
|
||||||
PR_ENDIAN_LITTLE = 0x1
|
PR_ENDIAN_LITTLE = 0x1
|
||||||
PR_ENDIAN_PPC_LITTLE = 0x2
|
PR_ENDIAN_PPC_LITTLE = 0x2
|
||||||
@@ -937,17 +1099,21 @@ const (
|
|||||||
PR_FP_EXC_RES = 0x80000
|
PR_FP_EXC_RES = 0x80000
|
||||||
PR_FP_EXC_SW_ENABLE = 0x80
|
PR_FP_EXC_SW_ENABLE = 0x80
|
||||||
PR_FP_EXC_UND = 0x40000
|
PR_FP_EXC_UND = 0x40000
|
||||||
|
PR_FP_MODE_FR = 0x1
|
||||||
|
PR_FP_MODE_FRE = 0x2
|
||||||
PR_GET_CHILD_SUBREAPER = 0x25
|
PR_GET_CHILD_SUBREAPER = 0x25
|
||||||
PR_GET_DUMPABLE = 0x3
|
PR_GET_DUMPABLE = 0x3
|
||||||
PR_GET_ENDIAN = 0x13
|
PR_GET_ENDIAN = 0x13
|
||||||
PR_GET_FPEMU = 0x9
|
PR_GET_FPEMU = 0x9
|
||||||
PR_GET_FPEXC = 0xb
|
PR_GET_FPEXC = 0xb
|
||||||
|
PR_GET_FP_MODE = 0x2e
|
||||||
PR_GET_KEEPCAPS = 0x7
|
PR_GET_KEEPCAPS = 0x7
|
||||||
PR_GET_NAME = 0x10
|
PR_GET_NAME = 0x10
|
||||||
PR_GET_NO_NEW_PRIVS = 0x27
|
PR_GET_NO_NEW_PRIVS = 0x27
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
PR_GET_TIMING = 0xd
|
PR_GET_TIMING = 0xd
|
||||||
@@ -960,11 +1126,14 @@ const (
|
|||||||
PR_MCE_KILL_GET = 0x22
|
PR_MCE_KILL_GET = 0x22
|
||||||
PR_MCE_KILL_LATE = 0x0
|
PR_MCE_KILL_LATE = 0x0
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
PR_SET_FPEMU = 0xa
|
PR_SET_FPEMU = 0xa
|
||||||
PR_SET_FPEXC = 0xc
|
PR_SET_FPEXC = 0xc
|
||||||
|
PR_SET_FP_MODE = 0x2d
|
||||||
PR_SET_KEEPCAPS = 0x8
|
PR_SET_KEEPCAPS = 0x8
|
||||||
PR_SET_MM = 0x23
|
PR_SET_MM = 0x23
|
||||||
PR_SET_MM_ARG_END = 0x9
|
PR_SET_MM_ARG_END = 0x9
|
||||||
@@ -976,6 +1145,8 @@ const (
|
|||||||
PR_SET_MM_ENV_END = 0xb
|
PR_SET_MM_ENV_END = 0xb
|
||||||
PR_SET_MM_ENV_START = 0xa
|
PR_SET_MM_ENV_START = 0xa
|
||||||
PR_SET_MM_EXE_FILE = 0xd
|
PR_SET_MM_EXE_FILE = 0xd
|
||||||
|
PR_SET_MM_MAP = 0xe
|
||||||
|
PR_SET_MM_MAP_SIZE = 0xf
|
||||||
PR_SET_MM_START_BRK = 0x6
|
PR_SET_MM_START_BRK = 0x6
|
||||||
PR_SET_MM_START_CODE = 0x1
|
PR_SET_MM_START_CODE = 0x1
|
||||||
PR_SET_MM_START_DATA = 0x3
|
PR_SET_MM_START_DATA = 0x3
|
||||||
@@ -987,6 +1158,7 @@ const (
|
|||||||
PR_SET_PTRACER_ANY = -0x1
|
PR_SET_PTRACER_ANY = -0x1
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
@@ -1025,7 +1197,8 @@ const (
|
|||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LISTEN = 0x4208
|
PTRACE_LISTEN = 0x4208
|
||||||
PTRACE_O_EXITKILL = 0x100000
|
PTRACE_O_EXITKILL = 0x100000
|
||||||
PTRACE_O_MASK = 0x1000ff
|
PTRACE_O_MASK = 0x3000ff
|
||||||
|
PTRACE_O_SUSPEND_SECCOMP = 0x200000
|
||||||
PTRACE_O_TRACECLONE = 0x8
|
PTRACE_O_TRACECLONE = 0x8
|
||||||
PTRACE_O_TRACEEXEC = 0x10
|
PTRACE_O_TRACEEXEC = 0x10
|
||||||
PTRACE_O_TRACEEXIT = 0x40
|
PTRACE_O_TRACEEXIT = 0x40
|
||||||
@@ -1042,6 +1215,7 @@ const (
|
|||||||
PTRACE_POKEDATA = 0x5
|
PTRACE_POKEDATA = 0x5
|
||||||
PTRACE_POKETEXT = 0x4
|
PTRACE_POKETEXT = 0x4
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETEVRREGS = 0x15
|
PTRACE_SETEVRREGS = 0x15
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
@@ -1116,21 +1290,32 @@ const (
|
|||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_LOCKS = 0xa
|
||||||
|
RLIMIT_MEMLOCK = 0x8
|
||||||
|
RLIMIT_MSGQUEUE = 0xc
|
||||||
|
RLIMIT_NICE = 0xd
|
||||||
RLIMIT_NOFILE = 0x7
|
RLIMIT_NOFILE = 0x7
|
||||||
|
RLIMIT_NPROC = 0x6
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
|
RLIMIT_RTPRIO = 0xe
|
||||||
|
RLIMIT_RTTIME = 0xf
|
||||||
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = -0x1
|
RLIM_INFINITY = -0x1
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
RTAX_FEATURES = 0xc
|
RTAX_FEATURES = 0xc
|
||||||
RTAX_FEATURE_ALLFRAG = 0x8
|
RTAX_FEATURE_ALLFRAG = 0x8
|
||||||
RTAX_FEATURE_ECN = 0x1
|
RTAX_FEATURE_ECN = 0x1
|
||||||
|
RTAX_FEATURE_MASK = 0xf
|
||||||
RTAX_FEATURE_SACK = 0x2
|
RTAX_FEATURE_SACK = 0x2
|
||||||
RTAX_FEATURE_TIMESTAMP = 0x4
|
RTAX_FEATURE_TIMESTAMP = 0x4
|
||||||
RTAX_HOPLIMIT = 0xa
|
RTAX_HOPLIMIT = 0xa
|
||||||
RTAX_INITCWND = 0xb
|
RTAX_INITCWND = 0xb
|
||||||
RTAX_INITRWND = 0xe
|
RTAX_INITRWND = 0xe
|
||||||
RTAX_LOCK = 0x1
|
RTAX_LOCK = 0x1
|
||||||
RTAX_MAX = 0xf
|
RTAX_MAX = 0x10
|
||||||
RTAX_MTU = 0x2
|
RTAX_MTU = 0x2
|
||||||
RTAX_QUICKACK = 0xf
|
RTAX_QUICKACK = 0xf
|
||||||
RTAX_REORDERING = 0x9
|
RTAX_REORDERING = 0x9
|
||||||
@@ -1141,7 +1326,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x11
|
RTA_MAX = 0x19
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1185,6 +1370,7 @@ const (
|
|||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
RTM_DELRULE = 0x21
|
RTM_DELRULE = 0x21
|
||||||
@@ -1192,6 +1378,7 @@ const (
|
|||||||
RTM_DELTFILTER = 0x2d
|
RTM_DELTFILTER = 0x2d
|
||||||
RTM_F_CLONED = 0x200
|
RTM_F_CLONED = 0x200
|
||||||
RTM_F_EQUALIZE = 0x400
|
RTM_F_EQUALIZE = 0x400
|
||||||
|
RTM_F_LOOKUP_TABLE = 0x1000
|
||||||
RTM_F_NOTIFY = 0x100
|
RTM_F_NOTIFY = 0x100
|
||||||
RTM_F_PREFIX = 0x800
|
RTM_F_PREFIX = 0x800
|
||||||
RTM_GETACTION = 0x32
|
RTM_GETACTION = 0x32
|
||||||
@@ -1205,12 +1392,14 @@ const (
|
|||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
RTM_GETRULE = 0x22
|
RTM_GETRULE = 0x22
|
||||||
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x57
|
RTM_MAX = 0x5f
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
@@ -1220,22 +1409,28 @@ const (
|
|||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
RTM_NEWROUTE = 0x18
|
RTM_NEWROUTE = 0x18
|
||||||
RTM_NEWRULE = 0x20
|
RTM_NEWRULE = 0x20
|
||||||
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x12
|
RTM_NR_FAMILIES = 0x14
|
||||||
RTM_NR_MSGTYPES = 0x48
|
RTM_NR_MSGTYPES = 0x50
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
RTNH_ALIGNTO = 0x4
|
RTNH_ALIGNTO = 0x4
|
||||||
|
RTNH_COMPARE_MASK = 0x19
|
||||||
RTNH_F_DEAD = 0x1
|
RTNH_F_DEAD = 0x1
|
||||||
|
RTNH_F_LINKDOWN = 0x10
|
||||||
|
RTNH_F_OFFLOAD = 0x8
|
||||||
RTNH_F_ONLINK = 0x4
|
RTNH_F_ONLINK = 0x4
|
||||||
RTNH_F_PERVASIVE = 0x2
|
RTNH_F_PERVASIVE = 0x2
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
|
RTPROT_BABEL = 0x2a
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
@@ -1263,8 +1458,12 @@ const (
|
|||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x1d
|
SCM_TIMESTAMP = 0x1d
|
||||||
SCM_TIMESTAMPING = 0x25
|
SCM_TIMESTAMPING = 0x25
|
||||||
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1272,6 +1471,16 @@ const (
|
|||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
@@ -1279,7 +1488,9 @@ const (
|
|||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
@@ -1299,13 +1510,21 @@ const (
|
|||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x4004667f
|
||||||
|
SIOCOUTQ = 0x40047473
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
@@ -1324,11 +1543,15 @@ const (
|
|||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
@@ -1336,30 +1559,52 @@ const (
|
|||||||
SOCK_SEQPACKET = 0x5
|
SOCK_SEQPACKET = 0x5
|
||||||
SOCK_STREAM = 0x1
|
SOCK_STREAM = 0x1
|
||||||
SOL_AAL = 0x109
|
SOL_AAL = 0x109
|
||||||
|
SOL_ALG = 0x117
|
||||||
SOL_ATM = 0x108
|
SOL_ATM = 0x108
|
||||||
|
SOL_CAIF = 0x116
|
||||||
|
SOL_CAN_BASE = 0x64
|
||||||
|
SOL_DCCP = 0x10d
|
||||||
SOL_DECNET = 0x105
|
SOL_DECNET = 0x105
|
||||||
SOL_ICMPV6 = 0x3a
|
SOL_ICMPV6 = 0x3a
|
||||||
SOL_IP = 0x0
|
SOL_IP = 0x0
|
||||||
SOL_IPV6 = 0x29
|
SOL_IPV6 = 0x29
|
||||||
SOL_IRDA = 0x10a
|
SOL_IRDA = 0x10a
|
||||||
|
SOL_IUCV = 0x115
|
||||||
|
SOL_KCM = 0x119
|
||||||
|
SOL_LLC = 0x10c
|
||||||
|
SOL_NETBEUI = 0x10b
|
||||||
|
SOL_NETLINK = 0x10e
|
||||||
|
SOL_NFC = 0x118
|
||||||
SOL_PACKET = 0x107
|
SOL_PACKET = 0x107
|
||||||
|
SOL_PNPIPE = 0x113
|
||||||
|
SOL_PPPOL2TP = 0x111
|
||||||
SOL_RAW = 0xff
|
SOL_RAW = 0xff
|
||||||
|
SOL_RDS = 0x114
|
||||||
|
SOL_RXRPC = 0x110
|
||||||
SOL_SOCKET = 0x1
|
SOL_SOCKET = 0x1
|
||||||
SOL_TCP = 0x6
|
SOL_TCP = 0x6
|
||||||
|
SOL_TIPC = 0x10f
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
|
SO_ATTACH_BPF = 0x32
|
||||||
SO_ATTACH_FILTER = 0x1a
|
SO_ATTACH_FILTER = 0x1a
|
||||||
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
SO_BUSY_POLL = 0x2e
|
SO_BUSY_POLL = 0x2e
|
||||||
|
SO_CNX_ADVICE = 0x35
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
|
SO_INCOMING_CPU = 0x31
|
||||||
SO_KEEPALIVE = 0x9
|
SO_KEEPALIVE = 0x9
|
||||||
SO_LINGER = 0xd
|
SO_LINGER = 0xd
|
||||||
SO_LOCK_FILTER = 0x2c
|
SO_LOCK_FILTER = 0x2c
|
||||||
@@ -1395,7 +1640,18 @@ const (
|
|||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
SO_VM_SOCKETS_BUFFER_SIZE = 0x0
|
||||||
|
SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6
|
||||||
|
SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7
|
||||||
|
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
|
||||||
|
SO_VM_SOCKETS_TRUSTED = 0x5
|
||||||
SO_WIFI_STATUS = 0x29
|
SO_WIFI_STATUS = 0x29
|
||||||
|
SPLICE_F_GIFT = 0x8
|
||||||
|
SPLICE_F_MORE = 0x4
|
||||||
|
SPLICE_F_MOVE = 0x1
|
||||||
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@@ -1438,6 +1694,7 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
@@ -1462,11 +1719,15 @@ const (
|
|||||||
TCP_MSS_DEFAULT = 0x218
|
TCP_MSS_DEFAULT = 0x218
|
||||||
TCP_MSS_DESIRED = 0x4c4
|
TCP_MSS_DESIRED = 0x4c4
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
|
TCP_NOTSENT_LOWAT = 0x19
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
TCP_SAVED_SYN = 0x1c
|
||||||
|
TCP_SAVE_SYN = 0x1b
|
||||||
TCP_SYNCNT = 0x7
|
TCP_SYNCNT = 0x7
|
||||||
TCP_S_DATA_IN = 0x4
|
TCP_S_DATA_IN = 0x4
|
||||||
TCP_S_DATA_OUT = 0x8
|
TCP_S_DATA_OUT = 0x8
|
||||||
@@ -1572,7 +1833,9 @@ const (
|
|||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
TUNGETSNDBUF = 0x400454d3
|
TUNGETSNDBUF = 0x400454d3
|
||||||
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
|
TUNGETVNETLE = 0x400454dd
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
TUNSETIFF = 0x800454ca
|
TUNSETIFF = 0x800454ca
|
||||||
@@ -1585,7 +1848,10 @@ const (
|
|||||||
TUNSETQUEUE = 0x800454d9
|
TUNSETQUEUE = 0x800454d9
|
||||||
TUNSETSNDBUF = 0x800454d4
|
TUNSETSNDBUF = 0x800454d4
|
||||||
TUNSETTXFILTER = 0x800454d1
|
TUNSETTXFILTER = 0x800454d1
|
||||||
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
VDISCARD = 0x10
|
VDISCARD = 0x10
|
||||||
VEOF = 0x4
|
VEOF = 0x4
|
||||||
VEOL = 0x6
|
VEOL = 0x6
|
||||||
@@ -1594,7 +1860,13 @@ const (
|
|||||||
VINTR = 0x0
|
VINTR = 0x0
|
||||||
VKILL = 0x3
|
VKILL = 0x3
|
||||||
VLNEXT = 0xf
|
VLNEXT = 0xf
|
||||||
|
VMADDR_CID_ANY = 0xffffffff
|
||||||
|
VMADDR_CID_HOST = 0x2
|
||||||
|
VMADDR_CID_HYPERVISOR = 0x0
|
||||||
|
VMADDR_CID_RESERVED = 0x1
|
||||||
|
VMADDR_PORT_ANY = 0xffffffff
|
||||||
VMIN = 0x5
|
VMIN = 0x5
|
||||||
|
VM_SOCKETS_INVALID_VERSION = 0xffffffff
|
||||||
VQUIT = 0x1
|
VQUIT = 0x1
|
||||||
VREPRINT = 0xb
|
VREPRINT = 0xb
|
||||||
VSTART = 0xd
|
VSTART = 0xd
|
||||||
@@ -1616,6 +1888,8 @@ const (
|
|||||||
WORDSIZE = 0x40
|
WORDSIZE = 0x40
|
||||||
WSTOPPED = 0x2
|
WSTOPPED = 0x2
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x1
|
||||||
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4000
|
XCASE = 0x4000
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
)
|
)
|
||||||
|
|||||||
233
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
233
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
@@ -1,10 +1,10 @@
|
|||||||
// mkerrors.sh -m64
|
// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build s390x,linux
|
// +build s390x,linux
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Created by cgo -godefs - DO NOT EDIT
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -32,10 +32,11 @@ const (
|
|||||||
AF_IRDA = 0x17
|
AF_IRDA = 0x17
|
||||||
AF_ISDN = 0x22
|
AF_ISDN = 0x22
|
||||||
AF_IUCV = 0x20
|
AF_IUCV = 0x20
|
||||||
|
AF_KCM = 0x29
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x29
|
AF_MAX = 0x2b
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
@@ -44,6 +45,7 @@ const (
|
|||||||
AF_PACKET = 0x11
|
AF_PACKET = 0x11
|
||||||
AF_PHONET = 0x23
|
AF_PHONET = 0x23
|
||||||
AF_PPPOX = 0x18
|
AF_PPPOX = 0x18
|
||||||
|
AF_QIPCRTR = 0x2a
|
||||||
AF_RDS = 0x15
|
AF_RDS = 0x15
|
||||||
AF_ROSE = 0xb
|
AF_ROSE = 0xb
|
||||||
AF_ROUTE = 0x10
|
AF_ROUTE = 0x10
|
||||||
@@ -56,6 +58,13 @@ const (
|
|||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
ALG_OP_DECRYPT = 0x0
|
||||||
|
ALG_OP_ENCRYPT = 0x1
|
||||||
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
ALG_SET_AEAD_AUTHSIZE = 0x5
|
||||||
|
ALG_SET_IV = 0x2
|
||||||
|
ALG_SET_KEY = 0x1
|
||||||
|
ALG_SET_OP = 0x3
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
@@ -152,6 +161,22 @@ const (
|
|||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BLKBSZGET = 0x80081270
|
||||||
|
BLKBSZSET = 0x40081271
|
||||||
|
BLKFLSBUF = 0x1261
|
||||||
|
BLKFRAGET = 0x1265
|
||||||
|
BLKFRASET = 0x1264
|
||||||
|
BLKGETSIZE = 0x1260
|
||||||
|
BLKGETSIZE64 = 0x80081272
|
||||||
|
BLKPBSZGET = 0x127b
|
||||||
|
BLKRAGET = 0x1263
|
||||||
|
BLKRASET = 0x1262
|
||||||
|
BLKROGET = 0x125e
|
||||||
|
BLKROSET = 0x125d
|
||||||
|
BLKRRPART = 0x125f
|
||||||
|
BLKSECTGET = 0x1267
|
||||||
|
BLKSECTSET = 0x1266
|
||||||
|
BLKSSZGET = 0x1268
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
@@ -201,6 +226,26 @@ const (
|
|||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
CAN_BCM = 0x2
|
||||||
|
CAN_EFF_FLAG = 0x80000000
|
||||||
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
CAN_EFF_MASK = 0x1fffffff
|
||||||
|
CAN_ERR_FLAG = 0x20000000
|
||||||
|
CAN_ERR_MASK = 0x1fffffff
|
||||||
|
CAN_INV_FILTER = 0x20000000
|
||||||
|
CAN_ISOTP = 0x6
|
||||||
|
CAN_MAX_DLC = 0x8
|
||||||
|
CAN_MAX_DLEN = 0x8
|
||||||
|
CAN_MCNET = 0x5
|
||||||
|
CAN_MTU = 0x10
|
||||||
|
CAN_NPROTO = 0x7
|
||||||
|
CAN_RAW = 0x1
|
||||||
|
CAN_RAW_FILTER_MAX = 0x200
|
||||||
|
CAN_RTR_FLAG = 0x40000000
|
||||||
|
CAN_SFF_ID_BITS = 0xb
|
||||||
|
CAN_SFF_MASK = 0x7ff
|
||||||
|
CAN_TP16 = 0x3
|
||||||
|
CAN_TP20 = 0x4
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@@ -280,6 +325,9 @@ const (
|
|||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
EFD_CLOEXEC = 0x80000
|
||||||
|
EFD_NONBLOCK = 0x800
|
||||||
|
EFD_SEMAPHORE = 0x1
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
@@ -288,6 +336,7 @@ const (
|
|||||||
ENCODING_NRZI = 0x2
|
ENCODING_NRZI = 0x2
|
||||||
EPOLLERR = 0x8
|
EPOLLERR = 0x8
|
||||||
EPOLLET = 0x80000000
|
EPOLLET = 0x80000000
|
||||||
|
EPOLLEXCLUSIVE = 0x10000000
|
||||||
EPOLLHUP = 0x10
|
EPOLLHUP = 0x10
|
||||||
EPOLLIN = 0x1
|
EPOLLIN = 0x1
|
||||||
EPOLLMSG = 0x400
|
EPOLLMSG = 0x400
|
||||||
@@ -342,6 +391,7 @@ const (
|
|||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
ETH_P_HSR = 0x892f
|
||||||
ETH_P_IEEE802154 = 0xf6
|
ETH_P_IEEE802154 = 0xf6
|
||||||
ETH_P_IEEEPUP = 0xa00
|
ETH_P_IEEEPUP = 0xa00
|
||||||
ETH_P_IEEEPUPAT = 0xa01
|
ETH_P_IEEEPUPAT = 0xa01
|
||||||
@@ -354,10 +404,12 @@ const (
|
|||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
ETH_P_MACSEC = 0x88e5
|
||||||
ETH_P_MOBITEX = 0x15
|
ETH_P_MOBITEX = 0x15
|
||||||
ETH_P_MPLS_MC = 0x8848
|
ETH_P_MPLS_MC = 0x8848
|
||||||
ETH_P_MPLS_UC = 0x8847
|
ETH_P_MPLS_UC = 0x8847
|
||||||
ETH_P_MVRP = 0x88f5
|
ETH_P_MVRP = 0x88f5
|
||||||
|
ETH_P_NCSI = 0x88f8
|
||||||
ETH_P_PAE = 0x888e
|
ETH_P_PAE = 0x888e
|
||||||
ETH_P_PAUSE = 0x8808
|
ETH_P_PAUSE = 0x8808
|
||||||
ETH_P_PHONET = 0xf5
|
ETH_P_PHONET = 0xf5
|
||||||
@@ -388,12 +440,37 @@ const (
|
|||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
FALLOC_FL_NO_HIDE_STALE = 0x4
|
||||||
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_CTS = 0x4
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
|
FS_KEY_DESCRIPTOR_SIZE = 0x8
|
||||||
|
FS_KEY_DESC_PREFIX = "fscrypt:"
|
||||||
|
FS_KEY_DESC_PREFIX_SIZE = 0x8
|
||||||
|
FS_MAX_KEY_SIZE = 0x40
|
||||||
|
FS_POLICY_FLAGS_PAD_16 = 0x2
|
||||||
|
FS_POLICY_FLAGS_PAD_32 = 0x3
|
||||||
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
F_EXLCK = 0x4
|
F_EXLCK = 0x4
|
||||||
@@ -430,6 +507,8 @@ const (
|
|||||||
F_ULOCK = 0x0
|
F_ULOCK = 0x0
|
||||||
F_UNLCK = 0x2
|
F_UNLCK = 0x2
|
||||||
F_WRLCK = 0x1
|
F_WRLCK = 0x1
|
||||||
|
GRND_NONBLOCK = 0x1
|
||||||
|
GRND_RANDOM = 0x2
|
||||||
HUPCL = 0x400
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
@@ -571,6 +650,7 @@ const (
|
|||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
IPV6_IPSEC_POLICY = 0x22
|
IPV6_IPSEC_POLICY = 0x22
|
||||||
@@ -673,6 +753,47 @@ const (
|
|||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CHOWN = 0x4
|
||||||
|
KEYCTL_CLEAR = 0x7
|
||||||
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
KEYCTL_DH_COMPUTE = 0x17
|
||||||
|
KEYCTL_GET_KEYRING_ID = 0x0
|
||||||
|
KEYCTL_GET_PERSISTENT = 0x16
|
||||||
|
KEYCTL_GET_SECURITY = 0x11
|
||||||
|
KEYCTL_INSTANTIATE = 0xc
|
||||||
|
KEYCTL_INSTANTIATE_IOV = 0x14
|
||||||
|
KEYCTL_INVALIDATE = 0x15
|
||||||
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_READ = 0xb
|
||||||
|
KEYCTL_REJECT = 0x13
|
||||||
|
KEYCTL_REVOKE = 0x3
|
||||||
|
KEYCTL_SEARCH = 0xa
|
||||||
|
KEYCTL_SESSION_TO_PARENT = 0x12
|
||||||
|
KEYCTL_SETPERM = 0x5
|
||||||
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_UNLINK = 0x9
|
||||||
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
|
||||||
|
KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
|
||||||
|
KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
|
||||||
|
KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
|
||||||
|
KEY_REQKEY_DEFL_USER_KEYRING = 0x4
|
||||||
|
KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
|
||||||
|
KEY_SPEC_GROUP_KEYRING = -0x6
|
||||||
|
KEY_SPEC_PROCESS_KEYRING = -0x2
|
||||||
|
KEY_SPEC_REQKEY_AUTH_KEY = -0x7
|
||||||
|
KEY_SPEC_REQUESTOR_KEYRING = -0x8
|
||||||
|
KEY_SPEC_SESSION_KEYRING = -0x3
|
||||||
|
KEY_SPEC_THREAD_KEYRING = -0x1
|
||||||
|
KEY_SPEC_USER_KEYRING = -0x4
|
||||||
|
KEY_SPEC_USER_SESSION_KEYRING = -0x5
|
||||||
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
LINUX_REBOOT_CMD_CAD_OFF = 0x0
|
||||||
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
|
||||||
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
LINUX_REBOOT_CMD_HALT = 0xcdef0123
|
||||||
@@ -692,6 +813,7 @@ const (
|
|||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
MADV_DONTFORK = 0xa
|
MADV_DONTFORK = 0xa
|
||||||
MADV_DONTNEED = 0x4
|
MADV_DONTNEED = 0x4
|
||||||
|
MADV_FREE = 0x8
|
||||||
MADV_HUGEPAGE = 0xe
|
MADV_HUGEPAGE = 0xe
|
||||||
MADV_HWPOISON = 0x64
|
MADV_HWPOISON = 0x64
|
||||||
MADV_MERGEABLE = 0xc
|
MADV_MERGEABLE = 0xc
|
||||||
@@ -726,6 +848,7 @@ const (
|
|||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
MSG_CTRUNC = 0x8
|
MSG_CTRUNC = 0x8
|
||||||
@@ -749,6 +872,7 @@ const (
|
|||||||
MS_ACTIVE = 0x40000000
|
MS_ACTIVE = 0x40000000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_BIND = 0x1000
|
MS_BIND = 0x1000
|
||||||
|
MS_BORN = 0x20000000
|
||||||
MS_DIRSYNC = 0x80
|
MS_DIRSYNC = 0x80
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_I_VERSION = 0x800000
|
MS_I_VERSION = 0x800000
|
||||||
@@ -762,6 +886,8 @@ const (
|
|||||||
MS_NODEV = 0x4
|
MS_NODEV = 0x4
|
||||||
MS_NODIRATIME = 0x800
|
MS_NODIRATIME = 0x800
|
||||||
MS_NOEXEC = 0x8
|
MS_NOEXEC = 0x8
|
||||||
|
MS_NOREMOTELOCK = 0x8000000
|
||||||
|
MS_NOSEC = 0x10000000
|
||||||
MS_NOSUID = 0x2
|
MS_NOSUID = 0x2
|
||||||
MS_NOUSER = -0x80000000
|
MS_NOUSER = -0x80000000
|
||||||
MS_POSIXACL = 0x10000
|
MS_POSIXACL = 0x10000
|
||||||
@@ -778,6 +904,7 @@ const (
|
|||||||
MS_SYNC = 0x4
|
MS_SYNC = 0x4
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
|
MS_VERBOSE = 0x8000
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
@@ -928,6 +1055,16 @@ const (
|
|||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
PARODD = 0x200
|
PARODD = 0x200
|
||||||
PENDIN = 0x4000
|
PENDIN = 0x4000
|
||||||
|
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||||
|
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||||
|
PERF_EVENT_IOC_ID = 0x80082407
|
||||||
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||||
|
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||||
|
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||||
|
PERF_EVENT_IOC_RESET = 0x2403
|
||||||
|
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||||
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@@ -1157,7 +1294,16 @@ const (
|
|||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_LOCKS = 0xa
|
||||||
|
RLIMIT_MEMLOCK = 0x8
|
||||||
|
RLIMIT_MSGQUEUE = 0xc
|
||||||
|
RLIMIT_NICE = 0xd
|
||||||
RLIMIT_NOFILE = 0x7
|
RLIMIT_NOFILE = 0x7
|
||||||
|
RLIMIT_NPROC = 0x6
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
|
RLIMIT_RTPRIO = 0xe
|
||||||
|
RLIMIT_RTTIME = 0xf
|
||||||
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = -0x1
|
RLIM_INFINITY = -0x1
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
@@ -1184,7 +1330,7 @@ const (
|
|||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x16
|
RTA_MAX = 0x19
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
@@ -1254,9 +1400,10 @@ const (
|
|||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
RTM_GETRULE = 0x22
|
RTM_GETRULE = 0x22
|
||||||
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x5b
|
RTM_MAX = 0x5f
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
@@ -1271,15 +1418,16 @@ const (
|
|||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
RTM_NEWROUTE = 0x18
|
RTM_NEWROUTE = 0x18
|
||||||
RTM_NEWRULE = 0x20
|
RTM_NEWRULE = 0x20
|
||||||
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x13
|
RTM_NR_FAMILIES = 0x14
|
||||||
RTM_NR_MSGTYPES = 0x4c
|
RTM_NR_MSGTYPES = 0x50
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
RTNH_ALIGNTO = 0x4
|
RTNH_ALIGNTO = 0x4
|
||||||
RTNH_COMPARE_MASK = 0x11
|
RTNH_COMPARE_MASK = 0x19
|
||||||
RTNH_F_DEAD = 0x1
|
RTNH_F_DEAD = 0x1
|
||||||
RTNH_F_LINKDOWN = 0x10
|
RTNH_F_LINKDOWN = 0x10
|
||||||
RTNH_F_OFFLOAD = 0x8
|
RTNH_F_OFFLOAD = 0x8
|
||||||
@@ -1314,8 +1462,12 @@ const (
|
|||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x1d
|
SCM_TIMESTAMP = 0x1d
|
||||||
SCM_TIMESTAMPING = 0x25
|
SCM_TIMESTAMPING = 0x25
|
||||||
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@@ -1323,6 +1475,16 @@ const (
|
|||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
@@ -1330,7 +1492,9 @@ const (
|
|||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
@@ -1350,13 +1514,21 @@ const (
|
|||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x541b
|
||||||
|
SIOCOUTQ = 0x5411
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
@@ -1375,11 +1547,15 @@ const (
|
|||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
@@ -1387,26 +1563,44 @@ const (
|
|||||||
SOCK_SEQPACKET = 0x5
|
SOCK_SEQPACKET = 0x5
|
||||||
SOCK_STREAM = 0x1
|
SOCK_STREAM = 0x1
|
||||||
SOL_AAL = 0x109
|
SOL_AAL = 0x109
|
||||||
|
SOL_ALG = 0x117
|
||||||
SOL_ATM = 0x108
|
SOL_ATM = 0x108
|
||||||
|
SOL_CAIF = 0x116
|
||||||
|
SOL_CAN_BASE = 0x64
|
||||||
|
SOL_DCCP = 0x10d
|
||||||
SOL_DECNET = 0x105
|
SOL_DECNET = 0x105
|
||||||
SOL_ICMPV6 = 0x3a
|
SOL_ICMPV6 = 0x3a
|
||||||
SOL_IP = 0x0
|
SOL_IP = 0x0
|
||||||
SOL_IPV6 = 0x29
|
SOL_IPV6 = 0x29
|
||||||
SOL_IRDA = 0x10a
|
SOL_IRDA = 0x10a
|
||||||
|
SOL_IUCV = 0x115
|
||||||
|
SOL_KCM = 0x119
|
||||||
|
SOL_LLC = 0x10c
|
||||||
|
SOL_NETBEUI = 0x10b
|
||||||
|
SOL_NETLINK = 0x10e
|
||||||
|
SOL_NFC = 0x118
|
||||||
SOL_PACKET = 0x107
|
SOL_PACKET = 0x107
|
||||||
|
SOL_PNPIPE = 0x113
|
||||||
|
SOL_PPPOL2TP = 0x111
|
||||||
SOL_RAW = 0xff
|
SOL_RAW = 0xff
|
||||||
|
SOL_RDS = 0x114
|
||||||
|
SOL_RXRPC = 0x110
|
||||||
SOL_SOCKET = 0x1
|
SOL_SOCKET = 0x1
|
||||||
SOL_TCP = 0x6
|
SOL_TCP = 0x6
|
||||||
|
SOL_TIPC = 0x10f
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
SO_ATTACH_FILTER = 0x1a
|
SO_ATTACH_FILTER = 0x1a
|
||||||
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
SO_BUSY_POLL = 0x2e
|
SO_BUSY_POLL = 0x2e
|
||||||
|
SO_CNX_ADVICE = 0x35
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
@@ -1450,7 +1644,18 @@ const (
|
|||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
SO_VM_SOCKETS_BUFFER_SIZE = 0x0
|
||||||
|
SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6
|
||||||
|
SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7
|
||||||
|
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
|
||||||
|
SO_VM_SOCKETS_TRUSTED = 0x5
|
||||||
SO_WIFI_STATUS = 0x29
|
SO_WIFI_STATUS = 0x29
|
||||||
|
SPLICE_F_GIFT = 0x8
|
||||||
|
SPLICE_F_MORE = 0x4
|
||||||
|
SPLICE_F_MOVE = 0x1
|
||||||
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@@ -1526,6 +1731,7 @@ const (
|
|||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
TCP_SAVED_SYN = 0x1c
|
TCP_SAVED_SYN = 0x1c
|
||||||
TCP_SAVE_SYN = 0x1b
|
TCP_SAVE_SYN = 0x1b
|
||||||
TCP_SYNCNT = 0x7
|
TCP_SYNCNT = 0x7
|
||||||
@@ -1645,6 +1851,7 @@ const (
|
|||||||
TUNSETVNETBE = 0x400454de
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
TUNSETVNETLE = 0x400454dc
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x4
|
VEOF = 0x4
|
||||||
VEOL = 0xb
|
VEOL = 0xb
|
||||||
@@ -1653,7 +1860,13 @@ const (
|
|||||||
VINTR = 0x0
|
VINTR = 0x0
|
||||||
VKILL = 0x3
|
VKILL = 0x3
|
||||||
VLNEXT = 0xf
|
VLNEXT = 0xf
|
||||||
|
VMADDR_CID_ANY = 0xffffffff
|
||||||
|
VMADDR_CID_HOST = 0x2
|
||||||
|
VMADDR_CID_HYPERVISOR = 0x0
|
||||||
|
VMADDR_CID_RESERVED = 0x1
|
||||||
|
VMADDR_PORT_ANY = 0xffffffff
|
||||||
VMIN = 0x6
|
VMIN = 0x6
|
||||||
|
VM_SOCKETS_INVALID_VERSION = 0xffffffff
|
||||||
VQUIT = 0x1
|
VQUIT = 0x1
|
||||||
VREPRINT = 0xc
|
VREPRINT = 0xc
|
||||||
VSTART = 0x8
|
VSTART = 0x8
|
||||||
@@ -1675,6 +1888,8 @@ const (
|
|||||||
WORDSIZE = 0x40
|
WORDSIZE = 0x40
|
||||||
WSTOPPED = 0x2
|
WSTOPPED = 0x2
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x1
|
||||||
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
)
|
)
|
||||||
|
|||||||
2142
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
Normal file
2142
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
49
vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
generated
vendored
49
vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
generated
vendored
@@ -1,5 +1,5 @@
|
|||||||
// mkerrors.sh -m64
|
// mkerrors.sh -m64
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build amd64,solaris
|
// +build amd64,solaris
|
||||||
|
|
||||||
@@ -159,7 +159,12 @@ const (
|
|||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
BS0 = 0x0
|
||||||
|
BS1 = 0x2000
|
||||||
|
BSDLY = 0x2000
|
||||||
|
CBAUD = 0xf
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CIBAUD = 0xf0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_HIGHRES = 0x4
|
CLOCK_HIGHRES = 0x4
|
||||||
CLOCK_LEVEL = 0xa
|
CLOCK_LEVEL = 0xa
|
||||||
@@ -169,7 +174,13 @@ const (
|
|||||||
CLOCK_REALTIME = 0x3
|
CLOCK_REALTIME = 0x3
|
||||||
CLOCK_THREAD_CPUTIME_ID = 0x2
|
CLOCK_THREAD_CPUTIME_ID = 0x2
|
||||||
CLOCK_VIRTUAL = 0x1
|
CLOCK_VIRTUAL = 0x1
|
||||||
|
CR0 = 0x0
|
||||||
|
CR1 = 0x200
|
||||||
|
CR2 = 0x400
|
||||||
|
CR3 = 0x600
|
||||||
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
|
CRTSCTS = 0x80000000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@@ -276,6 +287,9 @@ const (
|
|||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_NFDBITS = 0x40
|
FD_NFDBITS = 0x40
|
||||||
FD_SETSIZE = 0x10000
|
FD_SETSIZE = 0x10000
|
||||||
|
FF0 = 0x0
|
||||||
|
FF1 = 0x8000
|
||||||
|
FFDLY = 0x8000
|
||||||
FLUSHALL = 0x1
|
FLUSHALL = 0x1
|
||||||
FLUSHDATA = 0x0
|
FLUSHDATA = 0x0
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
@@ -290,6 +304,10 @@ const (
|
|||||||
F_DUP2FD_CLOEXEC = 0x24
|
F_DUP2FD_CLOEXEC = 0x24
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x25
|
F_DUPFD_CLOEXEC = 0x25
|
||||||
|
F_FLOCK = 0x35
|
||||||
|
F_FLOCK64 = 0x35
|
||||||
|
F_FLOCKW = 0x36
|
||||||
|
F_FLOCKW64 = 0x36
|
||||||
F_FREESP = 0xb
|
F_FREESP = 0xb
|
||||||
F_FREESP64 = 0xb
|
F_FREESP64 = 0xb
|
||||||
F_GETFD = 0x1
|
F_GETFD = 0x1
|
||||||
@@ -304,6 +322,12 @@ const (
|
|||||||
F_MDACC = 0x20
|
F_MDACC = 0x20
|
||||||
F_NODNY = 0x0
|
F_NODNY = 0x0
|
||||||
F_NPRIV = 0x10
|
F_NPRIV = 0x10
|
||||||
|
F_OFD_GETLK = 0x2f
|
||||||
|
F_OFD_GETLK64 = 0x2f
|
||||||
|
F_OFD_SETLK = 0x30
|
||||||
|
F_OFD_SETLK64 = 0x30
|
||||||
|
F_OFD_SETLKW = 0x31
|
||||||
|
F_OFD_SETLKW64 = 0x31
|
||||||
F_PRIV = 0xf
|
F_PRIV = 0xf
|
||||||
F_QUOTACTL = 0x11
|
F_QUOTACTL = 0x11
|
||||||
F_RDACC = 0x1
|
F_RDACC = 0x1
|
||||||
@@ -332,6 +356,7 @@ const (
|
|||||||
F_WRDNY = 0x2
|
F_WRDNY = 0x2
|
||||||
F_WRLCK = 0x2
|
F_WRLCK = 0x2
|
||||||
HUPCL = 0x400
|
HUPCL = 0x400
|
||||||
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
ICRNL = 0x100
|
ICRNL = 0x100
|
||||||
IEXTEN = 0x8000
|
IEXTEN = 0x8000
|
||||||
@@ -589,15 +614,21 @@ const (
|
|||||||
IP_UNSPEC_SRC = 0x42
|
IP_UNSPEC_SRC = 0x42
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
IUCLC = 0x200
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
LOCK_EX = 0x2
|
||||||
|
LOCK_NB = 0x4
|
||||||
|
LOCK_SH = 0x1
|
||||||
|
LOCK_UN = 0x8
|
||||||
MADV_ACCESS_DEFAULT = 0x6
|
MADV_ACCESS_DEFAULT = 0x6
|
||||||
MADV_ACCESS_LWP = 0x7
|
MADV_ACCESS_LWP = 0x7
|
||||||
MADV_ACCESS_MANY = 0x8
|
MADV_ACCESS_MANY = 0x8
|
||||||
MADV_DONTNEED = 0x4
|
MADV_DONTNEED = 0x4
|
||||||
MADV_FREE = 0x5
|
MADV_FREE = 0x5
|
||||||
MADV_NORMAL = 0x0
|
MADV_NORMAL = 0x0
|
||||||
|
MADV_PURGE = 0x9
|
||||||
MADV_RANDOM = 0x1
|
MADV_RANDOM = 0x1
|
||||||
MADV_SEQUENTIAL = 0x2
|
MADV_SEQUENTIAL = 0x2
|
||||||
MADV_WILLNEED = 0x3
|
MADV_WILLNEED = 0x3
|
||||||
@@ -605,6 +636,7 @@ const (
|
|||||||
MAP_ALIGN = 0x200
|
MAP_ALIGN = 0x200
|
||||||
MAP_ANON = 0x100
|
MAP_ANON = 0x100
|
||||||
MAP_ANONYMOUS = 0x100
|
MAP_ANONYMOUS = 0x100
|
||||||
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
MAP_INITDATA = 0x800
|
MAP_INITDATA = 0x800
|
||||||
MAP_NORESERVE = 0x40
|
MAP_NORESERVE = 0x40
|
||||||
@@ -632,10 +664,14 @@ const (
|
|||||||
MS_OLDSYNC = 0x0
|
MS_OLDSYNC = 0x0
|
||||||
MS_SYNC = 0x4
|
MS_SYNC = 0x4
|
||||||
M_FLUSH = 0x86
|
M_FLUSH = 0x86
|
||||||
|
NL0 = 0x0
|
||||||
|
NL1 = 0x100
|
||||||
|
NLDLY = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
OLCUC = 0x2
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
@@ -955,12 +991,21 @@ const (
|
|||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_VRRP = 0x1017
|
SO_VRRP = 0x1017
|
||||||
SO_WROFF = 0x2
|
SO_WROFF = 0x2
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB1 = 0x800
|
||||||
|
TAB2 = 0x1000
|
||||||
|
TAB3 = 0x1800
|
||||||
|
TABDLY = 0x1800
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
TCGETA = 0x5401
|
TCGETA = 0x5401
|
||||||
TCGETS = 0x540d
|
TCGETS = 0x540d
|
||||||
TCIFLUSH = 0x0
|
TCIFLUSH = 0x0
|
||||||
|
TCIOFF = 0x2
|
||||||
TCIOFLUSH = 0x2
|
TCIOFLUSH = 0x2
|
||||||
|
TCION = 0x3
|
||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
|
TCOOFF = 0x0
|
||||||
|
TCOON = 0x1
|
||||||
TCP_ABORT_THRESHOLD = 0x11
|
TCP_ABORT_THRESHOLD = 0x11
|
||||||
TCP_ANONPRIVBIND = 0x20
|
TCP_ANONPRIVBIND = 0x20
|
||||||
TCP_CONN_ABORT_THRESHOLD = 0x13
|
TCP_CONN_ABORT_THRESHOLD = 0x13
|
||||||
@@ -1089,6 +1134,8 @@ const (
|
|||||||
WSTOPPED = 0x4
|
WSTOPPED = 0x4
|
||||||
WTRAPPED = 0x2
|
WTRAPPED = 0x2
|
||||||
WUNTRACED = 0x4
|
WUNTRACED = 0x4
|
||||||
|
XCASE = 0x4
|
||||||
|
XTABS = 0x1800
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
|||||||
37
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
37
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
@@ -1,7 +1,7 @@
|
|||||||
// mksyscall.pl -l32 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go
|
// mksyscall.pl -l32 -tags darwin,386 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
|
|
||||||
// +build 386,darwin
|
// +build darwin,386
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -222,7 +222,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
|||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
use(_p0)
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -238,7 +237,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -307,7 +305,6 @@ func Access(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -333,7 +330,6 @@ func Chdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -349,7 +345,6 @@ func Chflags(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -365,7 +360,6 @@ func Chmod(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -381,7 +375,6 @@ func Chown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -397,7 +390,6 @@ func Chroot(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -449,8 +441,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
_, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -727,7 +717,6 @@ func Lchown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -748,8 +737,6 @@ func Link(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -775,7 +762,6 @@ func Lstat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -791,7 +777,6 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -807,7 +792,6 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -823,7 +807,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -907,7 +890,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -924,7 +906,6 @@ func Pathconf(path string, name int) (val int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
val = int(r0)
|
val = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -998,7 +979,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
_p1 = unsafe.Pointer(&_zero)
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -1020,8 +1000,6 @@ func Rename(from string, to string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1037,7 +1015,6 @@ func Revoke(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1053,7 +1030,6 @@ func Rmdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1120,7 +1096,6 @@ func Setlogin(name string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1227,7 +1202,6 @@ func Stat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1243,7 +1217,6 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1264,8 +1237,6 @@ func Symlink(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1291,7 +1262,6 @@ func Truncate(path string, length int64) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32))
|
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1315,7 +1285,6 @@ func Undelete(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1331,7 +1300,6 @@ func Unlink(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1347,7 +1315,6 @@ func Unmount(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|||||||
38
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
38
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
@@ -1,7 +1,7 @@
|
|||||||
// mksyscall.pl syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
|
// mksyscall.pl -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
|
|
||||||
// +build amd64,darwin
|
// +build darwin,amd64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -222,7 +222,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
|||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
use(_p0)
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -238,7 +237,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -307,7 +305,6 @@ func Access(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -333,7 +330,6 @@ func Chdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -349,7 +345,6 @@ func Chflags(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -365,7 +360,6 @@ func Chmod(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -381,7 +375,6 @@ func Chown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -397,7 +390,6 @@ func Chroot(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -449,8 +441,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
_, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -727,7 +717,6 @@ func Lchown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -748,8 +737,6 @@ func Link(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -775,7 +762,6 @@ func Lstat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -791,7 +777,6 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -807,7 +792,6 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -823,7 +807,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -907,7 +890,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -924,7 +906,6 @@ func Pathconf(path string, name int) (val int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
val = int(r0)
|
val = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -998,7 +979,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
_p1 = unsafe.Pointer(&_zero)
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -1020,8 +1000,6 @@ func Rename(from string, to string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1037,7 +1015,6 @@ func Revoke(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1053,7 +1030,6 @@ func Rmdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1120,7 +1096,6 @@ func Setlogin(name string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1227,7 +1202,6 @@ func Stat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1243,7 +1217,6 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1264,8 +1237,6 @@ func Symlink(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1291,7 +1262,6 @@ func Truncate(path string, length int64) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
|
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1315,7 +1285,6 @@ func Undelete(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1331,7 +1300,6 @@ func Unlink(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1347,7 +1315,6 @@ func Unmount(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1423,7 +1390,6 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|||||||
51
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
51
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
@@ -1,7 +1,7 @@
|
|||||||
// mksyscall.pl syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go
|
// mksyscall.pl -l32 -tags darwin,arm syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
|
|
||||||
// +build arm,darwin
|
// +build darwin,arm
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -222,7 +222,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
|||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
use(_p0)
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -238,7 +237,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -307,7 +305,6 @@ func Access(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -333,7 +330,6 @@ func Chdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -349,7 +345,6 @@ func Chflags(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -365,7 +360,6 @@ func Chmod(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -381,7 +375,6 @@ func Chown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -397,7 +390,6 @@ func Chroot(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -449,8 +441,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
_, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -558,7 +548,7 @@ func Fsync(fd int) (err error) {
|
|||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Ftruncate(fd int, length int64) (err error) {
|
func Ftruncate(fd int, length int64) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
|
_, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), uintptr(length>>32))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -727,7 +717,6 @@ func Lchown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -748,8 +737,6 @@ func Link(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -775,7 +762,6 @@ func Lstat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -791,7 +777,6 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -807,7 +792,6 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -823,7 +807,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -907,7 +890,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -924,7 +906,6 @@ func Pathconf(path string, name int) (val int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
val = int(r0)
|
val = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -941,7 +922,7 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) {
|
|||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -958,7 +939,7 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
|
|||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -998,7 +979,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
_p1 = unsafe.Pointer(&_zero)
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -1020,8 +1000,6 @@ func Rename(from string, to string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1037,7 +1015,6 @@ func Revoke(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1053,7 +1030,6 @@ func Rmdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1063,8 +1039,8 @@ func Rmdir(path string) (err error) {
|
|||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
|
r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0)
|
||||||
newoffset = int64(r0)
|
newoffset = int64(int64(r1)<<32 | int64(r0))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1120,7 +1096,6 @@ func Setlogin(name string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1227,7 +1202,6 @@ func Stat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1243,7 +1217,6 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1264,8 +1237,6 @@ func Symlink(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1290,8 +1261,7 @@ func Truncate(path string, length int64) (err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
|
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1315,7 +1285,6 @@ func Undelete(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1331,7 +1300,6 @@ func Unlink(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1347,7 +1315,6 @@ func Unmount(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1374,7 +1341,7 @@ func write(fd int, p []byte) (n int, err error) {
|
|||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
|
func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
|
||||||
r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
|
r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0)
|
||||||
ret = uintptr(r0)
|
ret = uintptr(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
|||||||
37
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
37
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
@@ -1,7 +1,7 @@
|
|||||||
// mksyscall.pl syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
|
// mksyscall.pl -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
|
|
||||||
// +build arm64,darwin
|
// +build darwin,arm64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -222,7 +222,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
|||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
use(_p0)
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -238,7 +237,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -307,7 +305,6 @@ func Access(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -333,7 +330,6 @@ func Chdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -349,7 +345,6 @@ func Chflags(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -365,7 +360,6 @@ func Chmod(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -381,7 +375,6 @@ func Chown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -397,7 +390,6 @@ func Chroot(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -449,8 +441,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
_, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -727,7 +717,6 @@ func Lchown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -748,8 +737,6 @@ func Link(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -775,7 +762,6 @@ func Lstat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -791,7 +777,6 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -807,7 +792,6 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -823,7 +807,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -907,7 +890,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -924,7 +906,6 @@ func Pathconf(path string, name int) (val int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
val = int(r0)
|
val = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -998,7 +979,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
_p1 = unsafe.Pointer(&_zero)
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -1020,8 +1000,6 @@ func Rename(from string, to string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1037,7 +1015,6 @@ func Revoke(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1053,7 +1030,6 @@ func Rmdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1120,7 +1096,6 @@ func Setlogin(name string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1227,7 +1202,6 @@ func Stat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1243,7 +1217,6 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1264,8 +1237,6 @@ func Symlink(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1291,7 +1262,6 @@ func Truncate(path string, length int64) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
|
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1315,7 +1285,6 @@ func Undelete(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1331,7 +1300,6 @@ func Unlink(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1347,7 +1315,6 @@ func Unmount(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|||||||
48
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
48
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
@@ -1,7 +1,7 @@
|
|||||||
// mksyscall.pl -dragonfly syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_amd64.go
|
// mksyscall.pl -dragonfly -tags dragonfly,amd64 syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_amd64.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build amd64,dragonfly
|
// +build dragonfly,amd64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -222,7 +222,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
|||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
use(_p0)
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -238,7 +237,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -321,7 +319,6 @@ func Access(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -347,7 +344,6 @@ func Chdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -363,7 +359,6 @@ func Chflags(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -379,7 +374,6 @@ func Chmod(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -395,7 +389,6 @@ func Chown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -411,7 +404,6 @@ func Chroot(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -739,7 +731,6 @@ func Lchown(path string, uid int, gid int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -760,8 +751,6 @@ func Link(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -787,7 +776,6 @@ func Lstat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -803,7 +791,6 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -819,7 +806,6 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -835,7 +821,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -929,7 +914,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -946,7 +930,6 @@ func Pathconf(path string, name int) (val int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
val = int(r0)
|
val = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -986,7 +969,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
_p1 = unsafe.Pointer(&_zero)
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@@ -1008,8 +990,6 @@ func Rename(from string, to string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1025,7 +1005,6 @@ func Revoke(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1041,7 +1020,6 @@ func Rmdir(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1108,7 +1086,6 @@ func Setlogin(name string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1225,7 +1202,6 @@ func Stat(path string, stat *Stat_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1241,7 +1217,6 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1262,8 +1237,6 @@ func Symlink(path string, link string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
use(unsafe.Pointer(_p1))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1289,7 +1262,6 @@ func Truncate(path string, length int64) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length))
|
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length))
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1313,7 +1285,6 @@ func Undelete(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1329,7 +1300,6 @@ func Unlink(path string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1345,7 +1315,6 @@ func Unmount(path string, flags int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
use(unsafe.Pointer(_p0))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
@@ -1411,3 +1380,14 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
|
||||||
|
nfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user