mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
10
vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s
generated
vendored
10
vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s
generated
vendored
@ -13,17 +13,17 @@
|
||||
// Just jump to package syscall's implementation for all these functions.
|
||||
// The runtime may know about them.
|
||||
|
||||
TEXT ·Syscall(SB),NOSPLIT,$0-64
|
||||
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||
JMP syscall·Syscall(SB)
|
||||
|
||||
TEXT ·Syscall6(SB),NOSPLIT,$0-88
|
||||
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||
JMP syscall·Syscall6(SB)
|
||||
|
||||
TEXT ·Syscall9(SB),NOSPLIT,$0-112
|
||||
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||
JMP syscall·Syscall9(SB)
|
||||
|
||||
TEXT ·RawSyscall(SB),NOSPLIT,$0-64
|
||||
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||
JMP syscall·RawSyscall(SB)
|
||||
|
||||
TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
|
||||
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||
JMP syscall·RawSyscall6(SB)
|
||||
|
30
vendor/golang.org/x/sys/unix/cap_freebsd.go
generated
vendored
30
vendor/golang.org/x/sys/unix/cap_freebsd.go
generated
vendored
@ -7,7 +7,7 @@
|
||||
package unix
|
||||
|
||||
import (
|
||||
errorspkg "errors"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
@ -60,26 +60,26 @@ func CapRightsSet(rights *CapRights, setrights []uint64) error {
|
||||
|
||||
n := caparsize(rights)
|
||||
if n < capArSizeMin || n > capArSizeMax {
|
||||
return errorspkg.New("bad rights size")
|
||||
return errors.New("bad rights size")
|
||||
}
|
||||
|
||||
for _, right := range setrights {
|
||||
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||
return errorspkg.New("bad right version")
|
||||
return errors.New("bad right version")
|
||||
}
|
||||
i, err := rightToIndex(right)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if i >= n {
|
||||
return errorspkg.New("index overflow")
|
||||
return errors.New("index overflow")
|
||||
}
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return errorspkg.New("index mismatch")
|
||||
return errors.New("index mismatch")
|
||||
}
|
||||
rights.Rights[i] |= right
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return errorspkg.New("index mismatch (after assign)")
|
||||
return errors.New("index mismatch (after assign)")
|
||||
}
|
||||
}
|
||||
|
||||
@ -95,26 +95,26 @@ func CapRightsClear(rights *CapRights, clearrights []uint64) error {
|
||||
|
||||
n := caparsize(rights)
|
||||
if n < capArSizeMin || n > capArSizeMax {
|
||||
return errorspkg.New("bad rights size")
|
||||
return errors.New("bad rights size")
|
||||
}
|
||||
|
||||
for _, right := range clearrights {
|
||||
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||
return errorspkg.New("bad right version")
|
||||
return errors.New("bad right version")
|
||||
}
|
||||
i, err := rightToIndex(right)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if i >= n {
|
||||
return errorspkg.New("index overflow")
|
||||
return errors.New("index overflow")
|
||||
}
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return errorspkg.New("index mismatch")
|
||||
return errors.New("index mismatch")
|
||||
}
|
||||
rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF)
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return errorspkg.New("index mismatch (after assign)")
|
||||
return errors.New("index mismatch (after assign)")
|
||||
}
|
||||
}
|
||||
|
||||
@ -130,22 +130,22 @@ func CapRightsIsSet(rights *CapRights, setrights []uint64) (bool, error) {
|
||||
|
||||
n := caparsize(rights)
|
||||
if n < capArSizeMin || n > capArSizeMax {
|
||||
return false, errorspkg.New("bad rights size")
|
||||
return false, errors.New("bad rights size")
|
||||
}
|
||||
|
||||
for _, right := range setrights {
|
||||
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||
return false, errorspkg.New("bad right version")
|
||||
return false, errors.New("bad right version")
|
||||
}
|
||||
i, err := rightToIndex(right)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
if i >= n {
|
||||
return false, errorspkg.New("index overflow")
|
||||
return false, errors.New("index overflow")
|
||||
}
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return false, errorspkg.New("index mismatch")
|
||||
return false, errors.New("index mismatch")
|
||||
}
|
||||
if (rights.Rights[i] & right) != right {
|
||||
return false, nil
|
||||
|
18
vendor/golang.org/x/sys/unix/creds_test.go
generated
vendored
18
vendor/golang.org/x/sys/unix/creds_test.go
generated
vendored
@ -11,7 +11,6 @@ import (
|
||||
"go/build"
|
||||
"net"
|
||||
"os"
|
||||
"syscall"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
@ -72,23 +71,6 @@ func TestSCMCredentials(t *testing.T) {
|
||||
defer cli.Close()
|
||||
|
||||
var ucred unix.Ucred
|
||||
if os.Getuid() != 0 {
|
||||
ucred.Pid = int32(os.Getpid())
|
||||
ucred.Uid = 0
|
||||
ucred.Gid = 0
|
||||
oob := unix.UnixCredentials(&ucred)
|
||||
_, _, err := cli.(*net.UnixConn).WriteMsgUnix(nil, oob, nil)
|
||||
if op, ok := err.(*net.OpError); ok {
|
||||
err = op.Err
|
||||
}
|
||||
if sys, ok := err.(*os.SyscallError); ok {
|
||||
err = sys.Err
|
||||
}
|
||||
if err != syscall.EPERM {
|
||||
t.Fatalf("WriteMsgUnix failed with %v, want EPERM", err)
|
||||
}
|
||||
}
|
||||
|
||||
ucred.Pid = int32(os.Getpid())
|
||||
ucred.Uid = uint32(os.Getuid())
|
||||
ucred.Gid = uint32(os.Getgid())
|
||||
|
51
vendor/golang.org/x/sys/unix/dev_darwin_test.go
generated
vendored
51
vendor/golang.org/x/sys/unix/dev_darwin_test.go
generated
vendored
@ -1,51 +0,0 @@
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.7
|
||||
|
||||
package unix_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func TestDevices(t *testing.T) {
|
||||
testCases := []struct {
|
||||
path string
|
||||
major uint32
|
||||
minor uint32
|
||||
}{
|
||||
// Most of the device major/minor numbers on Darwin are
|
||||
// dynamically generated by devfs. These are some well-known
|
||||
// static numbers.
|
||||
{"/dev/ttyp0", 4, 0},
|
||||
{"/dev/ttys0", 4, 48},
|
||||
{"/dev/ptyp0", 5, 0},
|
||||
{"/dev/ptyr0", 5, 32},
|
||||
}
|
||||
for _, tc := range testCases {
|
||||
t.Run(fmt.Sprintf("%s %v:%v", tc.path, tc.major, tc.minor), func(t *testing.T) {
|
||||
var stat unix.Stat_t
|
||||
err := unix.Stat(tc.path, &stat)
|
||||
if err != nil {
|
||||
t.Errorf("failed to stat device: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
dev := uint64(stat.Rdev)
|
||||
if unix.Major(dev) != tc.major {
|
||||
t.Errorf("for %s Major(%#x) == %d, want %d", tc.path, dev, unix.Major(dev), tc.major)
|
||||
}
|
||||
if unix.Minor(dev) != tc.minor {
|
||||
t.Errorf("for %s Minor(%#x) == %d, want %d", tc.path, dev, unix.Minor(dev), tc.minor)
|
||||
}
|
||||
if unix.Mkdev(tc.major, tc.minor) != dev {
|
||||
t.Errorf("for %s Mkdev(%d, %d) == %#x, want %#x", tc.path, tc.major, tc.minor, unix.Mkdev(tc.major, tc.minor), dev)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
50
vendor/golang.org/x/sys/unix/dev_dragonfly_test.go
generated
vendored
50
vendor/golang.org/x/sys/unix/dev_dragonfly_test.go
generated
vendored
@ -1,50 +0,0 @@
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.7
|
||||
|
||||
package unix_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func TestDevices(t *testing.T) {
|
||||
testCases := []struct {
|
||||
path string
|
||||
major uint32
|
||||
minor uint32
|
||||
}{
|
||||
// Minor is a cookie instead of an index on DragonFlyBSD
|
||||
{"/dev/null", 10, 0x00000002},
|
||||
{"/dev/random", 10, 0x00000003},
|
||||
{"/dev/urandom", 10, 0x00000004},
|
||||
{"/dev/zero", 10, 0x0000000c},
|
||||
{"/dev/bpf", 15, 0xffff00ff},
|
||||
}
|
||||
for _, tc := range testCases {
|
||||
t.Run(fmt.Sprintf("%s %v:%v", tc.path, tc.major, tc.minor), func(t *testing.T) {
|
||||
var stat unix.Stat_t
|
||||
err := unix.Stat(tc.path, &stat)
|
||||
if err != nil {
|
||||
t.Errorf("failed to stat device: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
dev := uint64(stat.Rdev)
|
||||
if unix.Major(dev) != tc.major {
|
||||
t.Errorf("for %s Major(%#x) == %d, want %d", tc.path, dev, unix.Major(dev), tc.major)
|
||||
}
|
||||
if unix.Minor(dev) != tc.minor {
|
||||
t.Errorf("for %s Minor(%#x) == %d, want %d", tc.path, dev, unix.Minor(dev), tc.minor)
|
||||
}
|
||||
if unix.Mkdev(tc.major, tc.minor) != dev {
|
||||
t.Errorf("for %s Mkdev(%d, %d) == %#x, want %#x", tc.path, tc.major, tc.minor, unix.Mkdev(tc.major, tc.minor), dev)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
3
vendor/golang.org/x/sys/unix/dev_linux_test.go
generated
vendored
3
vendor/golang.org/x/sys/unix/dev_linux_test.go
generated
vendored
@ -33,6 +33,9 @@ func TestDevices(t *testing.T) {
|
||||
var stat unix.Stat_t
|
||||
err := unix.Stat(tc.path, &stat)
|
||||
if err != nil {
|
||||
if err == unix.EACCES {
|
||||
t.Skip("no permission to stat device, skipping test")
|
||||
}
|
||||
t.Errorf("failed to stat device: %v", err)
|
||||
return
|
||||
}
|
||||
|
50
vendor/golang.org/x/sys/unix/dev_netbsd_test.go
generated
vendored
50
vendor/golang.org/x/sys/unix/dev_netbsd_test.go
generated
vendored
@ -1,50 +0,0 @@
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.7
|
||||
|
||||
package unix_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func TestDevices(t *testing.T) {
|
||||
testCases := []struct {
|
||||
path string
|
||||
major uint32
|
||||
minor uint32
|
||||
}{
|
||||
// well known major/minor numbers according to /dev/MAKEDEV on
|
||||
// NetBSD 8.0
|
||||
{"/dev/null", 2, 2},
|
||||
{"/dev/zero", 2, 12},
|
||||
{"/dev/random", 46, 0},
|
||||
{"/dev/urandom", 46, 1},
|
||||
}
|
||||
for _, tc := range testCases {
|
||||
t.Run(fmt.Sprintf("%s %v:%v", tc.path, tc.major, tc.minor), func(t *testing.T) {
|
||||
var stat unix.Stat_t
|
||||
err := unix.Stat(tc.path, &stat)
|
||||
if err != nil {
|
||||
t.Errorf("failed to stat device: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
dev := uint64(stat.Rdev)
|
||||
if unix.Major(dev) != tc.major {
|
||||
t.Errorf("for %s Major(%#x) == %d, want %d", tc.path, dev, unix.Major(dev), tc.major)
|
||||
}
|
||||
if unix.Minor(dev) != tc.minor {
|
||||
t.Errorf("for %s Minor(%#x) == %d, want %d", tc.path, dev, unix.Minor(dev), tc.minor)
|
||||
}
|
||||
if unix.Mkdev(tc.major, tc.minor) != dev {
|
||||
t.Errorf("for %s Mkdev(%d, %d) == %#x, want %#x", tc.path, tc.major, tc.minor, unix.Mkdev(tc.major, tc.minor), dev)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
54
vendor/golang.org/x/sys/unix/dev_openbsd_test.go
generated
vendored
54
vendor/golang.org/x/sys/unix/dev_openbsd_test.go
generated
vendored
@ -1,54 +0,0 @@
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.7
|
||||
|
||||
package unix_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func TestDevices(t *testing.T) {
|
||||
testCases := []struct {
|
||||
path string
|
||||
major uint32
|
||||
minor uint32
|
||||
}{
|
||||
// well known major/minor numbers according to /dev/MAKEDEV on
|
||||
// OpenBSD 6.0
|
||||
{"/dev/null", 2, 2},
|
||||
{"/dev/zero", 2, 12},
|
||||
{"/dev/ttyp0", 5, 0},
|
||||
{"/dev/ttyp1", 5, 1},
|
||||
{"/dev/random", 45, 0},
|
||||
{"/dev/srandom", 45, 1},
|
||||
{"/dev/urandom", 45, 2},
|
||||
{"/dev/arandom", 45, 3},
|
||||
}
|
||||
for _, tc := range testCases {
|
||||
t.Run(fmt.Sprintf("%s %v:%v", tc.path, tc.major, tc.minor), func(t *testing.T) {
|
||||
var stat unix.Stat_t
|
||||
err := unix.Stat(tc.path, &stat)
|
||||
if err != nil {
|
||||
t.Errorf("failed to stat device: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
dev := uint64(stat.Rdev)
|
||||
if unix.Major(dev) != tc.major {
|
||||
t.Errorf("for %s Major(%#x) == %d, want %d", tc.path, dev, unix.Major(dev), tc.major)
|
||||
}
|
||||
if unix.Minor(dev) != tc.minor {
|
||||
t.Errorf("for %s Minor(%#x) == %d, want %d", tc.path, dev, unix.Minor(dev), tc.minor)
|
||||
}
|
||||
if unix.Mkdev(tc.major, tc.minor) != dev {
|
||||
t.Errorf("for %s Mkdev(%d, %d) == %#x, want %#x", tc.path, tc.major, tc.minor, unix.Mkdev(tc.major, tc.minor), dev)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
51
vendor/golang.org/x/sys/unix/dev_solaris_test.go
generated
vendored
51
vendor/golang.org/x/sys/unix/dev_solaris_test.go
generated
vendored
@ -1,51 +0,0 @@
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.7
|
||||
|
||||
package unix_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func TestDevices(t *testing.T) {
|
||||
testCases := []struct {
|
||||
path string
|
||||
major uint32
|
||||
minor uint32
|
||||
}{
|
||||
// Well-known major/minor numbers on OpenSolaris according to
|
||||
// /etc/name_to_major
|
||||
{"/dev/zero", 134, 12},
|
||||
{"/dev/null", 134, 2},
|
||||
{"/dev/ptyp0", 172, 0},
|
||||
{"/dev/ttyp0", 175, 0},
|
||||
{"/dev/ttyp1", 175, 1},
|
||||
}
|
||||
for _, tc := range testCases {
|
||||
t.Run(fmt.Sprintf("%s %v:%v", tc.path, tc.major, tc.minor), func(t *testing.T) {
|
||||
var stat unix.Stat_t
|
||||
err := unix.Stat(tc.path, &stat)
|
||||
if err != nil {
|
||||
t.Errorf("failed to stat device: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
dev := uint64(stat.Rdev)
|
||||
if unix.Major(dev) != tc.major {
|
||||
t.Errorf("for %s Major(%#x) == %d, want %d", tc.path, dev, unix.Major(dev), tc.major)
|
||||
}
|
||||
if unix.Minor(dev) != tc.minor {
|
||||
t.Errorf("for %s Minor(%#x) == %d, want %d", tc.path, dev, unix.Minor(dev), tc.minor)
|
||||
}
|
||||
if unix.Mkdev(tc.major, tc.minor) != dev {
|
||||
t.Errorf("for %s Mkdev(%d, %d) == %#x, want %#x", tc.path, tc.major, tc.minor, unix.Mkdev(tc.major, tc.minor), dev)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
19
vendor/golang.org/x/sys/unix/example_test.go
generated
vendored
Normal file
19
vendor/golang.org/x/sys/unix/example_test.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
// Copyright 2018 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
|
||||
|
||||
package unix_test
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func ExampleExec() {
|
||||
err := unix.Exec("/bin/ls", []string{"ls", "-al"}, os.Environ())
|
||||
log.Fatal(err)
|
||||
}
|
10
vendor/golang.org/x/sys/unix/flock.go → vendor/golang.org/x/sys/unix/fcntl.go
generated
vendored
10
vendor/golang.org/x/sys/unix/flock.go → vendor/golang.org/x/sys/unix/fcntl.go
generated
vendored
@ -12,6 +12,16 @@ import "unsafe"
|
||||
// systems by flock_linux_32bit.go to be SYS_FCNTL64.
|
||||
var fcntl64Syscall uintptr = SYS_FCNTL
|
||||
|
||||
// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
|
||||
func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
|
||||
valptr, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(arg))
|
||||
var err error
|
||||
if errno != 0 {
|
||||
err = errno
|
||||
}
|
||||
return int(valptr), err
|
||||
}
|
||||
|
||||
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
|
||||
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
|
||||
_, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
|
9
vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
9
vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
@ -36,12 +36,3 @@ gccgoRealSyscallNoError(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3
|
||||
{
|
||||
return syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9);
|
||||
}
|
||||
|
||||
// Define the use function in C so that it is not inlined.
|
||||
|
||||
extern void use(void *) __asm__ (GOSYM_PREFIX GOPKGPATH ".use") __attribute__((noinline));
|
||||
|
||||
void
|
||||
use(void *p __attribute__ ((unused)))
|
||||
{
|
||||
}
|
||||
|
30
vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
Normal file
30
vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
// Copyright 2018 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
|
||||
|
||||
package unix
|
||||
|
||||
import "runtime"
|
||||
|
||||
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
||||
//
|
||||
// To change fd's window size, the req argument should be TIOCSWINSZ.
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
// TODO: if we get the chance, remove the req parameter and
|
||||
// hardcode TIOCSWINSZ.
|
||||
err := ioctlSetWinsize(fd, req, value)
|
||||
runtime.KeepAlive(value)
|
||||
return err
|
||||
}
|
||||
|
||||
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
||||
//
|
||||
// The req value will usually be TCSETA or TIOCSETA.
|
||||
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
// TODO: if we get the chance, remove the req parameter.
|
||||
err := ioctlSetTermios(fd, req, value)
|
||||
runtime.KeepAlive(value)
|
||||
return err
|
||||
}
|
28
vendor/golang.org/x/sys/unix/linux/Dockerfile
generated
vendored
28
vendor/golang.org/x/sys/unix/linux/Dockerfile
generated
vendored
@ -1,23 +1,25 @@
|
||||
FROM ubuntu:17.10
|
||||
FROM ubuntu:18.04
|
||||
|
||||
# Dependencies to get the git sources and go binaries
|
||||
RUN apt-get update && apt-get install -y \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Get the git sources. If not cached, this takes O(5 minutes).
|
||||
WORKDIR /git
|
||||
RUN git config --global advice.detachedHead false
|
||||
# Linux Kernel: Released 28 Jan 2018
|
||||
RUN git clone --branch v4.15 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
|
||||
# Linux Kernel: Released 03 Jun 2018
|
||||
RUN git clone --branch v4.17 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
|
||||
# GNU C library: Released 01 Feb 2018 (we should try to get a secure way to clone this)
|
||||
RUN git clone --branch glibc-2.27 --depth 1 git://sourceware.org/git/glibc.git
|
||||
|
||||
# Get Go 1.10
|
||||
ENV GOLANG_VERSION 1.10
|
||||
# Get Go
|
||||
ENV GOLANG_VERSION 1.11beta1
|
||||
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
|
||||
ENV GOLANG_DOWNLOAD_SHA256 b5a64335f1490277b585832d1f6c7f8c6c11206cba5cd3f771dcb87b98ad1a33
|
||||
ENV GOLANG_DOWNLOAD_SHA256 df7fe096ffab5d331d35c6d038d2ec0426b45ce17f55a93037e371d3af9d4e6d
|
||||
|
||||
RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
|
||||
&& echo "$GOLANG_DOWNLOAD_SHA256 golang.tar.gz" | sha256sum -c - \
|
||||
@ -26,20 +28,22 @@ RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
|
||||
|
||||
ENV PATH /usr/local/go/bin:$PATH
|
||||
|
||||
# Linux and Glibc build dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
# Linux and Glibc build dependencies and emulator
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
bison gawk make python \
|
||||
gcc gcc-multilib \
|
||||
gettext texinfo \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
# Emulator and cross compilers
|
||||
RUN apt-get update && apt-get install -y \
|
||||
qemu \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
# Cross compilers (install recommended packages to get cross libc-dev)
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi \
|
||||
gcc-mips-linux-gnu gcc-mips64-linux-gnuabi64 \
|
||||
gcc-mips64el-linux-gnuabi64 gcc-mipsel-linux-gnu \
|
||||
gcc-powerpc64-linux-gnu gcc-powerpc64le-linux-gnu \
|
||||
gcc-s390x-linux-gnu gcc-sparc64-linux-gnu \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Let the scripts know they are in the docker environment
|
||||
|
270
vendor/golang.org/x/sys/unix/linux/mkall.go
generated
vendored
270
vendor/golang.org/x/sys/unix/linux/mkall.go
generated
vendored
@ -17,6 +17,9 @@ package main
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"debug/elf"
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
@ -292,7 +295,7 @@ func (t *target) generateFiles() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Create the Linux and glibc headers in the include directory.
|
||||
// Create the Linux, glibc and ABI (C compiler convention) headers in the include directory.
|
||||
func (t *target) makeHeaders() error {
|
||||
// Make the Linux headers we need for this architecture
|
||||
linuxMake := makeCommand("make", "headers_install", "ARCH="+t.LinuxArch, "INSTALL_HDR_PATH="+TempDir)
|
||||
@ -327,6 +330,114 @@ func (t *target) makeHeaders() error {
|
||||
file.Close()
|
||||
}
|
||||
|
||||
// ABI headers will specify C compiler behavior for the target platform.
|
||||
return t.makeABIHeaders()
|
||||
}
|
||||
|
||||
// makeABIHeaders generates C header files based on the platform's calling convention.
|
||||
// While many platforms have formal Application Binary Interfaces, in practice, whatever the
|
||||
// dominant C compilers generate is the de-facto calling convention.
|
||||
//
|
||||
// We generate C headers instead of a Go file, so as to enable references to the ABI from Cgo.
|
||||
func (t *target) makeABIHeaders() (err error) {
|
||||
abiDir := filepath.Join(IncludeDir, "abi")
|
||||
if err = os.Mkdir(abiDir, os.ModePerm); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cc := os.Getenv("CC")
|
||||
if cc == "" {
|
||||
return errors.New("CC (compiler) env var not set")
|
||||
}
|
||||
|
||||
// Build a sacrificial ELF file, to mine for C compiler behavior.
|
||||
binPath := filepath.Join(TempDir, "tmp_abi.o")
|
||||
bin, err := t.buildELF(cc, cCode, binPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot build ELF to analyze: %v", err)
|
||||
}
|
||||
defer bin.Close()
|
||||
defer os.Remove(binPath)
|
||||
|
||||
// Right now, we put everything in abi.h, but we may change this later.
|
||||
abiFile, err := os.Create(filepath.Join(abiDir, "abi.h"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer func() {
|
||||
if cerr := abiFile.Close(); cerr != nil && err == nil {
|
||||
err = cerr
|
||||
}
|
||||
}()
|
||||
|
||||
if err = t.writeBitFieldMasks(bin, abiFile); err != nil {
|
||||
return fmt.Errorf("cannot write bitfield masks: %v", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t *target) buildELF(cc, src, path string) (*elf.File, error) {
|
||||
// Compile the cCode source using the set compiler - we will need its .data section.
|
||||
// Do not link the binary, so that we can find .data section offsets from the symbol values.
|
||||
ccCmd := makeCommand(cc, "-o", path, "-gdwarf", "-x", "c", "-c", "-")
|
||||
ccCmd.Stdin = strings.NewReader(src)
|
||||
ccCmd.Stdout = os.Stdout
|
||||
if err := ccCmd.Run(); err != nil {
|
||||
return nil, fmt.Errorf("compiler error: %v", err)
|
||||
}
|
||||
|
||||
bin, err := elf.Open(path)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("cannot read ELF file %s: %v", path, err)
|
||||
}
|
||||
|
||||
return bin, nil
|
||||
}
|
||||
|
||||
func (t *target) writeBitFieldMasks(bin *elf.File, out io.Writer) error {
|
||||
symbols, err := bin.Symbols()
|
||||
if err != nil {
|
||||
return fmt.Errorf("getting ELF symbols: %v", err)
|
||||
}
|
||||
var masksSym *elf.Symbol
|
||||
|
||||
for _, sym := range symbols {
|
||||
if sym.Name == "masks" {
|
||||
masksSym = &sym
|
||||
}
|
||||
}
|
||||
|
||||
if masksSym == nil {
|
||||
return errors.New("could not find the 'masks' symbol in ELF symtab")
|
||||
}
|
||||
|
||||
dataSection := bin.Section(".data")
|
||||
if dataSection == nil {
|
||||
return errors.New("ELF file has no .data section")
|
||||
}
|
||||
|
||||
data, err := dataSection.Data()
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not read .data section: %v\n", err)
|
||||
}
|
||||
|
||||
var bo binary.ByteOrder
|
||||
if t.BigEndian {
|
||||
bo = binary.BigEndian
|
||||
} else {
|
||||
bo = binary.LittleEndian
|
||||
}
|
||||
|
||||
// 64 bit masks of type uint64 are stored in the data section starting at masks.Value.
|
||||
// Here we are running on AMD64, but these values may be big endian or little endian,
|
||||
// depending on target architecture.
|
||||
for i := uint64(0); i < 64; i++ {
|
||||
off := masksSym.Value + i*8
|
||||
// Define each mask in native by order, so as to match target endian.
|
||||
fmt.Fprintf(out, "#define BITFIELD_MASK_%d %dULL\n", i, bo.Uint64(data[off:off+8]))
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -480,3 +591,160 @@ func writeOnePtrace(w io.Writer, arch, def string) {
|
||||
fmt.Fprintf(w, "\treturn ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))\n")
|
||||
fmt.Fprintf(w, "}\n")
|
||||
}
|
||||
|
||||
// cCode is compiled for the target architecture, and the resulting data section is carved for
|
||||
// the statically initialized bit masks.
|
||||
const cCode = `
|
||||
// Bit fields are used in some system calls and other ABIs, but their memory layout is
|
||||
// implementation-defined [1]. Even with formal ABIs, bit fields are a source of subtle bugs [2].
|
||||
// Here we generate the offsets for all 64 bits in an uint64.
|
||||
// 1: http://en.cppreference.com/w/c/language/bit_field
|
||||
// 2: https://lwn.net/Articles/478657/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct bitfield {
|
||||
union {
|
||||
uint64_t val;
|
||||
struct {
|
||||
uint64_t u64_bit_0 : 1;
|
||||
uint64_t u64_bit_1 : 1;
|
||||
uint64_t u64_bit_2 : 1;
|
||||
uint64_t u64_bit_3 : 1;
|
||||
uint64_t u64_bit_4 : 1;
|
||||
uint64_t u64_bit_5 : 1;
|
||||
uint64_t u64_bit_6 : 1;
|
||||
uint64_t u64_bit_7 : 1;
|
||||
uint64_t u64_bit_8 : 1;
|
||||
uint64_t u64_bit_9 : 1;
|
||||
uint64_t u64_bit_10 : 1;
|
||||
uint64_t u64_bit_11 : 1;
|
||||
uint64_t u64_bit_12 : 1;
|
||||
uint64_t u64_bit_13 : 1;
|
||||
uint64_t u64_bit_14 : 1;
|
||||
uint64_t u64_bit_15 : 1;
|
||||
uint64_t u64_bit_16 : 1;
|
||||
uint64_t u64_bit_17 : 1;
|
||||
uint64_t u64_bit_18 : 1;
|
||||
uint64_t u64_bit_19 : 1;
|
||||
uint64_t u64_bit_20 : 1;
|
||||
uint64_t u64_bit_21 : 1;
|
||||
uint64_t u64_bit_22 : 1;
|
||||
uint64_t u64_bit_23 : 1;
|
||||
uint64_t u64_bit_24 : 1;
|
||||
uint64_t u64_bit_25 : 1;
|
||||
uint64_t u64_bit_26 : 1;
|
||||
uint64_t u64_bit_27 : 1;
|
||||
uint64_t u64_bit_28 : 1;
|
||||
uint64_t u64_bit_29 : 1;
|
||||
uint64_t u64_bit_30 : 1;
|
||||
uint64_t u64_bit_31 : 1;
|
||||
uint64_t u64_bit_32 : 1;
|
||||
uint64_t u64_bit_33 : 1;
|
||||
uint64_t u64_bit_34 : 1;
|
||||
uint64_t u64_bit_35 : 1;
|
||||
uint64_t u64_bit_36 : 1;
|
||||
uint64_t u64_bit_37 : 1;
|
||||
uint64_t u64_bit_38 : 1;
|
||||
uint64_t u64_bit_39 : 1;
|
||||
uint64_t u64_bit_40 : 1;
|
||||
uint64_t u64_bit_41 : 1;
|
||||
uint64_t u64_bit_42 : 1;
|
||||
uint64_t u64_bit_43 : 1;
|
||||
uint64_t u64_bit_44 : 1;
|
||||
uint64_t u64_bit_45 : 1;
|
||||
uint64_t u64_bit_46 : 1;
|
||||
uint64_t u64_bit_47 : 1;
|
||||
uint64_t u64_bit_48 : 1;
|
||||
uint64_t u64_bit_49 : 1;
|
||||
uint64_t u64_bit_50 : 1;
|
||||
uint64_t u64_bit_51 : 1;
|
||||
uint64_t u64_bit_52 : 1;
|
||||
uint64_t u64_bit_53 : 1;
|
||||
uint64_t u64_bit_54 : 1;
|
||||
uint64_t u64_bit_55 : 1;
|
||||
uint64_t u64_bit_56 : 1;
|
||||
uint64_t u64_bit_57 : 1;
|
||||
uint64_t u64_bit_58 : 1;
|
||||
uint64_t u64_bit_59 : 1;
|
||||
uint64_t u64_bit_60 : 1;
|
||||
uint64_t u64_bit_61 : 1;
|
||||
uint64_t u64_bit_62 : 1;
|
||||
uint64_t u64_bit_63 : 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
struct bitfield masks[] = {
|
||||
{.u64_bit_0 = 1},
|
||||
{.u64_bit_1 = 1},
|
||||
{.u64_bit_2 = 1},
|
||||
{.u64_bit_3 = 1},
|
||||
{.u64_bit_4 = 1},
|
||||
{.u64_bit_5 = 1},
|
||||
{.u64_bit_6 = 1},
|
||||
{.u64_bit_7 = 1},
|
||||
{.u64_bit_8 = 1},
|
||||
{.u64_bit_9 = 1},
|
||||
{.u64_bit_10 = 1},
|
||||
{.u64_bit_11 = 1},
|
||||
{.u64_bit_12 = 1},
|
||||
{.u64_bit_13 = 1},
|
||||
{.u64_bit_14 = 1},
|
||||
{.u64_bit_15 = 1},
|
||||
{.u64_bit_16 = 1},
|
||||
{.u64_bit_17 = 1},
|
||||
{.u64_bit_18 = 1},
|
||||
{.u64_bit_19 = 1},
|
||||
{.u64_bit_20 = 1},
|
||||
{.u64_bit_21 = 1},
|
||||
{.u64_bit_22 = 1},
|
||||
{.u64_bit_23 = 1},
|
||||
{.u64_bit_24 = 1},
|
||||
{.u64_bit_25 = 1},
|
||||
{.u64_bit_26 = 1},
|
||||
{.u64_bit_27 = 1},
|
||||
{.u64_bit_28 = 1},
|
||||
{.u64_bit_29 = 1},
|
||||
{.u64_bit_30 = 1},
|
||||
{.u64_bit_31 = 1},
|
||||
{.u64_bit_32 = 1},
|
||||
{.u64_bit_33 = 1},
|
||||
{.u64_bit_34 = 1},
|
||||
{.u64_bit_35 = 1},
|
||||
{.u64_bit_36 = 1},
|
||||
{.u64_bit_37 = 1},
|
||||
{.u64_bit_38 = 1},
|
||||
{.u64_bit_39 = 1},
|
||||
{.u64_bit_40 = 1},
|
||||
{.u64_bit_41 = 1},
|
||||
{.u64_bit_42 = 1},
|
||||
{.u64_bit_43 = 1},
|
||||
{.u64_bit_44 = 1},
|
||||
{.u64_bit_45 = 1},
|
||||
{.u64_bit_46 = 1},
|
||||
{.u64_bit_47 = 1},
|
||||
{.u64_bit_48 = 1},
|
||||
{.u64_bit_49 = 1},
|
||||
{.u64_bit_50 = 1},
|
||||
{.u64_bit_51 = 1},
|
||||
{.u64_bit_52 = 1},
|
||||
{.u64_bit_53 = 1},
|
||||
{.u64_bit_54 = 1},
|
||||
{.u64_bit_55 = 1},
|
||||
{.u64_bit_56 = 1},
|
||||
{.u64_bit_57 = 1},
|
||||
{.u64_bit_58 = 1},
|
||||
{.u64_bit_59 = 1},
|
||||
{.u64_bit_60 = 1},
|
||||
{.u64_bit_61 = 1},
|
||||
{.u64_bit_62 = 1},
|
||||
{.u64_bit_63 = 1}
|
||||
};
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
struct bitfield *mask_ptr = &masks[0];
|
||||
return mask_ptr->val;
|
||||
}
|
||||
|
||||
`
|
||||
|
836
vendor/golang.org/x/sys/unix/linux/types.go
generated
vendored
836
vendor/golang.org/x/sys/unix/linux/types.go
generated
vendored
@ -22,7 +22,6 @@ package unix
|
||||
#include <dirent.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <netpacket/packet.h>
|
||||
#include <poll.h>
|
||||
#include <sched.h>
|
||||
#include <signal.h>
|
||||
@ -38,6 +37,7 @@ package unix
|
||||
#include <sys/select.h>
|
||||
#include <sys/signal.h>
|
||||
#include <sys/statfs.h>
|
||||
#include <sys/statvfs.h>
|
||||
#include <sys/sysinfo.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/times.h>
|
||||
@ -49,6 +49,9 @@ package unix
|
||||
#include <linux/filter.h>
|
||||
#include <linux/icmpv6.h>
|
||||
#include <linux/keyctl.h>
|
||||
#include <linux/netfilter/nf_tables.h>
|
||||
#include <linux/netfilter/nfnetlink.h>
|
||||
#include <linux/netfilter.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/perf_event.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
@ -57,23 +60,29 @@ package unix
|
||||
#include <asm/ptrace.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <ustat.h>
|
||||
#include <utime.h>
|
||||
#include <linux/can.h>
|
||||
#include <linux/if_alg.h>
|
||||
#include <linux/if_packet.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/vm_sockets.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/taskstats.h>
|
||||
#include <linux/cgroupstats.h>
|
||||
#include <linux/genetlink.h>
|
||||
#include <linux/socket.h>
|
||||
#include <linux/hdreg.h>
|
||||
#include <linux/rtc.h>
|
||||
|
||||
// abi/abi.h generated by mkall.go.
|
||||
#include "abi/abi.h"
|
||||
|
||||
// On mips64, the glibc stat and kernel stat do not agree
|
||||
#if (defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI64)
|
||||
|
||||
// Use the stat defined by the kernel with a few modifications. These are:
|
||||
// * The time fields (like st_atime and st_atimensec) use the timespec
|
||||
// struct (like st_atim) for consitancy with the glibc fields.
|
||||
// struct (like st_atim) for consistency with the glibc fields.
|
||||
// * The padding fields get different names to not break compatibility.
|
||||
// * st_blocks is signed, again for compatibility.
|
||||
struct stat {
|
||||
@ -93,8 +102,8 @@ struct stat {
|
||||
|
||||
off_t st_size;
|
||||
|
||||
// These are declared as speperate fields in the kernel. Here we use
|
||||
// the timespec struct for consistancy with the other stat structs.
|
||||
// These are declared as separate fields in the kernel. Here we use
|
||||
// the timespec struct for consistency with the other stat structs.
|
||||
struct timespec st_atim;
|
||||
struct timespec st_mtim;
|
||||
struct timespec st_ctim;
|
||||
@ -132,6 +141,10 @@ struct stat {
|
||||
# define AT_STATX_DONT_SYNC 0x4000 // - Don't sync attributes with the server
|
||||
#endif
|
||||
|
||||
#ifndef AT_EACCESS
|
||||
# define AT_EACCESS 0x200 // Test access permitted for effective IDs, not real IDs.
|
||||
#endif
|
||||
|
||||
#ifdef TCSETS2
|
||||
// On systems that have "struct termios2" use this as type Termios.
|
||||
typedef struct termios2 termios_t;
|
||||
@ -178,6 +191,13 @@ struct sockaddr_l2 {
|
||||
uint8_t l2_bdaddr_type;
|
||||
};
|
||||
|
||||
// copied from /usr/include/net/bluetooth/rfcomm.h
|
||||
struct sockaddr_rc {
|
||||
sa_family_t rc_family;
|
||||
uint8_t rc_bdaddr[6];
|
||||
uint8_t rc_channel;
|
||||
};
|
||||
|
||||
// copied from /usr/include/linux/un.h
|
||||
struct my_sockaddr_un {
|
||||
sa_family_t sun_family;
|
||||
@ -228,6 +248,70 @@ struct my_epoll_event {
|
||||
int32_t pad;
|
||||
};
|
||||
|
||||
// Copied from <linux/perf_event.h> with the following modifications:
|
||||
// 1) bit field after read_format redeclared as '__u64 bits' to make it
|
||||
// accessible from Go
|
||||
// 2) collapsed the unions, to avoid confusing godoc for the generated output
|
||||
// (e.g. having to use BpAddr as an extension of Config)
|
||||
struct perf_event_attr_go {
|
||||
__u32 type;
|
||||
|
||||
__u32 size;
|
||||
__u64 config;
|
||||
|
||||
// union {
|
||||
// __u64 sample_period;
|
||||
// __u64 sample_freq;
|
||||
// };
|
||||
__u64 sample;
|
||||
|
||||
__u64 sample_type;
|
||||
__u64 read_format;
|
||||
|
||||
// Replaces the bit field. Flags are defined as constants.
|
||||
__u64 bits;
|
||||
|
||||
// union {
|
||||
// __u32 wakeup_events;
|
||||
// __u32 wakeup_watermark;
|
||||
// };
|
||||
__u32 wakeup;
|
||||
|
||||
__u32 bp_type;
|
||||
|
||||
// union {
|
||||
// __u64 bp_addr;
|
||||
// __u64 config1;
|
||||
// };
|
||||
__u64 ext1;
|
||||
|
||||
// union {
|
||||
// __u64 bp_len;
|
||||
// __u64 config2;
|
||||
// };
|
||||
__u64 ext2;
|
||||
|
||||
__u64 branch_sample_type;
|
||||
|
||||
__u64 sample_regs_user;
|
||||
|
||||
__u32 sample_stack_user;
|
||||
|
||||
__s32 clockid;
|
||||
__u64 sample_regs_intr;
|
||||
__u32 aux_watermark;
|
||||
__u32 __reserved_2;
|
||||
};
|
||||
|
||||
// ustat is deprecated and glibc 2.28 removed ustat.h. Provide the type here for
|
||||
// backwards compatibility. Copied from /usr/include/bits/ustat.h
|
||||
struct ustat {
|
||||
__daddr_t f_tfree;
|
||||
__ino_t f_tinode;
|
||||
char f_fname[6];
|
||||
char f_fpack[6];
|
||||
};
|
||||
|
||||
*/
|
||||
import "C"
|
||||
|
||||
@ -277,8 +361,6 @@ type _Gid_t C.gid_t
|
||||
|
||||
type Stat_t C.struct_stat
|
||||
|
||||
type Statfs_t C.struct_statfs
|
||||
|
||||
type StatxTimestamp C.struct_statx_timestamp
|
||||
|
||||
type Statx_t C.struct_statx
|
||||
@ -326,6 +408,8 @@ type RawSockaddrHCI C.struct_sockaddr_hci
|
||||
|
||||
type RawSockaddrL2 C.struct_sockaddr_l2
|
||||
|
||||
type RawSockaddrRFCOMM C.struct_sockaddr_rc
|
||||
|
||||
type RawSockaddrCAN C.struct_sockaddr_can
|
||||
|
||||
type RawSockaddrALG C.struct_sockaddr_alg
|
||||
@ -375,6 +459,7 @@ const (
|
||||
SizeofSockaddrNetlink = C.sizeof_struct_sockaddr_nl
|
||||
SizeofSockaddrHCI = C.sizeof_struct_sockaddr_hci
|
||||
SizeofSockaddrL2 = C.sizeof_struct_sockaddr_l2
|
||||
SizeofSockaddrRFCOMM = C.sizeof_struct_sockaddr_rc
|
||||
SizeofSockaddrCAN = C.sizeof_struct_sockaddr_can
|
||||
SizeofSockaddrALG = C.sizeof_struct_sockaddr_alg
|
||||
SizeofSockaddrVM = C.sizeof_struct_sockaddr_vm
|
||||
@ -587,6 +672,8 @@ const (
|
||||
|
||||
AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
|
||||
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
||||
|
||||
AT_EACCESS = C.AT_EACCESS
|
||||
)
|
||||
|
||||
type PollFd C.struct_pollfd
|
||||
@ -694,3 +781,738 @@ const (
|
||||
BDADDR_LE_PUBLIC = C.BDADDR_LE_PUBLIC
|
||||
BDADDR_LE_RANDOM = C.BDADDR_LE_RANDOM
|
||||
)
|
||||
|
||||
// Perf subsystem
|
||||
|
||||
type PerfEventAttr C.struct_perf_event_attr_go
|
||||
|
||||
type PerfEventMmapPage C.struct_perf_event_mmap_page
|
||||
|
||||
// Bit field in struct perf_event_attr expanded as flags.
|
||||
// Set these on PerfEventAttr.Bits by ORing them together.
|
||||
const (
|
||||
PerfBitDisabled uint64 = CBitFieldMaskBit0
|
||||
PerfBitInherit = CBitFieldMaskBit1
|
||||
PerfBitPinned = CBitFieldMaskBit2
|
||||
PerfBitExclusive = CBitFieldMaskBit3
|
||||
PerfBitExcludeUser = CBitFieldMaskBit4
|
||||
PerfBitExcludeKernel = CBitFieldMaskBit5
|
||||
PerfBitExcludeHv = CBitFieldMaskBit6
|
||||
PerfBitExcludeIdle = CBitFieldMaskBit7
|
||||
PerfBitMmap = CBitFieldMaskBit8
|
||||
PerfBitComm = CBitFieldMaskBit9
|
||||
PerfBitFreq = CBitFieldMaskBit10
|
||||
PerfBitInheritStat = CBitFieldMaskBit11
|
||||
PerfBitEnableOnExec = CBitFieldMaskBit12
|
||||
PerfBitTask = CBitFieldMaskBit13
|
||||
PerfBitWatermark = CBitFieldMaskBit14
|
||||
PerfBitPreciseIPBit1 = CBitFieldMaskBit15
|
||||
PerfBitPreciseIPBit2 = CBitFieldMaskBit16
|
||||
PerfBitMmapData = CBitFieldMaskBit17
|
||||
PerfBitSampleIDAll = CBitFieldMaskBit18
|
||||
PerfBitExcludeHost = CBitFieldMaskBit19
|
||||
PerfBitExcludeGuest = CBitFieldMaskBit20
|
||||
PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
|
||||
PerfBitExcludeCallchainUser = CBitFieldMaskBit22
|
||||
PerfBitMmap2 = CBitFieldMaskBit23
|
||||
PerfBitCommExec = CBitFieldMaskBit24
|
||||
PerfBitUseClockID = CBitFieldMaskBit25
|
||||
PerfBitContextSwitch = CBitFieldMaskBit26
|
||||
)
|
||||
|
||||
const (
|
||||
PERF_TYPE_HARDWARE = C.PERF_TYPE_HARDWARE
|
||||
PERF_TYPE_SOFTWARE = C.PERF_TYPE_SOFTWARE
|
||||
PERF_TYPE_TRACEPOINT = C.PERF_TYPE_TRACEPOINT
|
||||
PERF_TYPE_HW_CACHE = C.PERF_TYPE_HW_CACHE
|
||||
PERF_TYPE_RAW = C.PERF_TYPE_RAW
|
||||
PERF_TYPE_BREAKPOINT = C.PERF_TYPE_BREAKPOINT
|
||||
|
||||
PERF_COUNT_HW_CPU_CYCLES = C.PERF_COUNT_HW_CPU_CYCLES
|
||||
PERF_COUNT_HW_INSTRUCTIONS = C.PERF_COUNT_HW_INSTRUCTIONS
|
||||
PERF_COUNT_HW_CACHE_REFERENCES = C.PERF_COUNT_HW_CACHE_REFERENCES
|
||||
PERF_COUNT_HW_CACHE_MISSES = C.PERF_COUNT_HW_CACHE_MISSES
|
||||
PERF_COUNT_HW_BRANCH_INSTRUCTIONS = C.PERF_COUNT_HW_BRANCH_INSTRUCTIONS
|
||||
PERF_COUNT_HW_BRANCH_MISSES = C.PERF_COUNT_HW_BRANCH_MISSES
|
||||
PERF_COUNT_HW_BUS_CYCLES = C.PERF_COUNT_HW_BUS_CYCLES
|
||||
PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = C.PERF_COUNT_HW_STALLED_CYCLES_FRONTEND
|
||||
PERF_COUNT_HW_STALLED_CYCLES_BACKEND = C.PERF_COUNT_HW_STALLED_CYCLES_BACKEND
|
||||
PERF_COUNT_HW_REF_CPU_CYCLES = C.PERF_COUNT_HW_REF_CPU_CYCLES
|
||||
|
||||
PERF_COUNT_HW_CACHE_L1D = C.PERF_COUNT_HW_CACHE_L1D
|
||||
PERF_COUNT_HW_CACHE_L1I = C.PERF_COUNT_HW_CACHE_L1I
|
||||
PERF_COUNT_HW_CACHE_LL = C.PERF_COUNT_HW_CACHE_LL
|
||||
PERF_COUNT_HW_CACHE_DTLB = C.PERF_COUNT_HW_CACHE_DTLB
|
||||
PERF_COUNT_HW_CACHE_ITLB = C.PERF_COUNT_HW_CACHE_ITLB
|
||||
PERF_COUNT_HW_CACHE_BPU = C.PERF_COUNT_HW_CACHE_BPU
|
||||
PERF_COUNT_HW_CACHE_NODE = C.PERF_COUNT_HW_CACHE_NODE
|
||||
|
||||
PERF_COUNT_HW_CACHE_OP_READ = C.PERF_COUNT_HW_CACHE_OP_READ
|
||||
PERF_COUNT_HW_CACHE_OP_WRITE = C.PERF_COUNT_HW_CACHE_OP_WRITE
|
||||
PERF_COUNT_HW_CACHE_OP_PREFETCH = C.PERF_COUNT_HW_CACHE_OP_PREFETCH
|
||||
|
||||
PERF_COUNT_HW_CACHE_RESULT_ACCESS = C.PERF_COUNT_HW_CACHE_RESULT_ACCESS
|
||||
PERF_COUNT_HW_CACHE_RESULT_MISS = C.PERF_COUNT_HW_CACHE_RESULT_MISS
|
||||
|
||||
PERF_COUNT_SW_CPU_CLOCK = C.PERF_COUNT_SW_CPU_CLOCK
|
||||
PERF_COUNT_SW_TASK_CLOCK = C.PERF_COUNT_SW_TASK_CLOCK
|
||||
PERF_COUNT_SW_PAGE_FAULTS = C.PERF_COUNT_SW_PAGE_FAULTS
|
||||
PERF_COUNT_SW_CONTEXT_SWITCHES = C.PERF_COUNT_SW_CONTEXT_SWITCHES
|
||||
PERF_COUNT_SW_CPU_MIGRATIONS = C.PERF_COUNT_SW_CPU_MIGRATIONS
|
||||
PERF_COUNT_SW_PAGE_FAULTS_MIN = C.PERF_COUNT_SW_PAGE_FAULTS_MIN
|
||||
PERF_COUNT_SW_PAGE_FAULTS_MAJ = C.PERF_COUNT_SW_PAGE_FAULTS_MAJ
|
||||
PERF_COUNT_SW_ALIGNMENT_FAULTS = C.PERF_COUNT_SW_ALIGNMENT_FAULTS
|
||||
PERF_COUNT_SW_EMULATION_FAULTS = C.PERF_COUNT_SW_EMULATION_FAULTS
|
||||
PERF_COUNT_SW_DUMMY = C.PERF_COUNT_SW_DUMMY
|
||||
|
||||
PERF_SAMPLE_IP = C.PERF_SAMPLE_IP
|
||||
PERF_SAMPLE_TID = C.PERF_SAMPLE_TID
|
||||
PERF_SAMPLE_TIME = C.PERF_SAMPLE_TIME
|
||||
PERF_SAMPLE_ADDR = C.PERF_SAMPLE_ADDR
|
||||
PERF_SAMPLE_READ = C.PERF_SAMPLE_READ
|
||||
PERF_SAMPLE_CALLCHAIN = C.PERF_SAMPLE_CALLCHAIN
|
||||
PERF_SAMPLE_ID = C.PERF_SAMPLE_ID
|
||||
PERF_SAMPLE_CPU = C.PERF_SAMPLE_CPU
|
||||
PERF_SAMPLE_PERIOD = C.PERF_SAMPLE_PERIOD
|
||||
PERF_SAMPLE_STREAM_ID = C.PERF_SAMPLE_STREAM_ID
|
||||
PERF_SAMPLE_RAW = C.PERF_SAMPLE_RAW
|
||||
PERF_SAMPLE_BRANCH_STACK = C.PERF_SAMPLE_BRANCH_STACK
|
||||
|
||||
PERF_SAMPLE_BRANCH_USER = C.PERF_SAMPLE_BRANCH_USER
|
||||
PERF_SAMPLE_BRANCH_KERNEL = C.PERF_SAMPLE_BRANCH_KERNEL
|
||||
PERF_SAMPLE_BRANCH_HV = C.PERF_SAMPLE_BRANCH_HV
|
||||
PERF_SAMPLE_BRANCH_ANY = C.PERF_SAMPLE_BRANCH_ANY
|
||||
PERF_SAMPLE_BRANCH_ANY_CALL = C.PERF_SAMPLE_BRANCH_ANY_CALL
|
||||
PERF_SAMPLE_BRANCH_ANY_RETURN = C.PERF_SAMPLE_BRANCH_ANY_RETURN
|
||||
PERF_SAMPLE_BRANCH_IND_CALL = C.PERF_SAMPLE_BRANCH_IND_CALL
|
||||
|
||||
PERF_FORMAT_TOTAL_TIME_ENABLED = C.PERF_FORMAT_TOTAL_TIME_ENABLED
|
||||
PERF_FORMAT_TOTAL_TIME_RUNNING = C.PERF_FORMAT_TOTAL_TIME_RUNNING
|
||||
PERF_FORMAT_ID = C.PERF_FORMAT_ID
|
||||
PERF_FORMAT_GROUP = C.PERF_FORMAT_GROUP
|
||||
|
||||
PERF_RECORD_MMAP = C.PERF_RECORD_MMAP
|
||||
PERF_RECORD_LOST = C.PERF_RECORD_LOST
|
||||
PERF_RECORD_COMM = C.PERF_RECORD_COMM
|
||||
PERF_RECORD_EXIT = C.PERF_RECORD_EXIT
|
||||
PERF_RECORD_THROTTLE = C.PERF_RECORD_THROTTLE
|
||||
PERF_RECORD_UNTHROTTLE = C.PERF_RECORD_UNTHROTTLE
|
||||
PERF_RECORD_FORK = C.PERF_RECORD_FORK
|
||||
PERF_RECORD_READ = C.PERF_RECORD_READ
|
||||
PERF_RECORD_SAMPLE = C.PERF_RECORD_SAMPLE
|
||||
|
||||
PERF_CONTEXT_HV = C.PERF_CONTEXT_HV
|
||||
PERF_CONTEXT_KERNEL = C.PERF_CONTEXT_KERNEL
|
||||
PERF_CONTEXT_USER = C.PERF_CONTEXT_USER
|
||||
|
||||
PERF_CONTEXT_GUEST = C.PERF_CONTEXT_GUEST
|
||||
PERF_CONTEXT_GUEST_KERNEL = C.PERF_CONTEXT_GUEST_KERNEL
|
||||
PERF_CONTEXT_GUEST_USER = C.PERF_CONTEXT_GUEST_USER
|
||||
|
||||
PERF_FLAG_FD_NO_GROUP = C.PERF_FLAG_FD_NO_GROUP
|
||||
PERF_FLAG_FD_OUTPUT = C.PERF_FLAG_FD_OUTPUT
|
||||
PERF_FLAG_PID_CGROUP = C.PERF_FLAG_PID_CGROUP
|
||||
)
|
||||
|
||||
// Platform ABI and calling convention
|
||||
|
||||
// Bit field masks for interoperability with C code that uses bit fields.
|
||||
// Each mask corresponds to a single bit set - bit field behavior can be replicated by combining
|
||||
// the masks with bitwise OR.
|
||||
const (
|
||||
CBitFieldMaskBit0 = C.BITFIELD_MASK_0
|
||||
CBitFieldMaskBit1 = C.BITFIELD_MASK_1
|
||||
CBitFieldMaskBit2 = C.BITFIELD_MASK_2
|
||||
CBitFieldMaskBit3 = C.BITFIELD_MASK_3
|
||||
CBitFieldMaskBit4 = C.BITFIELD_MASK_4
|
||||
CBitFieldMaskBit5 = C.BITFIELD_MASK_5
|
||||
CBitFieldMaskBit6 = C.BITFIELD_MASK_6
|
||||
CBitFieldMaskBit7 = C.BITFIELD_MASK_7
|
||||
CBitFieldMaskBit8 = C.BITFIELD_MASK_8
|
||||
CBitFieldMaskBit9 = C.BITFIELD_MASK_9
|
||||
CBitFieldMaskBit10 = C.BITFIELD_MASK_10
|
||||
CBitFieldMaskBit11 = C.BITFIELD_MASK_11
|
||||
CBitFieldMaskBit12 = C.BITFIELD_MASK_12
|
||||
CBitFieldMaskBit13 = C.BITFIELD_MASK_13
|
||||
CBitFieldMaskBit14 = C.BITFIELD_MASK_14
|
||||
CBitFieldMaskBit15 = C.BITFIELD_MASK_15
|
||||
CBitFieldMaskBit16 = C.BITFIELD_MASK_16
|
||||
CBitFieldMaskBit17 = C.BITFIELD_MASK_17
|
||||
CBitFieldMaskBit18 = C.BITFIELD_MASK_18
|
||||
CBitFieldMaskBit19 = C.BITFIELD_MASK_19
|
||||
CBitFieldMaskBit20 = C.BITFIELD_MASK_20
|
||||
CBitFieldMaskBit21 = C.BITFIELD_MASK_21
|
||||
CBitFieldMaskBit22 = C.BITFIELD_MASK_22
|
||||
CBitFieldMaskBit23 = C.BITFIELD_MASK_23
|
||||
CBitFieldMaskBit24 = C.BITFIELD_MASK_24
|
||||
CBitFieldMaskBit25 = C.BITFIELD_MASK_25
|
||||
CBitFieldMaskBit26 = C.BITFIELD_MASK_26
|
||||
CBitFieldMaskBit27 = C.BITFIELD_MASK_27
|
||||
CBitFieldMaskBit28 = C.BITFIELD_MASK_28
|
||||
CBitFieldMaskBit29 = C.BITFIELD_MASK_29
|
||||
CBitFieldMaskBit30 = C.BITFIELD_MASK_30
|
||||
CBitFieldMaskBit31 = C.BITFIELD_MASK_31
|
||||
CBitFieldMaskBit32 = C.BITFIELD_MASK_32
|
||||
CBitFieldMaskBit33 = C.BITFIELD_MASK_33
|
||||
CBitFieldMaskBit34 = C.BITFIELD_MASK_34
|
||||
CBitFieldMaskBit35 = C.BITFIELD_MASK_35
|
||||
CBitFieldMaskBit36 = C.BITFIELD_MASK_36
|
||||
CBitFieldMaskBit37 = C.BITFIELD_MASK_37
|
||||
CBitFieldMaskBit38 = C.BITFIELD_MASK_38
|
||||
CBitFieldMaskBit39 = C.BITFIELD_MASK_39
|
||||
CBitFieldMaskBit40 = C.BITFIELD_MASK_40
|
||||
CBitFieldMaskBit41 = C.BITFIELD_MASK_41
|
||||
CBitFieldMaskBit42 = C.BITFIELD_MASK_42
|
||||
CBitFieldMaskBit43 = C.BITFIELD_MASK_43
|
||||
CBitFieldMaskBit44 = C.BITFIELD_MASK_44
|
||||
CBitFieldMaskBit45 = C.BITFIELD_MASK_45
|
||||
CBitFieldMaskBit46 = C.BITFIELD_MASK_46
|
||||
CBitFieldMaskBit47 = C.BITFIELD_MASK_47
|
||||
CBitFieldMaskBit48 = C.BITFIELD_MASK_48
|
||||
CBitFieldMaskBit49 = C.BITFIELD_MASK_49
|
||||
CBitFieldMaskBit50 = C.BITFIELD_MASK_50
|
||||
CBitFieldMaskBit51 = C.BITFIELD_MASK_51
|
||||
CBitFieldMaskBit52 = C.BITFIELD_MASK_52
|
||||
CBitFieldMaskBit53 = C.BITFIELD_MASK_53
|
||||
CBitFieldMaskBit54 = C.BITFIELD_MASK_54
|
||||
CBitFieldMaskBit55 = C.BITFIELD_MASK_55
|
||||
CBitFieldMaskBit56 = C.BITFIELD_MASK_56
|
||||
CBitFieldMaskBit57 = C.BITFIELD_MASK_57
|
||||
CBitFieldMaskBit58 = C.BITFIELD_MASK_58
|
||||
CBitFieldMaskBit59 = C.BITFIELD_MASK_59
|
||||
CBitFieldMaskBit60 = C.BITFIELD_MASK_60
|
||||
CBitFieldMaskBit61 = C.BITFIELD_MASK_61
|
||||
CBitFieldMaskBit62 = C.BITFIELD_MASK_62
|
||||
CBitFieldMaskBit63 = C.BITFIELD_MASK_63
|
||||
)
|
||||
|
||||
// TCP-MD5 signature.
|
||||
|
||||
type SockaddrStorage C.struct_sockaddr_storage
|
||||
|
||||
type TCPMD5Sig C.struct_tcp_md5sig
|
||||
|
||||
// Disk drive operations.
|
||||
|
||||
type HDDriveCmdHdr C.struct_hd_drive_cmd_hdr
|
||||
|
||||
type HDGeometry C.struct_hd_geometry
|
||||
|
||||
type HDDriveID C.struct_hd_driveid
|
||||
|
||||
// Statfs
|
||||
|
||||
type Statfs_t C.struct_statfs
|
||||
|
||||
const (
|
||||
ST_MANDLOCK = C.ST_MANDLOCK
|
||||
ST_NOATIME = C.ST_NOATIME
|
||||
ST_NODEV = C.ST_NODEV
|
||||
ST_NODIRATIME = C.ST_NODIRATIME
|
||||
ST_NOEXEC = C.ST_NOEXEC
|
||||
ST_NOSUID = C.ST_NOSUID
|
||||
ST_RDONLY = C.ST_RDONLY
|
||||
ST_RELATIME = C.ST_RELATIME
|
||||
ST_SYNCHRONOUS = C.ST_SYNCHRONOUS
|
||||
)
|
||||
|
||||
// TPacket
|
||||
|
||||
type TpacketHdr C.struct_tpacket_hdr
|
||||
|
||||
type Tpacket2Hdr C.struct_tpacket2_hdr
|
||||
|
||||
type Tpacket3Hdr C.struct_tpacket3_hdr
|
||||
|
||||
type TpacketHdrVariant1 C.struct_tpacket_hdr_variant1
|
||||
|
||||
type TpacketBlockDesc C.struct_tpacket_block_desc
|
||||
|
||||
type TpacketReq C.struct_tpacket_req
|
||||
|
||||
type TpacketReq3 C.struct_tpacket_req3
|
||||
|
||||
type TpacketStats C.struct_tpacket_stats
|
||||
|
||||
type TpacketStatsV3 C.struct_tpacket_stats_v3
|
||||
|
||||
type TpacketAuxdata C.struct_tpacket_auxdata
|
||||
|
||||
const (
|
||||
TPACKET_V1 = C.TPACKET_V1
|
||||
TPACKET_V2 = C.TPACKET_V2
|
||||
TPACKET_V3 = C.TPACKET_V3
|
||||
)
|
||||
|
||||
const (
|
||||
SizeofTpacketHdr = C.sizeof_struct_tpacket_hdr
|
||||
SizeofTpacket2Hdr = C.sizeof_struct_tpacket2_hdr
|
||||
SizeofTpacket3Hdr = C.sizeof_struct_tpacket3_hdr
|
||||
)
|
||||
|
||||
// netfilter
|
||||
// generated using:
|
||||
// perl -nlE '/^\s*(NF\w+)/ && say "$1 = C.$1"' /usr/include/linux/netfilter.h
|
||||
const (
|
||||
NF_INET_PRE_ROUTING = C.NF_INET_PRE_ROUTING
|
||||
NF_INET_LOCAL_IN = C.NF_INET_LOCAL_IN
|
||||
NF_INET_FORWARD = C.NF_INET_FORWARD
|
||||
NF_INET_LOCAL_OUT = C.NF_INET_LOCAL_OUT
|
||||
NF_INET_POST_ROUTING = C.NF_INET_POST_ROUTING
|
||||
NF_INET_NUMHOOKS = C.NF_INET_NUMHOOKS
|
||||
)
|
||||
|
||||
const (
|
||||
NF_NETDEV_INGRESS = C.NF_NETDEV_INGRESS
|
||||
NF_NETDEV_NUMHOOKS = C.NF_NETDEV_NUMHOOKS
|
||||
)
|
||||
|
||||
const (
|
||||
NFPROTO_UNSPEC = C.NFPROTO_UNSPEC
|
||||
NFPROTO_INET = C.NFPROTO_INET
|
||||
NFPROTO_IPV4 = C.NFPROTO_IPV4
|
||||
NFPROTO_ARP = C.NFPROTO_ARP
|
||||
NFPROTO_NETDEV = C.NFPROTO_NETDEV
|
||||
NFPROTO_BRIDGE = C.NFPROTO_BRIDGE
|
||||
NFPROTO_IPV6 = C.NFPROTO_IPV6
|
||||
NFPROTO_DECNET = C.NFPROTO_DECNET
|
||||
NFPROTO_NUMPROTO = C.NFPROTO_NUMPROTO
|
||||
)
|
||||
|
||||
// netfilter nfnetlink
|
||||
type Nfgenmsg C.struct_nfgenmsg
|
||||
|
||||
const (
|
||||
NFNL_BATCH_UNSPEC = C.NFNL_BATCH_UNSPEC
|
||||
NFNL_BATCH_GENID = C.NFNL_BATCH_GENID
|
||||
)
|
||||
|
||||
// netfilter nf_tables
|
||||
// generated using:
|
||||
// perl -nlE '/^\s*(NFT\w+)/ && say "$1 = C.$1"' /usr/include/linux/netfilter/nf_tables.h
|
||||
const (
|
||||
NFT_REG_VERDICT = C.NFT_REG_VERDICT
|
||||
NFT_REG_1 = C.NFT_REG_1
|
||||
NFT_REG_2 = C.NFT_REG_2
|
||||
NFT_REG_3 = C.NFT_REG_3
|
||||
NFT_REG_4 = C.NFT_REG_4
|
||||
NFT_REG32_00 = C.NFT_REG32_00
|
||||
NFT_REG32_01 = C.NFT_REG32_01
|
||||
NFT_REG32_02 = C.NFT_REG32_02
|
||||
NFT_REG32_03 = C.NFT_REG32_03
|
||||
NFT_REG32_04 = C.NFT_REG32_04
|
||||
NFT_REG32_05 = C.NFT_REG32_05
|
||||
NFT_REG32_06 = C.NFT_REG32_06
|
||||
NFT_REG32_07 = C.NFT_REG32_07
|
||||
NFT_REG32_08 = C.NFT_REG32_08
|
||||
NFT_REG32_09 = C.NFT_REG32_09
|
||||
NFT_REG32_10 = C.NFT_REG32_10
|
||||
NFT_REG32_11 = C.NFT_REG32_11
|
||||
NFT_REG32_12 = C.NFT_REG32_12
|
||||
NFT_REG32_13 = C.NFT_REG32_13
|
||||
NFT_REG32_14 = C.NFT_REG32_14
|
||||
NFT_REG32_15 = C.NFT_REG32_15
|
||||
NFT_CONTINUE = C.NFT_CONTINUE
|
||||
NFT_BREAK = C.NFT_BREAK
|
||||
NFT_JUMP = C.NFT_JUMP
|
||||
NFT_GOTO = C.NFT_GOTO
|
||||
NFT_RETURN = C.NFT_RETURN
|
||||
NFT_MSG_NEWTABLE = C.NFT_MSG_NEWTABLE
|
||||
NFT_MSG_GETTABLE = C.NFT_MSG_GETTABLE
|
||||
NFT_MSG_DELTABLE = C.NFT_MSG_DELTABLE
|
||||
NFT_MSG_NEWCHAIN = C.NFT_MSG_NEWCHAIN
|
||||
NFT_MSG_GETCHAIN = C.NFT_MSG_GETCHAIN
|
||||
NFT_MSG_DELCHAIN = C.NFT_MSG_DELCHAIN
|
||||
NFT_MSG_NEWRULE = C.NFT_MSG_NEWRULE
|
||||
NFT_MSG_GETRULE = C.NFT_MSG_GETRULE
|
||||
NFT_MSG_DELRULE = C.NFT_MSG_DELRULE
|
||||
NFT_MSG_NEWSET = C.NFT_MSG_NEWSET
|
||||
NFT_MSG_GETSET = C.NFT_MSG_GETSET
|
||||
NFT_MSG_DELSET = C.NFT_MSG_DELSET
|
||||
NFT_MSG_NEWSETELEM = C.NFT_MSG_NEWSETELEM
|
||||
NFT_MSG_GETSETELEM = C.NFT_MSG_GETSETELEM
|
||||
NFT_MSG_DELSETELEM = C.NFT_MSG_DELSETELEM
|
||||
NFT_MSG_NEWGEN = C.NFT_MSG_NEWGEN
|
||||
NFT_MSG_GETGEN = C.NFT_MSG_GETGEN
|
||||
NFT_MSG_TRACE = C.NFT_MSG_TRACE
|
||||
NFT_MSG_NEWOBJ = C.NFT_MSG_NEWOBJ
|
||||
NFT_MSG_GETOBJ = C.NFT_MSG_GETOBJ
|
||||
NFT_MSG_DELOBJ = C.NFT_MSG_DELOBJ
|
||||
NFT_MSG_GETOBJ_RESET = C.NFT_MSG_GETOBJ_RESET
|
||||
NFT_MSG_MAX = C.NFT_MSG_MAX
|
||||
NFTA_LIST_UNPEC = C.NFTA_LIST_UNPEC
|
||||
NFTA_LIST_ELEM = C.NFTA_LIST_ELEM
|
||||
NFTA_HOOK_UNSPEC = C.NFTA_HOOK_UNSPEC
|
||||
NFTA_HOOK_HOOKNUM = C.NFTA_HOOK_HOOKNUM
|
||||
NFTA_HOOK_PRIORITY = C.NFTA_HOOK_PRIORITY
|
||||
NFTA_HOOK_DEV = C.NFTA_HOOK_DEV
|
||||
NFT_TABLE_F_DORMANT = C.NFT_TABLE_F_DORMANT
|
||||
NFTA_TABLE_UNSPEC = C.NFTA_TABLE_UNSPEC
|
||||
NFTA_TABLE_NAME = C.NFTA_TABLE_NAME
|
||||
NFTA_TABLE_FLAGS = C.NFTA_TABLE_FLAGS
|
||||
NFTA_TABLE_USE = C.NFTA_TABLE_USE
|
||||
NFTA_CHAIN_UNSPEC = C.NFTA_CHAIN_UNSPEC
|
||||
NFTA_CHAIN_TABLE = C.NFTA_CHAIN_TABLE
|
||||
NFTA_CHAIN_HANDLE = C.NFTA_CHAIN_HANDLE
|
||||
NFTA_CHAIN_NAME = C.NFTA_CHAIN_NAME
|
||||
NFTA_CHAIN_HOOK = C.NFTA_CHAIN_HOOK
|
||||
NFTA_CHAIN_POLICY = C.NFTA_CHAIN_POLICY
|
||||
NFTA_CHAIN_USE = C.NFTA_CHAIN_USE
|
||||
NFTA_CHAIN_TYPE = C.NFTA_CHAIN_TYPE
|
||||
NFTA_CHAIN_COUNTERS = C.NFTA_CHAIN_COUNTERS
|
||||
NFTA_CHAIN_PAD = C.NFTA_CHAIN_PAD
|
||||
NFTA_RULE_UNSPEC = C.NFTA_RULE_UNSPEC
|
||||
NFTA_RULE_TABLE = C.NFTA_RULE_TABLE
|
||||
NFTA_RULE_CHAIN = C.NFTA_RULE_CHAIN
|
||||
NFTA_RULE_HANDLE = C.NFTA_RULE_HANDLE
|
||||
NFTA_RULE_EXPRESSIONS = C.NFTA_RULE_EXPRESSIONS
|
||||
NFTA_RULE_COMPAT = C.NFTA_RULE_COMPAT
|
||||
NFTA_RULE_POSITION = C.NFTA_RULE_POSITION
|
||||
NFTA_RULE_USERDATA = C.NFTA_RULE_USERDATA
|
||||
NFTA_RULE_PAD = C.NFTA_RULE_PAD
|
||||
NFTA_RULE_ID = C.NFTA_RULE_ID
|
||||
NFT_RULE_COMPAT_F_INV = C.NFT_RULE_COMPAT_F_INV
|
||||
NFT_RULE_COMPAT_F_MASK = C.NFT_RULE_COMPAT_F_MASK
|
||||
NFTA_RULE_COMPAT_UNSPEC = C.NFTA_RULE_COMPAT_UNSPEC
|
||||
NFTA_RULE_COMPAT_PROTO = C.NFTA_RULE_COMPAT_PROTO
|
||||
NFTA_RULE_COMPAT_FLAGS = C.NFTA_RULE_COMPAT_FLAGS
|
||||
NFT_SET_ANONYMOUS = C.NFT_SET_ANONYMOUS
|
||||
NFT_SET_CONSTANT = C.NFT_SET_CONSTANT
|
||||
NFT_SET_INTERVAL = C.NFT_SET_INTERVAL
|
||||
NFT_SET_MAP = C.NFT_SET_MAP
|
||||
NFT_SET_TIMEOUT = C.NFT_SET_TIMEOUT
|
||||
NFT_SET_EVAL = C.NFT_SET_EVAL
|
||||
NFT_SET_OBJECT = C.NFT_SET_OBJECT
|
||||
NFT_SET_POL_PERFORMANCE = C.NFT_SET_POL_PERFORMANCE
|
||||
NFT_SET_POL_MEMORY = C.NFT_SET_POL_MEMORY
|
||||
NFTA_SET_DESC_UNSPEC = C.NFTA_SET_DESC_UNSPEC
|
||||
NFTA_SET_DESC_SIZE = C.NFTA_SET_DESC_SIZE
|
||||
NFTA_SET_UNSPEC = C.NFTA_SET_UNSPEC
|
||||
NFTA_SET_TABLE = C.NFTA_SET_TABLE
|
||||
NFTA_SET_NAME = C.NFTA_SET_NAME
|
||||
NFTA_SET_FLAGS = C.NFTA_SET_FLAGS
|
||||
NFTA_SET_KEY_TYPE = C.NFTA_SET_KEY_TYPE
|
||||
NFTA_SET_KEY_LEN = C.NFTA_SET_KEY_LEN
|
||||
NFTA_SET_DATA_TYPE = C.NFTA_SET_DATA_TYPE
|
||||
NFTA_SET_DATA_LEN = C.NFTA_SET_DATA_LEN
|
||||
NFTA_SET_POLICY = C.NFTA_SET_POLICY
|
||||
NFTA_SET_DESC = C.NFTA_SET_DESC
|
||||
NFTA_SET_ID = C.NFTA_SET_ID
|
||||
NFTA_SET_TIMEOUT = C.NFTA_SET_TIMEOUT
|
||||
NFTA_SET_GC_INTERVAL = C.NFTA_SET_GC_INTERVAL
|
||||
NFTA_SET_USERDATA = C.NFTA_SET_USERDATA
|
||||
NFTA_SET_PAD = C.NFTA_SET_PAD
|
||||
NFTA_SET_OBJ_TYPE = C.NFTA_SET_OBJ_TYPE
|
||||
NFT_SET_ELEM_INTERVAL_END = C.NFT_SET_ELEM_INTERVAL_END
|
||||
NFTA_SET_ELEM_UNSPEC = C.NFTA_SET_ELEM_UNSPEC
|
||||
NFTA_SET_ELEM_KEY = C.NFTA_SET_ELEM_KEY
|
||||
NFTA_SET_ELEM_DATA = C.NFTA_SET_ELEM_DATA
|
||||
NFTA_SET_ELEM_FLAGS = C.NFTA_SET_ELEM_FLAGS
|
||||
NFTA_SET_ELEM_TIMEOUT = C.NFTA_SET_ELEM_TIMEOUT
|
||||
NFTA_SET_ELEM_EXPIRATION = C.NFTA_SET_ELEM_EXPIRATION
|
||||
NFTA_SET_ELEM_USERDATA = C.NFTA_SET_ELEM_USERDATA
|
||||
NFTA_SET_ELEM_EXPR = C.NFTA_SET_ELEM_EXPR
|
||||
NFTA_SET_ELEM_PAD = C.NFTA_SET_ELEM_PAD
|
||||
NFTA_SET_ELEM_OBJREF = C.NFTA_SET_ELEM_OBJREF
|
||||
NFTA_SET_ELEM_LIST_UNSPEC = C.NFTA_SET_ELEM_LIST_UNSPEC
|
||||
NFTA_SET_ELEM_LIST_TABLE = C.NFTA_SET_ELEM_LIST_TABLE
|
||||
NFTA_SET_ELEM_LIST_SET = C.NFTA_SET_ELEM_LIST_SET
|
||||
NFTA_SET_ELEM_LIST_ELEMENTS = C.NFTA_SET_ELEM_LIST_ELEMENTS
|
||||
NFTA_SET_ELEM_LIST_SET_ID = C.NFTA_SET_ELEM_LIST_SET_ID
|
||||
NFT_DATA_VALUE = C.NFT_DATA_VALUE
|
||||
NFT_DATA_VERDICT = C.NFT_DATA_VERDICT
|
||||
NFTA_DATA_UNSPEC = C.NFTA_DATA_UNSPEC
|
||||
NFTA_DATA_VALUE = C.NFTA_DATA_VALUE
|
||||
NFTA_DATA_VERDICT = C.NFTA_DATA_VERDICT
|
||||
NFTA_VERDICT_UNSPEC = C.NFTA_VERDICT_UNSPEC
|
||||
NFTA_VERDICT_CODE = C.NFTA_VERDICT_CODE
|
||||
NFTA_VERDICT_CHAIN = C.NFTA_VERDICT_CHAIN
|
||||
NFTA_EXPR_UNSPEC = C.NFTA_EXPR_UNSPEC
|
||||
NFTA_EXPR_NAME = C.NFTA_EXPR_NAME
|
||||
NFTA_EXPR_DATA = C.NFTA_EXPR_DATA
|
||||
NFTA_IMMEDIATE_UNSPEC = C.NFTA_IMMEDIATE_UNSPEC
|
||||
NFTA_IMMEDIATE_DREG = C.NFTA_IMMEDIATE_DREG
|
||||
NFTA_IMMEDIATE_DATA = C.NFTA_IMMEDIATE_DATA
|
||||
NFTA_BITWISE_UNSPEC = C.NFTA_BITWISE_UNSPEC
|
||||
NFTA_BITWISE_SREG = C.NFTA_BITWISE_SREG
|
||||
NFTA_BITWISE_DREG = C.NFTA_BITWISE_DREG
|
||||
NFTA_BITWISE_LEN = C.NFTA_BITWISE_LEN
|
||||
NFTA_BITWISE_MASK = C.NFTA_BITWISE_MASK
|
||||
NFTA_BITWISE_XOR = C.NFTA_BITWISE_XOR
|
||||
NFT_BYTEORDER_NTOH = C.NFT_BYTEORDER_NTOH
|
||||
NFT_BYTEORDER_HTON = C.NFT_BYTEORDER_HTON
|
||||
NFTA_BYTEORDER_UNSPEC = C.NFTA_BYTEORDER_UNSPEC
|
||||
NFTA_BYTEORDER_SREG = C.NFTA_BYTEORDER_SREG
|
||||
NFTA_BYTEORDER_DREG = C.NFTA_BYTEORDER_DREG
|
||||
NFTA_BYTEORDER_OP = C.NFTA_BYTEORDER_OP
|
||||
NFTA_BYTEORDER_LEN = C.NFTA_BYTEORDER_LEN
|
||||
NFTA_BYTEORDER_SIZE = C.NFTA_BYTEORDER_SIZE
|
||||
NFT_CMP_EQ = C.NFT_CMP_EQ
|
||||
NFT_CMP_NEQ = C.NFT_CMP_NEQ
|
||||
NFT_CMP_LT = C.NFT_CMP_LT
|
||||
NFT_CMP_LTE = C.NFT_CMP_LTE
|
||||
NFT_CMP_GT = C.NFT_CMP_GT
|
||||
NFT_CMP_GTE = C.NFT_CMP_GTE
|
||||
NFTA_CMP_UNSPEC = C.NFTA_CMP_UNSPEC
|
||||
NFTA_CMP_SREG = C.NFTA_CMP_SREG
|
||||
NFTA_CMP_OP = C.NFTA_CMP_OP
|
||||
NFTA_CMP_DATA = C.NFTA_CMP_DATA
|
||||
NFT_RANGE_EQ = C.NFT_RANGE_EQ
|
||||
NFT_RANGE_NEQ = C.NFT_RANGE_NEQ
|
||||
NFTA_RANGE_UNSPEC = C.NFTA_RANGE_UNSPEC
|
||||
NFTA_RANGE_SREG = C.NFTA_RANGE_SREG
|
||||
NFTA_RANGE_OP = C.NFTA_RANGE_OP
|
||||
NFTA_RANGE_FROM_DATA = C.NFTA_RANGE_FROM_DATA
|
||||
NFTA_RANGE_TO_DATA = C.NFTA_RANGE_TO_DATA
|
||||
NFT_LOOKUP_F_INV = C.NFT_LOOKUP_F_INV
|
||||
NFTA_LOOKUP_UNSPEC = C.NFTA_LOOKUP_UNSPEC
|
||||
NFTA_LOOKUP_SET = C.NFTA_LOOKUP_SET
|
||||
NFTA_LOOKUP_SREG = C.NFTA_LOOKUP_SREG
|
||||
NFTA_LOOKUP_DREG = C.NFTA_LOOKUP_DREG
|
||||
NFTA_LOOKUP_SET_ID = C.NFTA_LOOKUP_SET_ID
|
||||
NFTA_LOOKUP_FLAGS = C.NFTA_LOOKUP_FLAGS
|
||||
NFT_DYNSET_OP_ADD = C.NFT_DYNSET_OP_ADD
|
||||
NFT_DYNSET_OP_UPDATE = C.NFT_DYNSET_OP_UPDATE
|
||||
NFT_DYNSET_F_INV = C.NFT_DYNSET_F_INV
|
||||
NFTA_DYNSET_UNSPEC = C.NFTA_DYNSET_UNSPEC
|
||||
NFTA_DYNSET_SET_NAME = C.NFTA_DYNSET_SET_NAME
|
||||
NFTA_DYNSET_SET_ID = C.NFTA_DYNSET_SET_ID
|
||||
NFTA_DYNSET_OP = C.NFTA_DYNSET_OP
|
||||
NFTA_DYNSET_SREG_KEY = C.NFTA_DYNSET_SREG_KEY
|
||||
NFTA_DYNSET_SREG_DATA = C.NFTA_DYNSET_SREG_DATA
|
||||
NFTA_DYNSET_TIMEOUT = C.NFTA_DYNSET_TIMEOUT
|
||||
NFTA_DYNSET_EXPR = C.NFTA_DYNSET_EXPR
|
||||
NFTA_DYNSET_PAD = C.NFTA_DYNSET_PAD
|
||||
NFTA_DYNSET_FLAGS = C.NFTA_DYNSET_FLAGS
|
||||
NFT_PAYLOAD_LL_HEADER = C.NFT_PAYLOAD_LL_HEADER
|
||||
NFT_PAYLOAD_NETWORK_HEADER = C.NFT_PAYLOAD_NETWORK_HEADER
|
||||
NFT_PAYLOAD_TRANSPORT_HEADER = C.NFT_PAYLOAD_TRANSPORT_HEADER
|
||||
NFT_PAYLOAD_CSUM_NONE = C.NFT_PAYLOAD_CSUM_NONE
|
||||
NFT_PAYLOAD_CSUM_INET = C.NFT_PAYLOAD_CSUM_INET
|
||||
NFT_PAYLOAD_L4CSUM_PSEUDOHDR = C.NFT_PAYLOAD_L4CSUM_PSEUDOHDR
|
||||
NFTA_PAYLOAD_UNSPEC = C.NFTA_PAYLOAD_UNSPEC
|
||||
NFTA_PAYLOAD_DREG = C.NFTA_PAYLOAD_DREG
|
||||
NFTA_PAYLOAD_BASE = C.NFTA_PAYLOAD_BASE
|
||||
NFTA_PAYLOAD_OFFSET = C.NFTA_PAYLOAD_OFFSET
|
||||
NFTA_PAYLOAD_LEN = C.NFTA_PAYLOAD_LEN
|
||||
NFTA_PAYLOAD_SREG = C.NFTA_PAYLOAD_SREG
|
||||
NFTA_PAYLOAD_CSUM_TYPE = C.NFTA_PAYLOAD_CSUM_TYPE
|
||||
NFTA_PAYLOAD_CSUM_OFFSET = C.NFTA_PAYLOAD_CSUM_OFFSET
|
||||
NFTA_PAYLOAD_CSUM_FLAGS = C.NFTA_PAYLOAD_CSUM_FLAGS
|
||||
NFT_EXTHDR_F_PRESENT = C.NFT_EXTHDR_F_PRESENT
|
||||
NFT_EXTHDR_OP_IPV6 = C.NFT_EXTHDR_OP_IPV6
|
||||
NFT_EXTHDR_OP_TCPOPT = C.NFT_EXTHDR_OP_TCPOPT
|
||||
NFTA_EXTHDR_UNSPEC = C.NFTA_EXTHDR_UNSPEC
|
||||
NFTA_EXTHDR_DREG = C.NFTA_EXTHDR_DREG
|
||||
NFTA_EXTHDR_TYPE = C.NFTA_EXTHDR_TYPE
|
||||
NFTA_EXTHDR_OFFSET = C.NFTA_EXTHDR_OFFSET
|
||||
NFTA_EXTHDR_LEN = C.NFTA_EXTHDR_LEN
|
||||
NFTA_EXTHDR_FLAGS = C.NFTA_EXTHDR_FLAGS
|
||||
NFTA_EXTHDR_OP = C.NFTA_EXTHDR_OP
|
||||
NFTA_EXTHDR_SREG = C.NFTA_EXTHDR_SREG
|
||||
NFT_META_LEN = C.NFT_META_LEN
|
||||
NFT_META_PROTOCOL = C.NFT_META_PROTOCOL
|
||||
NFT_META_PRIORITY = C.NFT_META_PRIORITY
|
||||
NFT_META_MARK = C.NFT_META_MARK
|
||||
NFT_META_IIF = C.NFT_META_IIF
|
||||
NFT_META_OIF = C.NFT_META_OIF
|
||||
NFT_META_IIFNAME = C.NFT_META_IIFNAME
|
||||
NFT_META_OIFNAME = C.NFT_META_OIFNAME
|
||||
NFT_META_IIFTYPE = C.NFT_META_IIFTYPE
|
||||
NFT_META_OIFTYPE = C.NFT_META_OIFTYPE
|
||||
NFT_META_SKUID = C.NFT_META_SKUID
|
||||
NFT_META_SKGID = C.NFT_META_SKGID
|
||||
NFT_META_NFTRACE = C.NFT_META_NFTRACE
|
||||
NFT_META_RTCLASSID = C.NFT_META_RTCLASSID
|
||||
NFT_META_SECMARK = C.NFT_META_SECMARK
|
||||
NFT_META_NFPROTO = C.NFT_META_NFPROTO
|
||||
NFT_META_L4PROTO = C.NFT_META_L4PROTO
|
||||
NFT_META_BRI_IIFNAME = C.NFT_META_BRI_IIFNAME
|
||||
NFT_META_BRI_OIFNAME = C.NFT_META_BRI_OIFNAME
|
||||
NFT_META_PKTTYPE = C.NFT_META_PKTTYPE
|
||||
NFT_META_CPU = C.NFT_META_CPU
|
||||
NFT_META_IIFGROUP = C.NFT_META_IIFGROUP
|
||||
NFT_META_OIFGROUP = C.NFT_META_OIFGROUP
|
||||
NFT_META_CGROUP = C.NFT_META_CGROUP
|
||||
NFT_META_PRANDOM = C.NFT_META_PRANDOM
|
||||
NFT_RT_CLASSID = C.NFT_RT_CLASSID
|
||||
NFT_RT_NEXTHOP4 = C.NFT_RT_NEXTHOP4
|
||||
NFT_RT_NEXTHOP6 = C.NFT_RT_NEXTHOP6
|
||||
NFT_RT_TCPMSS = C.NFT_RT_TCPMSS
|
||||
NFT_HASH_JENKINS = C.NFT_HASH_JENKINS
|
||||
NFT_HASH_SYM = C.NFT_HASH_SYM
|
||||
NFTA_HASH_UNSPEC = C.NFTA_HASH_UNSPEC
|
||||
NFTA_HASH_SREG = C.NFTA_HASH_SREG
|
||||
NFTA_HASH_DREG = C.NFTA_HASH_DREG
|
||||
NFTA_HASH_LEN = C.NFTA_HASH_LEN
|
||||
NFTA_HASH_MODULUS = C.NFTA_HASH_MODULUS
|
||||
NFTA_HASH_SEED = C.NFTA_HASH_SEED
|
||||
NFTA_HASH_OFFSET = C.NFTA_HASH_OFFSET
|
||||
NFTA_HASH_TYPE = C.NFTA_HASH_TYPE
|
||||
NFTA_META_UNSPEC = C.NFTA_META_UNSPEC
|
||||
NFTA_META_DREG = C.NFTA_META_DREG
|
||||
NFTA_META_KEY = C.NFTA_META_KEY
|
||||
NFTA_META_SREG = C.NFTA_META_SREG
|
||||
NFTA_RT_UNSPEC = C.NFTA_RT_UNSPEC
|
||||
NFTA_RT_DREG = C.NFTA_RT_DREG
|
||||
NFTA_RT_KEY = C.NFTA_RT_KEY
|
||||
NFT_CT_STATE = C.NFT_CT_STATE
|
||||
NFT_CT_DIRECTION = C.NFT_CT_DIRECTION
|
||||
NFT_CT_STATUS = C.NFT_CT_STATUS
|
||||
NFT_CT_MARK = C.NFT_CT_MARK
|
||||
NFT_CT_SECMARK = C.NFT_CT_SECMARK
|
||||
NFT_CT_EXPIRATION = C.NFT_CT_EXPIRATION
|
||||
NFT_CT_HELPER = C.NFT_CT_HELPER
|
||||
NFT_CT_L3PROTOCOL = C.NFT_CT_L3PROTOCOL
|
||||
NFT_CT_SRC = C.NFT_CT_SRC
|
||||
NFT_CT_DST = C.NFT_CT_DST
|
||||
NFT_CT_PROTOCOL = C.NFT_CT_PROTOCOL
|
||||
NFT_CT_PROTO_SRC = C.NFT_CT_PROTO_SRC
|
||||
NFT_CT_PROTO_DST = C.NFT_CT_PROTO_DST
|
||||
NFT_CT_LABELS = C.NFT_CT_LABELS
|
||||
NFT_CT_PKTS = C.NFT_CT_PKTS
|
||||
NFT_CT_BYTES = C.NFT_CT_BYTES
|
||||
NFT_CT_AVGPKT = C.NFT_CT_AVGPKT
|
||||
NFT_CT_ZONE = C.NFT_CT_ZONE
|
||||
NFT_CT_EVENTMASK = C.NFT_CT_EVENTMASK
|
||||
NFTA_CT_UNSPEC = C.NFTA_CT_UNSPEC
|
||||
NFTA_CT_DREG = C.NFTA_CT_DREG
|
||||
NFTA_CT_KEY = C.NFTA_CT_KEY
|
||||
NFTA_CT_DIRECTION = C.NFTA_CT_DIRECTION
|
||||
NFTA_CT_SREG = C.NFTA_CT_SREG
|
||||
NFT_LIMIT_PKTS = C.NFT_LIMIT_PKTS
|
||||
NFT_LIMIT_PKT_BYTES = C.NFT_LIMIT_PKT_BYTES
|
||||
NFT_LIMIT_F_INV = C.NFT_LIMIT_F_INV
|
||||
NFTA_LIMIT_UNSPEC = C.NFTA_LIMIT_UNSPEC
|
||||
NFTA_LIMIT_RATE = C.NFTA_LIMIT_RATE
|
||||
NFTA_LIMIT_UNIT = C.NFTA_LIMIT_UNIT
|
||||
NFTA_LIMIT_BURST = C.NFTA_LIMIT_BURST
|
||||
NFTA_LIMIT_TYPE = C.NFTA_LIMIT_TYPE
|
||||
NFTA_LIMIT_FLAGS = C.NFTA_LIMIT_FLAGS
|
||||
NFTA_LIMIT_PAD = C.NFTA_LIMIT_PAD
|
||||
NFTA_COUNTER_UNSPEC = C.NFTA_COUNTER_UNSPEC
|
||||
NFTA_COUNTER_BYTES = C.NFTA_COUNTER_BYTES
|
||||
NFTA_COUNTER_PACKETS = C.NFTA_COUNTER_PACKETS
|
||||
NFTA_COUNTER_PAD = C.NFTA_COUNTER_PAD
|
||||
NFTA_LOG_UNSPEC = C.NFTA_LOG_UNSPEC
|
||||
NFTA_LOG_GROUP = C.NFTA_LOG_GROUP
|
||||
NFTA_LOG_PREFIX = C.NFTA_LOG_PREFIX
|
||||
NFTA_LOG_SNAPLEN = C.NFTA_LOG_SNAPLEN
|
||||
NFTA_LOG_QTHRESHOLD = C.NFTA_LOG_QTHRESHOLD
|
||||
NFTA_LOG_LEVEL = C.NFTA_LOG_LEVEL
|
||||
NFTA_LOG_FLAGS = C.NFTA_LOG_FLAGS
|
||||
NFTA_QUEUE_UNSPEC = C.NFTA_QUEUE_UNSPEC
|
||||
NFTA_QUEUE_NUM = C.NFTA_QUEUE_NUM
|
||||
NFTA_QUEUE_TOTAL = C.NFTA_QUEUE_TOTAL
|
||||
NFTA_QUEUE_FLAGS = C.NFTA_QUEUE_FLAGS
|
||||
NFTA_QUEUE_SREG_QNUM = C.NFTA_QUEUE_SREG_QNUM
|
||||
NFT_QUOTA_F_INV = C.NFT_QUOTA_F_INV
|
||||
NFT_QUOTA_F_DEPLETED = C.NFT_QUOTA_F_DEPLETED
|
||||
NFTA_QUOTA_UNSPEC = C.NFTA_QUOTA_UNSPEC
|
||||
NFTA_QUOTA_BYTES = C.NFTA_QUOTA_BYTES
|
||||
NFTA_QUOTA_FLAGS = C.NFTA_QUOTA_FLAGS
|
||||
NFTA_QUOTA_PAD = C.NFTA_QUOTA_PAD
|
||||
NFTA_QUOTA_CONSUMED = C.NFTA_QUOTA_CONSUMED
|
||||
NFT_REJECT_ICMP_UNREACH = C.NFT_REJECT_ICMP_UNREACH
|
||||
NFT_REJECT_TCP_RST = C.NFT_REJECT_TCP_RST
|
||||
NFT_REJECT_ICMPX_UNREACH = C.NFT_REJECT_ICMPX_UNREACH
|
||||
NFT_REJECT_ICMPX_NO_ROUTE = C.NFT_REJECT_ICMPX_NO_ROUTE
|
||||
NFT_REJECT_ICMPX_PORT_UNREACH = C.NFT_REJECT_ICMPX_PORT_UNREACH
|
||||
NFT_REJECT_ICMPX_HOST_UNREACH = C.NFT_REJECT_ICMPX_HOST_UNREACH
|
||||
NFT_REJECT_ICMPX_ADMIN_PROHIBITED = C.NFT_REJECT_ICMPX_ADMIN_PROHIBITED
|
||||
NFTA_REJECT_UNSPEC = C.NFTA_REJECT_UNSPEC
|
||||
NFTA_REJECT_TYPE = C.NFTA_REJECT_TYPE
|
||||
NFTA_REJECT_ICMP_CODE = C.NFTA_REJECT_ICMP_CODE
|
||||
NFT_NAT_SNAT = C.NFT_NAT_SNAT
|
||||
NFT_NAT_DNAT = C.NFT_NAT_DNAT
|
||||
NFTA_NAT_UNSPEC = C.NFTA_NAT_UNSPEC
|
||||
NFTA_NAT_TYPE = C.NFTA_NAT_TYPE
|
||||
NFTA_NAT_FAMILY = C.NFTA_NAT_FAMILY
|
||||
NFTA_NAT_REG_ADDR_MIN = C.NFTA_NAT_REG_ADDR_MIN
|
||||
NFTA_NAT_REG_ADDR_MAX = C.NFTA_NAT_REG_ADDR_MAX
|
||||
NFTA_NAT_REG_PROTO_MIN = C.NFTA_NAT_REG_PROTO_MIN
|
||||
NFTA_NAT_REG_PROTO_MAX = C.NFTA_NAT_REG_PROTO_MAX
|
||||
NFTA_NAT_FLAGS = C.NFTA_NAT_FLAGS
|
||||
NFTA_MASQ_UNSPEC = C.NFTA_MASQ_UNSPEC
|
||||
NFTA_MASQ_FLAGS = C.NFTA_MASQ_FLAGS
|
||||
NFTA_MASQ_REG_PROTO_MIN = C.NFTA_MASQ_REG_PROTO_MIN
|
||||
NFTA_MASQ_REG_PROTO_MAX = C.NFTA_MASQ_REG_PROTO_MAX
|
||||
NFTA_REDIR_UNSPEC = C.NFTA_REDIR_UNSPEC
|
||||
NFTA_REDIR_REG_PROTO_MIN = C.NFTA_REDIR_REG_PROTO_MIN
|
||||
NFTA_REDIR_REG_PROTO_MAX = C.NFTA_REDIR_REG_PROTO_MAX
|
||||
NFTA_REDIR_FLAGS = C.NFTA_REDIR_FLAGS
|
||||
NFTA_DUP_UNSPEC = C.NFTA_DUP_UNSPEC
|
||||
NFTA_DUP_SREG_ADDR = C.NFTA_DUP_SREG_ADDR
|
||||
NFTA_DUP_SREG_DEV = C.NFTA_DUP_SREG_DEV
|
||||
NFTA_FWD_UNSPEC = C.NFTA_FWD_UNSPEC
|
||||
NFTA_FWD_SREG_DEV = C.NFTA_FWD_SREG_DEV
|
||||
NFTA_OBJREF_UNSPEC = C.NFTA_OBJREF_UNSPEC
|
||||
NFTA_OBJREF_IMM_TYPE = C.NFTA_OBJREF_IMM_TYPE
|
||||
NFTA_OBJREF_IMM_NAME = C.NFTA_OBJREF_IMM_NAME
|
||||
NFTA_OBJREF_SET_SREG = C.NFTA_OBJREF_SET_SREG
|
||||
NFTA_OBJREF_SET_NAME = C.NFTA_OBJREF_SET_NAME
|
||||
NFTA_OBJREF_SET_ID = C.NFTA_OBJREF_SET_ID
|
||||
NFTA_GEN_UNSPEC = C.NFTA_GEN_UNSPEC
|
||||
NFTA_GEN_ID = C.NFTA_GEN_ID
|
||||
NFTA_GEN_PROC_PID = C.NFTA_GEN_PROC_PID
|
||||
NFTA_GEN_PROC_NAME = C.NFTA_GEN_PROC_NAME
|
||||
NFTA_FIB_UNSPEC = C.NFTA_FIB_UNSPEC
|
||||
NFTA_FIB_DREG = C.NFTA_FIB_DREG
|
||||
NFTA_FIB_RESULT = C.NFTA_FIB_RESULT
|
||||
NFTA_FIB_FLAGS = C.NFTA_FIB_FLAGS
|
||||
NFT_FIB_RESULT_UNSPEC = C.NFT_FIB_RESULT_UNSPEC
|
||||
NFT_FIB_RESULT_OIF = C.NFT_FIB_RESULT_OIF
|
||||
NFT_FIB_RESULT_OIFNAME = C.NFT_FIB_RESULT_OIFNAME
|
||||
NFT_FIB_RESULT_ADDRTYPE = C.NFT_FIB_RESULT_ADDRTYPE
|
||||
NFTA_FIB_F_SADDR = C.NFTA_FIB_F_SADDR
|
||||
NFTA_FIB_F_DADDR = C.NFTA_FIB_F_DADDR
|
||||
NFTA_FIB_F_MARK = C.NFTA_FIB_F_MARK
|
||||
NFTA_FIB_F_IIF = C.NFTA_FIB_F_IIF
|
||||
NFTA_FIB_F_OIF = C.NFTA_FIB_F_OIF
|
||||
NFTA_FIB_F_PRESENT = C.NFTA_FIB_F_PRESENT
|
||||
NFTA_CT_HELPER_UNSPEC = C.NFTA_CT_HELPER_UNSPEC
|
||||
NFTA_CT_HELPER_NAME = C.NFTA_CT_HELPER_NAME
|
||||
NFTA_CT_HELPER_L3PROTO = C.NFTA_CT_HELPER_L3PROTO
|
||||
NFTA_CT_HELPER_L4PROTO = C.NFTA_CT_HELPER_L4PROTO
|
||||
NFTA_OBJ_UNSPEC = C.NFTA_OBJ_UNSPEC
|
||||
NFTA_OBJ_TABLE = C.NFTA_OBJ_TABLE
|
||||
NFTA_OBJ_NAME = C.NFTA_OBJ_NAME
|
||||
NFTA_OBJ_TYPE = C.NFTA_OBJ_TYPE
|
||||
NFTA_OBJ_DATA = C.NFTA_OBJ_DATA
|
||||
NFTA_OBJ_USE = C.NFTA_OBJ_USE
|
||||
NFTA_TRACE_UNSPEC = C.NFTA_TRACE_UNSPEC
|
||||
NFTA_TRACE_TABLE = C.NFTA_TRACE_TABLE
|
||||
NFTA_TRACE_CHAIN = C.NFTA_TRACE_CHAIN
|
||||
NFTA_TRACE_RULE_HANDLE = C.NFTA_TRACE_RULE_HANDLE
|
||||
NFTA_TRACE_TYPE = C.NFTA_TRACE_TYPE
|
||||
NFTA_TRACE_VERDICT = C.NFTA_TRACE_VERDICT
|
||||
NFTA_TRACE_ID = C.NFTA_TRACE_ID
|
||||
NFTA_TRACE_LL_HEADER = C.NFTA_TRACE_LL_HEADER
|
||||
NFTA_TRACE_NETWORK_HEADER = C.NFTA_TRACE_NETWORK_HEADER
|
||||
NFTA_TRACE_TRANSPORT_HEADER = C.NFTA_TRACE_TRANSPORT_HEADER
|
||||
NFTA_TRACE_IIF = C.NFTA_TRACE_IIF
|
||||
NFTA_TRACE_IIFTYPE = C.NFTA_TRACE_IIFTYPE
|
||||
NFTA_TRACE_OIF = C.NFTA_TRACE_OIF
|
||||
NFTA_TRACE_OIFTYPE = C.NFTA_TRACE_OIFTYPE
|
||||
NFTA_TRACE_MARK = C.NFTA_TRACE_MARK
|
||||
NFTA_TRACE_NFPROTO = C.NFTA_TRACE_NFPROTO
|
||||
NFTA_TRACE_POLICY = C.NFTA_TRACE_POLICY
|
||||
NFTA_TRACE_PAD = C.NFTA_TRACE_PAD
|
||||
NFT_TRACETYPE_UNSPEC = C.NFT_TRACETYPE_UNSPEC
|
||||
NFT_TRACETYPE_POLICY = C.NFT_TRACETYPE_POLICY
|
||||
NFT_TRACETYPE_RETURN = C.NFT_TRACETYPE_RETURN
|
||||
NFT_TRACETYPE_RULE = C.NFT_TRACETYPE_RULE
|
||||
NFTA_NG_UNSPEC = C.NFTA_NG_UNSPEC
|
||||
NFTA_NG_DREG = C.NFTA_NG_DREG
|
||||
NFTA_NG_MODULUS = C.NFTA_NG_MODULUS
|
||||
NFTA_NG_TYPE = C.NFTA_NG_TYPE
|
||||
NFTA_NG_OFFSET = C.NFTA_NG_OFFSET
|
||||
NFT_NG_INCREMENTAL = C.NFT_NG_INCREMENTAL
|
||||
NFT_NG_RANDOM = C.NFT_NG_RANDOM
|
||||
)
|
||||
|
||||
type RTCTime C.struct_rtc_time
|
||||
|
||||
type RTCWkAlrm C.struct_rtc_wkalrm
|
||||
|
||||
type RTCPLLInfo C.struct_rtc_pll_info
|
||||
|
61
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
61
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
@ -50,6 +50,7 @@ includes_Darwin='
|
||||
#include <sys/mount.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/xattr.h>
|
||||
#include <net/bpf.h>
|
||||
#include <net/if.h>
|
||||
#include <net/if_types.h>
|
||||
@ -171,6 +172,8 @@ struct ltchars {
|
||||
#include <linux/filter.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/keyctl.h>
|
||||
#include <linux/magic.h>
|
||||
#include <linux/netfilter/nfnetlink.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/perf_event.h>
|
||||
#include <linux/random.h>
|
||||
@ -189,6 +192,8 @@ struct ltchars {
|
||||
#include <linux/genetlink.h>
|
||||
#include <linux/stat.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/hdreg.h>
|
||||
#include <linux/rtc.h>
|
||||
#include <net/route.h>
|
||||
#include <asm/termbits.h>
|
||||
|
||||
@ -383,7 +388,8 @@ ccflags="$@"
|
||||
$2 ~ /^TC[IO](ON|OFF)$/ ||
|
||||
$2 ~ /^IN_/ ||
|
||||
$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|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
||||
$2 ~ /^TP_STATUS_/ ||
|
||||
$2 ~ /^FALLOC_/ ||
|
||||
$2 == "ICMPV6_FILTER" ||
|
||||
$2 == "SOMAXCONN" ||
|
||||
@ -399,7 +405,7 @@ ccflags="$@"
|
||||
$2 ~ /^LINUX_REBOOT_CMD_/ ||
|
||||
$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
|
||||
$2 !~ "NLA_TYPE_MASK" &&
|
||||
$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P)_/ ||
|
||||
$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P)_/ ||
|
||||
$2 ~ /^SIOC/ ||
|
||||
$2 ~ /^TIOC/ ||
|
||||
$2 ~ /^TCGET/ ||
|
||||
@ -425,6 +431,8 @@ ccflags="$@"
|
||||
$2 ~ /^PERF_EVENT_IOC_/ ||
|
||||
$2 ~ /^SECCOMP_MODE_/ ||
|
||||
$2 ~ /^SPLICE_/ ||
|
||||
$2 !~ /^AUDIT_RECORD_MAGIC/ &&
|
||||
$2 ~ /^[A-Z0-9_]+_MAGIC2?$/ ||
|
||||
$2 ~ /^(VM|VMADDR)_/ ||
|
||||
$2 ~ /^IOCTL_VM_SOCKETS_/ ||
|
||||
$2 ~ /^(TASKSTATS|TS)_/ ||
|
||||
@ -432,10 +440,12 @@ ccflags="$@"
|
||||
$2 ~ /^GENL_/ ||
|
||||
$2 ~ /^STATX_/ ||
|
||||
$2 ~ /^UTIME_/ ||
|
||||
$2 ~ /^XATTR_(CREATE|REPLACE)/ ||
|
||||
$2 ~ /^XATTR_(CREATE|REPLACE|NO(DEFAULT|FOLLOW|SECURITY)|SHOWCOMPRESSION)/ ||
|
||||
$2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ ||
|
||||
$2 ~ /^FSOPT_/ ||
|
||||
$2 ~ /^WDIOC_/ ||
|
||||
$2 ~ /^NFN/ ||
|
||||
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
||||
$2 !~ "WMESGLEN" &&
|
||||
$2 ~ /^W[A-Z0-9]+$/ ||
|
||||
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
|
||||
@ -505,21 +515,26 @@ echo ')'
|
||||
|
||||
enum { A = 'A', Z = 'Z', a = 'a', z = 'z' }; // avoid need for single quotes below
|
||||
|
||||
int errors[] = {
|
||||
struct tuple {
|
||||
int num;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
struct tuple errors[] = {
|
||||
"
|
||||
for i in $errors
|
||||
do
|
||||
echo -E ' '$i,
|
||||
echo -E ' {'$i', "'$i'" },'
|
||||
done
|
||||
|
||||
echo -E "
|
||||
};
|
||||
|
||||
int signals[] = {
|
||||
struct tuple signals[] = {
|
||||
"
|
||||
for i in $signals
|
||||
do
|
||||
echo -E ' '$i,
|
||||
echo -E ' {'$i', "'$i'" },'
|
||||
done
|
||||
|
||||
# Use -E because on some systems bash builtin interprets \n itself.
|
||||
@ -527,9 +542,9 @@ int signals[] = {
|
||||
};
|
||||
|
||||
static int
|
||||
intcmp(const void *a, const void *b)
|
||||
tuplecmp(const void *a, const void *b)
|
||||
{
|
||||
return *(int*)a - *(int*)b;
|
||||
return ((struct tuple *)a)->num - ((struct tuple *)b)->num;
|
||||
}
|
||||
|
||||
int
|
||||
@ -539,26 +554,34 @@ main(void)
|
||||
char buf[1024], *p;
|
||||
|
||||
printf("\n\n// Error table\n");
|
||||
printf("var errors = [...]string {\n");
|
||||
qsort(errors, nelem(errors), sizeof errors[0], intcmp);
|
||||
printf("var errorList = [...]struct {\n");
|
||||
printf("\tnum syscall.Errno\n");
|
||||
printf("\tname string\n");
|
||||
printf("\tdesc string\n");
|
||||
printf("} {\n");
|
||||
qsort(errors, nelem(errors), sizeof errors[0], tuplecmp);
|
||||
for(i=0; i<nelem(errors); i++) {
|
||||
e = errors[i];
|
||||
if(i > 0 && errors[i-1] == e)
|
||||
e = errors[i].num;
|
||||
if(i > 0 && errors[i-1].num == e)
|
||||
continue;
|
||||
strcpy(buf, strerror(e));
|
||||
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
||||
if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
|
||||
buf[0] += a - A;
|
||||
printf("\t%d: \"%s\",\n", e, buf);
|
||||
printf("\t{ %d, \"%s\", \"%s\" },\n", e, errors[i].name, buf);
|
||||
}
|
||||
printf("}\n\n");
|
||||
|
||||
printf("\n\n// Signal table\n");
|
||||
printf("var signals = [...]string {\n");
|
||||
qsort(signals, nelem(signals), sizeof signals[0], intcmp);
|
||||
printf("var signalList = [...]struct {\n");
|
||||
printf("\tnum syscall.Signal\n");
|
||||
printf("\tname string\n");
|
||||
printf("\tdesc string\n");
|
||||
printf("} {\n");
|
||||
qsort(signals, nelem(signals), sizeof signals[0], tuplecmp);
|
||||
for(i=0; i<nelem(signals); i++) {
|
||||
e = signals[i];
|
||||
if(i > 0 && signals[i-1] == e)
|
||||
e = signals[i].num;
|
||||
if(i > 0 && signals[i-1].num == e)
|
||||
continue;
|
||||
strcpy(buf, strsignal(e));
|
||||
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
||||
@ -568,7 +591,7 @@ main(void)
|
||||
p = strrchr(buf, ":"[0]);
|
||||
if(p)
|
||||
*p = '\0';
|
||||
printf("\t%d: \"%s\",\n", e, buf);
|
||||
printf("\t{ %d, \"%s\", \"%s\" },\n", e, signals[i].name, buf);
|
||||
}
|
||||
printf("}\n\n");
|
||||
|
||||
|
13
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
13
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
@ -42,6 +42,10 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// Intentionally export __val fields in Fsid and Sigset_t
|
||||
valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__val(\s+\S+\s+)}`)
|
||||
b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$3}"))
|
||||
|
||||
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
||||
// nonempty Ptrace structs.
|
||||
ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`)
|
||||
@ -69,12 +73,9 @@ func main() {
|
||||
removePaddingFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`)
|
||||
b = removePaddingFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||
|
||||
// We refuse to export private fields on s390x
|
||||
if goarch == "s390x" && goos == "linux" {
|
||||
// Remove padding, hidden, or unused fields
|
||||
removeFieldsRegex = regexp.MustCompile(`\bX_\S+`)
|
||||
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||
}
|
||||
// Remove padding, hidden, or unused fields
|
||||
removeFieldsRegex = regexp.MustCompile(`\b(X_\S+|Padding)`)
|
||||
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||
|
||||
// Remove the first line of warning from cgo
|
||||
b = b[bytes.IndexByte(b, '\n')+1:]
|
||||
|
2
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
2
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
@ -240,7 +240,7 @@ foreach my $header (@headers) {
|
||||
|
||||
print <<EOF;
|
||||
// mksysctl_openbsd.pl
|
||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
||||
// Code generated by the command above; DO NOT EDIT.
|
||||
|
||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
||||
|
||||
|
4
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
4
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
SYS_PLEDGE = 108
|
||||
_SYS_PLEDGE = 108
|
||||
)
|
||||
|
||||
// Pledge implements the pledge syscall. For more information see pledge(2).
|
||||
@ -30,7 +30,7 @@ func Pledge(promises string, paths []string) error {
|
||||
}
|
||||
pathsUnsafe = unsafe.Pointer(&pathsPtr[0])
|
||||
}
|
||||
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0)
|
||||
_, _, e := syscall.Syscall(_SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0)
|
||||
if e != 0 {
|
||||
return e
|
||||
}
|
||||
|
11
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
11
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
@ -11,24 +11,27 @@
|
||||
// system, set $GOOS and $GOARCH to the desired system. For example, if
|
||||
// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS
|
||||
// to freebsd and $GOARCH to arm.
|
||||
//
|
||||
// The primary use of this package is inside other packages that provide a more
|
||||
// portable interface to the system, such as "os", "time" and "net". Use
|
||||
// those packages rather than this one if you can.
|
||||
//
|
||||
// For details of the functions and data types in this package consult
|
||||
// the manuals for the appropriate operating system.
|
||||
//
|
||||
// These calls return err == nil to indicate success; otherwise
|
||||
// err represents an operating system error describing the failure and
|
||||
// holds a value of type syscall.Errno.
|
||||
package unix // import "golang.org/x/sys/unix"
|
||||
|
||||
import "strings"
|
||||
|
||||
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
||||
// containing the text of s. If s contains a NUL byte at any
|
||||
// location, it returns (nil, EINVAL).
|
||||
func ByteSliceFromString(s string) ([]byte, error) {
|
||||
for i := 0; i < len(s); i++ {
|
||||
if s[i] == 0 {
|
||||
return nil, EINVAL
|
||||
}
|
||||
if strings.IndexByte(s, 0) != -1 {
|
||||
return nil, EINVAL
|
||||
}
|
||||
a := make([]byte, len(s)+1)
|
||||
copy(a, s)
|
||||
|
49
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
49
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
@ -206,7 +206,7 @@ func (sa *SockaddrDatalink) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrDatalink, nil
|
||||
}
|
||||
|
||||
func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
switch rsa.Addr.Family {
|
||||
case AF_LINK:
|
||||
pp := (*RawSockaddrDatalink)(unsafe.Pointer(rsa))
|
||||
@ -286,7 +286,7 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
|
||||
Close(nfd)
|
||||
return 0, nil, ECONNABORTED
|
||||
}
|
||||
sa, err = anyToSockaddr(&rsa)
|
||||
sa, err = anyToSockaddr(fd, &rsa)
|
||||
if err != nil {
|
||||
Close(nfd)
|
||||
nfd = 0
|
||||
@ -306,52 +306,11 @@ func Getsockname(fd int) (sa Sockaddr, err error) {
|
||||
rsa.Addr.Family = AF_UNIX
|
||||
rsa.Addr.Len = SizeofSockaddrUnix
|
||||
}
|
||||
return anyToSockaddr(&rsa)
|
||||
return anyToSockaddr(fd, &rsa)
|
||||
}
|
||||
|
||||
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
|
||||
|
||||
func GetsockoptByte(fd, level, opt int) (value byte, err error) {
|
||||
var n byte
|
||||
vallen := _Socklen(1)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
|
||||
return n, err
|
||||
}
|
||||
|
||||
func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
|
||||
vallen := _Socklen(4)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
|
||||
return value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
|
||||
var value IPMreq
|
||||
vallen := _Socklen(SizeofIPMreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
|
||||
var value IPv6Mreq
|
||||
vallen := _Socklen(SizeofIPv6Mreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
|
||||
var value IPv6MTUInfo
|
||||
vallen := _Socklen(SizeofIPv6MTUInfo)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
|
||||
var value ICMPv6Filter
|
||||
vallen := _Socklen(SizeofICMPv6Filter)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
// GetsockoptString returns the string value of the socket option opt for the
|
||||
// socket associated with fd at the given socket level.
|
||||
func GetsockoptString(fd, level, opt int) (string, error) {
|
||||
@ -397,7 +356,7 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
|
||||
recvflags = int(msg.Flags)
|
||||
// source address is only specified if the socket is unconnected
|
||||
if rsa.Addr.Family != AF_UNSPEC {
|
||||
from, err = anyToSockaddr(&rsa)
|
||||
from, err = anyToSockaddr(fd, &rsa)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
99
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
99
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@ -13,7 +13,7 @@
|
||||
package unix
|
||||
|
||||
import (
|
||||
errorspkg "errors"
|
||||
"errors"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
@ -98,7 +98,7 @@ type attrList struct {
|
||||
|
||||
func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (attrs [][]byte, err error) {
|
||||
if len(attrBuf) < 4 {
|
||||
return nil, errorspkg.New("attrBuf too small")
|
||||
return nil, errors.New("attrBuf too small")
|
||||
}
|
||||
attrList.bitmapCount = attrBitMapCount
|
||||
|
||||
@ -134,12 +134,12 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
|
||||
for i := uint32(0); int(i) < len(dat); {
|
||||
header := dat[i:]
|
||||
if len(header) < 8 {
|
||||
return attrs, errorspkg.New("truncated attribute header")
|
||||
return attrs, errors.New("truncated attribute header")
|
||||
}
|
||||
datOff := *(*int32)(unsafe.Pointer(&header[0]))
|
||||
attrLen := *(*uint32)(unsafe.Pointer(&header[4]))
|
||||
if datOff < 0 || uint32(datOff)+attrLen > uint32(len(dat)) {
|
||||
return attrs, errorspkg.New("truncated results; attrBuf too small")
|
||||
return attrs, errors.New("truncated results; attrBuf too small")
|
||||
}
|
||||
end := uint32(datOff) + attrLen
|
||||
attrs = append(attrs, dat[datOff:end])
|
||||
@ -176,6 +176,88 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func xattrPointer(dest []byte) *byte {
|
||||
// It's only when dest is set to NULL that the OS X implementations of
|
||||
// getxattr() and listxattr() return the current sizes of the named attributes.
|
||||
// An empty byte array is not sufficient. To maintain the same behaviour as the
|
||||
// linux implementation, we wrap around the system calls and pass in NULL when
|
||||
// dest is empty.
|
||||
var destp *byte
|
||||
if len(dest) > 0 {
|
||||
destp = &dest[0]
|
||||
}
|
||||
return destp
|
||||
}
|
||||
|
||||
//sys getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error)
|
||||
|
||||
func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||
return getxattr(path, attr, xattrPointer(dest), len(dest), 0, 0)
|
||||
}
|
||||
|
||||
func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
|
||||
return getxattr(link, attr, xattrPointer(dest), len(dest), 0, XATTR_NOFOLLOW)
|
||||
}
|
||||
|
||||
//sys setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error)
|
||||
|
||||
func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||
// The parameters for the OS X implementation vary slightly compared to the
|
||||
// linux system call, specifically the position parameter:
|
||||
//
|
||||
// linux:
|
||||
// int setxattr(
|
||||
// const char *path,
|
||||
// const char *name,
|
||||
// const void *value,
|
||||
// size_t size,
|
||||
// int flags
|
||||
// );
|
||||
//
|
||||
// darwin:
|
||||
// int setxattr(
|
||||
// const char *path,
|
||||
// const char *name,
|
||||
// void *value,
|
||||
// size_t size,
|
||||
// u_int32_t position,
|
||||
// int options
|
||||
// );
|
||||
//
|
||||
// position specifies the offset within the extended attribute. In the
|
||||
// current implementation, only the resource fork extended attribute makes
|
||||
// use of this argument. For all others, position is reserved. We simply
|
||||
// default to setting it to zero.
|
||||
return setxattr(path, attr, xattrPointer(data), len(data), 0, flags)
|
||||
}
|
||||
|
||||
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
||||
return setxattr(link, attr, xattrPointer(data), len(data), 0, flags|XATTR_NOFOLLOW)
|
||||
}
|
||||
|
||||
//sys removexattr(path string, attr string, options int) (err error)
|
||||
|
||||
func Removexattr(path string, attr string) (err error) {
|
||||
// We wrap around and explicitly zero out the options provided to the OS X
|
||||
// implementation of removexattr, we do so for interoperability with the
|
||||
// linux variant.
|
||||
return removexattr(path, attr, 0)
|
||||
}
|
||||
|
||||
func Lremovexattr(link string, attr string) (err error) {
|
||||
return removexattr(link, attr, XATTR_NOFOLLOW)
|
||||
}
|
||||
|
||||
//sys listxattr(path string, dest *byte, size int, options int) (sz int, err error)
|
||||
|
||||
func Listxattr(path string, dest []byte) (sz int, err error) {
|
||||
return listxattr(path, xattrPointer(dest), len(dest), 0)
|
||||
}
|
||||
|
||||
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||
return listxattr(link, xattrPointer(dest), len(dest), XATTR_NOFOLLOW)
|
||||
}
|
||||
|
||||
func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||
_p0, err := BytePtrFromString(path)
|
||||
if err != nil {
|
||||
@ -231,11 +313,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
@ -330,6 +412,7 @@ func Uname(uname *Utsname) error {
|
||||
//sys Flock(fd int, how int) (err error)
|
||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
||||
//sys Fsync(fd int) (err error)
|
||||
//sys Ftruncate(fd int, length int64) (err error)
|
||||
@ -446,13 +529,9 @@ func Uname(uname *Utsname) error {
|
||||
// Watchevent
|
||||
// Waitevent
|
||||
// Modwatch
|
||||
// Getxattr
|
||||
// Fgetxattr
|
||||
// Setxattr
|
||||
// Fsetxattr
|
||||
// Removexattr
|
||||
// Fremovexattr
|
||||
// Listxattr
|
||||
// Flistxattr
|
||||
// Fsctl
|
||||
// Initgroups
|
||||
|
19
vendor/golang.org/x/sys/unix/syscall_darwin_test.go
generated
vendored
Normal file
19
vendor/golang.org/x/sys/unix/syscall_darwin_test.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
// Copyright 2018 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_test
|
||||
|
||||
// stringsFromByteSlice converts a sequence of attributes to a []string.
|
||||
// On Darwin, each entry is a NULL-terminated string.
|
||||
func stringsFromByteSlice(buf []byte) []string {
|
||||
var result []string
|
||||
off := 0
|
||||
for i, b := range buf {
|
||||
if b == 0 {
|
||||
result = append(result, string(buf[off:i]))
|
||||
off = i + 1
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
8
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@ -87,7 +87,7 @@ func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) {
|
||||
if len > SizeofSockaddrAny {
|
||||
panic("RawSockaddrAny too small")
|
||||
}
|
||||
sa, err = anyToSockaddr(&rsa)
|
||||
sa, err = anyToSockaddr(fd, &rsa)
|
||||
if err != nil {
|
||||
Close(nfd)
|
||||
nfd = 0
|
||||
@ -143,11 +143,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
@ -251,10 +251,12 @@ func Uname(uname *Utsname) error {
|
||||
//sys Fchdir(fd int) (err error)
|
||||
//sys Fchflags(fd int, flags int) (err error)
|
||||
//sys Fchmod(fd int, mode uint32) (err error)
|
||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||
//sys Flock(fd int, how int) (err error)
|
||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||
//sys Fsync(fd int) (err error)
|
||||
//sys Ftruncate(fd int, length int64) (err error)
|
||||
|
21
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
21
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
@ -12,7 +12,10 @@
|
||||
|
||||
package unix
|
||||
|
||||
import "unsafe"
|
||||
import (
|
||||
"strings"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||
type SockaddrDatalink struct {
|
||||
@ -86,7 +89,7 @@ func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) {
|
||||
if len > SizeofSockaddrAny {
|
||||
panic("RawSockaddrAny too small")
|
||||
}
|
||||
sa, err = anyToSockaddr(&rsa)
|
||||
sa, err = anyToSockaddr(fd, &rsa)
|
||||
if err != nil {
|
||||
Close(nfd)
|
||||
nfd = 0
|
||||
@ -134,14 +137,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||
// Derive extattr namespace and attribute name
|
||||
|
||||
func xattrnamespace(fullattr string) (ns int, attr string, err error) {
|
||||
s := -1
|
||||
for idx, val := range fullattr {
|
||||
if val == '.' {
|
||||
s = idx
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
s := strings.IndexByte(fullattr, '.')
|
||||
if s == -1 {
|
||||
return -1, "", ENOATTR
|
||||
}
|
||||
@ -368,11 +364,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
@ -482,6 +478,7 @@ func Uname(uname *Utsname) error {
|
||||
//sys Flock(fd int, how int) (err error)
|
||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||
//sys Fsync(fd int) (err error)
|
||||
//sys Ftruncate(fd int, length int64) (err error)
|
||||
|
15
vendor/golang.org/x/sys/unix/syscall_freebsd_test.go
generated
vendored
15
vendor/golang.org/x/sys/unix/syscall_freebsd_test.go
generated
vendored
@ -295,3 +295,18 @@ func TestCapRightsSetAndClear(t *testing.T) {
|
||||
t.Fatalf("Wrong rights set")
|
||||
}
|
||||
}
|
||||
|
||||
// stringsFromByteSlice converts a sequence of attributes to a []string.
|
||||
// On FreeBSD, each entry consists of a single byte containing the length
|
||||
// of the attribute name, followed by the attribute name.
|
||||
// The name is _not_ NULL-terminated.
|
||||
func stringsFromByteSlice(buf []byte) []string {
|
||||
var result []string
|
||||
i := 0
|
||||
for i < len(buf) {
|
||||
next := i + 1 + int(buf[i])
|
||||
result = append(result, string(buf[i+1:next]))
|
||||
i = next
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
180
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
180
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@ -61,11 +61,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
@ -148,8 +148,6 @@ func Unlink(path string) error {
|
||||
|
||||
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||
|
||||
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||
|
||||
func Utimes(path string, tv []Timeval) error {
|
||||
if tv == nil {
|
||||
err := utimensat(AT_FDCWD, path, nil, 0)
|
||||
@ -207,20 +205,14 @@ func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
|
||||
return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags)
|
||||
}
|
||||
|
||||
//sys futimesat(dirfd int, path *byte, times *[2]Timeval) (err error)
|
||||
|
||||
func Futimesat(dirfd int, path string, tv []Timeval) error {
|
||||
pathp, err := BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if tv == nil {
|
||||
return futimesat(dirfd, pathp, nil)
|
||||
return futimesat(dirfd, path, nil)
|
||||
}
|
||||
if len(tv) != 2 {
|
||||
return EINVAL
|
||||
}
|
||||
return futimesat(dirfd, pathp, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
|
||||
return futimesat(dirfd, path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
|
||||
}
|
||||
|
||||
func Futimes(fd int, tv []Timeval) (err error) {
|
||||
@ -497,6 +489,47 @@ func (sa *SockaddrL2) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrL2, nil
|
||||
}
|
||||
|
||||
// SockaddrRFCOMM implements the Sockaddr interface for AF_BLUETOOTH type sockets
|
||||
// using the RFCOMM protocol.
|
||||
//
|
||||
// Server example:
|
||||
//
|
||||
// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM)
|
||||
// _ = unix.Bind(fd, &unix.SockaddrRFCOMM{
|
||||
// Channel: 1,
|
||||
// Addr: [6]uint8{0, 0, 0, 0, 0, 0}, // BDADDR_ANY or 00:00:00:00:00:00
|
||||
// })
|
||||
// _ = Listen(fd, 1)
|
||||
// nfd, sa, _ := Accept(fd)
|
||||
// fmt.Printf("conn addr=%v fd=%d", sa.(*unix.SockaddrRFCOMM).Addr, nfd)
|
||||
// Read(nfd, buf)
|
||||
//
|
||||
// Client example:
|
||||
//
|
||||
// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM)
|
||||
// _ = Connect(fd, &SockaddrRFCOMM{
|
||||
// Channel: 1,
|
||||
// Addr: [6]byte{0x11, 0x22, 0x33, 0xaa, 0xbb, 0xcc}, // CC:BB:AA:33:22:11
|
||||
// })
|
||||
// Write(fd, []byte(`hello`))
|
||||
type SockaddrRFCOMM struct {
|
||||
// Addr represents a bluetooth address, byte ordering is little-endian.
|
||||
Addr [6]uint8
|
||||
|
||||
// Channel is a designated bluetooth channel, only 1-30 are available for use.
|
||||
// Since Linux 2.6.7 and further zero value is the first available channel.
|
||||
Channel uint8
|
||||
|
||||
raw RawSockaddrRFCOMM
|
||||
}
|
||||
|
||||
func (sa *SockaddrRFCOMM) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||
sa.raw.Family = AF_BLUETOOTH
|
||||
sa.raw.Channel = sa.Channel
|
||||
sa.raw.Bdaddr = sa.Addr
|
||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrRFCOMM, 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
|
||||
@ -659,7 +692,7 @@ func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil
|
||||
}
|
||||
|
||||
func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
switch rsa.Addr.Family {
|
||||
case AF_NETLINK:
|
||||
pp := (*RawSockaddrNetlink)(unsafe.Pointer(rsa))
|
||||
@ -736,6 +769,30 @@ func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
Port: pp.Port,
|
||||
}
|
||||
return sa, nil
|
||||
case AF_BLUETOOTH:
|
||||
proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// only BTPROTO_L2CAP and BTPROTO_RFCOMM can accept connections
|
||||
switch proto {
|
||||
case BTPROTO_L2CAP:
|
||||
pp := (*RawSockaddrL2)(unsafe.Pointer(rsa))
|
||||
sa := &SockaddrL2{
|
||||
PSM: pp.Psm,
|
||||
CID: pp.Cid,
|
||||
Addr: pp.Bdaddr,
|
||||
AddrType: pp.Bdaddr_type,
|
||||
}
|
||||
return sa, nil
|
||||
case BTPROTO_RFCOMM:
|
||||
pp := (*RawSockaddrRFCOMM)(unsafe.Pointer(rsa))
|
||||
sa := &SockaddrRFCOMM{
|
||||
Channel: pp.Channel,
|
||||
Addr: pp.Bdaddr,
|
||||
}
|
||||
return sa, nil
|
||||
}
|
||||
}
|
||||
return nil, EAFNOSUPPORT
|
||||
}
|
||||
@ -747,7 +804,7 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
sa, err = anyToSockaddr(&rsa)
|
||||
sa, err = anyToSockaddr(fd, &rsa)
|
||||
if err != nil {
|
||||
Close(nfd)
|
||||
nfd = 0
|
||||
@ -765,7 +822,7 @@ func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) {
|
||||
if len > SizeofSockaddrAny {
|
||||
panic("RawSockaddrAny too small")
|
||||
}
|
||||
sa, err = anyToSockaddr(&rsa)
|
||||
sa, err = anyToSockaddr(fd, &rsa)
|
||||
if err != nil {
|
||||
Close(nfd)
|
||||
nfd = 0
|
||||
@ -779,20 +836,7 @@ func Getsockname(fd int) (sa Sockaddr, err error) {
|
||||
if err = getsockname(fd, &rsa, &len); err != nil {
|
||||
return
|
||||
}
|
||||
return anyToSockaddr(&rsa)
|
||||
}
|
||||
|
||||
func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
|
||||
vallen := _Socklen(4)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
|
||||
return value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
|
||||
var value IPMreq
|
||||
vallen := _Socklen(SizeofIPMreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
return anyToSockaddr(fd, &rsa)
|
||||
}
|
||||
|
||||
func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
|
||||
@ -802,27 +846,6 @@ func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
|
||||
var value IPv6Mreq
|
||||
vallen := _Socklen(SizeofIPv6Mreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
|
||||
var value IPv6MTUInfo
|
||||
vallen := _Socklen(SizeofIPv6MTUInfo)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
|
||||
var value ICMPv6Filter
|
||||
vallen := _Socklen(SizeofICMPv6Filter)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptUcred(fd, level, opt int) (*Ucred, error) {
|
||||
var value Ucred
|
||||
vallen := _Socklen(SizeofUcred)
|
||||
@ -978,15 +1001,17 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
|
||||
}
|
||||
var dummy byte
|
||||
if len(oob) > 0 {
|
||||
var sockType int
|
||||
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
// receive at least one normal byte
|
||||
if sockType != SOCK_DGRAM && len(p) == 0 {
|
||||
iov.Base = &dummy
|
||||
iov.SetLen(1)
|
||||
if len(p) == 0 {
|
||||
var sockType int
|
||||
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
// receive at least one normal byte
|
||||
if sockType != SOCK_DGRAM {
|
||||
iov.Base = &dummy
|
||||
iov.SetLen(1)
|
||||
}
|
||||
}
|
||||
msg.Control = &oob[0]
|
||||
msg.SetControllen(len(oob))
|
||||
@ -1000,7 +1025,7 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
|
||||
recvflags = int(msg.Flags)
|
||||
// source address is only specified if the socket is unconnected
|
||||
if rsa.Addr.Family != AF_UNSPEC {
|
||||
from, err = anyToSockaddr(&rsa)
|
||||
from, err = anyToSockaddr(fd, &rsa)
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -1030,15 +1055,17 @@ func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
|
||||
}
|
||||
var dummy byte
|
||||
if len(oob) > 0 {
|
||||
var sockType int
|
||||
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
// send at least one normal byte
|
||||
if sockType != SOCK_DGRAM && len(p) == 0 {
|
||||
iov.Base = &dummy
|
||||
iov.SetLen(1)
|
||||
if len(p) == 0 {
|
||||
var sockType int
|
||||
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
// send at least one normal byte
|
||||
if sockType != SOCK_DGRAM {
|
||||
iov.Base = &dummy
|
||||
iov.SetLen(1)
|
||||
}
|
||||
}
|
||||
msg.Control = &oob[0]
|
||||
msg.SetControllen(len(oob))
|
||||
@ -1251,12 +1278,10 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
||||
//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 Dup3(oldfd int, newfd int, flags int) (err error)
|
||||
//sysnb EpollCreate(size 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)
|
||||
//sys Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD2
|
||||
//sys Exit(code int) = SYS_EXIT_GROUP
|
||||
//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 Fchdir(fd int) (err error)
|
||||
//sys Fchmod(fd int, mode uint32) (err error)
|
||||
@ -1294,6 +1319,7 @@ func Getpgrp() (pid int) {
|
||||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||
//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)
|
||||
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
|
||||
//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)
|
||||
@ -1335,7 +1361,6 @@ func Setgid(uid int) (err error) {
|
||||
//sysnb Uname(buf *Utsname) (err error)
|
||||
//sys Unmount(target string, flags int) (err error) = SYS_UMOUNT2
|
||||
//sys Unshare(flags int) (err error)
|
||||
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||
//sys write(fd int, p []byte) (n int, err error)
|
||||
//sys exitThread(code int) (err error) = SYS_EXIT
|
||||
//sys readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ
|
||||
@ -1385,6 +1410,17 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
||||
return int(n), nil
|
||||
}
|
||||
|
||||
//sys faccessat(dirfd int, path string, mode uint32) (err error)
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
|
||||
return EINVAL
|
||||
} else if flags&(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
|
||||
return EOPNOTSUPP
|
||||
}
|
||||
return faccessat(dirfd, path, mode)
|
||||
}
|
||||
|
||||
/*
|
||||
* Unimplemented
|
||||
*/
|
||||
|
16
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
16
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
@ -10,7 +10,6 @@
|
||||
package unix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@ -51,6 +50,8 @@ func Pipe2(p []int, flags int) (err error) {
|
||||
// 64-bit file system and 32-bit uid calls
|
||||
// (386 default is 32-bit file system and 16-bit uid).
|
||||
//sys Dup2(oldfd int, newfd int) (err error)
|
||||
//sysnb EpollCreate(size int) (fd 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_64
|
||||
//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||
@ -78,12 +79,12 @@ func Pipe2(p []int, flags int) (err error) {
|
||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||
//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
|
||||
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||
//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) = SYS_GETGROUPS32
|
||||
//sysnb setgroups(n int, list *_Gid_t) (err error) = SYS_SETGROUPS32
|
||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||
|
||||
//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
|
||||
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||
//sys Pause() (err error)
|
||||
|
||||
func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
|
||||
@ -157,10 +158,6 @@ func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
||||
return setrlimit(resource, &rl)
|
||||
}
|
||||
|
||||
// Underlying system call writes to newoffset via pointer.
|
||||
// Implemented in assembly to avoid allocation.
|
||||
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
|
||||
|
||||
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||
newoffset, errno := seek(fd, offset, whence)
|
||||
if errno != 0 {
|
||||
@ -169,11 +166,11 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||
return newoffset, nil
|
||||
}
|
||||
|
||||
// Vsyscalls on amd64.
|
||||
//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
|
||||
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||
//sysnb Time(t *Time_t) (tt Time_t, err error)
|
||||
|
||||
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||
|
||||
// On x86 Linux, all the socket calls go through an extra indirection,
|
||||
// I think because the 5-register system call interface can't handle
|
||||
@ -206,9 +203,6 @@ const (
|
||||
_SENDMMSG = 20
|
||||
)
|
||||
|
||||
func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
|
||||
func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
|
||||
|
||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
fd, e := socketcall(_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
|
||||
if e != 0 {
|
||||
|
22
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
22
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
@ -7,6 +7,7 @@
|
||||
package unix
|
||||
|
||||
//sys Dup2(oldfd int, newfd int) (err error)
|
||||
//sysnb EpollCreate(size int) (fd 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 Fchown(fd int, uid int, gid int) (err error)
|
||||
@ -29,7 +30,15 @@ package unix
|
||||
//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)
|
||||
|
||||
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
||||
var ts *Timespec
|
||||
if timeout != nil {
|
||||
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
||||
}
|
||||
return Pselect(nfd, r, w, e, ts, nil)
|
||||
}
|
||||
|
||||
//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)
|
||||
@ -40,10 +49,16 @@ package unix
|
||||
//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)
|
||||
|
||||
func Stat(path string, stat *Stat_t) (err error) {
|
||||
// Use fstatat, because Android's seccomp policy blocks stat.
|
||||
return Fstatat(AT_FDCWD, path, stat, 0)
|
||||
}
|
||||
|
||||
//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 Ustat(dev int, ubuf *Ustat_t) (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)
|
||||
@ -62,6 +77,8 @@ package unix
|
||||
//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 futimesat(dirfd int, path string, times *[2]Timeval) (err error)
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
errno := gettimeofday(tv)
|
||||
if errno != 0 {
|
||||
@ -83,6 +100,7 @@ func Time(t *Time_t) (tt Time_t, err error) {
|
||||
}
|
||||
|
||||
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: sec, Nsec: nsec}
|
||||
|
10
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
10
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
@ -75,6 +75,8 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||
// 64-bit file system and 32-bit uid calls
|
||||
// (16-bit uid calls are not always supported in newer kernels)
|
||||
//sys Dup2(oldfd int, newfd int) (err error)
|
||||
//sysnb EpollCreate(size int) (fd 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_FCHOWN32
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||
//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||
@ -86,6 +88,7 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||
//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32
|
||||
//sys Listen(s int, n int) (err error)
|
||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||
//sys Pause() (err error)
|
||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
|
||||
@ -97,11 +100,10 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, 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 int, err error)
|
||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||
|
||||
// Vsyscalls on amd64.
|
||||
//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
|
||||
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||
//sys Pause() (err error)
|
||||
|
||||
func Time(t *Time_t) (Time_t, error) {
|
||||
var tv Timeval
|
||||
@ -123,6 +125,8 @@ func Utime(path string, buf *Utimbuf) error {
|
||||
return Utimes(path, tv)
|
||||
}
|
||||
|
||||
//sys utimes(path string, times *[2]Timeval) (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 Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
|
||||
|
55
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
55
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
@ -6,7 +6,17 @@
|
||||
|
||||
package unix
|
||||
|
||||
import "unsafe"
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
if size <= 0 {
|
||||
return -1, EINVAL
|
||||
}
|
||||
return EpollCreate1(0)
|
||||
}
|
||||
|
||||
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT
|
||||
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
|
||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||
@ -56,6 +66,11 @@ func Lstat(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)
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
return ENOSYS
|
||||
}
|
||||
|
||||
//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)
|
||||
@ -84,6 +99,18 @@ func setTimeval(sec, usec int64) Timeval {
|
||||
return Timeval{Sec: sec, Usec: usec}
|
||||
}
|
||||
|
||||
func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) {
|
||||
if tv == nil {
|
||||
return utimensat(dirfd, path, nil, 0)
|
||||
}
|
||||
|
||||
ts := []Timespec{
|
||||
NsecToTimespec(TimevalToNsec(tv[0])),
|
||||
NsecToTimespec(TimevalToNsec(tv[1])),
|
||||
}
|
||||
return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
|
||||
}
|
||||
|
||||
func Time(t *Time_t) (Time_t, error) {
|
||||
var tv Timeval
|
||||
err := Gettimeofday(&tv)
|
||||
@ -104,6 +131,18 @@ func Utime(path string, buf *Utimbuf) error {
|
||||
return Utimes(path, tv)
|
||||
}
|
||||
|
||||
func utimes(path string, tv *[2]Timeval) (err error) {
|
||||
if tv == nil {
|
||||
return utimensat(AT_FDCWD, path, nil, 0)
|
||||
}
|
||||
|
||||
ts := []Timespec{
|
||||
NsecToTimespec(TimevalToNsec(tv[0])),
|
||||
NsecToTimespec(TimevalToNsec(tv[1])),
|
||||
}
|
||||
return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
|
||||
}
|
||||
|
||||
func Pipe(p []int) (err error) {
|
||||
if len(p) != 2 {
|
||||
return EINVAL
|
||||
@ -160,22 +199,6 @@ func Pause() (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
// TODO(dfc): constants that should be in zsysnum_linux_arm64.go, remove
|
||||
// these when the deprecated syscalls that the syscall package relies on
|
||||
// are removed.
|
||||
const (
|
||||
SYS_GETPGRP = 1060
|
||||
SYS_UTIMES = 1037
|
||||
SYS_FUTIMESAT = 1066
|
||||
SYS_PAUSE = 1061
|
||||
SYS_USTAT = 1070
|
||||
SYS_UTIME = 1063
|
||||
SYS_LCHOWN = 1032
|
||||
SYS_TIME = 1062
|
||||
SYS_EPOLL_CREATE = 1042
|
||||
SYS_EPOLL_WAIT = 1069
|
||||
)
|
||||
|
||||
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||
var ts *Timespec
|
||||
if timeout >= 0 {
|
||||
|
16
vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go
generated
vendored
Normal file
16
vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright 2018 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,!gccgo,386
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
// Underlying system call writes to newoffset via pointer.
|
||||
// Implemented in assembly to avoid allocation.
|
||||
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
|
||||
|
||||
func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
|
||||
func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
|
30
vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go
generated
vendored
Normal file
30
vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
// Copyright 2018 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,gccgo,386
|
||||
|
||||
package unix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
|
||||
var newoffset int64
|
||||
offsetLow := uint32(offset & 0xffffffff)
|
||||
offsetHigh := uint32((offset >> 32) & 0xffffffff)
|
||||
_, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
|
||||
return newoffset, err
|
||||
}
|
||||
|
||||
func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) {
|
||||
fd, _, err := Syscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0)
|
||||
return int(fd), err
|
||||
}
|
||||
|
||||
func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) {
|
||||
fd, _, err := RawSyscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0)
|
||||
return int(fd), err
|
||||
}
|
20
vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go
generated
vendored
Normal file
20
vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
// Copyright 2018 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,gccgo,arm
|
||||
|
||||
package unix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
|
||||
var newoffset int64
|
||||
offsetLow := uint32(offset & 0xffffffff)
|
||||
offsetHigh := uint32((offset >> 32) & 0xffffffff)
|
||||
_, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
|
||||
return newoffset, err
|
||||
}
|
5
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
5
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
@ -8,7 +8,9 @@
|
||||
package unix
|
||||
|
||||
//sys Dup2(oldfd int, newfd int) (err error)
|
||||
//sysnb EpollCreate(size int) (fd 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 Fchown(fd int, uid int, gid int) (err error)
|
||||
//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT
|
||||
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
||||
@ -46,6 +48,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
||||
//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 Ustat(dev int, ubuf *Ustat_t) (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)
|
||||
@ -64,6 +67,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
||||
//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 futimesat(dirfd int, path string, times *[2]Timeval) (err error)
|
||||
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||
|
||||
func Time(t *Time_t) (tt Time_t, err error) {
|
||||
@ -79,6 +83,7 @@ func Time(t *Time_t) (tt Time_t, err error) {
|
||||
}
|
||||
|
||||
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: sec, Nsec: nsec}
|
||||
|
13
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
13
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
@ -15,6 +15,9 @@ import (
|
||||
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)
|
||||
//sysnb EpollCreate(size int) (fd 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 Fchown(fd int, uid int, gid int) (err error)
|
||||
//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64
|
||||
//sysnb Getegid() (egid int)
|
||||
@ -32,13 +35,12 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
||||
//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 Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, 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 Ustat(dev int, ubuf *Ustat_t) (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)
|
||||
@ -60,16 +62,17 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
||||
//sys Ioperm(from int, num int, on int) (err error)
|
||||
//sys Iopl(level int) (err error)
|
||||
|
||||
//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
|
||||
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||
//sysnb Time(t *Time_t) (tt Time_t, err error)
|
||||
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||
//sys utimes(path string, times *[2]Timeval) (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 Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||
//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) {
|
||||
|
8
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
@ -7,8 +7,10 @@
|
||||
|
||||
package unix
|
||||
|
||||
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||
//sys Dup2(oldfd int, newfd int) (err error)
|
||||
//sysnb EpollCreate(size int) (fd 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 Fchown(fd int, uid int, gid int) (err error)
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||
//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT
|
||||
@ -44,6 +46,7 @@ package unix
|
||||
//sys Statfs(path string, buf *Statfs_t) (err error)
|
||||
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) = SYS_SYNC_FILE_RANGE2
|
||||
//sys Truncate(path string, length int64) (err error)
|
||||
//sys Ustat(dev int, ubuf *Ustat_t) (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)
|
||||
@ -62,10 +65,11 @@ package unix
|
||||
//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 futimesat(dirfd int, path string, times *[2]Timeval) (err error)
|
||||
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||
//sysnb Time(t *Time_t) (tt Time_t, err error)
|
||||
|
||||
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: sec, Nsec: nsec}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
@ -11,6 +11,7 @@ import (
|
||||
)
|
||||
|
||||
//sys Dup2(oldfd int, newfd int) (err error)
|
||||
//sysnb EpollCreate(size int) (fd 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 Fchown(fd int, uid int, gid int) (err error)
|
||||
@ -44,9 +45,11 @@ import (
|
||||
//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 Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||
//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
|
||||
//sysnb setgroups(n int, list *_Gid_t) (err error)
|
||||
|
||||
//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
|
||||
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||
|
||||
func Time(t *Time_t) (tt Time_t, err error) {
|
||||
@ -62,6 +65,7 @@ func Time(t *Time_t) (tt Time_t, err error) {
|
||||
}
|
||||
|
||||
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: sec, Nsec: nsec}
|
||||
|
3
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
3
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
@ -7,6 +7,7 @@
|
||||
package unix
|
||||
|
||||
//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 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)
|
||||
@ -67,6 +68,7 @@ func Iopl(level int) (err error) {
|
||||
return ENOSYS
|
||||
}
|
||||
|
||||
//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
|
||||
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||
|
||||
func Time(t *Time_t) (tt Time_t, err error) {
|
||||
@ -82,6 +84,7 @@ func Time(t *Time_t) (tt Time_t, err error) {
|
||||
}
|
||||
|
||||
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: sec, Nsec: nsec}
|
||||
|
212
vendor/golang.org/x/sys/unix/syscall_linux_test.go
generated
vendored
212
vendor/golang.org/x/sys/unix/syscall_linux_test.go
generated
vendored
@ -7,44 +7,15 @@
|
||||
package unix_test
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func TestFchmodat(t *testing.T) {
|
||||
defer chtmpdir(t)()
|
||||
|
||||
touch(t, "file1")
|
||||
err := os.Symlink("file1", "symlink1")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
err = unix.Fchmodat(unix.AT_FDCWD, "symlink1", 0444, 0)
|
||||
if err != nil {
|
||||
t.Fatalf("Fchmodat: unexpected error: %v", err)
|
||||
}
|
||||
|
||||
fi, err := os.Stat("file1")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if fi.Mode() != 0444 {
|
||||
t.Errorf("Fchmodat: failed to change mode: expected %v, got %v", 0444, fi.Mode())
|
||||
}
|
||||
|
||||
err = unix.Fchmodat(unix.AT_FDCWD, "symlink1", 0444, unix.AT_SYMLINK_NOFOLLOW)
|
||||
if err != unix.EOPNOTSUPP {
|
||||
t.Fatalf("Fchmodat: unexpected error: %v, expected EOPNOTSUPP", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestIoctlGetInt(t *testing.T) {
|
||||
f, err := os.Open("/dev/random")
|
||||
if err != nil {
|
||||
@ -61,6 +32,10 @@ func TestIoctlGetInt(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPpoll(t *testing.T) {
|
||||
if runtime.GOOS == "android" {
|
||||
t.Skip("mkfifo syscall is not available on android, skipping test")
|
||||
}
|
||||
|
||||
f, cleanup := mktmpfifo(t)
|
||||
defer cleanup()
|
||||
|
||||
@ -165,20 +140,59 @@ func TestUtimesNanoAt(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("Lstat: %v", err)
|
||||
}
|
||||
if st.Atim != ts[0] {
|
||||
t.Errorf("UtimesNanoAt: wrong atime: %v", st.Atim)
|
||||
|
||||
// Only check Mtim, Atim might not be supported by the underlying filesystem
|
||||
expected := ts[1]
|
||||
if st.Mtim.Nsec == 0 {
|
||||
// Some filesystems only support 1-second time stamp resolution
|
||||
// and will always set Nsec to 0.
|
||||
expected.Nsec = 0
|
||||
}
|
||||
if st.Mtim != ts[1] {
|
||||
t.Errorf("UtimesNanoAt: wrong mtime: %v", st.Mtim)
|
||||
if st.Mtim != expected {
|
||||
t.Errorf("UtimesNanoAt: wrong mtime: expected %v, got %v", expected, st.Mtim)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetrlimit(t *testing.T) {
|
||||
func TestRlimitAs(t *testing.T) {
|
||||
// disable GC during to avoid flaky test
|
||||
defer debug.SetGCPercent(debug.SetGCPercent(-1))
|
||||
|
||||
var rlim unix.Rlimit
|
||||
err := unix.Getrlimit(unix.RLIMIT_AS, &rlim)
|
||||
if err != nil {
|
||||
t.Fatalf("Getrlimit: %v", err)
|
||||
}
|
||||
var zero unix.Rlimit
|
||||
if zero == rlim {
|
||||
t.Fatalf("Getrlimit: got zero value %#v", rlim)
|
||||
}
|
||||
set := rlim
|
||||
set.Cur = uint64(unix.Getpagesize())
|
||||
err = unix.Setrlimit(unix.RLIMIT_AS, &set)
|
||||
if err != nil {
|
||||
t.Fatalf("Setrlimit: set failed: %#v %v", set, err)
|
||||
}
|
||||
|
||||
// RLIMIT_AS was set to the page size, so mmap()'ing twice the page size
|
||||
// should fail. See 'man 2 getrlimit'.
|
||||
_, err = unix.Mmap(-1, 0, 2*unix.Getpagesize(), unix.PROT_NONE, unix.MAP_ANON|unix.MAP_PRIVATE)
|
||||
if err == nil {
|
||||
t.Fatal("Mmap: unexpectedly suceeded after setting RLIMIT_AS")
|
||||
}
|
||||
|
||||
err = unix.Setrlimit(unix.RLIMIT_AS, &rlim)
|
||||
if err != nil {
|
||||
t.Fatalf("Setrlimit: restore failed: %#v %v", rlim, err)
|
||||
}
|
||||
|
||||
b, err := unix.Mmap(-1, 0, 2*unix.Getpagesize(), unix.PROT_NONE, unix.MAP_ANON|unix.MAP_PRIVATE)
|
||||
if err != nil {
|
||||
t.Fatalf("Mmap: %v", err)
|
||||
}
|
||||
err = unix.Munmap(b)
|
||||
if err != nil {
|
||||
t.Fatalf("Munmap: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSelect(t *testing.T) {
|
||||
@ -221,47 +235,6 @@ func TestPselect(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestFstatat(t *testing.T) {
|
||||
defer chtmpdir(t)()
|
||||
|
||||
touch(t, "file1")
|
||||
|
||||
var st1 unix.Stat_t
|
||||
err := unix.Stat("file1", &st1)
|
||||
if err != nil {
|
||||
t.Fatalf("Stat: %v", err)
|
||||
}
|
||||
|
||||
var st2 unix.Stat_t
|
||||
err = unix.Fstatat(unix.AT_FDCWD, "file1", &st2, 0)
|
||||
if err != nil {
|
||||
t.Fatalf("Fstatat: %v", err)
|
||||
}
|
||||
|
||||
if st1 != st2 {
|
||||
t.Errorf("Fstatat: returned stat does not match Stat")
|
||||
}
|
||||
|
||||
err = os.Symlink("file1", "symlink1")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
err = unix.Lstat("symlink1", &st1)
|
||||
if err != nil {
|
||||
t.Fatalf("Lstat: %v", err)
|
||||
}
|
||||
|
||||
err = unix.Fstatat(unix.AT_FDCWD, "symlink1", &st2, unix.AT_SYMLINK_NOFOLLOW)
|
||||
if err != nil {
|
||||
t.Fatalf("Fstatat: %v", err)
|
||||
}
|
||||
|
||||
if st1 != st2 {
|
||||
t.Errorf("Fstatat: returned stat does not match Lstat")
|
||||
}
|
||||
}
|
||||
|
||||
func TestSchedSetaffinity(t *testing.T) {
|
||||
runtime.LockOSThread()
|
||||
defer runtime.UnlockOSThread()
|
||||
@ -292,6 +265,13 @@ func TestSchedSetaffinity(t *testing.T) {
|
||||
t.Errorf("CpuClr: didn't clear CPU %d in set: %v", cpu, newMask)
|
||||
}
|
||||
|
||||
if runtime.NumCPU() < 2 {
|
||||
t.Skip("skipping setaffinity tests on single CPU system")
|
||||
}
|
||||
if runtime.GOOS == "android" {
|
||||
t.Skip("skipping setaffinity tests on android")
|
||||
}
|
||||
|
||||
err = unix.SchedSetaffinity(0, &newMask)
|
||||
if err != nil {
|
||||
t.Fatalf("SchedSetaffinity: %v", err)
|
||||
@ -317,7 +297,7 @@ func TestSchedSetaffinity(t *testing.T) {
|
||||
func TestStatx(t *testing.T) {
|
||||
var stx unix.Statx_t
|
||||
err := unix.Statx(unix.AT_FDCWD, ".", 0, 0, &stx)
|
||||
if err == unix.ENOSYS {
|
||||
if err == unix.ENOSYS || err == unix.EPERM {
|
||||
t.Skip("statx syscall is not available, skipping test")
|
||||
} else if err != nil {
|
||||
t.Fatalf("Statx: %v", err)
|
||||
@ -342,13 +322,9 @@ func TestStatx(t *testing.T) {
|
||||
t.Errorf("Statx: returned stat mode does not match Stat")
|
||||
}
|
||||
|
||||
atime := unix.StatxTimestamp{Sec: int64(st.Atim.Sec), Nsec: uint32(st.Atim.Nsec)}
|
||||
ctime := unix.StatxTimestamp{Sec: int64(st.Ctim.Sec), Nsec: uint32(st.Ctim.Nsec)}
|
||||
mtime := unix.StatxTimestamp{Sec: int64(st.Mtim.Sec), Nsec: uint32(st.Mtim.Nsec)}
|
||||
|
||||
if stx.Atime != atime {
|
||||
t.Errorf("Statx: returned stat atime does not match Stat")
|
||||
}
|
||||
if stx.Ctime != ctime {
|
||||
t.Errorf("Statx: returned stat ctime does not match Stat")
|
||||
}
|
||||
@ -389,13 +365,9 @@ func TestStatx(t *testing.T) {
|
||||
t.Errorf("Statx: returned stat mode does not match Lstat")
|
||||
}
|
||||
|
||||
atime = unix.StatxTimestamp{Sec: int64(st.Atim.Sec), Nsec: uint32(st.Atim.Nsec)}
|
||||
ctime = unix.StatxTimestamp{Sec: int64(st.Ctim.Sec), Nsec: uint32(st.Ctim.Nsec)}
|
||||
mtime = unix.StatxTimestamp{Sec: int64(st.Mtim.Sec), Nsec: uint32(st.Mtim.Nsec)}
|
||||
|
||||
if stx.Atime != atime {
|
||||
t.Errorf("Statx: returned stat atime does not match Lstat")
|
||||
}
|
||||
if stx.Ctime != ctime {
|
||||
t.Errorf("Statx: returned stat ctime does not match Lstat")
|
||||
}
|
||||
@ -404,36 +376,46 @@ func TestStatx(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// utilities taken from os/os_test.go
|
||||
|
||||
func touch(t *testing.T, name string) {
|
||||
f, err := os.Create(name)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := f.Close(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
// chtmpdir changes the working directory to a new temporary directory and
|
||||
// provides a cleanup function. Used when PWD is read-only.
|
||||
func chtmpdir(t *testing.T) func() {
|
||||
oldwd, err := os.Getwd()
|
||||
if err != nil {
|
||||
t.Fatalf("chtmpdir: %v", err)
|
||||
}
|
||||
d, err := ioutil.TempDir("", "test")
|
||||
if err != nil {
|
||||
t.Fatalf("chtmpdir: %v", err)
|
||||
}
|
||||
if err := os.Chdir(d); err != nil {
|
||||
t.Fatalf("chtmpdir: %v", err)
|
||||
}
|
||||
return func() {
|
||||
if err := os.Chdir(oldwd); err != nil {
|
||||
t.Fatalf("chtmpdir: %v", err)
|
||||
// stringsFromByteSlice converts a sequence of attributes to a []string.
|
||||
// On Linux, each entry is a NULL-terminated string.
|
||||
func stringsFromByteSlice(buf []byte) []string {
|
||||
var result []string
|
||||
off := 0
|
||||
for i, b := range buf {
|
||||
if b == 0 {
|
||||
result = append(result, string(buf[off:i]))
|
||||
off = i + 1
|
||||
}
|
||||
os.RemoveAll(d)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func TestFaccessat(t *testing.T) {
|
||||
defer chtmpdir(t)()
|
||||
touch(t, "file1")
|
||||
|
||||
err := unix.Faccessat(unix.AT_FDCWD, "file1", unix.O_RDONLY, 0)
|
||||
if err != nil {
|
||||
t.Errorf("Faccessat: unexpected error: %v", err)
|
||||
}
|
||||
|
||||
err = unix.Faccessat(unix.AT_FDCWD, "file1", unix.O_RDONLY, 2)
|
||||
if err != unix.EINVAL {
|
||||
t.Errorf("Faccessat: unexpected error: %v, want EINVAL", err)
|
||||
}
|
||||
|
||||
err = unix.Faccessat(unix.AT_FDCWD, "file1", unix.O_RDONLY, unix.AT_EACCESS)
|
||||
if err != unix.EOPNOTSUPP {
|
||||
t.Errorf("Faccessat: unexpected error: %v, want EOPNOTSUPP", err)
|
||||
}
|
||||
|
||||
err = os.Symlink("file1", "symlink1")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
err = unix.Faccessat(unix.AT_FDCWD, "symlink1", unix.O_RDONLY, unix.AT_SYMLINK_NOFOLLOW)
|
||||
if err != unix.EOPNOTSUPP {
|
||||
t.Errorf("Faccessat: unexpected error: %v, want EOPNOTSUPP", err)
|
||||
}
|
||||
}
|
||||
|
9
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
9
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@ -145,11 +145,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
@ -233,13 +233,17 @@ func Uname(uname *Utsname) error {
|
||||
//sys Dup(fd int) (nfd int, err error)
|
||||
//sys Dup2(from int, to int) (err error)
|
||||
//sys Exit(code int)
|
||||
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
|
||||
//sys Fchdir(fd int) (err error)
|
||||
//sys Fchflags(fd int, flags int) (err error)
|
||||
//sys Fchmod(fd int, mode uint32) (err error)
|
||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||
//sys Flock(fd int, how int) (err error)
|
||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||
//sys Fsync(fd int) (err error)
|
||||
//sys Ftruncate(fd int, length int64) (err error)
|
||||
//sysnb Getegid() (egid int)
|
||||
@ -320,7 +324,6 @@ func Uname(uname *Utsname) error {
|
||||
// __msync13
|
||||
// __ntp_gettime30
|
||||
// __posix_chown
|
||||
// __posix_fadvise50
|
||||
// __posix_fchown
|
||||
// __posix_lchown
|
||||
// __posix_rename
|
||||
|
11
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
11
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@ -113,11 +113,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
@ -201,13 +201,16 @@ func Uname(uname *Utsname) error {
|
||||
//sys Dup(fd int) (nfd int, err error)
|
||||
//sys Dup2(from int, to int) (err error)
|
||||
//sys Exit(code int)
|
||||
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||
//sys Fchdir(fd int) (err error)
|
||||
//sys Fchflags(fd int, flags int) (err error)
|
||||
//sys Fchmod(fd int, mode uint32) (err error)
|
||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||
//sys Flock(fd int, how int) (err error)
|
||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||
//sys Fsync(fd int) (err error)
|
||||
//sys Ftruncate(fd int, length int64) (err error)
|
||||
@ -220,6 +223,7 @@ func Uname(uname *Utsname) error {
|
||||
//sysnb Getppid() (ppid int)
|
||||
//sys Getpriority(which int, who int) (prio int, err error)
|
||||
//sysnb Getrlimit(which int, lim *Rlimit) (err error)
|
||||
//sysnb Getrtable() (rtable int, err error)
|
||||
//sysnb Getrusage(who int, rusage *Rusage) (err error)
|
||||
//sysnb Getsid(pid int) (sid int, err error)
|
||||
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||
@ -257,6 +261,7 @@ func Uname(uname *Utsname) error {
|
||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||
//sysnb Setrlimit(which int, lim *Rlimit) (err error)
|
||||
//sysnb Setrtable(rtable int) (err error)
|
||||
//sysnb Setsid() (pid int, err error)
|
||||
//sysnb Settimeofday(tp *Timeval) (err error)
|
||||
//sysnb Setuid(uid int) (err error)
|
||||
@ -305,7 +310,6 @@ func Uname(uname *Utsname) error {
|
||||
// getlogin
|
||||
// getresgid
|
||||
// getresuid
|
||||
// getrtable
|
||||
// getthrid
|
||||
// ktrace
|
||||
// lfs_bmapv
|
||||
@ -341,7 +345,6 @@ func Uname(uname *Utsname) error {
|
||||
// semop
|
||||
// setgroups
|
||||
// setitimer
|
||||
// setrtable
|
||||
// setsockopt
|
||||
// shmat
|
||||
// shmctl
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
generated
vendored
@ -31,3 +31,7 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||
// of openbsd/amd64 the syscall is called sysctl instead of __sysctl.
|
||||
const SYS___SYSCTL = SYS_SYSCTL
|
||||
|
27
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
27
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@ -112,7 +112,7 @@ func Getsockname(fd int) (sa Sockaddr, err error) {
|
||||
if err = getsockname(fd, &rsa, &len); err != nil {
|
||||
return
|
||||
}
|
||||
return anyToSockaddr(&rsa)
|
||||
return anyToSockaddr(fd, &rsa)
|
||||
}
|
||||
|
||||
// GetsockoptString returns the string value of the socket option opt for the
|
||||
@ -312,6 +312,16 @@ func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
|
||||
|
||||
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
||||
|
||||
// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
|
||||
func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
|
||||
valptr, _, errno := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
|
||||
var err error
|
||||
if errno != 0 {
|
||||
err = errno
|
||||
}
|
||||
return int(valptr), err
|
||||
}
|
||||
|
||||
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
|
||||
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
|
||||
_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(lk)), 0, 0, 0)
|
||||
@ -350,7 +360,7 @@ func Futimes(fd int, tv []Timeval) error {
|
||||
return futimesat(fd, nil, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
|
||||
}
|
||||
|
||||
func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
switch rsa.Addr.Family {
|
||||
case AF_UNIX:
|
||||
pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
|
||||
@ -401,7 +411,7 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
|
||||
if nfd == -1 {
|
||||
return
|
||||
}
|
||||
sa, err = anyToSockaddr(&rsa)
|
||||
sa, err = anyToSockaddr(fd, &rsa)
|
||||
if err != nil {
|
||||
Close(nfd)
|
||||
nfd = 0
|
||||
@ -438,7 +448,7 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
|
||||
oobn = int(msg.Accrightslen)
|
||||
// source address is only specified if the socket is unconnected
|
||||
if rsa.Addr.Family != AF_UNSPEC {
|
||||
from, err = anyToSockaddr(&rsa)
|
||||
from, err = anyToSockaddr(fd, &rsa)
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -530,11 +540,11 @@ func IoctlSetInt(fd int, req uint, value int) (err error) {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func IoctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
@ -589,15 +599,17 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||
//sys Dup(fd int) (nfd int, err error)
|
||||
//sys Dup2(oldfd int, newfd int) (err error)
|
||||
//sys Exit(code int)
|
||||
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||
//sys Fchdir(fd int) (err error)
|
||||
//sys Fchmod(fd int, mode uint32) (err error)
|
||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||
//sys Fdatasync(fd int) (err error)
|
||||
//sys Flock(fd int, how int) (err error)
|
||||
//sys Flock(fd int, how int) (err error)
|
||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||
//sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error)
|
||||
//sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error)
|
||||
//sysnb Getgid() (gid int)
|
||||
@ -675,6 +687,7 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||
//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 munmap(addr uintptr, length uintptr) (err error)
|
||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = libsendfile.sendfile
|
||||
//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.__xnet_socket
|
||||
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.__xnet_socketpair
|
||||
|
5
vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go
generated
vendored
5
vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go
generated
vendored
@ -21,8 +21,3 @@ func (iov *Iovec) SetLen(length int) {
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||
// TODO(aram): implement this, see issue 5847.
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
101
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
101
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
@ -7,7 +7,9 @@
|
||||
package unix
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"runtime"
|
||||
"sort"
|
||||
"sync"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
@ -50,14 +52,35 @@ func errnoErr(e syscall.Errno) error {
|
||||
return e
|
||||
}
|
||||
|
||||
// ErrnoName returns the error name for error number e.
|
||||
func ErrnoName(e syscall.Errno) string {
|
||||
i := sort.Search(len(errorList), func(i int) bool {
|
||||
return errorList[i].num >= e
|
||||
})
|
||||
if i < len(errorList) && errorList[i].num == e {
|
||||
return errorList[i].name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// SignalName returns the signal name for signal number s.
|
||||
func SignalName(s syscall.Signal) string {
|
||||
i := sort.Search(len(signalList), func(i int) bool {
|
||||
return signalList[i].num >= s
|
||||
})
|
||||
if i < len(signalList) && signalList[i].num == s {
|
||||
return signalList[i].name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
|
||||
func clen(n []byte) int {
|
||||
for i := 0; i < len(n); i++ {
|
||||
if n[i] == 0 {
|
||||
return i
|
||||
}
|
||||
i := bytes.IndexByte(n, 0)
|
||||
if i == -1 {
|
||||
i = len(n)
|
||||
}
|
||||
return len(n)
|
||||
return i
|
||||
}
|
||||
|
||||
// Mmap manager, for use by operating system-specific implementations.
|
||||
@ -196,7 +219,14 @@ func Getpeername(fd int) (sa Sockaddr, err error) {
|
||||
if err = getpeername(fd, &rsa, &len); err != nil {
|
||||
return
|
||||
}
|
||||
return anyToSockaddr(&rsa)
|
||||
return anyToSockaddr(fd, &rsa)
|
||||
}
|
||||
|
||||
func GetsockoptByte(fd, level, opt int) (value byte, err error) {
|
||||
var n byte
|
||||
vallen := _Socklen(1)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
|
||||
return n, err
|
||||
}
|
||||
|
||||
func GetsockoptInt(fd, level, opt int) (value int, err error) {
|
||||
@ -206,6 +236,54 @@ func GetsockoptInt(fd, level, opt int) (value int, err error) {
|
||||
return int(n), err
|
||||
}
|
||||
|
||||
func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
|
||||
vallen := _Socklen(4)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
|
||||
return value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
|
||||
var value IPMreq
|
||||
vallen := _Socklen(SizeofIPMreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
|
||||
var value IPv6Mreq
|
||||
vallen := _Socklen(SizeofIPv6Mreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
|
||||
var value IPv6MTUInfo
|
||||
vallen := _Socklen(SizeofIPv6MTUInfo)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
|
||||
var value ICMPv6Filter
|
||||
vallen := _Socklen(SizeofICMPv6Filter)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptLinger(fd, level, opt int) (*Linger, error) {
|
||||
var linger Linger
|
||||
vallen := _Socklen(SizeofLinger)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&linger), &vallen)
|
||||
return &linger, err
|
||||
}
|
||||
|
||||
func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) {
|
||||
var tv Timeval
|
||||
vallen := _Socklen(unsafe.Sizeof(tv))
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&tv), &vallen)
|
||||
return &tv, err
|
||||
}
|
||||
|
||||
func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
|
||||
var rsa RawSockaddrAny
|
||||
var len _Socklen = SizeofSockaddrAny
|
||||
@ -213,7 +291,7 @@ func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
|
||||
return
|
||||
}
|
||||
if rsa.Addr.Family != AF_UNSPEC {
|
||||
from, err = anyToSockaddr(&rsa)
|
||||
from, err = anyToSockaddr(fd, &rsa)
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -305,3 +383,12 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
|
||||
_, err = fcntl(fd, F_SETFL, flag)
|
||||
return err
|
||||
}
|
||||
|
||||
// Exec calls execve(2), which replaces the calling executable in the process
|
||||
// tree. argv0 should be the full path to an executable ("/bin/ls") and the
|
||||
// executable name should also be the first argument in argv (["ls", "-l"]).
|
||||
// envv are the environment variables that should be passed to the new
|
||||
// process (["USER=go", "PWD=/tmp"]).
|
||||
func Exec(argv0 string, argv []string, envv []string) error {
|
||||
return syscall.Exec(argv0, argv, envv)
|
||||
}
|
||||
|
213
vendor/golang.org/x/sys/unix/syscall_unix_test.go
generated
vendored
213
vendor/golang.org/x/sys/unix/syscall_unix_test.go
generated
vendored
@ -15,6 +15,7 @@ import (
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"syscall"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@ -59,6 +60,62 @@ func _() {
|
||||
)
|
||||
}
|
||||
|
||||
func TestErrnoSignalName(t *testing.T) {
|
||||
testErrors := []struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
}{
|
||||
{syscall.EPERM, "EPERM"},
|
||||
{syscall.EINVAL, "EINVAL"},
|
||||
{syscall.ENOENT, "ENOENT"},
|
||||
}
|
||||
|
||||
for _, te := range testErrors {
|
||||
t.Run(fmt.Sprintf("%d/%s", te.num, te.name), func(t *testing.T) {
|
||||
e := unix.ErrnoName(te.num)
|
||||
if e != te.name {
|
||||
t.Errorf("ErrnoName(%d) returned %s, want %s", te.num, e, te.name)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
testSignals := []struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
}{
|
||||
{syscall.SIGHUP, "SIGHUP"},
|
||||
{syscall.SIGPIPE, "SIGPIPE"},
|
||||
{syscall.SIGSEGV, "SIGSEGV"},
|
||||
}
|
||||
|
||||
for _, ts := range testSignals {
|
||||
t.Run(fmt.Sprintf("%d/%s", ts.num, ts.name), func(t *testing.T) {
|
||||
s := unix.SignalName(ts.num)
|
||||
if s != ts.name {
|
||||
t.Errorf("SignalName(%d) returned %s, want %s", ts.num, s, ts.name)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestFcntlInt(t *testing.T) {
|
||||
t.Parallel()
|
||||
file, err := ioutil.TempFile("", "TestFnctlInt")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.Remove(file.Name())
|
||||
defer file.Close()
|
||||
f := file.Fd()
|
||||
flags, err := unix.FcntlInt(f, unix.F_GETFD, 0)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if flags&unix.FD_CLOEXEC == 0 {
|
||||
t.Errorf("flags %#x do not include FD_CLOEXEC", flags)
|
||||
}
|
||||
}
|
||||
|
||||
// TestFcntlFlock tests whether the file locking structure matches
|
||||
// the calling convention of each kernel.
|
||||
func TestFcntlFlock(t *testing.T) {
|
||||
@ -86,6 +143,10 @@ func TestFcntlFlock(t *testing.T) {
|
||||
// "-test.run=^TestPassFD$" and an environment variable used to signal
|
||||
// that the test should become the child process instead.
|
||||
func TestPassFD(t *testing.T) {
|
||||
if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
|
||||
t.Skip("cannot exec subprocess on iOS, skipping test")
|
||||
}
|
||||
|
||||
if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" {
|
||||
passFDChild()
|
||||
return
|
||||
@ -351,6 +412,11 @@ func TestDup(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPoll(t *testing.T) {
|
||||
if runtime.GOOS == "android" ||
|
||||
(runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64")) {
|
||||
t.Skip("mkfifo syscall is not available on android and iOS, skipping test")
|
||||
}
|
||||
|
||||
f, cleanup := mktmpfifo(t)
|
||||
defer cleanup()
|
||||
|
||||
@ -387,7 +453,10 @@ func TestGetwd(t *testing.T) {
|
||||
// These are chosen carefully not to be symlinks on a Mac
|
||||
// (unlike, say, /var, /etc)
|
||||
dirs := []string{"/", "/usr/bin"}
|
||||
if runtime.GOOS == "darwin" {
|
||||
switch runtime.GOOS {
|
||||
case "android":
|
||||
dirs = []string{"/", "/system/bin"}
|
||||
case "darwin":
|
||||
switch runtime.GOARCH {
|
||||
case "arm", "arm64":
|
||||
d1, err := ioutil.TempDir("", "d1")
|
||||
@ -426,6 +495,114 @@ func TestGetwd(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestFstatat(t *testing.T) {
|
||||
defer chtmpdir(t)()
|
||||
|
||||
touch(t, "file1")
|
||||
|
||||
var st1 unix.Stat_t
|
||||
err := unix.Stat("file1", &st1)
|
||||
if err != nil {
|
||||
t.Fatalf("Stat: %v", err)
|
||||
}
|
||||
|
||||
var st2 unix.Stat_t
|
||||
err = unix.Fstatat(unix.AT_FDCWD, "file1", &st2, 0)
|
||||
if err != nil {
|
||||
t.Fatalf("Fstatat: %v", err)
|
||||
}
|
||||
|
||||
if st1 != st2 {
|
||||
t.Errorf("Fstatat: returned stat does not match Stat")
|
||||
}
|
||||
|
||||
err = os.Symlink("file1", "symlink1")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
err = unix.Lstat("symlink1", &st1)
|
||||
if err != nil {
|
||||
t.Fatalf("Lstat: %v", err)
|
||||
}
|
||||
|
||||
err = unix.Fstatat(unix.AT_FDCWD, "symlink1", &st2, unix.AT_SYMLINK_NOFOLLOW)
|
||||
if err != nil {
|
||||
t.Fatalf("Fstatat: %v", err)
|
||||
}
|
||||
|
||||
if st1 != st2 {
|
||||
t.Errorf("Fstatat: returned stat does not match Lstat")
|
||||
}
|
||||
}
|
||||
|
||||
func TestFchmodat(t *testing.T) {
|
||||
defer chtmpdir(t)()
|
||||
|
||||
touch(t, "file1")
|
||||
err := os.Symlink("file1", "symlink1")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
mode := os.FileMode(0444)
|
||||
err = unix.Fchmodat(unix.AT_FDCWD, "symlink1", uint32(mode), 0)
|
||||
if err != nil {
|
||||
t.Fatalf("Fchmodat: unexpected error: %v", err)
|
||||
}
|
||||
|
||||
fi, err := os.Stat("file1")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if fi.Mode() != mode {
|
||||
t.Errorf("Fchmodat: failed to change file mode: expected %v, got %v", mode, fi.Mode())
|
||||
}
|
||||
|
||||
mode = os.FileMode(0644)
|
||||
didChmodSymlink := true
|
||||
err = unix.Fchmodat(unix.AT_FDCWD, "symlink1", uint32(mode), unix.AT_SYMLINK_NOFOLLOW)
|
||||
if err != nil {
|
||||
if (runtime.GOOS == "android" || runtime.GOOS == "linux" || runtime.GOOS == "solaris") && err == unix.EOPNOTSUPP {
|
||||
// Linux and Illumos don't support flags != 0
|
||||
didChmodSymlink = false
|
||||
} else {
|
||||
t.Fatalf("Fchmodat: unexpected error: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
if !didChmodSymlink {
|
||||
// Didn't change mode of the symlink. On Linux, the permissions
|
||||
// of a symbolic link are always 0777 according to symlink(7)
|
||||
mode = os.FileMode(0777)
|
||||
}
|
||||
|
||||
var st unix.Stat_t
|
||||
err = unix.Lstat("symlink1", &st)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
got := os.FileMode(st.Mode & 0777)
|
||||
if got != mode {
|
||||
t.Errorf("Fchmodat: failed to change symlink mode: expected %v, got %v", mode, got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestMkdev(t *testing.T) {
|
||||
major := uint32(42)
|
||||
minor := uint32(7)
|
||||
dev := unix.Mkdev(major, minor)
|
||||
|
||||
if unix.Major(dev) != major {
|
||||
t.Errorf("Major(%#x) == %d, want %d", dev, unix.Major(dev), major)
|
||||
}
|
||||
if unix.Minor(dev) != minor {
|
||||
t.Errorf("Minor(%#x) == %d, want %d", dev, unix.Minor(dev), minor)
|
||||
}
|
||||
}
|
||||
|
||||
// mktmpfifo creates a temporary FIFO and provides a cleanup function.
|
||||
func mktmpfifo(t *testing.T) (*os.File, func()) {
|
||||
err := unix.Mkfifo("fifo", 0666)
|
||||
@ -444,3 +621,37 @@ func mktmpfifo(t *testing.T) (*os.File, func()) {
|
||||
os.Remove("fifo")
|
||||
}
|
||||
}
|
||||
|
||||
// utilities taken from os/os_test.go
|
||||
|
||||
func touch(t *testing.T, name string) {
|
||||
f, err := os.Create(name)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := f.Close(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
// chtmpdir changes the working directory to a new temporary directory and
|
||||
// provides a cleanup function. Used when PWD is read-only.
|
||||
func chtmpdir(t *testing.T) func() {
|
||||
oldwd, err := os.Getwd()
|
||||
if err != nil {
|
||||
t.Fatalf("chtmpdir: %v", err)
|
||||
}
|
||||
d, err := ioutil.TempDir("", "test")
|
||||
if err != nil {
|
||||
t.Fatalf("chtmpdir: %v", err)
|
||||
}
|
||||
if err := os.Chdir(d); err != nil {
|
||||
t.Fatalf("chtmpdir: %v", err)
|
||||
}
|
||||
return func() {
|
||||
if err := os.Chdir(oldwd); err != nil {
|
||||
t.Fatalf("chtmpdir: %v", err)
|
||||
}
|
||||
os.RemoveAll(d)
|
||||
}
|
||||
}
|
||||
|
11
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
11
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
@ -118,6 +118,17 @@ const (
|
||||
PathMax = C.PATH_MAX
|
||||
)
|
||||
|
||||
// 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
|
||||
|
119
vendor/golang.org/x/sys/unix/xattr_test.go
generated
vendored
Normal file
119
vendor/golang.org/x/sys/unix/xattr_test.go
generated
vendored
Normal file
@ -0,0 +1,119 @@
|
||||
// Copyright 2018 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 freebsd linux
|
||||
|
||||
package unix_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func TestXattr(t *testing.T) {
|
||||
defer chtmpdir(t)()
|
||||
|
||||
f := "xattr1"
|
||||
touch(t, f)
|
||||
|
||||
xattrName := "user.test"
|
||||
xattrDataSet := "gopher"
|
||||
err := unix.Setxattr(f, xattrName, []byte(xattrDataSet), 0)
|
||||
if err == unix.ENOTSUP || err == unix.EOPNOTSUPP {
|
||||
t.Skip("filesystem does not support extended attributes, skipping test")
|
||||
} else if err != nil {
|
||||
t.Fatalf("Setxattr: %v", err)
|
||||
}
|
||||
|
||||
// find size
|
||||
size, err := unix.Listxattr(f, nil)
|
||||
if err != nil {
|
||||
t.Fatalf("Listxattr: %v", err)
|
||||
}
|
||||
|
||||
if size <= 0 {
|
||||
t.Fatalf("Listxattr returned an empty list of attributes")
|
||||
}
|
||||
|
||||
buf := make([]byte, size)
|
||||
read, err := unix.Listxattr(f, buf)
|
||||
if err != nil {
|
||||
t.Fatalf("Listxattr: %v", err)
|
||||
}
|
||||
|
||||
xattrs := stringsFromByteSlice(buf[:read])
|
||||
|
||||
xattrWant := xattrName
|
||||
if runtime.GOOS == "freebsd" {
|
||||
// On FreeBSD, the namespace is stored separately from the xattr
|
||||
// name and Listxattr doesn't return the namespace prefix.
|
||||
xattrWant = strings.TrimPrefix(xattrWant, "user.")
|
||||
}
|
||||
found := false
|
||||
for _, name := range xattrs {
|
||||
if name == xattrWant {
|
||||
found = true
|
||||
}
|
||||
}
|
||||
|
||||
if !found {
|
||||
t.Errorf("Listxattr did not return previously set attribute '%s'", xattrName)
|
||||
}
|
||||
|
||||
// find size
|
||||
size, err = unix.Getxattr(f, xattrName, nil)
|
||||
if err != nil {
|
||||
t.Fatalf("Getxattr: %v", err)
|
||||
}
|
||||
|
||||
if size <= 0 {
|
||||
t.Fatalf("Getxattr returned an empty attribute")
|
||||
}
|
||||
|
||||
xattrDataGet := make([]byte, size)
|
||||
_, err = unix.Getxattr(f, xattrName, xattrDataGet)
|
||||
if err != nil {
|
||||
t.Fatalf("Getxattr: %v", err)
|
||||
}
|
||||
|
||||
got := string(xattrDataGet)
|
||||
if got != xattrDataSet {
|
||||
t.Errorf("Getxattr: expected attribute value %s, got %s", xattrDataSet, got)
|
||||
}
|
||||
|
||||
err = unix.Removexattr(f, xattrName)
|
||||
if err != nil {
|
||||
t.Fatalf("Removexattr: %v", err)
|
||||
}
|
||||
|
||||
n := "nonexistent"
|
||||
err = unix.Lsetxattr(n, xattrName, []byte(xattrDataSet), 0)
|
||||
if err != unix.ENOENT {
|
||||
t.Errorf("Lsetxattr: expected %v on non-existent file, got %v", unix.ENOENT, err)
|
||||
}
|
||||
|
||||
_, err = unix.Lgetxattr(n, xattrName, nil)
|
||||
if err != unix.ENOENT {
|
||||
t.Errorf("Lgetxattr: %v", err)
|
||||
}
|
||||
|
||||
s := "symlink1"
|
||||
err = os.Symlink(n, s)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
err = unix.Lsetxattr(s, xattrName, []byte(xattrDataSet), 0)
|
||||
if err != nil {
|
||||
// Linux and Android doen't support xattrs on symlinks according
|
||||
// to xattr(7), so just test that we get the proper error.
|
||||
if (runtime.GOOS != "linux" && runtime.GOOS != "android") || err != unix.EPERM {
|
||||
t.Fatalf("Lsetxattr: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
292
vendor/golang.org/x/sys/unix/zerrors_darwin_386.go
generated
vendored
292
vendor/golang.org/x/sys/unix/zerrors_darwin_386.go
generated
vendored
@ -1473,6 +1473,12 @@ const (
|
||||
WORDSIZE = 0x20
|
||||
WSTOPPED = 0x8
|
||||
WUNTRACED = 0x2
|
||||
XATTR_CREATE = 0x2
|
||||
XATTR_NODEFAULT = 0x10
|
||||
XATTR_NOFOLLOW = 0x1
|
||||
XATTR_NOSECURITY = 0x8
|
||||
XATTR_REPLACE = 0x4
|
||||
XATTR_SHOWCOMPRESSION = 0x20
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -1624,146 +1630,154 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "resource busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "device power is off",
|
||||
83: "device error",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "bad executable (or shared library)",
|
||||
86: "bad CPU type in executable",
|
||||
87: "shared library version mismatch",
|
||||
88: "malformed Mach-o file",
|
||||
89: "operation canceled",
|
||||
90: "identifier removed",
|
||||
91: "no message of desired type",
|
||||
92: "illegal byte sequence",
|
||||
93: "attribute not found",
|
||||
94: "bad message",
|
||||
95: "EMULTIHOP (Reserved)",
|
||||
96: "no message available on STREAM",
|
||||
97: "ENOLINK (Reserved)",
|
||||
98: "no STREAM resources",
|
||||
99: "not a STREAM",
|
||||
100: "protocol error",
|
||||
101: "STREAM ioctl timeout",
|
||||
102: "operation not supported on socket",
|
||||
103: "policy not found",
|
||||
104: "state not recoverable",
|
||||
105: "previous owner died",
|
||||
106: "interface output queue is full",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "ENOTSUP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EPWROFF", "device power is off"},
|
||||
{83, "EDEVERR", "device error"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||
{86, "EBADARCH", "bad CPU type in executable"},
|
||||
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||
{89, "ECANCELED", "operation canceled"},
|
||||
{90, "EIDRM", "identifier removed"},
|
||||
{91, "ENOMSG", "no message of desired type"},
|
||||
{92, "EILSEQ", "illegal byte sequence"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EBADMSG", "bad message"},
|
||||
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||
{96, "ENODATA", "no message available on STREAM"},
|
||||
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||
{98, "ENOSR", "no STREAM resources"},
|
||||
{99, "ENOSTR", "not a STREAM"},
|
||||
{100, "EPROTO", "protocol error"},
|
||||
{101, "ETIME", "STREAM ioctl timeout"},
|
||||
{102, "EOPNOTSUPP", "operation not supported on socket"},
|
||||
{103, "ENOPOLICY", "policy not found"},
|
||||
{104, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{105, "EOWNERDEAD", "previous owner died"},
|
||||
{106, "EQFULL", "interface output queue is full"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
}
|
||||
|
292
vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
generated
vendored
292
vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
generated
vendored
@ -1473,6 +1473,12 @@ const (
|
||||
WORDSIZE = 0x40
|
||||
WSTOPPED = 0x8
|
||||
WUNTRACED = 0x2
|
||||
XATTR_CREATE = 0x2
|
||||
XATTR_NODEFAULT = 0x10
|
||||
XATTR_NOFOLLOW = 0x1
|
||||
XATTR_NOSECURITY = 0x8
|
||||
XATTR_REPLACE = 0x4
|
||||
XATTR_SHOWCOMPRESSION = 0x20
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -1624,146 +1630,154 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "resource busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "device power is off",
|
||||
83: "device error",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "bad executable (or shared library)",
|
||||
86: "bad CPU type in executable",
|
||||
87: "shared library version mismatch",
|
||||
88: "malformed Mach-o file",
|
||||
89: "operation canceled",
|
||||
90: "identifier removed",
|
||||
91: "no message of desired type",
|
||||
92: "illegal byte sequence",
|
||||
93: "attribute not found",
|
||||
94: "bad message",
|
||||
95: "EMULTIHOP (Reserved)",
|
||||
96: "no message available on STREAM",
|
||||
97: "ENOLINK (Reserved)",
|
||||
98: "no STREAM resources",
|
||||
99: "not a STREAM",
|
||||
100: "protocol error",
|
||||
101: "STREAM ioctl timeout",
|
||||
102: "operation not supported on socket",
|
||||
103: "policy not found",
|
||||
104: "state not recoverable",
|
||||
105: "previous owner died",
|
||||
106: "interface output queue is full",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "ENOTSUP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EPWROFF", "device power is off"},
|
||||
{83, "EDEVERR", "device error"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||
{86, "EBADARCH", "bad CPU type in executable"},
|
||||
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||
{89, "ECANCELED", "operation canceled"},
|
||||
{90, "EIDRM", "identifier removed"},
|
||||
{91, "ENOMSG", "no message of desired type"},
|
||||
{92, "EILSEQ", "illegal byte sequence"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EBADMSG", "bad message"},
|
||||
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||
{96, "ENODATA", "no message available on STREAM"},
|
||||
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||
{98, "ENOSR", "no STREAM resources"},
|
||||
{99, "ENOSTR", "not a STREAM"},
|
||||
{100, "EPROTO", "protocol error"},
|
||||
{101, "ETIME", "STREAM ioctl timeout"},
|
||||
{102, "EOPNOTSUPP", "operation not supported on socket"},
|
||||
{103, "ENOPOLICY", "policy not found"},
|
||||
{104, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{105, "EOWNERDEAD", "previous owner died"},
|
||||
{106, "EQFULL", "interface output queue is full"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
}
|
||||
|
292
vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go
generated
vendored
292
vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go
generated
vendored
@ -1473,6 +1473,12 @@ const (
|
||||
WORDSIZE = 0x40
|
||||
WSTOPPED = 0x8
|
||||
WUNTRACED = 0x2
|
||||
XATTR_CREATE = 0x2
|
||||
XATTR_NODEFAULT = 0x10
|
||||
XATTR_NOFOLLOW = 0x1
|
||||
XATTR_NOSECURITY = 0x8
|
||||
XATTR_REPLACE = 0x4
|
||||
XATTR_SHOWCOMPRESSION = 0x20
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -1624,146 +1630,154 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "resource busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "device power is off",
|
||||
83: "device error",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "bad executable (or shared library)",
|
||||
86: "bad CPU type in executable",
|
||||
87: "shared library version mismatch",
|
||||
88: "malformed Mach-o file",
|
||||
89: "operation canceled",
|
||||
90: "identifier removed",
|
||||
91: "no message of desired type",
|
||||
92: "illegal byte sequence",
|
||||
93: "attribute not found",
|
||||
94: "bad message",
|
||||
95: "EMULTIHOP (Reserved)",
|
||||
96: "no message available on STREAM",
|
||||
97: "ENOLINK (Reserved)",
|
||||
98: "no STREAM resources",
|
||||
99: "not a STREAM",
|
||||
100: "protocol error",
|
||||
101: "STREAM ioctl timeout",
|
||||
102: "operation not supported on socket",
|
||||
103: "policy not found",
|
||||
104: "state not recoverable",
|
||||
105: "previous owner died",
|
||||
106: "interface output queue is full",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "ENOTSUP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EPWROFF", "device power is off"},
|
||||
{83, "EDEVERR", "device error"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||
{86, "EBADARCH", "bad CPU type in executable"},
|
||||
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||
{89, "ECANCELED", "operation canceled"},
|
||||
{90, "EIDRM", "identifier removed"},
|
||||
{91, "ENOMSG", "no message of desired type"},
|
||||
{92, "EILSEQ", "illegal byte sequence"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EBADMSG", "bad message"},
|
||||
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||
{96, "ENODATA", "no message available on STREAM"},
|
||||
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||
{98, "ENOSR", "no STREAM resources"},
|
||||
{99, "ENOSTR", "not a STREAM"},
|
||||
{100, "EPROTO", "protocol error"},
|
||||
{101, "ETIME", "STREAM ioctl timeout"},
|
||||
{102, "EOPNOTSUPP", "operation not supported on socket"},
|
||||
{103, "ENOPOLICY", "policy not found"},
|
||||
{104, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{105, "EOWNERDEAD", "previous owner died"},
|
||||
{106, "EQFULL", "interface output queue is full"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
}
|
||||
|
292
vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
generated
vendored
292
vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
generated
vendored
@ -1473,6 +1473,12 @@ const (
|
||||
WORDSIZE = 0x40
|
||||
WSTOPPED = 0x8
|
||||
WUNTRACED = 0x2
|
||||
XATTR_CREATE = 0x2
|
||||
XATTR_NODEFAULT = 0x10
|
||||
XATTR_NOFOLLOW = 0x1
|
||||
XATTR_NOSECURITY = 0x8
|
||||
XATTR_REPLACE = 0x4
|
||||
XATTR_SHOWCOMPRESSION = 0x20
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -1624,146 +1630,154 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "resource busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "device power is off",
|
||||
83: "device error",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "bad executable (or shared library)",
|
||||
86: "bad CPU type in executable",
|
||||
87: "shared library version mismatch",
|
||||
88: "malformed Mach-o file",
|
||||
89: "operation canceled",
|
||||
90: "identifier removed",
|
||||
91: "no message of desired type",
|
||||
92: "illegal byte sequence",
|
||||
93: "attribute not found",
|
||||
94: "bad message",
|
||||
95: "EMULTIHOP (Reserved)",
|
||||
96: "no message available on STREAM",
|
||||
97: "ENOLINK (Reserved)",
|
||||
98: "no STREAM resources",
|
||||
99: "not a STREAM",
|
||||
100: "protocol error",
|
||||
101: "STREAM ioctl timeout",
|
||||
102: "operation not supported on socket",
|
||||
103: "policy not found",
|
||||
104: "state not recoverable",
|
||||
105: "previous owner died",
|
||||
106: "interface output queue is full",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "ENOTSUP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EPWROFF", "device power is off"},
|
||||
{83, "EDEVERR", "device error"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||
{86, "EBADARCH", "bad CPU type in executable"},
|
||||
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||
{89, "ECANCELED", "operation canceled"},
|
||||
{90, "EIDRM", "identifier removed"},
|
||||
{91, "ENOMSG", "no message of desired type"},
|
||||
{92, "EILSEQ", "illegal byte sequence"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EBADMSG", "bad message"},
|
||||
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||
{96, "ENODATA", "no message available on STREAM"},
|
||||
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||
{98, "ENOSR", "no STREAM resources"},
|
||||
{99, "ENOSTR", "not a STREAM"},
|
||||
{100, "EPROTO", "protocol error"},
|
||||
{101, "ETIME", "STREAM ioctl timeout"},
|
||||
{102, "EOPNOTSUPP", "operation not supported on socket"},
|
||||
{103, "ENOPOLICY", "policy not found"},
|
||||
{104, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{105, "EOWNERDEAD", "previous owner died"},
|
||||
{106, "EQFULL", "interface output queue is full"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
}
|
||||
|
281
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
281
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
@ -980,7 +980,10 @@ const (
|
||||
RLIMIT_CPU = 0x0
|
||||
RLIMIT_DATA = 0x2
|
||||
RLIMIT_FSIZE = 0x1
|
||||
RLIMIT_MEMLOCK = 0x6
|
||||
RLIMIT_NOFILE = 0x8
|
||||
RLIMIT_NPROC = 0x7
|
||||
RLIMIT_RSS = 0x5
|
||||
RLIMIT_STACK = 0x3
|
||||
RLIM_INFINITY = 0x7fffffffffffffff
|
||||
RTAX_AUTHOR = 0x6
|
||||
@ -1434,142 +1437,150 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "operation canceled",
|
||||
86: "illegal byte sequence",
|
||||
87: "attribute not found",
|
||||
88: "programming error",
|
||||
89: "bad message",
|
||||
90: "multihop attempted",
|
||||
91: "link has been severed",
|
||||
92: "protocol error",
|
||||
93: "no medium found",
|
||||
94: "unknown error: 94",
|
||||
95: "unknown error: 95",
|
||||
96: "unknown error: 96",
|
||||
97: "unknown error: 97",
|
||||
98: "unknown error: 98",
|
||||
99: "unknown error: 99",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EWOULDBLOCK", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "ECANCELED", "operation canceled"},
|
||||
{86, "EILSEQ", "illegal byte sequence"},
|
||||
{87, "ENOATTR", "attribute not found"},
|
||||
{88, "EDOOFUS", "programming error"},
|
||||
{89, "EBADMSG", "bad message"},
|
||||
{90, "EMULTIHOP", "multihop attempted"},
|
||||
{91, "ENOLINK", "link has been severed"},
|
||||
{92, "EPROTO", "protocol error"},
|
||||
{93, "ENOMEDIUM", "no medium found"},
|
||||
{94, "EUNUSED94", "unknown error: 94"},
|
||||
{95, "EUNUSED95", "unknown error: 95"},
|
||||
{96, "EUNUSED96", "unknown error: 96"},
|
||||
{97, "EUNUSED97", "unknown error: 97"},
|
||||
{98, "EUNUSED98", "unknown error: 98"},
|
||||
{99, "ELAST", "unknown error: 99"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "thread Scheduler",
|
||||
33: "checkPoint",
|
||||
34: "checkPointExit",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "thread Scheduler"},
|
||||
{33, "SIGCKPT", "checkPoint"},
|
||||
{34, "SIGCKPTEXIT", "checkPointExit"},
|
||||
}
|
||||
|
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
generated
vendored
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
generated
vendored
@ -1619,138 +1619,146 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "operation canceled",
|
||||
86: "illegal byte sequence",
|
||||
87: "attribute not found",
|
||||
88: "programming error",
|
||||
89: "bad message",
|
||||
90: "multihop attempted",
|
||||
91: "link has been severed",
|
||||
92: "protocol error",
|
||||
93: "capabilities insufficient",
|
||||
94: "not permitted in capability mode",
|
||||
95: "state not recoverable",
|
||||
96: "previous owner died",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "ECANCELED", "operation canceled"},
|
||||
{86, "EILSEQ", "illegal byte sequence"},
|
||||
{87, "ENOATTR", "attribute not found"},
|
||||
{88, "EDOOFUS", "programming error"},
|
||||
{89, "EBADMSG", "bad message"},
|
||||
{90, "EMULTIHOP", "multihop attempted"},
|
||||
{91, "ENOLINK", "link has been severed"},
|
||||
{92, "EPROTO", "protocol error"},
|
||||
{93, "ENOTCAPABLE", "capabilities insufficient"},
|
||||
{94, "ECAPMODE", "not permitted in capability mode"},
|
||||
{95, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{96, "EOWNERDEAD", "previous owner died"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "unknown signal",
|
||||
33: "unknown signal",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "unknown signal"},
|
||||
{33, "SIGLIBRT", "unknown signal"},
|
||||
}
|
||||
|
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
@ -1620,138 +1620,146 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "operation canceled",
|
||||
86: "illegal byte sequence",
|
||||
87: "attribute not found",
|
||||
88: "programming error",
|
||||
89: "bad message",
|
||||
90: "multihop attempted",
|
||||
91: "link has been severed",
|
||||
92: "protocol error",
|
||||
93: "capabilities insufficient",
|
||||
94: "not permitted in capability mode",
|
||||
95: "state not recoverable",
|
||||
96: "previous owner died",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "ECANCELED", "operation canceled"},
|
||||
{86, "EILSEQ", "illegal byte sequence"},
|
||||
{87, "ENOATTR", "attribute not found"},
|
||||
{88, "EDOOFUS", "programming error"},
|
||||
{89, "EBADMSG", "bad message"},
|
||||
{90, "EMULTIHOP", "multihop attempted"},
|
||||
{91, "ENOLINK", "link has been severed"},
|
||||
{92, "EPROTO", "protocol error"},
|
||||
{93, "ENOTCAPABLE", "capabilities insufficient"},
|
||||
{94, "ECAPMODE", "not permitted in capability mode"},
|
||||
{95, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{96, "EOWNERDEAD", "previous owner died"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "unknown signal",
|
||||
33: "unknown signal",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "unknown signal"},
|
||||
{33, "SIGLIBRT", "unknown signal"},
|
||||
}
|
||||
|
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
generated
vendored
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
generated
vendored
@ -1628,138 +1628,146 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "operation canceled",
|
||||
86: "illegal byte sequence",
|
||||
87: "attribute not found",
|
||||
88: "programming error",
|
||||
89: "bad message",
|
||||
90: "multihop attempted",
|
||||
91: "link has been severed",
|
||||
92: "protocol error",
|
||||
93: "capabilities insufficient",
|
||||
94: "not permitted in capability mode",
|
||||
95: "state not recoverable",
|
||||
96: "previous owner died",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "ECANCELED", "operation canceled"},
|
||||
{86, "EILSEQ", "illegal byte sequence"},
|
||||
{87, "ENOATTR", "attribute not found"},
|
||||
{88, "EDOOFUS", "programming error"},
|
||||
{89, "EBADMSG", "bad message"},
|
||||
{90, "EMULTIHOP", "multihop attempted"},
|
||||
{91, "ENOLINK", "link has been severed"},
|
||||
{92, "EPROTO", "protocol error"},
|
||||
{93, "ENOTCAPABLE", "capabilities insufficient"},
|
||||
{94, "ECAPMODE", "not permitted in capability mode"},
|
||||
{95, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{96, "EOWNERDEAD", "previous owner died"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "unknown signal",
|
||||
33: "unknown signal",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "unknown signal"},
|
||||
{33, "SIGLIBRT", "unknown signal"},
|
||||
}
|
||||
|
634
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
634
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build 386,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x80041270
|
||||
BLKBSZSET = 0x40041271
|
||||
BLKFLSBUF = 0x1261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -461,6 +491,7 @@ const (
|
||||
FF1 = 0x8000
|
||||
FFDLY = 0x8000
|
||||
FLUSHO = 0x1000
|
||||
FP_XSTATE_MAGIC2 = 0x46505845
|
||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||
@ -481,6 +512,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +574,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
@ -792,12 +867,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -894,9 +971,15 @@ const (
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -956,7 +1039,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -991,6 +1076,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
@ -1023,6 +1139,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1030,7 +1148,9 @@ const (
|
||||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
@ -1115,16 +1235,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||
PERF_EVENT_IOC_ID = 0x80042407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||
PERF_EVENT_IOC_RESET = 0x2403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1167,6 +1291,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1212,11 +1337,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1230,6 +1362,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1273,6 +1406,7 @@ const (
|
||||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETFPXREGS = 0x13
|
||||
@ -1288,6 +1422,11 @@ const (
|
||||
PTRACE_SYSEMU = 0x1f
|
||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1337,6 +1476,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x7002
|
||||
RTC_AIE_ON = 0x7001
|
||||
RTC_ALM_READ = 0x80247008
|
||||
RTC_ALM_SET = 0x40247007
|
||||
RTC_EPOCH_READ = 0x8004700d
|
||||
RTC_EPOCH_SET = 0x4004700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x8004700b
|
||||
RTC_IRQP_SET = 0x4004700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x7006
|
||||
RTC_PIE_ON = 0x7005
|
||||
RTC_PLL_GET = 0x801c7011
|
||||
RTC_PLL_SET = 0x401c7012
|
||||
RTC_RD_TIME = 0x80247009
|
||||
RTC_SET_TIME = 0x4024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x7004
|
||||
RTC_UIE_ON = 0x7003
|
||||
RTC_VL_CLR = 0x7014
|
||||
RTC_VL_READ = 0x80047013
|
||||
RTC_WIE_OFF = 0x7010
|
||||
RTC_WIE_ON = 0x700f
|
||||
RTC_WKALM_RD = 0x80287010
|
||||
RTC_WKALM_SET = 0x4028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1473,6 +1639,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1557,6 +1725,23 @@ const (
|
||||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
@ -1667,6 +1852,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1688,6 +1875,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1869,7 +2057,27 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x400854d5
|
||||
TUNDETACHFILTER = 0x400854d6
|
||||
@ -1881,6 +2089,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x800454d7
|
||||
TUNGETVNETLE = 0x800454dd
|
||||
TUNSETDEBUG = 0x400454c9
|
||||
TUNSETFILTEREBPF = 0x800454e1
|
||||
TUNSETGROUP = 0x400454ce
|
||||
TUNSETIFF = 0x400454ca
|
||||
TUNSETIFINDEX = 0x400454da
|
||||
@ -1891,13 +2100,17 @@ const (
|
||||
TUNSETPERSIST = 0x400454cb
|
||||
TUNSETQUEUE = 0x400454d9
|
||||
TUNSETSNDBUF = 0x400454d4
|
||||
TUNSETSTEERINGEBPF = 0x800454e0
|
||||
TUNSETTXFILTER = 0x400454d1
|
||||
TUNSETVNETBE = 0x400454de
|
||||
TUNSETVNETHDRSZ = 0x400454d8
|
||||
TUNSETVNETLE = 0x400454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x4
|
||||
VEOL = 0xb
|
||||
@ -1939,16 +2152,99 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
WORDSIZE = 0x20
|
||||
WSTOPPED = 0x2
|
||||
WUNTRACED = 0x2
|
||||
X86_FXSR_MAGIC = 0x0
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2128,171 +2424,179 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "EDEADLK", "resource deadlock avoided"},
|
||||
{36, "ENAMETOOLONG", "file name too long"},
|
||||
{37, "ENOLCK", "no locks available"},
|
||||
{38, "ENOSYS", "function not implemented"},
|
||||
{39, "ENOTEMPTY", "directory not empty"},
|
||||
{40, "ELOOP", "too many levels of symbolic links"},
|
||||
{42, "ENOMSG", "no message of desired type"},
|
||||
{43, "EIDRM", "identifier removed"},
|
||||
{44, "ECHRNG", "channel number out of range"},
|
||||
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{46, "EL3HLT", "level 3 halted"},
|
||||
{47, "EL3RST", "level 3 reset"},
|
||||
{48, "ELNRNG", "link number out of range"},
|
||||
{49, "EUNATCH", "protocol driver not attached"},
|
||||
{50, "ENOCSI", "no CSI structure available"},
|
||||
{51, "EL2HLT", "level 2 halted"},
|
||||
{52, "EBADE", "invalid exchange"},
|
||||
{53, "EBADR", "invalid request descriptor"},
|
||||
{54, "EXFULL", "exchange full"},
|
||||
{55, "ENOANO", "no anode"},
|
||||
{56, "EBADRQC", "invalid request code"},
|
||||
{57, "EBADSLT", "invalid slot"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{72, "EMULTIHOP", "multihop attempted"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EBADMSG", "bad message"},
|
||||
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||
{76, "ENOTUNIQ", "name not unique on network"},
|
||||
{77, "EBADFD", "file descriptor in bad state"},
|
||||
{78, "EREMCHG", "remote address changed"},
|
||||
{79, "ELIBACC", "can not access a needed shared library"},
|
||||
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||
{86, "ESTRPIPE", "streams pipe error"},
|
||||
{87, "EUSERS", "too many users"},
|
||||
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{89, "EDESTADDRREQ", "destination address required"},
|
||||
{90, "EMSGSIZE", "message too long"},
|
||||
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{92, "ENOPROTOOPT", "protocol not available"},
|
||||
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{95, "ENOTSUP", "operation not supported"},
|
||||
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{98, "EADDRINUSE", "address already in use"},
|
||||
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{100, "ENETDOWN", "network is down"},
|
||||
{101, "ENETUNREACH", "network is unreachable"},
|
||||
{102, "ENETRESET", "network dropped connection on reset"},
|
||||
{103, "ECONNABORTED", "software caused connection abort"},
|
||||
{104, "ECONNRESET", "connection reset by peer"},
|
||||
{105, "ENOBUFS", "no buffer space available"},
|
||||
{106, "EISCONN", "transport endpoint is already connected"},
|
||||
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{110, "ETIMEDOUT", "connection timed out"},
|
||||
{111, "ECONNREFUSED", "connection refused"},
|
||||
{112, "EHOSTDOWN", "host is down"},
|
||||
{113, "EHOSTUNREACH", "no route to host"},
|
||||
{114, "EALREADY", "operation already in progress"},
|
||||
{115, "EINPROGRESS", "operation now in progress"},
|
||||
{116, "ESTALE", "stale file handle"},
|
||||
{117, "EUCLEAN", "structure needs cleaning"},
|
||||
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{120, "EISNAM", "is a named type file"},
|
||||
{121, "EREMOTEIO", "remote I/O error"},
|
||||
{122, "EDQUOT", "disk quota exceeded"},
|
||||
{123, "ENOMEDIUM", "no medium found"},
|
||||
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{125, "ECANCELED", "operation canceled"},
|
||||
{126, "ENOKEY", "required key not available"},
|
||||
{127, "EKEYEXPIRED", "key has expired"},
|
||||
{128, "EKEYREVOKED", "key has been revoked"},
|
||||
{129, "EKEYREJECTED", "key was rejected by service"},
|
||||
{130, "EOWNERDEAD", "owner died"},
|
||||
{131, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{132, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{133, "EHWPOISON", "memory page has hardware error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGBUS", "bus error"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGUSR1", "user defined signal 1"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGUSR2", "user defined signal 2"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGSTKFLT", "stack fault"},
|
||||
{17, "SIGCHLD", "child exited"},
|
||||
{18, "SIGCONT", "continued"},
|
||||
{19, "SIGSTOP", "stopped (signal)"},
|
||||
{20, "SIGTSTP", "stopped"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGURG", "urgent I/O condition"},
|
||||
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window changed"},
|
||||
{29, "SIGIO", "I/O possible"},
|
||||
{30, "SIGPWR", "power failure"},
|
||||
{31, "SIGSYS", "bad system call"},
|
||||
}
|
||||
|
633
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
633
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build amd64,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x80081270
|
||||
BLKBSZSET = 0x40081271
|
||||
BLKFLSBUF = 0x1261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -461,6 +491,7 @@ const (
|
||||
FF1 = 0x8000
|
||||
FFDLY = 0x8000
|
||||
FLUSHO = 0x1000
|
||||
FP_XSTATE_MAGIC2 = 0x46505845
|
||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||
@ -481,6 +512,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +574,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
@ -792,12 +867,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -894,9 +971,15 @@ const (
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -956,7 +1039,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -991,6 +1076,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
@ -1023,6 +1139,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1030,7 +1148,9 @@ const (
|
||||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
@ -1115,16 +1235,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||
PERF_EVENT_IOC_ID = 0x80082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
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
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1167,6 +1291,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1212,11 +1337,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1230,6 +1362,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ARCH_PRCTL = 0x1e
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
@ -1274,6 +1407,7 @@ const (
|
||||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETFPXREGS = 0x13
|
||||
@ -1289,6 +1423,11 @@ const (
|
||||
PTRACE_SYSEMU = 0x1f
|
||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1338,6 +1477,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x7002
|
||||
RTC_AIE_ON = 0x7001
|
||||
RTC_ALM_READ = 0x80247008
|
||||
RTC_ALM_SET = 0x40247007
|
||||
RTC_EPOCH_READ = 0x8008700d
|
||||
RTC_EPOCH_SET = 0x4008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x8008700b
|
||||
RTC_IRQP_SET = 0x4008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x7006
|
||||
RTC_PIE_ON = 0x7005
|
||||
RTC_PLL_GET = 0x80207011
|
||||
RTC_PLL_SET = 0x40207012
|
||||
RTC_RD_TIME = 0x80247009
|
||||
RTC_SET_TIME = 0x4024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x7004
|
||||
RTC_UIE_ON = 0x7003
|
||||
RTC_VL_CLR = 0x7014
|
||||
RTC_VL_READ = 0x80047013
|
||||
RTC_WIE_OFF = 0x7010
|
||||
RTC_WIE_ON = 0x700f
|
||||
RTC_WKALM_RD = 0x80287010
|
||||
RTC_WKALM_SET = 0x4028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1474,6 +1640,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1558,6 +1726,23 @@ const (
|
||||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
@ -1668,6 +1853,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1689,6 +1876,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1870,7 +2058,27 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x401054d5
|
||||
TUNDETACHFILTER = 0x401054d6
|
||||
@ -1882,6 +2090,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x800454d7
|
||||
TUNGETVNETLE = 0x800454dd
|
||||
TUNSETDEBUG = 0x400454c9
|
||||
TUNSETFILTEREBPF = 0x800454e1
|
||||
TUNSETGROUP = 0x400454ce
|
||||
TUNSETIFF = 0x400454ca
|
||||
TUNSETIFINDEX = 0x400454da
|
||||
@ -1892,13 +2101,17 @@ const (
|
||||
TUNSETPERSIST = 0x400454cb
|
||||
TUNSETQUEUE = 0x400454d9
|
||||
TUNSETSNDBUF = 0x400454d4
|
||||
TUNSETSTEERINGEBPF = 0x800454e0
|
||||
TUNSETTXFILTER = 0x400454d1
|
||||
TUNSETVNETBE = 0x400454de
|
||||
TUNSETVNETHDRSZ = 0x400454d8
|
||||
TUNSETVNETLE = 0x400454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x4
|
||||
VEOL = 0xb
|
||||
@ -1940,6 +2153,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -1949,7 +2242,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2129,171 +2424,179 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "EDEADLK", "resource deadlock avoided"},
|
||||
{36, "ENAMETOOLONG", "file name too long"},
|
||||
{37, "ENOLCK", "no locks available"},
|
||||
{38, "ENOSYS", "function not implemented"},
|
||||
{39, "ENOTEMPTY", "directory not empty"},
|
||||
{40, "ELOOP", "too many levels of symbolic links"},
|
||||
{42, "ENOMSG", "no message of desired type"},
|
||||
{43, "EIDRM", "identifier removed"},
|
||||
{44, "ECHRNG", "channel number out of range"},
|
||||
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{46, "EL3HLT", "level 3 halted"},
|
||||
{47, "EL3RST", "level 3 reset"},
|
||||
{48, "ELNRNG", "link number out of range"},
|
||||
{49, "EUNATCH", "protocol driver not attached"},
|
||||
{50, "ENOCSI", "no CSI structure available"},
|
||||
{51, "EL2HLT", "level 2 halted"},
|
||||
{52, "EBADE", "invalid exchange"},
|
||||
{53, "EBADR", "invalid request descriptor"},
|
||||
{54, "EXFULL", "exchange full"},
|
||||
{55, "ENOANO", "no anode"},
|
||||
{56, "EBADRQC", "invalid request code"},
|
||||
{57, "EBADSLT", "invalid slot"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{72, "EMULTIHOP", "multihop attempted"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EBADMSG", "bad message"},
|
||||
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||
{76, "ENOTUNIQ", "name not unique on network"},
|
||||
{77, "EBADFD", "file descriptor in bad state"},
|
||||
{78, "EREMCHG", "remote address changed"},
|
||||
{79, "ELIBACC", "can not access a needed shared library"},
|
||||
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||
{86, "ESTRPIPE", "streams pipe error"},
|
||||
{87, "EUSERS", "too many users"},
|
||||
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{89, "EDESTADDRREQ", "destination address required"},
|
||||
{90, "EMSGSIZE", "message too long"},
|
||||
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{92, "ENOPROTOOPT", "protocol not available"},
|
||||
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{95, "ENOTSUP", "operation not supported"},
|
||||
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{98, "EADDRINUSE", "address already in use"},
|
||||
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{100, "ENETDOWN", "network is down"},
|
||||
{101, "ENETUNREACH", "network is unreachable"},
|
||||
{102, "ENETRESET", "network dropped connection on reset"},
|
||||
{103, "ECONNABORTED", "software caused connection abort"},
|
||||
{104, "ECONNRESET", "connection reset by peer"},
|
||||
{105, "ENOBUFS", "no buffer space available"},
|
||||
{106, "EISCONN", "transport endpoint is already connected"},
|
||||
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{110, "ETIMEDOUT", "connection timed out"},
|
||||
{111, "ECONNREFUSED", "connection refused"},
|
||||
{112, "EHOSTDOWN", "host is down"},
|
||||
{113, "EHOSTUNREACH", "no route to host"},
|
||||
{114, "EALREADY", "operation already in progress"},
|
||||
{115, "EINPROGRESS", "operation now in progress"},
|
||||
{116, "ESTALE", "stale file handle"},
|
||||
{117, "EUCLEAN", "structure needs cleaning"},
|
||||
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{120, "EISNAM", "is a named type file"},
|
||||
{121, "EREMOTEIO", "remote I/O error"},
|
||||
{122, "EDQUOT", "disk quota exceeded"},
|
||||
{123, "ENOMEDIUM", "no medium found"},
|
||||
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{125, "ECANCELED", "operation canceled"},
|
||||
{126, "ENOKEY", "required key not available"},
|
||||
{127, "EKEYEXPIRED", "key has expired"},
|
||||
{128, "EKEYREVOKED", "key has been revoked"},
|
||||
{129, "EKEYREJECTED", "key was rejected by service"},
|
||||
{130, "EOWNERDEAD", "owner died"},
|
||||
{131, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{132, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{133, "EHWPOISON", "memory page has hardware error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGBUS", "bus error"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGUSR1", "user defined signal 1"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGUSR2", "user defined signal 2"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGSTKFLT", "stack fault"},
|
||||
{17, "SIGCHLD", "child exited"},
|
||||
{18, "SIGCONT", "continued"},
|
||||
{19, "SIGSTOP", "stopped (signal)"},
|
||||
{20, "SIGTSTP", "stopped"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGURG", "urgent I/O condition"},
|
||||
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window changed"},
|
||||
{29, "SIGIO", "I/O possible"},
|
||||
{30, "SIGPWR", "power failure"},
|
||||
{31, "SIGSYS", "bad system call"},
|
||||
}
|
||||
|
632
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
632
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build arm,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x80041270
|
||||
BLKBSZSET = 0x40041271
|
||||
BLKFLSBUF = 0x1261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -481,6 +511,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +573,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
@ -792,12 +866,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -893,9 +969,15 @@ const (
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -955,7 +1037,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -990,6 +1074,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
@ -1022,6 +1137,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1029,7 +1146,9 @@ const (
|
||||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
@ -1114,16 +1233,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||
PERF_EVENT_IOC_ID = 0x80042407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||
PERF_EVENT_IOC_RESET = 0x2403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1166,6 +1289,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1211,11 +1335,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1229,6 +1360,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1278,6 +1410,7 @@ const (
|
||||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETCRUNCHREGS = 0x1a
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
@ -1296,6 +1429,11 @@ const (
|
||||
PT_DATA_ADDR = 0x10004
|
||||
PT_TEXT_ADDR = 0x10000
|
||||
PT_TEXT_END_ADDR = 0x10008
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1345,6 +1483,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x7002
|
||||
RTC_AIE_ON = 0x7001
|
||||
RTC_ALM_READ = 0x80247008
|
||||
RTC_ALM_SET = 0x40247007
|
||||
RTC_EPOCH_READ = 0x8004700d
|
||||
RTC_EPOCH_SET = 0x4004700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x8004700b
|
||||
RTC_IRQP_SET = 0x4004700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x7006
|
||||
RTC_PIE_ON = 0x7005
|
||||
RTC_PLL_GET = 0x801c7011
|
||||
RTC_PLL_SET = 0x401c7012
|
||||
RTC_RD_TIME = 0x80247009
|
||||
RTC_SET_TIME = 0x4024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x7004
|
||||
RTC_UIE_ON = 0x7003
|
||||
RTC_VL_CLR = 0x7014
|
||||
RTC_VL_READ = 0x80047013
|
||||
RTC_WIE_OFF = 0x7010
|
||||
RTC_WIE_ON = 0x700f
|
||||
RTC_WKALM_RD = 0x80287010
|
||||
RTC_WKALM_SET = 0x4028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1481,6 +1646,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1565,6 +1732,23 @@ const (
|
||||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
@ -1675,6 +1859,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1696,6 +1882,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1877,7 +2064,27 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x400854d5
|
||||
TUNDETACHFILTER = 0x400854d6
|
||||
@ -1889,6 +2096,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x800454d7
|
||||
TUNGETVNETLE = 0x800454dd
|
||||
TUNSETDEBUG = 0x400454c9
|
||||
TUNSETFILTEREBPF = 0x800454e1
|
||||
TUNSETGROUP = 0x400454ce
|
||||
TUNSETIFF = 0x400454ca
|
||||
TUNSETIFINDEX = 0x400454da
|
||||
@ -1899,13 +2107,17 @@ const (
|
||||
TUNSETPERSIST = 0x400454cb
|
||||
TUNSETQUEUE = 0x400454d9
|
||||
TUNSETSNDBUF = 0x400454d4
|
||||
TUNSETSTEERINGEBPF = 0x800454e0
|
||||
TUNSETTXFILTER = 0x400454d1
|
||||
TUNSETVNETBE = 0x400454de
|
||||
TUNSETVNETHDRSZ = 0x400454d8
|
||||
TUNSETVNETLE = 0x400454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x4
|
||||
VEOL = 0xb
|
||||
@ -1947,6 +2159,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -1956,7 +2248,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2136,171 +2430,179 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "EDEADLK", "resource deadlock avoided"},
|
||||
{36, "ENAMETOOLONG", "file name too long"},
|
||||
{37, "ENOLCK", "no locks available"},
|
||||
{38, "ENOSYS", "function not implemented"},
|
||||
{39, "ENOTEMPTY", "directory not empty"},
|
||||
{40, "ELOOP", "too many levels of symbolic links"},
|
||||
{42, "ENOMSG", "no message of desired type"},
|
||||
{43, "EIDRM", "identifier removed"},
|
||||
{44, "ECHRNG", "channel number out of range"},
|
||||
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{46, "EL3HLT", "level 3 halted"},
|
||||
{47, "EL3RST", "level 3 reset"},
|
||||
{48, "ELNRNG", "link number out of range"},
|
||||
{49, "EUNATCH", "protocol driver not attached"},
|
||||
{50, "ENOCSI", "no CSI structure available"},
|
||||
{51, "EL2HLT", "level 2 halted"},
|
||||
{52, "EBADE", "invalid exchange"},
|
||||
{53, "EBADR", "invalid request descriptor"},
|
||||
{54, "EXFULL", "exchange full"},
|
||||
{55, "ENOANO", "no anode"},
|
||||
{56, "EBADRQC", "invalid request code"},
|
||||
{57, "EBADSLT", "invalid slot"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{72, "EMULTIHOP", "multihop attempted"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EBADMSG", "bad message"},
|
||||
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||
{76, "ENOTUNIQ", "name not unique on network"},
|
||||
{77, "EBADFD", "file descriptor in bad state"},
|
||||
{78, "EREMCHG", "remote address changed"},
|
||||
{79, "ELIBACC", "can not access a needed shared library"},
|
||||
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||
{86, "ESTRPIPE", "streams pipe error"},
|
||||
{87, "EUSERS", "too many users"},
|
||||
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{89, "EDESTADDRREQ", "destination address required"},
|
||||
{90, "EMSGSIZE", "message too long"},
|
||||
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{92, "ENOPROTOOPT", "protocol not available"},
|
||||
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{95, "ENOTSUP", "operation not supported"},
|
||||
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{98, "EADDRINUSE", "address already in use"},
|
||||
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{100, "ENETDOWN", "network is down"},
|
||||
{101, "ENETUNREACH", "network is unreachable"},
|
||||
{102, "ENETRESET", "network dropped connection on reset"},
|
||||
{103, "ECONNABORTED", "software caused connection abort"},
|
||||
{104, "ECONNRESET", "connection reset by peer"},
|
||||
{105, "ENOBUFS", "no buffer space available"},
|
||||
{106, "EISCONN", "transport endpoint is already connected"},
|
||||
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{110, "ETIMEDOUT", "connection timed out"},
|
||||
{111, "ECONNREFUSED", "connection refused"},
|
||||
{112, "EHOSTDOWN", "host is down"},
|
||||
{113, "EHOSTUNREACH", "no route to host"},
|
||||
{114, "EALREADY", "operation already in progress"},
|
||||
{115, "EINPROGRESS", "operation now in progress"},
|
||||
{116, "ESTALE", "stale file handle"},
|
||||
{117, "EUCLEAN", "structure needs cleaning"},
|
||||
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{120, "EISNAM", "is a named type file"},
|
||||
{121, "EREMOTEIO", "remote I/O error"},
|
||||
{122, "EDQUOT", "disk quota exceeded"},
|
||||
{123, "ENOMEDIUM", "no medium found"},
|
||||
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{125, "ECANCELED", "operation canceled"},
|
||||
{126, "ENOKEY", "required key not available"},
|
||||
{127, "EKEYEXPIRED", "key has expired"},
|
||||
{128, "EKEYREVOKED", "key has been revoked"},
|
||||
{129, "EKEYREJECTED", "key was rejected by service"},
|
||||
{130, "EOWNERDEAD", "owner died"},
|
||||
{131, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{132, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{133, "EHWPOISON", "memory page has hardware error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGBUS", "bus error"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGUSR1", "user defined signal 1"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGUSR2", "user defined signal 2"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGSTKFLT", "stack fault"},
|
||||
{17, "SIGCHLD", "child exited"},
|
||||
{18, "SIGCONT", "continued"},
|
||||
{19, "SIGSTOP", "stopped (signal)"},
|
||||
{20, "SIGTSTP", "stopped"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGURG", "urgent I/O condition"},
|
||||
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window changed"},
|
||||
{29, "SIGIO", "I/O possible"},
|
||||
{30, "SIGPWR", "power failure"},
|
||||
{31, "SIGSYS", "bad system call"},
|
||||
}
|
||||
|
634
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
634
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build arm64,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x80081270
|
||||
BLKBSZSET = 0x40081271
|
||||
BLKFLSBUF = 0x1261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -393,6 +416,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -426,6 +450,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -446,10 +471,15 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
EXTRA_MAGIC = 0x45585401
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -463,6 +493,7 @@ const (
|
||||
FF1 = 0x8000
|
||||
FFDLY = 0x8000
|
||||
FLUSHO = 0x1000
|
||||
FPSIMD_MAGIC = 0x46508001
|
||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||
@ -483,6 +514,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -544,6 +576,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
@ -794,12 +869,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -895,9 +972,15 @@ const (
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -957,7 +1040,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -992,6 +1077,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
@ -1024,6 +1140,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1031,7 +1149,9 @@ const (
|
||||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
@ -1116,16 +1236,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||
PERF_EVENT_IOC_ID = 0x80082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
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
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1168,6 +1292,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1213,11 +1338,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1231,6 +1363,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1270,6 +1403,7 @@ const (
|
||||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
PTRACE_SETREGS = 0xd
|
||||
@ -1279,6 +1413,11 @@ const (
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1328,6 +1467,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x7002
|
||||
RTC_AIE_ON = 0x7001
|
||||
RTC_ALM_READ = 0x80247008
|
||||
RTC_ALM_SET = 0x40247007
|
||||
RTC_EPOCH_READ = 0x8008700d
|
||||
RTC_EPOCH_SET = 0x4008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x8008700b
|
||||
RTC_IRQP_SET = 0x4008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x7006
|
||||
RTC_PIE_ON = 0x7005
|
||||
RTC_PLL_GET = 0x80207011
|
||||
RTC_PLL_SET = 0x40207012
|
||||
RTC_RD_TIME = 0x80247009
|
||||
RTC_SET_TIME = 0x4024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x7004
|
||||
RTC_UIE_ON = 0x7003
|
||||
RTC_VL_CLR = 0x7014
|
||||
RTC_VL_READ = 0x80047013
|
||||
RTC_WIE_OFF = 0x7010
|
||||
RTC_WIE_ON = 0x700f
|
||||
RTC_WKALM_RD = 0x80287010
|
||||
RTC_WKALM_SET = 0x4028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1464,6 +1630,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1548,6 +1716,23 @@ const (
|
||||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
@ -1658,6 +1843,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1679,6 +1866,8 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SVE_MAGIC = 0x53564501
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1860,7 +2049,27 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x401054d5
|
||||
TUNDETACHFILTER = 0x401054d6
|
||||
@ -1872,6 +2081,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x800454d7
|
||||
TUNGETVNETLE = 0x800454dd
|
||||
TUNSETDEBUG = 0x400454c9
|
||||
TUNSETFILTEREBPF = 0x800454e1
|
||||
TUNSETGROUP = 0x400454ce
|
||||
TUNSETIFF = 0x400454ca
|
||||
TUNSETIFINDEX = 0x400454da
|
||||
@ -1882,13 +2092,17 @@ const (
|
||||
TUNSETPERSIST = 0x400454cb
|
||||
TUNSETQUEUE = 0x400454d9
|
||||
TUNSETSNDBUF = 0x400454d4
|
||||
TUNSETSTEERINGEBPF = 0x800454e0
|
||||
TUNSETTXFILTER = 0x400454d1
|
||||
TUNSETVNETBE = 0x400454de
|
||||
TUNSETVNETHDRSZ = 0x400454d8
|
||||
TUNSETVNETLE = 0x400454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x4
|
||||
VEOL = 0xb
|
||||
@ -1930,6 +2144,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -1939,7 +2233,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2119,171 +2415,179 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "EDEADLK", "resource deadlock avoided"},
|
||||
{36, "ENAMETOOLONG", "file name too long"},
|
||||
{37, "ENOLCK", "no locks available"},
|
||||
{38, "ENOSYS", "function not implemented"},
|
||||
{39, "ENOTEMPTY", "directory not empty"},
|
||||
{40, "ELOOP", "too many levels of symbolic links"},
|
||||
{42, "ENOMSG", "no message of desired type"},
|
||||
{43, "EIDRM", "identifier removed"},
|
||||
{44, "ECHRNG", "channel number out of range"},
|
||||
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{46, "EL3HLT", "level 3 halted"},
|
||||
{47, "EL3RST", "level 3 reset"},
|
||||
{48, "ELNRNG", "link number out of range"},
|
||||
{49, "EUNATCH", "protocol driver not attached"},
|
||||
{50, "ENOCSI", "no CSI structure available"},
|
||||
{51, "EL2HLT", "level 2 halted"},
|
||||
{52, "EBADE", "invalid exchange"},
|
||||
{53, "EBADR", "invalid request descriptor"},
|
||||
{54, "EXFULL", "exchange full"},
|
||||
{55, "ENOANO", "no anode"},
|
||||
{56, "EBADRQC", "invalid request code"},
|
||||
{57, "EBADSLT", "invalid slot"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{72, "EMULTIHOP", "multihop attempted"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EBADMSG", "bad message"},
|
||||
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||
{76, "ENOTUNIQ", "name not unique on network"},
|
||||
{77, "EBADFD", "file descriptor in bad state"},
|
||||
{78, "EREMCHG", "remote address changed"},
|
||||
{79, "ELIBACC", "can not access a needed shared library"},
|
||||
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||
{86, "ESTRPIPE", "streams pipe error"},
|
||||
{87, "EUSERS", "too many users"},
|
||||
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{89, "EDESTADDRREQ", "destination address required"},
|
||||
{90, "EMSGSIZE", "message too long"},
|
||||
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{92, "ENOPROTOOPT", "protocol not available"},
|
||||
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{95, "ENOTSUP", "operation not supported"},
|
||||
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{98, "EADDRINUSE", "address already in use"},
|
||||
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{100, "ENETDOWN", "network is down"},
|
||||
{101, "ENETUNREACH", "network is unreachable"},
|
||||
{102, "ENETRESET", "network dropped connection on reset"},
|
||||
{103, "ECONNABORTED", "software caused connection abort"},
|
||||
{104, "ECONNRESET", "connection reset by peer"},
|
||||
{105, "ENOBUFS", "no buffer space available"},
|
||||
{106, "EISCONN", "transport endpoint is already connected"},
|
||||
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{110, "ETIMEDOUT", "connection timed out"},
|
||||
{111, "ECONNREFUSED", "connection refused"},
|
||||
{112, "EHOSTDOWN", "host is down"},
|
||||
{113, "EHOSTUNREACH", "no route to host"},
|
||||
{114, "EALREADY", "operation already in progress"},
|
||||
{115, "EINPROGRESS", "operation now in progress"},
|
||||
{116, "ESTALE", "stale file handle"},
|
||||
{117, "EUCLEAN", "structure needs cleaning"},
|
||||
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{120, "EISNAM", "is a named type file"},
|
||||
{121, "EREMOTEIO", "remote I/O error"},
|
||||
{122, "EDQUOT", "disk quota exceeded"},
|
||||
{123, "ENOMEDIUM", "no medium found"},
|
||||
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{125, "ECANCELED", "operation canceled"},
|
||||
{126, "ENOKEY", "required key not available"},
|
||||
{127, "EKEYEXPIRED", "key has expired"},
|
||||
{128, "EKEYREVOKED", "key has been revoked"},
|
||||
{129, "EKEYREJECTED", "key was rejected by service"},
|
||||
{130, "EOWNERDEAD", "owner died"},
|
||||
{131, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{132, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{133, "EHWPOISON", "memory page has hardware error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGBUS", "bus error"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGUSR1", "user defined signal 1"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGUSR2", "user defined signal 2"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGSTKFLT", "stack fault"},
|
||||
{17, "SIGCHLD", "child exited"},
|
||||
{18, "SIGCONT", "continued"},
|
||||
{19, "SIGSTOP", "stopped (signal)"},
|
||||
{20, "SIGTSTP", "stopped"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGURG", "urgent I/O condition"},
|
||||
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window changed"},
|
||||
{29, "SIGIO", "I/O possible"},
|
||||
{30, "SIGPWR", "power failure"},
|
||||
{31, "SIGSYS", "bad system call"},
|
||||
}
|
||||
|
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build mips,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40041270
|
||||
BLKBSZSET = 0x80041271
|
||||
BLKFLSBUF = 0x20001261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x80
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -481,6 +511,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +573,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
@ -792,12 +866,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -894,9 +970,15 @@ const (
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -956,7 +1038,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -991,6 +1075,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
@ -1023,6 +1138,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1030,7 +1147,9 @@ const (
|
||||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x8
|
||||
O_ASYNC = 0x1000
|
||||
@ -1115,16 +1234,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||
PERF_EVENT_IOC_ID = 0x40042407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||
PERF_EVENT_IOC_RESET = 0x20002403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1167,6 +1290,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1212,11 +1336,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1230,6 +1361,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1278,6 +1410,7 @@ const (
|
||||
PTRACE_POKETEXT_3264 = 0xc2
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
@ -1290,6 +1423,11 @@ const (
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x6
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1339,6 +1477,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x20007002
|
||||
RTC_AIE_ON = 0x20007001
|
||||
RTC_ALM_READ = 0x40247008
|
||||
RTC_ALM_SET = 0x80247007
|
||||
RTC_EPOCH_READ = 0x4004700d
|
||||
RTC_EPOCH_SET = 0x8004700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4004700b
|
||||
RTC_IRQP_SET = 0x8004700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x20007006
|
||||
RTC_PIE_ON = 0x20007005
|
||||
RTC_PLL_GET = 0x401c7011
|
||||
RTC_PLL_SET = 0x801c7012
|
||||
RTC_RD_TIME = 0x40247009
|
||||
RTC_SET_TIME = 0x8024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x20007004
|
||||
RTC_UIE_ON = 0x20007003
|
||||
RTC_VL_CLR = 0x20007014
|
||||
RTC_VL_READ = 0x40047013
|
||||
RTC_WIE_OFF = 0x20007010
|
||||
RTC_WIE_ON = 0x2000700f
|
||||
RTC_WKALM_RD = 0x40287010
|
||||
RTC_WKALM_SET = 0x8028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1475,6 +1640,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1559,6 +1726,23 @@ const (
|
||||
SIOCSPGRP = 0x80047308
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x1
|
||||
@ -1670,6 +1854,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1691,6 +1877,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1873,7 +2060,27 @@ const (
|
||||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x800854d5
|
||||
TUNDETACHFILTER = 0x800854d6
|
||||
@ -1885,6 +2092,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
@ -1895,13 +2103,17 @@ const (
|
||||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x10
|
||||
VEOL = 0x11
|
||||
@ -1944,6 +2156,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -1953,7 +2245,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2135,174 +2429,182 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "resource deadlock avoided",
|
||||
46: "no locks available",
|
||||
50: "invalid exchange",
|
||||
51: "invalid request descriptor",
|
||||
52: "exchange full",
|
||||
53: "no anode",
|
||||
54: "invalid request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
73: "RFS specific error",
|
||||
74: "multihop attempted",
|
||||
77: "bad message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in too many shared libraries",
|
||||
87: "cannot exec a shared library directly",
|
||||
88: "invalid or incomplete multibyte or wide character",
|
||||
89: "function not implemented",
|
||||
90: "too many levels of symbolic links",
|
||||
91: "interrupted system call should be restarted",
|
||||
92: "streams pipe error",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "protocol not available",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection on reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
135: "structure needs cleaning",
|
||||
137: "not a XENIX named type file",
|
||||
138: "no XENIX semaphores available",
|
||||
139: "is a named type file",
|
||||
140: "remote I/O error",
|
||||
141: "unknown error 141",
|
||||
142: "unknown error 142",
|
||||
143: "cannot send after transport endpoint shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale file handle",
|
||||
158: "operation canceled",
|
||||
159: "no medium found",
|
||||
160: "wrong medium type",
|
||||
161: "required key not available",
|
||||
162: "key has expired",
|
||||
163: "key has been revoked",
|
||||
164: "key was rejected by service",
|
||||
165: "owner died",
|
||||
166: "state not recoverable",
|
||||
167: "operation not possible due to RF-kill",
|
||||
168: "memory page has hardware error",
|
||||
1133: "disk quota exceeded",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "ENOMSG", "no message of desired type"},
|
||||
{36, "EIDRM", "identifier removed"},
|
||||
{37, "ECHRNG", "channel number out of range"},
|
||||
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{39, "EL3HLT", "level 3 halted"},
|
||||
{40, "EL3RST", "level 3 reset"},
|
||||
{41, "ELNRNG", "link number out of range"},
|
||||
{42, "EUNATCH", "protocol driver not attached"},
|
||||
{43, "ENOCSI", "no CSI structure available"},
|
||||
{44, "EL2HLT", "level 2 halted"},
|
||||
{45, "EDEADLK", "resource deadlock avoided"},
|
||||
{46, "ENOLCK", "no locks available"},
|
||||
{50, "EBADE", "invalid exchange"},
|
||||
{51, "EBADR", "invalid request descriptor"},
|
||||
{52, "EXFULL", "exchange full"},
|
||||
{53, "ENOANO", "no anode"},
|
||||
{54, "EBADRQC", "invalid request code"},
|
||||
{55, "EBADSLT", "invalid slot"},
|
||||
{56, "EDEADLOCK", "file locking deadlock error"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EMULTIHOP", "multihop attempted"},
|
||||
{77, "EBADMSG", "bad message"},
|
||||
{78, "ENAMETOOLONG", "file name too long"},
|
||||
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||
{80, "ENOTUNIQ", "name not unique on network"},
|
||||
{81, "EBADFD", "file descriptor in bad state"},
|
||||
{82, "EREMCHG", "remote address changed"},
|
||||
{83, "ELIBACC", "can not access a needed shared library"},
|
||||
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{89, "ENOSYS", "function not implemented"},
|
||||
{90, "ELOOP", "too many levels of symbolic links"},
|
||||
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||
{92, "ESTRPIPE", "streams pipe error"},
|
||||
{93, "ENOTEMPTY", "directory not empty"},
|
||||
{94, "EUSERS", "too many users"},
|
||||
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{96, "EDESTADDRREQ", "destination address required"},
|
||||
{97, "EMSGSIZE", "message too long"},
|
||||
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{99, "ENOPROTOOPT", "protocol not available"},
|
||||
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{122, "ENOTSUP", "operation not supported"},
|
||||
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{125, "EADDRINUSE", "address already in use"},
|
||||
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{127, "ENETDOWN", "network is down"},
|
||||
{128, "ENETUNREACH", "network is unreachable"},
|
||||
{129, "ENETRESET", "network dropped connection on reset"},
|
||||
{130, "ECONNABORTED", "software caused connection abort"},
|
||||
{131, "ECONNRESET", "connection reset by peer"},
|
||||
{132, "ENOBUFS", "no buffer space available"},
|
||||
{133, "EISCONN", "transport endpoint is already connected"},
|
||||
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{135, "EUCLEAN", "structure needs cleaning"},
|
||||
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{139, "EISNAM", "is a named type file"},
|
||||
{140, "EREMOTEIO", "remote I/O error"},
|
||||
{141, "EINIT", "unknown error 141"},
|
||||
{142, "EREMDEV", "unknown error 142"},
|
||||
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{145, "ETIMEDOUT", "connection timed out"},
|
||||
{146, "ECONNREFUSED", "connection refused"},
|
||||
{147, "EHOSTDOWN", "host is down"},
|
||||
{148, "EHOSTUNREACH", "no route to host"},
|
||||
{149, "EALREADY", "operation already in progress"},
|
||||
{150, "EINPROGRESS", "operation now in progress"},
|
||||
{151, "ESTALE", "stale file handle"},
|
||||
{158, "ECANCELED", "operation canceled"},
|
||||
{159, "ENOMEDIUM", "no medium found"},
|
||||
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{161, "ENOKEY", "required key not available"},
|
||||
{162, "EKEYEXPIRED", "key has expired"},
|
||||
{163, "EKEYREVOKED", "key has been revoked"},
|
||||
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||
{165, "EOWNERDEAD", "owner died"},
|
||||
{166, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{167, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{168, "EHWPOISON", "memory page has hardware error"},
|
||||
{1133, "EDQUOT", "disk quota exceeded"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "user defined signal 1",
|
||||
17: "user defined signal 2",
|
||||
18: "child exited",
|
||||
19: "power failure",
|
||||
20: "window changed",
|
||||
21: "urgent I/O condition",
|
||||
22: "I/O possible",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual timer expired",
|
||||
29: "profiling timer expired",
|
||||
30: "CPU time limit exceeded",
|
||||
31: "file size limit exceeded",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGUSR1", "user defined signal 1"},
|
||||
{17, "SIGUSR2", "user defined signal 2"},
|
||||
{18, "SIGCHLD", "child exited"},
|
||||
{19, "SIGPWR", "power failure"},
|
||||
{20, "SIGWINCH", "window changed"},
|
||||
{21, "SIGURG", "urgent I/O condition"},
|
||||
{22, "SIGIO", "I/O possible"},
|
||||
{23, "SIGSTOP", "stopped (signal)"},
|
||||
{24, "SIGTSTP", "stopped"},
|
||||
{25, "SIGCONT", "continued"},
|
||||
{26, "SIGTTIN", "stopped (tty input)"},
|
||||
{27, "SIGTTOU", "stopped (tty output)"},
|
||||
{28, "SIGVTALRM", "virtual timer expired"},
|
||||
{29, "SIGPROF", "profiling timer expired"},
|
||||
{30, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{31, "SIGXFSZ", "file size limit exceeded"},
|
||||
}
|
||||
|
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build mips64,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40081270
|
||||
BLKBSZSET = 0x80081271
|
||||
BLKFLSBUF = 0x20001261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x80
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -481,6 +511,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +573,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
@ -792,12 +866,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -894,9 +970,15 @@ const (
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -956,7 +1038,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -991,6 +1075,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
@ -1023,6 +1138,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1030,7 +1147,9 @@ const (
|
||||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x8
|
||||
O_ASYNC = 0x1000
|
||||
@ -1115,16 +1234,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||
PERF_EVENT_IOC_ID = 0x40082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
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
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1167,6 +1290,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1212,11 +1336,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1230,6 +1361,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1278,6 +1410,7 @@ const (
|
||||
PTRACE_POKETEXT_3264 = 0xc2
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
@ -1290,6 +1423,11 @@ const (
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x6
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1339,6 +1477,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x20007002
|
||||
RTC_AIE_ON = 0x20007001
|
||||
RTC_ALM_READ = 0x40247008
|
||||
RTC_ALM_SET = 0x80247007
|
||||
RTC_EPOCH_READ = 0x4008700d
|
||||
RTC_EPOCH_SET = 0x8008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4008700b
|
||||
RTC_IRQP_SET = 0x8008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x20007006
|
||||
RTC_PIE_ON = 0x20007005
|
||||
RTC_PLL_GET = 0x40207011
|
||||
RTC_PLL_SET = 0x80207012
|
||||
RTC_RD_TIME = 0x40247009
|
||||
RTC_SET_TIME = 0x8024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x20007004
|
||||
RTC_UIE_ON = 0x20007003
|
||||
RTC_VL_CLR = 0x20007014
|
||||
RTC_VL_READ = 0x40047013
|
||||
RTC_WIE_OFF = 0x20007010
|
||||
RTC_WIE_ON = 0x2000700f
|
||||
RTC_WKALM_RD = 0x40287010
|
||||
RTC_WKALM_SET = 0x8028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1475,6 +1640,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1559,6 +1726,23 @@ const (
|
||||
SIOCSPGRP = 0x80047308
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x1
|
||||
@ -1670,6 +1854,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1691,6 +1877,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1873,7 +2060,27 @@ const (
|
||||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x801054d5
|
||||
TUNDETACHFILTER = 0x801054d6
|
||||
@ -1885,6 +2092,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
@ -1895,13 +2103,17 @@ const (
|
||||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x10
|
||||
VEOL = 0x11
|
||||
@ -1944,6 +2156,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -1953,7 +2245,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2135,174 +2429,182 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "resource deadlock avoided",
|
||||
46: "no locks available",
|
||||
50: "invalid exchange",
|
||||
51: "invalid request descriptor",
|
||||
52: "exchange full",
|
||||
53: "no anode",
|
||||
54: "invalid request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
73: "RFS specific error",
|
||||
74: "multihop attempted",
|
||||
77: "bad message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in too many shared libraries",
|
||||
87: "cannot exec a shared library directly",
|
||||
88: "invalid or incomplete multibyte or wide character",
|
||||
89: "function not implemented",
|
||||
90: "too many levels of symbolic links",
|
||||
91: "interrupted system call should be restarted",
|
||||
92: "streams pipe error",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "protocol not available",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection on reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
135: "structure needs cleaning",
|
||||
137: "not a XENIX named type file",
|
||||
138: "no XENIX semaphores available",
|
||||
139: "is a named type file",
|
||||
140: "remote I/O error",
|
||||
141: "unknown error 141",
|
||||
142: "unknown error 142",
|
||||
143: "cannot send after transport endpoint shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale file handle",
|
||||
158: "operation canceled",
|
||||
159: "no medium found",
|
||||
160: "wrong medium type",
|
||||
161: "required key not available",
|
||||
162: "key has expired",
|
||||
163: "key has been revoked",
|
||||
164: "key was rejected by service",
|
||||
165: "owner died",
|
||||
166: "state not recoverable",
|
||||
167: "operation not possible due to RF-kill",
|
||||
168: "memory page has hardware error",
|
||||
1133: "disk quota exceeded",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "ENOMSG", "no message of desired type"},
|
||||
{36, "EIDRM", "identifier removed"},
|
||||
{37, "ECHRNG", "channel number out of range"},
|
||||
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{39, "EL3HLT", "level 3 halted"},
|
||||
{40, "EL3RST", "level 3 reset"},
|
||||
{41, "ELNRNG", "link number out of range"},
|
||||
{42, "EUNATCH", "protocol driver not attached"},
|
||||
{43, "ENOCSI", "no CSI structure available"},
|
||||
{44, "EL2HLT", "level 2 halted"},
|
||||
{45, "EDEADLK", "resource deadlock avoided"},
|
||||
{46, "ENOLCK", "no locks available"},
|
||||
{50, "EBADE", "invalid exchange"},
|
||||
{51, "EBADR", "invalid request descriptor"},
|
||||
{52, "EXFULL", "exchange full"},
|
||||
{53, "ENOANO", "no anode"},
|
||||
{54, "EBADRQC", "invalid request code"},
|
||||
{55, "EBADSLT", "invalid slot"},
|
||||
{56, "EDEADLOCK", "file locking deadlock error"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EMULTIHOP", "multihop attempted"},
|
||||
{77, "EBADMSG", "bad message"},
|
||||
{78, "ENAMETOOLONG", "file name too long"},
|
||||
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||
{80, "ENOTUNIQ", "name not unique on network"},
|
||||
{81, "EBADFD", "file descriptor in bad state"},
|
||||
{82, "EREMCHG", "remote address changed"},
|
||||
{83, "ELIBACC", "can not access a needed shared library"},
|
||||
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{89, "ENOSYS", "function not implemented"},
|
||||
{90, "ELOOP", "too many levels of symbolic links"},
|
||||
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||
{92, "ESTRPIPE", "streams pipe error"},
|
||||
{93, "ENOTEMPTY", "directory not empty"},
|
||||
{94, "EUSERS", "too many users"},
|
||||
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{96, "EDESTADDRREQ", "destination address required"},
|
||||
{97, "EMSGSIZE", "message too long"},
|
||||
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{99, "ENOPROTOOPT", "protocol not available"},
|
||||
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{122, "ENOTSUP", "operation not supported"},
|
||||
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{125, "EADDRINUSE", "address already in use"},
|
||||
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{127, "ENETDOWN", "network is down"},
|
||||
{128, "ENETUNREACH", "network is unreachable"},
|
||||
{129, "ENETRESET", "network dropped connection on reset"},
|
||||
{130, "ECONNABORTED", "software caused connection abort"},
|
||||
{131, "ECONNRESET", "connection reset by peer"},
|
||||
{132, "ENOBUFS", "no buffer space available"},
|
||||
{133, "EISCONN", "transport endpoint is already connected"},
|
||||
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{135, "EUCLEAN", "structure needs cleaning"},
|
||||
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{139, "EISNAM", "is a named type file"},
|
||||
{140, "EREMOTEIO", "remote I/O error"},
|
||||
{141, "EINIT", "unknown error 141"},
|
||||
{142, "EREMDEV", "unknown error 142"},
|
||||
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{145, "ETIMEDOUT", "connection timed out"},
|
||||
{146, "ECONNREFUSED", "connection refused"},
|
||||
{147, "EHOSTDOWN", "host is down"},
|
||||
{148, "EHOSTUNREACH", "no route to host"},
|
||||
{149, "EALREADY", "operation already in progress"},
|
||||
{150, "EINPROGRESS", "operation now in progress"},
|
||||
{151, "ESTALE", "stale file handle"},
|
||||
{158, "ECANCELED", "operation canceled"},
|
||||
{159, "ENOMEDIUM", "no medium found"},
|
||||
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{161, "ENOKEY", "required key not available"},
|
||||
{162, "EKEYEXPIRED", "key has expired"},
|
||||
{163, "EKEYREVOKED", "key has been revoked"},
|
||||
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||
{165, "EOWNERDEAD", "owner died"},
|
||||
{166, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{167, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{168, "EHWPOISON", "memory page has hardware error"},
|
||||
{1133, "EDQUOT", "disk quota exceeded"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "user defined signal 1",
|
||||
17: "user defined signal 2",
|
||||
18: "child exited",
|
||||
19: "power failure",
|
||||
20: "window changed",
|
||||
21: "urgent I/O condition",
|
||||
22: "I/O possible",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual timer expired",
|
||||
29: "profiling timer expired",
|
||||
30: "CPU time limit exceeded",
|
||||
31: "file size limit exceeded",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGUSR1", "user defined signal 1"},
|
||||
{17, "SIGUSR2", "user defined signal 2"},
|
||||
{18, "SIGCHLD", "child exited"},
|
||||
{19, "SIGPWR", "power failure"},
|
||||
{20, "SIGWINCH", "window changed"},
|
||||
{21, "SIGURG", "urgent I/O condition"},
|
||||
{22, "SIGIO", "I/O possible"},
|
||||
{23, "SIGSTOP", "stopped (signal)"},
|
||||
{24, "SIGTSTP", "stopped"},
|
||||
{25, "SIGCONT", "continued"},
|
||||
{26, "SIGTTIN", "stopped (tty input)"},
|
||||
{27, "SIGTTOU", "stopped (tty output)"},
|
||||
{28, "SIGVTALRM", "virtual timer expired"},
|
||||
{29, "SIGPROF", "profiling timer expired"},
|
||||
{30, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{31, "SIGXFSZ", "file size limit exceeded"},
|
||||
}
|
||||
|
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build mips64le,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40081270
|
||||
BLKBSZSET = 0x80081271
|
||||
BLKFLSBUF = 0x20001261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x80
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -481,6 +511,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +573,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
@ -792,12 +866,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -894,9 +970,15 @@ const (
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -956,7 +1038,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -991,6 +1075,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
@ -1023,6 +1138,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1030,7 +1147,9 @@ const (
|
||||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x8
|
||||
O_ASYNC = 0x1000
|
||||
@ -1115,16 +1234,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||
PERF_EVENT_IOC_ID = 0x40082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
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
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1167,6 +1290,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1212,11 +1336,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1230,6 +1361,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1278,6 +1410,7 @@ const (
|
||||
PTRACE_POKETEXT_3264 = 0xc2
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
@ -1290,6 +1423,11 @@ const (
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x6
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1339,6 +1477,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x20007002
|
||||
RTC_AIE_ON = 0x20007001
|
||||
RTC_ALM_READ = 0x40247008
|
||||
RTC_ALM_SET = 0x80247007
|
||||
RTC_EPOCH_READ = 0x4008700d
|
||||
RTC_EPOCH_SET = 0x8008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4008700b
|
||||
RTC_IRQP_SET = 0x8008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x20007006
|
||||
RTC_PIE_ON = 0x20007005
|
||||
RTC_PLL_GET = 0x40207011
|
||||
RTC_PLL_SET = 0x80207012
|
||||
RTC_RD_TIME = 0x40247009
|
||||
RTC_SET_TIME = 0x8024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x20007004
|
||||
RTC_UIE_ON = 0x20007003
|
||||
RTC_VL_CLR = 0x20007014
|
||||
RTC_VL_READ = 0x40047013
|
||||
RTC_WIE_OFF = 0x20007010
|
||||
RTC_WIE_ON = 0x2000700f
|
||||
RTC_WKALM_RD = 0x40287010
|
||||
RTC_WKALM_SET = 0x8028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1475,6 +1640,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1559,6 +1726,23 @@ const (
|
||||
SIOCSPGRP = 0x80047308
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x1
|
||||
@ -1670,6 +1854,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1691,6 +1877,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1873,7 +2060,27 @@ const (
|
||||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x801054d5
|
||||
TUNDETACHFILTER = 0x801054d6
|
||||
@ -1885,6 +2092,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
@ -1895,13 +2103,17 @@ const (
|
||||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x10
|
||||
VEOL = 0x11
|
||||
@ -1944,6 +2156,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -1953,7 +2245,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2135,174 +2429,182 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "resource deadlock avoided",
|
||||
46: "no locks available",
|
||||
50: "invalid exchange",
|
||||
51: "invalid request descriptor",
|
||||
52: "exchange full",
|
||||
53: "no anode",
|
||||
54: "invalid request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
73: "RFS specific error",
|
||||
74: "multihop attempted",
|
||||
77: "bad message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in too many shared libraries",
|
||||
87: "cannot exec a shared library directly",
|
||||
88: "invalid or incomplete multibyte or wide character",
|
||||
89: "function not implemented",
|
||||
90: "too many levels of symbolic links",
|
||||
91: "interrupted system call should be restarted",
|
||||
92: "streams pipe error",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "protocol not available",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection on reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
135: "structure needs cleaning",
|
||||
137: "not a XENIX named type file",
|
||||
138: "no XENIX semaphores available",
|
||||
139: "is a named type file",
|
||||
140: "remote I/O error",
|
||||
141: "unknown error 141",
|
||||
142: "unknown error 142",
|
||||
143: "cannot send after transport endpoint shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale file handle",
|
||||
158: "operation canceled",
|
||||
159: "no medium found",
|
||||
160: "wrong medium type",
|
||||
161: "required key not available",
|
||||
162: "key has expired",
|
||||
163: "key has been revoked",
|
||||
164: "key was rejected by service",
|
||||
165: "owner died",
|
||||
166: "state not recoverable",
|
||||
167: "operation not possible due to RF-kill",
|
||||
168: "memory page has hardware error",
|
||||
1133: "disk quota exceeded",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "ENOMSG", "no message of desired type"},
|
||||
{36, "EIDRM", "identifier removed"},
|
||||
{37, "ECHRNG", "channel number out of range"},
|
||||
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{39, "EL3HLT", "level 3 halted"},
|
||||
{40, "EL3RST", "level 3 reset"},
|
||||
{41, "ELNRNG", "link number out of range"},
|
||||
{42, "EUNATCH", "protocol driver not attached"},
|
||||
{43, "ENOCSI", "no CSI structure available"},
|
||||
{44, "EL2HLT", "level 2 halted"},
|
||||
{45, "EDEADLK", "resource deadlock avoided"},
|
||||
{46, "ENOLCK", "no locks available"},
|
||||
{50, "EBADE", "invalid exchange"},
|
||||
{51, "EBADR", "invalid request descriptor"},
|
||||
{52, "EXFULL", "exchange full"},
|
||||
{53, "ENOANO", "no anode"},
|
||||
{54, "EBADRQC", "invalid request code"},
|
||||
{55, "EBADSLT", "invalid slot"},
|
||||
{56, "EDEADLOCK", "file locking deadlock error"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EMULTIHOP", "multihop attempted"},
|
||||
{77, "EBADMSG", "bad message"},
|
||||
{78, "ENAMETOOLONG", "file name too long"},
|
||||
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||
{80, "ENOTUNIQ", "name not unique on network"},
|
||||
{81, "EBADFD", "file descriptor in bad state"},
|
||||
{82, "EREMCHG", "remote address changed"},
|
||||
{83, "ELIBACC", "can not access a needed shared library"},
|
||||
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{89, "ENOSYS", "function not implemented"},
|
||||
{90, "ELOOP", "too many levels of symbolic links"},
|
||||
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||
{92, "ESTRPIPE", "streams pipe error"},
|
||||
{93, "ENOTEMPTY", "directory not empty"},
|
||||
{94, "EUSERS", "too many users"},
|
||||
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{96, "EDESTADDRREQ", "destination address required"},
|
||||
{97, "EMSGSIZE", "message too long"},
|
||||
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{99, "ENOPROTOOPT", "protocol not available"},
|
||||
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{122, "ENOTSUP", "operation not supported"},
|
||||
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{125, "EADDRINUSE", "address already in use"},
|
||||
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{127, "ENETDOWN", "network is down"},
|
||||
{128, "ENETUNREACH", "network is unreachable"},
|
||||
{129, "ENETRESET", "network dropped connection on reset"},
|
||||
{130, "ECONNABORTED", "software caused connection abort"},
|
||||
{131, "ECONNRESET", "connection reset by peer"},
|
||||
{132, "ENOBUFS", "no buffer space available"},
|
||||
{133, "EISCONN", "transport endpoint is already connected"},
|
||||
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{135, "EUCLEAN", "structure needs cleaning"},
|
||||
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{139, "EISNAM", "is a named type file"},
|
||||
{140, "EREMOTEIO", "remote I/O error"},
|
||||
{141, "EINIT", "unknown error 141"},
|
||||
{142, "EREMDEV", "unknown error 142"},
|
||||
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{145, "ETIMEDOUT", "connection timed out"},
|
||||
{146, "ECONNREFUSED", "connection refused"},
|
||||
{147, "EHOSTDOWN", "host is down"},
|
||||
{148, "EHOSTUNREACH", "no route to host"},
|
||||
{149, "EALREADY", "operation already in progress"},
|
||||
{150, "EINPROGRESS", "operation now in progress"},
|
||||
{151, "ESTALE", "stale file handle"},
|
||||
{158, "ECANCELED", "operation canceled"},
|
||||
{159, "ENOMEDIUM", "no medium found"},
|
||||
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{161, "ENOKEY", "required key not available"},
|
||||
{162, "EKEYEXPIRED", "key has expired"},
|
||||
{163, "EKEYREVOKED", "key has been revoked"},
|
||||
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||
{165, "EOWNERDEAD", "owner died"},
|
||||
{166, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{167, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{168, "EHWPOISON", "memory page has hardware error"},
|
||||
{1133, "EDQUOT", "disk quota exceeded"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "user defined signal 1",
|
||||
17: "user defined signal 2",
|
||||
18: "child exited",
|
||||
19: "power failure",
|
||||
20: "window changed",
|
||||
21: "urgent I/O condition",
|
||||
22: "I/O possible",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual timer expired",
|
||||
29: "profiling timer expired",
|
||||
30: "CPU time limit exceeded",
|
||||
31: "file size limit exceeded",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGUSR1", "user defined signal 1"},
|
||||
{17, "SIGUSR2", "user defined signal 2"},
|
||||
{18, "SIGCHLD", "child exited"},
|
||||
{19, "SIGPWR", "power failure"},
|
||||
{20, "SIGWINCH", "window changed"},
|
||||
{21, "SIGURG", "urgent I/O condition"},
|
||||
{22, "SIGIO", "I/O possible"},
|
||||
{23, "SIGSTOP", "stopped (signal)"},
|
||||
{24, "SIGTSTP", "stopped"},
|
||||
{25, "SIGCONT", "continued"},
|
||||
{26, "SIGTTIN", "stopped (tty input)"},
|
||||
{27, "SIGTTOU", "stopped (tty output)"},
|
||||
{28, "SIGVTALRM", "virtual timer expired"},
|
||||
{29, "SIGPROF", "profiling timer expired"},
|
||||
{30, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{31, "SIGXFSZ", "file size limit exceeded"},
|
||||
}
|
||||
|
638
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
638
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build mipsle,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40041270
|
||||
BLKBSZSET = 0x80041271
|
||||
BLKFLSBUF = 0x20001261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x80
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -481,6 +511,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +573,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
@ -792,12 +866,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -894,9 +970,15 @@ const (
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -956,7 +1038,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -991,6 +1075,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
@ -1023,6 +1138,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1030,7 +1147,9 @@ const (
|
||||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x8
|
||||
O_ASYNC = 0x1000
|
||||
@ -1115,16 +1234,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||
PERF_EVENT_IOC_ID = 0x40042407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||
PERF_EVENT_IOC_RESET = 0x20002403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1167,6 +1290,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1212,11 +1336,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1230,6 +1361,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1278,6 +1410,7 @@ const (
|
||||
PTRACE_POKETEXT_3264 = 0xc2
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
@ -1290,6 +1423,11 @@ const (
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x6
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1339,6 +1477,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x20007002
|
||||
RTC_AIE_ON = 0x20007001
|
||||
RTC_ALM_READ = 0x40247008
|
||||
RTC_ALM_SET = 0x80247007
|
||||
RTC_EPOCH_READ = 0x4004700d
|
||||
RTC_EPOCH_SET = 0x8004700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4004700b
|
||||
RTC_IRQP_SET = 0x8004700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x20007006
|
||||
RTC_PIE_ON = 0x20007005
|
||||
RTC_PLL_GET = 0x401c7011
|
||||
RTC_PLL_SET = 0x801c7012
|
||||
RTC_RD_TIME = 0x40247009
|
||||
RTC_SET_TIME = 0x8024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x20007004
|
||||
RTC_UIE_ON = 0x20007003
|
||||
RTC_VL_CLR = 0x20007014
|
||||
RTC_VL_READ = 0x40047013
|
||||
RTC_WIE_OFF = 0x20007010
|
||||
RTC_WIE_ON = 0x2000700f
|
||||
RTC_WKALM_RD = 0x40287010
|
||||
RTC_WKALM_SET = 0x8028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1475,6 +1640,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1559,6 +1726,23 @@ const (
|
||||
SIOCSPGRP = 0x80047308
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x1
|
||||
@ -1670,6 +1854,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1691,6 +1877,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1873,7 +2060,27 @@ const (
|
||||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x800854d5
|
||||
TUNDETACHFILTER = 0x800854d6
|
||||
@ -1885,6 +2092,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
@ -1895,13 +2103,17 @@ const (
|
||||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x10
|
||||
VEOL = 0x11
|
||||
@ -1944,6 +2156,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -1953,7 +2245,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2135,174 +2429,182 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "resource deadlock avoided",
|
||||
46: "no locks available",
|
||||
50: "invalid exchange",
|
||||
51: "invalid request descriptor",
|
||||
52: "exchange full",
|
||||
53: "no anode",
|
||||
54: "invalid request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
73: "RFS specific error",
|
||||
74: "multihop attempted",
|
||||
77: "bad message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in too many shared libraries",
|
||||
87: "cannot exec a shared library directly",
|
||||
88: "invalid or incomplete multibyte or wide character",
|
||||
89: "function not implemented",
|
||||
90: "too many levels of symbolic links",
|
||||
91: "interrupted system call should be restarted",
|
||||
92: "streams pipe error",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "protocol not available",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection on reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
135: "structure needs cleaning",
|
||||
137: "not a XENIX named type file",
|
||||
138: "no XENIX semaphores available",
|
||||
139: "is a named type file",
|
||||
140: "remote I/O error",
|
||||
141: "unknown error 141",
|
||||
142: "unknown error 142",
|
||||
143: "cannot send after transport endpoint shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale file handle",
|
||||
158: "operation canceled",
|
||||
159: "no medium found",
|
||||
160: "wrong medium type",
|
||||
161: "required key not available",
|
||||
162: "key has expired",
|
||||
163: "key has been revoked",
|
||||
164: "key was rejected by service",
|
||||
165: "owner died",
|
||||
166: "state not recoverable",
|
||||
167: "operation not possible due to RF-kill",
|
||||
168: "memory page has hardware error",
|
||||
1133: "disk quota exceeded",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "ENOMSG", "no message of desired type"},
|
||||
{36, "EIDRM", "identifier removed"},
|
||||
{37, "ECHRNG", "channel number out of range"},
|
||||
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{39, "EL3HLT", "level 3 halted"},
|
||||
{40, "EL3RST", "level 3 reset"},
|
||||
{41, "ELNRNG", "link number out of range"},
|
||||
{42, "EUNATCH", "protocol driver not attached"},
|
||||
{43, "ENOCSI", "no CSI structure available"},
|
||||
{44, "EL2HLT", "level 2 halted"},
|
||||
{45, "EDEADLK", "resource deadlock avoided"},
|
||||
{46, "ENOLCK", "no locks available"},
|
||||
{50, "EBADE", "invalid exchange"},
|
||||
{51, "EBADR", "invalid request descriptor"},
|
||||
{52, "EXFULL", "exchange full"},
|
||||
{53, "ENOANO", "no anode"},
|
||||
{54, "EBADRQC", "invalid request code"},
|
||||
{55, "EBADSLT", "invalid slot"},
|
||||
{56, "EDEADLOCK", "file locking deadlock error"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EMULTIHOP", "multihop attempted"},
|
||||
{77, "EBADMSG", "bad message"},
|
||||
{78, "ENAMETOOLONG", "file name too long"},
|
||||
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||
{80, "ENOTUNIQ", "name not unique on network"},
|
||||
{81, "EBADFD", "file descriptor in bad state"},
|
||||
{82, "EREMCHG", "remote address changed"},
|
||||
{83, "ELIBACC", "can not access a needed shared library"},
|
||||
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{89, "ENOSYS", "function not implemented"},
|
||||
{90, "ELOOP", "too many levels of symbolic links"},
|
||||
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||
{92, "ESTRPIPE", "streams pipe error"},
|
||||
{93, "ENOTEMPTY", "directory not empty"},
|
||||
{94, "EUSERS", "too many users"},
|
||||
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{96, "EDESTADDRREQ", "destination address required"},
|
||||
{97, "EMSGSIZE", "message too long"},
|
||||
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{99, "ENOPROTOOPT", "protocol not available"},
|
||||
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{122, "ENOTSUP", "operation not supported"},
|
||||
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{125, "EADDRINUSE", "address already in use"},
|
||||
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{127, "ENETDOWN", "network is down"},
|
||||
{128, "ENETUNREACH", "network is unreachable"},
|
||||
{129, "ENETRESET", "network dropped connection on reset"},
|
||||
{130, "ECONNABORTED", "software caused connection abort"},
|
||||
{131, "ECONNRESET", "connection reset by peer"},
|
||||
{132, "ENOBUFS", "no buffer space available"},
|
||||
{133, "EISCONN", "transport endpoint is already connected"},
|
||||
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{135, "EUCLEAN", "structure needs cleaning"},
|
||||
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{139, "EISNAM", "is a named type file"},
|
||||
{140, "EREMOTEIO", "remote I/O error"},
|
||||
{141, "EINIT", "unknown error 141"},
|
||||
{142, "EREMDEV", "unknown error 142"},
|
||||
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{145, "ETIMEDOUT", "connection timed out"},
|
||||
{146, "ECONNREFUSED", "connection refused"},
|
||||
{147, "EHOSTDOWN", "host is down"},
|
||||
{148, "EHOSTUNREACH", "no route to host"},
|
||||
{149, "EALREADY", "operation already in progress"},
|
||||
{150, "EINPROGRESS", "operation now in progress"},
|
||||
{151, "ESTALE", "stale file handle"},
|
||||
{158, "ECANCELED", "operation canceled"},
|
||||
{159, "ENOMEDIUM", "no medium found"},
|
||||
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{161, "ENOKEY", "required key not available"},
|
||||
{162, "EKEYEXPIRED", "key has expired"},
|
||||
{163, "EKEYREVOKED", "key has been revoked"},
|
||||
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||
{165, "EOWNERDEAD", "owner died"},
|
||||
{166, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{167, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{168, "EHWPOISON", "memory page has hardware error"},
|
||||
{1133, "EDQUOT", "disk quota exceeded"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "user defined signal 1",
|
||||
17: "user defined signal 2",
|
||||
18: "child exited",
|
||||
19: "power failure",
|
||||
20: "window changed",
|
||||
21: "urgent I/O condition",
|
||||
22: "I/O possible",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual timer expired",
|
||||
29: "profiling timer expired",
|
||||
30: "CPU time limit exceeded",
|
||||
31: "file size limit exceeded",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGUSR1", "user defined signal 1"},
|
||||
{17, "SIGUSR2", "user defined signal 2"},
|
||||
{18, "SIGCHLD", "child exited"},
|
||||
{19, "SIGPWR", "power failure"},
|
||||
{20, "SIGWINCH", "window changed"},
|
||||
{21, "SIGURG", "urgent I/O condition"},
|
||||
{22, "SIGIO", "I/O possible"},
|
||||
{23, "SIGSTOP", "stopped (signal)"},
|
||||
{24, "SIGTSTP", "stopped"},
|
||||
{25, "SIGCONT", "continued"},
|
||||
{26, "SIGTTIN", "stopped (tty input)"},
|
||||
{27, "SIGTTOU", "stopped (tty output)"},
|
||||
{28, "SIGVTALRM", "virtual timer expired"},
|
||||
{29, "SIGPROF", "profiling timer expired"},
|
||||
{30, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{31, "SIGXFSZ", "file size limit exceeded"},
|
||||
}
|
||||
|
634
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
634
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build ppc64,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x17
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x16
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40081270
|
||||
BLKBSZSET = 0x80081271
|
||||
BLKFLSBUF = 0x20001261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x8000
|
||||
BSDLY = 0x8000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0xff
|
||||
CBAUDEX = 0x0
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0xff0000
|
||||
CLOCAL = 0x8000
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x1000
|
||||
CR2 = 0x2000
|
||||
CR3 = 0x3000
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x3000
|
||||
CREAD = 0x800
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x400
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x1
|
||||
ECHONL = 0x10
|
||||
ECHOPRT = 0x20
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -481,6 +511,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +573,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x4000
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x100
|
||||
@ -792,12 +866,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x80
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x1000
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x400
|
||||
IXON = 0x200
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -893,9 +969,15 @@ const (
|
||||
MCL_CURRENT = 0x2000
|
||||
MCL_FUTURE = 0x4000
|
||||
MCL_ONFAULT = 0x8000
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -955,7 +1037,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -990,6 +1074,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NL2 = 0x200
|
||||
@ -1024,6 +1139,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80000000
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1031,7 +1148,9 @@ const (
|
||||
ONLCR = 0x2
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
@ -1116,16 +1235,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||
PERF_EVENT_IOC_ID = 0x40082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
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
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1169,6 +1292,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1214,11 +1338,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1232,6 +1363,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1277,6 +1409,7 @@ const (
|
||||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETEVRREGS = 0x15
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
@ -1346,6 +1479,11 @@ const (
|
||||
PT_VSR0 = 0x96
|
||||
PT_VSR31 = 0xd4
|
||||
PT_XER = 0x25
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1395,6 +1533,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x20007002
|
||||
RTC_AIE_ON = 0x20007001
|
||||
RTC_ALM_READ = 0x40247008
|
||||
RTC_ALM_SET = 0x80247007
|
||||
RTC_EPOCH_READ = 0x4008700d
|
||||
RTC_EPOCH_SET = 0x8008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4008700b
|
||||
RTC_IRQP_SET = 0x8008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x20007006
|
||||
RTC_PIE_ON = 0x20007005
|
||||
RTC_PLL_GET = 0x40207011
|
||||
RTC_PLL_SET = 0x80207012
|
||||
RTC_RD_TIME = 0x40247009
|
||||
RTC_SET_TIME = 0x8024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x20007004
|
||||
RTC_UIE_ON = 0x20007003
|
||||
RTC_VL_CLR = 0x20007014
|
||||
RTC_VL_READ = 0x40047013
|
||||
RTC_WIE_OFF = 0x20007010
|
||||
RTC_WIE_ON = 0x2000700f
|
||||
RTC_WKALM_RD = 0x40287010
|
||||
RTC_WKALM_SET = 0x8028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1531,6 +1696,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1615,6 +1782,23 @@ const (
|
||||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
@ -1725,6 +1909,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1746,6 +1932,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1931,7 +2118,27 @@ const (
|
||||
TIOCSTOP = 0x2000746f
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x400000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x801054d5
|
||||
TUNDETACHFILTER = 0x801054d6
|
||||
@ -1943,6 +2150,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
@ -1953,13 +2161,17 @@ const (
|
||||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0x10
|
||||
VEOF = 0x4
|
||||
VEOL = 0x6
|
||||
@ -2001,6 +2213,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -2010,7 +2302,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4000
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0xc00
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2190,172 +2484,180 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
58: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "EDEADLK", "resource deadlock avoided"},
|
||||
{36, "ENAMETOOLONG", "file name too long"},
|
||||
{37, "ENOLCK", "no locks available"},
|
||||
{38, "ENOSYS", "function not implemented"},
|
||||
{39, "ENOTEMPTY", "directory not empty"},
|
||||
{40, "ELOOP", "too many levels of symbolic links"},
|
||||
{42, "ENOMSG", "no message of desired type"},
|
||||
{43, "EIDRM", "identifier removed"},
|
||||
{44, "ECHRNG", "channel number out of range"},
|
||||
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{46, "EL3HLT", "level 3 halted"},
|
||||
{47, "EL3RST", "level 3 reset"},
|
||||
{48, "ELNRNG", "link number out of range"},
|
||||
{49, "EUNATCH", "protocol driver not attached"},
|
||||
{50, "ENOCSI", "no CSI structure available"},
|
||||
{51, "EL2HLT", "level 2 halted"},
|
||||
{52, "EBADE", "invalid exchange"},
|
||||
{53, "EBADR", "invalid request descriptor"},
|
||||
{54, "EXFULL", "exchange full"},
|
||||
{55, "ENOANO", "no anode"},
|
||||
{56, "EBADRQC", "invalid request code"},
|
||||
{57, "EBADSLT", "invalid slot"},
|
||||
{58, "EDEADLOCK", "file locking deadlock error"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{72, "EMULTIHOP", "multihop attempted"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EBADMSG", "bad message"},
|
||||
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||
{76, "ENOTUNIQ", "name not unique on network"},
|
||||
{77, "EBADFD", "file descriptor in bad state"},
|
||||
{78, "EREMCHG", "remote address changed"},
|
||||
{79, "ELIBACC", "can not access a needed shared library"},
|
||||
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||
{86, "ESTRPIPE", "streams pipe error"},
|
||||
{87, "EUSERS", "too many users"},
|
||||
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{89, "EDESTADDRREQ", "destination address required"},
|
||||
{90, "EMSGSIZE", "message too long"},
|
||||
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{92, "ENOPROTOOPT", "protocol not available"},
|
||||
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{95, "ENOTSUP", "operation not supported"},
|
||||
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{98, "EADDRINUSE", "address already in use"},
|
||||
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{100, "ENETDOWN", "network is down"},
|
||||
{101, "ENETUNREACH", "network is unreachable"},
|
||||
{102, "ENETRESET", "network dropped connection on reset"},
|
||||
{103, "ECONNABORTED", "software caused connection abort"},
|
||||
{104, "ECONNRESET", "connection reset by peer"},
|
||||
{105, "ENOBUFS", "no buffer space available"},
|
||||
{106, "EISCONN", "transport endpoint is already connected"},
|
||||
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{110, "ETIMEDOUT", "connection timed out"},
|
||||
{111, "ECONNREFUSED", "connection refused"},
|
||||
{112, "EHOSTDOWN", "host is down"},
|
||||
{113, "EHOSTUNREACH", "no route to host"},
|
||||
{114, "EALREADY", "operation already in progress"},
|
||||
{115, "EINPROGRESS", "operation now in progress"},
|
||||
{116, "ESTALE", "stale file handle"},
|
||||
{117, "EUCLEAN", "structure needs cleaning"},
|
||||
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{120, "EISNAM", "is a named type file"},
|
||||
{121, "EREMOTEIO", "remote I/O error"},
|
||||
{122, "EDQUOT", "disk quota exceeded"},
|
||||
{123, "ENOMEDIUM", "no medium found"},
|
||||
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{125, "ECANCELED", "operation canceled"},
|
||||
{126, "ENOKEY", "required key not available"},
|
||||
{127, "EKEYEXPIRED", "key has expired"},
|
||||
{128, "EKEYREVOKED", "key has been revoked"},
|
||||
{129, "EKEYREJECTED", "key was rejected by service"},
|
||||
{130, "EOWNERDEAD", "owner died"},
|
||||
{131, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{132, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{133, "EHWPOISON", "memory page has hardware error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGBUS", "bus error"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGUSR1", "user defined signal 1"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGUSR2", "user defined signal 2"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGSTKFLT", "stack fault"},
|
||||
{17, "SIGCHLD", "child exited"},
|
||||
{18, "SIGCONT", "continued"},
|
||||
{19, "SIGSTOP", "stopped (signal)"},
|
||||
{20, "SIGTSTP", "stopped"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGURG", "urgent I/O condition"},
|
||||
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window changed"},
|
||||
{29, "SIGIO", "I/O possible"},
|
||||
{30, "SIGPWR", "power failure"},
|
||||
{31, "SIGSYS", "bad system call"},
|
||||
}
|
||||
|
634
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
634
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build ppc64le,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x17
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x16
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40081270
|
||||
BLKBSZSET = 0x80081271
|
||||
BLKFLSBUF = 0x20001261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x8000
|
||||
BSDLY = 0x8000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0xff
|
||||
CBAUDEX = 0x0
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0xff0000
|
||||
CLOCAL = 0x8000
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x1000
|
||||
CR2 = 0x2000
|
||||
CR3 = 0x3000
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x3000
|
||||
CREAD = 0x800
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x400
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x1
|
||||
ECHONL = 0x10
|
||||
ECHOPRT = 0x20
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -481,6 +511,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +573,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x4000
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x100
|
||||
@ -792,12 +866,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x80
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x1000
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x400
|
||||
IXON = 0x200
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -893,9 +969,15 @@ const (
|
||||
MCL_CURRENT = 0x2000
|
||||
MCL_FUTURE = 0x4000
|
||||
MCL_ONFAULT = 0x8000
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -955,7 +1037,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -990,6 +1074,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NL2 = 0x200
|
||||
@ -1024,6 +1139,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80000000
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1031,7 +1148,9 @@ const (
|
||||
ONLCR = 0x2
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
@ -1116,16 +1235,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||
PERF_EVENT_IOC_ID = 0x40082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
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
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1169,6 +1292,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1214,11 +1338,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1232,6 +1363,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1277,6 +1409,7 @@ const (
|
||||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETEVRREGS = 0x15
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
@ -1346,6 +1479,11 @@ const (
|
||||
PT_VSR0 = 0x96
|
||||
PT_VSR31 = 0xd4
|
||||
PT_XER = 0x25
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1395,6 +1533,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x20007002
|
||||
RTC_AIE_ON = 0x20007001
|
||||
RTC_ALM_READ = 0x40247008
|
||||
RTC_ALM_SET = 0x80247007
|
||||
RTC_EPOCH_READ = 0x4008700d
|
||||
RTC_EPOCH_SET = 0x8008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4008700b
|
||||
RTC_IRQP_SET = 0x8008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x20007006
|
||||
RTC_PIE_ON = 0x20007005
|
||||
RTC_PLL_GET = 0x40207011
|
||||
RTC_PLL_SET = 0x80207012
|
||||
RTC_RD_TIME = 0x40247009
|
||||
RTC_SET_TIME = 0x8024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x20007004
|
||||
RTC_UIE_ON = 0x20007003
|
||||
RTC_VL_CLR = 0x20007014
|
||||
RTC_VL_READ = 0x40047013
|
||||
RTC_WIE_OFF = 0x20007010
|
||||
RTC_WIE_ON = 0x2000700f
|
||||
RTC_WKALM_RD = 0x40287010
|
||||
RTC_WKALM_SET = 0x8028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1531,6 +1696,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1615,6 +1782,23 @@ const (
|
||||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
@ -1725,6 +1909,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1746,6 +1932,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1931,7 +2118,27 @@ const (
|
||||
TIOCSTOP = 0x2000746f
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x400000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x801054d5
|
||||
TUNDETACHFILTER = 0x801054d6
|
||||
@ -1943,6 +2150,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
@ -1953,13 +2161,17 @@ const (
|
||||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0x10
|
||||
VEOF = 0x4
|
||||
VEOL = 0x6
|
||||
@ -2001,6 +2213,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -2010,7 +2302,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4000
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0xc00
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2190,172 +2484,180 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
58: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "EDEADLK", "resource deadlock avoided"},
|
||||
{36, "ENAMETOOLONG", "file name too long"},
|
||||
{37, "ENOLCK", "no locks available"},
|
||||
{38, "ENOSYS", "function not implemented"},
|
||||
{39, "ENOTEMPTY", "directory not empty"},
|
||||
{40, "ELOOP", "too many levels of symbolic links"},
|
||||
{42, "ENOMSG", "no message of desired type"},
|
||||
{43, "EIDRM", "identifier removed"},
|
||||
{44, "ECHRNG", "channel number out of range"},
|
||||
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{46, "EL3HLT", "level 3 halted"},
|
||||
{47, "EL3RST", "level 3 reset"},
|
||||
{48, "ELNRNG", "link number out of range"},
|
||||
{49, "EUNATCH", "protocol driver not attached"},
|
||||
{50, "ENOCSI", "no CSI structure available"},
|
||||
{51, "EL2HLT", "level 2 halted"},
|
||||
{52, "EBADE", "invalid exchange"},
|
||||
{53, "EBADR", "invalid request descriptor"},
|
||||
{54, "EXFULL", "exchange full"},
|
||||
{55, "ENOANO", "no anode"},
|
||||
{56, "EBADRQC", "invalid request code"},
|
||||
{57, "EBADSLT", "invalid slot"},
|
||||
{58, "EDEADLOCK", "file locking deadlock error"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{72, "EMULTIHOP", "multihop attempted"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EBADMSG", "bad message"},
|
||||
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||
{76, "ENOTUNIQ", "name not unique on network"},
|
||||
{77, "EBADFD", "file descriptor in bad state"},
|
||||
{78, "EREMCHG", "remote address changed"},
|
||||
{79, "ELIBACC", "can not access a needed shared library"},
|
||||
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||
{86, "ESTRPIPE", "streams pipe error"},
|
||||
{87, "EUSERS", "too many users"},
|
||||
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{89, "EDESTADDRREQ", "destination address required"},
|
||||
{90, "EMSGSIZE", "message too long"},
|
||||
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{92, "ENOPROTOOPT", "protocol not available"},
|
||||
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{95, "ENOTSUP", "operation not supported"},
|
||||
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{98, "EADDRINUSE", "address already in use"},
|
||||
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{100, "ENETDOWN", "network is down"},
|
||||
{101, "ENETUNREACH", "network is unreachable"},
|
||||
{102, "ENETRESET", "network dropped connection on reset"},
|
||||
{103, "ECONNABORTED", "software caused connection abort"},
|
||||
{104, "ECONNRESET", "connection reset by peer"},
|
||||
{105, "ENOBUFS", "no buffer space available"},
|
||||
{106, "EISCONN", "transport endpoint is already connected"},
|
||||
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{110, "ETIMEDOUT", "connection timed out"},
|
||||
{111, "ECONNREFUSED", "connection refused"},
|
||||
{112, "EHOSTDOWN", "host is down"},
|
||||
{113, "EHOSTUNREACH", "no route to host"},
|
||||
{114, "EALREADY", "operation already in progress"},
|
||||
{115, "EINPROGRESS", "operation now in progress"},
|
||||
{116, "ESTALE", "stale file handle"},
|
||||
{117, "EUCLEAN", "structure needs cleaning"},
|
||||
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{120, "EISNAM", "is a named type file"},
|
||||
{121, "EREMOTEIO", "remote I/O error"},
|
||||
{122, "EDQUOT", "disk quota exceeded"},
|
||||
{123, "ENOMEDIUM", "no medium found"},
|
||||
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{125, "ECANCELED", "operation canceled"},
|
||||
{126, "ENOKEY", "required key not available"},
|
||||
{127, "EKEYEXPIRED", "key has expired"},
|
||||
{128, "EKEYREVOKED", "key has been revoked"},
|
||||
{129, "EKEYREJECTED", "key was rejected by service"},
|
||||
{130, "EOWNERDEAD", "owner died"},
|
||||
{131, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{132, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{133, "EHWPOISON", "memory page has hardware error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGBUS", "bus error"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGUSR1", "user defined signal 1"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGUSR2", "user defined signal 2"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGSTKFLT", "stack fault"},
|
||||
{17, "SIGCHLD", "child exited"},
|
||||
{18, "SIGCONT", "continued"},
|
||||
{19, "SIGSTOP", "stopped (signal)"},
|
||||
{20, "SIGTSTP", "stopped"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGURG", "urgent I/O condition"},
|
||||
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window changed"},
|
||||
{29, "SIGIO", "I/O possible"},
|
||||
{30, "SIGPWR", "power failure"},
|
||||
{31, "SIGSYS", "bad system call"},
|
||||
}
|
||||
|
632
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
632
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
// +build s390x,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
|
||||
|
||||
package unix
|
||||
@ -11,6 +11,11 @@ package unix
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
@ -66,6 +71,7 @@ const (
|
||||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
@ -133,6 +139,7 @@ const (
|
||||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
@ -164,6 +171,9 @@ const (
|
||||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x80081270
|
||||
BLKBSZSET = 0x40081271
|
||||
BLKFLSBUF = 0x1261
|
||||
@ -188,6 +198,7 @@ const (
|
||||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
@ -229,6 +240,8 @@ const (
|
||||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
@ -252,6 +265,8 @@ const (
|
||||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
@ -294,10 +309,12 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
@ -312,6 +329,9 @@ const (
|
||||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -328,9 +348,12 @@ const (
|
||||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
@ -392,6 +415,7 @@ const (
|
||||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
@ -425,6 +449,7 @@ const (
|
||||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
@ -445,9 +470,14 @@ const (
|
||||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
@ -481,6 +511,7 @@ const (
|
||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
@ -542,6 +573,49 @@ const (
|
||||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
@ -792,12 +866,14 @@ const (
|
||||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
@ -893,9 +969,15 @@ const (
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
@ -955,7 +1037,9 @@ const (
|
||||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
@ -990,6 +1074,37 @@ const (
|
||||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
@ -1022,6 +1137,8 @@ const (
|
||||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
@ -1029,7 +1146,9 @@ const (
|
||||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
@ -1114,16 +1233,20 @@ const (
|
||||
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||
PERF_EVENT_IOC_ID = 0x80082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
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
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
@ -1166,6 +1289,7 @@ const (
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
@ -1211,11 +1335,18 @@ const (
|
||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
@ -1229,6 +1360,7 @@ const (
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
@ -1281,6 +1413,7 @@ const (
|
||||
PTRACE_POKE_SYSTEM_CALL = 0x5008
|
||||
PTRACE_PROT = 0x15
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
PTRACE_SETREGS = 0xd
|
||||
@ -1350,6 +1483,11 @@ const (
|
||||
PT_ORIGGPR2 = 0xd0
|
||||
PT_PSWADDR = 0x8
|
||||
PT_PSWMASK = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
@ -1399,6 +1537,33 @@ const (
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x7002
|
||||
RTC_AIE_ON = 0x7001
|
||||
RTC_ALM_READ = 0x80247008
|
||||
RTC_ALM_SET = 0x40247007
|
||||
RTC_EPOCH_READ = 0x8008700d
|
||||
RTC_EPOCH_SET = 0x4008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x8008700b
|
||||
RTC_IRQP_SET = 0x4008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x7006
|
||||
RTC_PIE_ON = 0x7005
|
||||
RTC_PLL_GET = 0x80207011
|
||||
RTC_PLL_SET = 0x40207012
|
||||
RTC_RD_TIME = 0x80247009
|
||||
RTC_SET_TIME = 0x4024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x7004
|
||||
RTC_UIE_ON = 0x7003
|
||||
RTC_VL_CLR = 0x7014
|
||||
RTC_VL_READ = 0x80047013
|
||||
RTC_WIE_OFF = 0x7010
|
||||
RTC_WIE_ON = 0x700f
|
||||
RTC_WKALM_RD = 0x80287010
|
||||
RTC_WKALM_SET = 0x4028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
@ -1535,6 +1700,8 @@ const (
|
||||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
@ -1619,6 +1786,23 @@ const (
|
||||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
@ -1729,6 +1913,8 @@ const (
|
||||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
@ -1750,6 +1936,7 @@ const (
|
||||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
@ -1931,7 +2118,27 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x401054d5
|
||||
TUNDETACHFILTER = 0x401054d6
|
||||
@ -1943,6 +2150,7 @@ const (
|
||||
TUNGETVNETHDRSZ = 0x800454d7
|
||||
TUNGETVNETLE = 0x800454dd
|
||||
TUNSETDEBUG = 0x400454c9
|
||||
TUNSETFILTEREBPF = 0x800454e1
|
||||
TUNSETGROUP = 0x400454ce
|
||||
TUNSETIFF = 0x400454ca
|
||||
TUNSETIFINDEX = 0x400454da
|
||||
@ -1953,13 +2161,17 @@ const (
|
||||
TUNSETPERSIST = 0x400454cb
|
||||
TUNSETQUEUE = 0x400454d9
|
||||
TUNSETSNDBUF = 0x400454d4
|
||||
TUNSETSTEERINGEBPF = 0x800454e0
|
||||
TUNSETTXFILTER = 0x400454d1
|
||||
TUNSETVNETBE = 0x400454de
|
||||
TUNSETVNETHDRSZ = 0x400454d8
|
||||
TUNSETVNETLE = 0x400454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x4
|
||||
VEOL = 0xb
|
||||
@ -2001,6 +2213,86 @@ const (
|
||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
@ -2010,7 +2302,9 @@ const (
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -2190,171 +2484,179 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device or resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "invalid cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "numerical result out of range"},
|
||||
{35, "EDEADLK", "resource deadlock avoided"},
|
||||
{36, "ENAMETOOLONG", "file name too long"},
|
||||
{37, "ENOLCK", "no locks available"},
|
||||
{38, "ENOSYS", "function not implemented"},
|
||||
{39, "ENOTEMPTY", "directory not empty"},
|
||||
{40, "ELOOP", "too many levels of symbolic links"},
|
||||
{42, "ENOMSG", "no message of desired type"},
|
||||
{43, "EIDRM", "identifier removed"},
|
||||
{44, "ECHRNG", "channel number out of range"},
|
||||
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{46, "EL3HLT", "level 3 halted"},
|
||||
{47, "EL3RST", "level 3 reset"},
|
||||
{48, "ELNRNG", "link number out of range"},
|
||||
{49, "EUNATCH", "protocol driver not attached"},
|
||||
{50, "ENOCSI", "no CSI structure available"},
|
||||
{51, "EL2HLT", "level 2 halted"},
|
||||
{52, "EBADE", "invalid exchange"},
|
||||
{53, "EBADR", "invalid request descriptor"},
|
||||
{54, "EXFULL", "exchange full"},
|
||||
{55, "ENOANO", "no anode"},
|
||||
{56, "EBADRQC", "invalid request code"},
|
||||
{57, "EBADSLT", "invalid slot"},
|
||||
{59, "EBFONT", "bad font file format"},
|
||||
{60, "ENOSTR", "device not a stream"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of streams resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{72, "EMULTIHOP", "multihop attempted"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EBADMSG", "bad message"},
|
||||
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||
{76, "ENOTUNIQ", "name not unique on network"},
|
||||
{77, "EBADFD", "file descriptor in bad state"},
|
||||
{78, "EREMCHG", "remote address changed"},
|
||||
{79, "ELIBACC", "can not access a needed shared library"},
|
||||
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||
{86, "ESTRPIPE", "streams pipe error"},
|
||||
{87, "EUSERS", "too many users"},
|
||||
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{89, "EDESTADDRREQ", "destination address required"},
|
||||
{90, "EMSGSIZE", "message too long"},
|
||||
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{92, "ENOPROTOOPT", "protocol not available"},
|
||||
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{95, "ENOTSUP", "operation not supported"},
|
||||
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{98, "EADDRINUSE", "address already in use"},
|
||||
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{100, "ENETDOWN", "network is down"},
|
||||
{101, "ENETUNREACH", "network is unreachable"},
|
||||
{102, "ENETRESET", "network dropped connection on reset"},
|
||||
{103, "ECONNABORTED", "software caused connection abort"},
|
||||
{104, "ECONNRESET", "connection reset by peer"},
|
||||
{105, "ENOBUFS", "no buffer space available"},
|
||||
{106, "EISCONN", "transport endpoint is already connected"},
|
||||
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{110, "ETIMEDOUT", "connection timed out"},
|
||||
{111, "ECONNREFUSED", "connection refused"},
|
||||
{112, "EHOSTDOWN", "host is down"},
|
||||
{113, "EHOSTUNREACH", "no route to host"},
|
||||
{114, "EALREADY", "operation already in progress"},
|
||||
{115, "EINPROGRESS", "operation now in progress"},
|
||||
{116, "ESTALE", "stale file handle"},
|
||||
{117, "EUCLEAN", "structure needs cleaning"},
|
||||
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{120, "EISNAM", "is a named type file"},
|
||||
{121, "EREMOTEIO", "remote I/O error"},
|
||||
{122, "EDQUOT", "disk quota exceeded"},
|
||||
{123, "ENOMEDIUM", "no medium found"},
|
||||
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{125, "ECANCELED", "operation canceled"},
|
||||
{126, "ENOKEY", "required key not available"},
|
||||
{127, "EKEYEXPIRED", "key has expired"},
|
||||
{128, "EKEYREVOKED", "key has been revoked"},
|
||||
{129, "EKEYREJECTED", "key was rejected by service"},
|
||||
{130, "EOWNERDEAD", "owner died"},
|
||||
{131, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{132, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{133, "EHWPOISON", "memory page has hardware error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||
{6, "SIGABRT", "aborted"},
|
||||
{7, "SIGBUS", "bus error"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGUSR1", "user defined signal 1"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGUSR2", "user defined signal 2"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGSTKFLT", "stack fault"},
|
||||
{17, "SIGCHLD", "child exited"},
|
||||
{18, "SIGCONT", "continued"},
|
||||
{19, "SIGSTOP", "stopped (signal)"},
|
||||
{20, "SIGTSTP", "stopped"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGURG", "urgent I/O condition"},
|
||||
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window changed"},
|
||||
{29, "SIGIO", "I/O possible"},
|
||||
{30, "SIGPWR", "power failure"},
|
||||
{31, "SIGSYS", "bad system call"},
|
||||
}
|
||||
|
2
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
@ -1,5 +1,5 @@
|
||||
// mkerrors.sh -m64
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
// Code generated by the command above; DO NOT EDIT.
|
||||
|
||||
// +build sparc64,linux
|
||||
|
||||
|
269
vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
generated
vendored
269
vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
generated
vendored
@ -159,6 +159,7 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CREAD = 0x800
|
||||
CRTSCTS = 0x10000
|
||||
CS5 = 0x0
|
||||
CS6 = 0x100
|
||||
CS7 = 0x200
|
||||
@ -1583,137 +1584,145 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large or too small",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol option not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "connection timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "illegal byte sequence",
|
||||
86: "not supported",
|
||||
87: "operation Canceled",
|
||||
88: "bad or Corrupt message",
|
||||
89: "no message available",
|
||||
90: "no STREAM resources",
|
||||
91: "not a STREAM",
|
||||
92: "STREAM ioctl timeout",
|
||||
93: "attribute not found",
|
||||
94: "multihop attempted",
|
||||
95: "link has been severed",
|
||||
96: "protocol error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large or too small"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol option not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "connection timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EILSEQ", "illegal byte sequence"},
|
||||
{86, "ENOTSUP", "not supported"},
|
||||
{87, "ECANCELED", "operation Canceled"},
|
||||
{88, "EBADMSG", "bad or Corrupt message"},
|
||||
{89, "ENODATA", "no message available"},
|
||||
{90, "ENOSR", "no STREAM resources"},
|
||||
{91, "ENOSTR", "not a STREAM"},
|
||||
{92, "ETIME", "STREAM ioctl timeout"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EMULTIHOP", "multihop attempted"},
|
||||
{95, "ENOLINK", "link has been severed"},
|
||||
{96, "ELAST", "protocol error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "stopped (signal)",
|
||||
18: "stopped",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "power fail/restart",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "stopped (signal)"},
|
||||
{18, "SIGTSTP", "stopped"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGPWR", "power fail/restart"},
|
||||
}
|
||||
|
269
vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
generated
vendored
269
vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
generated
vendored
@ -159,6 +159,7 @@ const (
|
||||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CREAD = 0x800
|
||||
CRTSCTS = 0x10000
|
||||
CS5 = 0x0
|
||||
CS6 = 0x100
|
||||
CS7 = 0x200
|
||||
@ -1573,137 +1574,145 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large or too small",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol option not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "connection timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "illegal byte sequence",
|
||||
86: "not supported",
|
||||
87: "operation Canceled",
|
||||
88: "bad or Corrupt message",
|
||||
89: "no message available",
|
||||
90: "no STREAM resources",
|
||||
91: "not a STREAM",
|
||||
92: "STREAM ioctl timeout",
|
||||
93: "attribute not found",
|
||||
94: "multihop attempted",
|
||||
95: "link has been severed",
|
||||
96: "protocol error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large or too small"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol option not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "connection timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EILSEQ", "illegal byte sequence"},
|
||||
{86, "ENOTSUP", "not supported"},
|
||||
{87, "ECANCELED", "operation Canceled"},
|
||||
{88, "EBADMSG", "bad or Corrupt message"},
|
||||
{89, "ENODATA", "no message available"},
|
||||
{90, "ENOSR", "no STREAM resources"},
|
||||
{91, "ENOSTR", "not a STREAM"},
|
||||
{92, "ETIME", "STREAM ioctl timeout"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EMULTIHOP", "multihop attempted"},
|
||||
{95, "ENOLINK", "link has been severed"},
|
||||
{96, "ELAST", "protocol error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "stopped (signal)",
|
||||
18: "stopped",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "power fail/restart",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "stopped (signal)"},
|
||||
{18, "SIGTSTP", "stopped"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGPWR", "power fail/restart"},
|
||||
}
|
||||
|
269
vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
generated
vendored
269
vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
generated
vendored
@ -151,6 +151,7 @@ const (
|
||||
CFLUSH = 0xf
|
||||
CLOCAL = 0x8000
|
||||
CREAD = 0x800
|
||||
CRTSCTS = 0x10000
|
||||
CS5 = 0x0
|
||||
CS6 = 0x100
|
||||
CS7 = 0x200
|
||||
@ -1562,137 +1563,145 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large or too small",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol option not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "connection timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "illegal byte sequence",
|
||||
86: "not supported",
|
||||
87: "operation Canceled",
|
||||
88: "bad or Corrupt message",
|
||||
89: "no message available",
|
||||
90: "no STREAM resources",
|
||||
91: "not a STREAM",
|
||||
92: "STREAM ioctl timeout",
|
||||
93: "attribute not found",
|
||||
94: "multihop attempted",
|
||||
95: "link has been severed",
|
||||
96: "protocol error",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large or too small"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol option not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "connection timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EILSEQ", "illegal byte sequence"},
|
||||
{86, "ENOTSUP", "not supported"},
|
||||
{87, "ECANCELED", "operation Canceled"},
|
||||
{88, "EBADMSG", "bad or Corrupt message"},
|
||||
{89, "ENODATA", "no message available"},
|
||||
{90, "ENOSR", "no STREAM resources"},
|
||||
{91, "ENOSTR", "not a STREAM"},
|
||||
{92, "ETIME", "STREAM ioctl timeout"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EMULTIHOP", "multihop attempted"},
|
||||
{95, "ENOLINK", "link has been severed"},
|
||||
{96, "ELAST", "protocol error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "stopped (signal)",
|
||||
18: "stopped",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "power fail/restart",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "stopped (signal)"},
|
||||
{18, "SIGTSTP", "stopped"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGPWR", "power fail/restart"},
|
||||
}
|
||||
|
259
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
259
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
@ -147,6 +147,7 @@ const (
|
||||
CFLUSH = 0xf
|
||||
CLOCAL = 0x8000
|
||||
CREAD = 0x800
|
||||
CRTSCTS = 0x10000
|
||||
CS5 = 0x0
|
||||
CS6 = 0x100
|
||||
CS7 = 0x200
|
||||
@ -1460,132 +1461,140 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "connection timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "IPsec processing failure",
|
||||
83: "attribute not found",
|
||||
84: "illegal byte sequence",
|
||||
85: "no medium found",
|
||||
86: "wrong medium type",
|
||||
87: "value too large to be stored in data type",
|
||||
88: "operation canceled",
|
||||
89: "identifier removed",
|
||||
90: "no message of desired type",
|
||||
91: "not supported",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EWOULDBLOCK", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disk quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC program not available"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIPSEC", "IPsec processing failure"},
|
||||
{83, "ENOATTR", "attribute not found"},
|
||||
{84, "EILSEQ", "illegal byte sequence"},
|
||||
{85, "ENOMEDIUM", "no medium found"},
|
||||
{86, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{87, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{88, "ECANCELED", "operation canceled"},
|
||||
{89, "EIDRM", "identifier removed"},
|
||||
{90, "ENOMSG", "no message of desired type"},
|
||||
{91, "ELAST", "not supported"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "stopped (signal)",
|
||||
18: "stopped",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "thread AST",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "thread AST"},
|
||||
}
|
||||
|
506
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
506
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
@ -45,6 +45,7 @@ const (
|
||||
AF_SNA = 0xb
|
||||
AF_UNIX = 0x1
|
||||
AF_UNSPEC = 0x0
|
||||
ALTWERASE = 0x200
|
||||
ARPHRD_ETHER = 0x1
|
||||
ARPHRD_FRELAY = 0xf
|
||||
ARPHRD_IEEE1394 = 0x18
|
||||
@ -146,7 +147,14 @@ const (
|
||||
BRKINT = 0x2
|
||||
CFLUSH = 0xf
|
||||
CLOCAL = 0x8000
|
||||
CLOCK_BOOTTIME = 0x6
|
||||
CLOCK_MONOTONIC = 0x3
|
||||
CLOCK_PROCESS_CPUTIME_ID = 0x2
|
||||
CLOCK_REALTIME = 0x0
|
||||
CLOCK_THREAD_CPUTIME_ID = 0x4
|
||||
CLOCK_UPTIME = 0x5
|
||||
CREAD = 0x800
|
||||
CRTSCTS = 0x10000
|
||||
CS5 = 0x0
|
||||
CS6 = 0x100
|
||||
CS7 = 0x200
|
||||
@ -177,6 +185,7 @@ const (
|
||||
DLT_LOOP = 0xc
|
||||
DLT_MPLS = 0xdb
|
||||
DLT_NULL = 0x0
|
||||
DLT_OPENFLOW = 0x10b
|
||||
DLT_PFLOG = 0x75
|
||||
DLT_PFSYNC = 0x12
|
||||
DLT_PPP = 0x9
|
||||
@ -187,6 +196,23 @@ const (
|
||||
DLT_RAW = 0xe
|
||||
DLT_SLIP = 0x8
|
||||
DLT_SLIP_BSDOS = 0xf
|
||||
DLT_USBPCAP = 0xf9
|
||||
DLT_USER0 = 0x93
|
||||
DLT_USER1 = 0x94
|
||||
DLT_USER10 = 0x9d
|
||||
DLT_USER11 = 0x9e
|
||||
DLT_USER12 = 0x9f
|
||||
DLT_USER13 = 0xa0
|
||||
DLT_USER14 = 0xa1
|
||||
DLT_USER15 = 0xa2
|
||||
DLT_USER2 = 0x95
|
||||
DLT_USER3 = 0x96
|
||||
DLT_USER4 = 0x97
|
||||
DLT_USER5 = 0x98
|
||||
DLT_USER6 = 0x99
|
||||
DLT_USER7 = 0x9a
|
||||
DLT_USER8 = 0x9b
|
||||
DLT_USER9 = 0x9c
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -400,27 +426,38 @@ const (
|
||||
ETHER_CRC_POLY_LE = 0xedb88320
|
||||
ETHER_HDR_LEN = 0xe
|
||||
ETHER_MAX_DIX_LEN = 0x600
|
||||
ETHER_MAX_HARDMTU_LEN = 0xff9b
|
||||
ETHER_MAX_LEN = 0x5ee
|
||||
ETHER_MIN_LEN = 0x40
|
||||
ETHER_TYPE_LEN = 0x2
|
||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||
EVFILT_AIO = -0x3
|
||||
EVFILT_DEVICE = -0x8
|
||||
EVFILT_PROC = -0x5
|
||||
EVFILT_READ = -0x1
|
||||
EVFILT_SIGNAL = -0x6
|
||||
EVFILT_SYSCOUNT = 0x7
|
||||
EVFILT_SYSCOUNT = 0x8
|
||||
EVFILT_TIMER = -0x7
|
||||
EVFILT_VNODE = -0x4
|
||||
EVFILT_WRITE = -0x2
|
||||
EVL_ENCAPLEN = 0x4
|
||||
EVL_PRIO_BITS = 0xd
|
||||
EVL_PRIO_MAX = 0x7
|
||||
EVL_VLID_MASK = 0xfff
|
||||
EVL_VLID_MAX = 0xffe
|
||||
EVL_VLID_MIN = 0x1
|
||||
EVL_VLID_NULL = 0x0
|
||||
EV_ADD = 0x1
|
||||
EV_CLEAR = 0x20
|
||||
EV_DELETE = 0x2
|
||||
EV_DISABLE = 0x8
|
||||
EV_DISPATCH = 0x80
|
||||
EV_ENABLE = 0x4
|
||||
EV_EOF = 0x8000
|
||||
EV_ERROR = 0x4000
|
||||
EV_FLAG1 = 0x2000
|
||||
EV_ONESHOT = 0x10
|
||||
EV_RECEIPT = 0x40
|
||||
EV_SYSFLAGS = 0xf000
|
||||
EXTA = 0x4b00
|
||||
EXTB = 0x9600
|
||||
@ -434,7 +471,7 @@ const (
|
||||
F_GETFL = 0x3
|
||||
F_GETLK = 0x7
|
||||
F_GETOWN = 0x5
|
||||
F_OK = 0x0
|
||||
F_ISATTY = 0xb
|
||||
F_RDLCK = 0x1
|
||||
F_SETFD = 0x2
|
||||
F_SETFL = 0x4
|
||||
@ -451,7 +488,6 @@ const (
|
||||
IEXTEN = 0x400
|
||||
IFAN_ARRIVAL = 0x0
|
||||
IFAN_DEPARTURE = 0x1
|
||||
IFA_ROUTE = 0x1
|
||||
IFF_ALLMULTI = 0x200
|
||||
IFF_BROADCAST = 0x2
|
||||
IFF_CANTCHANGE = 0x8e52
|
||||
@ -462,12 +498,12 @@ const (
|
||||
IFF_LOOPBACK = 0x8
|
||||
IFF_MULTICAST = 0x8000
|
||||
IFF_NOARP = 0x80
|
||||
IFF_NOTRAILERS = 0x20
|
||||
IFF_OACTIVE = 0x400
|
||||
IFF_POINTOPOINT = 0x10
|
||||
IFF_PROMISC = 0x100
|
||||
IFF_RUNNING = 0x40
|
||||
IFF_SIMPLEX = 0x800
|
||||
IFF_STATICARP = 0x20
|
||||
IFF_UP = 0x1
|
||||
IFNAMSIZ = 0x10
|
||||
IFT_1822 = 0x2
|
||||
@ -596,6 +632,7 @@ const (
|
||||
IFT_LINEGROUP = 0xd2
|
||||
IFT_LOCALTALK = 0x2a
|
||||
IFT_LOOP = 0x18
|
||||
IFT_MBIM = 0xfa
|
||||
IFT_MEDIAMAILOVERIP = 0x8b
|
||||
IFT_MFSIGLINK = 0xa7
|
||||
IFT_MIOX25 = 0x26
|
||||
@ -720,8 +757,6 @@ const (
|
||||
IPPROTO_AH = 0x33
|
||||
IPPROTO_CARP = 0x70
|
||||
IPPROTO_DIVERT = 0x102
|
||||
IPPROTO_DIVERT_INIT = 0x2
|
||||
IPPROTO_DIVERT_RESP = 0x1
|
||||
IPPROTO_DONE = 0x101
|
||||
IPPROTO_DSTOPTS = 0x3c
|
||||
IPPROTO_EGP = 0x8
|
||||
@ -778,6 +813,7 @@ const (
|
||||
IPV6_LEAVE_GROUP = 0xd
|
||||
IPV6_MAXHLIM = 0xff
|
||||
IPV6_MAXPACKET = 0xffff
|
||||
IPV6_MINHOPCOUNT = 0x41
|
||||
IPV6_MMTU = 0x500
|
||||
IPV6_MULTICAST_HOPS = 0xa
|
||||
IPV6_MULTICAST_IF = 0x9
|
||||
@ -817,12 +853,12 @@ const (
|
||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||
IP_DF = 0x4000
|
||||
IP_DIVERTFL = 0x1022
|
||||
IP_DROP_MEMBERSHIP = 0xd
|
||||
IP_ESP_NETWORK_LEVEL = 0x16
|
||||
IP_ESP_TRANS_LEVEL = 0x15
|
||||
IP_HDRINCL = 0x2
|
||||
IP_IPCOMP_LEVEL = 0x1d
|
||||
IP_IPDEFTTL = 0x25
|
||||
IP_IPSECFLOWINFO = 0x24
|
||||
IP_IPSEC_LOCAL_AUTH = 0x1b
|
||||
IP_IPSEC_LOCAL_CRED = 0x19
|
||||
@ -856,10 +892,12 @@ const (
|
||||
IP_RETOPTS = 0x8
|
||||
IP_RF = 0x8000
|
||||
IP_RTABLE = 0x1021
|
||||
IP_SENDSRCADDR = 0x7
|
||||
IP_TOS = 0x3
|
||||
IP_TTL = 0x4
|
||||
ISIG = 0x80
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x1000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x400
|
||||
IXON = 0x200
|
||||
@ -880,25 +918,28 @@ const (
|
||||
MADV_SPACEAVAIL = 0x5
|
||||
MADV_WILLNEED = 0x3
|
||||
MAP_ANON = 0x1000
|
||||
MAP_COPY = 0x4
|
||||
MAP_ANONYMOUS = 0x1000
|
||||
MAP_COPY = 0x2
|
||||
MAP_FILE = 0x0
|
||||
MAP_FIXED = 0x10
|
||||
MAP_FLAGMASK = 0x1ff7
|
||||
MAP_HASSEMAPHORE = 0x200
|
||||
MAP_INHERIT = 0x80
|
||||
MAP_FLAGMASK = 0x7ff7
|
||||
MAP_HASSEMAPHORE = 0x0
|
||||
MAP_INHERIT = 0x0
|
||||
MAP_INHERIT_COPY = 0x1
|
||||
MAP_INHERIT_DONATE_COPY = 0x3
|
||||
MAP_INHERIT_NONE = 0x2
|
||||
MAP_INHERIT_SHARE = 0x0
|
||||
MAP_NOEXTEND = 0x100
|
||||
MAP_NORESERVE = 0x40
|
||||
MAP_INHERIT_ZERO = 0x3
|
||||
MAP_NOEXTEND = 0x0
|
||||
MAP_NORESERVE = 0x0
|
||||
MAP_PRIVATE = 0x2
|
||||
MAP_RENAME = 0x20
|
||||
MAP_RENAME = 0x0
|
||||
MAP_SHARED = 0x1
|
||||
MAP_TRYFIXED = 0x400
|
||||
MAP_STACK = 0x4000
|
||||
MAP_TRYFIXED = 0x0
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MSG_BCAST = 0x100
|
||||
MSG_CMSG_CLOEXEC = 0x800
|
||||
MSG_CTRUNC = 0x20
|
||||
MSG_DONTROUTE = 0x4
|
||||
MSG_DONTWAIT = 0x80
|
||||
@ -916,11 +957,14 @@ const (
|
||||
NET_RT_DUMP = 0x1
|
||||
NET_RT_FLAGS = 0x2
|
||||
NET_RT_IFLIST = 0x3
|
||||
NET_RT_MAXID = 0x6
|
||||
NET_RT_IFNAMES = 0x6
|
||||
NET_RT_MAXID = 0x7
|
||||
NET_RT_STATS = 0x4
|
||||
NET_RT_TABLE = 0x5
|
||||
NOFLSH = 0x80000000
|
||||
NOKERNINFO = 0x2000000
|
||||
NOTE_ATTRIB = 0x8
|
||||
NOTE_CHANGE = 0x1
|
||||
NOTE_CHILD = 0x4
|
||||
NOTE_DELETE = 0x1
|
||||
NOTE_EOF = 0x2
|
||||
@ -939,11 +983,13 @@ const (
|
||||
NOTE_TRUNCATE = 0x80
|
||||
NOTE_WRITE = 0x2
|
||||
OCRNL = 0x10
|
||||
OLCUC = 0x20
|
||||
ONLCR = 0x2
|
||||
ONLRET = 0x80
|
||||
ONOCR = 0x40
|
||||
ONOEOT = 0x8
|
||||
OPOST = 0x1
|
||||
OXTABS = 0x4
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x8
|
||||
O_ASYNC = 0x40
|
||||
@ -981,23 +1027,32 @@ const (
|
||||
RLIMIT_CPU = 0x0
|
||||
RLIMIT_DATA = 0x2
|
||||
RLIMIT_FSIZE = 0x1
|
||||
RLIMIT_MEMLOCK = 0x6
|
||||
RLIMIT_NOFILE = 0x8
|
||||
RLIMIT_NPROC = 0x7
|
||||
RLIMIT_RSS = 0x5
|
||||
RLIMIT_STACK = 0x3
|
||||
RLIM_INFINITY = 0x7fffffffffffffff
|
||||
RTAX_AUTHOR = 0x6
|
||||
RTAX_BFD = 0xb
|
||||
RTAX_BRD = 0x7
|
||||
RTAX_DNS = 0xc
|
||||
RTAX_DST = 0x0
|
||||
RTAX_GATEWAY = 0x1
|
||||
RTAX_GENMASK = 0x3
|
||||
RTAX_IFA = 0x5
|
||||
RTAX_IFP = 0x4
|
||||
RTAX_LABEL = 0xa
|
||||
RTAX_MAX = 0xb
|
||||
RTAX_MAX = 0xf
|
||||
RTAX_NETMASK = 0x2
|
||||
RTAX_SEARCH = 0xe
|
||||
RTAX_SRC = 0x8
|
||||
RTAX_SRCMASK = 0x9
|
||||
RTAX_STATIC = 0xd
|
||||
RTA_AUTHOR = 0x40
|
||||
RTA_BFD = 0x800
|
||||
RTA_BRD = 0x80
|
||||
RTA_DNS = 0x1000
|
||||
RTA_DST = 0x1
|
||||
RTA_GATEWAY = 0x2
|
||||
RTA_GENMASK = 0x8
|
||||
@ -1005,34 +1060,39 @@ const (
|
||||
RTA_IFP = 0x10
|
||||
RTA_LABEL = 0x400
|
||||
RTA_NETMASK = 0x4
|
||||
RTA_SEARCH = 0x4000
|
||||
RTA_SRC = 0x100
|
||||
RTA_SRCMASK = 0x200
|
||||
RTA_STATIC = 0x2000
|
||||
RTF_ANNOUNCE = 0x4000
|
||||
RTF_BFD = 0x1000000
|
||||
RTF_BLACKHOLE = 0x1000
|
||||
RTF_BROADCAST = 0x400000
|
||||
RTF_CACHED = 0x20000
|
||||
RTF_CLONED = 0x10000
|
||||
RTF_CLONING = 0x100
|
||||
RTF_CONNECTED = 0x800000
|
||||
RTF_DONE = 0x40
|
||||
RTF_DYNAMIC = 0x10
|
||||
RTF_FMASK = 0x10f808
|
||||
RTF_FMASK = 0x110fc08
|
||||
RTF_GATEWAY = 0x2
|
||||
RTF_HOST = 0x4
|
||||
RTF_LLINFO = 0x400
|
||||
RTF_MASK = 0x80
|
||||
RTF_LOCAL = 0x200000
|
||||
RTF_MODIFIED = 0x20
|
||||
RTF_MPATH = 0x40000
|
||||
RTF_MPLS = 0x100000
|
||||
RTF_MULTICAST = 0x200
|
||||
RTF_PERMANENT_ARP = 0x2000
|
||||
RTF_PROTO1 = 0x8000
|
||||
RTF_PROTO2 = 0x4000
|
||||
RTF_PROTO3 = 0x2000
|
||||
RTF_REJECT = 0x8
|
||||
RTF_SOURCE = 0x20000
|
||||
RTF_STATIC = 0x800
|
||||
RTF_TUNNEL = 0x100000
|
||||
RTF_UP = 0x1
|
||||
RTF_USETRAILERS = 0x8000
|
||||
RTF_XRESOLVE = 0x200
|
||||
RTM_ADD = 0x1
|
||||
RTM_BFD = 0x12
|
||||
RTM_CHANGE = 0x3
|
||||
RTM_DELADDR = 0xd
|
||||
RTM_DELETE = 0x2
|
||||
@ -1040,11 +1100,13 @@ const (
|
||||
RTM_GET = 0x4
|
||||
RTM_IFANNOUNCE = 0xf
|
||||
RTM_IFINFO = 0xe
|
||||
RTM_INVALIDATE = 0x11
|
||||
RTM_LOCK = 0x8
|
||||
RTM_LOSING = 0x5
|
||||
RTM_MAXSIZE = 0x800
|
||||
RTM_MISS = 0x7
|
||||
RTM_NEWADDR = 0xc
|
||||
RTM_PROPOSAL = 0x13
|
||||
RTM_REDIRECT = 0x6
|
||||
RTM_RESOLVE = 0xb
|
||||
RTM_RTTUNIT = 0xf4240
|
||||
@ -1057,6 +1119,8 @@ const (
|
||||
RTV_RTTVAR = 0x80
|
||||
RTV_SPIPE = 0x10
|
||||
RTV_SSTHRESH = 0x20
|
||||
RT_TABLEID_BITS = 0x8
|
||||
RT_TABLEID_MASK = 0xff
|
||||
RT_TABLEID_MAX = 0xff
|
||||
RUSAGE_CHILDREN = -0x1
|
||||
RUSAGE_SELF = 0x0
|
||||
@ -1069,55 +1133,55 @@ const (
|
||||
SIOCADDMULTI = 0x80206931
|
||||
SIOCAIFADDR = 0x8040691a
|
||||
SIOCAIFGROUP = 0x80286987
|
||||
SIOCALIFADDR = 0x8218691c
|
||||
SIOCATMARK = 0x40047307
|
||||
SIOCBRDGADD = 0x8058693c
|
||||
SIOCBRDGADDS = 0x80586941
|
||||
SIOCBRDGARL = 0x806e694d
|
||||
SIOCBRDGADD = 0x8060693c
|
||||
SIOCBRDGADDL = 0x80606949
|
||||
SIOCBRDGADDS = 0x80606941
|
||||
SIOCBRDGARL = 0x808c694d
|
||||
SIOCBRDGDADDR = 0x81286947
|
||||
SIOCBRDGDEL = 0x8058693d
|
||||
SIOCBRDGDELS = 0x80586942
|
||||
SIOCBRDGFLUSH = 0x80586948
|
||||
SIOCBRDGFRL = 0x806e694e
|
||||
SIOCBRDGGCACHE = 0xc0146941
|
||||
SIOCBRDGGFD = 0xc0146952
|
||||
SIOCBRDGGHT = 0xc0146951
|
||||
SIOCBRDGGIFFLGS = 0xc058693e
|
||||
SIOCBRDGGMA = 0xc0146953
|
||||
SIOCBRDGDEL = 0x8060693d
|
||||
SIOCBRDGDELS = 0x80606942
|
||||
SIOCBRDGFLUSH = 0x80606948
|
||||
SIOCBRDGFRL = 0x808c694e
|
||||
SIOCBRDGGCACHE = 0xc0186941
|
||||
SIOCBRDGGFD = 0xc0186952
|
||||
SIOCBRDGGHT = 0xc0186951
|
||||
SIOCBRDGGIFFLGS = 0xc060693e
|
||||
SIOCBRDGGMA = 0xc0186953
|
||||
SIOCBRDGGPARAM = 0xc0406958
|
||||
SIOCBRDGGPRI = 0xc0146950
|
||||
SIOCBRDGGPRI = 0xc0186950
|
||||
SIOCBRDGGRL = 0xc030694f
|
||||
SIOCBRDGGSIFS = 0xc058693c
|
||||
SIOCBRDGGTO = 0xc0146946
|
||||
SIOCBRDGIFS = 0xc0586942
|
||||
SIOCBRDGGTO = 0xc0186946
|
||||
SIOCBRDGIFS = 0xc0606942
|
||||
SIOCBRDGRTS = 0xc0206943
|
||||
SIOCBRDGSADDR = 0xc1286944
|
||||
SIOCBRDGSCACHE = 0x80146940
|
||||
SIOCBRDGSFD = 0x80146952
|
||||
SIOCBRDGSHT = 0x80146951
|
||||
SIOCBRDGSIFCOST = 0x80586955
|
||||
SIOCBRDGSIFFLGS = 0x8058693f
|
||||
SIOCBRDGSIFPRIO = 0x80586954
|
||||
SIOCBRDGSMA = 0x80146953
|
||||
SIOCBRDGSPRI = 0x80146950
|
||||
SIOCBRDGSPROTO = 0x8014695a
|
||||
SIOCBRDGSTO = 0x80146945
|
||||
SIOCBRDGSTXHC = 0x80146959
|
||||
SIOCBRDGSCACHE = 0x80186940
|
||||
SIOCBRDGSFD = 0x80186952
|
||||
SIOCBRDGSHT = 0x80186951
|
||||
SIOCBRDGSIFCOST = 0x80606955
|
||||
SIOCBRDGSIFFLGS = 0x8060693f
|
||||
SIOCBRDGSIFPRIO = 0x80606954
|
||||
SIOCBRDGSIFPROT = 0x8060694a
|
||||
SIOCBRDGSMA = 0x80186953
|
||||
SIOCBRDGSPRI = 0x80186950
|
||||
SIOCBRDGSPROTO = 0x8018695a
|
||||
SIOCBRDGSTO = 0x80186945
|
||||
SIOCBRDGSTXHC = 0x80186959
|
||||
SIOCDELMULTI = 0x80206932
|
||||
SIOCDIFADDR = 0x80206919
|
||||
SIOCDIFGROUP = 0x80286989
|
||||
SIOCDIFPARENT = 0x802069b4
|
||||
SIOCDIFPHYADDR = 0x80206949
|
||||
SIOCDLIFADDR = 0x8218691e
|
||||
SIOCDVNETID = 0x802069af
|
||||
SIOCGETKALIVE = 0xc01869a4
|
||||
SIOCGETLABEL = 0x8020699a
|
||||
SIOCGETMPWCFG = 0xc02069ae
|
||||
SIOCGETPFLOW = 0xc02069fe
|
||||
SIOCGETPFSYNC = 0xc02069f8
|
||||
SIOCGETSGCNT = 0xc0207534
|
||||
SIOCGETVIFCNT = 0xc0287533
|
||||
SIOCGETVLAN = 0xc0206990
|
||||
SIOCGHIWAT = 0x40047301
|
||||
SIOCGIFADDR = 0xc0206921
|
||||
SIOCGIFASYNCMAP = 0xc020697c
|
||||
SIOCGIFBRDADDR = 0xc0206923
|
||||
SIOCGIFCONF = 0xc0106924
|
||||
SIOCGIFDATA = 0xc020691b
|
||||
@ -1129,37 +1193,41 @@ const (
|
||||
SIOCGIFGMEMB = 0xc028698a
|
||||
SIOCGIFGROUP = 0xc0286988
|
||||
SIOCGIFHARDMTU = 0xc02069a5
|
||||
SIOCGIFMEDIA = 0xc0306936
|
||||
SIOCGIFLLPRIO = 0xc02069b6
|
||||
SIOCGIFMEDIA = 0xc0406938
|
||||
SIOCGIFMETRIC = 0xc0206917
|
||||
SIOCGIFMTU = 0xc020697e
|
||||
SIOCGIFNETMASK = 0xc0206925
|
||||
SIOCGIFPDSTADDR = 0xc0206948
|
||||
SIOCGIFPAIR = 0xc02069b1
|
||||
SIOCGIFPARENT = 0xc02069b3
|
||||
SIOCGIFPRIORITY = 0xc020699c
|
||||
SIOCGIFPSRCADDR = 0xc0206947
|
||||
SIOCGIFRDOMAIN = 0xc02069a0
|
||||
SIOCGIFRTLABEL = 0xc0206983
|
||||
SIOCGIFTIMESLOT = 0xc0206986
|
||||
SIOCGIFRXR = 0x802069aa
|
||||
SIOCGIFXFLAGS = 0xc020699e
|
||||
SIOCGLIFADDR = 0xc218691d
|
||||
SIOCGLIFPHYADDR = 0xc218694b
|
||||
SIOCGLIFPHYDF = 0xc02069c2
|
||||
SIOCGLIFPHYRTABLE = 0xc02069a2
|
||||
SIOCGLIFPHYTTL = 0xc02069a9
|
||||
SIOCGLOWAT = 0x40047303
|
||||
SIOCGPGRP = 0x40047309
|
||||
SIOCGSPPPPARAMS = 0xc0206994
|
||||
SIOCGUMBINFO = 0xc02069be
|
||||
SIOCGUMBPARAM = 0xc02069c0
|
||||
SIOCGVH = 0xc02069f6
|
||||
SIOCGVNETFLOWID = 0xc02069c4
|
||||
SIOCGVNETID = 0xc02069a7
|
||||
SIOCIFAFATTACH = 0x801169ab
|
||||
SIOCIFAFDETACH = 0x801169ac
|
||||
SIOCIFCREATE = 0x8020697a
|
||||
SIOCIFDESTROY = 0x80206979
|
||||
SIOCIFGCLONERS = 0xc0106978
|
||||
SIOCSETKALIVE = 0x801869a3
|
||||
SIOCSETLABEL = 0x80206999
|
||||
SIOCSETMPWCFG = 0x802069ad
|
||||
SIOCSETPFLOW = 0x802069fd
|
||||
SIOCSETPFSYNC = 0x802069f7
|
||||
SIOCSETVLAN = 0x8020698f
|
||||
SIOCSHIWAT = 0x80047300
|
||||
SIOCSIFADDR = 0x8020690c
|
||||
SIOCSIFASYNCMAP = 0x8020697d
|
||||
SIOCSIFBRDADDR = 0x80206913
|
||||
SIOCSIFDESCR = 0x80206980
|
||||
SIOCSIFDSTADDR = 0x8020690e
|
||||
@ -1167,25 +1235,36 @@ const (
|
||||
SIOCSIFGATTR = 0x8028698c
|
||||
SIOCSIFGENERIC = 0x80206939
|
||||
SIOCSIFLLADDR = 0x8020691f
|
||||
SIOCSIFMEDIA = 0xc0206935
|
||||
SIOCSIFLLPRIO = 0x802069b5
|
||||
SIOCSIFMEDIA = 0xc0206937
|
||||
SIOCSIFMETRIC = 0x80206918
|
||||
SIOCSIFMTU = 0x8020697f
|
||||
SIOCSIFNETMASK = 0x80206916
|
||||
SIOCSIFPHYADDR = 0x80406946
|
||||
SIOCSIFPAIR = 0x802069b0
|
||||
SIOCSIFPARENT = 0x802069b2
|
||||
SIOCSIFPRIORITY = 0x8020699b
|
||||
SIOCSIFRDOMAIN = 0x8020699f
|
||||
SIOCSIFRTLABEL = 0x80206982
|
||||
SIOCSIFTIMESLOT = 0x80206985
|
||||
SIOCSIFXFLAGS = 0x8020699d
|
||||
SIOCSLIFPHYADDR = 0x8218694a
|
||||
SIOCSLIFPHYDF = 0x802069c1
|
||||
SIOCSLIFPHYRTABLE = 0x802069a1
|
||||
SIOCSLIFPHYTTL = 0x802069a8
|
||||
SIOCSLOWAT = 0x80047302
|
||||
SIOCSPGRP = 0x80047308
|
||||
SIOCSSPPPPARAMS = 0x80206993
|
||||
SIOCSUMBPARAM = 0x802069bf
|
||||
SIOCSVH = 0xc02069f5
|
||||
SIOCSVNETFLOWID = 0x802069c3
|
||||
SIOCSVNETID = 0x802069a6
|
||||
SIOCSWGDPID = 0xc018695b
|
||||
SIOCSWGMAXFLOW = 0xc0186960
|
||||
SIOCSWGMAXGROUP = 0xc018695d
|
||||
SIOCSWSDPID = 0x8018695c
|
||||
SIOCSWSPORTNO = 0xc060695f
|
||||
SOCK_CLOEXEC = 0x8000
|
||||
SOCK_DGRAM = 0x2
|
||||
SOCK_DNS = 0x1000
|
||||
SOCK_NONBLOCK = 0x4000
|
||||
SOCK_RAW = 0x3
|
||||
SOCK_RDM = 0x4
|
||||
SOCK_SEQPACKET = 0x5
|
||||
@ -1216,9 +1295,14 @@ const (
|
||||
SO_TIMESTAMP = 0x800
|
||||
SO_TYPE = 0x1008
|
||||
SO_USELOOPBACK = 0x40
|
||||
SO_ZEROIZE = 0x2000
|
||||
TCIFLUSH = 0x1
|
||||
TCIOFF = 0x3
|
||||
TCIOFLUSH = 0x3
|
||||
TCION = 0x4
|
||||
TCOFLUSH = 0x2
|
||||
TCOOFF = 0x1
|
||||
TCOON = 0x2
|
||||
TCP_MAXBURST = 0x4
|
||||
TCP_MAXSEG = 0x2
|
||||
TCP_MAXWIN = 0xffff
|
||||
@ -1228,11 +1312,12 @@ const (
|
||||
TCP_MSS = 0x200
|
||||
TCP_NODELAY = 0x1
|
||||
TCP_NOPUSH = 0x10
|
||||
TCP_NSTATES = 0xb
|
||||
TCP_SACK_ENABLE = 0x8
|
||||
TCSAFLUSH = 0x2
|
||||
TIOCCBRK = 0x2000747a
|
||||
TIOCCDTR = 0x20007478
|
||||
TIOCCHKVERAUTH = 0x2000741e
|
||||
TIOCCLRVERAUTH = 0x2000741d
|
||||
TIOCCONS = 0x80047462
|
||||
TIOCDRAIN = 0x2000745e
|
||||
TIOCEXCL = 0x2000740d
|
||||
@ -1287,16 +1372,19 @@ const (
|
||||
TIOCSETAF = 0x802c7416
|
||||
TIOCSETAW = 0x802c7415
|
||||
TIOCSETD = 0x8004741b
|
||||
TIOCSETVERAUTH = 0x8004741c
|
||||
TIOCSFLAGS = 0x8004745c
|
||||
TIOCSIG = 0x8004745f
|
||||
TIOCSPGRP = 0x80047476
|
||||
TIOCSTART = 0x2000746e
|
||||
TIOCSTAT = 0x80047465
|
||||
TIOCSTAT = 0x20007465
|
||||
TIOCSTI = 0x80017472
|
||||
TIOCSTOP = 0x2000746f
|
||||
TIOCSTSTAMP = 0x8008745a
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCUCNTL = 0x80047466
|
||||
TIOCUCNTL_CBRK = 0x7a
|
||||
TIOCUCNTL_SBRK = 0x7b
|
||||
TOSTOP = 0x400000
|
||||
VDISCARD = 0xf
|
||||
VDSUSP = 0xb
|
||||
@ -1308,6 +1396,18 @@ const (
|
||||
VKILL = 0x5
|
||||
VLNEXT = 0xe
|
||||
VMIN = 0x10
|
||||
VM_ANONMIN = 0x7
|
||||
VM_LOADAVG = 0x2
|
||||
VM_MAXID = 0xc
|
||||
VM_MAXSLP = 0xa
|
||||
VM_METER = 0x1
|
||||
VM_NKMEMPAGES = 0x6
|
||||
VM_PSSTRINGS = 0x3
|
||||
VM_SWAPENCRYPT = 0x5
|
||||
VM_USPACE = 0xb
|
||||
VM_UVMEXP = 0x4
|
||||
VM_VNODEMIN = 0x9
|
||||
VM_VTEXTMIN = 0x8
|
||||
VQUIT = 0x9
|
||||
VREPRINT = 0x6
|
||||
VSTART = 0xc
|
||||
@ -1320,8 +1420,8 @@ const (
|
||||
WCONTINUED = 0x8
|
||||
WCOREFLAG = 0x80
|
||||
WNOHANG = 0x1
|
||||
WSTOPPED = 0x7f
|
||||
WUNTRACED = 0x2
|
||||
XCASE = 0x1000000
|
||||
)
|
||||
|
||||
// Errors
|
||||
@ -1335,6 +1435,7 @@ const (
|
||||
EALREADY = syscall.Errno(0x25)
|
||||
EAUTH = syscall.Errno(0x50)
|
||||
EBADF = syscall.Errno(0x9)
|
||||
EBADMSG = syscall.Errno(0x5c)
|
||||
EBADRPC = syscall.Errno(0x48)
|
||||
EBUSY = syscall.Errno(0x10)
|
||||
ECANCELED = syscall.Errno(0x58)
|
||||
@ -1361,7 +1462,7 @@ const (
|
||||
EIPSEC = syscall.Errno(0x52)
|
||||
EISCONN = syscall.Errno(0x38)
|
||||
EISDIR = syscall.Errno(0x15)
|
||||
ELAST = syscall.Errno(0x5b)
|
||||
ELAST = syscall.Errno(0x5f)
|
||||
ELOOP = syscall.Errno(0x3e)
|
||||
EMEDIUMTYPE = syscall.Errno(0x56)
|
||||
EMFILE = syscall.Errno(0x18)
|
||||
@ -1389,12 +1490,14 @@ const (
|
||||
ENOTCONN = syscall.Errno(0x39)
|
||||
ENOTDIR = syscall.Errno(0x14)
|
||||
ENOTEMPTY = syscall.Errno(0x42)
|
||||
ENOTRECOVERABLE = syscall.Errno(0x5d)
|
||||
ENOTSOCK = syscall.Errno(0x26)
|
||||
ENOTSUP = syscall.Errno(0x5b)
|
||||
ENOTTY = syscall.Errno(0x19)
|
||||
ENXIO = syscall.Errno(0x6)
|
||||
EOPNOTSUPP = syscall.Errno(0x2d)
|
||||
EOVERFLOW = syscall.Errno(0x57)
|
||||
EOWNERDEAD = syscall.Errno(0x5e)
|
||||
EPERM = syscall.Errno(0x1)
|
||||
EPFNOSUPPORT = syscall.Errno(0x2e)
|
||||
EPIPE = syscall.Errno(0x20)
|
||||
@ -1402,6 +1505,7 @@ const (
|
||||
EPROCUNAVAIL = syscall.Errno(0x4c)
|
||||
EPROGMISMATCH = syscall.Errno(0x4b)
|
||||
EPROGUNAVAIL = syscall.Errno(0x4a)
|
||||
EPROTO = syscall.Errno(0x5f)
|
||||
EPROTONOSUPPORT = syscall.Errno(0x2b)
|
||||
EPROTOTYPE = syscall.Errno(0x29)
|
||||
ERANGE = syscall.Errno(0x22)
|
||||
@ -1459,132 +1563,144 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "connection timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "IPsec processing failure",
|
||||
83: "attribute not found",
|
||||
84: "illegal byte sequence",
|
||||
85: "no medium found",
|
||||
86: "wrong medium type",
|
||||
87: "value too large to be stored in data type",
|
||||
88: "operation canceled",
|
||||
89: "identifier removed",
|
||||
90: "no message of desired type",
|
||||
91: "not supported",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disk quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC program not available"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIPSEC", "IPsec processing failure"},
|
||||
{83, "ENOATTR", "attribute not found"},
|
||||
{84, "EILSEQ", "illegal byte sequence"},
|
||||
{85, "ENOMEDIUM", "no medium found"},
|
||||
{86, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{87, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{88, "ECANCELED", "operation canceled"},
|
||||
{89, "EIDRM", "identifier removed"},
|
||||
{90, "ENOMSG", "no message of desired type"},
|
||||
{91, "ENOTSUP", "not supported"},
|
||||
{92, "EBADMSG", "bad message"},
|
||||
{93, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{94, "EOWNERDEAD", "previous owner died"},
|
||||
{95, "ELAST", "protocol error"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "stopped (signal)",
|
||||
18: "stopped",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "thread AST",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "thread AST"},
|
||||
}
|
||||
|
259
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
259
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
@ -147,6 +147,7 @@ const (
|
||||
CFLUSH = 0xf
|
||||
CLOCAL = 0x8000
|
||||
CREAD = 0x800
|
||||
CRTSCTS = 0x10000
|
||||
CS5 = 0x0
|
||||
CS6 = 0x100
|
||||
CS7 = 0x200
|
||||
@ -1462,132 +1463,140 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "connection timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "IPsec processing failure",
|
||||
83: "attribute not found",
|
||||
84: "illegal byte sequence",
|
||||
85: "no medium found",
|
||||
86: "wrong medium type",
|
||||
87: "value too large to be stored in data type",
|
||||
88: "operation canceled",
|
||||
89: "identifier removed",
|
||||
90: "no message of desired type",
|
||||
91: "not supported",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "operation not permitted"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "input/output error"},
|
||||
{6, "ENXIO", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "too many open files in system"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "numerical argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "EWOULDBLOCK", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disk quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC program not available"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIPSEC", "IPsec processing failure"},
|
||||
{83, "ENOATTR", "attribute not found"},
|
||||
{84, "EILSEQ", "illegal byte sequence"},
|
||||
{85, "ENOMEDIUM", "no medium found"},
|
||||
{86, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{87, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{88, "ECANCELED", "operation canceled"},
|
||||
{89, "EIDRM", "identifier removed"},
|
||||
{90, "ENOMSG", "no message of desired type"},
|
||||
{91, "ELAST", "not supported"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "stopped (signal)",
|
||||
18: "stopped",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "thread AST",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal instruction"},
|
||||
{5, "SIGTRAP", "trace/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "thread AST"},
|
||||
}
|
||||
|
336
vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
generated
vendored
336
vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
generated
vendored
@ -1319,171 +1319,179 @@ const (
|
||||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "not owner",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "I/O error",
|
||||
6: "no such device or address",
|
||||
7: "arg list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file number",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "not enough space",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "file table overflow",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "argument out of domain",
|
||||
34: "result too large",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "deadlock situation detected/avoided",
|
||||
46: "no record locks available",
|
||||
47: "operation canceled",
|
||||
48: "operation not supported",
|
||||
49: "disc quota exceeded",
|
||||
50: "bad exchange descriptor",
|
||||
51: "bad request descriptor",
|
||||
52: "message tables full",
|
||||
53: "anode table overflow",
|
||||
54: "bad request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock",
|
||||
57: "bad font file format",
|
||||
58: "owner of the lock died",
|
||||
59: "lock is not recoverable",
|
||||
60: "not a stream device",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of stream resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "locked lock was unmapped ",
|
||||
73: "facility is not active",
|
||||
74: "multihop attempted",
|
||||
77: "not a data message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in more shared libraries than system limit",
|
||||
87: "can not exec a shared library directly",
|
||||
88: "illegal byte sequence",
|
||||
89: "operation not applicable",
|
||||
90: "number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS",
|
||||
91: "error 91",
|
||||
92: "error 92",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "option not supported by protocol",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported on transport endpoint",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol family",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection because of reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
143: "cannot send after socket shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale NFS file handle",
|
||||
var errorList = [...]struct {
|
||||
num syscall.Errno
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "EPERM", "not owner"},
|
||||
{2, "ENOENT", "no such file or directory"},
|
||||
{3, "ESRCH", "no such process"},
|
||||
{4, "EINTR", "interrupted system call"},
|
||||
{5, "EIO", "I/O error"},
|
||||
{6, "ENXIO", "no such device or address"},
|
||||
{7, "E2BIG", "arg list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file number"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||
{12, "ENOMEM", "not enough space"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "no such device"},
|
||||
{20, "ENOTDIR", "not a directory"},
|
||||
{21, "EISDIR", "is a directory"},
|
||||
{22, "EINVAL", "invalid argument"},
|
||||
{23, "ENFILE", "file table overflow"},
|
||||
{24, "EMFILE", "too many open files"},
|
||||
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||
{26, "ETXTBSY", "text file busy"},
|
||||
{27, "EFBIG", "file too large"},
|
||||
{28, "ENOSPC", "no space left on device"},
|
||||
{29, "ESPIPE", "illegal seek"},
|
||||
{30, "EROFS", "read-only file system"},
|
||||
{31, "EMLINK", "too many links"},
|
||||
{32, "EPIPE", "broken pipe"},
|
||||
{33, "EDOM", "argument out of domain"},
|
||||
{34, "ERANGE", "result too large"},
|
||||
{35, "ENOMSG", "no message of desired type"},
|
||||
{36, "EIDRM", "identifier removed"},
|
||||
{37, "ECHRNG", "channel number out of range"},
|
||||
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{39, "EL3HLT", "level 3 halted"},
|
||||
{40, "EL3RST", "level 3 reset"},
|
||||
{41, "ELNRNG", "link number out of range"},
|
||||
{42, "EUNATCH", "protocol driver not attached"},
|
||||
{43, "ENOCSI", "no CSI structure available"},
|
||||
{44, "EL2HLT", "level 2 halted"},
|
||||
{45, "EDEADLK", "deadlock situation detected/avoided"},
|
||||
{46, "ENOLCK", "no record locks available"},
|
||||
{47, "ECANCELED", "operation canceled"},
|
||||
{48, "ENOTSUP", "operation not supported"},
|
||||
{49, "EDQUOT", "disc quota exceeded"},
|
||||
{50, "EBADE", "bad exchange descriptor"},
|
||||
{51, "EBADR", "bad request descriptor"},
|
||||
{52, "EXFULL", "message tables full"},
|
||||
{53, "ENOANO", "anode table overflow"},
|
||||
{54, "EBADRQC", "bad request code"},
|
||||
{55, "EBADSLT", "invalid slot"},
|
||||
{56, "EDEADLOCK", "file locking deadlock"},
|
||||
{57, "EBFONT", "bad font file format"},
|
||||
{58, "EOWNERDEAD", "owner of the lock died"},
|
||||
{59, "ENOTRECOVERABLE", "lock is not recoverable"},
|
||||
{60, "ENOSTR", "not a stream device"},
|
||||
{61, "ENODATA", "no data available"},
|
||||
{62, "ETIME", "timer expired"},
|
||||
{63, "ENOSR", "out of stream resources"},
|
||||
{64, "ENONET", "machine is not on the network"},
|
||||
{65, "ENOPKG", "package not installed"},
|
||||
{66, "EREMOTE", "object is remote"},
|
||||
{67, "ENOLINK", "link has been severed"},
|
||||
{68, "EADV", "advertise error"},
|
||||
{69, "ESRMNT", "srmount error"},
|
||||
{70, "ECOMM", "communication error on send"},
|
||||
{71, "EPROTO", "protocol error"},
|
||||
{72, "ELOCKUNMAPPED", "locked lock was unmapped "},
|
||||
{73, "ENOTACTIVE", "facility is not active"},
|
||||
{74, "EMULTIHOP", "multihop attempted"},
|
||||
{77, "EBADMSG", "not a data message"},
|
||||
{78, "ENAMETOOLONG", "file name too long"},
|
||||
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||
{80, "ENOTUNIQ", "name not unique on network"},
|
||||
{81, "EBADFD", "file descriptor in bad state"},
|
||||
{82, "EREMCHG", "remote address changed"},
|
||||
{83, "ELIBACC", "can not access a needed shared library"},
|
||||
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{86, "ELIBMAX", "attempting to link in more shared libraries than system limit"},
|
||||
{87, "ELIBEXEC", "can not exec a shared library directly"},
|
||||
{88, "EILSEQ", "illegal byte sequence"},
|
||||
{89, "ENOSYS", "operation not applicable"},
|
||||
{90, "ELOOP", "number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS"},
|
||||
{91, "ERESTART", "error 91"},
|
||||
{92, "ESTRPIPE", "error 92"},
|
||||
{93, "ENOTEMPTY", "directory not empty"},
|
||||
{94, "EUSERS", "too many users"},
|
||||
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{96, "EDESTADDRREQ", "destination address required"},
|
||||
{97, "EMSGSIZE", "message too long"},
|
||||
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{99, "ENOPROTOOPT", "option not supported by protocol"},
|
||||
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{122, "EOPNOTSUPP", "operation not supported on transport endpoint"},
|
||||
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{124, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{125, "EADDRINUSE", "address already in use"},
|
||||
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{127, "ENETDOWN", "network is down"},
|
||||
{128, "ENETUNREACH", "network is unreachable"},
|
||||
{129, "ENETRESET", "network dropped connection because of reset"},
|
||||
{130, "ECONNABORTED", "software caused connection abort"},
|
||||
{131, "ECONNRESET", "connection reset by peer"},
|
||||
{132, "ENOBUFS", "no buffer space available"},
|
||||
{133, "EISCONN", "transport endpoint is already connected"},
|
||||
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{143, "ESHUTDOWN", "cannot send after socket shutdown"},
|
||||
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{145, "ETIMEDOUT", "connection timed out"},
|
||||
{146, "ECONNREFUSED", "connection refused"},
|
||||
{147, "EHOSTDOWN", "host is down"},
|
||||
{148, "EHOSTUNREACH", "no route to host"},
|
||||
{149, "EALREADY", "operation already in progress"},
|
||||
{150, "EINPROGRESS", "operation now in progress"},
|
||||
{151, "ESTALE", "stale NFS file handle"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal Instruction",
|
||||
5: "trace/Breakpoint Trap",
|
||||
6: "abort",
|
||||
7: "emulation Trap",
|
||||
8: "arithmetic Exception",
|
||||
9: "killed",
|
||||
10: "bus Error",
|
||||
11: "segmentation Fault",
|
||||
12: "bad System Call",
|
||||
13: "broken Pipe",
|
||||
14: "alarm Clock",
|
||||
15: "terminated",
|
||||
16: "user Signal 1",
|
||||
17: "user Signal 2",
|
||||
18: "child Status Changed",
|
||||
19: "power-Fail/Restart",
|
||||
20: "window Size Change",
|
||||
21: "urgent Socket Condition",
|
||||
22: "pollable Event",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped (user)",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual Timer Expired",
|
||||
29: "profiling Timer Expired",
|
||||
30: "cpu Limit Exceeded",
|
||||
31: "file Size Limit Exceeded",
|
||||
32: "no runnable lwp",
|
||||
33: "inter-lwp signal",
|
||||
34: "checkpoint Freeze",
|
||||
35: "checkpoint Thaw",
|
||||
36: "thread Cancellation",
|
||||
37: "resource Lost",
|
||||
38: "resource Control Exceeded",
|
||||
39: "reserved for JVM 1",
|
||||
40: "reserved for JVM 2",
|
||||
41: "information Request",
|
||||
var signalList = [...]struct {
|
||||
num syscall.Signal
|
||||
name string
|
||||
desc string
|
||||
}{
|
||||
{1, "SIGHUP", "hangup"},
|
||||
{2, "SIGINT", "interrupt"},
|
||||
{3, "SIGQUIT", "quit"},
|
||||
{4, "SIGILL", "illegal Instruction"},
|
||||
{5, "SIGTRAP", "trace/Breakpoint Trap"},
|
||||
{6, "SIGABRT", "abort"},
|
||||
{7, "SIGEMT", "emulation Trap"},
|
||||
{8, "SIGFPE", "arithmetic Exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus Error"},
|
||||
{11, "SIGSEGV", "segmentation Fault"},
|
||||
{12, "SIGSYS", "bad System Call"},
|
||||
{13, "SIGPIPE", "broken Pipe"},
|
||||
{14, "SIGALRM", "alarm Clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGUSR1", "user Signal 1"},
|
||||
{17, "SIGUSR2", "user Signal 2"},
|
||||
{18, "SIGCHLD", "child Status Changed"},
|
||||
{19, "SIGPWR", "power-Fail/Restart"},
|
||||
{20, "SIGWINCH", "window Size Change"},
|
||||
{21, "SIGURG", "urgent Socket Condition"},
|
||||
{22, "SIGIO", "pollable Event"},
|
||||
{23, "SIGSTOP", "stopped (signal)"},
|
||||
{24, "SIGTSTP", "stopped (user)"},
|
||||
{25, "SIGCONT", "continued"},
|
||||
{26, "SIGTTIN", "stopped (tty input)"},
|
||||
{27, "SIGTTOU", "stopped (tty output)"},
|
||||
{28, "SIGVTALRM", "virtual Timer Expired"},
|
||||
{29, "SIGPROF", "profiling Timer Expired"},
|
||||
{30, "SIGXCPU", "cpu Limit Exceeded"},
|
||||
{31, "SIGXFSZ", "file Size Limit Exceeded"},
|
||||
{32, "SIGWAITING", "no runnable lwp"},
|
||||
{33, "SIGLWP", "inter-lwp signal"},
|
||||
{34, "SIGFREEZE", "checkpoint Freeze"},
|
||||
{35, "SIGTHAW", "checkpoint Thaw"},
|
||||
{36, "SIGCANCEL", "thread Cancellation"},
|
||||
{37, "SIGLOST", "resource Lost"},
|
||||
{38, "SIGXRES", "resource Control Exceeded"},
|
||||
{39, "SIGJVM1", "reserved for JVM 1"},
|
||||
{40, "SIGJVM2", "reserved for JVM 2"},
|
||||
{41, "SIGINFO", "information Request"},
|
||||
}
|
||||
|
92
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
92
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
@ -399,6 +399,83 @@ func pipe() (r int, w int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func removexattr(path string, attr string, options int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func kill(pid int, signum int, posix int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
|
||||
if e1 != 0 {
|
||||
@ -693,6 +770,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
|
92
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
92
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
@ -399,6 +399,83 @@ func pipe() (r int, w int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func removexattr(path string, attr string, options int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func kill(pid int, signum int, posix int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
|
||||
if e1 != 0 {
|
||||
@ -693,6 +770,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
|
94
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
94
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// mksyscall.pl -tags darwin,arm 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
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build darwin,arm
|
||||
@ -399,6 +399,83 @@ func pipe() (r int, w int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func removexattr(path string, attr string, options int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func kill(pid int, signum int, posix int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
|
||||
if e1 != 0 {
|
||||
@ -693,6 +770,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
|
92
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
92
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
@ -399,6 +399,83 @@ func pipe() (r int, w int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func removexattr(path string, attr string, options int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func kill(pid int, signum int, posix int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
|
||||
if e1 != 0 {
|
||||
@ -693,6 +770,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
@ -618,6 +618,21 @@ func Fchmod(fd int, mode uint32) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchown(fd int, uid int, gid int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||
if e1 != 0 {
|
||||
@ -659,6 +674,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
|
15
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
15
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
@ -924,6 +924,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
|
15
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
15
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
@ -924,6 +924,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
|
15
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
15
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
@ -924,6 +924,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
|
172
vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
generated
vendored
172
vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,21 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe(p *[2]_C_int) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -1554,6 +1519,34 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
_p0 = unsafe.Pointer(&events[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice))
|
||||
if e1 != 0 {
|
||||
@ -1858,6 +1851,16 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getgroups(n int, list *_Gid_t) (nn int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
|
||||
nn = int(r0)
|
||||
@ -1901,23 +1904,6 @@ func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
_p0 = unsafe.Pointer(&events[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Pause() (err error) {
|
||||
_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -1948,6 +1934,21 @@ func setrlimit(resource int, rlim *rlimit32) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -1984,6 +1985,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
|
||||
n = int(r0)
|
||||
|
164
vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
generated
vendored
164
vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,21 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
if e1 != 0 {
|
||||
@ -1534,6 +1499,17 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
@ -1784,17 +1760,6 @@ func Seek(fd int, offset int64, whence int) (off int64, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
|
||||
written = int(r0)
|
||||
@ -1897,21 +1862,6 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Stat(path string, stat *Stat_t) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Statfs(path string, buf *Statfs_t) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -1952,6 +1902,16 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||
fd = int(r0)
|
||||
@ -2142,6 +2102,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Utime(path string, buf *Utimbuf) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -2157,6 +2132,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe(p *[2]_C_int) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
174
vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
generated
vendored
174
vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,21 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
||||
if e1 != 0 {
|
||||
@ -1723,6 +1688,34 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
_p0 = unsafe.Pointer(&events[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchown(fd int, uid int, gid int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||
if e1 != 0 {
|
||||
@ -1841,6 +1834,16 @@ func Lstat(path string, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Pause() (err error) {
|
||||
_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
|
||||
written = int(r0)
|
||||
@ -1959,6 +1962,31 @@ func Stat(path string, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -1969,25 +1997,13 @@ func Gettimeofday(tv *Timeval) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
_p0 = unsafe.Pointer(&events[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Pause() (err error) {
|
||||
_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
|
97
vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
generated
vendored
97
vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,21 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
@ -1541,6 +1506,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchown(fd int, uid int, gid int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||
if e1 != 0 {
|
||||
|
218
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
218
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len))
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,21 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
if e1 != 0 {
|
||||
@ -1534,6 +1499,44 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
_p0 = unsafe.Pointer(&events[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length), uintptr(advice), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchown(fd int, uid int, gid int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||
if e1 != 0 {
|
||||
@ -1737,9 +1740,9 @@ func Shutdown(fd int, how int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
|
||||
r0, r1, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
|
||||
n = int64(int64(r0)<<32 | int64(r1))
|
||||
func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
@ -1773,6 +1776,16 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||
fd = int(r0)
|
||||
@ -1983,6 +1996,21 @@ func Iopl(level int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -2004,6 +2032,36 @@ func Time(t *Time_t) (tt Time_t, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Utime(path string, buf *Utimbuf) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Lstat(path string, stat *Stat_t) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -2059,38 +2117,6 @@ func Stat(path string, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Utime(path string, buf *Utimbuf) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
_p0 = unsafe.Pointer(&events[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Pause() (err error) {
|
||||
_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
|
||||
if e1 != 0 {
|
||||
|
148
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
generated
vendored
148
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,21 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
if e1 != 0 {
|
||||
@ -1534,6 +1499,17 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
@ -1551,6 +1527,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchown(fd int, uid int, gid int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||
if e1 != 0 {
|
||||
@ -1860,6 +1846,16 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||
fd = int(r0)
|
||||
@ -2050,6 +2046,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -2075,6 +2086,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
||||
if e1 != 0 {
|
||||
|
148
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
generated
vendored
148
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,21 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
if e1 != 0 {
|
||||
@ -1534,6 +1499,17 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
@ -1551,6 +1527,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchown(fd int, uid int, gid int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||
if e1 != 0 {
|
||||
@ -1860,6 +1846,16 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||
fd = int(r0)
|
||||
@ -2050,6 +2046,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -2075,6 +2086,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
||||
if e1 != 0 {
|
||||
|
218
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
218
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,21 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
if e1 != 0 {
|
||||
@ -1534,6 +1499,44 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
_p0 = unsafe.Pointer(&events[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchown(fd int, uid int, gid int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||
if e1 != 0 {
|
||||
@ -1737,9 +1740,9 @@ func Shutdown(fd int, how int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
|
||||
r0, r1, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
|
||||
n = int64(int64(r1)<<32 | int64(r0))
|
||||
func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
@ -1773,6 +1776,16 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||
fd = int(r0)
|
||||
@ -1983,6 +1996,21 @@ func Iopl(level int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -2004,6 +2032,36 @@ func Time(t *Time_t) (tt Time_t, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Utime(path string, buf *Utimbuf) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Lstat(path string, stat *Stat_t) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -2059,38 +2117,6 @@ func Stat(path string, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Utime(path string, buf *Utimbuf) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
_p0 = unsafe.Pointer(&events[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Pause() (err error) {
|
||||
_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
|
||||
if e1 != 0 {
|
||||
|
152
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
generated
vendored
152
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,42 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
@ -1541,8 +1527,8 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
@ -1942,6 +1928,16 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||
fd = int(r0)
|
||||
@ -2132,6 +2128,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -2168,6 +2179,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe(p *[2]_C_int) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
152
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
generated
vendored
152
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,42 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
@ -1541,8 +1527,8 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
@ -1942,6 +1928,16 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||
fd = int(r0)
|
||||
@ -2132,6 +2128,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -2168,6 +2179,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe(p *[2]_C_int) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
138
vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
generated
vendored
138
vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
generated
vendored
@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -494,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -544,21 +508,6 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -995,6 +944,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -1355,16 +1315,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1524,6 +1474,21 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
if e1 != 0 {
|
||||
@ -1534,6 +1499,17 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(events) > 0 {
|
||||
@ -1912,6 +1888,16 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getgroups(n int, list *_Gid_t) (nn int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
|
||||
nn = int(r0)
|
||||
@ -1933,6 +1919,21 @@ func setgroups(n int, list *_Gid_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -1958,6 +1959,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
||||
if e1 != 0 {
|
||||
|
501
vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
generated
vendored
501
vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
generated
vendored
@ -14,6 +14,31 @@ var _ syscall.Errno
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func fchmodat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(oldpath)
|
||||
@ -118,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -148,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getcwd(buf []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
@ -186,6 +186,104 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
|
||||
ret = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
_p0 = unsafe.Pointer(&buf[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
|
||||
ret = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(arg2)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
|
||||
ret = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(arg3)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(arg4)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
|
||||
ret = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(payload) > 0 {
|
||||
_p0 = unsafe.Pointer(&payload[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
_p0 = unsafe.Pointer(&buf[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
|
||||
ret = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -251,6 +349,33 @@ func Acct(path string) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(description)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p2 unsafe.Pointer
|
||||
if len(payload) > 0 {
|
||||
_p2 = unsafe.Pointer(&payload[0])
|
||||
} else {
|
||||
_p2 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
|
||||
id = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Adjtimex(buf *Timex) (state int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
|
||||
state = int(r0)
|
||||
@ -344,17 +469,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate(size int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func EpollCreate1(flag int) (fd int, err error) {
|
||||
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
|
||||
fd = int(r0)
|
||||
@ -376,8 +490,19 @@ func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Eventfd(initval uint, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Exit(code int) {
|
||||
Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0)
|
||||
SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0)
|
||||
return
|
||||
}
|
||||
|
||||
@ -428,21 +553,6 @@ func Fchmod(fd int, mode uint32) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -528,7 +638,7 @@ func Getpgid(pid int) (pgid int, err error) {
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getpid() (pid int) {
|
||||
r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
|
||||
r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
|
||||
pid = int(r0)
|
||||
return
|
||||
}
|
||||
@ -536,7 +646,7 @@ func Getpid() (pid int) {
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getppid() (ppid int) {
|
||||
r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
|
||||
r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
|
||||
ppid = int(r0)
|
||||
return
|
||||
}
|
||||
@ -593,7 +703,7 @@ func Getsid(pid int) (sid int, err error) {
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettid() (tid int) {
|
||||
r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)
|
||||
r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
|
||||
tid = int(r0)
|
||||
return
|
||||
}
|
||||
@ -692,6 +802,33 @@ func Klogctl(typ int, buf []byte) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p2 unsafe.Pointer
|
||||
if len(dest) > 0 {
|
||||
_p2 = unsafe.Pointer(&dest[0])
|
||||
} else {
|
||||
_p2 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Listxattr(path string, dest []byte) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -714,6 +851,74 @@ func Listxattr(path string, dest []byte) (sz int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Llistxattr(path string, dest []byte) (sz int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 unsafe.Pointer
|
||||
if len(dest) > 0 {
|
||||
_p1 = unsafe.Pointer(&dest[0])
|
||||
} else {
|
||||
_p1 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
|
||||
sz = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Lremovexattr(path string, attr string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(attr)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p2 unsafe.Pointer
|
||||
if len(data) > 0 {
|
||||
_p2 = unsafe.Pointer(&data[0])
|
||||
} else {
|
||||
_p2 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -754,6 +959,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
|
||||
fd = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func PivotRoot(newroot string, putold string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(newroot)
|
||||
@ -794,6 +1010,17 @@ func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func read(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -851,6 +1078,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(description)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p2 *byte
|
||||
_p2, err = BytePtrFromString(callback)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
|
||||
id = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Setdomainname(p []byte) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -960,8 +1213,33 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Sync() {
|
||||
Syscall(SYS_SYNC, 0, 0, 0)
|
||||
SyscallNoError(SYS_SYNC, 0, 0, 0)
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Syncfs(fd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@ -1010,7 +1288,7 @@ func Times(tms *Tms) (ticks uintptr, err error) {
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Umask(mask int) (oldmask int) {
|
||||
r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0)
|
||||
r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
|
||||
oldmask = int(r0)
|
||||
return
|
||||
}
|
||||
@ -1052,16 +1330,6 @@ func Unshare(flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func write(fd int, p []byte) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(p) > 0 {
|
||||
@ -1169,14 +1437,8 @@ func Mlock(b []byte) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Munlock(b []byte) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(b) > 0 {
|
||||
_p0 = unsafe.Pointer(&b[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||
func Mlockall(flags int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
@ -1185,8 +1447,30 @@ func Munlock(b []byte) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Mlockall(flags int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
|
||||
func Msync(b []byte, flags int) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(b) > 0 {
|
||||
_p0 = unsafe.Pointer(&b[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Munlock(b []byte) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(b) > 0 {
|
||||
_p0 = unsafe.Pointer(&b[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
@ -1222,6 +1506,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Dup2(oldfd int, newfd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||
if e1 != 0 {
|
||||
@ -1252,6 +1546,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatfs(fd int, buf *Statfs_t) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
|
||||
if e1 != 0 {
|
||||
@ -1273,7 +1582,7 @@ func Ftruncate(fd int, length int64) (err error) {
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getegid() (egid int) {
|
||||
r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
|
||||
r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0)
|
||||
egid = int(r0)
|
||||
return
|
||||
}
|
||||
@ -1281,7 +1590,7 @@ func Getegid() (egid int) {
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Geteuid() (euid int) {
|
||||
r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
|
||||
r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0)
|
||||
euid = int(r0)
|
||||
return
|
||||
}
|
||||
@ -1289,7 +1598,7 @@ func Geteuid() (euid int) {
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getgid() (gid int) {
|
||||
r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
|
||||
r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0)
|
||||
gid = int(r0)
|
||||
return
|
||||
}
|
||||
@ -1307,7 +1616,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getuid() (uid int) {
|
||||
r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
|
||||
r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0)
|
||||
uid = int(r0)
|
||||
return
|
||||
}
|
||||
@ -1778,6 +2087,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Gettimeofday(tv *Timeval) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -1803,6 +2127,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, times *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe(p *[2]_C_int) (err error) {
|
||||
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
55
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
55
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
@ -571,6 +571,31 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), 0, uintptr(length), uintptr(length>>32), uintptr(advice), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchdir(fd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -601,6 +626,21 @@ func Fchmod(fd int, mode uint32) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchown(fd int, uid int, gid int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||
if e1 != 0 {
|
||||
@ -642,6 +682,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fsync(fd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
55
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
55
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
@ -571,6 +571,31 @@ func Exit(code int) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), 0, uintptr(length), uintptr(advice))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchdir(fd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -601,6 +626,21 @@ func Fchmod(fd int, mode uint32) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fchown(fd int, uid int, gid int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||
if e1 != 0 {
|
||||
@ -642,6 +682,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Fsync(fd int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user